AllocateCidrRequest Struct
Request for subnets CIDR to be allocated for a Vpc.
Example
ts
// 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,
ipv6AssignAddressOnCreation: false,
mapPublicIpOnLaunch: false,
reserved: false,
},
subnetConstructId: 'subnetConstructId',
}],
vpcCidr: 'vpcCidr',
};
Properties
requestedSubnetsRequestedSubnet[]requested_subnetstyping.List[RequestedSubnet]requestedSubnetsList<RequestedSubnet>RequestedSubnetsRequestedSubnet[]RequestedSubnets*[]RequestedSubnetrequired#The Subnets to be allocated.
The IPv4 CIDR block for this Vpc.