JobState class
Input properties used for looking up and filtering Job resources.
Constructors
-
JobState({Input<
String?> ? deletionPolicy, Input<String?> ? driverControlsFilesUri, Input<String?> ? driverOutputResourceUri, Input<Map< ? effectiveLabels, Input<String, String> ?>bool?> ? forceDelete, Input<JobHadoopConfig?> ? hadoopConfig, Input<JobHiveConfig?> ? hiveConfig, Input<Map< ? labels, Input<String, String> ?>JobPigConfig?> ? pigConfig, Input<JobPlacement?> ? placement, Input<JobPrestoConfig?> ? prestoConfig, Input<String?> ? project, Input<Map< ? pulumiLabels, Input<String, String> ?>JobPysparkConfig?> ? pysparkConfig, Input<JobReference?> ? reference, Input<String?> ? region, Input<JobScheduling?> ? scheduling, Input<JobSparkConfig?> ? sparkConfig, Input<JobSparksqlConfig?> ? sparksqlConfig, Input<List< ? statuses, Input<JobStatus> ?>bool?> ? waitForCompletion}) -
Creates a new JobState.
deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to "DELETE".driverControlsFilesUriIf present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.driverOutputResourceUriA URI pointing to the location of the stdout of the job's driver program.effectiveLabelsAll of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.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 jobspulumiLabelsThe combination of labels configured directly on the resource and default labels configured on the provider.pysparkConfigThe 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 jobstatusesThe status of the job.waitForCompletionIf 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 -
JobState.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
-
driverControlsFilesUri
→ Input<
String?> ? -
If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
final
-
driverOutputResourceUri
→ Input<
String?> ? -
A URI pointing to the location of the stdout of the job's driver program.
final
-
effectiveLabels
→ Input<
Map< ?String, String> ?> -
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
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 -
pulumiLabels
→ Input<
Map< ?String, String> ?> -
The combination of labels configured directly on the resource and default labels configured on the provider.
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
-
statuses
→ Input<
List< ?JobStatus> ?> -
The status of the 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