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

com.pulumi.aws.ec2.kotlin.inputs.LaunchTemplateHibernationOptionsArgs.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.LaunchTemplateHibernationOptionsArgs.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.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property configured If set to `true`, the launched EC2 instance will hibernation enabled.
 */
public data class LaunchTemplateHibernationOptionsArgs(
    public val configured: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2.inputs.LaunchTemplateHibernationOptionsArgs =
        com.pulumi.aws.ec2.inputs.LaunchTemplateHibernationOptionsArgs.builder()
            .configured(configured.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LaunchTemplateHibernationOptionsArgs].
 */
@PulumiTagMarker
public class LaunchTemplateHibernationOptionsArgsBuilder internal constructor() {
    private var configured: Output? = null

    /**
     * @param value If set to `true`, the launched EC2 instance will hibernation enabled.
     */
    @JvmName("xewapvfkhmrfapoe")
    public suspend fun configured(`value`: Output) {
        this.configured = value
    }

    /**
     * @param value If set to `true`, the launched EC2 instance will hibernation enabled.
     */
    @JvmName("xhrvdicbtraeommx")
    public suspend fun configured(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configured = mapped
    }

    internal fun build(): LaunchTemplateHibernationOptionsArgs = LaunchTemplateHibernationOptionsArgs(
        configured = configured ?: throw PulumiNullFieldException("configured"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy