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

com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfig.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.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 WorkflowTemplatePlacementManagedClusterConfigMasterConfig(
    public val accelerators: List? = null,
    public val diskConfig: WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig? =
        null,
    public val image: String? = null,
    public val instanceNames: List? = null,
    public val isPreemptible: Boolean? = null,
    public val machineType: String? = null,
    public val managedGroupConfigs: List? = null,
    public val minCpuPlatform: String? = null,
    public val numInstances: Int? = null,
    public val preemptibility: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfig): WorkflowTemplatePlacementManagedClusterConfigMasterConfig =
            WorkflowTemplatePlacementManagedClusterConfigMasterConfig(
                accelerators = javaType.accelerators().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerator.Companion.toKotlin(args0)
                    })
                }),
                diskConfig = javaType.diskConfig().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                image = javaType.image().map({ args0 -> args0 }).orElse(null),
                instanceNames = javaType.instanceNames().map({ args0 -> args0 }),
                isPreemptible = javaType.isPreemptible().map({ args0 -> args0 }).orElse(null),
                machineType = javaType.machineType().map({ args0 -> args0 }).orElse(null),
                managedGroupConfigs = javaType.managedGroupConfigs().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplatePlacementManagedClusterConfigMasterConfigManagedGroupConfig.Companion.toKotlin(args0)
                    })
                }),
                minCpuPlatform = javaType.minCpuPlatform().map({ args0 -> args0 }).orElse(null),
                numInstances = javaType.numInstances().map({ args0 -> args0 }).orElse(null),
                preemptibility = javaType.preemptibility().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy