interface AllocatedSubnet
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.AllocatedSubnet |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#AllocatedSubnet |
Java | software.amazon.awscdk.services.ec2.AllocatedSubnet |
Python | aws_cdk.aws_ec2.AllocatedSubnet |
TypeScript (source) | aws-cdk-lib » aws_ec2 » AllocatedSubnet |
CIDR Allocated Subnet.
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 allocatedSubnet: ec2.AllocatedSubnet = {
cidr: 'cidr',
// the properties below are optional
ipv6Cidr: 'ipv6Cidr',
};
Properties
Name | Type | Description |
---|---|---|
cidr | string | IPv4 CIDR Allocations for a Subnet. |
ipv6 | string | IPv6 CIDR Allocations for a Subnet. |
cidr
Type:
string
IPv4 CIDR Allocations for a Subnet.
Note this is specific to the IPv4 CIDR.
ipv6Cidr?
Type:
string
(optional, default: no IPV6 CIDR)
IPv6 CIDR Allocations for a Subnet.
Note this is specific to the IPv6 CIDR.