import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new execution using the latest revision of the given workflow. * Auto-naming is currently not supported for this resource. * Note - this resource's API doesn't support deletion. When deleted, the resource will persist * on Google Cloud even though it will be deleted from Pulumi state. */ export declare class Execution extends pulumi.CustomResource { /** * Get an existing Execution 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): Execution; /** * Returns true if the given object is an instance of Execution. 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 Execution; /** * Input parameters of the execution represented as a JSON string. The size limit is 32KB. *Note*: If you are using the REST API directly to run your workflow, you must escape any JSON string value of `argument`. Example: `'{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'` */ readonly argument: pulumi.Output; /** * The call logging level associated to this execution. */ readonly callLogLevel: pulumi.Output; /** * Measures the duration of the execution. */ readonly duration: pulumi.Output; /** * Marks the end of execution, successful or not. */ readonly endTime: pulumi.Output; /** * The error which caused the execution to finish prematurely. The value is only present if the execution's state is `FAILED` or `CANCELLED`. */ readonly error: pulumi.Output; /** * Labels associated with this execution. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. By default, labels are inherited from the workflow but are overridden by any labels associated with the execution. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * The resource name of the execution. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * Output of the execution represented as a JSON string. The value can only be present if the execution's state is `SUCCEEDED`. */ readonly result: pulumi.Output; /** * Marks the beginning of execution. */ readonly startTime: pulumi.Output; /** * Current state of the execution. */ readonly state: pulumi.Output; /** * Error regarding the state of the Execution resource. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions. */ readonly stateError: pulumi.Output; /** * Status tracks the current steps and progress data of this execution. */ readonly status: pulumi.Output; readonly workflowId: pulumi.Output; /** * Revision of the workflow this execution is using. */ readonly workflowRevisionId: pulumi.Output; /** * Create a Execution 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: ExecutionArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Execution resource. */ export interface ExecutionArgs { /** * Input parameters of the execution represented as a JSON string. The size limit is 32KB. *Note*: If you are using the REST API directly to run your workflow, you must escape any JSON string value of `argument`. Example: `'{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'` */ argument?: pulumi.Input; /** * The call logging level associated to this execution. */ callLogLevel?: pulumi.Input; /** * Labels associated with this execution. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. By default, labels are inherited from the workflow but are overridden by any labels associated with the execution. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; project?: pulumi.Input; workflowId: pulumi.Input; }