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

com.pulumi.azurenative.hybridcontainerservice.kotlin.inputs.ControlPlaneProfileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.hybridcontainerservice.kotlin.inputs

import com.pulumi.azurenative.hybridcontainerservice.inputs.ControlPlaneProfileArgs.builder
import com.pulumi.azurenative.hybridcontainerservice.kotlin.enums.Mode
import com.pulumi.azurenative.hybridcontainerservice.kotlin.enums.OsType
import com.pulumi.core.Either
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * ControlPlaneProfile - The control plane properties for the provisioned cluster.
 * @property availabilityZones AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
 * @property cloudProviderProfile The underlying cloud infra provider properties.
 * @property controlPlaneEndpoint API server endpoint for the control plane
 * @property count Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
 * @property linuxProfile Profile for Linux VMs in the container service cluster.
 * @property maxCount The maximum number of nodes for auto-scaling
 * @property maxPods The maximum number of pods that can run on a node.
 * @property minCount The minimum number of nodes for auto-scaling
 * @property mode Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
 * @property name Unique name of the agent pool profile in the context of the subscription and resource group.
 * @property nodeImageVersion The version of node image
 * @property nodeLabels NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
 * @property nodeTaints NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
 * @property osType OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
 * @property vmSize VmSize - The size of the agent pool VMs.
 */
public data class ControlPlaneProfileArgs(
    public val availabilityZones: Output>? = null,
    public val cloudProviderProfile: Output? = null,
    public val controlPlaneEndpoint: Output? =
        null,
    public val count: Output? = null,
    public val linuxProfile: Output? = null,
    public val maxCount: Output? = null,
    public val maxPods: Output? = null,
    public val minCount: Output? = null,
    public val mode: Output>? = null,
    public val name: Output? = null,
    public val nodeImageVersion: Output? = null,
    public val nodeLabels: Output>? = null,
    public val nodeTaints: Output>? = null,
    public val osType: Output>? = null,
    public val vmSize: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hybridcontainerservice.inputs.ControlPlaneProfileArgs =
        com.pulumi.azurenative.hybridcontainerservice.inputs.ControlPlaneProfileArgs.builder()
            .availabilityZones(availabilityZones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .cloudProviderProfile(
                cloudProviderProfile?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .controlPlaneEndpoint(
                controlPlaneEndpoint?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .count(count?.applyValue({ args0 -> args0 }))
            .linuxProfile(linuxProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .maxCount(maxCount?.applyValue({ args0 -> args0 }))
            .maxPods(maxPods?.applyValue({ args0 -> args0 }))
            .minCount(minCount?.applyValue({ args0 -> args0 }))
            .mode(
                mode?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .nodeImageVersion(nodeImageVersion?.applyValue({ args0 -> args0 }))
            .nodeLabels(
                nodeLabels?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .nodeTaints(nodeTaints?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .osType(
                osType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .vmSize(vmSize?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ControlPlaneProfileArgs].
 */
@PulumiTagMarker
public class ControlPlaneProfileArgsBuilder internal constructor() {
    private var availabilityZones: Output>? = null

    private var cloudProviderProfile: Output? = null

    private var controlPlaneEndpoint: Output? =
        null

    private var count: Output? = null

    private var linuxProfile: Output? = null

    private var maxCount: Output? = null

    private var maxPods: Output? = null

    private var minCount: Output? = null

    private var mode: Output>? = null

    private var name: Output? = null

    private var nodeImageVersion: Output? = null

    private var nodeLabels: Output>? = null

    private var nodeTaints: Output>? = null

    private var osType: Output>? = null

    private var vmSize: Output? = null

    /**
     * @param value AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     */
    @JvmName("gewmwtrhrtkgjkhh")
    public suspend fun availabilityZones(`value`: Output>) {
        this.availabilityZones = value
    }

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

    /**
     * @param values AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     */
    @JvmName("oghcogwjbnvhbnat")
    public suspend fun availabilityZones(values: List>) {
        this.availabilityZones = Output.all(values)
    }

    /**
     * @param value The underlying cloud infra provider properties.
     */
    @JvmName("nvnkussgvtwutahf")
    public suspend fun cloudProviderProfile(`value`: Output) {
        this.cloudProviderProfile = value
    }

    /**
     * @param value API server endpoint for the control plane
     */
    @JvmName("dvtdehkfidurbdrf")
    public suspend fun controlPlaneEndpoint(`value`: Output) {
        this.controlPlaneEndpoint = value
    }

    /**
     * @param value Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
     */
    @JvmName("cdevvhnetmvokouf")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value Profile for Linux VMs in the container service cluster.
     */
    @JvmName("tejieufmrxnkbhvk")
    public suspend fun linuxProfile(`value`: Output) {
        this.linuxProfile = value
    }

    /**
     * @param value The maximum number of nodes for auto-scaling
     */
    @JvmName("funkllvymtrhfshs")
    public suspend fun maxCount(`value`: Output) {
        this.maxCount = value
    }

    /**
     * @param value The maximum number of pods that can run on a node.
     */
    @JvmName("cquiiomfdrhqspnc")
    public suspend fun maxPods(`value`: Output) {
        this.maxPods = value
    }

    /**
     * @param value The minimum number of nodes for auto-scaling
     */
    @JvmName("qjibkhykbheamjmu")
    public suspend fun minCount(`value`: Output) {
        this.minCount = value
    }

    /**
     * @param value Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     */
    @JvmName("vwlsnylkehaqevax")
    public suspend fun mode(`value`: Output>) {
        this.mode = value
    }

    /**
     * @param value Unique name of the agent pool profile in the context of the subscription and resource group.
     */
    @JvmName("uuitrkbeldyyndda")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The version of node image
     */
    @JvmName("vsmravgrrjxspejq")
    public suspend fun nodeImageVersion(`value`: Output) {
        this.nodeImageVersion = value
    }

    /**
     * @param value NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
     */
    @JvmName("hucickrtlmqcqflv")
    public suspend fun nodeLabels(`value`: Output>) {
        this.nodeLabels = value
    }

    /**
     * @param value NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     */
    @JvmName("gcjpwuuydlltsmfk")
    public suspend fun nodeTaints(`value`: Output>) {
        this.nodeTaints = value
    }

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

    /**
     * @param values NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     */
    @JvmName("npoxlgrnlyuleakm")
    public suspend fun nodeTaints(values: List>) {
        this.nodeTaints = Output.all(values)
    }

    /**
     * @param value OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     */
    @JvmName("uwgpkhhiyutwurbn")
    public suspend fun osType(`value`: Output>) {
        this.osType = value
    }

    /**
     * @param value VmSize - The size of the agent pool VMs.
     */
    @JvmName("qkwkdxtgqrrckmdd")
    public suspend fun vmSize(`value`: Output) {
        this.vmSize = value
    }

    /**
     * @param value AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     */
    @JvmName("jkyrlpyeyhrunfsj")
    public suspend fun availabilityZones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityZones = mapped
    }

    /**
     * @param values AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     */
    @JvmName("vrccuxunjxbnmhlo")
    public suspend fun availabilityZones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.availabilityZones = mapped
    }

    /**
     * @param value The underlying cloud infra provider properties.
     */
    @JvmName("upmvrmesielbkesh")
    public suspend fun cloudProviderProfile(`value`: CloudProviderProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudProviderProfile = mapped
    }

    /**
     * @param argument The underlying cloud infra provider properties.
     */
    @JvmName("evymsoeeinqgxcjf")
    public suspend fun cloudProviderProfile(argument: suspend CloudProviderProfileArgsBuilder.() -> Unit) {
        val toBeMapped = CloudProviderProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cloudProviderProfile = mapped
    }

    /**
     * @param value API server endpoint for the control plane
     */
    @JvmName("xqdwbmcxjjubrggi")
    public suspend fun controlPlaneEndpoint(`value`: ControlPlaneEndpointProfileControlPlaneEndpointArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controlPlaneEndpoint = mapped
    }

    /**
     * @param argument API server endpoint for the control plane
     */
    @JvmName("rvhhxtbuuboyquuo")
    public suspend fun controlPlaneEndpoint(argument: suspend ControlPlaneEndpointProfileControlPlaneEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = ControlPlaneEndpointProfileControlPlaneEndpointArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.controlPlaneEndpoint = mapped
    }

    /**
     * @param value Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
     */
    @JvmName("jngbinlroiyofuly")
    public suspend fun count(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value Profile for Linux VMs in the container service cluster.
     */
    @JvmName("dwestpurnlphgmxb")
    public suspend fun linuxProfile(`value`: LinuxProfilePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linuxProfile = mapped
    }

    /**
     * @param argument Profile for Linux VMs in the container service cluster.
     */
    @JvmName("yxtfcvfhtrmceakj")
    public suspend fun linuxProfile(argument: suspend LinuxProfilePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = LinuxProfilePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.linuxProfile = mapped
    }

    /**
     * @param value The maximum number of nodes for auto-scaling
     */
    @JvmName("gbbwrbgopeveuuvm")
    public suspend fun maxCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxCount = mapped
    }

    /**
     * @param value The maximum number of pods that can run on a node.
     */
    @JvmName("qtsijsfrdpdlvkmy")
    public suspend fun maxPods(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxPods = mapped
    }

    /**
     * @param value The minimum number of nodes for auto-scaling
     */
    @JvmName("vcugbhgsnklninsa")
    public suspend fun minCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minCount = mapped
    }

    /**
     * @param value Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     */
    @JvmName("uagyouwhpvfxwidc")
    public suspend fun mode(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     */
    @JvmName("otfsxpwpktwsloab")
    public fun mode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     */
    @JvmName("vcmufwtpxcxdwksj")
    public fun mode(`value`: Mode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Unique name of the agent pool profile in the context of the subscription and resource group.
     */
    @JvmName("knuruhimppibuukg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The version of node image
     */
    @JvmName("qispbdolgcmrjphm")
    public suspend fun nodeImageVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeImageVersion = mapped
    }

    /**
     * @param value NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
     */
    @JvmName("palqabmgwajmpuce")
    public suspend fun nodeLabels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeLabels = mapped
    }

    /**
     * @param values NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
     */
    @JvmName("psvcqwjbdvrgekmk")
    public fun nodeLabels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeLabels = mapped
    }

    /**
     * @param value NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     */
    @JvmName("eoeogaagusqkybgl")
    public suspend fun nodeTaints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeTaints = mapped
    }

    /**
     * @param values NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     */
    @JvmName("txvpfdixqbtsfdfj")
    public suspend fun nodeTaints(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeTaints = mapped
    }

    /**
     * @param value OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     */
    @JvmName("wcplvmjgtxvjxied")
    public suspend fun osType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    /**
     * @param value OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     */
    @JvmName("rkyblwkfnmucmejy")
    public fun osType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    /**
     * @param value OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     */
    @JvmName("kpwvqqcdleiqwire")
    public fun osType(`value`: OsType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    /**
     * @param value VmSize - The size of the agent pool VMs.
     */
    @JvmName("vhsdlaxocsouswvp")
    public suspend fun vmSize(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vmSize = mapped
    }

    internal fun build(): ControlPlaneProfileArgs = ControlPlaneProfileArgs(
        availabilityZones = availabilityZones,
        cloudProviderProfile = cloudProviderProfile,
        controlPlaneEndpoint = controlPlaneEndpoint,
        count = count,
        linuxProfile = linuxProfile,
        maxCount = maxCount,
        maxPods = maxPods,
        minCount = minCount,
        mode = mode,
        name = name,
        nodeImageVersion = nodeImageVersion,
        nodeLabels = nodeLabels,
        nodeTaints = nodeTaints,
        osType = osType,
        vmSize = vmSize,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy