Interface NatGatewayOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
NatGatewayProps
- All Known Implementing Classes:
NatGatewayOptions.Jsii$Proxy
,NatGatewayProps.Jsii$Proxy
Example:
Stack stack = new Stack(); VpcV2 myVpc = new VpcV2(this, "Vpc"); RouteTable routeTable = RouteTable.Builder.create(this, "RouteTable") .vpc(myVpc) .build(); SubnetV2 subnet = SubnetV2.Builder.create(this, "Subnet") .vpc(myVpc) .availabilityZone("eu-west-2a") .ipv4CidrBlock(new IpCidr("10.0.0.0/24")) .subnetType(SubnetType.PUBLIC) .build(); myVpc.addInternetGateway(); myVpc.addNatGateway(NatGatewayOptions.builder() .subnet(subnet) .connectivityType(NatConnectivityType.PUBLIC) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forNatGatewayOptions
static final class
An implementation forNatGatewayOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic NatGatewayOptions.Builder
builder()
default String
(experimental) AllocationID of Elastic IP address that's associated with the NAT gateway.default NatConnectivityType
(experimental) Indicates whether the NAT gateway supports public or private connectivity.default Duration
(experimental) The maximum amount of time to wait before forcibly releasing the IP addresses if connections are still in progress.default String
(experimental) The resource name of the NAT gateway.default String
(experimental) The private IPv4 address to assign to the NAT gateway.(experimental) Secondary EIP allocation IDs.default Number
(experimental) The number of secondary private IPv4 addresses you want to assign to the NAT gateway.(experimental) Secondary private IPv4 addresses.(experimental) The subnet in which the NAT gateway is located.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSubnet
(experimental) The subnet in which the NAT gateway is located. -
getAllocationId
(experimental) AllocationID of 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.
Default: - attr.allocationID of a new Elastic IP created by default //TODO: ADD L2 for elastic ip
-
getConnectivityType
(experimental) Indicates whether the NAT gateway supports public or private connectivity.Default: NatConnectivityType.Public
-
getMaxDrainDuration
(experimental) The maximum amount of time to wait before forcibly releasing the IP addresses if connections are still in progress.Default: 350seconds
-
getNatGatewayName
(experimental) The resource name of the NAT gateway.Default: - NATGW provisioned without any name
-
getPrivateIpAddress
(experimental) The private IPv4 address to assign to the NAT gateway.Default: - If you don't provide an address, a private IPv4 address will be automatically assigned.
-
getSecondaryAllocationIds
(experimental) Secondary EIP allocation IDs.Default: - no secondary allocation IDs attached to NATGW
- See Also:
-
getSecondaryPrivateIpAddressCount
(experimental) The number of secondary private IPv4 addresses you want to assign to the NAT gateway.SecondaryPrivateIpAddressCount
andSecondaryPrivateIpAddresses
cannot be set at the same time.Default: - no secondary allocation IDs associated with NATGW
- See Also:
-
getSecondaryPrivateIpAddresses
(experimental) Secondary private IPv4 addresses.SecondaryPrivateIpAddressCount
andSecondaryPrivateIpAddresses
cannot be set at the same time.Default: - no secondary private IpAddresses associated with NATGW
- See Also:
-
builder
- Returns:
- a
NatGatewayOptions.Builder
ofNatGatewayOptions
-