Interface AvailabilityZoneAddress

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AvailabilityZoneAddress.Jsii$Proxy

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-09-30T11:04:49.812Z") @Stability(Stable) public interface AvailabilityZoneAddress extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.ec2.*;
 AvailabilityZoneAddress availabilityZoneAddress = AvailabilityZoneAddress.builder()
         .allocationIds(List.of("allocationIds"))
         // the properties below are optional
         .availabilityZone("availabilityZone")
         .availabilityZoneId("availabilityZoneId")
         .build();
 
  • Method Details

    • getAllocationIds

      @Stability(Stable) @NotNull List<String> getAllocationIds()
      The allocation IDs of the Elastic IP addresses to be used for handling outbound NAT traffic in this specific Availability Zone.
    • getAvailabilityZone

      @Stability(Stable) @Nullable default String getAvailabilityZone()
      The Availability Zone where this specific NAT gateway configuration will be active.

      Either availabilityZone or availabilityZoneId must be specified.

      Default: - Use availabilityZoneId instead

    • getAvailabilityZoneId

      @Stability(Stable) @Nullable default String getAvailabilityZoneId()
      The ID of the Availability Zone where this specific NAT gateway configuration will be active.

      Either availabilityZone or availabilityZoneId must be specified.

      Default: - Use availabilityZone instead

    • builder

      @Stability(Stable) static AvailabilityZoneAddress.Builder builder()
      Returns:
      a AvailabilityZoneAddress.Builder of AvailabilityZoneAddress