software.amazon.awscdk.services.ec2.alpha.IpAddresses Maven / Gradle / Ivy
Show all versions of ec2-alpha Show documentation
package software.amazon.awscdk.services.ec2.alpha;
/**
* (experimental) IpAddress options to define VPC V2.
*
* Example:
*
*
* Stack stack = new Stack();
* VpcV2 myVpc = VpcV2.Builder.create(this, "Vpc")
* .secondaryAddressBlocks(List.of(IpAddresses.amazonProvidedIpv6(SecondaryAddressProps.builder().cidrBlockName("AmazonProvidedIp").build())))
* .build();
* SubnetV2.Builder.create(this, "subnetA")
* .vpc(myVpc)
* .availabilityZone("us-east-1a")
* .ipv4CidrBlock(new IpCidr("10.0.0.0/24"))
* .ipv6CidrBlock(new IpCidr("2a05:d02c:25:4000::/60"))
* .subnetType(SubnetType.PRIVATE_ISOLATED)
* .build();
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.102.0 (build e354887)", date = "2024-09-10T01:10:18.077Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.ec2.alpha.$Module.class, fqn = "@aws-cdk/aws-ec2-alpha.IpAddresses")
public class IpAddresses extends software.amazon.jsii.JsiiObject {
protected IpAddresses(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected IpAddresses(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public IpAddresses() {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
}
/**
* (experimental) Amazon Provided Ipv6 range.
*
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.IIpAddresses amazonProvidedIpv6(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.SecondaryAddressProps props) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ec2.alpha.IpAddresses.class, "amazonProvidedIpv6", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.IIpAddresses.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) An IPv4 CIDR Range.
*
* @param ipv4Cidr This parameter is required.
* @param props
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.IIpAddresses ipv4(final @org.jetbrains.annotations.NotNull java.lang.String ipv4Cidr, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.alpha.SecondaryAddressProps props) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ec2.alpha.IpAddresses.class, "ipv4", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.IIpAddresses.class), new Object[] { java.util.Objects.requireNonNull(ipv4Cidr, "ipv4Cidr is required"), props });
}
/**
* (experimental) An IPv4 CIDR Range.
*
* @param ipv4Cidr This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.IIpAddresses ipv4(final @org.jetbrains.annotations.NotNull java.lang.String ipv4Cidr) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ec2.alpha.IpAddresses.class, "ipv4", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.IIpAddresses.class), new Object[] { java.util.Objects.requireNonNull(ipv4Cidr, "ipv4Cidr is required") });
}
/**
* (experimental) An Ipv4 Ipam Pool.
*
* @param ipv4IpamOptions This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.IIpAddresses ipv4Ipam(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.IpamOptions ipv4IpamOptions) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ec2.alpha.IpAddresses.class, "ipv4Ipam", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.IIpAddresses.class), new Object[] { java.util.Objects.requireNonNull(ipv4IpamOptions, "ipv4IpamOptions is required") });
}
/**
* (experimental) An Ipv6 Ipam Pool.
*
* @param ipv6IpamOptions This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.IIpAddresses ipv6Ipam(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.IpamOptions ipv6IpamOptions) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ec2.alpha.IpAddresses.class, "ipv6Ipam", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.IIpAddresses.class), new Object[] { java.util.Objects.requireNonNull(ipv6IpamOptions, "ipv6IpamOptions is required") });
}
}