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

com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterKeyVaultSecretsProviderArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.KubernetesClusterKeyVaultSecretsProviderArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 *
 * @property secretIdentities An `secret_identity` block is exported. The exported attributes are defined below.
 * @property secretRotationEnabled Should the secret store CSI driver on the AKS cluster be enabled?
 * @property secretRotationInterval The interval to poll for secret rotation. This attribute is only set when `secret_rotation` is true. Defaults to `2m`.
 * > **Note:** To enable`key_vault_secrets_provider` either `secret_rotation_enabled` or `secret_rotation_interval` must be specified.
 */
public data class KubernetesClusterKeyVaultSecretsProviderArgs(
    public val secretIdentities: Output>? = null,
    public val secretRotationEnabled: Output? = null,
    public val secretRotationInterval: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.KubernetesClusterKeyVaultSecretsProviderArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterKeyVaultSecretsProviderArgs.builder()
            .secretIdentities(
                secretIdentities?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .secretRotationEnabled(secretRotationEnabled?.applyValue({ args0 -> args0 }))
            .secretRotationInterval(secretRotationInterval?.applyValue({ args0 -> args0 })).build()
}

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

    private var secretRotationEnabled: Output? = null

    private var secretRotationInterval: Output? = null

    /**
     * @param value An `secret_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("ccntcsfuurayoolw")
    public suspend fun secretIdentities(`value`: Output>) {
        this.secretIdentities = value
    }

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

    /**
     * @param values An `secret_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("mjmsgexlqvxixgit")
    public suspend fun secretIdentities(values: List>) {
        this.secretIdentities = Output.all(values)
    }

    /**
     * @param value Should the secret store CSI driver on the AKS cluster be enabled?
     */
    @JvmName("vfqehirphmnhrbtf")
    public suspend fun secretRotationEnabled(`value`: Output) {
        this.secretRotationEnabled = value
    }

    /**
     * @param value The interval to poll for secret rotation. This attribute is only set when `secret_rotation` is true. Defaults to `2m`.
     * > **Note:** To enable`key_vault_secrets_provider` either `secret_rotation_enabled` or `secret_rotation_interval` must be specified.
     */
    @JvmName("mudqatneqdidqvjv")
    public suspend fun secretRotationInterval(`value`: Output) {
        this.secretRotationInterval = value
    }

    /**
     * @param value An `secret_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("kfdgddeycuupiyie")
    public suspend fun secretIdentities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretIdentities = mapped
    }

    /**
     * @param argument An `secret_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("jbcpwlryinhqbxno")
    public suspend fun secretIdentities(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            KubernetesClusterKeyVaultSecretsProviderSecretIdentityArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.secretIdentities = mapped
    }

    /**
     * @param argument An `secret_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("smfsbhasayhohnki")
    public suspend fun secretIdentities(vararg argument: suspend KubernetesClusterKeyVaultSecretsProviderSecretIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            KubernetesClusterKeyVaultSecretsProviderSecretIdentityArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.secretIdentities = mapped
    }

    /**
     * @param argument An `secret_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("xwogsqugdgvimghj")
    public suspend fun secretIdentities(argument: suspend KubernetesClusterKeyVaultSecretsProviderSecretIdentityArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                KubernetesClusterKeyVaultSecretsProviderSecretIdentityArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.secretIdentities = mapped
    }

    /**
     * @param values An `secret_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("getvtuijjijqhkaa")
    public suspend fun secretIdentities(vararg values: KubernetesClusterKeyVaultSecretsProviderSecretIdentityArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretIdentities = mapped
    }

    /**
     * @param value Should the secret store CSI driver on the AKS cluster be enabled?
     */
    @JvmName("bsudnsvioculorqf")
    public suspend fun secretRotationEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretRotationEnabled = mapped
    }

    /**
     * @param value The interval to poll for secret rotation. This attribute is only set when `secret_rotation` is true. Defaults to `2m`.
     * > **Note:** To enable`key_vault_secrets_provider` either `secret_rotation_enabled` or `secret_rotation_interval` must be specified.
     */
    @JvmName("ayjnimqvajnmndfu")
    public suspend fun secretRotationInterval(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretRotationInterval = mapped
    }

    internal fun build(): KubernetesClusterKeyVaultSecretsProviderArgs =
        KubernetesClusterKeyVaultSecretsProviderArgs(
            secretIdentities = secretIdentities,
            secretRotationEnabled = secretRotationEnabled,
            secretRotationInterval = secretRotationInterval,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy