WorkerPoolArgs class
The set of arguments for WorkerPool. The set of arguments for WorkerPool.
Constructors
-
WorkerPoolArgs({Input<
Map< ? annotations, Input<String, String> ?>WorkerPoolBinaryAuthorization?> ? binaryAuthorization, Input<String?> ? client, Input<String?> ? clientVersion, Input<List< ? customAudiences, Input<String> ?>String?> ? deletionPolicy, Input<bool?> ? deletionProtection, Input<String?> ? description, Input<List< ? instanceSplits, Input<WorkerPoolInstanceSplit> ?>Map< ? labels, Input<String, String> ?>String?> ? launchStage, required Input<String> location, Input<String?> ? name, Input<String?> ? project, Input<WorkerPoolScaling?> ? scaling, required Input<WorkerPoolTemplate> template}) -
Creates a new WorkerPoolArgs.
annotationsUnstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.binaryAuthorizationSettings for the Binary Authorization feature.clientArbitrary identifier for the API client.clientVersionArbitrary version identifier for the API client.customAudiences(Optional, Deprecated)deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.deletionProtectionWhether Terraform will be prevented from destroying the service. Defaults to true.descriptionUser-provided description of the WorkerPool. This field currently has a 512-character limit.instanceSplitsSpecifies how to distribute instances over a collection of Revisions belonging to the WorkerPool. If instance split is empty or not provided, defaults to 100% instances assigned to the latest Ready Revision.labelsUnstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component,launchStageThe launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA.locationThe location of the cloud run worker poolnameName of the WorkerPool.projectThe ID of the project in which the resource belongs.scalingScaling settings that apply to the worker pool.templateThe template used to create revisions for this WorkerPool.const -
WorkerPoolArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
annotations
→ Input<
Map< ?String, String> ?> -
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Cloud Run API v2 does not support annotations with
run.googleapis.com,cloud.googleapis.com,serving.knative.dev, orautoscaling.knative.devnamespaces, and they will be rejected in new resources. All system annotations in v1 now have a corresponding field in v2 WorkerPool. This field follows Kubernetes annotations' namespacing, limits, and rules. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the fieldeffectiveAnnotationsfor all of the annotations present on the resource.final -
binaryAuthorization
→ Input<
WorkerPoolBinaryAuthorization?> ? -
Settings for the Binary Authorization feature.
Structure is documented below.
final
-
client
→ Input<
String?> ? -
Arbitrary identifier for the API client.
final
-
clientVersion
→ Input<
String?> ? -
Arbitrary version identifier for the API client.
final
-
customAudiences
→ Input<
List< ?String> ?> -
(Optional, Deprecated)
One or more custom audiences that you want this worker pool to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests.
For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences.
final
-
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
deletionProtection
→ Input<
bool?> ? -
Whether Terraform will be prevented from destroying the service. Defaults to true.
When a
terraform destroyorpulumi upwould delete the service, the command will fail if this field is not set to false in Terraform state. When the field is set to true or unset in Terraform state, apulumi uporterraform destroythat would delete the WorkerPool will fail. When the field is set to false, deleting the WorkerPool is allowed.final -
description
→ Input<
String?> ? -
User-provided description of the WorkerPool. This field currently has a 512-character limit.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instanceSplits
→ Input<
List< ?WorkerPoolInstanceSplit> ?> -
Specifies how to distribute instances over a collection of Revisions belonging to the WorkerPool. If instance split is empty or not provided, defaults to 100% instances assigned to the latest Ready Revision.
Structure is documented below.
final
-
labels
→ Input<
Map< ?String, String> ?> -
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component,
environment, state, etc. For more information, visit https://docs.cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
Cloud Run API v2 does not support labels with
run.googleapis.com,cloud.googleapis.com,serving.knative.dev, orautoscaling.knative.devnamespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 WorkerPool. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the fieldeffectiveLabelsfor all of the labels present on the resource.final -
launchStage
→ Input<
String?> ? -
The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA.
If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features.
For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output.
Possible values are:
UNIMPLEMENTED,PRELAUNCH,EARLY_ACCESS,ALPHA,BETA,GA,DEPRECATED.final -
location
→ Input<
String> -
The location of the cloud run worker pool
final
-
name
→ Input<
String?> ? -
Name of the WorkerPool.
final
-
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaling
→ Input<
WorkerPoolScaling?> ? -
Scaling settings that apply to the worker pool.
Structure is documented below.
final
-
template
→ Input<
WorkerPoolTemplate> -
The template used to create revisions for this WorkerPool.
Structure is documented below.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited