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

com.pulumi.awsnative.kafkaconnect.kotlin.inputs.ConnectorScaleInPolicyArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kafkaconnect.kotlin.inputs

import com.pulumi.awsnative.kafkaconnect.inputs.ConnectorScaleInPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Information about the scale in policy of the connector.
 * @property cpuUtilizationPercentage Specifies the CPU utilization percentage threshold at which connector scale in should trigger.
 */
public data class ConnectorScaleInPolicyArgs(
    public val cpuUtilizationPercentage: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kafkaconnect.inputs.ConnectorScaleInPolicyArgs =
        com.pulumi.awsnative.kafkaconnect.inputs.ConnectorScaleInPolicyArgs.builder()
            .cpuUtilizationPercentage(cpuUtilizationPercentage.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectorScaleInPolicyArgs].
 */
@PulumiTagMarker
public class ConnectorScaleInPolicyArgsBuilder internal constructor() {
    private var cpuUtilizationPercentage: Output? = null

    /**
     * @param value Specifies the CPU utilization percentage threshold at which connector scale in should trigger.
     */
    @JvmName("vmueijkrknggnxfx")
    public suspend fun cpuUtilizationPercentage(`value`: Output) {
        this.cpuUtilizationPercentage = value
    }

    /**
     * @param value Specifies the CPU utilization percentage threshold at which connector scale in should trigger.
     */
    @JvmName("ayembaulagqhwtqq")
    public suspend fun cpuUtilizationPercentage(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cpuUtilizationPercentage = mapped
    }

    internal fun build(): ConnectorScaleInPolicyArgs = ConnectorScaleInPolicyArgs(
        cpuUtilizationPercentage = cpuUtilizationPercentage ?: throw
            PulumiNullFieldException("cpuUtilizationPercentage"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy