Skip to content
v2.274.0

VpcSubnet Struct ​

A subnet representation that the VPC provider uses.

Example ​

ts
// 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 ​

availabilityZonestringavailability_zonestravailabilityZoneStringAvailabilityZonestringAvailabilityZone*stringrequired#
The code of the availability zone this subnet is in (for example, 'us-west-2a').
cidroptionalstringcidroptionalstrcidroptionalStringCidroptionalstringCidroptional*string#
CIDR range of the subnet.

Default: CIDR information not available

routeTableIdstringroute_table_idstrrouteTableIdStringRouteTableIdstringRouteTableId*stringrequired#
The identifier of the route table for this subnet.
subnetIdstringsubnet_idstrsubnetIdStringSubnetIdstringSubnetId*stringrequired#
The identifier of the subnet.