UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

132 lines (131 loc) 4.1 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get information about a Google Cloud Run v2 Worker Pool. 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 myWorkerPool = gcp.cloudrunv2.getWorkerPool({ * name: "my-worker-pool", * location: "us-central1", * }); * ``` */ export declare function getWorkerPool(args: GetWorkerPoolArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkerPoolResult>; /** * A collection of arguments for invoking getWorkerPool. */ export interface GetWorkerPoolArgs { /** * The location of the instance. eg us-central1 * * - - - */ location?: string; /** * The name of the Cloud Run v2 Worker Pool. */ 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 getWorkerPool. */ export interface GetWorkerPoolResult { readonly annotations: { [key: string]: string; }; readonly binaryAuthorizations: outputs.cloudrunv2.GetWorkerPoolBinaryAuthorization[]; readonly client: string; readonly clientVersion: string; readonly conditions: outputs.cloudrunv2.GetWorkerPoolCondition[]; readonly createTime: string; readonly creator: string; readonly customAudiences: string[]; readonly deleteTime: string; readonly deletionProtection: boolean; readonly description: string; readonly effectiveAnnotations: { [key: string]: string; }; readonly effectiveLabels: { [key: string]: string; }; readonly etag: string; readonly expireTime: string; readonly generation: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceSplitStatuses: outputs.cloudrunv2.GetWorkerPoolInstanceSplitStatus[]; readonly instanceSplits: outputs.cloudrunv2.GetWorkerPoolInstanceSplit[]; readonly labels: { [key: string]: string; }; readonly lastModifier: string; readonly latestCreatedRevision: string; readonly latestReadyRevision: string; readonly launchStage: string; readonly location?: string; readonly name: string; readonly observedGeneration: string; readonly project?: string; readonly pulumiLabels: { [key: string]: string; }; readonly reconciling: boolean; readonly scalings: outputs.cloudrunv2.GetWorkerPoolScaling[]; readonly templates: outputs.cloudrunv2.GetWorkerPoolTemplate[]; readonly terminalConditions: outputs.cloudrunv2.GetWorkerPoolTerminalCondition[]; readonly uid: string; readonly updateTime: string; } /** * Get information about a Google Cloud Run v2 Worker Pool. 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 myWorkerPool = gcp.cloudrunv2.getWorkerPool({ * name: "my-worker-pool", * location: "us-central1", * }); * ``` */ export declare function getWorkerPoolOutput(args: GetWorkerPoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkerPoolResult>; /** * A collection of arguments for invoking getWorkerPool. */ export interface GetWorkerPoolOutputArgs { /** * The location of the instance. eg us-central1 * * - - - */ location?: pulumi.Input<string>; /** * The name of the Cloud Run v2 Worker Pool. */ 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>; }