All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.kotlin.inputs.GetAvailabilityZonesPlainArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.kotlin.inputs

import com.pulumi.aws.inputs.GetAvailabilityZonesPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getAvailabilityZones.
 * @property allAvailabilityZones Set to `true` to include all Availability Zones and Local Zones regardless of your opt in status.
 * @property excludeNames List of Availability Zone names to exclude.
 * @property excludeZoneIds List of Availability Zone IDs to exclude.
 * @property filters Configuration block(s) for filtering. Detailed below.
 * @property state Allows to filter list of Availability Zones based on their
 * current state. Can be either `"available"`, `"information"`, `"impaired"` or
 * `"unavailable"`. By default the list includes a complete set of Availability Zones
 * to which the underlying AWS account has access, regardless of their state.
 */
public data class GetAvailabilityZonesPlainArgs(
    public val allAvailabilityZones: Boolean? = null,
    public val excludeNames: List? = null,
    public val excludeZoneIds: List? = null,
    public val filters: List? = null,
    public val state: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.inputs.GetAvailabilityZonesPlainArgs =
        com.pulumi.aws.inputs.GetAvailabilityZonesPlainArgs.builder()
            .allAvailabilityZones(allAvailabilityZones?.let({ args0 -> args0 }))
            .excludeNames(excludeNames?.let({ args0 -> args0.map({ args0 -> args0 }) }))
            .excludeZoneIds(excludeZoneIds?.let({ args0 -> args0.map({ args0 -> args0 }) }))
            .filters(filters?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .state(state?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetAvailabilityZonesPlainArgs].
 */
@PulumiTagMarker
public class GetAvailabilityZonesPlainArgsBuilder internal constructor() {
    private var allAvailabilityZones: Boolean? = null

    private var excludeNames: List? = null

    private var excludeZoneIds: List? = null

    private var filters: List? = null

    private var state: String? = null

    /**
     * @param value Set to `true` to include all Availability Zones and Local Zones regardless of your opt in status.
     */
    @JvmName("lyormyrfogodwuwn")
    public suspend fun allAvailabilityZones(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.allAvailabilityZones = mapped
    }

    /**
     * @param value List of Availability Zone names to exclude.
     */
    @JvmName("vlgwvfstkdqxhimx")
    public suspend fun excludeNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.excludeNames = mapped
    }

    /**
     * @param values List of Availability Zone names to exclude.
     */
    @JvmName("wcfetppkkhhcsxqx")
    public suspend fun excludeNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.excludeNames = mapped
    }

    /**
     * @param value List of Availability Zone IDs to exclude.
     */
    @JvmName("pxmepxbisawbpmia")
    public suspend fun excludeZoneIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.excludeZoneIds = mapped
    }

    /**
     * @param values List of Availability Zone IDs to exclude.
     */
    @JvmName("hodesgiyxmsiutvm")
    public suspend fun excludeZoneIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.excludeZoneIds = mapped
    }

    /**
     * @param value Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("anfwmstejeucctvp")
    public suspend fun filters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.filters = mapped
    }

    /**
     * @param argument Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("kpvdpoiyssfonjpu")
    public suspend fun filters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetAvailabilityZonesFilterBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("rglyujtgnpmkhljl")
    public suspend fun filters(vararg argument: suspend GetAvailabilityZonesFilterBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetAvailabilityZonesFilterBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("grhwetpuoenwwvhs")
    public suspend fun filters(argument: suspend GetAvailabilityZonesFilterBuilder.() -> Unit) {
        val toBeMapped = listOf(GetAvailabilityZonesFilterBuilder().applySuspend { argument() }.build())
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param values Configuration block(s) for filtering. Detailed below.
     */
    @JvmName("ikyehprbfqglrlcm")
    public suspend fun filters(vararg values: GetAvailabilityZonesFilter) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.filters = mapped
    }

    /**
     * @param value Allows to filter list of Availability Zones based on their
     * current state. Can be either `"available"`, `"information"`, `"impaired"` or
     * `"unavailable"`. By default the list includes a complete set of Availability Zones
     * to which the underlying AWS account has access, regardless of their state.
     */
    @JvmName("tmpybjcuinbbgrps")
    public suspend fun state(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.state = mapped
    }

    internal fun build(): GetAvailabilityZonesPlainArgs = GetAvailabilityZonesPlainArgs(
        allAvailabilityZones = allAvailabilityZones,
        excludeNames = excludeNames,
        excludeZoneIds = excludeZoneIds,
        filters = filters,
        state = state,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy