class IpAddresses
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ec2.Alpha.IpAddresses |
Go | github.com/aws/aws-cdk-go/awsec2alpha/v2#IpAddresses |
Java | software.amazon.awscdk.services.ec2.alpha.IpAddresses |
Python | aws_cdk.aws_ec2_alpha.IpAddresses |
TypeScript (source) | @aws-cdk/aws-ec2-alpha ยป IpAddresses |
IpAddress options to define VPC V2.
Example
const stack = new Stack();
const myVpc = new vpc_v2.VpcV2(this, 'Vpc', {
secondaryAddressBlocks: [
vpc_v2.IpAddresses.amazonProvidedIpv6({ cidrBlockName: 'AmazonProvidedIp'}),
],
});
new vpc_v2.SubnetV2(this, 'subnetA', {
vpc: myVpc,
availabilityZone: 'us-east-1a',
ipv4CidrBlock: new vpc_v2.IpCidr('10.0.0.0/24'),
ipv6CidrBlock: new vpc_v2.IpCidr('2a05:d02c:25:4000::/60'),
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
})
Initializer
new IpAddresses()
Methods
Name | Description |
---|---|
static amazon | Amazon Provided Ipv6 range. |
static ipv4(ipv4Cidr, props?) | An IPv4 CIDR Range. |
static ipv4 | An Ipv4 Ipam Pool. |
static ipv6 | An Ipv6 Ipam Pool. |
ProvidedIpv6(props)
static amazonpublic static amazonProvidedIpv6(props: SecondaryAddressProps): IIpAddresses
Parameters
- props
Secondary
Address Props
Returns
Amazon Provided Ipv6 range.
static ipv4(ipv4Cidr, props?)
public static ipv4(ipv4Cidr: string, props?: SecondaryAddressProps): IIpAddresses
Parameters
- ipv4Cidr
string
- props
Secondary
Address Props
Returns
An IPv4 CIDR Range.
Ipam(ipv4IpamOptions)
static ipv4public static ipv4Ipam(ipv4IpamOptions: IpamOptions): IIpAddresses
Parameters
- ipv4IpamOptions
Ipam
Options
Returns
An Ipv4 Ipam Pool.
Ipam(ipv6IpamOptions)
static ipv6public static ipv6Ipam(ipv6IpamOptions: IpamOptions): IIpAddresses
Parameters
- ipv6IpamOptions
Ipam
Options
Returns
An Ipv6 Ipam Pool.