
com.pulumi.googlenative.batch.v1.kotlin.inputs.InstancePolicyArgs.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.batch.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.batch.v1.inputs.InstancePolicyArgs.builder
import com.pulumi.googlenative.batch.v1.kotlin.enums.InstancePolicyProvisioningModel
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.collections.List
import kotlin.jvm.JvmName
/**
* InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.
* @property accelerators The accelerators attached to each VM instance.
* @property bootDisk Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
* @property disks Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted.
* @property machineType The Compute Engine machine type.
* @property minCpuPlatform The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.
* @property provisioningModel The provisioning model.
*/
public data class InstancePolicyArgs(
public val accelerators: Output>? = null,
public val bootDisk: Output? = null,
public val disks: Output>? = null,
public val machineType: Output? = null,
public val minCpuPlatform: Output? = null,
public val provisioningModel: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.batch.v1.inputs.InstancePolicyArgs =
com.pulumi.googlenative.batch.v1.inputs.InstancePolicyArgs.builder()
.accelerators(
accelerators?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.bootDisk(bootDisk?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.disks(disks?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.machineType(machineType?.applyValue({ args0 -> args0 }))
.minCpuPlatform(minCpuPlatform?.applyValue({ args0 -> args0 }))
.provisioningModel(
provisioningModel?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [InstancePolicyArgs].
*/
@PulumiTagMarker
public class InstancePolicyArgsBuilder internal constructor() {
private var accelerators: Output>? = null
private var bootDisk: Output? = null
private var disks: Output>? = null
private var machineType: Output? = null
private var minCpuPlatform: Output? = null
private var provisioningModel: Output? = null
/**
* @param value The accelerators attached to each VM instance.
*/
@JvmName("hegvvhqjbqerrosh")
public suspend fun accelerators(`value`: Output>) {
this.accelerators = value
}
@JvmName("xbpbiawsnyeneykm")
public suspend fun accelerators(vararg values: Output) {
this.accelerators = Output.all(values.asList())
}
/**
* @param values The accelerators attached to each VM instance.
*/
@JvmName("jxgtiyyhbppmswcs")
public suspend fun accelerators(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy