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

com.pulumi.googlenative.identitytoolkit.v2.kotlin.inputs.GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.identitytoolkit.v2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.identitytoolkit.v2.inputs.GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Defines a policy of allowing every region by default and adding disallowed regions to a disallow list.
 * @property disallowedRegions Two letter unicode region codes to disallow as defined by https://cldr.unicode.org/ The full list of these region codes is here: https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/en/territories.json
 */
public data class GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgs(
    public val disallowedRegions: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.identitytoolkit.v2.inputs.GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgs =
        com.pulumi.googlenative.identitytoolkit.v2.inputs.GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgs.builder()
            .disallowedRegions(disallowedRegions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgs].
 */
@PulumiTagMarker
public class GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgsBuilder internal constructor() {
    private var disallowedRegions: Output>? = null

    /**
     * @param value Two letter unicode region codes to disallow as defined by https://cldr.unicode.org/ The full list of these region codes is here: https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/en/territories.json
     */
    @JvmName("hhocpafllintytbm")
    public suspend fun disallowedRegions(`value`: Output>) {
        this.disallowedRegions = value
    }

    @JvmName("abkwwcfpqhdrmnyc")
    public suspend fun disallowedRegions(vararg values: Output) {
        this.disallowedRegions = Output.all(values.asList())
    }

    /**
     * @param values Two letter unicode region codes to disallow as defined by https://cldr.unicode.org/ The full list of these region codes is here: https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/en/territories.json
     */
    @JvmName("ampttawpjcbpevtf")
    public suspend fun disallowedRegions(values: List>) {
        this.disallowedRegions = Output.all(values)
    }

    /**
     * @param value Two letter unicode region codes to disallow as defined by https://cldr.unicode.org/ The full list of these region codes is here: https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/en/territories.json
     */
    @JvmName("kxhvrqxjtvqaoldh")
    public suspend fun disallowedRegions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disallowedRegions = mapped
    }

    /**
     * @param values Two letter unicode region codes to disallow as defined by https://cldr.unicode.org/ The full list of these region codes is here: https://github.com/unicode-cldr/cldr-localenames-full/blob/master/main/en/territories.json
     */
    @JvmName("prrohcwxgvlwacfj")
    public suspend fun disallowedRegions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.disallowedRegions = mapped
    }

    internal fun build(): GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgs =
        GoogleCloudIdentitytoolkitAdminV2AllowByDefaultArgs(
            disallowedRegions = disallowedRegions,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy