@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:47.062Z") @Stability(value=Experimental) public interface SelectedSubnets extends software.amazon.jsii.JsiiSerializable
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()) {
}
| Modifier and Type | Interface and Description |
|---|---|
static class |
SelectedSubnets.Builder
A builder for
SelectedSubnets |
static class |
SelectedSubnets.Jsii$Proxy
An implementation for
SelectedSubnets |
| Modifier and Type | Method and Description |
|---|---|
static SelectedSubnets.Builder |
builder() |
List<String> |
getAvailabilityZones()
(experimental) The respective AZs of each subnet.
|
Boolean |
getHasPublic()
(experimental) Whether any of the given subnets are from the VPC's public subnets.
|
IDependable |
getInternetConnectivityEstablished()
(experimental) Dependency representing internet connectivity for these subnets.
|
default Boolean |
getIsPendingLookup()
(experimental) The subnet selection is not actually real yet.
|
List<String> |
getSubnetIds()
(experimental) The subnet IDs.
|
List<ISubnet> |
getSubnets()
(experimental) Selected subnet objects.
|
@Stability(value=Experimental) @NotNull List<String> getAvailabilityZones()
@Stability(value=Experimental) @NotNull Boolean getHasPublic()
@Stability(value=Experimental) @NotNull IDependable getInternetConnectivityEstablished()
@Stability(value=Experimental) @NotNull List<String> getSubnetIds()
@Stability(value=Experimental) @NotNull List<ISubnet> getSubnets()
@Stability(value=Experimental) @Nullable default Boolean getIsPendingLookup()
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
@Stability(value=Experimental) static SelectedSubnets.Builder builder()
SelectedSubnets.Builder of SelectedSubnetsCopyright © 2022. All rights reserved.