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

com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationAutoStopConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.emrserverless.kotlin.inputs

import com.pulumi.aws.emrserverless.inputs.ApplicationAutoStopConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Enables the application to automatically stop after a certain amount of time being idle. Defaults to `true`.
 * @property idleTimeoutMinutes The amount of idle time in minutes after which your application will automatically stop. Defaults to `15` minutes.
 */
public data class ApplicationAutoStopConfigurationArgs(
    public val enabled: Output? = null,
    public val idleTimeoutMinutes: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.emrserverless.inputs.ApplicationAutoStopConfigurationArgs =
        com.pulumi.aws.emrserverless.inputs.ApplicationAutoStopConfigurationArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .idleTimeoutMinutes(idleTimeoutMinutes?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationAutoStopConfigurationArgs].
 */
@PulumiTagMarker
public class ApplicationAutoStopConfigurationArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var idleTimeoutMinutes: Output? = null

    /**
     * @param value Enables the application to automatically stop after a certain amount of time being idle. Defaults to `true`.
     */
    @JvmName("ebtfwunvsogiybjo")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The amount of idle time in minutes after which your application will automatically stop. Defaults to `15` minutes.
     */
    @JvmName("ohbbghyxbrgmvpsx")
    public suspend fun idleTimeoutMinutes(`value`: Output) {
        this.idleTimeoutMinutes = value
    }

    /**
     * @param value Enables the application to automatically stop after a certain amount of time being idle. Defaults to `true`.
     */
    @JvmName("ndypokiyvjwvkewi")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The amount of idle time in minutes after which your application will automatically stop. Defaults to `15` minutes.
     */
    @JvmName("bctqfnxiovyhfjyf")
    public suspend fun idleTimeoutMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleTimeoutMinutes = mapped
    }

    internal fun build(): ApplicationAutoStopConfigurationArgs = ApplicationAutoStopConfigurationArgs(
        enabled = enabled,
        idleTimeoutMinutes = idleTimeoutMinutes,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy