![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.nomad.kotlin.outputs.GetScalingPolicyResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.nomad.kotlin.outputs
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
* A collection of values returned by getScalingPolicy.
* @property enabled `(boolean)` - Whether or not the scaling policy is enabled.
* @property id
* @property max `(integer)` - The maximum value set in the scaling policy.
* @property min `(integer)` - The minimum value set in the scaling policy.
* @property policy `(string)` - The policy inside the scaling policy.
* @property target `(map[string]string)` - The scaling policy target.
* @property type `(string)` - The scaling policy type.
*/
public data class GetScalingPolicyResult(
public val enabled: Boolean,
public val id: String,
public val max: Int,
public val min: Int,
public val policy: String,
public val target: Map,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.nomad.outputs.GetScalingPolicyResult): GetScalingPolicyResult = GetScalingPolicyResult(
enabled = javaType.enabled(),
id = javaType.id(),
max = javaType.max(),
min = javaType.min(),
policy = javaType.policy(),
target = javaType.target().map({ args0 -> args0.key.to(args0.value) }).toMap(),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy