JobArgs class
The set of arguments for Job. The set of arguments for Job.
Constructors
-
JobArgs({Input<
String?> ? deletionPolicy, Input<bool?> ? forceDelete, Input<JobHadoopConfig?> ? hadoopConfig, Input<JobHiveConfig?> ? hiveConfig, Input<Map< ? labels, Input<String, String> ?>JobPigConfig?> ? pigConfig, required Input<JobPlacement> placement, Input<JobPrestoConfig?> ? prestoConfig, Input<String?> ? project, Input<JobPysparkConfig?> ? pysparkConfig, Input<JobReference?> ? reference, Input<String?> ? region, Input<JobScheduling?> ? scheduling, Input<JobSparkConfig?> ? sparkConfig, Input<JobSparksqlConfig?> ? sparksqlConfig, Input<bool?> ? waitForCompletion}) -
Creates a new JobArgs.
deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to "DELETE".forceDeleteBy default, you can only delete inactive jobs withinhadoopConfigThe config of Hadoop jobhiveConfigThe config of hive joblabelsThe list of labels (key/value pairs) to add to the job.pigConfigThe config of pag job.placementThe config of job placement.prestoConfigThe config of presto jobprojectThe project in which theclustercan be found and jobspysparkConfigThe config of pySpark job.referenceThe reference of the jobregionThe Cloud Dataproc region. This essentially determines which clusters are availableschedulingOptional. Job scheduling configuration.sparkConfigThe config of the Spark job.sparksqlConfigThe config of SparkSql jobwaitForCompletionIf set to true, Terraform will wait for the job to reach a terminal state (DONE,ERROR,CANCELLED,ATTEMPT_FAILURE). Otherwise, Terraform will consider the job 'created' once it is in theRUNNINGstate.const -
JobArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
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
-
forceDelete
→ Input<
bool?> ? -
By default, you can only delete inactive jobs within
Dataproc. Setting this to true, and calling destroy, will ensure that the
job is first cancelled before issuing the delete.
final
-
hadoopConfig
→ Input<
JobHadoopConfig?> ? -
The config of Hadoop job
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hiveConfig
→ Input<
JobHiveConfig?> ? -
The config of hive job
final
-
labels
→ Input<
Map< ?String, String> ?> -
The list of labels (key/value pairs) to add to the job.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field 'effective_labels' for all of the labels present on the resource.
final
-
pigConfig
→ Input<
JobPigConfig?> ? -
The config of pag job.
final
-
placement
→ Input<
JobPlacement> -
The config of job placement.
final
-
prestoConfig
→ Input<
JobPrestoConfig?> ? -
The config of presto job
final
-
project
→ Input<
String?> ? -
The project in which the
clustercan be found and jobs subsequently run against. If it is not provided, the provider project is used.final -
pysparkConfig
→ Input<
JobPysparkConfig?> ? -
The config of pySpark job.
final
-
reference
→ Input<
JobReference?> ? -
The reference of the job
final
-
region
→ Input<
String?> ? -
The Cloud Dataproc region. This essentially determines which clusters are available
for this job to be submitted to. If not specified, defaults to
global.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scheduling
→ Input<
JobScheduling?> ? -
Optional. Job scheduling configuration.
final
-
sparkConfig
→ Input<
JobSparkConfig?> ? -
The config of the Spark job.
final
-
sparksqlConfig
→ Input<
JobSparksqlConfig?> ? -
The config of SparkSql job
final
-
waitForCompletion
→ Input<
bool?> ? -
If set to true, Terraform will wait for the job to reach a terminal state (
DONE,ERROR,CANCELLED,ATTEMPT_FAILURE). Otherwise, Terraform will consider the job 'created' once it is in theRUNNINGstate.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