
com.pulumi.azurenative.virtualmachineimages.kotlin.inputs.ImageTemplateVmProfileArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.virtualmachineimages.kotlin.inputs
import com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplateVmProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Describes the virtual machines used to build and validate images
* @property osDiskSizeGB Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
* @property userAssignedIdentities Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.
* @property vmSize Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
* @property vnetConfig Optional configuration of the virtual network to use to deploy the build VM and validation VM in. Omit if no specific virtual network needs to be used.
*/
public data class ImageTemplateVmProfileArgs(
public val osDiskSizeGB: Output? = null,
public val userAssignedIdentities: Output>? = null,
public val vmSize: Output? = null,
public val vnetConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplateVmProfileArgs =
com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplateVmProfileArgs.builder()
.osDiskSizeGB(osDiskSizeGB?.applyValue({ args0 -> args0 }))
.userAssignedIdentities(
userAssignedIdentities?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.vmSize(vmSize?.applyValue({ args0 -> args0 }))
.vnetConfig(vnetConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ImageTemplateVmProfileArgs].
*/
@PulumiTagMarker
public class ImageTemplateVmProfileArgsBuilder internal constructor() {
private var osDiskSizeGB: Output? = null
private var userAssignedIdentities: Output>? = null
private var vmSize: Output? = null
private var vnetConfig: Output? = null
/**
* @param value Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
*/
@JvmName("jqiurvgwqjgalupi")
public suspend fun osDiskSizeGB(`value`: Output) {
this.osDiskSizeGB = value
}
/**
* @param value Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.
*/
@JvmName("jrltlchthrgstmuj")
public suspend fun userAssignedIdentities(`value`: Output>) {
this.userAssignedIdentities = value
}
@JvmName("ungodliscwakrquu")
public suspend fun userAssignedIdentities(vararg values: Output) {
this.userAssignedIdentities = Output.all(values.asList())
}
/**
* @param values Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.
*/
@JvmName("uinqvhfbogypmvug")
public suspend fun userAssignedIdentities(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy