Interface CfnNatGatewayProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.785Z") @Stability(Stable) public interface CfnNatGatewayProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnNatGateway.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 CfnNatGatewayProps cfnNatGatewayProps = CfnNatGatewayProps.builder()
         .subnetId("subnetId")
         // the properties below are optional
         .allocationId("allocationId")
         .connectivityType("connectivityType")
         .maxDrainDurationSeconds(123)
         .privateIpAddress("privateIpAddress")
         .secondaryAllocationIds(List.of("secondaryAllocationIds"))
         .secondaryPrivateIpAddressCount(123)
         .secondaryPrivateIpAddresses(List.of("secondaryPrivateIpAddresses"))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getSubnetId

      @Stability(Stable) @NotNull String getSubnetId()
      The ID of the subnet in which the NAT gateway is located.
    • getAllocationId

      @Stability(Stable) @Nullable default String getAllocationId()
      [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.

      This property is required for a public NAT gateway and cannot be specified with a private NAT gateway.

    • getConnectivityType

      @Stability(Stable) @Nullable default String getConnectivityType()
      Indicates whether the NAT gateway supports public or private connectivity.

      The default is public connectivity.

    • getMaxDrainDurationSeconds

      @Stability(Stable) @Nullable default Number getMaxDrainDurationSeconds()
      The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress.

      Default value is 350 seconds.

    • getPrivateIpAddress

      @Stability(Stable) @Nullable default String getPrivateIpAddress()
      The private IPv4 address to assign to the NAT gateway.

      If you don't provide an address, a private IPv4 address will be automatically assigned.

    • getSecondaryAllocationIds

      @Stability(Stable) @Nullable default List<String> getSecondaryAllocationIds()
      Secondary EIP allocation IDs.

      For more information, see Create a NAT gateway in the Amazon VPC User Guide .

    • getSecondaryPrivateIpAddressCount

      @Stability(Stable) @Nullable default Number getSecondaryPrivateIpAddressCount()
      [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.

      For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .

      SecondaryPrivateIpAddressCount and SecondaryPrivateIpAddresses cannot be set at the same time.

    • getSecondaryPrivateIpAddresses

      @Stability(Stable) @Nullable default List<String> getSecondaryPrivateIpAddresses()
      Secondary private IPv4 addresses.

      For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .

      SecondaryPrivateIpAddressCount and SecondaryPrivateIpAddresses cannot be set at the same time.

    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      The tags for the NAT gateway.
    • builder

      @Stability(Stable) static CfnNatGatewayProps.Builder builder()
      Returns:
      a CfnNatGatewayProps.Builder of CfnNatGatewayProps