All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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>) {
        this.`inline` = Output.all(values)
    }

    /**
     * @param value Friendly Name to provide context on what this customization step does
     */
    @JvmName("xwgpqtjdrfyduoby")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
     */
    @JvmName("ftvtfjdoitpsbqjt")
    public suspend fun scriptUri(`value`: Output) {
        this.scriptUri = value
    }

    /**
     * @param value SHA256 checksum of the shell script provided in the scriptUri field
     */
    @JvmName("kxfomkowjlllanrr")
    public suspend fun sha256Checksum(`value`: Output) {
        this.sha256Checksum = value
    }

    /**
     * @param value The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
     * Expected value is 'Shell'.
     */
    @JvmName("errsxylgvlavmruw")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Array of shell commands to execute
     */
    @JvmName("hdacodqukdresiln")
    public suspend fun `inline`(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`inline` = mapped
    }

    /**
     * @param values Array of shell commands to execute
     */
    @JvmName("wgpnrrwbahditfqi")
    public suspend fun `inline`(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`inline` = mapped
    }

    /**
     * @param value Friendly Name to provide context on what this customization step does
     */
    @JvmName("xvgbfsaifnlwsjoh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
     */
    @JvmName("ghfbieajvsrondus")
    public suspend fun scriptUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scriptUri = mapped
    }

    /**
     * @param value SHA256 checksum of the shell script provided in the scriptUri field
     */
    @JvmName("pjejtitnmeaenvit")
    public suspend fun sha256Checksum(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sha256Checksum = mapped
    }

    /**
     * @param value The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
     * Expected value is 'Shell'.
     */
    @JvmName("gcmjycadxuowmtau")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ImageTemplateShellCustomizerArgs = ImageTemplateShellCustomizerArgs(
        `inline` = `inline`,
        name = name,
        scriptUri = scriptUri,
        sha256Checksum = sha256Checksum,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy