import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a job in the specified region. */ 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; /** * The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job. */ readonly batchModePriority: pulumi.Output; /** * The configuration for this job. */ readonly config: pulumi.Output; /** * The time the job was created. */ readonly createTime: pulumi.Output; /** * The time the transcoding finished. */ readonly endTime: pulumi.Output; /** * An error object that describes the reason for the failure. This property is always present when ProcessingState is `FAILED`. */ readonly error: pulumi.Output; /** * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of `Job.config.inputs` or `JobTemplate.config.inputs` when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). */ readonly inputUri: pulumi.Output; /** * The labels associated with this job. You can use these to organize and group your jobs. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * The processing mode of the job. The default is `PROCESSING_MODE_INTERACTIVE`. */ readonly mode: pulumi.Output; /** * The resource name of the job. Format: `projects/{project_number}/locations/{location}/jobs/{job}` */ readonly name: pulumi.Output; /** * Optional. The optimization strategy of the job. The default is `AUTODETECT`. */ readonly optimization: pulumi.Output; /** * Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or `JobTemplate.config.output.uri` when using template. URI for the output file(s). For example, `gs://my-bucket/outputs/`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). */ readonly outputUri: pulumi.Output; readonly project: pulumi.Output; /** * The time the transcoding started. */ readonly startTime: pulumi.Output; /** * The current state of the job. */ readonly state: pulumi.Output; /** * Input only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`, which is the only supported preset. User defined JobTemplate: `{job_template_id}` */ readonly templateId: pulumi.Output; /** * Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30. */ readonly ttlAfterCompletionDays: 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 { /** * The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job. */ batchModePriority?: pulumi.Input; /** * The configuration for this job. */ config?: pulumi.Input; /** * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of `Job.config.inputs` or `JobTemplate.config.inputs` when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). */ inputUri?: pulumi.Input; /** * The labels associated with this job. You can use these to organize and group your jobs. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; /** * The processing mode of the job. The default is `PROCESSING_MODE_INTERACTIVE`. */ mode?: pulumi.Input; /** * The resource name of the job. Format: `projects/{project_number}/locations/{location}/jobs/{job}` */ name?: pulumi.Input; /** * Optional. The optimization strategy of the job. The default is `AUTODETECT`. */ optimization?: pulumi.Input; /** * Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or `JobTemplate.config.output.uri` when using template. URI for the output file(s). For example, `gs://my-bucket/outputs/`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). */ outputUri?: pulumi.Input; project?: pulumi.Input; /** * Input only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`, which is the only supported preset. User defined JobTemplate: `{job_template_id}` */ templateId?: pulumi.Input; /** * Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30. */ ttlAfterCompletionDays?: pulumi.Input; }