getAvailabilityZone

aws.getAvailabilityZone provides details about a specific availability zone (AZ) in the current region. This can be used both to validate an availability zone given in a variable and to split the AZ name into its component parts of an AWS region and an AZ identifier letter. The latter may be useful e.g., for implementing a consistent subnet numbering scheme across several regions by mapping both the region and the subnet letter to network numbers. This is different from the aws.getAvailabilityZones (plural) data source, which provides a list of the available zones.

Return

A collection of values returned by getAvailabilityZone.

Parameters

argument

A collection of arguments for invoking getAvailabilityZone.


suspend fun getAvailabilityZone(allAvailabilityZones: Boolean? = null, filters: List<GetAvailabilityZoneFilter>? = null, name: String? = null, state: String? = null, zoneId: String? = null): GetAvailabilityZoneResult

Return

A collection of values returned by getAvailabilityZone.

Parameters

allAvailabilityZones

Set to true to include all Availability Zones and Local Zones regardless of your opt in status.

filters

Configuration block(s) for filtering. Detailed below.

name

Full name of the availability zone to select.

state

Specific availability zone state to require. May be any of "available", "information" or "impaired".

zoneId

Zone ID of the availability zone to select.

See also


Return

A collection of values returned by getAvailabilityZone.

Parameters

argument

Builder for com.pulumi.aws.kotlin.inputs.GetAvailabilityZonePlainArgs.

See also