AvailabilityZoneAddress
- class aws_cdk.aws_ec2.AvailabilityZoneAddress(*, allocation_ids, availability_zone=None, availability_zone_id=None)
Bases:
objectConfiguration for a specific Availability Zone in a Regional NAT Gateway.
This is used to manually specify which EIPs to use in each AZ.
- Parameters:
allocation_ids (
Sequence[str]) – The allocation IDs of the Elastic IP addresses to be used for handling outbound NAT traffic in this specific Availability Zone.availability_zone (
Optional[str]) – The Availability Zone where this specific NAT gateway configuration will be active. EitheravailabilityZoneoravailabilityZoneIdmust be specified. Default: - Use availabilityZoneId insteadavailability_zone_id (
Optional[str]) – The ID of the Availability Zone where this specific NAT gateway configuration will be active. EitheravailabilityZoneoravailabilityZoneIdmust be specified. Default: - Use availabilityZone instead
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 availability_zone_address = ec2.AvailabilityZoneAddress( allocation_ids=["allocationIds"], # the properties below are optional availability_zone="availabilityZone", availability_zone_id="availabilityZoneId" )
Attributes
- allocation_ids
The allocation IDs of the Elastic IP addresses to be used for handling outbound NAT traffic in this specific Availability Zone.
- availability_zone
The Availability Zone where this specific NAT gateway configuration will be active.
Either
availabilityZoneoravailabilityZoneIdmust be specified.- Default:
Use availabilityZoneId instead
- availability_zone_id
The ID of the Availability Zone where this specific NAT gateway configuration will be active.
Either
availabilityZoneoravailabilityZoneIdmust be specified.- Default:
Use availabilityZone instead