Interface RequestedSubnet
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RequestedSubnet.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:19.565Z")
@Stability(Stable)
public interface RequestedSubnet
extends software.amazon.jsii.JsiiSerializable
Subnet requested for allocation.
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.*;
RequestedSubnet requestedSubnet = 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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRequestedSubnetstatic final classAn implementation forRequestedSubnet -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestedSubnet.Builderbuilder()The availability zone for the subnet.Specify configuration parameters for a single subnet group in a VPC.Id for the Subnet construct.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZone
The availability zone for the subnet. -
getConfiguration
Specify configuration parameters for a single subnet group in a VPC. -
getSubnetConstructId
Id for the Subnet construct. -
builder
- Returns:
- a
RequestedSubnet.BuilderofRequestedSubnet
-