com.pulumi.azure.containerapp.kotlin.outputs.EnvironmentWorkloadProfile.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerapp.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 EnvironmentWorkloadProfile(
public val maximumCount: Int? = null,
public val minimumCount: Int? = null,
public val name: String,
public val workloadProfileType: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.EnvironmentWorkloadProfile): EnvironmentWorkloadProfile = EnvironmentWorkloadProfile(
maximumCount = javaType.maximumCount().map({ args0 -> args0 }).orElse(null),
minimumCount = javaType.minimumCount().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
workloadProfileType = javaType.workloadProfileType(),
)
}
}