
com.pulumi.googlenative.compute.v1.kotlin.inputs.SourceInstanceParamsArgs.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.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.v1.inputs.SourceInstanceParamsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A specification of the parameters to use when creating the instance template from a source instance.
* @property diskConfigs Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
*/
public data class SourceInstanceParamsArgs(
public val diskConfigs: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.v1.inputs.SourceInstanceParamsArgs =
com.pulumi.googlenative.compute.v1.inputs.SourceInstanceParamsArgs.builder()
.diskConfigs(
diskConfigs?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [SourceInstanceParamsArgs].
*/
@PulumiTagMarker
public class SourceInstanceParamsArgsBuilder internal constructor() {
private var diskConfigs: Output>? = null
/**
* @param value Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
*/
@JvmName("mpirlyhivvtdviyb")
public suspend fun diskConfigs(`value`: Output>) {
this.diskConfigs = value
}
@JvmName("vqjjhqsrnfexljpo")
public suspend fun diskConfigs(vararg values: Output) {
this.diskConfigs = Output.all(values.asList())
}
/**
* @param values Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
*/
@JvmName("bockvvigpculqhcj")
public suspend fun diskConfigs(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy