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

com.pulumi.aws.ec2.kotlin.inputs.SpotInstanceRequestEnclaveOptionsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ec2.kotlin.inputs

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

/**
 *
 * @property enabled Whether Nitro Enclaves will be enabled on the instance. Defaults to `false`.
 * For more information, see the documentation on [Nitro Enclaves](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html).
 */
public data class SpotInstanceRequestEnclaveOptionsArgs(
    public val enabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2.inputs.SpotInstanceRequestEnclaveOptionsArgs =
        com.pulumi.aws.ec2.inputs.SpotInstanceRequestEnclaveOptionsArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 })).build()
}

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

    /**
     * @param value Whether Nitro Enclaves will be enabled on the instance. Defaults to `false`.
     * For more information, see the documentation on [Nitro Enclaves](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html).
     */
    @JvmName("xwmrbjrauntddqrk")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Whether Nitro Enclaves will be enabled on the instance. Defaults to `false`.
     * For more information, see the documentation on [Nitro Enclaves](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html).
     */
    @JvmName("ihlvpihropnwxbah")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    internal fun build(): SpotInstanceRequestEnclaveOptionsArgs =
        SpotInstanceRequestEnclaveOptionsArgs(
            enabled = enabled,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy