IpAddresses Class
IpAddress options to define VPC V2.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2_alpha from '@aws-cdk/aws-ec2-alpha';
const ipAddresses = new ec2_alpha.IpAddresses();
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2_alpha as ec2_alpha
ip_addresses = ec2_alpha.IpAddresses()
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.alpha.*;
IpAddresses ipAddresses = new IpAddresses();
csharp
// Install: dotnet add package Amazon.CDK.AWS.ec2.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ec2.Alpha;
var ipAddresses = new IpAddresses();
go
// Install: go get github.com/aws/aws-cdk-go/awsec2alpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import ec2_alpha "github.com/aws/aws-cdk-go/awsec2alpha"
ipAddresses := ec2_alpha.NewIpAddresses()
Initializer
ts
new IpAddresses()
python
IpAddresses()
java
new IpAddresses()
csharp
new IpAddresses()
go
NewIpAddresses()
Methods
amazonProvidedIpv6(props: SecondaryAddressProps): IIpAddresses@staticmethod def amazon_provided_ipv6(props: SecondaryAddressProps) -> IIpAddressespublic static IIpAddresses amazonProvidedIpv6(SecondaryAddressProps props)public static IIpAddresses AmazonProvidedIpv6(SecondaryAddressProps props)func AmazonProvidedIpv6(Props SecondaryAddressProps) IIpAddressesstatic#Amazon Provided Ipv6 range.
ipv4(ipv4Cidr: string, props?: SecondaryAddressProps): IIpAddresses@staticmethod def ipv4(ipv4_cidr: str, props: typing.Optional[SecondaryAddressProps] = None) -> IIpAddressespublic static IIpAddresses ipv4(String ipv4Cidr, SecondaryAddressProps props)public static IIpAddresses Ipv4(string ipv4Cidr, SecondaryAddressProps? props = null)func Ipv4(Ipv4Cidr *string, Props SecondaryAddressProps) IIpAddressesstatic#An IPv4 CIDR Range.
ipv4Ipam(ipv4IpamOptions: IpamOptions): IIpAddresses@staticmethod def ipv4_ipam(ipv4_ipam_options: IpamOptions) -> IIpAddressespublic static IIpAddresses ipv4Ipam(IpamOptions ipv4IpamOptions)public static IIpAddresses Ipv4Ipam(IpamOptions ipv4IpamOptions)func Ipv4Ipam(Ipv4IpamOptions IpamOptions) IIpAddressesstatic#An Ipv4 Ipam Pool.
ipv6ByoipPool(props: Ipv6PoolSecondaryAddressProps): IIpAddresses@staticmethod def ipv6_byoip_pool(props: Ipv6PoolSecondaryAddressProps) -> IIpAddressespublic static IIpAddresses ipv6ByoipPool(Ipv6PoolSecondaryAddressProps props)public static IIpAddresses Ipv6ByoipPool(Ipv6PoolSecondaryAddressProps props)func Ipv6ByoipPool(Props Ipv6PoolSecondaryAddressProps) IIpAddressesstatic#A BYOIP IPv6 address pool.
ipv6Ipam(ipv6IpamOptions: IpamOptions): IIpAddresses@staticmethod def ipv6_ipam(ipv6_ipam_options: IpamOptions) -> IIpAddressespublic static IIpAddresses ipv6Ipam(IpamOptions ipv6IpamOptions)public static IIpAddresses Ipv6Ipam(IpamOptions ipv6IpamOptions)func Ipv6Ipam(Ipv6IpamOptions IpamOptions) IIpAddressesstatic#An Ipv6 Ipam Pool.