Class RegionalNatGatewayProviderProps.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class RegionalNatGatewayProviderProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RegionalNatGatewayProviderProps
An implementation for RegionalNatGatewayProviderProps
  • 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(RegionalNatGatewayProviderProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the RegionalNatGatewayProviderProps.Builder.
  • Method Details

    • getAllocationId

      public final String getAllocationId()
      Description copied from interface: RegionalNatGatewayProviderProps
      The allocation ID of the Elastic IP address to use for this NAT gateway.

      Cannot be specified together with eip. Ignored when availabilityZoneAddresses is specified.

      Default: - A new EIP is automatically allocated

      Specified by:
      getAllocationId in interface RegionalNatGatewayProviderProps
    • getAvailabilityZoneAddresses

      public final List<AvailabilityZoneAddress> getAvailabilityZoneAddresses()
      Description copied from interface: RegionalNatGatewayProviderProps
      Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses to use in each AZ.

      When specified, allocationId and eip are ignored. This enables manual mode for Regional NAT Gateway where you control EIP allocation per AZ.

      In manual mode the gateway only serves the listed Availability Zones and does not expand to other zones automatically, so every Availability Zone that contains a private subnet routed through this gateway must be listed. When the zone names are known at synthesis time, a private subnet in an unlisted zone is rejected with an error. Entries that use availabilityZoneId or unresolved tokens cannot be checked and are assumed to be correct.

      Default: - Automatic mode: AWS manages AZ coverage and EIP allocation

      Specified by:
      getAvailabilityZoneAddresses in interface RegionalNatGatewayProviderProps
    • getEip

      public final IEIPRef getEip()
      Description copied from interface: RegionalNatGatewayProviderProps
      Reference to an existing EIP to use for this NAT gateway.

      Cannot be specified together with allocationId. Ignored when availabilityZoneAddresses is specified.

      Default: - A new EIP is automatically allocated

      Specified by:
      getEip in interface RegionalNatGatewayProviderProps
    • getMaxDrainDuration

      public final Duration getMaxDrainDuration()
      Description copied from interface: RegionalNatGatewayProviderProps
      Maximum amount of time to wait before forcibly releasing IP addresses if connections are still in progress.

      Default: Duration.seconds(350)

      Specified by:
      getMaxDrainDuration in interface RegionalNatGatewayProviderProps
    • $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