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

com.pulumi.gcp.compute.kotlin.inputs.InstanceTemplateConfidentialInstanceConfigArgs.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.InstanceTemplateConfidentialInstanceConfigArgs.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 InstanceTemplateConfidentialInstanceConfigArgs(
    public val confidentialInstanceType: Output? = null,
    public val enableConfidentialCompute: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceTemplateConfidentialInstanceConfigArgs =
        com.pulumi.gcp.compute.inputs.InstanceTemplateConfidentialInstanceConfigArgs.builder()
            .confidentialInstanceType(confidentialInstanceType?.applyValue({ args0 -> args0 }))
            .enableConfidentialCompute(enableConfidentialCompute?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceTemplateConfidentialInstanceConfigArgs].
 */
@PulumiTagMarker
public class InstanceTemplateConfidentialInstanceConfigArgsBuilder 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("jxqduvfyaiatackw")
    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("tteotfrncibwbmsv")
    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("ekyfjhphxavsyndv")
    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("bgallsndbvxqamsq")
    public suspend fun enableConfidentialCompute(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableConfidentialCompute = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy