AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Updates the compute node group configuration of a queue. Use this API to change the compute node groups that the queue can send jobs to.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginUpdateQueue and EndUpdateQueue.
Namespace: Amazon.PCS
Assembly: AWSSDK.PCS.dll
Version: 3.x.y.z
public virtual Task<UpdateQueueResponse> UpdateQueueAsync( UpdateQueueRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the UpdateQueue service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
AccessDeniedException | You don't have permission to perform the action. Examples The launch template instance profile doesn't pass iam:PassRole verification. There is a mismatch between the account ID and cluster ID. The cluster ID doesn't exist. The EC2 instance isn't present. |
ConflictException | Your request has conflicting operations. This can occur if you're trying to perform more than 1 operation on the same resource at the same time. Examples A cluster with the same name already exists. A cluster isn't in ACTIVE status. A cluster to delete is in an unstable state. For example, because it still has ACTIVE node groups or queues. A queue already exists in a cluster. |
InternalServerException | Amazon Web Services PCS can't process your request right now. Try again later. |
ResourceNotFoundException | The requested resource can't be found. The cluster, node group, or queue you're attempting to get, update, list, or delete doesn't exist. Examples |
ServiceQuotaExceededException | You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your Amazon Web Services account. To learn how to increase your service quota, see Requesting a quota increase in the Service Quotas User Guide Examples The max number of clusters or queues has been reached for the account. The max number of compute node groups has been reached for the associated cluster. The total of maxInstances across all compute node groups has been reached for associated cluster. |
ThrottlingException | Your request exceeded a request rate quota. Check the resource's request rate quota and try again. |
ValidationException | The request isn't valid. Examples Your request contains malformed JSON or unsupported characters. The scheduler version isn't supported. There are networking related errors, such as network validation failure. AMI type is CUSTOM and the launch template doesn't define the AMI ID, or the AMI type is AL2 and the launch template defines the AMI. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer