Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudbuild/v1alpha2.WorkerPool
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a WorkerPool to run the builds, and returns the new worker pool.
Auto-naming is currently not supported for this resource.
Create WorkerPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkerPool(name: string, args: WorkerPoolArgs, opts?: CustomResourceOptions);@overload
def WorkerPool(resource_name: str,
               args: WorkerPoolArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def WorkerPool(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               region: Optional[str] = None,
               worker_pool_id: Optional[str] = None,
               network_config: Optional[NetworkConfigArgs] = None,
               project: Optional[str] = None,
               worker_config: Optional[WorkerConfigArgs] = None)func NewWorkerPool(ctx *Context, name string, args WorkerPoolArgs, opts ...ResourceOption) (*WorkerPool, error)public WorkerPool(string name, WorkerPoolArgs args, CustomResourceOptions? opts = null)
public WorkerPool(String name, WorkerPoolArgs args)
public WorkerPool(String name, WorkerPoolArgs args, CustomResourceOptions options)
type: google-native:cloudbuild/v1alpha2:WorkerPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkerPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkerPoolArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkerPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkerPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkerPoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleworkerPoolResourceResourceFromCloudbuildv1alpha2 = new GoogleNative.CloudBuild.V1Alpha2.WorkerPool("exampleworkerPoolResourceResourceFromCloudbuildv1alpha2", new()
{
    Region = "string",
    WorkerPoolId = "string",
    NetworkConfig = new GoogleNative.CloudBuild.V1Alpha2.Inputs.NetworkConfigArgs
    {
        PeeredNetwork = "string",
    },
    Project = "string",
    WorkerConfig = new GoogleNative.CloudBuild.V1Alpha2.Inputs.WorkerConfigArgs
    {
        DiskSizeGb = "string",
        MachineType = "string",
    },
});
example, err := cloudbuildv1alpha2.NewWorkerPool(ctx, "exampleworkerPoolResourceResourceFromCloudbuildv1alpha2", &cloudbuildv1alpha2.WorkerPoolArgs{
	Region:       pulumi.String("string"),
	WorkerPoolId: pulumi.String("string"),
	NetworkConfig: &cloudbuild.NetworkConfigArgs{
		PeeredNetwork: pulumi.String("string"),
	},
	Project: pulumi.String("string"),
	WorkerConfig: &cloudbuild.WorkerConfigArgs{
		DiskSizeGb:  pulumi.String("string"),
		MachineType: pulumi.String("string"),
	},
})
var exampleworkerPoolResourceResourceFromCloudbuildv1alpha2 = new WorkerPool("exampleworkerPoolResourceResourceFromCloudbuildv1alpha2", WorkerPoolArgs.builder()
    .region("string")
    .workerPoolId("string")
    .networkConfig(NetworkConfigArgs.builder()
        .peeredNetwork("string")
        .build())
    .project("string")
    .workerConfig(WorkerConfigArgs.builder()
        .diskSizeGb("string")
        .machineType("string")
        .build())
    .build());
exampleworker_pool_resource_resource_from_cloudbuildv1alpha2 = google_native.cloudbuild.v1alpha2.WorkerPool("exampleworkerPoolResourceResourceFromCloudbuildv1alpha2",
    region="string",
    worker_pool_id="string",
    network_config={
        "peered_network": "string",
    },
    project="string",
    worker_config={
        "disk_size_gb": "string",
        "machine_type": "string",
    })
const exampleworkerPoolResourceResourceFromCloudbuildv1alpha2 = new google_native.cloudbuild.v1alpha2.WorkerPool("exampleworkerPoolResourceResourceFromCloudbuildv1alpha2", {
    region: "string",
    workerPoolId: "string",
    networkConfig: {
        peeredNetwork: "string",
    },
    project: "string",
    workerConfig: {
        diskSizeGb: "string",
        machineType: "string",
    },
});
type: google-native:cloudbuild/v1alpha2:WorkerPool
properties:
    networkConfig:
        peeredNetwork: string
    project: string
    region: string
    workerConfig:
        diskSizeGb: string
        machineType: string
    workerPoolId: string
WorkerPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The WorkerPool resource accepts the following input properties:
- Region string
- Immutable. The region where the WorkerPoolruns. Only "us-central1" is currently supported. Note thatregioncannot be changed once theWorkerPoolis created.
- WorkerPool stringId 
- Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
- NetworkConfig Pulumi.Google Native. Cloud Build. V1Alpha2. Inputs. Network Config 
- Network configuration for the WorkerPool.
- Project string
- WorkerConfig Pulumi.Google Native. Cloud Build. V1Alpha2. Inputs. Worker Config 
- Worker configuration for the WorkerPool.
- Region string
- Immutable. The region where the WorkerPoolruns. Only "us-central1" is currently supported. Note thatregioncannot be changed once theWorkerPoolis created.
- WorkerPool stringId 
- Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
- NetworkConfig NetworkConfig Args 
- Network configuration for the WorkerPool.
- Project string
- WorkerConfig WorkerConfig Args 
- Worker configuration for the WorkerPool.
- region String
- Immutable. The region where the WorkerPoolruns. Only "us-central1" is currently supported. Note thatregioncannot be changed once theWorkerPoolis created.
- workerPool StringId 
- Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
- networkConfig NetworkConfig 
- Network configuration for the WorkerPool.
- project String
- workerConfig WorkerConfig 
- Worker configuration for the WorkerPool.
- region string
- Immutable. The region where the WorkerPoolruns. Only "us-central1" is currently supported. Note thatregioncannot be changed once theWorkerPoolis created.
- workerPool stringId 
- Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
- networkConfig NetworkConfig 
- Network configuration for the WorkerPool.
- project string
- workerConfig WorkerConfig 
- Worker configuration for the WorkerPool.
- region str
- Immutable. The region where the WorkerPoolruns. Only "us-central1" is currently supported. Note thatregioncannot be changed once theWorkerPoolis created.
- worker_pool_ strid 
- Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
- network_config NetworkConfig Args 
- Network configuration for the WorkerPool.
- project str
- worker_config WorkerConfig Args 
- Worker configuration for the WorkerPool.
- region String
- Immutable. The region where the WorkerPoolruns. Only "us-central1" is currently supported. Note thatregioncannot be changed once theWorkerPoolis created.
- workerPool StringId 
- Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name. This value should be 1-63 characters, and valid characters are /a-z-/.
- networkConfig Property Map
- Network configuration for the WorkerPool.
- project String
- workerConfig Property Map
- Worker configuration for the WorkerPool.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkerPool resource produces the following output properties:
- CreateTime string
- Time at which the request to create the WorkerPoolwas received.
- DeleteTime string
- Time at which the request to delete the WorkerPoolwas received.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the WorkerPool. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
- State string
- WorkerPool state.
- UpdateTime string
- Time at which the request to update the WorkerPoolwas received.
- CreateTime string
- Time at which the request to create the WorkerPoolwas received.
- DeleteTime string
- Time at which the request to delete the WorkerPoolwas received.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the WorkerPool. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
- State string
- WorkerPool state.
- UpdateTime string
- Time at which the request to update the WorkerPoolwas received.
- createTime String
- Time at which the request to create the WorkerPoolwas received.
- deleteTime String
- Time at which the request to delete the WorkerPoolwas received.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the WorkerPool. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
- state String
- WorkerPool state.
- updateTime String
- Time at which the request to update the WorkerPoolwas received.
- createTime string
- Time at which the request to create the WorkerPoolwas received.
- deleteTime string
- Time at which the request to delete the WorkerPoolwas received.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the WorkerPool. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
- state string
- WorkerPool state.
- updateTime string
- Time at which the request to update the WorkerPoolwas received.
- create_time str
- Time at which the request to create the WorkerPoolwas received.
- delete_time str
- Time at which the request to delete the WorkerPoolwas received.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name of the WorkerPool. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
- state str
- WorkerPool state.
- update_time str
- Time at which the request to update the WorkerPoolwas received.
- createTime String
- Time at which the request to create the WorkerPoolwas received.
- deleteTime String
- Time at which the request to delete the WorkerPoolwas received.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the WorkerPool. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
- state String
- WorkerPool state.
- updateTime String
- Time at which the request to update the WorkerPoolwas received.
Supporting Types
NetworkConfig, NetworkConfigArgs    
- PeeredNetwork string
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- PeeredNetwork string
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- peeredNetwork String
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- peeredNetwork string
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- peered_network str
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- peeredNetwork String
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
NetworkConfigResponse, NetworkConfigResponseArgs      
- PeeredNetwork string
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- PeeredNetwork string
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- peeredNetwork String
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- peeredNetwork string
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- peered_network str
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
- peeredNetwork String
- Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as12345, and {network} is the name of a VPC network in the project.
WorkerConfig, WorkerConfigArgs    
- DiskSize stringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- MachineType string
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- DiskSize stringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- MachineType string
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- diskSize StringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- machineType String
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- diskSize stringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- machineType string
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- disk_size_ strgb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- machine_type str
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- diskSize StringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- machineType String
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
WorkerConfigResponse, WorkerConfigResponseArgs      
- DiskSize stringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- MachineType string
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- DiskSize stringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- MachineType string
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- diskSize StringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- machineType String
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- diskSize stringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- machineType string
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- disk_size_ strgb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- machine_type str
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
- diskSize StringGb 
- Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0is specified, Cloud Build will use a standard disk size.
- machineType String
- Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.