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

com.pulumi.azure.containerapp.kotlin.inputs.EnvironmentWorkloadProfileArgs.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.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerapp.kotlin.inputs

import com.pulumi.azure.containerapp.inputs.EnvironmentWorkloadProfileArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maximumCount The maximum number of instances of workload profile that can be deployed in the Container App Environment.
 * @property minimumCount The minimum number of instances of workload profile that can be deployed in the Container App Environment.
 * @property name The name of the workload profile.
 * @property workloadProfileType Workload profile type for the workloads to run on. Possible values include `Consumption`, `D4`, `D8`, `D16`, `D32`, `E4`, `E8`, `E16` and `E32`.
 * > **Note:** A `Consumption` type must have a name of `Consumption` and an environment may only have one `Consumption` Workload Profile.
 * > **Note:** Defining a `Consumption` profile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
 */
public data class EnvironmentWorkloadProfileArgs(
    public val maximumCount: Output? = null,
    public val minimumCount: Output? = null,
    public val name: Output,
    public val workloadProfileType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerapp.inputs.EnvironmentWorkloadProfileArgs =
        com.pulumi.azure.containerapp.inputs.EnvironmentWorkloadProfileArgs.builder()
            .maximumCount(maximumCount?.applyValue({ args0 -> args0 }))
            .minimumCount(minimumCount?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .workloadProfileType(workloadProfileType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnvironmentWorkloadProfileArgs].
 */
@PulumiTagMarker
public class EnvironmentWorkloadProfileArgsBuilder internal constructor() {
    private var maximumCount: Output? = null

    private var minimumCount: Output? = null

    private var name: Output? = null

    private var workloadProfileType: Output? = null

    /**
     * @param value The maximum number of instances of workload profile that can be deployed in the Container App Environment.
     */
    @JvmName("fuflccjmpljnbhkx")
    public suspend fun maximumCount(`value`: Output) {
        this.maximumCount = value
    }

    /**
     * @param value The minimum number of instances of workload profile that can be deployed in the Container App Environment.
     */
    @JvmName("tsxpnuottiolulil")
    public suspend fun minimumCount(`value`: Output) {
        this.minimumCount = value
    }

    /**
     * @param value The name of the workload profile.
     */
    @JvmName("xmulasufgtpuiijc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Workload profile type for the workloads to run on. Possible values include `Consumption`, `D4`, `D8`, `D16`, `D32`, `E4`, `E8`, `E16` and `E32`.
     * > **Note:** A `Consumption` type must have a name of `Consumption` and an environment may only have one `Consumption` Workload Profile.
     * > **Note:** Defining a `Consumption` profile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
     */
    @JvmName("wrpcimadvkcvndel")
    public suspend fun workloadProfileType(`value`: Output) {
        this.workloadProfileType = value
    }

    /**
     * @param value The maximum number of instances of workload profile that can be deployed in the Container App Environment.
     */
    @JvmName("jklvgejojjdaeryu")
    public suspend fun maximumCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximumCount = mapped
    }

    /**
     * @param value The minimum number of instances of workload profile that can be deployed in the Container App Environment.
     */
    @JvmName("ppcvtumswvktusov")
    public suspend fun minimumCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimumCount = mapped
    }

    /**
     * @param value The name of the workload profile.
     */
    @JvmName("wyqbygtvbqeabqtt")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Workload profile type for the workloads to run on. Possible values include `Consumption`, `D4`, `D8`, `D16`, `D32`, `E4`, `E8`, `E16` and `E32`.
     * > **Note:** A `Consumption` type must have a name of `Consumption` and an environment may only have one `Consumption` Workload Profile.
     * > **Note:** Defining a `Consumption` profile is optional, however, Environments created without an initial Workload Profile cannot have them added at a later time and must be recreated. Similarly, an environment created with Profiles must always have at least one defined Profile, removing all profiles will force a recreation of the resource.
     */
    @JvmName("xmfqglyanvsbacox")
    public suspend fun workloadProfileType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.workloadProfileType = mapped
    }

    internal fun build(): EnvironmentWorkloadProfileArgs = EnvironmentWorkloadProfileArgs(
        maximumCount = maximumCount,
        minimumCount = minimumCount,
        name = name ?: throw PulumiNullFieldException("name"),
        workloadProfileType = workloadProfileType ?: throw PulumiNullFieldException("workloadProfileType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy