import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * 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 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; /** * List of failure details. This property may contain additional information about the failure when `failure_reason` is present. *Note*: This feature is not yet available. */ readonly failureDetails: pulumi.Output; /** * A description of the reason for the failure. This property is always present when `state` is `FAILED`. */ readonly failureReason: 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`). */ readonly inputUri: pulumi.Output; /** * The resource name of the job. Format: `projects/{project}/locations/{location}/jobs/{job}` */ readonly name: pulumi.Output; /** * The origin URI. *Note*: This feature is not yet available. */ readonly originUri: 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/`. */ readonly outputUri: pulumi.Output; /** * Specify the priority of the job. Enter a value between 0 and 100, where 0 is the lowest priority and 100 is the highest priority. The default is 0. */ readonly priority: pulumi.Output; /** * Estimated fractional progress, from `0` to `1` for each step. *Note*: This feature is not yet available. */ readonly progress: 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`. Preset Transcoder templates: - `preset/{preset_id}` - 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 configuration for this job. */ readonly 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`). */ readonly inputUri?: pulumi.Input; readonly jobsId: pulumi.Input; readonly locationsId: pulumi.Input; /** * The resource name of the job. Format: `projects/{project}/locations/{location}/jobs/{job}` */ readonly name?: 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/`. */ readonly outputUri?: pulumi.Input; /** * Specify the priority of the job. Enter a value between 0 and 100, where 0 is the lowest priority and 100 is the highest priority. The default is 0. */ readonly priority?: pulumi.Input; readonly projectsId: pulumi.Input; /** * Input only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`. Preset Transcoder templates: - `preset/{preset_id}` - User defined JobTemplate: `{job_template_id}` */ readonly 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. */ readonly ttlAfterCompletionDays?: pulumi.Input; }