com.pulumi.gcp.compute.kotlin.outputs.InstanceFromMachineImageAdvancedMachineFeatures.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 InstanceFromMachineImageAdvancedMachineFeatures(
public val enableNestedVirtualization: Boolean? = null,
public val enableUefiNetworking: Boolean? = null,
public val performanceMonitoringUnit: String? = null,
public val threadsPerCore: Int? = null,
public val turboMode: String? = null,
public val visibleCoreCount: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.InstanceFromMachineImageAdvancedMachineFeatures): InstanceFromMachineImageAdvancedMachineFeatures =
InstanceFromMachineImageAdvancedMachineFeatures(
enableNestedVirtualization = javaType.enableNestedVirtualization().map({ args0 ->
args0
}).orElse(null),
enableUefiNetworking = javaType.enableUefiNetworking().map({ args0 -> args0 }).orElse(null),
performanceMonitoringUnit = javaType.performanceMonitoringUnit().map({ args0 ->
args0
}).orElse(null),
threadsPerCore = javaType.threadsPerCore().map({ args0 -> args0 }).orElse(null),
turboMode = javaType.turboMode().map({ args0 -> args0 }).orElse(null),
visibleCoreCount = javaType.visibleCoreCount().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy