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

com.pulumi.gcp.compute.kotlin.inputs.InstanceTemplateAdvancedMachineFeaturesArgs.kt Maven / Gradle / Ivy

@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.InstanceTemplateAdvancedMachineFeaturesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enableNestedVirtualization Defines whether the instance should have nested virtualization enabled. Defaults to false.
 * @property enableUefiNetworking Whether to enable UEFI networking for instance creation.
 * @property performanceMonitoringUnit [The PMU](https://cloud.google.com/compute/docs/pmu-overview) is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are `STANDARD`, `ENHANCED`, and `ARCHITECTURAL`.
 * @property threadsPerCore The number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
 * @property turboMode Turbo frequency mode to use for the instance. Supported modes are currently either `ALL_CORE_MAX` or unset (default).
 * @property visibleCoreCount The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
 */
public data class InstanceTemplateAdvancedMachineFeaturesArgs(
    public val enableNestedVirtualization: Output? = null,
    public val enableUefiNetworking: Output? = null,
    public val performanceMonitoringUnit: Output? = null,
    public val threadsPerCore: Output? = null,
    public val turboMode: Output? = null,
    public val visibleCoreCount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceTemplateAdvancedMachineFeaturesArgs =
        com.pulumi.gcp.compute.inputs.InstanceTemplateAdvancedMachineFeaturesArgs.builder()
            .enableNestedVirtualization(enableNestedVirtualization?.applyValue({ args0 -> args0 }))
            .enableUefiNetworking(enableUefiNetworking?.applyValue({ args0 -> args0 }))
            .performanceMonitoringUnit(performanceMonitoringUnit?.applyValue({ args0 -> args0 }))
            .threadsPerCore(threadsPerCore?.applyValue({ args0 -> args0 }))
            .turboMode(turboMode?.applyValue({ args0 -> args0 }))
            .visibleCoreCount(visibleCoreCount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceTemplateAdvancedMachineFeaturesArgs].
 */
@PulumiTagMarker
public class InstanceTemplateAdvancedMachineFeaturesArgsBuilder internal constructor() {
    private var enableNestedVirtualization: Output? = null

    private var enableUefiNetworking: Output? = null

    private var performanceMonitoringUnit: Output? = null

    private var threadsPerCore: Output? = null

    private var turboMode: Output? = null

    private var visibleCoreCount: Output? = null

    /**
     * @param value Defines whether the instance should have nested virtualization enabled. Defaults to false.
     */
    @JvmName("ggywkpivnuemmell")
    public suspend fun enableNestedVirtualization(`value`: Output) {
        this.enableNestedVirtualization = value
    }

    /**
     * @param value Whether to enable UEFI networking for instance creation.
     */
    @JvmName("kkplgepkyynrwsrc")
    public suspend fun enableUefiNetworking(`value`: Output) {
        this.enableUefiNetworking = value
    }

    /**
     * @param value [The PMU](https://cloud.google.com/compute/docs/pmu-overview) is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are `STANDARD`, `ENHANCED`, and `ARCHITECTURAL`.
     */
    @JvmName("vweciwmxyvyydnsk")
    public suspend fun performanceMonitoringUnit(`value`: Output) {
        this.performanceMonitoringUnit = value
    }

    /**
     * @param value The number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
     */
    @JvmName("sxchwopnymqvqryq")
    public suspend fun threadsPerCore(`value`: Output) {
        this.threadsPerCore = value
    }

    /**
     * @param value Turbo frequency mode to use for the instance. Supported modes are currently either `ALL_CORE_MAX` or unset (default).
     */
    @JvmName("ijnodctijilqmayr")
    public suspend fun turboMode(`value`: Output) {
        this.turboMode = value
    }

    /**
     * @param value The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
     */
    @JvmName("lmrkqplehfnesvce")
    public suspend fun visibleCoreCount(`value`: Output) {
        this.visibleCoreCount = value
    }

    /**
     * @param value Defines whether the instance should have nested virtualization enabled. Defaults to false.
     */
    @JvmName("bkijpnvmkdyboiqu")
    public suspend fun enableNestedVirtualization(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableNestedVirtualization = mapped
    }

    /**
     * @param value Whether to enable UEFI networking for instance creation.
     */
    @JvmName("bfkfvxlmtjmpqdjk")
    public suspend fun enableUefiNetworking(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableUefiNetworking = mapped
    }

    /**
     * @param value [The PMU](https://cloud.google.com/compute/docs/pmu-overview) is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are `STANDARD`, `ENHANCED`, and `ARCHITECTURAL`.
     */
    @JvmName("xrlipgxmottsbthi")
    public suspend fun performanceMonitoringUnit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.performanceMonitoringUnit = mapped
    }

    /**
     * @param value The number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
     */
    @JvmName("coilvhlexxoxiqdp")
    public suspend fun threadsPerCore(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.threadsPerCore = mapped
    }

    /**
     * @param value Turbo frequency mode to use for the instance. Supported modes are currently either `ALL_CORE_MAX` or unset (default).
     */
    @JvmName("scwfwwmiwudnnjwr")
    public suspend fun turboMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.turboMode = mapped
    }

    /**
     * @param value The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
     */
    @JvmName("krbxyjuwrtufnkas")
    public suspend fun visibleCoreCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.visibleCoreCount = mapped
    }

    internal fun build(): InstanceTemplateAdvancedMachineFeaturesArgs =
        InstanceTemplateAdvancedMachineFeaturesArgs(
            enableNestedVirtualization = enableNestedVirtualization,
            enableUefiNetworking = enableUefiNetworking,
            performanceMonitoringUnit = performanceMonitoringUnit,
            threadsPerCore = threadsPerCore,
            turboMode = turboMode,
            visibleCoreCount = visibleCoreCount,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy