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

com.pulumi.gcp.compute.kotlin.inputs.InstanceConfidentialInstanceConfigArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.InstanceConfidentialInstanceConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property confidentialInstanceType Defines the confidential computing technology the instance uses. SEV is an AMD feature. One of the following values: `SEV`, `SEV_SNP`. `on_host_maintenance` has to be set to TERMINATE or this will fail to create the VM. If `SEV_SNP`, currently `min_cpu_platform` has to be set to `"AMD Milan"` or this will fail to create the VM.
 * @property enableConfidentialCompute Defines whether the instance should have confidential compute enabled with AMD SEV. `on_host_maintenance` has to be set to TERMINATE or this will fail to create the VM.
 */
public data class InstanceConfidentialInstanceConfigArgs(
    public val confidentialInstanceType: Output? = null,
    public val enableConfidentialCompute: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceConfidentialInstanceConfigArgs =
        com.pulumi.gcp.compute.inputs.InstanceConfidentialInstanceConfigArgs.builder()
            .confidentialInstanceType(confidentialInstanceType?.applyValue({ args0 -> args0 }))
            .enableConfidentialCompute(enableConfidentialCompute?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceConfidentialInstanceConfigArgs].
 */
@PulumiTagMarker
public class InstanceConfidentialInstanceConfigArgsBuilder internal constructor() {
    private var confidentialInstanceType: Output? = null

    private var enableConfidentialCompute: Output? = null

    /**
     * @param value Defines the confidential computing technology the instance uses. SEV is an AMD feature. One of the following values: `SEV`, `SEV_SNP`. `on_host_maintenance` has to be set to TERMINATE or this will fail to create the VM. If `SEV_SNP`, currently `min_cpu_platform` has to be set to `"AMD Milan"` or this will fail to create the VM.
     */
    @JvmName("rchafwbgjcwlwbal")
    public suspend fun confidentialInstanceType(`value`: Output) {
        this.confidentialInstanceType = value
    }

    /**
     * @param value Defines whether the instance should have confidential compute enabled with AMD SEV. `on_host_maintenance` has to be set to TERMINATE or this will fail to create the VM.
     */
    @JvmName("mbhbkfhrjcdfojgl")
    public suspend fun enableConfidentialCompute(`value`: Output) {
        this.enableConfidentialCompute = value
    }

    /**
     * @param value Defines the confidential computing technology the instance uses. SEV is an AMD feature. One of the following values: `SEV`, `SEV_SNP`. `on_host_maintenance` has to be set to TERMINATE or this will fail to create the VM. If `SEV_SNP`, currently `min_cpu_platform` has to be set to `"AMD Milan"` or this will fail to create the VM.
     */
    @JvmName("kflpankxlhkrgsuy")
    public suspend fun confidentialInstanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.confidentialInstanceType = mapped
    }

    /**
     * @param value Defines whether the instance should have confidential compute enabled with AMD SEV. `on_host_maintenance` has to be set to TERMINATE or this will fail to create the VM.
     */
    @JvmName("jrdrsttaxdkoiles")
    public suspend fun enableConfidentialCompute(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableConfidentialCompute = mapped
    }

    internal fun build(): InstanceConfidentialInstanceConfigArgs =
        InstanceConfidentialInstanceConfigArgs(
            confidentialInstanceType = confidentialInstanceType,
            enableConfidentialCompute = enableConfidentialCompute,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy