com.pulumi.gcp.dataproc.kotlin.outputs.ClusterClusterConfigMasterConfig.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.dataproc.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property accelerators The Compute Engine accelerator (GPU) configuration for these instances. Can be specified multiple times.
* @property diskConfig Disk Config
* @property imageUri The URI for the image to use for this worker. See [the guide](https://cloud.google.com/dataproc/docs/guides/dataproc-images)
* for more information.
* @property instanceNames List of master instance names which
* have been assigned to the cluster.
* @property machineType The name of a Google Compute Engine machine type
* to create for the master. If not specified, GCP will default to a predetermined
* computed value (currently `n1-standard-4`).
* @property minCpuPlatform The name of a minimum generation of CPU family
* for the master. If not specified, GCP will default to a predetermined computed value
* for each zone. See [the guide](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
* for details about which CPU families are available (and defaulted) for each zone.
* @property numInstances Specifies the number of master nodes to create.
* If not specified, GCP will default to a predetermined computed value (currently 1).
*/
public data class ClusterClusterConfigMasterConfig(
public val accelerators: List? = null,
public val diskConfig: ClusterClusterConfigMasterConfigDiskConfig? = null,
public val imageUri: String? = null,
public val instanceNames: List? = null,
public val machineType: String? = null,
public val minCpuPlatform: String? = null,
public val numInstances: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.ClusterClusterConfigMasterConfig): ClusterClusterConfigMasterConfig = ClusterClusterConfigMasterConfig(
accelerators = javaType.accelerators().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataproc.kotlin.outputs.ClusterClusterConfigMasterConfigAccelerator.Companion.toKotlin(args0)
})
}),
diskConfig = javaType.diskConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataproc.kotlin.outputs.ClusterClusterConfigMasterConfigDiskConfig.Companion.toKotlin(args0)
})
}).orElse(null),
imageUri = javaType.imageUri().map({ args0 -> args0 }).orElse(null),
instanceNames = javaType.instanceNames().map({ args0 -> args0 }),
machineType = javaType.machineType().map({ args0 -> args0 }).orElse(null),
minCpuPlatform = javaType.minCpuPlatform().map({ args0 -> args0 }).orElse(null),
numInstances = javaType.numInstances().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy