import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Submits a job to a cluster. * Auto-naming is currently not supported for this resource. */ export declare class Job extends pulumi.CustomResource { /** * Get an existing Job resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Job; /** * Returns true if the given object is an instance of Job. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Job; /** * Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled. */ readonly done: pulumi.Output; /** * If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri. */ readonly driverControlFilesUri: pulumi.Output; /** * A URI pointing to the location of the stdout of the job's driver program. */ readonly driverOutputResourceUri: pulumi.Output; /** * Optional. Driver scheduling configuration. */ readonly driverSchedulingConfig: pulumi.Output; /** * Optional. Job is a Flink job. */ readonly flinkJob: pulumi.Output; /** * Optional. Job is a Hadoop job. */ readonly hadoopJob: pulumi.Output; /** * Optional. Job is a Hive job. */ readonly hiveJob: pulumi.Output; /** * A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time. */ readonly jobUuid: pulumi.Output; /** * Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can 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 job. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; /** * Optional. Job is a Pig job. */ readonly pigJob: pulumi.Output; /** * Job information, including how, when, and where to run the job. */ readonly placement: pulumi.Output; /** * Optional. Job is a Presto job. */ readonly prestoJob: pulumi.Output; readonly project: pulumi.Output; /** * Optional. Job is a PySpark job. */ readonly pysparkJob: pulumi.Output; /** * Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id. */ readonly reference: pulumi.Output; readonly region: pulumi.Output; /** * Optional. Job scheduling configuration. */ readonly scheduling: pulumi.Output; /** * Optional. Job is a Spark job. */ readonly sparkJob: pulumi.Output; /** * Optional. Job is a SparkR job. */ readonly sparkRJob: pulumi.Output; /** * Optional. Job is a SparkSql job. */ readonly sparkSqlJob: pulumi.Output; /** * The job status. Additional application-specific status information might be contained in the type_job and yarn_applications fields. */ readonly status: pulumi.Output; /** * The previous job status. */ readonly statusHistory: pulumi.Output; /** * Optional. Job is a Trino job. */ readonly trinoJob: pulumi.Output; /** * The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It might be changed before final release. */ readonly yarnApplications: pulumi.Output; /** * Create a Job resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: JobArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Job resource. */ export interface JobArgs { /** * Optional. Driver scheduling configuration. */ driverSchedulingConfig?: pulumi.Input; /** * Optional. Job is a Flink job. */ flinkJob?: pulumi.Input; /** * Optional. Job is a Hadoop job. */ hadoopJob?: pulumi.Input; /** * Optional. Job is a Hive job. */ hiveJob?: pulumi.Input; /** * Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can 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 job. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Optional. Job is a Pig job. */ pigJob?: pulumi.Input; /** * Job information, including how, when, and where to run the job. */ placement: pulumi.Input; /** * Optional. Job is a Presto job. */ prestoJob?: pulumi.Input; project?: pulumi.Input; /** * Optional. Job is a PySpark job. */ pysparkJob?: pulumi.Input; /** * Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id. */ reference?: pulumi.Input; region: pulumi.Input; /** * Optional. A unique id used to identify the request. If the server receives two SubmitJobRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s with the same id, then the second request will be ignored and the first Job 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. */ requestId?: pulumi.Input; /** * Optional. Job scheduling configuration. */ scheduling?: pulumi.Input; /** * Optional. Job is a Spark job. */ sparkJob?: pulumi.Input; /** * Optional. Job is a SparkR job. */ sparkRJob?: pulumi.Input; /** * Optional. Job is a SparkSql job. */ sparkSqlJob?: pulumi.Input; /** * Optional. Job is a Trino job. */ trinoJob?: pulumi.Input; }