interface AllocateCidrRequest
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.AllocateCidrRequest |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#AllocateCidrRequest |
Java | software.amazon.awscdk.services.ec2.AllocateCidrRequest |
Python | aws_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,
ipv6AssignAddressOnCreation: false,
mapPublicIpOnLaunch: false,
reserved: false,
},
subnetConstructId: 'subnetConstructId',
}],
vpcCidr: 'vpcCidr',
};
Properties
Name | Type | Description |
---|---|---|
requested | Requested [] | The Subnets to be allocated. |
vpc | string | The IPv4 CIDR block for this Vpc. |
requestedSubnets
Type:
Requested
[]
The Subnets to be allocated.
vpcCidr
Type:
string
The IPv4 CIDR block for this Vpc.