Skip to content
v2.273.0

AvailabilityZoneAddress Struct ​

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 ​

ts
// 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 ​

allocationIdsstring[]allocation_idstyping.List[str]allocationIdsList<String>AllocationIdsstring[]AllocationIds*[]*stringrequired#
The allocation IDs of the Elastic IP addresses to be used for handling outbound NAT traffic in this specific Availability Zone.
availabilityZonestringavailability_zonestravailabilityZoneStringAvailabilityZonestringAvailabilityZone*string= Use availabilityZoneId instead#
The Availability Zone where this specific NAT gateway configuration will be active.

Either availabilityZone or availabilityZoneId must be specified.

availabilityZoneIdstringavailability_zone_idstravailabilityZoneIdStringAvailabilityZoneIdstringAvailabilityZoneId*string= 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.