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

com.pulumi.gcp.compute.kotlin.inputs.InstanceShieldedInstanceConfigArgs.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.InstanceShieldedInstanceConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enableIntegrityMonitoring - Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
 * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
 * @property enableSecureBoot - Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
 * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
 * @property enableVtpm - Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
 * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
 */
public data class InstanceShieldedInstanceConfigArgs(
    public val enableIntegrityMonitoring: Output? = null,
    public val enableSecureBoot: Output? = null,
    public val enableVtpm: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceShieldedInstanceConfigArgs =
        com.pulumi.gcp.compute.inputs.InstanceShieldedInstanceConfigArgs.builder()
            .enableIntegrityMonitoring(enableIntegrityMonitoring?.applyValue({ args0 -> args0 }))
            .enableSecureBoot(enableSecureBoot?.applyValue({ args0 -> args0 }))
            .enableVtpm(enableVtpm?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceShieldedInstanceConfigArgs].
 */
@PulumiTagMarker
public class InstanceShieldedInstanceConfigArgsBuilder internal constructor() {
    private var enableIntegrityMonitoring: Output? = null

    private var enableSecureBoot: Output? = null

    private var enableVtpm: Output? = null

    /**
     * @param value - Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
     * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
     */
    @JvmName("tjwdptqlhmmibwhe")
    public suspend fun enableIntegrityMonitoring(`value`: Output) {
        this.enableIntegrityMonitoring = value
    }

    /**
     * @param value - Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
     * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
     */
    @JvmName("wpyqldnenvejfcuc")
    public suspend fun enableSecureBoot(`value`: Output) {
        this.enableSecureBoot = value
    }

    /**
     * @param value - Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
     * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
     */
    @JvmName("gildcbjphxwhrgvg")
    public suspend fun enableVtpm(`value`: Output) {
        this.enableVtpm = value
    }

    /**
     * @param value - Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
     * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
     */
    @JvmName("cytbkbpnyqvabxaq")
    public suspend fun enableIntegrityMonitoring(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableIntegrityMonitoring = mapped
    }

    /**
     * @param value - Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
     * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
     */
    @JvmName("jntftgrcxkqkiqnq")
    public suspend fun enableSecureBoot(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableSecureBoot = mapped
    }

    /**
     * @param value - Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
     * **Note**: `allow_stopping_for_update` must be set to true or your instance must have a `desired_status` of `TERMINATED` in order to update this field.
     */
    @JvmName("ypbmrymtjjbnnfpq")
    public suspend fun enableVtpm(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableVtpm = mapped
    }

    internal fun build(): InstanceShieldedInstanceConfigArgs = InstanceShieldedInstanceConfigArgs(
        enableIntegrityMonitoring = enableIntegrityMonitoring,
        enableSecureBoot = enableSecureBoot,
        enableVtpm = enableVtpm,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy