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

com.pulumi.gcp.compute.kotlin.inputs.RegionDiskSourceSnapshotEncryptionKeyArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionDiskSourceSnapshotEncryptionKeyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property kmsKeyName The name of the encryption key that is stored in Google Cloud KMS.
 * @property rawKey Specifies a 256-bit customer-supplied encryption key, encoded in
 * RFC 4648 base64 to either encrypt or decrypt this resource.
 * @property sha256 (Output)
 * The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
 * encryption key that protects this resource.
 */
public data class RegionDiskSourceSnapshotEncryptionKeyArgs(
    public val kmsKeyName: Output? = null,
    public val rawKey: Output? = null,
    public val sha256: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionDiskSourceSnapshotEncryptionKeyArgs =
        com.pulumi.gcp.compute.inputs.RegionDiskSourceSnapshotEncryptionKeyArgs.builder()
            .kmsKeyName(kmsKeyName?.applyValue({ args0 -> args0 }))
            .rawKey(rawKey?.applyValue({ args0 -> args0 }))
            .sha256(sha256?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionDiskSourceSnapshotEncryptionKeyArgs].
 */
@PulumiTagMarker
public class RegionDiskSourceSnapshotEncryptionKeyArgsBuilder internal constructor() {
    private var kmsKeyName: Output? = null

    private var rawKey: Output? = null

    private var sha256: Output? = null

    /**
     * @param value The name of the encryption key that is stored in Google Cloud KMS.
     */
    @JvmName("yttmhvnmmfsbfnls")
    public suspend fun kmsKeyName(`value`: Output) {
        this.kmsKeyName = value
    }

    /**
     * @param value Specifies a 256-bit customer-supplied encryption key, encoded in
     * RFC 4648 base64 to either encrypt or decrypt this resource.
     */
    @JvmName("lewluhpbtdlrynvn")
    public suspend fun rawKey(`value`: Output) {
        this.rawKey = value
    }

    /**
     * @param value (Output)
     * The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
     * encryption key that protects this resource.
     */
    @JvmName("dffcsgthdpcjvuse")
    public suspend fun sha256(`value`: Output) {
        this.sha256 = value
    }

    /**
     * @param value The name of the encryption key that is stored in Google Cloud KMS.
     */
    @JvmName("seboyxxybqijfxif")
    public suspend fun kmsKeyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyName = mapped
    }

    /**
     * @param value Specifies a 256-bit customer-supplied encryption key, encoded in
     * RFC 4648 base64 to either encrypt or decrypt this resource.
     */
    @JvmName("imxkcuiddlugeqlj")
    public suspend fun rawKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rawKey = mapped
    }

    /**
     * @param value (Output)
     * The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied
     * encryption key that protects this resource.
     */
    @JvmName("byserpiaxevwpnes")
    public suspend fun sha256(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sha256 = mapped
    }

    internal fun build(): RegionDiskSourceSnapshotEncryptionKeyArgs =
        RegionDiskSourceSnapshotEncryptionKeyArgs(
            kmsKeyName = kmsKeyName,
            rawKey = rawKey,
            sha256 = sha256,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy