Class SubnetSelection.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.SubnetSelection.Jsii$Proxy
All Implemented Interfaces:
SubnetSelection, software.amazon.jsii.JsiiSerializable
Enclosing interface:
SubnetSelection

@Stability(Stable) @Internal public static final class SubnetSelection.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SubnetSelection
An implementation for SubnetSelection
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(SubnetSelection.Builder builder)
      Constructor that initializes the object based on literal property values passed by the SubnetSelection.Builder.
  • Method Details

    • getAvailabilityZones

      public final List<String> getAvailabilityZones()
      Description copied from interface: SubnetSelection
      Select subnets only in the given AZs.

      Default: no filtering on AZs is done

      Specified by:
      getAvailabilityZones in interface SubnetSelection
    • getOnePerAz

      public final Boolean getOnePerAz()
      Description copied from interface: SubnetSelection
      If true, return at most one subnet per AZ.

      Default: false

      Specified by:
      getOnePerAz in interface SubnetSelection
    • getSubnetFilters

      public final List<SubnetFilter> getSubnetFilters()
      Description copied from interface: SubnetSelection
      List of provided subnet filters.

      Default: - none

      Specified by:
      getSubnetFilters in interface SubnetSelection
    • getSubnetGroupName

      public final String getSubnetGroupName()
      Description copied from interface: SubnetSelection
      Select the subnet group with the given name.

      Select the subnet group with the given name. This only needs to be used if you have multiple subnet groups of the same type and you need to distinguish between them. Otherwise, prefer subnetType.

      This field does not select individual subnets, it selects all subnets that share the given subnet group name. This is the name supplied in subnetConfiguration.

      At most one of subnetType and subnetGroupName can be supplied.

      Default: - Selection by type instead of by name

      Specified by:
      getSubnetGroupName in interface SubnetSelection
    • getSubnets

      public final List<ISubnet> getSubnets()
      Description copied from interface: SubnetSelection
      Explicitly select individual subnets.

      Use this if you don't want to automatically use all subnets in a group, but have a need to control selection down to individual subnets.

      Cannot be specified together with subnetType or subnetGroupName.

      Default: - Use all subnets in a selected group (all private subnets by default)

      Specified by:
      getSubnets in interface SubnetSelection
    • getSubnetType

      public final SubnetType getSubnetType()
      Description copied from interface: SubnetSelection
      Select all subnets of the given type.

      At most one of subnetType and subnetGroupName can be supplied.

      Default: SubnetType.PRIVATE_WITH_EGRESS (or ISOLATED or PUBLIC if there are no PRIVATE_WITH_EGRESS subnets)

      Specified by:
      getSubnetType in interface SubnetSelection
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object