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

com.pulumi.gcp.compute.kotlin.inputs.InstanceFromTemplateBootDiskArgs.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.InstanceFromTemplateBootDiskArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property autoDelete Whether the disk will be auto-deleted when the instance is deleted.
 * @property deviceName Name with which attached disk will be 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 initializeParams Parameters with which a disk was created alongside the instance.
 * @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 InstanceFromTemplateBootDiskArgs(
    public val autoDelete: Output? = null,
    public val deviceName: Output? = null,
    public val diskEncryptionKeyRaw: Output? = null,
    public val diskEncryptionKeySha256: Output? = null,
    public val initializeParams: Output? = null,
    public val kmsKeySelfLink: Output? = null,
    public val mode: Output? = null,
    public val source: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceFromTemplateBootDiskArgs =
        com.pulumi.gcp.compute.inputs.InstanceFromTemplateBootDiskArgs.builder()
            .autoDelete(autoDelete?.applyValue({ args0 -> args0 }))
            .deviceName(deviceName?.applyValue({ args0 -> args0 }))
            .diskEncryptionKeyRaw(diskEncryptionKeyRaw?.applyValue({ args0 -> args0 }))
            .diskEncryptionKeySha256(diskEncryptionKeySha256?.applyValue({ args0 -> args0 }))
            .initializeParams(initializeParams?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kmsKeySelfLink(kmsKeySelfLink?.applyValue({ args0 -> args0 }))
            .mode(mode?.applyValue({ args0 -> args0 }))
            .source(source?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceFromTemplateBootDiskArgs].
 */
@PulumiTagMarker
public class InstanceFromTemplateBootDiskArgsBuilder internal constructor() {
    private var autoDelete: Output? = null

    private var deviceName: Output? = null

    private var diskEncryptionKeyRaw: Output? = null

    private var diskEncryptionKeySha256: Output? = null

    private var initializeParams: Output? = null

    private var kmsKeySelfLink: Output? = null

    private var mode: Output? = null

    private var source: Output? = null

    /**
     * @param value Whether the disk will be auto-deleted when the instance is deleted.
     */
    @JvmName("kwvlgflusggrpbud")
    public suspend fun autoDelete(`value`: Output) {
        this.autoDelete = value
    }

    /**
     * @param value Name with which attached disk will be accessible under /dev/disk/by-id/
     */
    @JvmName("eeottpxusngklvds")
    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("iwspsvkxitgwgoik")
    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("paxjthdgqaurfjby")
    public suspend fun diskEncryptionKeySha256(`value`: Output) {
        this.diskEncryptionKeySha256 = value
    }

    /**
     * @param value Parameters with which a disk was created alongside the instance.
     */
    @JvmName("avxglvftlgfdgqba")
    public suspend fun initializeParams(`value`: Output) {
        this.initializeParams = 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("qbbbpwlqphumavqi")
    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("ewmanqouqhbbllnq")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

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

    /**
     * @param value Whether the disk will be auto-deleted when the instance is deleted.
     */
    @JvmName("gctnwxiqnjmyhrkd")
    public suspend fun autoDelete(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoDelete = mapped
    }

    /**
     * @param value Name with which attached disk will be accessible under /dev/disk/by-id/
     */
    @JvmName("ftlndfjyesqgbdhc")
    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("ywamjqyvaiddgpsx")
    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("vgmlxebnosjtpjlm")
    public suspend fun diskEncryptionKeySha256(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionKeySha256 = mapped
    }

    /**
     * @param value Parameters with which a disk was created alongside the instance.
     */
    @JvmName("lfgysyjvfunqbggh")
    public suspend fun initializeParams(`value`: InstanceFromTemplateBootDiskInitializeParamsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.initializeParams = mapped
    }

    /**
     * @param argument Parameters with which a disk was created alongside the instance.
     */
    @JvmName("fokoleqdnhmajeyd")
    public suspend fun initializeParams(argument: suspend InstanceFromTemplateBootDiskInitializeParamsArgsBuilder.() -> Unit) {
        val toBeMapped = InstanceFromTemplateBootDiskInitializeParamsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.initializeParams = 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("fqsghhlimjdwunhc")
    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("kqqhnfkdtctosysy")
    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("hiyigcahtjmunqsw")
    public suspend fun source(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    internal fun build(): InstanceFromTemplateBootDiskArgs = InstanceFromTemplateBootDiskArgs(
        autoDelete = autoDelete,
        deviceName = deviceName,
        diskEncryptionKeyRaw = diskEncryptionKeyRaw,
        diskEncryptionKeySha256 = diskEncryptionKeySha256,
        initializeParams = initializeParams,
        kmsKeySelfLink = kmsKeySelfLink,
        mode = mode,
        source = source,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy