@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:06.722Z") @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.
|
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) static SelectedSubnets.Builder builder()
SelectedSubnets.Builder of SelectedSubnetsCopyright © 2022. All rights reserved.