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

com.pulumi.aws.codebuild.kotlin.inputs.FleetScalingConfigurationTargetTrackingScalingConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.codebuild.kotlin.inputs

import com.pulumi.aws.codebuild.inputs.FleetScalingConfigurationTargetTrackingScalingConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property metricType Metric type to determine auto-scaling. Valid value: `FLEET_UTILIZATION_RATE`.
 * @property targetValue Value of metricType when to start scaling.
 */
public data class FleetScalingConfigurationTargetTrackingScalingConfigArgs(
    public val metricType: Output? = null,
    public val targetValue: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.codebuild.inputs.FleetScalingConfigurationTargetTrackingScalingConfigArgs =
        com.pulumi.aws.codebuild.inputs.FleetScalingConfigurationTargetTrackingScalingConfigArgs.builder()
            .metricType(metricType?.applyValue({ args0 -> args0 }))
            .targetValue(targetValue?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FleetScalingConfigurationTargetTrackingScalingConfigArgs].
 */
@PulumiTagMarker
public class FleetScalingConfigurationTargetTrackingScalingConfigArgsBuilder internal constructor() {
    private var metricType: Output? = null

    private var targetValue: Output? = null

    /**
     * @param value Metric type to determine auto-scaling. Valid value: `FLEET_UTILIZATION_RATE`.
     */
    @JvmName("jumjlehgjtfuosvc")
    public suspend fun metricType(`value`: Output) {
        this.metricType = value
    }

    /**
     * @param value Value of metricType when to start scaling.
     */
    @JvmName("wuewgynibypcqhhv")
    public suspend fun targetValue(`value`: Output) {
        this.targetValue = value
    }

    /**
     * @param value Metric type to determine auto-scaling. Valid value: `FLEET_UTILIZATION_RATE`.
     */
    @JvmName("gyjtyywfbfyuahqs")
    public suspend fun metricType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricType = mapped
    }

    /**
     * @param value Value of metricType when to start scaling.
     */
    @JvmName("neilmioebfmwwiiu")
    public suspend fun targetValue(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetValue = mapped
    }

    internal fun build(): FleetScalingConfigurationTargetTrackingScalingConfigArgs =
        FleetScalingConfigurationTargetTrackingScalingConfigArgs(
            metricType = metricType,
            targetValue = targetValue,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy