AllocatedSubnet Struct
CIDR Allocated Subnet.
| Source | aws-ec2/lib/ip-addresses.ts |
|---|---|
| Type last changed |
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 allocatedSubnet: ec2.AllocatedSubnet = {
cidr: 'cidr',
// the properties below are optional
ipv6Cidr: 'ipv6Cidr',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
allocated_subnet = ec2.AllocatedSubnet(
cidr="cidr",
# the properties below are optional
ipv6_cidr="ipv6Cidr"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
AllocatedSubnet allocatedSubnet = AllocatedSubnet.builder()
.cidr("cidr")
// the properties below are optional
.ipv6Cidr("ipv6Cidr")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var allocatedSubnet = new AllocatedSubnet {
Cidr = "cidr",
// the properties below are optional
Ipv6Cidr = "ipv6Cidr"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
allocatedSubnet := &AllocatedSubnet{
Cidr: jsii.String("cidr"),
// the properties below are optional
Ipv6Cidr: jsii.String("ipv6Cidr"),
}
Properties
IPv4 CIDR Allocations for a Subnet.
Note this is specific to the IPv4 CIDR.
ipv6Cidroptionalstringipv6_cidroptionalstripv6CidroptionalStringIpv6CidroptionalstringIpv6Cidroptional*string #IPv6 CIDR Allocations for a Subnet.
Default: no IPV6 CIDR
Note this is specific to the IPv6 CIDR.