# AvailabilityZoneMappingProperty

Defines the mapping between an Availability Zone and a firewall endpoint for a transit gateway-attached firewall.

Each mapping represents where the firewall can process traffic. You use these mappings when calling `CreateFirewall` , `AssociateAvailabilityZones` , and `DisassociateAvailabilityZones` .

To retrieve the current Availability Zone mappings for a firewall, use `DescribeFirewall` .

- Source: Generated at build time
- Type last changed: v2.211.0 · 13 Aug 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const availabilityZoneMappingProperty: networkfirewall.CfnFirewall.AvailabilityZoneMappingProperty = {
  availabilityZone: 'availabilityZone',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkfirewall as networkfirewall

availability_zone_mapping_property = networkfirewall.CfnFirewall.AvailabilityZoneMappingProperty(
    availability_zone="availabilityZone"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkfirewall.*;

AvailabilityZoneMappingProperty availabilityZoneMappingProperty = AvailabilityZoneMappingProperty.builder()
        .availabilityZone("availabilityZone")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkFirewall;

var availabilityZoneMappingProperty = new AvailabilityZoneMappingProperty {
    AvailabilityZone = "availabilityZone"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

availabilityZoneMappingProperty := &AvailabilityZoneMappingProperty{
	AvailabilityZone: jsii.String("availabilityZone"),
}
```

## Properties

- `availabilityZone`: string (required) — The ID of the Availability Zone where the firewall endpoint is located.

  For example, `us-east-2a` . The Availability Zone must be in the same Region as the transit gateway.
