ClusterArgs

data class ClusterArgs(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) : 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.v1beta2#clusteroperationmetadata). Auto-naming is currently not supported for this resource.

Constructors

Link copied to clipboard
fun ClusterArgs(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)

Functions

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

Properties

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

The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.

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

The cluster config. Note that Dataproc may set default values, and values may change when clusters are updated.

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.v1beta2#google.cloud.dataproc.v1beta2.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.