com.pulumi.gcp.kms.kotlin.inputs.CryptoKeyVersionTemplateArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.CryptoKeyVersionTemplateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property algorithm The algorithm to use when creating a version based on this template.
* See the [algorithm reference](https://cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm) for possible inputs.
* @property protectionLevel The protection level to use when creating a version based on this template. Possible values include "SOFTWARE", "HSM", "EXTERNAL", "EXTERNAL_VPC". Defaults to "SOFTWARE".
*/
public data class CryptoKeyVersionTemplateArgs(
public val algorithm: Output,
public val protectionLevel: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.kms.inputs.CryptoKeyVersionTemplateArgs =
com.pulumi.gcp.kms.inputs.CryptoKeyVersionTemplateArgs.builder()
.algorithm(algorithm.applyValue({ args0 -> args0 }))
.protectionLevel(protectionLevel?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CryptoKeyVersionTemplateArgs].
*/
@PulumiTagMarker
public class CryptoKeyVersionTemplateArgsBuilder internal constructor() {
private var algorithm: Output? = null
private var protectionLevel: Output? = null
/**
* @param value The algorithm to use when creating a version based on this template.
* See the [algorithm reference](https://cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm) for possible inputs.
*/
@JvmName("gqoginwnxuidosns")
public suspend fun algorithm(`value`: Output) {
this.algorithm = value
}
/**
* @param value The protection level to use when creating a version based on this template. Possible values include "SOFTWARE", "HSM", "EXTERNAL", "EXTERNAL_VPC". Defaults to "SOFTWARE".
*/
@JvmName("cevharfnafqbdfgj")
public suspend fun protectionLevel(`value`: Output) {
this.protectionLevel = value
}
/**
* @param value The algorithm to use when creating a version based on this template.
* See the [algorithm reference](https://cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm) for possible inputs.
*/
@JvmName("oodwssfefstqdwgd")
public suspend fun algorithm(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.algorithm = mapped
}
/**
* @param value The protection level to use when creating a version based on this template. Possible values include "SOFTWARE", "HSM", "EXTERNAL", "EXTERNAL_VPC". Defaults to "SOFTWARE".
*/
@JvmName("jofdmjnnvpnsfyqn")
public suspend fun protectionLevel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protectionLevel = mapped
}
internal fun build(): CryptoKeyVersionTemplateArgs = CryptoKeyVersionTemplateArgs(
algorithm = algorithm ?: throw PulumiNullFieldException("algorithm"),
protectionLevel = protectionLevel,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy