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

com.pulumi.gcp.kms.kotlin.inputs.CryptoKeyKeyAccessJustificationsPolicyArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.kms.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.kms.inputs.CryptoKeyKeyAccessJustificationsPolicyArgs.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

/**
 *
 * @property allowedAccessReasons The list of allowed reasons for access to this CryptoKey. Zero allowed
 * access reasons means all encrypt, decrypt, and sign operations for
 * this CryptoKey will fail.
 */
public data class CryptoKeyKeyAccessJustificationsPolicyArgs(
    public val allowedAccessReasons: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.kms.inputs.CryptoKeyKeyAccessJustificationsPolicyArgs =
        com.pulumi.gcp.kms.inputs.CryptoKeyKeyAccessJustificationsPolicyArgs.builder()
            .allowedAccessReasons(
                allowedAccessReasons?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    /**
     * @param value The list of allowed reasons for access to this CryptoKey. Zero allowed
     * access reasons means all encrypt, decrypt, and sign operations for
     * this CryptoKey will fail.
     */
    @JvmName("ckiaptprwlxbnfgo")
    public suspend fun allowedAccessReasons(`value`: Output>) {
        this.allowedAccessReasons = value
    }

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

    /**
     * @param values The list of allowed reasons for access to this CryptoKey. Zero allowed
     * access reasons means all encrypt, decrypt, and sign operations for
     * this CryptoKey will fail.
     */
    @JvmName("imekyqechjqliycg")
    public suspend fun allowedAccessReasons(values: List>) {
        this.allowedAccessReasons = Output.all(values)
    }

    /**
     * @param value The list of allowed reasons for access to this CryptoKey. Zero allowed
     * access reasons means all encrypt, decrypt, and sign operations for
     * this CryptoKey will fail.
     */
    @JvmName("tyyjuoiaqforedml")
    public suspend fun allowedAccessReasons(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedAccessReasons = mapped
    }

    /**
     * @param values The list of allowed reasons for access to this CryptoKey. Zero allowed
     * access reasons means all encrypt, decrypt, and sign operations for
     * this CryptoKey will fail.
     */
    @JvmName("afdmvvyaqpmgsdvn")
    public suspend fun allowedAccessReasons(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedAccessReasons = mapped
    }

    internal fun build(): CryptoKeyKeyAccessJustificationsPolicyArgs =
        CryptoKeyKeyAccessJustificationsPolicyArgs(
            allowedAccessReasons = allowedAccessReasons,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy