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

com.pulumi.gcp.compute.kotlin.inputs.InstanceFromTemplateAttachedDiskArgs.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.InstanceFromTemplateAttachedDiskArgs.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 deviceName Name with which the attached disk is accessible under /dev/disk/by-id/
 * @property diskEncryptionKeyRaw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
 * @property diskEncryptionKeySha256 The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
 * @property kmsKeySelfLink The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
 * @property mode Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
 * @property source The name or self_link of the disk attached to this instance.
 */
public data class InstanceFromTemplateAttachedDiskArgs(
    public val deviceName: Output? = null,
    public val diskEncryptionKeyRaw: Output? = null,
    public val diskEncryptionKeySha256: Output? = null,
    public val kmsKeySelfLink: Output? = null,
    public val mode: Output? = null,
    public val source: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceFromTemplateAttachedDiskArgs =
        com.pulumi.gcp.compute.inputs.InstanceFromTemplateAttachedDiskArgs.builder()
            .deviceName(deviceName?.applyValue({ args0 -> args0 }))
            .diskEncryptionKeyRaw(diskEncryptionKeyRaw?.applyValue({ args0 -> args0 }))
            .diskEncryptionKeySha256(diskEncryptionKeySha256?.applyValue({ args0 -> args0 }))
            .kmsKeySelfLink(kmsKeySelfLink?.applyValue({ args0 -> args0 }))
            .mode(mode?.applyValue({ args0 -> args0 }))
            .source(source.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceFromTemplateAttachedDiskArgs].
 */
@PulumiTagMarker
public class InstanceFromTemplateAttachedDiskArgsBuilder internal constructor() {
    private var deviceName: Output? = null

    private var diskEncryptionKeyRaw: Output? = null

    private var diskEncryptionKeySha256: Output? = null

    private var kmsKeySelfLink: Output? = null

    private var mode: Output? = null

    private var source: Output? = null

    /**
     * @param value Name with which the attached disk is accessible under /dev/disk/by-id/
     */
    @JvmName("yurljustbfoijodl")
    public suspend fun deviceName(`value`: Output) {
        this.deviceName = value
    }

    /**
     * @param value A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
     */
    @JvmName("smildnyculduydfw")
    public suspend fun diskEncryptionKeyRaw(`value`: Output) {
        this.diskEncryptionKeyRaw = value
    }

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

    /**
     * @param value The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
     */
    @JvmName("vunuqakxeljjuobw")
    public suspend fun kmsKeySelfLink(`value`: Output) {
        this.kmsKeySelfLink = value
    }

    /**
     * @param value Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
     */
    @JvmName("uimgosqongrenkxy")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value The name or self_link of the disk attached to this instance.
     */
    @JvmName("ybrvqrjqfswajaoo")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value Name with which the attached disk is accessible under /dev/disk/by-id/
     */
    @JvmName("cvmwovupadgfoicl")
    public suspend fun deviceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deviceName = mapped
    }

    /**
     * @param value A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
     */
    @JvmName("belgbxgvxpvsfhin")
    public suspend fun diskEncryptionKeyRaw(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionKeyRaw = mapped
    }

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

    /**
     * @param value The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
     */
    @JvmName("luaklkvrppnlvmuo")
    public suspend fun kmsKeySelfLink(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeySelfLink = mapped
    }

    /**
     * @param value Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
     */
    @JvmName("lcrwsywjuihqbowf")
    public suspend fun mode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value The name or self_link of the disk attached to this instance.
     */
    @JvmName("ppscqpmmtaxxdstq")
    public suspend fun source(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.source = mapped
    }

    internal fun build(): InstanceFromTemplateAttachedDiskArgs = InstanceFromTemplateAttachedDiskArgs(
        deviceName = deviceName,
        diskEncryptionKeyRaw = diskEncryptionKeyRaw,
        diskEncryptionKeySha256 = diskEncryptionKeySha256,
        kmsKeySelfLink = kmsKeySelfLink,
        mode = mode,
        source = source ?: throw PulumiNullFieldException("source"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy