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

com.pulumi.aws.codebuild.kotlin.outputs.FleetScalingConfiguration.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
 * @property maxCapacity Maximum number of instances in the fleet when auto-scaling.
 * @property scalingType Scaling type for a compute fleet. Valid value: `TARGET_TRACKING_SCALING`.
 * @property targetTrackingScalingConfigs Configuration block. Detailed below.
 */
public data class FleetScalingConfiguration(
    public val desiredCapacity: Int? = null,
    public val maxCapacity: Int? = null,
    public val scalingType: String? = null,
    public val targetTrackingScalingConfigs: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.aws.codebuild.outputs.FleetScalingConfiguration): FleetScalingConfiguration = FleetScalingConfiguration(
            desiredCapacity = javaType.desiredCapacity().map({ args0 -> args0 }).orElse(null),
            maxCapacity = javaType.maxCapacity().map({ args0 -> args0 }).orElse(null),
            scalingType = javaType.scalingType().map({ args0 -> args0 }).orElse(null),
            targetTrackingScalingConfigs = javaType.targetTrackingScalingConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.aws.codebuild.kotlin.outputs.FleetScalingConfigurationTargetTrackingScalingConfig.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy