com.pulumi.aws.codebuild.kotlin.outputs.FleetScalingConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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