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

com.pulumi.aws.ec2.kotlin.inputs.InstanceMaintenanceOptionsArgs.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.ec2.kotlin.inputs

import com.pulumi.aws.ec2.inputs.InstanceMaintenanceOptionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property autoRecovery Automatic recovery behavior of the Instance. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details.
 */
public data class InstanceMaintenanceOptionsArgs(
    public val autoRecovery: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2.inputs.InstanceMaintenanceOptionsArgs =
        com.pulumi.aws.ec2.inputs.InstanceMaintenanceOptionsArgs.builder()
            .autoRecovery(autoRecovery?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceMaintenanceOptionsArgs].
 */
@PulumiTagMarker
public class InstanceMaintenanceOptionsArgsBuilder internal constructor() {
    private var autoRecovery: Output? = null

    /**
     * @param value Automatic recovery behavior of the Instance. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details.
     */
    @JvmName("hlhdprotfigwtyob")
    public suspend fun autoRecovery(`value`: Output) {
        this.autoRecovery = value
    }

    /**
     * @param value Automatic recovery behavior of the Instance. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details.
     */
    @JvmName("nxcvhpgcheieuawb")
    public suspend fun autoRecovery(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoRecovery = mapped
    }

    internal fun build(): InstanceMaintenanceOptionsArgs = InstanceMaintenanceOptionsArgs(
        autoRecovery = autoRecovery,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy