Interface SelectedSubnets

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
SelectedSubnets.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.132Z") @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()) {
 }
 
  • 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 software.constructs.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()
      Returns:
      a SelectedSubnets.Builder of SelectedSubnets