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

com.pulumi.gcp.container.kotlin.outputs.ClusterNodeConfigGuestAccelerator.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.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 ClusterNodeConfigGuestAccelerator(
    public val count: Int,
    public val gpuDriverInstallationConfig: ClusterNodeConfigGuestAcceleratorGpuDriverInstallationConfig? = null,
    public val gpuPartitionSize: String? = null,
    public val gpuSharingConfig: ClusterNodeConfigGuestAcceleratorGpuSharingConfig? = null,
    public val type: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodeConfigGuestAccelerator): ClusterNodeConfigGuestAccelerator = ClusterNodeConfigGuestAccelerator(
            count = javaType.count(),
            gpuDriverInstallationConfig = javaType.gpuDriverInstallationConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.container.kotlin.outputs.ClusterNodeConfigGuestAcceleratorGpuDriverInstallationConfig.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.ClusterNodeConfigGuestAcceleratorGpuSharingConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            type = javaType.type(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy