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

com.pulumi.awsnative.ec2.kotlin.outputs.CpuOptionsProperties.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.outputs

import kotlin.Int
import kotlin.Suppress

/**
 * The CPU options for the instance.
 * @property coreCount The number of CPU cores for the instance.
 * @property threadsPerCore The number of threads per CPU core.
 */
public data class CpuOptionsProperties(
    public val coreCount: Int? = null,
    public val threadsPerCore: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.CpuOptionsProperties): CpuOptionsProperties = CpuOptionsProperties(
            coreCount = javaType.coreCount().map({ args0 -> args0 }).orElse(null),
            threadsPerCore = javaType.threadsPerCore().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy