import { Network } from '@smallcase/cdk-vpc-module'
new Network ( scope : Construct , id : string , props : VPCProps )
Name
Type
Description
scope
constructs.Construct
No description.
id
string
No description.
props
VPCProps
No description.
Type: constructs.Construct
Name
Description
toString
Returns a string representation of this construct.
createSubnet
No description.
public toString ( ) : string
Returns a string representation of this construct.
public createSubnet ( option : ISubnetsProps , vpc : Vpc , peeringConnectionId ?: PeeringConnectionInternalType ) : Subnet [ ]
Type: aws-cdk-lib.aws_ec2.Vpc
peeringConnectionId
Optional
Name
Description
isConstruct
Checks if x
is a construct.
import { Network } from '@smallcase/cdk-vpc-module'
Network . isConstruct ( x : any )
Checks if x
is a construct.
Any object.
Name
Type
Description
node
constructs.Node
The tree node.
endpointOutputs
{[ key: string ]: aws-cdk-lib.aws_ec2.InterfaceVpcEndpoint | aws-cdk-lib.aws_ec2.GatewayVpcEndpoint}
No description.
natProvider
aws-cdk-lib.aws_ec2.NatProvider
No description.
securityGroupOutputs
{[ key: string ]: aws-cdk-lib.aws_ec2.SecurityGroup}
No description.
vpc
aws-cdk-lib.aws_ec2.Vpc
No description.
natSubnets
aws-cdk-lib.aws_ec2.PublicSubnet[]
No description.
pbSubnets
aws-cdk-lib.aws_ec2.PublicSubnet[]
No description.
pvSubnets
aws-cdk-lib.aws_ec2.PrivateSubnet[]
No description.
subnets
{[ key: string ]: aws-cdk-lib.aws_ec2.Subnet[]}
No description.
public readonly node : Node ;
The tree node.
public readonly endpointOutputs: { [ key : string ] : InterfaceVpcEndpoint | GatewayVpcEndpoint } ;
Type: {[ key: string ]: aws-cdk-lib.aws_ec2.InterfaceVpcEndpoint | aws-cdk-lib.aws_ec2.GatewayVpcEndpoint}
public readonly natProvider: NatProvider ;
Type: aws-cdk-lib.aws_ec2.NatProvider
securityGroupOutputs
Required
public readonly securityGroupOutputs: { [ key : string ] : SecurityGroup } ;
Type: {[ key: string ]: aws-cdk-lib.aws_ec2.SecurityGroup}
public readonly vpc : Vpc ;
Type: aws-cdk-lib.aws_ec2.Vpc
public readonly natSubnets: PublicSubnet [ ] ;
Type: aws-cdk-lib.aws_ec2.PublicSubnet[]
public readonly pbSubnets: PublicSubnet [ ] ;
Type: aws-cdk-lib.aws_ec2.PublicSubnet[]
public readonly pvSubnets: PrivateSubnet [ ] ;
Type: aws-cdk-lib.aws_ec2.PrivateSubnet[]
public readonly subnets: { [ key : string ] : Subnet [ ] } ;
Type: {[ key: string ]: aws-cdk-lib.aws_ec2.Subnet[]}
import { AddRouteOptions } from '@smallcase/cdk-vpc-module'
const addRouteOptions : AddRouteOptions = { ... }
public readonly routerType: RouterType ;
Type: aws-cdk-lib.aws_ec2.RouterType
What type of router to route this traffic to.
destinationCidrBlock
Optional
public readonly destinationCidrBlock: string ;
Type: string
Default: '0.0.0.0/0'
IPv4 range this route applies to.
destinationIpv6CidrBlock
Optional
public readonly destinationIpv6CidrBlock: string ;
Type: string
Default: Uses IPv6
IPv6 range this route applies to.
enablesInternetConnectivity
Optional
public readonly enablesInternetConnectivity: boolean ;
Type: boolean
Default: false
Whether this route will enable internet connectivity.
If true, this route will be added before any AWS resources that depend
on internet connectivity in the VPC will be created.
existingVpcPeeringRouteKey
Optional
public readonly existingVpcPeeringRouteKey: string ;
public readonly routerId: string ;
import { NetworkACL } from '@smallcase/cdk-vpc-module'
const networkACL : NetworkACL = { ... }
Name
Type
Description
cidr
aws-cdk-lib.aws_ec2.AclCidr
No description.
traffic
aws-cdk-lib.aws_ec2.AclTraffic
No description.
public readonly cidr : AclCidr ;
Type: aws-cdk-lib.aws_ec2.AclCidr
public readonly traffic: AclTraffic ;
Type: aws-cdk-lib.aws_ec2.AclTraffic
import { PeeringConfig } from '@smallcase/cdk-vpc-module'
const peeringConfig : PeeringConfig = { ... }
public readonly peeringVpcId: string ;
public readonly tags : { [ key : string ] : string } ;
Type: {[ key: string ]: string}
peerAssumeRoleArn
Optional
public readonly peerAssumeRoleArn: string ;
public readonly peerOwnerId: string ;
public readonly peerRegion: string ;
PeeringConnectionInternalType
import { PeeringConnectionInternalType } from '@smallcase/cdk-vpc-module'
const peeringConnectionInternalType : PeeringConnectionInternalType = { ... }
import { SecurityGroupRule } from '@smallcase/cdk-vpc-module'
const securityGroupRule : SecurityGroupRule = { ... }
Name
Type
Description
peer
aws-cdk-lib.aws_ec2.IPeer | aws-cdk-lib.aws_ec2.ISecurityGroup
No description.
port
aws-cdk-lib.aws_ec2.Port
No description.
description
string
No description.
public readonly peer : IPeer | ISecurityGroup ;
Type: aws-cdk-lib.aws_ec2.IPeer | aws-cdk-lib.aws_ec2.ISecurityGroup
public readonly port : Port ;
Type: aws-cdk-lib.aws_ec2.Port
public readonly description: string ;
import { VpcEndpointConfig } from '@smallcase/cdk-vpc-module'
const vpcEndpointConfig : VpcEndpointConfig = { ... }
public readonly name : string ;
public readonly service: InterfaceVpcEndpointAwsService | GatewayVpcEndpointAwsService | InterfaceVpcEndpointService ;
Type: aws-cdk-lib.aws_ec2.InterfaceVpcEndpointAwsService | aws-cdk-lib.aws_ec2.GatewayVpcEndpointAwsService | aws-cdk-lib.aws_ec2.InterfaceVpcEndpointService
public readonly subnetGroupNames: string [ ] ;
public readonly additionalTags: { [ key : string ] : string } ;
Type: {[ key: string ]: string}
public readonly externalSubnets: IExternalVPEndpointSubnets [ ] ;
iamPolicyStatements
Optional
public readonly iamPolicyStatements: PolicyStatement [ ] ;
Type: aws-cdk-lib.aws_iam.PolicyStatement[]
securityGroupRules
Optional
public readonly securityGroupRules: SecurityGroupRule [ ] ;
import { VPCProps } from '@smallcase/cdk-vpc-module'
const vPCProps : VPCProps = { ... }
public readonly subnets: ISubnetsProps [ ] ;
public readonly vpc : VpcProps ;
Type: aws-cdk-lib.aws_ec2.VpcProps
natEipAllocationIds
Optional
public readonly natEipAllocationIds: string [ ] ;
public readonly peeringConfigs: { [ key : string ] : PeeringConfig } ;
public readonly vpcEndpoints: VpcEndpointConfig [ ] ;
IExternalVPEndpointSubnets
public readonly availabilityZone: string ;
public readonly id : string ;
public readonly routeTableId: string ;
availabilityZones
Required
public readonly availabilityZones: string [ ] ;
public readonly cidrBlock: string [ ] ;
public readonly subnetGroupName: string ;
public readonly subnetType: SubnetType ;
Type: aws-cdk-lib.aws_ec2.SubnetType
public readonly egressNetworkACL: NetworkACL [ ] ;
ingressNetworkACL
Optional
public readonly ingressNetworkACL: NetworkACL [ ] ;
public readonly routes: AddRouteOptions [ ] ;
public readonly tags : { [ key : string ] : string } ;
Type: {[ key: string ]: string}
public readonly useSubnetForNAT: boolean ;