Interface SelectedSubnets

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.530Z") @Stability(Stable) public interface SelectedSubnets extends
Result of selecting a subset of subnets from a VPC.


 Vpc vpc = Vpc.Builder.create(this, "TheVPC")
 // Iterate the private subnets
 SelectedSubnets selection = vpc.selectSubnets(SubnetSelection.builder()
 for (Object subnet : selection.getSubnets()) {
  • Method Details

    • getAvailabilityZones

      @Stability(Stable) @NotNull List<String> getAvailabilityZones()
      The respective AZs of each subnet.
    • getHasPublic

      @Stability(Stable) @NotNull Boolean getHasPublic()
      Whether any of the given subnets are from the VPC's public subnets.
    • getInternetConnectivityEstablished

      @Stability(Stable) @NotNull IDependable getInternetConnectivityEstablished()
      Dependency representing internet connectivity for these subnets.
    • getSubnetIds

      @Stability(Stable) @NotNull List<String> getSubnetIds()
      The subnet IDs.
    • getSubnets

      @Stability(Stable) @NotNull List<ISubnet> getSubnets()
      Selected subnet objects.
    • getIsPendingLookup

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) static SelectedSubnets.Builder builder()
      a SelectedSubnets.Builder of SelectedSubnets