com.pulumi.gcp.container.kotlin.outputs.ClusterNodePoolNodeConfigGuestAccelerator.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.container.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property count The number of the guest accelerator cards exposed to this instance.
* @property gpuDriverInstallationConfig Configuration for auto installation of GPU driver. Structure is documented below.
* @property gpuPartitionSize Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig [user guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
* @property gpuSharingConfig Configuration for GPU sharing. Structure is documented below.
* @property type The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.
*/
public data class ClusterNodePoolNodeConfigGuestAccelerator(
public val count: Int,
public val gpuDriverInstallationConfig: ClusterNodePoolNodeConfigGuestAcceleratorGpuDriverInstallationConfig? = null,
public val gpuPartitionSize: String? = null,
public val gpuSharingConfig: ClusterNodePoolNodeConfigGuestAcceleratorGpuSharingConfig? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodePoolNodeConfigGuestAccelerator): ClusterNodePoolNodeConfigGuestAccelerator = ClusterNodePoolNodeConfigGuestAccelerator(
count = javaType.count(),
gpuDriverInstallationConfig = javaType.gpuDriverInstallationConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.ClusterNodePoolNodeConfigGuestAcceleratorGpuDriverInstallationConfig.Companion.toKotlin(args0)
})
}).orElse(null),
gpuPartitionSize = javaType.gpuPartitionSize().map({ args0 -> args0 }).orElse(null),
gpuSharingConfig = javaType.gpuSharingConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.ClusterNodePoolNodeConfigGuestAcceleratorGpuSharingConfig.Companion.toKotlin(args0)
})
}).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy