com.pulumi.gcp.compute.kotlin.inputs.InstanceFromTemplateBootDiskArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 interface The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
* @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 `interface`: 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() }) }))
.interface_(`interface`?.applyValue({ args0 -> args0 }))
.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 `interface`: 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("ghxppsjitimcddcq")
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("febcshheileffofc")
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("wpxbqydilfudqpri")
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("gslrfqnwbtjaqppm")
public suspend fun diskEncryptionKeySha256(`value`: Output) {
this.diskEncryptionKeySha256 = value
}
/**
* @param value Parameters with which a disk was created alongside the instance.
*/
@JvmName("vybmnaorcedigrrh")
public suspend fun initializeParams(`value`: Output) {
this.initializeParams = value
}
/**
* @param value The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
*/
@JvmName("eiglylxhdeuygcom")
public suspend fun `interface`(`value`: Output) {
this.`interface` = 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("ytigmjgvntxhkdpe")
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("vadqjsuhkokeqnlw")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value The name or self_link of the disk attached to this instance.
*/
@JvmName("tjovldcogqcqmqgx")
public suspend fun source(`value`: Output) {
this.source = value
}
/**
* @param value Whether the disk will be auto-deleted when the instance is deleted.
*/
@JvmName("nwvytcxtsfcjtgmp")
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("gbrhfbqijcpyceiu")
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("nfevuivhttwqpulf")
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("osnqaejefxyooxkv")
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("chusehrvedsrgwyd")
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("ctrlxhlcgumymowu")
public suspend fun initializeParams(argument: suspend InstanceFromTemplateBootDiskInitializeParamsArgsBuilder.() -> Unit) {
val toBeMapped = InstanceFromTemplateBootDiskInitializeParamsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.initializeParams = mapped
}
/**
* @param value The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
*/
@JvmName("pjlrnlljuoxbxvbq")
public suspend fun `interface`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`interface` = 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("vrneryarerhenlly")
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("tgaoietpgrmmtjdj")
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("ehqyddaxdmfjuiqr")
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,
`interface` = `interface`,
kmsKeySelfLink = kmsKeySelfLink,
mode = mode,
source = source,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy