com.pulumi.gcp.compute.kotlin.outputs.SnapshotSnapshotEncryptionKey.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property kmsKeySelfLink The name of the encryption key that is stored in Google Cloud KMS.
* @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.
* @property sha256 (Output)
* The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
* encryption key that protects this resource.
*/
public data class SnapshotSnapshotEncryptionKey(
public val kmsKeySelfLink: String? = null,
public val kmsKeyServiceAccount: String? = null,
public val rawKey: String? = null,
public val sha256: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.SnapshotSnapshotEncryptionKey): SnapshotSnapshotEncryptionKey = SnapshotSnapshotEncryptionKey(
kmsKeySelfLink = javaType.kmsKeySelfLink().map({ args0 -> args0 }).orElse(null),
kmsKeyServiceAccount = javaType.kmsKeyServiceAccount().map({ args0 -> args0 }).orElse(null),
rawKey = javaType.rawKey().map({ args0 -> args0 }).orElse(null),
sha256 = javaType.sha256().map({ args0 -> args0 }).orElse(null),
)
}
}