ClusterArgs class
The set of arguments for Cluster. The set of arguments for Cluster.
Constructors
-
ClusterArgs({Input<
ClusterClusterConfig?> ? clusterConfig, Input<String?> ? deletionPolicy, Input<String?> ? gracefulDecommissionTimeout, Input<Map< ? labels, Input<String, String> ?>String?> ? name, Input<String?> ? project, Input<String?> ? region, Input<ClusterVirtualClusterConfig?> ? virtualClusterConfig}) -
Creates a new ClusterArgs.
clusterConfigAllows you to configure various aspects of the cluster.deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to "DELETE".gracefulDecommissionTimeoutAllows graceful decomissioning when you change the number of worker nodes directly through an apply.labelsThe list of labels (key/value pairs) configured on the resource through Terraform and to be applied tonameThe name of the cluster, unique within the project andprojectThe ID of the project in which theclusterwill exist. If itregionThe region in which the cluster and associated nodes will be created in.virtualClusterConfigAllows you to configure a virtual Dataproc on GKE cluster.const -
ClusterArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
clusterConfig
→ Input<
ClusterClusterConfig?> ? -
Allows you to configure various aspects of the cluster.
Structure defined below.
final
-
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE".
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
gracefulDecommissionTimeout
→ Input<
String?> ? -
Allows graceful decomissioning when you change the number of worker nodes directly through an apply.
Does not affect auto scaling decomissioning from an autoscaling policy.
Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress.
Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs).
Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of
Duration).
Only supported on Dataproc image versions 1.2 and higher.
For more context see the docs
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Input<
Map< ?String, String> ?> -
The list of labels (key/value pairs) configured on the resource through Terraform and to be applied to
instances in the cluster.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effectiveLabelsfor all of the labels present on the resource.final -
name
→ Input<
String?> ? -
The name of the cluster, unique within the project and
zone.
final
-
project
→ Input<
String?> ? -
The ID of the project in which the
clusterwill exist. If it is not provided, the provider project is used.final -
region
→ Input<
String?> ? -
The region in which the cluster and associated nodes will be created in.
Defaults to
global.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
virtualClusterConfig
→ Input<
ClusterVirtualClusterConfig?> ? -
Allows you to configure a virtual Dataproc on GKE cluster.
Structure defined below.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited