Class AvailabilityZoneAddress
Configuration for a specific Availability Zone in a Regional NAT Gateway.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AvailabilityZoneAddress : IAvailabilityZoneAddress
Syntax (vb)
Public Class AvailabilityZoneAddress Implements IAvailabilityZoneAddress
Remarks
This is used to manually specify which EIPs to use in each AZ.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var availabilityZoneAddress = new AvailabilityZoneAddress {
AllocationIds = new [] { "allocationIds" },
// the properties below are optional
AvailabilityZone = "availabilityZone",
AvailabilityZoneId = "availabilityZoneId"
};
Synopsis
Constructors
| AvailabilityZoneAddress() | Configuration for a specific Availability Zone in a Regional NAT Gateway. |
Properties
| AllocationIds | The allocation IDs of the Elastic IP addresses to be used for handling outbound NAT traffic in this specific Availability Zone. |
| AvailabilityZone | The Availability Zone where this specific NAT gateway configuration will be active. |
| AvailabilityZoneId | The ID of the Availability Zone where this specific NAT gateway configuration will be active. |
Constructors
AvailabilityZoneAddress()
Configuration for a specific Availability Zone in a Regional NAT Gateway.
public AvailabilityZoneAddress()
Remarks
This is used to manually specify which EIPs to use in each AZ.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var availabilityZoneAddress = new AvailabilityZoneAddress {
AllocationIds = new [] { "allocationIds" },
// the properties below are optional
AvailabilityZone = "availabilityZone",
AvailabilityZoneId = "availabilityZoneId"
};
Properties
AllocationIds
The allocation IDs of the Elastic IP addresses to be used for handling outbound NAT traffic in this specific Availability Zone.
public string[] AllocationIds { get; set; }
Property Value
string[]
Remarks
This is used to manually specify which EIPs to use in each AZ.
ExampleMetadata: fixture=_generated
AvailabilityZone
The Availability Zone where this specific NAT gateway configuration will be active.
public string? AvailabilityZone { get; set; }
Property Value
Remarks
Either availabilityZone or availabilityZoneId must be specified.
Default: - Use availabilityZoneId instead
AvailabilityZoneId
The ID of the Availability Zone where this specific NAT gateway configuration will be active.
public string? AvailabilityZoneId { get; set; }
Property Value
Remarks
Either availabilityZone or availabilityZoneId must be specified.
Default: - Use availabilityZone instead