aws-cdk-lib.aws_ec2.AllocateCidrRequest

interface AllocateCidrRequest

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

Request for subnets Cidr to be allocated for a Vpc.

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 allocateCidrRequest: ec2.AllocateCidrRequest = {
  requestedSubnets: [{
    availabilityZone: 'availabilityZone',
    configuration: {
      name: 'name',
      subnetType: ec2.SubnetType.PRIVATE_ISOLATED,

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

Properties

NameTypeDescription
requestedSubnetsRequestedSubnet[]The Subnets to be allocated.
vpcCidrstringThe IPv4 CIDR block for this Vpc.

requestedSubnets

Type: RequestedSubnet[]

The Subnets to be allocated.


vpcCidr

Type: string

The IPv4 CIDR block for this Vpc.