All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.ec2.alpha.IpCidr Maven / Gradle / Ivy

There is a newer version: 2.167.2-alpha.0
Show newest version
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.PRIVATE_ISOLATED)
 *         .build();
 * InternetGateway igw = InternetGateway.Builder.create(this, "IGW")
 *         .vpc(myVpc)
 *         .build();
 * Route.Builder.create(this, "IgwRoute")
 *         .routeTable(routeTable)
 *         .destination("0.0.0.0/0")
 *         .target(Map.of("gateway", igw))
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.102.0 (build e354887)", date = "2024-09-10T01:10:18.078Z") @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 - 2024 Weber Informatics LLC | Privacy Policy