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

com.pulumi.gcp.compute.kotlin.inputs.AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property target Fraction of backend capacity utilization (set in HTTP(s) load
 * balancing configuration) that autoscaler should maintain. Must
 * be a positive float value. If not defined, the default is 0.8.
 */
public data class AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs(
    public val target: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs =
        com.pulumi.gcp.compute.inputs.AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs.builder()
            .target(target.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs].
 */
@PulumiTagMarker
public class AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgsBuilder internal constructor() {
    private var target: Output? = null

    /**
     * @param value Fraction of backend capacity utilization (set in HTTP(s) load
     * balancing configuration) that autoscaler should maintain. Must
     * be a positive float value. If not defined, the default is 0.8.
     */
    @JvmName("sekevlrehepniaba")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value Fraction of backend capacity utilization (set in HTTP(s) load
     * balancing configuration) that autoscaler should maintain. Must
     * be a positive float value. If not defined, the default is 0.8.
     */
    @JvmName("mwvclitwimgexnnb")
    public suspend fun target(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.target = mapped
    }

    internal fun build(): AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs =
        AutoscalerAutoscalingPolicyLoadBalancingUtilizationArgs(
            target = target ?: throw PulumiNullFieldException("target"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy