software.amazon.awscdk.services.ec2.alpha.IpCidr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ec2-alpha Show documentation
Show all versions of ec2-alpha Show documentation
The CDK construct library for VPC V2
package software.amazon.awscdk.services.ec2.alpha;
/**
* (experimental) IPv4 or IPv6 CIDR range for the subnet.
*
* Example:
*
*
* Stack stack = new Stack();
* VpcV2 myVpc = new VpcV2(this, "Vpc");
* RouteTable routeTable = RouteTable.Builder.create(this, "RouteTable")
* .vpc(myVpc)
* .build();
* SubnetV2 subnet = SubnetV2.Builder.create(this, "Subnet")
* .vpc(myVpc)
* .availabilityZone("eu-west-2a")
* .ipv4CidrBlock(new IpCidr("10.0.0.0/24"))
* .subnetType(SubnetType.PUBLIC)
* .build();
* myVpc.addInternetGateway();
* myVpc.addNatGateway(NatGatewayOptions.builder()
* .subnet(subnet)
* .connectivityType(NatConnectivityType.PUBLIC)
* .build());
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T15:56:07.917Z")
@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.IpCidr")
public class IpCidr extends software.amazon.jsii.JsiiObject {
protected IpCidr(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected IpCidr(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public IpCidr(final @org.jetbrains.annotations.NotNull java.lang.String props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) IPv6 CIDR range for the subnet Allowed only if IPv6 is enabled on VPc.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getCidr() {
return software.amazon.jsii.Kernel.get(this, "cidr", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy