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

com.pulumi.gcp.compute.kotlin.outputs.InstanceAdvancedMachineFeatures.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.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property enableNestedVirtualization Defines whether the instance should have nested virtualization  enabled. Defaults to false.
 * @property threadsPerCore he 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 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 InstanceAdvancedMachineFeatures(
    public val enableNestedVirtualization: Boolean? = null,
    public val threadsPerCore: Int? = null,
    public val visibleCoreCount: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.InstanceAdvancedMachineFeatures): InstanceAdvancedMachineFeatures = InstanceAdvancedMachineFeatures(
            enableNestedVirtualization = javaType.enableNestedVirtualization().map({ args0 ->
                args0
            }).orElse(null),
            threadsPerCore = javaType.threadsPerCore().map({ args0 -> args0 }).orElse(null),
            visibleCoreCount = javaType.visibleCoreCount().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy