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

com.pulumi.aws.codebuild.kotlin.outputs.GetFleetScalingConfiguration.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.codebuild.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property desiredCapacity The desired number of instances in the fleet when auto-scaling.
 * @property maxCapacity The maximum number of instances in the fleet when auto-scaling.
 * @property scalingType The scaling type for a compute fleet.
 * @property targetTrackingScalingConfigs Nested attribute containing information about thresholds when new instance is auto-scaled into the compute fleet.
 */
public data class GetFleetScalingConfiguration(
    public val desiredCapacity: Int,
    public val maxCapacity: Int,
    public val scalingType: String,
    public val targetTrackingScalingConfigs: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.aws.codebuild.outputs.GetFleetScalingConfiguration): GetFleetScalingConfiguration = GetFleetScalingConfiguration(
            desiredCapacity = javaType.desiredCapacity(),
            maxCapacity = javaType.maxCapacity(),
            scalingType = javaType.scalingType(),
            targetTrackingScalingConfigs = javaType.targetTrackingScalingConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.aws.codebuild.kotlin.outputs.GetFleetScalingConfigurationTargetTrackingScalingConfig.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy