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

com.pulumi.digitalocean.kotlin.outputs.GetAppSpecServiceAutoscaling.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: 4.38.0.0
Show newest version
@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 GetAppSpecServiceAutoscaling(
    public val maxInstanceCount: Int,
    public val metrics: GetAppSpecServiceAutoscalingMetrics,
    public val minInstanceCount: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetAppSpecServiceAutoscaling): GetAppSpecServiceAutoscaling = GetAppSpecServiceAutoscaling(
            maxInstanceCount = javaType.maxInstanceCount(),
            metrics = javaType.metrics().let({ args0 ->
                com.pulumi.digitalocean.kotlin.outputs.GetAppSpecServiceAutoscalingMetrics.Companion.toKotlin(args0)
            }),
            minInstanceCount = javaType.minInstanceCount(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy