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

com.pulumi.gcp.compute.kotlin.inputs.InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs.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.InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs.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 kmsKeySelfLink The self link of the encryption key that is
 * stored in Google Cloud KMS.
 * @property kmsKeyServiceAccount The service account being used for the
 * encryption request for the given KMS key. If absent, the Compute Engine
 * default service account is used.
 */
public data class InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs(
    public val kmsKeySelfLink: Output,
    public val kmsKeyServiceAccount: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs =
        com.pulumi.gcp.compute.inputs.InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs.builder()
            .kmsKeySelfLink(kmsKeySelfLink.applyValue({ args0 -> args0 }))
            .kmsKeyServiceAccount(kmsKeyServiceAccount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs].
 */
@PulumiTagMarker
public class InstanceTemplateDiskSourceSnapshotEncryptionKeyArgsBuilder internal constructor() {
    private var kmsKeySelfLink: Output? = null

    private var kmsKeyServiceAccount: Output? = null

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

    /**
     * @param value The service account being used for the
     * encryption request for the given KMS key. If absent, the Compute Engine
     * default service account is used.
     */
    @JvmName("ppuuyrqrtofbvvdr")
    public suspend fun kmsKeyServiceAccount(`value`: Output) {
        this.kmsKeyServiceAccount = value
    }

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

    /**
     * @param value The service account being used for the
     * encryption request for the given KMS key. If absent, the Compute Engine
     * default service account is used.
     */
    @JvmName("ivincnyoitsnuiga")
    public suspend fun kmsKeyServiceAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyServiceAccount = mapped
    }

    internal fun build(): InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs =
        InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs(
            kmsKeySelfLink = kmsKeySelfLink ?: throw PulumiNullFieldException("kmsKeySelfLink"),
            kmsKeyServiceAccount = kmsKeyServiceAccount,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy