
com.pulumi.azurenative.virtualmachineimages.kotlin.inputs.ImageTemplateShellCustomizerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.virtualmachineimages.kotlin.inputs
import com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplateShellCustomizerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
* @property inline Array of shell commands to execute
* @property name Friendly Name to provide context on what this customization step does
* @property scriptUri URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
* @property sha256Checksum SHA256 checksum of the shell script provided in the scriptUri field
* @property type The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
* Expected value is 'Shell'.
*/
public data class ImageTemplateShellCustomizerArgs(
public val `inline`: Output>? = null,
public val name: Output? = null,
public val scriptUri: Output? = null,
public val sha256Checksum: Output? = null,
public val type: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplateShellCustomizerArgs =
com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplateShellCustomizerArgs.builder()
.`inline`(`inline`?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name?.applyValue({ args0 -> args0 }))
.scriptUri(scriptUri?.applyValue({ args0 -> args0 }))
.sha256Checksum(sha256Checksum?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ImageTemplateShellCustomizerArgs].
*/
@PulumiTagMarker
public class ImageTemplateShellCustomizerArgsBuilder internal constructor() {
private var `inline`: Output>? = null
private var name: Output? = null
private var scriptUri: Output? = null
private var sha256Checksum: Output? = null
private var type: Output? = null
/**
* @param value Array of shell commands to execute
*/
@JvmName("pwxekfgqicnjixiw")
public suspend fun `inline`(`value`: Output>) {
this.`inline` = value
}
@JvmName("buorhorwaijaeyav")
public suspend fun `inline`(vararg values: Output) {
this.`inline` = Output.all(values.asList())
}
/**
* @param values Array of shell commands to execute
*/
@JvmName("somjhphrvxbsvagl")
public suspend fun `inline`(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy