com.pulumi.gcp.compute.kotlin.inputs.SnapshotSourceDiskEncryptionKeyArgs.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.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.SnapshotSourceDiskEncryptionKeyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property kmsKeyServiceAccount The service account used for the encryption request for the given KMS key.
* If absent, the Compute Engine Service Agent service account is used.
* @property rawKey Specifies a 256-bit customer-supplied encryption key, encoded in
* RFC 4648 base64 to either encrypt or decrypt this resource.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
public data class SnapshotSourceDiskEncryptionKeyArgs(
public val kmsKeyServiceAccount: Output? = null,
public val rawKey: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.SnapshotSourceDiskEncryptionKeyArgs =
com.pulumi.gcp.compute.inputs.SnapshotSourceDiskEncryptionKeyArgs.builder()
.kmsKeyServiceAccount(kmsKeyServiceAccount?.applyValue({ args0 -> args0 }))
.rawKey(rawKey?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SnapshotSourceDiskEncryptionKeyArgs].
*/
@PulumiTagMarker
public class SnapshotSourceDiskEncryptionKeyArgsBuilder internal constructor() {
private var kmsKeyServiceAccount: Output? = null
private var rawKey: Output? = null
/**
* @param value The service account used for the encryption request for the given KMS key.
* If absent, the Compute Engine Service Agent service account is used.
*/
@JvmName("wmaqbqrllwfhcqbc")
public suspend fun kmsKeyServiceAccount(`value`: Output) {
this.kmsKeyServiceAccount = value
}
/**
* @param value Specifies a 256-bit customer-supplied encryption key, encoded in
* RFC 4648 base64 to either encrypt or decrypt this resource.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
@JvmName("fcsbcnnauhiwvfdw")
public suspend fun rawKey(`value`: Output) {
this.rawKey = value
}
/**
* @param value The service account used for the encryption request for the given KMS key.
* If absent, the Compute Engine Service Agent service account is used.
*/
@JvmName("ioqaplvgaweuoxho")
public suspend fun kmsKeyServiceAccount(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kmsKeyServiceAccount = mapped
}
/**
* @param value Specifies a 256-bit customer-supplied encryption key, encoded in
* RFC 4648 base64 to either encrypt or decrypt this resource.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
@JvmName("xsrbvsbmxrxxdojv")
public suspend fun rawKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rawKey = mapped
}
internal fun build(): SnapshotSourceDiskEncryptionKeyArgs = SnapshotSourceDiskEncryptionKeyArgs(
kmsKeyServiceAccount = kmsKeyServiceAccount,
rawKey = rawKey,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy