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

com.pulumi.gcp.compute.kotlin.inputs.RegionInstanceTemplateAdvancedMachineFeaturesArgs.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.13.1.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.RegionInstanceTemplateAdvancedMachineFeaturesArgs.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 RegionInstanceTemplateAdvancedMachineFeaturesArgs(
    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.RegionInstanceTemplateAdvancedMachineFeaturesArgs =
        com.pulumi.gcp.compute.inputs.RegionInstanceTemplateAdvancedMachineFeaturesArgs.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 [RegionInstanceTemplateAdvancedMachineFeaturesArgs].
 */
@PulumiTagMarker
public class RegionInstanceTemplateAdvancedMachineFeaturesArgsBuilder 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("saefpfpdwehmiwjn")
    public suspend fun enableNestedVirtualization(`value`: Output) {
        this.enableNestedVirtualization = value
    }

    /**
     * @param value Whether to enable UEFI networking for instance creation.
     */
    @JvmName("atadsmxglfujdgeu")
    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("fjaqpundcbmvkgyu")
    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("ujdkfwoqrrpvidot")
    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("lcpxdvjxupakcrmf")
    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("ilalixwgsaoesynh")
    public suspend fun visibleCoreCount(`value`: Output) {
        this.visibleCoreCount = value
    }

    /**
     * @param value Defines whether the instance should have nested virtualization enabled. Defaults to false.
     */
    @JvmName("neowdoihpnpwmrda")
    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("eckxopxaehmrswsd")
    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("syrnigjwswkxwawj")
    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("fiwxhxksrwxsafha")
    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("atopcffothflsbec")
    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("knisflfsoejidsge")
    public suspend fun visibleCoreCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.visibleCoreCount = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy