@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
129 lines (128 loc) • 3.72 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get information about a Google Cloud Run v2 Job. For more information see
* the [official documentation](https://cloud.google.com/run/docs/)
* and [API](https://cloud.google.com/run/docs/apis).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myJob = gcp.cloudrunv2.getJob({
* name: "my-job",
* location: "us-central1",
* });
* ```
*/
export declare function getJob(args: GetJobArgs, opts?: pulumi.InvokeOptions): Promise<GetJobResult>;
/**
* A collection of arguments for invoking getJob.
*/
export interface GetJobArgs {
/**
* The location of the instance. eg us-central1
*
* - - -
*/
location?: string;
/**
* The name of the Cloud Run v2 Job.
*/
name: string;
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getJob.
*/
export interface GetJobResult {
readonly annotations: {
[key: string]: string;
};
readonly binaryAuthorizations: outputs.cloudrunv2.GetJobBinaryAuthorization[];
readonly client: string;
readonly clientVersion: string;
readonly conditions: outputs.cloudrunv2.GetJobCondition[];
readonly createTime: string;
readonly creator: string;
readonly deleteTime: string;
readonly deletionProtection: boolean;
readonly effectiveAnnotations: {
[key: string]: string;
};
readonly effectiveLabels: {
[key: string]: string;
};
readonly etag: string;
readonly executionCount: number;
readonly expireTime: string;
readonly generation: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labels: {
[key: string]: string;
};
readonly lastModifier: string;
readonly latestCreatedExecutions: outputs.cloudrunv2.GetJobLatestCreatedExecution[];
readonly launchStage: string;
readonly location?: string;
readonly name: string;
readonly observedGeneration: string;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly reconciling: boolean;
readonly runExecutionToken: string;
readonly startExecutionToken: string;
readonly templates: outputs.cloudrunv2.GetJobTemplate[];
readonly terminalConditions: outputs.cloudrunv2.GetJobTerminalCondition[];
readonly uid: string;
readonly updateTime: string;
}
/**
* Get information about a Google Cloud Run v2 Job. For more information see
* the [official documentation](https://cloud.google.com/run/docs/)
* and [API](https://cloud.google.com/run/docs/apis).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myJob = gcp.cloudrunv2.getJob({
* name: "my-job",
* location: "us-central1",
* });
* ```
*/
export declare function getJobOutput(args: GetJobOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetJobResult>;
/**
* A collection of arguments for invoking getJob.
*/
export interface GetJobOutputArgs {
/**
* The location of the instance. eg us-central1
*
* - - -
*/
location?: pulumi.Input<string>;
/**
* The name of the Cloud Run v2 Job.
*/
name: pulumi.Input<string>;
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}