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 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: string; /** * A URI pointing to the location of the stdout of the job's driver program. */ readonly driverOutputResourceUri: string; /** * Optional. Driver scheduling configuration. */ readonly driverSchedulingConfig: outputs.dataproc.v1.DriverSchedulingConfigResponse; /** * Optional. Job is a Flink job. */ readonly flinkJob: outputs.dataproc.v1.FlinkJobResponse; /** * Optional. Job is a Hadoop job. */ readonly hadoopJob: outputs.dataproc.v1.HadoopJobResponse; /** * Optional. Job is a Hive job. */ readonly hiveJob: outputs.dataproc.v1.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 might 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 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: { [key: string]: string; }; /** * Optional. Job is a Pig job. */ readonly pigJob: outputs.dataproc.v1.PigJobResponse; /** * Job information, including how, when, and where to run the job. */ readonly placement: outputs.dataproc.v1.JobPlacementResponse; /** * Optional. Job is a Presto job. */ readonly prestoJob: outputs.dataproc.v1.PrestoJobResponse; /** * Optional. Job is a PySpark job. */ readonly pysparkJob: outputs.dataproc.v1.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.v1.JobReferenceResponse; /** * Optional. Job scheduling configuration. */ readonly scheduling: outputs.dataproc.v1.JobSchedulingResponse; /** * Optional. Job is a Spark job. */ readonly sparkJob: outputs.dataproc.v1.SparkJobResponse; /** * Optional. Job is a SparkR job. */ readonly sparkRJob: outputs.dataproc.v1.SparkRJobResponse; /** * Optional. Job is a SparkSql job. */ readonly sparkSqlJob: outputs.dataproc.v1.SparkSqlJobResponse; /** * The job status. Additional application-specific status information might be contained in the type_job and yarn_applications fields. */ readonly status: outputs.dataproc.v1.JobStatusResponse; /** * The previous job status. */ readonly statusHistory: outputs.dataproc.v1.JobStatusResponse[]; /** * Optional. Job is a Trino job. */ readonly trinoJob: outputs.dataproc.v1.TrinoJobResponse; /** * 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: outputs.dataproc.v1.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; }