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

com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgs.kt Maven / Gradle / Ivy

@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("bqrguvynwbnfnmvq")
    public suspend fun accelerators(`value`: Output>) {
        this.accelerators = value
    }

    @JvmName("awttnodcxrdnnpry")
    public suspend fun accelerators(vararg values: Output) {
        this.accelerators = Output.all(values.asList())
    }

    /**
     * @param values The Compute Engine accelerator configuration for these instances.
     */
    @JvmName("hgkpuwsbcyutjcir")
    public suspend fun accelerators(values: List>) {
        this.accelerators = Output.all(values)
    }

    /**
     * @param value Disk option config settings.
     */
    @JvmName("wmtlhlxbrsbymqbf")
    public suspend fun diskConfig(`value`: Output) {
        this.diskConfig = value
    }

    /**
     * @param value 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.
     */
    @JvmName("sciltstfmjeeabql")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
     */
    @JvmName("bygxafgjuvmfvlak")
    public suspend fun instanceNames(`value`: Output>) {
        this.instanceNames = value
    }

    @JvmName("umgoajejfmdrijal")
    public suspend fun instanceNames(vararg values: Output) {
        this.instanceNames = Output.all(values.asList())
    }

    /**
     * @param values Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
     */
    @JvmName("sprergbmbrqlbvsr")
    public suspend fun instanceNames(values: List>) {
        this.instanceNames = Output.all(values)
    }

    /**
     * @param value Output only. Specifies that this instance group contains preemptible instances.
     */
    @JvmName("biuevmysbmsdpurv")
    public suspend fun isPreemptible(`value`: Output) {
        this.isPreemptible = value
    }

    /**
     * @param value 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`.
     */
    @JvmName("osekvmmssdshhhts")
    public suspend fun machineType(`value`: Output) {
        this.machineType = value
    }

    /**
     * @param value Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
     */
    @JvmName("wtisijovphpdplee")
    public suspend fun managedGroupConfigs(`value`: Output>) {
        this.managedGroupConfigs = value
    }

    @JvmName("duwbuocldriyulxn")
    public suspend fun managedGroupConfigs(vararg values: Output) {
        this.managedGroupConfigs = Output.all(values.asList())
    }

    /**
     * @param values Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
     */
    @JvmName("gpnainpogdsrjpcp")
    public suspend fun managedGroupConfigs(values: List>) {
        this.managedGroupConfigs = Output.all(values)
    }

    /**
     * @param value Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
     */
    @JvmName("gsoadepogruruqml")
    public suspend fun minCpuPlatform(`value`: Output) {
        this.minCpuPlatform = value
    }

    /**
     * @param value The number of VM instances in the instance group. For master instance groups, must be set to 1.
     */
    @JvmName("huuomfevvmyrnmaa")
    public suspend fun numInstances(`value`: Output) {
        this.numInstances = value
    }

    /**
     * @param value 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
     */
    @JvmName("htacxnhhlnqhmvvm")
    public suspend fun preemptibility(`value`: Output) {
        this.preemptibility = value
    }

    /**
     * @param value The Compute Engine accelerator configuration for these instances.
     */
    @JvmName("qfgniwnainxiqggn")
    public suspend fun accelerators(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accelerators = mapped
    }

    /**
     * @param argument The Compute Engine accelerator configuration for these instances.
     */
    @JvmName("yvehfatwllqrkkyk")
    public suspend fun accelerators(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accelerators = mapped
    }

    /**
     * @param argument The Compute Engine accelerator configuration for these instances.
     */
    @JvmName("otvecpeyuwuxmxfx")
    public suspend fun accelerators(vararg argument: suspend WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accelerators = mapped
    }

    /**
     * @param argument The Compute Engine accelerator configuration for these instances.
     */
    @JvmName("aojdiqhycekbikmr")
    public suspend fun accelerators(argument: suspend WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.accelerators = mapped
    }

    /**
     * @param values The Compute Engine accelerator configuration for these instances.
     */
    @JvmName("afbiqibigttwnipi")
    public suspend fun accelerators(vararg values: WorkflowTemplatePlacementManagedClusterConfigMasterConfigAcceleratorArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accelerators = mapped
    }

    /**
     * @param value Disk option config settings.
     */
    @JvmName("slfihsyfjpftxlql")
    public suspend fun diskConfig(`value`: WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskConfig = mapped
    }

    /**
     * @param argument Disk option config settings.
     */
    @JvmName("uqbenpymuysvvusn")
    public suspend fun diskConfig(argument: suspend WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.diskConfig = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("ckarltucyvyxjaga")
    public suspend fun image(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param value Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
     */
    @JvmName("vkjctivxoorkasjd")
    public suspend fun instanceNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceNames = mapped
    }

    /**
     * @param values Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
     */
    @JvmName("wyxjvrbujkfkbuku")
    public suspend fun instanceNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceNames = mapped
    }

    /**
     * @param value Output only. Specifies that this instance group contains preemptible instances.
     */
    @JvmName("fbifeebdafawdxag")
    public suspend fun isPreemptible(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isPreemptible = mapped
    }

    /**
     * @param value 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`.
     */
    @JvmName("ywqtngyeoehvrolt")
    public suspend fun machineType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.machineType = mapped
    }

    /**
     * @param value Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
     */
    @JvmName("mjmvtopdmluyuthj")
    public suspend fun managedGroupConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedGroupConfigs = mapped
    }

    /**
     * @param argument Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
     */
    @JvmName("cdjjafhksuodoxdk")
    public suspend fun managedGroupConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.managedGroupConfigs = mapped
    }

    /**
     * @param argument Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
     */
    @JvmName("yncloqqxecaovlks")
    public suspend fun managedGroupConfigs(vararg argument: suspend WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.managedGroupConfigs = mapped
    }

    /**
     * @param argument Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
     */
    @JvmName("ehowflhcdgopndpw")
    public suspend fun managedGroupConfigs(argument: suspend WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfigArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.managedGroupConfigs = mapped
    }

    /**
     * @param values Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
     */
    @JvmName("basrxsjynhqsjrpd")
    public suspend fun managedGroupConfigs(vararg values: WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.managedGroupConfigs = mapped
    }

    /**
     * @param value Specifies the minimum cpu platform for the Instance Group. See (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
     */
    @JvmName("nxtdxbtkxtlpnbri")
    public suspend fun minCpuPlatform(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minCpuPlatform = mapped
    }

    /**
     * @param value The number of VM instances in the instance group. For master instance groups, must be set to 1.
     */
    @JvmName("tohwphnfageqkqtj")
    public suspend fun numInstances(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.numInstances = mapped
    }

    /**
     * @param value 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
     */
    @JvmName("gayedpyldjjhkuit")
    public suspend fun preemptibility(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preemptibility = mapped
    }

    internal fun build(): WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgs =
        WorkflowTemplatePlacementManagedClusterConfigMasterConfigArgs(
            accelerators = accelerators,
            diskConfig = diskConfig,
            image = image,
            instanceNames = instanceNames,
            isPreemptible = isPreemptible,
            machineType = machineType,
            managedGroupConfigs = managedGroupConfigs,
            minCpuPlatform = minCpuPlatform,
            numInstances = numInstances,
            preemptibility = preemptibility,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy