Interface SelectedSubnets
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SelectedSubnets.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.548Z")
@Stability(Stable)
public interface SelectedSubnets
extends software.amazon.jsii.JsiiSerializable
Result of selecting a subset of subnets from a VPC.
Example:
Vpc vpc = Vpc.Builder.create(this, "TheVPC")
.ipAddresses(IpAddresses.cidr("10.0.0.0/16"))
.build();
// Iterate the private subnets
SelectedSubnets selection = vpc.selectSubnets(SubnetSelection.builder()
.subnetType(SubnetType.PRIVATE_WITH_EGRESS)
.build());
for (Object subnet : selection.getSubnets()) {
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSelectedSubnetsstatic final classAn implementation forSelectedSubnets -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectedSubnets.Builderbuilder()The respective AZs of each subnet.Whether any of the given subnets are from the VPC's public subnets.software.constructs.IDependableDependency representing internet connectivity for these subnets.default BooleanThe subnet selection is not actually real yet.The subnet IDs.Selected subnet objects.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZones
The respective AZs of each subnet. -
getHasPublic
Whether any of the given subnets are from the VPC's public subnets. -
getInternetConnectivityEstablished
@Stability(Stable) @NotNull software.constructs.IDependable getInternetConnectivityEstablished()Dependency representing internet connectivity for these subnets. -
getSubnetIds
The subnet IDs. -
getSubnets
Selected subnet objects. -
getIsPendingLookup
The subnet selection is not actually real yet.If this value is true, don't validate anything about the subnets. The count or identities are not known yet, and the validation will most likely fail which will prevent a successful lookup.
Default: false
-
builder
- Returns:
- a
SelectedSubnets.BuilderofSelectedSubnets
-