Interface AllocateCidrRequest
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AllocateCidrRequest.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-24T10:56:30.459Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAllocateCidrRequest
static final class
An implementation forAllocateCidrRequest
-
Method Summary
Modifier and TypeMethodDescriptionstatic AllocateCidrRequest.Builder
builder()
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.Builder
ofAllocateCidrRequest
-