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

com.pulumi.vault.managed.kotlin.KeysArgs.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.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.managed.kotlin

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 com.pulumi.vault.managed.KeysArgs.builder
import com.pulumi.vault.managed.kotlin.inputs.KeysAwArgs
import com.pulumi.vault.managed.kotlin.inputs.KeysAwArgsBuilder
import com.pulumi.vault.managed.kotlin.inputs.KeysAzureArgs
import com.pulumi.vault.managed.kotlin.inputs.KeysAzureArgsBuilder
import com.pulumi.vault.managed.kotlin.inputs.KeysPkcArgs
import com.pulumi.vault.managed.kotlin.inputs.KeysPkcArgsBuilder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A resource that manages the lifecycle of all [Managed Keys](https://www.vaultproject.io/docs/enterprise/managed-keys) in Vault.
 * **Note** this feature is available only with Vault Enterprise.
 * ## Import
 * Mounts can be imported using the `id` of `default`, e.g.
 * ```sh
 * $ pulumi import vault:managed/keys:Keys keys default
 * ```
 * @property aws Configuration block for AWS Managed Keys
 * @property azures Configuration block for Azure Managed Keys
 * @property namespace Target namespace. (requires Enterprise)
 * @property pkcs Configuration block for PKCS Managed Keys
 */
public data class KeysArgs(
    public val aws: Output>? = null,
    public val azures: Output>? = null,
    public val namespace: Output? = null,
    public val pkcs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.managed.KeysArgs =
        com.pulumi.vault.managed.KeysArgs.builder()
            .aws(aws?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .azures(azures?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .pkcs(
                pkcs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var azures: Output>? = null

    private var namespace: Output? = null

    private var pkcs: Output>? = null

    /**
     * @param value Configuration block for AWS Managed Keys
     */
    @JvmName("lvipfexkgxrgbunh")
    public suspend fun aws(`value`: Output>) {
        this.aws = value
    }

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

    /**
     * @param values Configuration block for AWS Managed Keys
     */
    @JvmName("qbgiffploisrjiwh")
    public suspend fun aws(values: List>) {
        this.aws = Output.all(values)
    }

    /**
     * @param value Configuration block for Azure Managed Keys
     */
    @JvmName("gmggakmdhyksandk")
    public suspend fun azures(`value`: Output>) {
        this.azures = value
    }

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

    /**
     * @param values Configuration block for Azure Managed Keys
     */
    @JvmName("prkthrabocumiseu")
    public suspend fun azures(values: List>) {
        this.azures = Output.all(values)
    }

    /**
     * @param value Target namespace. (requires Enterprise)
     */
    @JvmName("nqjaekxixfmxifqi")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value Configuration block for PKCS Managed Keys
     */
    @JvmName("rwmpaoljxmydnaji")
    public suspend fun pkcs(`value`: Output>) {
        this.pkcs = value
    }

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

    /**
     * @param values Configuration block for PKCS Managed Keys
     */
    @JvmName("kylpwuhtvyasimwj")
    public suspend fun pkcs(values: List>) {
        this.pkcs = Output.all(values)
    }

    /**
     * @param value Configuration block for AWS Managed Keys
     */
    @JvmName("gjggjvbsmapelniw")
    public suspend fun aws(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aws = mapped
    }

    /**
     * @param argument Configuration block for AWS Managed Keys
     */
    @JvmName("aljruynpfkcdgqil")
    public suspend fun aws(argument: List Unit>) {
        val toBeMapped = argument.toList().map { KeysAwArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.aws = mapped
    }

    /**
     * @param argument Configuration block for AWS Managed Keys
     */
    @JvmName("djlkrgrybxailnrw")
    public suspend fun aws(vararg argument: suspend KeysAwArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { KeysAwArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.aws = mapped
    }

    /**
     * @param argument Configuration block for AWS Managed Keys
     */
    @JvmName("hhjihicqnavdvutg")
    public suspend fun aws(argument: suspend KeysAwArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(KeysAwArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.aws = mapped
    }

    /**
     * @param values Configuration block for AWS Managed Keys
     */
    @JvmName("orkesevxswbrbuuy")
    public suspend fun aws(vararg values: KeysAwArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.aws = mapped
    }

    /**
     * @param value Configuration block for Azure Managed Keys
     */
    @JvmName("otioruxbtwirvymv")
    public suspend fun azures(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azures = mapped
    }

    /**
     * @param argument Configuration block for Azure Managed Keys
     */
    @JvmName("iypcwkeayjcneeil")
    public suspend fun azures(argument: List Unit>) {
        val toBeMapped = argument.toList().map { KeysAzureArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.azures = mapped
    }

    /**
     * @param argument Configuration block for Azure Managed Keys
     */
    @JvmName("lnckhkimpnwmhfvy")
    public suspend fun azures(vararg argument: suspend KeysAzureArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { KeysAzureArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.azures = mapped
    }

    /**
     * @param argument Configuration block for Azure Managed Keys
     */
    @JvmName("khulsqwnnotikjyy")
    public suspend fun azures(argument: suspend KeysAzureArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(KeysAzureArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.azures = mapped
    }

    /**
     * @param values Configuration block for Azure Managed Keys
     */
    @JvmName("snqlrqxplwoicayw")
    public suspend fun azures(vararg values: KeysAzureArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.azures = mapped
    }

    /**
     * @param value Target namespace. (requires Enterprise)
     */
    @JvmName("axjjxuyrqcwdfurh")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value Configuration block for PKCS Managed Keys
     */
    @JvmName("yyoiaesrpwtyhyqf")
    public suspend fun pkcs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pkcs = mapped
    }

    /**
     * @param argument Configuration block for PKCS Managed Keys
     */
    @JvmName("mbnpiuveycnsvdcu")
    public suspend fun pkcs(argument: List Unit>) {
        val toBeMapped = argument.toList().map { KeysPkcArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.pkcs = mapped
    }

    /**
     * @param argument Configuration block for PKCS Managed Keys
     */
    @JvmName("vxierfbaaqnggymm")
    public suspend fun pkcs(vararg argument: suspend KeysPkcArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { KeysPkcArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.pkcs = mapped
    }

    /**
     * @param argument Configuration block for PKCS Managed Keys
     */
    @JvmName("sfyrlsbhggvffepp")
    public suspend fun pkcs(argument: suspend KeysPkcArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(KeysPkcArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.pkcs = mapped
    }

    /**
     * @param values Configuration block for PKCS Managed Keys
     */
    @JvmName("jkimbivwngtjqesc")
    public suspend fun pkcs(vararg values: KeysPkcArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pkcs = mapped
    }

    internal fun build(): KeysArgs = KeysArgs(
        aws = aws,
        azures = azures,
        namespace = namespace,
        pkcs = pkcs,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy