google-native.cloudbuild/v1alpha2.WorkerPool
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
new WorkerPool(name: string, args: WorkerPoolArgs, opts?: CustomResourceOptions);
@overload
def WorkerPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_config: Optional[NetworkConfigArgs] = None,
project: Optional[str] = None,
region: Optional[str] = None,
worker_config: Optional[WorkerConfigArgs] = None,
worker_pool_id: Optional[str] = None)
@overload
def WorkerPool(resource_name: str,
args: WorkerPoolArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The WorkerPool resource accepts the following input properties:
- Region string
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- Worker
Pool 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-/.- Network
Config Pulumi.Google Native. Cloud Build. V1Alpha2. Inputs. Network Config Args Network configuration for the
WorkerPool
.- Project string
- Worker
Config Pulumi.Google Native. Cloud Build. V1Alpha2. Inputs. Worker Config Args Worker configuration for the
WorkerPool
.
- Region string
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- Worker
Pool 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-/.- Network
Config NetworkConfig Args Network configuration for the
WorkerPool
.- Project string
- Worker
Config WorkerConfig Args Worker configuration for the
WorkerPool
.
- region String
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- worker
Pool 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-/.- network
Config NetworkConfig Args Network configuration for the
WorkerPool
.- project String
- worker
Config WorkerConfig Args Worker configuration for the
WorkerPool
.
- region string
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- worker
Pool 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-/.- network
Config NetworkConfig Args Network configuration for the
WorkerPool
.- project string
- worker
Config WorkerConfig Args Worker configuration for the
WorkerPool
.
- region str
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is 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
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- worker
Pool 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-/.- network
Config Property Map Network configuration for the
WorkerPool
.- project String
- worker
Config 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:
- Create
Time string Time at which the request to create the
WorkerPool
was received.- Delete
Time string Time at which the request to delete the
WorkerPool
was 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.
- Update
Time string Time at which the request to update the
WorkerPool
was received.
- Create
Time string Time at which the request to create the
WorkerPool
was received.- Delete
Time string Time at which the request to delete the
WorkerPool
was 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.
- Update
Time string Time at which the request to update the
WorkerPool
was received.
- create
Time String Time at which the request to create the
WorkerPool
was received.- delete
Time String Time at which the request to delete the
WorkerPool
was 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.
- update
Time String Time at which the request to update the
WorkerPool
was received.
- create
Time string Time at which the request to create the
WorkerPool
was received.- delete
Time string Time at which the request to delete the
WorkerPool
was 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.
- update
Time string Time at which the request to update the
WorkerPool
was received.
- create_
time str Time at which the request to create the
WorkerPool
was received.- delete_
time str Time at which the request to delete the
WorkerPool
was 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
WorkerPool
was received.
- create
Time String Time at which the request to create the
WorkerPool
was received.- delete
Time String Time at which the request to delete the
WorkerPool
was 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.
- update
Time String Time at which the request to update the
WorkerPool
was received.
Supporting Types
NetworkConfig
- Peered
Network 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 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 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 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.
- peered
Network 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
- Peered
Network 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 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 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 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.
- peered
Network 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
- Disk
Size stringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- Machine
Type 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 stringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- Machine
Type 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 StringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- machine
Type 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 stringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- machine
Type 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
0
is 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.
- disk
Size StringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- machine
Type 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
- Disk
Size stringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- Machine
Type 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 stringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- Machine
Type 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 StringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- machine
Type 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 stringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- machine
Type 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
0
is 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.
- disk
Size StringGb Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If
0
is specified, Cloud Build will use a standard disk size.- machine
Type 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