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

com.pulumi.gcp.kms.kotlin.inputs.CryptoKeyVersionExternalProtectionLevelOptionsArgs.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.10.0.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.CryptoKeyVersionExternalProtectionLevelOptionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property ekmConnectionKeyPath The path to the external key material on the EKM when using EkmConnection e.g., "v0/my/key". Set this field instead of externalKeyUri when using an EkmConnection.
 * @property externalKeyUri The URI for an external resource that this CryptoKeyVersion represents.
 */
public data class CryptoKeyVersionExternalProtectionLevelOptionsArgs(
    public val ekmConnectionKeyPath: Output? = null,
    public val externalKeyUri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.kms.inputs.CryptoKeyVersionExternalProtectionLevelOptionsArgs =
        com.pulumi.gcp.kms.inputs.CryptoKeyVersionExternalProtectionLevelOptionsArgs.builder()
            .ekmConnectionKeyPath(ekmConnectionKeyPath?.applyValue({ args0 -> args0 }))
            .externalKeyUri(externalKeyUri?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CryptoKeyVersionExternalProtectionLevelOptionsArgs].
 */
@PulumiTagMarker
public class CryptoKeyVersionExternalProtectionLevelOptionsArgsBuilder internal constructor() {
    private var ekmConnectionKeyPath: Output? = null

    private var externalKeyUri: Output? = null

    /**
     * @param value The path to the external key material on the EKM when using EkmConnection e.g., "v0/my/key". Set this field instead of externalKeyUri when using an EkmConnection.
     */
    @JvmName("oepbupijolymdyef")
    public suspend fun ekmConnectionKeyPath(`value`: Output) {
        this.ekmConnectionKeyPath = value
    }

    /**
     * @param value The URI for an external resource that this CryptoKeyVersion represents.
     */
    @JvmName("xehblmufpfrpnwgf")
    public suspend fun externalKeyUri(`value`: Output) {
        this.externalKeyUri = value
    }

    /**
     * @param value The path to the external key material on the EKM when using EkmConnection e.g., "v0/my/key". Set this field instead of externalKeyUri when using an EkmConnection.
     */
    @JvmName("fhaollfwvbfspjwd")
    public suspend fun ekmConnectionKeyPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ekmConnectionKeyPath = mapped
    }

    /**
     * @param value The URI for an external resource that this CryptoKeyVersion represents.
     */
    @JvmName("tqfioculbhvtfbuk")
    public suspend fun externalKeyUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalKeyUri = mapped
    }

    internal fun build(): CryptoKeyVersionExternalProtectionLevelOptionsArgs =
        CryptoKeyVersionExternalProtectionLevelOptionsArgs(
            ekmConnectionKeyPath = ekmConnectionKeyPath,
            externalKeyUri = externalKeyUri,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy