interface AvailabilityZoneAddress
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.AvailabilityZoneAddress |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#AvailabilityZoneAddress |
Java | software.amazon.awscdk.services.ec2.AvailabilityZoneAddress |
Python | aws_cdk.aws_ec2.AvailabilityZoneAddress |
TypeScript (source) | aws-cdk-lib » aws_ec2 » AvailabilityZoneAddress |
Configuration for a specific Availability Zone in a Regional NAT Gateway.
This is used to manually specify which EIPs to use in each AZ.
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 availabilityZoneAddress: ec2.AvailabilityZoneAddress = {
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 to be used for handling outbound NAT traffic in this specific Availability Zone. |
| availability | string | The Availability Zone where this specific NAT gateway configuration will be active. |
| availability | string | 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 to be used for handling outbound NAT traffic in this specific Availability Zone.
availabilityZone?
Type:
string
(optional, default: Use availabilityZoneId instead)
The Availability Zone where this specific NAT gateway configuration will be active.
Either availabilityZone or availabilityZoneId must be specified.
availabilityZoneId?
Type:
string
(optional, default: Use availabilityZone instead)
The ID of the Availability Zone where this specific NAT gateway configuration will be active.
Either availabilityZone or availabilityZoneId must be specified.

.NET
Go
Java
Python
TypeScript (