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

com.pulumi.gcp.dataproc.kotlin.inputs.AutoscalingPolicyBasicAlgorithmArgs.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.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.AutoscalingPolicyBasicAlgorithmArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property cooldownPeriod Duration between scaling events. A scaling period starts after the
 * update operation from the previous event has completed.
 * Bounds: [2m, 1d]. Default: 2m.
 * @property yarnConfig YARN autoscaling configuration.
 * Structure is documented below.
 */
public data class AutoscalingPolicyBasicAlgorithmArgs(
    public val cooldownPeriod: Output? = null,
    public val yarnConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.AutoscalingPolicyBasicAlgorithmArgs =
        com.pulumi.gcp.dataproc.inputs.AutoscalingPolicyBasicAlgorithmArgs.builder()
            .cooldownPeriod(cooldownPeriod?.applyValue({ args0 -> args0 }))
            .yarnConfig(yarnConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AutoscalingPolicyBasicAlgorithmArgs].
 */
@PulumiTagMarker
public class AutoscalingPolicyBasicAlgorithmArgsBuilder internal constructor() {
    private var cooldownPeriod: Output? = null

    private var yarnConfig: Output? = null

    /**
     * @param value Duration between scaling events. A scaling period starts after the
     * update operation from the previous event has completed.
     * Bounds: [2m, 1d]. Default: 2m.
     */
    @JvmName("cekmaviuklqpkxof")
    public suspend fun cooldownPeriod(`value`: Output) {
        this.cooldownPeriod = value
    }

    /**
     * @param value YARN autoscaling configuration.
     * Structure is documented below.
     */
    @JvmName("rgjpfqjuotjklaxf")
    public suspend fun yarnConfig(`value`: Output) {
        this.yarnConfig = value
    }

    /**
     * @param value Duration between scaling events. A scaling period starts after the
     * update operation from the previous event has completed.
     * Bounds: [2m, 1d]. Default: 2m.
     */
    @JvmName("yixvqidugjigqqua")
    public suspend fun cooldownPeriod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cooldownPeriod = mapped
    }

    /**
     * @param value YARN autoscaling configuration.
     * Structure is documented below.
     */
    @JvmName("sdplhiglvfbteekf")
    public suspend fun yarnConfig(`value`: AutoscalingPolicyBasicAlgorithmYarnConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.yarnConfig = mapped
    }

    /**
     * @param argument YARN autoscaling configuration.
     * Structure is documented below.
     */
    @JvmName("cfrkcpstxylyoqgu")
    public suspend fun yarnConfig(argument: suspend AutoscalingPolicyBasicAlgorithmYarnConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AutoscalingPolicyBasicAlgorithmYarnConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.yarnConfig = mapped
    }

    internal fun build(): AutoscalingPolicyBasicAlgorithmArgs = AutoscalingPolicyBasicAlgorithmArgs(
        cooldownPeriod = cooldownPeriod,
        yarnConfig = yarnConfig ?: throw PulumiNullFieldException("yarnConfig"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy