ClusterArgs

data class ClusterArgs(val actionOnFailedPrimaryWorkers: Output<String>? = null, val clusterName: Output<String>? = null, val config: Output<ClusterConfigArgs>? = null, val labels: Output<Map<String, String>>? = null, val project: Output<String>? = null, val region: Output<String>? = null, val requestId: Output<String>? = null, val virtualClusterConfig: Output<VirtualClusterConfigArgs>? = null) : ConvertibleToJava<ClusterArgs>

Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). Auto-naming is currently not supported for this resource.

Constructors

Link copied to clipboard
fun ClusterArgs(actionOnFailedPrimaryWorkers: Output<String>? = null, clusterName: Output<String>? = null, config: Output<ClusterConfigArgs>? = null, labels: Output<Map<String, String>>? = null, project: Output<String>? = null, region: Output<String>? = null, requestId: Output<String>? = null, virtualClusterConfig: Output<VirtualClusterConfigArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ClusterArgs

Properties

Link copied to clipboard

Optional. Failure action when primary worker creation fails.

Link copied to clipboard
val clusterName: Output<String>? = null

The cluster name, which must be unique within a project. The name must start with a lowercase letter, and can contain up to 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The name of a deleted cluster can be reused.

Link copied to clipboard
val config: Output<ClusterConfigArgs>? = null

Optional. The cluster config for a cluster of Compute Engine Instances. Note that Dataproc may set default values, and values may change when clusters are updated.Exactly one of ClusterConfig or VirtualClusterConfig must be specified.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.

Link copied to clipboard
val project: Output<String>? = null

The Google Cloud Platform project ID that the cluster belongs to.

Link copied to clipboard
val region: Output<String>? = null
Link copied to clipboard
val requestId: Output<String>? = null

Optional. A unique ID used to identify the request. If the server receives two CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

Link copied to clipboard

Optional. The virtual cluster config is used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified.