import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets the resource representation for a job in a project. */ export declare function getJob(args: GetJobArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetJobArgs { jobId: string; project?: string; region: string; } export interface GetJobResult { /** * 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: boolean; /** * 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. */ readonly driverControlFilesUri: string; /** * A URI pointing to the location of the stdout of the job's driver program. */ readonly driverOutputResourceUri: string; /** * Optional. Job is a Hadoop job. */ readonly hadoopJob: outputs.dataproc.v1beta2.HadoopJobResponse; /** * Optional. Job is a Hive job. */ readonly hiveJob: outputs.dataproc.v1beta2.HiveJobResponse; /** * A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time. */ readonly jobUuid: string; /** * 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 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 job. */ readonly labels: { [key: string]: string; }; /** * Optional. Job is a Pig job. */ readonly pigJob: outputs.dataproc.v1beta2.PigJobResponse; /** * Job information, including how, when, and where to run the job. */ readonly placement: outputs.dataproc.v1beta2.JobPlacementResponse; /** * Optional. Job is a Presto job. */ readonly prestoJob: outputs.dataproc.v1beta2.PrestoJobResponse; /** * Optional. Job is a PySpark job. */ readonly pysparkJob: outputs.dataproc.v1beta2.PySparkJobResponse; /** * 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: outputs.dataproc.v1beta2.JobReferenceResponse; /** * Optional. Job scheduling configuration. */ readonly scheduling: outputs.dataproc.v1beta2.JobSchedulingResponse; /** * Optional. Job is a Spark job. */ readonly sparkJob: outputs.dataproc.v1beta2.SparkJobResponse; /** * Optional. Job is a SparkR job. */ readonly sparkRJob: outputs.dataproc.v1beta2.SparkRJobResponse; /** * Optional. Job is a SparkSql job. */ readonly sparkSqlJob: outputs.dataproc.v1beta2.SparkSqlJobResponse; /** * The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields. */ readonly status: outputs.dataproc.v1beta2.JobStatusResponse; /** * The previous job status. */ readonly statusHistory: outputs.dataproc.v1beta2.JobStatusResponse[]; /** * The email address of the user submitting the job. For jobs submitted on the cluster, the address is username@hostname. */ readonly submittedBy: string; /** * The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release. */ readonly yarnApplications: outputs.dataproc.v1beta2.YarnApplicationResponse[]; } /** * Gets the resource representation for a job in a project. */ export declare function getJobOutput(args: GetJobOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetJobOutputArgs { jobId: pulumi.Input; project?: pulumi.Input; region: pulumi.Input; }