Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property accelerators The Compute Engine accelerator configuration for these instances.
* @property diskConfig Disk option config settings.
* @property image The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * `https://www.googleapis.com/compute/beta/projects/` If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version` or the system default.
* @property instanceNames Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
* @property isPreemptible Output only. Specifies that this instance group contains preemptible instances.
* @property machineType The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/(https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, `n1-standard-2`.
* @property managedGroupConfigs Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
* @property minCpuPlatform Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
* @property numInstances The number of VM instances in the instance group. For master instance groups, must be set to 1.
* @property preemptibility Specifies the preemptibility of the instance group. The default value for master and worker groups is `NON_PREEMPTIBLE`. This default cannot be changed. The default value for secondary instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE
*/
public data class WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgs(
public val accelerators: Output>? =
null,
public val diskConfig: Output? = null,
public val image: Output? = null,
public val instanceNames: Output>? = null,
public val isPreemptible: Output? = null,
public val machineType: Output? = null,
public val managedGroupConfigs: Output>? =
null,
public val minCpuPlatform: Output? = null,
public val numInstances: Output? = null,
public val preemptibility: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgs =
com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgs.builder()
.accelerators(
accelerators?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.diskConfig(diskConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.image(image?.applyValue({ args0 -> args0 }))
.instanceNames(instanceNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.isPreemptible(isPreemptible?.applyValue({ args0 -> args0 }))
.machineType(machineType?.applyValue({ args0 -> args0 }))
.managedGroupConfigs(
managedGroupConfigs?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.minCpuPlatform(minCpuPlatform?.applyValue({ args0 -> args0 }))
.numInstances(numInstances?.applyValue({ args0 -> args0 }))
.preemptibility(preemptibility?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgs].
*/
@PulumiTagMarker
public class WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgsBuilder internal constructor() {
private var accelerators:
Output>? = null
private var diskConfig:
Output? = null
private var image: Output? = null
private var instanceNames: Output>? = null
private var isPreemptible: Output? = null
private var machineType: Output? = null
private var managedGroupConfigs:
Output>? =
null
private var minCpuPlatform: Output? = null
private var numInstances: Output? = null
private var preemptibility: Output? = null
/**
* @param value The Compute Engine accelerator configuration for these instances.
*/
@JvmName("rbwktaloollxwybx")
public suspend fun accelerators(`value`: Output>) {
this.accelerators = value
}
@JvmName("qcgxinerpsypfmqv")
public suspend fun accelerators(vararg values: Output) {
this.accelerators = Output.all(values.asList())
}
/**
* @param values The Compute Engine accelerator configuration for these instances.
*/
@JvmName("fpceccwiadwdiifa")
public suspend fun accelerators(values: List