Interface SelectedSubnets
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SelectedSubnets.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.530Z")
@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") .cidr("10.0.0.0/16") .build(); // Iterate the private subnets SelectedSubnets selection = vpc.selectSubnets(SubnetSelection.builder() .subnetType(SubnetType.PRIVATE_WITH_NAT) .build()); for (Object subnet : selection.getSubnets()) { }
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forSelectedSubnets
static final class
An implementation forSelectedSubnets
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectedSubnets.Builder
builder()
The respective AZs of each subnet.Whether any of the given subnets are from the VPC's public subnets.Dependency representing internet connectivity for these subnets.default Boolean
The 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
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.Builder
ofSelectedSubnets
-