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

com.pulumi.azure.compute.kotlin.inputs.OrchestratedVirtualMachineScaleSetExtensionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetExtensionArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property autoUpgradeMinorVersionEnabled Should the latest version of the Extension be used at Deployment Time, if one is available? This won't auto-update the extension on existing installation. Defaults to `true`.
 * @property extensionsToProvisionAfterVmCreations An ordered list of Extension names which Virtual Machine Scale Set should provision after VM creation.
 * @property failureSuppressionEnabled Should failures from the extension be suppressed? Possible values are `true` or `false`.
 * > **Note:** Operational failures such as not connecting to the VM will not be suppressed regardless of the `failure_suppression_enabled` value.
 * @property forceExtensionExecutionOnChange A value which, when different to the previous value can be used to force-run the Extension even if the Extension Configuration hasn't changed.
 * @property name The name for the Virtual Machine Scale Set Extension.
 * @property protectedSettings A JSON String which specifies Sensitive Settings (such as Passwords) for the Extension.
 * > **Note:** Keys within the `protected_settings` block are notoriously case-sensitive, where the casing required (e.g. `TitleCase` vs `snakeCase`) depends on the Extension being used. Please refer to the documentation for the specific Virtual Machine Extension you're looking to use for more information.
 * @property protectedSettingsFromKeyVault A `protected_settings_from_key_vault` block as defined below.
 * > **Note:** `protected_settings_from_key_vault` cannot be used with `protected_settings`
 * @property publisher Specifies the Publisher of the Extension.
 * @property settings A JSON String which specifies Settings for the Extension.
 * @property type Specifies the Type of the Extension.
 * @property typeHandlerVersion Specifies the version of the extension to use, available versions can be found using the Azure CLI.
 */
public data class OrchestratedVirtualMachineScaleSetExtensionArgs(
    public val autoUpgradeMinorVersionEnabled: Output? = null,
    public val extensionsToProvisionAfterVmCreations: Output>? = null,
    public val failureSuppressionEnabled: Output? = null,
    public val forceExtensionExecutionOnChange: Output? = null,
    public val name: Output,
    public val protectedSettings: Output? = null,
    public val protectedSettingsFromKeyVault: Output? = null,
    public val publisher: Output,
    public val settings: Output? = null,
    public val type: Output,
    public val typeHandlerVersion: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetExtensionArgs =
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetExtensionArgs.builder()
            .autoUpgradeMinorVersionEnabled(autoUpgradeMinorVersionEnabled?.applyValue({ args0 -> args0 }))
            .extensionsToProvisionAfterVmCreations(
                extensionsToProvisionAfterVmCreations?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .failureSuppressionEnabled(failureSuppressionEnabled?.applyValue({ args0 -> args0 }))
            .forceExtensionExecutionOnChange(forceExtensionExecutionOnChange?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .protectedSettings(protectedSettings?.applyValue({ args0 -> args0 }))
            .protectedSettingsFromKeyVault(
                protectedSettingsFromKeyVault?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .publisher(publisher.applyValue({ args0 -> args0 }))
            .settings(settings?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .typeHandlerVersion(typeHandlerVersion.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OrchestratedVirtualMachineScaleSetExtensionArgs].
 */
@PulumiTagMarker
public class OrchestratedVirtualMachineScaleSetExtensionArgsBuilder internal constructor() {
    private var autoUpgradeMinorVersionEnabled: Output? = null

    private var extensionsToProvisionAfterVmCreations: Output>? = null

    private var failureSuppressionEnabled: Output? = null

    private var forceExtensionExecutionOnChange: Output? = null

    private var name: Output? = null

    private var protectedSettings: Output? = null

    private var protectedSettingsFromKeyVault:
        Output? = null

    private var publisher: Output? = null

    private var settings: Output? = null

    private var type: Output? = null

    private var typeHandlerVersion: Output? = null

    /**
     * @param value Should the latest version of the Extension be used at Deployment Time, if one is available? This won't auto-update the extension on existing installation. Defaults to `true`.
     */
    @JvmName("fsgguwrhkiuaeljr")
    public suspend fun autoUpgradeMinorVersionEnabled(`value`: Output) {
        this.autoUpgradeMinorVersionEnabled = value
    }

    /**
     * @param value An ordered list of Extension names which Virtual Machine Scale Set should provision after VM creation.
     */
    @JvmName("nggsekllcoobqdlo")
    public suspend fun extensionsToProvisionAfterVmCreations(`value`: Output>) {
        this.extensionsToProvisionAfterVmCreations = value
    }

    @JvmName("efcnqvejcnepibev")
    public suspend fun extensionsToProvisionAfterVmCreations(vararg values: Output) {
        this.extensionsToProvisionAfterVmCreations = Output.all(values.asList())
    }

    /**
     * @param values An ordered list of Extension names which Virtual Machine Scale Set should provision after VM creation.
     */
    @JvmName("bkmvtbvuykiwybxv")
    public suspend fun extensionsToProvisionAfterVmCreations(values: List>) {
        this.extensionsToProvisionAfterVmCreations = Output.all(values)
    }

    /**
     * @param value Should failures from the extension be suppressed? Possible values are `true` or `false`.
     * > **Note:** Operational failures such as not connecting to the VM will not be suppressed regardless of the `failure_suppression_enabled` value.
     */
    @JvmName("nfqnlagqpjjmtwvi")
    public suspend fun failureSuppressionEnabled(`value`: Output) {
        this.failureSuppressionEnabled = value
    }

    /**
     * @param value A value which, when different to the previous value can be used to force-run the Extension even if the Extension Configuration hasn't changed.
     */
    @JvmName("mokfcycjfmxtfclj")
    public suspend fun forceExtensionExecutionOnChange(`value`: Output) {
        this.forceExtensionExecutionOnChange = value
    }

    /**
     * @param value The name for the Virtual Machine Scale Set Extension.
     */
    @JvmName("cbxpvvhmupoukbjd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A JSON String which specifies Sensitive Settings (such as Passwords) for the Extension.
     * > **Note:** Keys within the `protected_settings` block are notoriously case-sensitive, where the casing required (e.g. `TitleCase` vs `snakeCase`) depends on the Extension being used. Please refer to the documentation for the specific Virtual Machine Extension you're looking to use for more information.
     */
    @JvmName("rrlycknwuhwgeqom")
    public suspend fun protectedSettings(`value`: Output) {
        this.protectedSettings = value
    }

    /**
     * @param value A `protected_settings_from_key_vault` block as defined below.
     * > **Note:** `protected_settings_from_key_vault` cannot be used with `protected_settings`
     */
    @JvmName("ausissupuwhmgena")
    public suspend fun protectedSettingsFromKeyVault(`value`: Output) {
        this.protectedSettingsFromKeyVault = value
    }

    /**
     * @param value Specifies the Publisher of the Extension.
     */
    @JvmName("bqwpijgflgexbtlf")
    public suspend fun publisher(`value`: Output) {
        this.publisher = value
    }

    /**
     * @param value A JSON String which specifies Settings for the Extension.
     */
    @JvmName("kgpsqjmpngojguev")
    public suspend fun settings(`value`: Output) {
        this.settings = value
    }

    /**
     * @param value Specifies the Type of the Extension.
     */
    @JvmName("rhcywkgiiiwumgwk")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Specifies the version of the extension to use, available versions can be found using the Azure CLI.
     */
    @JvmName("psdshmbrooxoehax")
    public suspend fun typeHandlerVersion(`value`: Output) {
        this.typeHandlerVersion = value
    }

    /**
     * @param value Should the latest version of the Extension be used at Deployment Time, if one is available? This won't auto-update the extension on existing installation. Defaults to `true`.
     */
    @JvmName("uwotfavxdnofrenr")
    public suspend fun autoUpgradeMinorVersionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoUpgradeMinorVersionEnabled = mapped
    }

    /**
     * @param value An ordered list of Extension names which Virtual Machine Scale Set should provision after VM creation.
     */
    @JvmName("jpugwgaqwcbuoikj")
    public suspend fun extensionsToProvisionAfterVmCreations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extensionsToProvisionAfterVmCreations = mapped
    }

    /**
     * @param values An ordered list of Extension names which Virtual Machine Scale Set should provision after VM creation.
     */
    @JvmName("sgvbkuobwadexrwd")
    public suspend fun extensionsToProvisionAfterVmCreations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.extensionsToProvisionAfterVmCreations = mapped
    }

    /**
     * @param value Should failures from the extension be suppressed? Possible values are `true` or `false`.
     * > **Note:** Operational failures such as not connecting to the VM will not be suppressed regardless of the `failure_suppression_enabled` value.
     */
    @JvmName("ritssgatijfbshvp")
    public suspend fun failureSuppressionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failureSuppressionEnabled = mapped
    }

    /**
     * @param value A value which, when different to the previous value can be used to force-run the Extension even if the Extension Configuration hasn't changed.
     */
    @JvmName("vgmqymavxmwebgju")
    public suspend fun forceExtensionExecutionOnChange(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forceExtensionExecutionOnChange = mapped
    }

    /**
     * @param value The name for the Virtual Machine Scale Set Extension.
     */
    @JvmName("idxnbrirnjtrbscl")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A JSON String which specifies Sensitive Settings (such as Passwords) for the Extension.
     * > **Note:** Keys within the `protected_settings` block are notoriously case-sensitive, where the casing required (e.g. `TitleCase` vs `snakeCase`) depends on the Extension being used. Please refer to the documentation for the specific Virtual Machine Extension you're looking to use for more information.
     */
    @JvmName("hhrjyhtmcnmvkbbu")
    public suspend fun protectedSettings(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protectedSettings = mapped
    }

    /**
     * @param value A `protected_settings_from_key_vault` block as defined below.
     * > **Note:** `protected_settings_from_key_vault` cannot be used with `protected_settings`
     */
    @JvmName("cirbdwfjveawisnh")
    public suspend fun protectedSettingsFromKeyVault(`value`: OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protectedSettingsFromKeyVault = mapped
    }

    /**
     * @param argument A `protected_settings_from_key_vault` block as defined below.
     * > **Note:** `protected_settings_from_key_vault` cannot be used with `protected_settings`
     */
    @JvmName("gimtadhfpkfwknjv")
    public suspend fun protectedSettingsFromKeyVault(argument: suspend OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgsBuilder.() -> Unit) {
        val toBeMapped =
            OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.protectedSettingsFromKeyVault = mapped
    }

    /**
     * @param value Specifies the Publisher of the Extension.
     */
    @JvmName("bqwsfqavlvxtxflp")
    public suspend fun publisher(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publisher = mapped
    }

    /**
     * @param value A JSON String which specifies Settings for the Extension.
     */
    @JvmName("mokfdlalrfbjalae")
    public suspend fun settings(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.settings = mapped
    }

    /**
     * @param value Specifies the Type of the Extension.
     */
    @JvmName("baqrihnpieonmusc")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Specifies the version of the extension to use, available versions can be found using the Azure CLI.
     */
    @JvmName("mbiysirawiufbffq")
    public suspend fun typeHandlerVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.typeHandlerVersion = mapped
    }

    internal fun build(): OrchestratedVirtualMachineScaleSetExtensionArgs =
        OrchestratedVirtualMachineScaleSetExtensionArgs(
            autoUpgradeMinorVersionEnabled = autoUpgradeMinorVersionEnabled,
            extensionsToProvisionAfterVmCreations = extensionsToProvisionAfterVmCreations,
            failureSuppressionEnabled = failureSuppressionEnabled,
            forceExtensionExecutionOnChange = forceExtensionExecutionOnChange,
            name = name ?: throw PulumiNullFieldException("name"),
            protectedSettings = protectedSettings,
            protectedSettingsFromKeyVault = protectedSettingsFromKeyVault,
            publisher = publisher ?: throw PulumiNullFieldException("publisher"),
            settings = settings,
            type = type ?: throw PulumiNullFieldException("type"),
            typeHandlerVersion = typeHandlerVersion ?: throw PulumiNullFieldException("typeHandlerVersion"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy