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

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.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>) {
        this.accelerators = Output.all(values)
    }

    /**
     * @param value Disk option config settings.
     */
    @JvmName("rkppacqueqoksoys")
    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("wmtadyqrnjffstgq")
    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("plxukurvufefvfth")
    public suspend fun instanceNames(`value`: Output>) {
        this.instanceNames = value
    }

    @JvmName("cguaaxwwjtvydfyq")
    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("ojmspjhxehmjhekn")
    public suspend fun instanceNames(values: List>) {
        this.instanceNames = Output.all(values)
    }

    /**
     * @param value Output only. Specifies that this instance group contains preemptible instances.
     */
    @JvmName("qsxltchmuivrucmk")
    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("slgjpxespacxttar")
    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("cwaijhtctmbchebg")
    public suspend fun managedGroupConfigs(`value`: Output>) {
        this.managedGroupConfigs = value
    }

    @JvmName("vecmdcktcqyhqjbj")
    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("hlylubglfknoulfx")
    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("hpdafdrsqewrhxae")
    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("cestiikvppxvjtsu")
    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("vctassjuhpcpghjk")
    public suspend fun preemptibility(`value`: Output) {
        this.preemptibility = value
    }

    /**
     * @param value The Compute Engine accelerator configuration for these instances.
     */
    @JvmName("jhbdfjsyachkjxse")
    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("leimvnillusvwaeo")
    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("jlcrptklpwsqmuqp")
    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("juhyyipqwsnmyxnk")
    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("iavcaksukagmdohp")
    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("maiislodybayelvp")
    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("esnvlbpdwkwpyrkc")
    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("iyprlwaqyvaibhpa")
    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("hnyswtbxgephkswh")
    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("xbwubfjvfkeumeca")
    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("plplqsavsmlffjrh")
    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("fbbihscgvrysfidj")
    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("leuphepkrfkjohcu")
    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("vqsvblqlgyqnqcpb")
    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("flxrbuadgqpirela")
    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("xocnmhlwdacxkepn")
    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("mspbywyvtoknceop")
    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("wxrmmgxltaxovluu")
    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("cbmdnfyngvofdofq")
    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("huaxhvjipqkvonts")
    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 - 2024 Weber Informatics LLC | Privacy Policy