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

com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterRolesWorkerNodeArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.hdinsight.kotlin.inputs

import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property autoscale A `autoscale` block as defined below.
 * @property password The Password associated with the local administrator for the Worker Nodes. Changing this forces a new resource to be created.
 * > **NOTE:** If specified, this password must be at least 10 characters in length and must contain at least one digit, one uppercase and one lower case letter, one non-alphanumeric character (except characters ' " ` \).
 * @property scriptActions The script action which will run on the cluster. One or more `script_actions` blocks as defined above.
 * @property sshKeys A list of SSH Keys which should be used for the local administrator on the Worker Nodes. Changing this forces a new resource to be created.
 * > **NOTE:** Either a `password` or one or more `ssh_keys` must be specified - but not both.
 * @property subnetId The ID of the Subnet within the Virtual Network where the Worker Nodes should be provisioned within. Changing this forces a new resource to be created.
 * @property targetInstanceCount The number of instances which should be run for the Worker Nodes.
 * @property username The Username of the local administrator for the Worker Nodes. Changing this forces a new resource to be created.
 * @property virtualNetworkId The ID of the Virtual Network where the Worker Nodes should be provisioned within. Changing this forces a new resource to be created.
 * @property vmSize The Size of the Virtual Machine which should be used as the Worker Nodes. Possible values are `ExtraSmall`, `Small`, `Medium`, `Large`, `ExtraLarge`, `A5`, `A6`, `A7`, `A8`, `A9`, `A10`, `A11`, `Standard_A1_V2`, `Standard_A2_V2`, `Standard_A2m_V2`, `Standard_A3`, `Standard_A4_V2`, `Standard_A4m_V2`, `Standard_A8_V2`, `Standard_A8m_V2`, `Standard_D1`, `Standard_D2`, `Standard_D3`, `Standard_D4`, `Standard_D11`, `Standard_D12`, `Standard_D13`, `Standard_D14`, `Standard_D1_V2`, `Standard_D2_V2`, `Standard_D3_V2`, `Standard_D4_V2`, `Standard_D5_V2`, `Standard_D11_V2`, `Standard_D12_V2`, `Standard_D13_V2`, `Standard_D14_V2`, `Standard_DS1_V2`, `Standard_DS2_V2`, `Standard_DS3_V2`, `Standard_DS4_V2`, `Standard_DS5_V2`, `Standard_DS11_V2`, `Standard_DS12_V2`, `Standard_DS13_V2`, `Standard_DS14_V2`, `Standard_E2_V3`, `Standard_E4_V3`, `Standard_E8_V3`, `Standard_E16_V3`, `Standard_E20_V3`, `Standard_E32_V3`, `Standard_E64_V3`, `Standard_E64i_V3`, `Standard_E2s_V3`, `Standard_E4s_V3`, `Standard_E8s_V3`, `Standard_E16s_V3`, `Standard_E20s_V3`, `Standard_E32s_V3`, `Standard_E64s_V3`, `Standard_E64is_V3`, `Standard_D2a_V4`, `Standard_D4a_V4`, `Standard_D8a_V4`, `Standard_D16a_V4`, `Standard_D32a_V4`, `Standard_D48a_V4`, `Standard_D64a_V4`, `Standard_D96a_V4`, `Standard_E2a_V4`, `Standard_E4a_V4`, `Standard_E8a_V4`, `Standard_E16a_V4`, `Standard_E20a_V4`, `Standard_E32a_V4`, `Standard_E48a_V4`, `Standard_E64a_V4`, `Standard_E96a_V4`, `Standard_G1`, `Standard_G2`, `Standard_G3`, `Standard_G4`, `Standard_G5`, `Standard_F2s_V2`, `Standard_F4s_V2`, `Standard_F8s_V2`, `Standard_F16s_V2`, `Standard_F32s_V2`, `Standard_F64s_V2`, `Standard_F72s_V2`, `Standard_GS1`, `Standard_GS2`, `Standard_GS3`, `Standard_GS4`, `Standard_GS5` and `Standard_NC24`. Changing this forces a new resource to be created.
 * > **NOTE:** High memory instances must be specified for the Head Node (Azure suggests a `Standard_D14_V2`).
 */
public data class InteractiveQueryClusterRolesWorkerNodeArgs(
    public val autoscale: Output? = null,
    public val password: Output? = null,
    public val scriptActions: Output>? =
        null,
    public val sshKeys: Output>? = null,
    public val subnetId: Output? = null,
    public val targetInstanceCount: Output,
    public val username: Output,
    public val virtualNetworkId: Output? = null,
    public val vmSize: Output,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeArgs =
        com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeArgs.builder()
            .autoscale(autoscale?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .password(password?.applyValue({ args0 -> args0 }))
            .scriptActions(
                scriptActions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sshKeys(sshKeys?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetId(subnetId?.applyValue({ args0 -> args0 }))
            .targetInstanceCount(targetInstanceCount.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 }))
            .virtualNetworkId(virtualNetworkId?.applyValue({ args0 -> args0 }))
            .vmSize(vmSize.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InteractiveQueryClusterRolesWorkerNodeArgs].
 */
@PulumiTagMarker
public class InteractiveQueryClusterRolesWorkerNodeArgsBuilder internal constructor() {
    private var autoscale: Output? = null

    private var password: Output? = null

    private var scriptActions: Output>? =
        null

    private var sshKeys: Output>? = null

    private var subnetId: Output? = null

    private var targetInstanceCount: Output? = null

    private var username: Output? = null

    private var virtualNetworkId: Output? = null

    private var vmSize: Output? = null

    /**
     * @param value A `autoscale` block as defined below.
     */
    @JvmName("vlalxuqtwxdiauwn")
    public suspend
    fun autoscale(`value`: Output) {
        this.autoscale = value
    }

    /**
     * @param value The Password associated with the local administrator for the Worker Nodes. Changing this forces a new resource to be created.
     * > **NOTE:** If specified, this password must be at least 10 characters in length and must contain at least one digit, one uppercase and one lower case letter, one non-alphanumeric character (except characters ' " ` \).
     */
    @JvmName("hmmspjjynujidbmy")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The script action which will run on the cluster. One or more `script_actions` blocks as defined above.
     */
    @JvmName("vshkwpictmdcvhdd")
    public suspend
    fun scriptActions(`value`: Output>) {
        this.scriptActions = value
    }

    @JvmName("mpldancfyeqwdwiy")
    public suspend fun scriptActions(
        vararg
        values: Output,
    ) {
        this.scriptActions = Output.all(values.asList())
    }

    /**
     * @param values The script action which will run on the cluster. One or more `script_actions` blocks as defined above.
     */
    @JvmName("spbcvowachwplirj")
    public suspend
    fun scriptActions(values: List>) {
        this.scriptActions = Output.all(values)
    }

    /**
     * @param value A list of SSH Keys which should be used for the local administrator on the Worker Nodes. Changing this forces a new resource to be created.
     * > **NOTE:** Either a `password` or one or more `ssh_keys` must be specified - but not both.
     */
    @JvmName("xmcesakghmceyqqt")
    public suspend fun sshKeys(`value`: Output>) {
        this.sshKeys = value
    }

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

    /**
     * @param values A list of SSH Keys which should be used for the local administrator on the Worker Nodes. Changing this forces a new resource to be created.
     * > **NOTE:** Either a `password` or one or more `ssh_keys` must be specified - but not both.
     */
    @JvmName("pxrgocdefvupicsr")
    public suspend fun sshKeys(values: List>) {
        this.sshKeys = Output.all(values)
    }

    /**
     * @param value The ID of the Subnet within the Virtual Network where the Worker Nodes should be provisioned within. Changing this forces a new resource to be created.
     */
    @JvmName("qkhqpbmicufampfx")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value The number of instances which should be run for the Worker Nodes.
     */
    @JvmName("yrnamgnpxflgglsj")
    public suspend fun targetInstanceCount(`value`: Output) {
        this.targetInstanceCount = value
    }

    /**
     * @param value The Username of the local administrator for the Worker Nodes. Changing this forces a new resource to be created.
     */
    @JvmName("jqjqgducofcvpccd")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The ID of the Virtual Network where the Worker Nodes should be provisioned within. Changing this forces a new resource to be created.
     */
    @JvmName("pqcclrgjmflfokbo")
    public suspend fun virtualNetworkId(`value`: Output) {
        this.virtualNetworkId = value
    }

    /**
     * @param value The Size of the Virtual Machine which should be used as the Worker Nodes. Possible values are `ExtraSmall`, `Small`, `Medium`, `Large`, `ExtraLarge`, `A5`, `A6`, `A7`, `A8`, `A9`, `A10`, `A11`, `Standard_A1_V2`, `Standard_A2_V2`, `Standard_A2m_V2`, `Standard_A3`, `Standard_A4_V2`, `Standard_A4m_V2`, `Standard_A8_V2`, `Standard_A8m_V2`, `Standard_D1`, `Standard_D2`, `Standard_D3`, `Standard_D4`, `Standard_D11`, `Standard_D12`, `Standard_D13`, `Standard_D14`, `Standard_D1_V2`, `Standard_D2_V2`, `Standard_D3_V2`, `Standard_D4_V2`, `Standard_D5_V2`, `Standard_D11_V2`, `Standard_D12_V2`, `Standard_D13_V2`, `Standard_D14_V2`, `Standard_DS1_V2`, `Standard_DS2_V2`, `Standard_DS3_V2`, `Standard_DS4_V2`, `Standard_DS5_V2`, `Standard_DS11_V2`, `Standard_DS12_V2`, `Standard_DS13_V2`, `Standard_DS14_V2`, `Standard_E2_V3`, `Standard_E4_V3`, `Standard_E8_V3`, `Standard_E16_V3`, `Standard_E20_V3`, `Standard_E32_V3`, `Standard_E64_V3`, `Standard_E64i_V3`, `Standard_E2s_V3`, `Standard_E4s_V3`, `Standard_E8s_V3`, `Standard_E16s_V3`, `Standard_E20s_V3`, `Standard_E32s_V3`, `Standard_E64s_V3`, `Standard_E64is_V3`, `Standard_D2a_V4`, `Standard_D4a_V4`, `Standard_D8a_V4`, `Standard_D16a_V4`, `Standard_D32a_V4`, `Standard_D48a_V4`, `Standard_D64a_V4`, `Standard_D96a_V4`, `Standard_E2a_V4`, `Standard_E4a_V4`, `Standard_E8a_V4`, `Standard_E16a_V4`, `Standard_E20a_V4`, `Standard_E32a_V4`, `Standard_E48a_V4`, `Standard_E64a_V4`, `Standard_E96a_V4`, `Standard_G1`, `Standard_G2`, `Standard_G3`, `Standard_G4`, `Standard_G5`, `Standard_F2s_V2`, `Standard_F4s_V2`, `Standard_F8s_V2`, `Standard_F16s_V2`, `Standard_F32s_V2`, `Standard_F64s_V2`, `Standard_F72s_V2`, `Standard_GS1`, `Standard_GS2`, `Standard_GS3`, `Standard_GS4`, `Standard_GS5` and `Standard_NC24`. Changing this forces a new resource to be created.
     * > **NOTE:** High memory instances must be specified for the Head Node (Azure suggests a `Standard_D14_V2`).
     */
    @JvmName("bbmlsfnwkhyyrhid")
    public suspend fun vmSize(`value`: Output) {
        this.vmSize = value
    }

    /**
     * @param value A `autoscale` block as defined below.
     */
    @JvmName("ebaaxtbriqmvdlpr")
    public suspend fun autoscale(`value`: InteractiveQueryClusterRolesWorkerNodeAutoscaleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoscale = mapped
    }

    /**
     * @param argument A `autoscale` block as defined below.
     */
    @JvmName("xvaxolwhgduoxfml")
    public suspend
    fun autoscale(argument: suspend InteractiveQueryClusterRolesWorkerNodeAutoscaleArgsBuilder.() -> Unit) {
        val toBeMapped = InteractiveQueryClusterRolesWorkerNodeAutoscaleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.autoscale = mapped
    }

    /**
     * @param value The Password associated with the local administrator for the Worker Nodes. Changing this forces a new resource to be created.
     * > **NOTE:** If specified, this password must be at least 10 characters in length and must contain at least one digit, one uppercase and one lower case letter, one non-alphanumeric character (except characters ' " ` \).
     */
    @JvmName("fgmngcvxkmegbfmj")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The script action which will run on the cluster. One or more `script_actions` blocks as defined above.
     */
    @JvmName("erarofvcjlkhbqxd")
    public suspend
    fun scriptActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scriptActions = mapped
    }

    /**
     * @param argument The script action which will run on the cluster. One or more `script_actions` blocks as defined above.
     */
    @JvmName("jmnnuvmvjiygtcbe")
    public suspend
    fun scriptActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InteractiveQueryClusterRolesWorkerNodeScriptActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.scriptActions = mapped
    }

    /**
     * @param argument The script action which will run on the cluster. One or more `script_actions` blocks as defined above.
     */
    @JvmName("etpgyddfmxqrektn")
    public suspend fun scriptActions(
        vararg
        argument: suspend InteractiveQueryClusterRolesWorkerNodeScriptActionArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            InteractiveQueryClusterRolesWorkerNodeScriptActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.scriptActions = mapped
    }

    /**
     * @param argument The script action which will run on the cluster. One or more `script_actions` blocks as defined above.
     */
    @JvmName("mmoesnmlcxfonjnx")
    public suspend
    fun scriptActions(argument: suspend InteractiveQueryClusterRolesWorkerNodeScriptActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                InteractiveQueryClusterRolesWorkerNodeScriptActionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.scriptActions = mapped
    }

    /**
     * @param values The script action which will run on the cluster. One or more `script_actions` blocks as defined above.
     */
    @JvmName("scgnwmacahlnsmlv")
    public suspend fun scriptActions(
        vararg
        values: InteractiveQueryClusterRolesWorkerNodeScriptActionArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scriptActions = mapped
    }

    /**
     * @param value A list of SSH Keys which should be used for the local administrator on the Worker Nodes. Changing this forces a new resource to be created.
     * > **NOTE:** Either a `password` or one or more `ssh_keys` must be specified - but not both.
     */
    @JvmName("cmmmsgnjnjsqgxsh")
    public suspend fun sshKeys(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sshKeys = mapped
    }

    /**
     * @param values A list of SSH Keys which should be used for the local administrator on the Worker Nodes. Changing this forces a new resource to be created.
     * > **NOTE:** Either a `password` or one or more `ssh_keys` must be specified - but not both.
     */
    @JvmName("ockuwjmeyoylfrgb")
    public suspend fun sshKeys(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sshKeys = mapped
    }

    /**
     * @param value The ID of the Subnet within the Virtual Network where the Worker Nodes should be provisioned within. Changing this forces a new resource to be created.
     */
    @JvmName("ugusfwjhwybjurbq")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    /**
     * @param value The number of instances which should be run for the Worker Nodes.
     */
    @JvmName("dmaclloovjufoprn")
    public suspend fun targetInstanceCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetInstanceCount = mapped
    }

    /**
     * @param value The Username of the local administrator for the Worker Nodes. Changing this forces a new resource to be created.
     */
    @JvmName("fflpotlmsiljbwtj")
    public suspend fun username(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.username = mapped
    }

    /**
     * @param value The ID of the Virtual Network where the Worker Nodes should be provisioned within. Changing this forces a new resource to be created.
     */
    @JvmName("fuchcdjkwrgqwscp")
    public suspend fun virtualNetworkId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualNetworkId = mapped
    }

    /**
     * @param value The Size of the Virtual Machine which should be used as the Worker Nodes. Possible values are `ExtraSmall`, `Small`, `Medium`, `Large`, `ExtraLarge`, `A5`, `A6`, `A7`, `A8`, `A9`, `A10`, `A11`, `Standard_A1_V2`, `Standard_A2_V2`, `Standard_A2m_V2`, `Standard_A3`, `Standard_A4_V2`, `Standard_A4m_V2`, `Standard_A8_V2`, `Standard_A8m_V2`, `Standard_D1`, `Standard_D2`, `Standard_D3`, `Standard_D4`, `Standard_D11`, `Standard_D12`, `Standard_D13`, `Standard_D14`, `Standard_D1_V2`, `Standard_D2_V2`, `Standard_D3_V2`, `Standard_D4_V2`, `Standard_D5_V2`, `Standard_D11_V2`, `Standard_D12_V2`, `Standard_D13_V2`, `Standard_D14_V2`, `Standard_DS1_V2`, `Standard_DS2_V2`, `Standard_DS3_V2`, `Standard_DS4_V2`, `Standard_DS5_V2`, `Standard_DS11_V2`, `Standard_DS12_V2`, `Standard_DS13_V2`, `Standard_DS14_V2`, `Standard_E2_V3`, `Standard_E4_V3`, `Standard_E8_V3`, `Standard_E16_V3`, `Standard_E20_V3`, `Standard_E32_V3`, `Standard_E64_V3`, `Standard_E64i_V3`, `Standard_E2s_V3`, `Standard_E4s_V3`, `Standard_E8s_V3`, `Standard_E16s_V3`, `Standard_E20s_V3`, `Standard_E32s_V3`, `Standard_E64s_V3`, `Standard_E64is_V3`, `Standard_D2a_V4`, `Standard_D4a_V4`, `Standard_D8a_V4`, `Standard_D16a_V4`, `Standard_D32a_V4`, `Standard_D48a_V4`, `Standard_D64a_V4`, `Standard_D96a_V4`, `Standard_E2a_V4`, `Standard_E4a_V4`, `Standard_E8a_V4`, `Standard_E16a_V4`, `Standard_E20a_V4`, `Standard_E32a_V4`, `Standard_E48a_V4`, `Standard_E64a_V4`, `Standard_E96a_V4`, `Standard_G1`, `Standard_G2`, `Standard_G3`, `Standard_G4`, `Standard_G5`, `Standard_F2s_V2`, `Standard_F4s_V2`, `Standard_F8s_V2`, `Standard_F16s_V2`, `Standard_F32s_V2`, `Standard_F64s_V2`, `Standard_F72s_V2`, `Standard_GS1`, `Standard_GS2`, `Standard_GS3`, `Standard_GS4`, `Standard_GS5` and `Standard_NC24`. Changing this forces a new resource to be created.
     * > **NOTE:** High memory instances must be specified for the Head Node (Azure suggests a `Standard_D14_V2`).
     */
    @JvmName("wodyaxhelhdbrdsv")
    public suspend fun vmSize(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vmSize = mapped
    }

    internal fun build(): InteractiveQueryClusterRolesWorkerNodeArgs =
        InteractiveQueryClusterRolesWorkerNodeArgs(
            autoscale = autoscale,
            password = password,
            scriptActions = scriptActions,
            sshKeys = sshKeys,
            subnetId = subnetId,
            targetInstanceCount = targetInstanceCount ?: throw PulumiNullFieldException("targetInstanceCount"),
            username = username ?: throw PulumiNullFieldException("username"),
            virtualNetworkId = virtualNetworkId,
            vmSize = vmSize ?: throw PulumiNullFieldException("vmSize"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy