Interface CfnNatGatewayProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNatGatewayProps.Jsii$Proxy
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()
.allocationId("allocationId")
.availabilityMode("availabilityMode")
.availabilityZoneAddresses(List.of(AvailabilityZoneAddressProperty.builder()
.allocationIds(List.of("allocationIds"))
// the properties below are optional
.availabilityZone("availabilityZone")
.availabilityZoneId("availabilityZoneId")
.build()))
.connectivityType("connectivityType")
.maxDrainDurationSeconds(123)
.privateIpAddress("privateIpAddress")
.secondaryAllocationIds(List.of("secondaryAllocationIds"))
.secondaryPrivateIpAddressCount(123)
.secondaryPrivateIpAddresses(List.of("secondaryPrivateIpAddresses"))
.subnetId("subnetId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcId("vpcId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnNatGatewayPropsstatic final classAn implementation forCfnNatGatewayProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnNatGatewayProps.Builderbuilder()default Object[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.default StringIndicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway.default ObjectFor regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ.default StringIndicates whether the NAT gateway supports public or private connectivity.default NumberThe maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress.default StringThe private IPv4 address to assign to the NAT gateway.Secondary EIP allocation IDs.default Number[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.Secondary private IPv4 addresses.default ObjectThe ID of the subnet in which the NAT gateway is located.getTags()The tags for the NAT gateway.default StringgetVpcId()The ID of the VPC in which the NAT gateway is located.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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.
- See Also:
-
getAvailabilityMode
Indicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway.A zonal NAT gateway is a NAT Gateway that provides redundancy and scalability within a single availability zone. A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide .
- See Also:
-
getAvailabilityZoneAddresses
For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ.The regional NAT gateway uses these EIPs to handle outbound NAT traffic from their respective AZs. If not specified, the NAT gateway will automatically expand to new AZs and associate EIPs upon detection of an elastic network interface. If you specify this parameter, auto-expansion is disabled and you must manually manage AZ coverage.
A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnNatGateway.AvailabilityZoneAddressProperty>- See Also:
-
getConnectivityType
Indicates whether the NAT gateway supports public or private connectivity.The default is public connectivity.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
getSecondaryAllocationIds
Secondary EIP allocation IDs.For more information, see Create a NAT gateway in the Amazon VPC User Guide .
- See Also:
-
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 .
SecondaryPrivateIpAddressCountandSecondaryPrivateIpAddressescannot be set at the same time.- See Also:
-
getSecondaryPrivateIpAddresses
Secondary private IPv4 addresses.For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .
SecondaryPrivateIpAddressCountandSecondaryPrivateIpAddressescannot be set at the same time.- See Also:
-
getSubnetId
The ID of the subnet in which the NAT gateway is located.Returns union: either
StringorISubnetRef- See Also:
-
getTags
The tags for the NAT gateway.- See Also:
-
getVpcId
The ID of the VPC in which the NAT gateway is located.- See Also:
-
builder
- Returns:
- a
CfnNatGatewayProps.BuilderofCfnNatGatewayProps
-