interface AvailabilityZoneAddressProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnNatGateway.AvailabilityZoneAddressProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNatGateway_AvailabilityZoneAddressProperty |
Java | software.amazon.awscdk.services.ec2.CfnNatGateway.AvailabilityZoneAddressProperty |
Python | aws_cdk.aws_ec2.CfnNatGateway.AvailabilityZoneAddressProperty |
TypeScript | aws-cdk-lib » aws_ec2 » CfnNatGateway » AvailabilityZoneAddressProperty |
For regional NAT gateways only: The configuration specifying which Elastic IP address (EIP) to use for handling outbound NAT traffic from a specific 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 .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const availabilityZoneAddressProperty: ec2.CfnNatGateway.AvailabilityZoneAddressProperty = {
allocationIds: ['allocationIds'],
// the properties below are optional
availabilityZone: 'availabilityZone',
availabilityZoneId: 'availabilityZoneId',
};
Properties
| Name | Type | Description |
|---|---|---|
| allocation | string[] | The allocation IDs of the Elastic IP addresses (EIPs) to be used for handling outbound NAT traffic in this specific Availability Zone. |
| availability | string | For regional NAT gateways only: The Availability Zone where this specific NAT gateway configuration will be active. |
| availability | string | For regional NAT gateways only: The ID of the Availability Zone where this specific NAT gateway configuration will be active. |
allocationIds
Type:
string[]
The allocation IDs of the Elastic IP addresses (EIPs) to be used for handling outbound NAT traffic in this specific Availability Zone.
availabilityZone?
Type:
string
(optional)
For regional NAT gateways only: The Availability Zone where this specific NAT gateway configuration will be active.
Each AZ in a regional NAT gateway has its own configuration to handle outbound NAT traffic from that AZ.
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.
availabilityZoneId?
Type:
string
(optional)
For regional NAT gateways only: The ID of the Availability Zone where this specific NAT gateway configuration will be active.
Each AZ in a regional NAT gateway has its own configuration to handle outbound NAT traffic from that AZ. Use this instead of AvailabilityZone for consistent identification of AZs across AWS Regions.
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.

.NET
Go
Java
Python
TypeScript