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

com.pulumi.gcp.compute.kotlin.inputs.InstanceFromMachineImageAdvancedMachineFeaturesArgs.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.20.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.InstanceFromMachineImageAdvancedMachineFeaturesArgs.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 Whether to enable nested virtualization or not.
 * @property enableUefiNetworking Whether to enable UEFI networking for the instance.
 * @property performanceMonitoringUnit The PMU 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) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
 * @property turboMode Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
 * @property visibleCoreCount The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance\'s nominal CPU count and the underlying platform\'s SMT width.
 */
public data class InstanceFromMachineImageAdvancedMachineFeaturesArgs(
    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.InstanceFromMachineImageAdvancedMachineFeaturesArgs =
        com.pulumi.gcp.compute.inputs.InstanceFromMachineImageAdvancedMachineFeaturesArgs.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 [InstanceFromMachineImageAdvancedMachineFeaturesArgs].
 */
@PulumiTagMarker
public class InstanceFromMachineImageAdvancedMachineFeaturesArgsBuilder 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 Whether to enable nested virtualization or not.
     */
    @JvmName("psgriohkmrchvugc")
    public suspend fun enableNestedVirtualization(`value`: Output) {
        this.enableNestedVirtualization = value
    }

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

    /**
     * @param value The PMU 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("nwvugjjxriuvudwk")
    public suspend fun performanceMonitoringUnit(`value`: Output) {
        this.performanceMonitoringUnit = value
    }

    /**
     * @param value The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
     */
    @JvmName("qajjsigqafpejcox")
    public suspend fun threadsPerCore(`value`: Output) {
        this.threadsPerCore = value
    }

    /**
     * @param value Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
     */
    @JvmName("winojnsghcssvkmj")
    public suspend fun turboMode(`value`: Output) {
        this.turboMode = value
    }

    /**
     * @param value The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance\'s nominal CPU count and the underlying platform\'s SMT width.
     */
    @JvmName("piaxhsumqjwrnvlk")
    public suspend fun visibleCoreCount(`value`: Output) {
        this.visibleCoreCount = value
    }

    /**
     * @param value Whether to enable nested virtualization or not.
     */
    @JvmName("owsuorjtyghqcwai")
    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 the instance.
     */
    @JvmName("fcqkehdqomttcvwc")
    public suspend fun enableUefiNetworking(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableUefiNetworking = mapped
    }

    /**
     * @param value The PMU 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("odowrpsykittvket")
    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) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
     */
    @JvmName("dpkenplmrqcfuhhw")
    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. Currently supported modes is "ALL_CORE_MAX".
     */
    @JvmName("okxretsidvvjpjrx")
    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. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance\'s nominal CPU count and the underlying platform\'s SMT width.
     */
    @JvmName("afnkdwlpejwxyesj")
    public suspend fun visibleCoreCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.visibleCoreCount = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy