@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-14T16:25:28.169Z")
public interface CfnNatGatewayProps
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnNatGatewayProps.Builder
A builder for
CfnNatGatewayProps |
static class |
CfnNatGatewayProps.Jsii$Proxy
An implementation for
CfnNatGatewayProps |
Modifier and Type | Method and Description |
---|---|
static CfnNatGatewayProps.Builder |
builder() |
default java.lang.String |
getAllocationId()
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
|
default java.lang.String |
getConnectivityType()
Indicates whether the NAT gateway supports public or private connectivity.
|
default java.lang.Number |
getMaxDrainDurationSeconds()
The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress.
|
default java.lang.String |
getPrivateIpAddress()
The private IPv4 address to assign to the NAT gateway.
|
default java.util.List<java.lang.String> |
getSecondaryAllocationIds()
Secondary EIP allocation IDs.
|
default java.lang.Number |
getSecondaryPrivateIpAddressCount()
[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.
|
default java.util.List<java.lang.String> |
getSecondaryPrivateIpAddresses()
Secondary private IPv4 addresses.
|
java.lang.String |
getSubnetId()
The ID of the subnet in which the NAT gateway is located.
|
default java.util.List<CfnTag> |
getTags()
The tags for the NAT gateway.
|
java.lang.String getSubnetId()
default java.lang.String getAllocationId()
This property is required for a public NAT gateway and cannot be specified with a private NAT gateway.
default java.lang.String getConnectivityType()
The default is public connectivity.
default java.lang.Number getMaxDrainDurationSeconds()
Default value is 350 seconds.
default java.lang.String getPrivateIpAddress()
If you don't provide an address, a private IPv4 address will be automatically assigned.
default java.util.List<java.lang.String> getSecondaryAllocationIds()
For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .
default java.lang.Number getSecondaryPrivateIpAddressCount()
For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .
SecondaryPrivateIpAddressCount
andSecondaryPrivateIpAddresses
cannot be set at the same time.
default java.util.List<java.lang.String> getSecondaryPrivateIpAddresses()
For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .
SecondaryPrivateIpAddressCount
andSecondaryPrivateIpAddresses
cannot be set at the same time.
default java.util.List<CfnTag> getTags()
static CfnNatGatewayProps.Builder builder()
CfnNatGatewayProps.Builder
of CfnNatGatewayProps