interface VpcSubnet
Language | Type name |
---|---|
![]() | Amazon.CDK.CXAPI.VpcSubnet |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/cxapi#VpcSubnet |
![]() | software.amazon.awscdk.cxapi.VpcSubnet |
![]() | aws_cdk.cx_api.VpcSubnet |
![]() | aws-cdk-lib » cx_api » VpcSubnet |
A subnet representation that the VPC provider uses.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cx_api } from 'aws-cdk-lib';
const vpcSubnet: cx_api.VpcSubnet = {
availabilityZone: 'availabilityZone',
routeTableId: 'routeTableId',
subnetId: 'subnetId',
// the properties below are optional
cidr: 'cidr',
};
Properties
Name | Type | Description |
---|---|---|
availability | string | The code of the availability zone this subnet is in (for example, 'us-west-2a'). |
route | string | The identifier of the route table for this subnet. |
subnet | string | The identifier of the subnet. |
cidr? | string | CIDR range of the subnet. |
availabilityZone
Type:
string
The code of the availability zone this subnet is in (for example, 'us-west-2a').
routeTableId
Type:
string
The identifier of the route table for this subnet.
subnetId
Type:
string
The identifier of the subnet.
cidr?
Type:
string
(optional, default: CIDR information not available)
CIDR range of the subnet.