@aws-cdk_cx-api.VpcSubnet

interface VpcSubnet

LanguageType name
.NETAmazon.CDK.CXAPI.VpcSubnet
Javasoftware.amazon.awscdk.cxapi.VpcSubnet
Pythonaws_cdk.cx_api.VpcSubnet
TypeScript (source)@aws-cdk/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 * as cx_api from '@aws-cdk/cx-api';
const vpcSubnet: cx_api.VpcSubnet = {
  availabilityZone: 'availabilityZone',
  routeTableId: 'routeTableId',
  subnetId: 'subnetId',

  // the properties below are optional
  cidr: 'cidr',
};

Properties

NameTypeDescription
availabilityZonestringThe code of the availability zone this subnet is in (for example, 'us-west-2a').
routeTableIdstringThe identifier of the route table for this subnet.
subnetIdstringThe identifier of the subnet.
cidr?stringCIDR 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.