
com.pulumi.googlenative.compute.alpha.kotlin.inputs.SourceDiskEncryptionKeyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.alpha.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.alpha.inputs.SourceDiskEncryptionKeyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property diskEncryptionKey The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
* @property sourceDisk URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
*/
public data class SourceDiskEncryptionKeyArgs(
public val diskEncryptionKey: Output? = null,
public val sourceDisk: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.alpha.inputs.SourceDiskEncryptionKeyArgs =
com.pulumi.googlenative.compute.alpha.inputs.SourceDiskEncryptionKeyArgs.builder()
.diskEncryptionKey(diskEncryptionKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sourceDisk(sourceDisk?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SourceDiskEncryptionKeyArgs].
*/
@PulumiTagMarker
public class SourceDiskEncryptionKeyArgsBuilder internal constructor() {
private var diskEncryptionKey: Output? = null
private var sourceDisk: Output? = null
/**
* @param value The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
*/
@JvmName("giavafwlalfultyn")
public suspend fun diskEncryptionKey(`value`: Output) {
this.diskEncryptionKey = value
}
/**
* @param value URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
*/
@JvmName("xblgjxwcvswaarew")
public suspend fun sourceDisk(`value`: Output) {
this.sourceDisk = value
}
/**
* @param value The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
*/
@JvmName("crtopfmghjwatvsj")
public suspend fun diskEncryptionKey(`value`: CustomerEncryptionKeyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diskEncryptionKey = mapped
}
/**
* @param argument The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
*/
@JvmName("kceioppwdconwtcn")
public suspend fun diskEncryptionKey(argument: suspend CustomerEncryptionKeyArgsBuilder.() -> Unit) {
val toBeMapped = CustomerEncryptionKeyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.diskEncryptionKey = mapped
}
/**
* @param value URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
*/
@JvmName("uapvcbnyivkukkgv")
public suspend fun sourceDisk(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceDisk = mapped
}
internal fun build(): SourceDiskEncryptionKeyArgs = SourceDiskEncryptionKeyArgs(
diskEncryptionKey = diskEncryptionKey,
sourceDisk = sourceDisk,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy