aws-cdk-lib.aws_ec2.RequestedSubnet

interface RequestedSubnet

LanguageType name
.NETAmazon.CDK.AWS.EC2.RequestedSubnet
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#RequestedSubnet
Javasoftware.amazon.awscdk.services.ec2.RequestedSubnet
Pythonaws_cdk.aws_ec2.RequestedSubnet
TypeScript (source)aws-cdk-lib » aws_ec2 » RequestedSubnet

Subnet requested for allocation.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const requestedSubnet: ec2.RequestedSubnet = {
  availabilityZone: 'availabilityZone',
  configuration: {
    name: 'name',
    subnetType: ec2.SubnetType.PRIVATE_ISOLATED,

    // the properties below are optional
    cidrMask: 123,
    mapPublicIpOnLaunch: false,
    reserved: false,
  },
  subnetConstructId: 'subnetConstructId',
};

Properties

NameTypeDescription
availabilityZonestringThe availability zone for the subnet.
configurationSubnetConfigurationSpecify configuration parameters for a single subnet group in a VPC.
subnetConstructIdstringId for the Subnet construct.

availabilityZone

Type: string

The availability zone for the subnet.


configuration

Type: SubnetConfiguration

Specify configuration parameters for a single subnet group in a VPC.


subnetConstructId

Type: string

Id for the Subnet construct.