com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceAutoscaling.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
/**
*
* @property maxInstanceCount The maximum amount of instances for this component. Must be more than min_instance_count.
* @property metrics The metrics that the component is scaled on.
* @property minInstanceCount The minimum amount of instances for this component. Must be less than max_instance_count.
*/
public data class AppSpecServiceAutoscaling(
public val maxInstanceCount: Int,
public val metrics: AppSpecServiceAutoscalingMetrics,
public val minInstanceCount: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecServiceAutoscaling): AppSpecServiceAutoscaling = AppSpecServiceAutoscaling(
maxInstanceCount = javaType.maxInstanceCount(),
metrics = javaType.metrics().let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceAutoscalingMetrics.Companion.toKotlin(args0)
}),
minInstanceCount = javaType.minInstanceCount(),
)
}
}