Interface AllocateCidrRequest
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AllocateCidrRequest.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:35.365Z")
@Stability(Stable)
public interface AllocateCidrRequest
extends software.amazon.jsii.JsiiSerializable
Request for subnets CIDR to be allocated for a Vpc.
Example:
// 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.*;
AllocateCidrRequest allocateCidrRequest = AllocateCidrRequest.builder()
.requestedSubnets(List.of(RequestedSubnet.builder()
.availabilityZone("availabilityZone")
.configuration(SubnetConfiguration.builder()
.name("name")
.subnetType(SubnetType.PRIVATE_ISOLATED)
// the properties below are optional
.cidrMask(123)
.ipv6AssignAddressOnCreation(false)
.mapPublicIpOnLaunch(false)
.reserved(false)
.build())
.subnetConstructId("subnetConstructId")
.build()))
.vpcCidr("vpcCidr")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAllocateCidrRequeststatic final classAn implementation forAllocateCidrRequest -
Method Summary
Modifier and TypeMethodDescriptionstatic AllocateCidrRequest.Builderbuilder()The Subnets to be allocated.The IPv4 CIDR block for this Vpc.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRequestedSubnets
The Subnets to be allocated. -
getVpcCidr
The IPv4 CIDR block for this Vpc. -
builder
- Returns:
- a
AllocateCidrRequest.BuilderofAllocateCidrRequest
-