![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ecs.kotlin.outputs.TaskSetScale.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ecs.kotlin.outputs
import com.pulumi.awsnative.ecs.kotlin.enums.TaskSetScaleUnit
import kotlin.Double
import kotlin.Suppress
/**
*
* @property unit The unit of measure for the scale value.
* @property value The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.
*/
public data class TaskSetScale(
public val unit: TaskSetScaleUnit? = null,
public val `value`: Double? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.TaskSetScale): TaskSetScale =
TaskSetScale(
unit = javaType.unit().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ecs.kotlin.enums.TaskSetScaleUnit.Companion.toKotlin(args0)
})
}).orElse(null),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy