interface SubnetV2Attributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ec2.Alpha.SubnetV2Attributes |
![]() | github.com/aws/aws-cdk-go/awsec2alpha/v2#SubnetV2Attributes |
![]() | software.amazon.awscdk.services.ec2.alpha.SubnetV2Attributes |
![]() | aws_cdk.aws_ec2_alpha.SubnetV2Attributes |
![]() | @aws-cdk/aws-ec2-alpha ยป SubnetV2Attributes |
Properties required to import a subnet.
Example
SubnetV2.fromSubnetV2Attributes(this, 'ImportedSubnet', {
subnetId: 'subnet-0123456789abcdef0',
availabilityZone: 'us-west-2a',
ipv4CidrBlock: '10.2.0.0/24',
routeTableId: 'rtb-0871c310f98da2cbb',
subnetType: SubnetType.PRIVATE_ISOLATED,
});
Properties
Name | Type | Description |
---|---|---|
availability | string | The Availability Zone this subnet is located in. |
ipv4 | string | The IPv4 CIDR block associated with the subnet. |
subnet | string | The subnetId for this particular subnet. |
subnet | Subnet | The type of subnet (public or private) that this subnet represents. |
ipv6 | string | The IPv4 CIDR block associated with the subnet. |
route | string | The ID of the route table for this particular subnet. |
subnet | string | Name of the given subnet. |
availabilityZone
Type:
string
The Availability Zone this subnet is located in.
ipv4CidrBlock
Type:
string
The IPv4 CIDR block associated with the subnet.
subnetId
Type:
string
The subnetId for this particular subnet.
subnetType
Type:
Subnet
The type of subnet (public or private) that this subnet represents.
ipv6CidrBlock?
Type:
string
(optional, default: No CIDR information, cannot use CIDR filter features)
The IPv4 CIDR block associated with the subnet.
routeTableId?
Type:
string
(optional, default: No route table information, cannot create VPC endpoints)
The ID of the route table for this particular subnet.
subnetName?
Type:
string
(optional, default: no subnet name)
Name of the given subnet.