import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a `WorkerPool` to run the builds, and returns the new worker pool. */ export declare class WorkerPool extends pulumi.CustomResource { /** * Get an existing WorkerPool 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): WorkerPool; /** * Returns true if the given object is an instance of WorkerPool. 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 WorkerPool; /** * Time at which the request to create the `WorkerPool` was received. */ readonly createTime: pulumi.Output; /** * Time at which the request to delete the `WorkerPool` was received. */ readonly deleteTime: pulumi.Output; /** * User-defined name of the `WorkerPool`. */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * List of regions to create the `WorkerPool`. Regions can't be empty. If Cloud Build adds a new GCP region in the future, the existing `WorkerPool` will not be enabled in the new region automatically; you must add the new region to the `regions` field to enable the `WorkerPool` in that region. */ readonly regions: pulumi.Output; /** * The service account used to manage the `WorkerPool`. The service account must have the Compute Instance Admin (Beta) permission at the project level. */ readonly serviceAccountEmail: pulumi.Output; /** * WorkerPool Status. */ readonly status: pulumi.Output; /** * Time at which the request to update the `WorkerPool` was received. */ readonly updateTime: pulumi.Output; /** * Configuration to be used for a creating workers in the `WorkerPool`. */ readonly workerConfig: pulumi.Output; /** * Total number of workers to be created across all requested regions. */ readonly workerCount: pulumi.Output; /** * Create a WorkerPool 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?: WorkerPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a WorkerPool resource. */ export interface WorkerPoolArgs { /** * User-defined name of the `WorkerPool`. */ name?: pulumi.Input; /** * The project ID of the GCP project for which the `WorkerPool` is created. */ project?: pulumi.Input; /** * List of regions to create the `WorkerPool`. Regions can't be empty. If Cloud Build adds a new GCP region in the future, the existing `WorkerPool` will not be enabled in the new region automatically; you must add the new region to the `regions` field to enable the `WorkerPool` in that region. */ regions?: pulumi.Input[]>; /** * Configuration to be used for a creating workers in the `WorkerPool`. */ workerConfig?: pulumi.Input; /** * Total number of workers to be created across all requested regions. */ workerCount?: pulumi.Input; }