import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a batch workload that executes asynchronously. * Auto-naming is currently not supported for this resource. */ export declare class Batch extends pulumi.CustomResource { /** * Get an existing Batch 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): Batch; /** * Returns true if the given object is an instance of Batch. 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 Batch; /** * Optional. The ID to use for the batch, which will become the final component of the batch's resource name.This value must be 4-63 characters. Valid characters are /[a-z][0-9]-/. */ readonly batchId: pulumi.Output; /** * The time when the batch was created. */ readonly createTime: pulumi.Output; /** * The email address of the user who created the batch. */ readonly creator: pulumi.Output; /** * Optional. Environment configuration for the batch execution. */ readonly environmentConfig: pulumi.Output; /** * Optional. The labels to associate with this batch. 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 batch. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * The resource name of the batch. */ readonly name: pulumi.Output; /** * The resource name of the operation associated with this batch. */ readonly operation: pulumi.Output; readonly project: pulumi.Output; /** * Optional. PySpark batch config. */ readonly pysparkBatch: pulumi.Output; /** * Optional. A unique ID used to identify the request. If the service receives two CreateBatchRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first Batch created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. */ readonly requestId: pulumi.Output; /** * Optional. Runtime configuration for the batch execution. */ readonly runtimeConfig: pulumi.Output; /** * Runtime information about batch execution. */ readonly runtimeInfo: pulumi.Output; /** * Optional. Spark batch config. */ readonly sparkBatch: pulumi.Output; /** * Optional. SparkR batch config. */ readonly sparkRBatch: pulumi.Output; /** * Optional. SparkSql batch config. */ readonly sparkSqlBatch: pulumi.Output; /** * The state of the batch. */ readonly state: pulumi.Output; /** * Historical state information for the batch. */ readonly stateHistory: pulumi.Output; /** * Batch state details, such as a failure description if the state is FAILED. */ readonly stateMessage: pulumi.Output; /** * The time when the batch entered a current state. */ readonly stateTime: pulumi.Output; /** * A batch UUID (Unique Universal Identifier). The service generates this value when it creates the batch. */ readonly uuid: pulumi.Output; /** * Create a Batch 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?: BatchArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Batch resource. */ export interface BatchArgs { /** * Optional. The ID to use for the batch, which will become the final component of the batch's resource name.This value must be 4-63 characters. Valid characters are /[a-z][0-9]-/. */ batchId?: pulumi.Input; /** * Optional. Environment configuration for the batch execution. */ environmentConfig?: pulumi.Input; /** * Optional. The labels to associate with this batch. 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 batch. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; project?: pulumi.Input; /** * Optional. PySpark batch config. */ pysparkBatch?: pulumi.Input; /** * Optional. A unique ID used to identify the request. If the service receives two CreateBatchRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first Batch created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. */ requestId?: pulumi.Input; /** * Optional. Runtime configuration for the batch execution. */ runtimeConfig?: pulumi.Input; /** * Optional. Spark batch config. */ sparkBatch?: pulumi.Input; /** * Optional. SparkR batch config. */ sparkRBatch?: pulumi.Input; /** * Optional. SparkSql batch config. */ sparkSqlBatch?: pulumi.Input; }