Interface PcsAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface PcsAsyncClient extends AwsClient
Service client for accessing AWS Parallel Computing Service asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

Amazon Web Services Parallel Computing Service (Amazon Web Services PCS) is a managed service that makes it easier for you to run and scale your high performance computing (HPC) workloads, and build scientific and engineering models on Amazon Web Services using Slurm. For more information, see the Amazon Web Services Parallel Computing Service User Guide.

This reference describes the actions and data types of the service management API. You can use the Amazon Web Services SDKs to call the API actions in software, or use the Command Line Interface (CLI) to call the API actions manually. These API actions manage the service through an Amazon Web Services account.

The API actions operate on Amazon Web Services PCS resources. A resource is an entity in Amazon Web Services that you can work with. Amazon Web Services services create resources when you use the features of the service. Examples of Amazon Web Services PCS resources include clusters, compute node groups, and queues. For more information about resources in Amazon Web Services, see Resource in the Resource Explorer User Guide.

An Amazon Web Services PCS compute node is an Amazon EC2 instance. You don't launch compute nodes directly. Amazon Web Services PCS uses configuration information that you provide to launch compute nodes in your Amazon Web Services account. You receive billing charges for your running compute nodes. Amazon Web Services PCS automatically terminates your compute nodes when you delete the Amazon Web Services PCS resources related to those compute nodes.

  • Field Details

  • Method Details

    • createCluster

      default CompletableFuture<CreateClusterResponse> createCluster(CreateClusterRequest createClusterRequest)

      Creates a cluster in your account. Amazon Web Services PCS creates the cluster controller in a service-owned account. The cluster controller communicates with the cluster resources in your account. The subnets and security groups for the cluster must already exist before you use this API action.

      It takes time for Amazon Web Services PCS to create the cluster. The cluster is in a Creating state until it is ready to use. There can only be 1 cluster in a Creating state per Amazon Web Services Region per Amazon Web Services account. CreateCluster fails with a ServiceQuotaExceededException if there is already a cluster in a Creating state.

      Parameters:
      createClusterRequest -
      Returns:
      A Java Future containing the result of the CreateCluster operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCluster

      default CompletableFuture<CreateClusterResponse> createCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest)

      Creates a cluster in your account. Amazon Web Services PCS creates the cluster controller in a service-owned account. The cluster controller communicates with the cluster resources in your account. The subnets and security groups for the cluster must already exist before you use this API action.

      It takes time for Amazon Web Services PCS to create the cluster. The cluster is in a Creating state until it is ready to use. There can only be 1 cluster in a Creating state per Amazon Web Services Region per Amazon Web Services account. CreateCluster fails with a ServiceQuotaExceededException if there is already a cluster in a Creating state.


      This is a convenience which creates an instance of the CreateClusterRequest.Builder avoiding the need to create one manually via CreateClusterRequest.builder()

      Parameters:
      createClusterRequest - A Consumer that will call methods on CreateClusterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateCluster operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createComputeNodeGroup

      default CompletableFuture<CreateComputeNodeGroupResponse> createComputeNodeGroup(CreateComputeNodeGroupRequest createComputeNodeGroupRequest)

      Creates a managed set of compute nodes. You associate a compute node group with a cluster through 1 or more Amazon Web Services PCS queues or as part of the login fleet. A compute node group includes the definition of the compute properties and lifecycle management. Amazon Web Services PCS uses the information you provide to this API action to launch compute nodes in your account. You can only specify subnets in the same Amazon VPC as your cluster. You receive billing charges for the compute nodes that Amazon Web Services PCS launches in your account. You must already have a launch template before you call this API. For more information, see Launch an instance from a launch template in the Amazon Elastic Compute Cloud User Guide for Linux Instances.

      Parameters:
      createComputeNodeGroupRequest -
      Returns:
      A Java Future containing the result of the CreateComputeNodeGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.

            • 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

            • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createComputeNodeGroup

      default CompletableFuture<CreateComputeNodeGroupResponse> createComputeNodeGroup(Consumer<CreateComputeNodeGroupRequest.Builder> createComputeNodeGroupRequest)

      Creates a managed set of compute nodes. You associate a compute node group with a cluster through 1 or more Amazon Web Services PCS queues or as part of the login fleet. A compute node group includes the definition of the compute properties and lifecycle management. Amazon Web Services PCS uses the information you provide to this API action to launch compute nodes in your account. You can only specify subnets in the same Amazon VPC as your cluster. You receive billing charges for the compute nodes that Amazon Web Services PCS launches in your account. You must already have a launch template before you call this API. For more information, see Launch an instance from a launch template in the Amazon Elastic Compute Cloud User Guide for Linux Instances.


      This is a convenience which creates an instance of the CreateComputeNodeGroupRequest.Builder avoiding the need to create one manually via CreateComputeNodeGroupRequest.builder()

      Parameters:
      createComputeNodeGroupRequest - A Consumer that will call methods on CreateComputeNodeGroupRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateComputeNodeGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.

            • 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

            • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createQueue

      default CompletableFuture<CreateQueueResponse> createQueue(CreateQueueRequest createQueueRequest)

      Creates a job queue. You must associate 1 or more compute node groups with the queue. You can associate 1 compute node group with multiple queues.

      Parameters:
      createQueueRequest -
      Returns:
      A Java Future containing the result of the CreateQueue operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.

            • 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

            • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createQueue

      default CompletableFuture<CreateQueueResponse> createQueue(Consumer<CreateQueueRequest.Builder> createQueueRequest)

      Creates a job queue. You must associate 1 or more compute node groups with the queue. You can associate 1 compute node group with multiple queues.


      This is a convenience which creates an instance of the CreateQueueRequest.Builder avoiding the need to create one manually via CreateQueueRequest.builder()

      Parameters:
      createQueueRequest - A Consumer that will call methods on CreateQueueRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateQueue operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.

            • 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

            • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCluster

      default CompletableFuture<DeleteClusterResponse> deleteCluster(DeleteClusterRequest deleteClusterRequest)

      Deletes a cluster and all its linked resources. You must delete all queues and compute node groups associated with the cluster before you can delete the cluster.

      Parameters:
      deleteClusterRequest -
      Returns:
      A Java Future containing the result of the DeleteCluster operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCluster

      default CompletableFuture<DeleteClusterResponse> deleteCluster(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest)

      Deletes a cluster and all its linked resources. You must delete all queues and compute node groups associated with the cluster before you can delete the cluster.


      This is a convenience which creates an instance of the DeleteClusterRequest.Builder avoiding the need to create one manually via DeleteClusterRequest.builder()

      Parameters:
      deleteClusterRequest - A Consumer that will call methods on DeleteClusterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteCluster operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteComputeNodeGroup

      default CompletableFuture<DeleteComputeNodeGroupResponse> deleteComputeNodeGroup(DeleteComputeNodeGroupRequest deleteComputeNodeGroupRequest)

      Deletes a compute node group. You must delete all queues associated with the compute node group first.

      Parameters:
      deleteComputeNodeGroupRequest -
      Returns:
      A Java Future containing the result of the DeleteComputeNodeGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteComputeNodeGroup

      default CompletableFuture<DeleteComputeNodeGroupResponse> deleteComputeNodeGroup(Consumer<DeleteComputeNodeGroupRequest.Builder> deleteComputeNodeGroupRequest)

      Deletes a compute node group. You must delete all queues associated with the compute node group first.


      This is a convenience which creates an instance of the DeleteComputeNodeGroupRequest.Builder avoiding the need to create one manually via DeleteComputeNodeGroupRequest.builder()

      Parameters:
      deleteComputeNodeGroupRequest - A Consumer that will call methods on DeleteComputeNodeGroupRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteComputeNodeGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteQueue

      default CompletableFuture<DeleteQueueResponse> deleteQueue(DeleteQueueRequest deleteQueueRequest)

      Deletes a job queue. If the compute node group associated with this queue isn't associated with any other queues, Amazon Web Services PCS terminates all the compute nodes for this queue.

      Parameters:
      deleteQueueRequest -
      Returns:
      A Java Future containing the result of the DeleteQueue operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteQueue

      default CompletableFuture<DeleteQueueResponse> deleteQueue(Consumer<DeleteQueueRequest.Builder> deleteQueueRequest)

      Deletes a job queue. If the compute node group associated with this queue isn't associated with any other queues, Amazon Web Services PCS terminates all the compute nodes for this queue.


      This is a convenience which creates an instance of the DeleteQueueRequest.Builder avoiding the need to create one manually via DeleteQueueRequest.builder()

      Parameters:
      deleteQueueRequest - A Consumer that will call methods on DeleteQueueRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteQueue operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCluster

      default CompletableFuture<GetClusterResponse> getCluster(GetClusterRequest getClusterRequest)

      Returns detailed information about a running cluster in your account. This API action provides networking information, endpoint information for communication with the scheduler, and provisioning status.

      Parameters:
      getClusterRequest -
      Returns:
      A Java Future containing the result of the GetCluster operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCluster

      default CompletableFuture<GetClusterResponse> getCluster(Consumer<GetClusterRequest.Builder> getClusterRequest)

      Returns detailed information about a running cluster in your account. This API action provides networking information, endpoint information for communication with the scheduler, and provisioning status.


      This is a convenience which creates an instance of the GetClusterRequest.Builder avoiding the need to create one manually via GetClusterRequest.builder()

      Parameters:
      getClusterRequest - A Consumer that will call methods on GetClusterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCluster operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getComputeNodeGroup

      default CompletableFuture<GetComputeNodeGroupResponse> getComputeNodeGroup(GetComputeNodeGroupRequest getComputeNodeGroupRequest)

      Returns detailed information about a compute node group. This API action provides networking information, EC2 instance type, compute node group status, and scheduler (such as Slurm) configuration.

      Parameters:
      getComputeNodeGroupRequest -
      Returns:
      A Java Future containing the result of the GetComputeNodeGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getComputeNodeGroup

      default CompletableFuture<GetComputeNodeGroupResponse> getComputeNodeGroup(Consumer<GetComputeNodeGroupRequest.Builder> getComputeNodeGroupRequest)

      Returns detailed information about a compute node group. This API action provides networking information, EC2 instance type, compute node group status, and scheduler (such as Slurm) configuration.


      This is a convenience which creates an instance of the GetComputeNodeGroupRequest.Builder avoiding the need to create one manually via GetComputeNodeGroupRequest.builder()

      Parameters:
      getComputeNodeGroupRequest - A Consumer that will call methods on GetComputeNodeGroupRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetComputeNodeGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getQueue

      default CompletableFuture<GetQueueResponse> getQueue(GetQueueRequest getQueueRequest)

      Returns detailed information about a queue. The information includes the compute node groups that the queue uses to schedule jobs.

      Parameters:
      getQueueRequest -
      Returns:
      A Java Future containing the result of the GetQueue operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getQueue

      Returns detailed information about a queue. The information includes the compute node groups that the queue uses to schedule jobs.


      This is a convenience which creates an instance of the GetQueueRequest.Builder avoiding the need to create one manually via GetQueueRequest.builder()

      Parameters:
      getQueueRequest - A Consumer that will call methods on GetQueueRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetQueue operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listClusters

      default CompletableFuture<ListClustersResponse> listClusters(ListClustersRequest listClustersRequest)

      Returns a list of running clusters in your account.

      Parameters:
      listClustersRequest -
      Returns:
      A Java Future containing the result of the ListClusters operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listClusters

      default CompletableFuture<ListClustersResponse> listClusters(Consumer<ListClustersRequest.Builder> listClustersRequest)

      Returns a list of running clusters in your account.


      This is a convenience which creates an instance of the ListClustersRequest.Builder avoiding the need to create one manually via ListClustersRequest.builder()

      Parameters:
      listClustersRequest - A Consumer that will call methods on ListClustersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListClusters operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listClustersPaginator

      default ListClustersPublisher listClustersPaginator(ListClustersRequest listClustersRequest)

      This is a variant of listClusters(software.amazon.awssdk.services.pcs.model.ListClustersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.pcs.paginators.ListClustersPublisher publisher = client.listClustersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.pcs.paginators.ListClustersPublisher publisher = client.listClustersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pcs.model.ListClustersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.pcs.model.ListClustersResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listClusters(software.amazon.awssdk.services.pcs.model.ListClustersRequest) operation.

      Parameters:
      listClustersRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listClustersPaginator

      default ListClustersPublisher listClustersPaginator(Consumer<ListClustersRequest.Builder> listClustersRequest)

      This is a variant of listClusters(software.amazon.awssdk.services.pcs.model.ListClustersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.pcs.paginators.ListClustersPublisher publisher = client.listClustersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.pcs.paginators.ListClustersPublisher publisher = client.listClustersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pcs.model.ListClustersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.pcs.model.ListClustersResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listClusters(software.amazon.awssdk.services.pcs.model.ListClustersRequest) operation.


      This is a convenience which creates an instance of the ListClustersRequest.Builder avoiding the need to create one manually via ListClustersRequest.builder()

      Parameters:
      listClustersRequest - A Consumer that will call methods on ListClustersRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listComputeNodeGroups

      default CompletableFuture<ListComputeNodeGroupsResponse> listComputeNodeGroups(ListComputeNodeGroupsRequest listComputeNodeGroupsRequest)

      Returns a list of all compute node groups associated with a cluster.

      Parameters:
      listComputeNodeGroupsRequest -
      Returns:
      A Java Future containing the result of the ListComputeNodeGroups operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listComputeNodeGroups

      default CompletableFuture<ListComputeNodeGroupsResponse> listComputeNodeGroups(Consumer<ListComputeNodeGroupsRequest.Builder> listComputeNodeGroupsRequest)

      Returns a list of all compute node groups associated with a cluster.


      This is a convenience which creates an instance of the ListComputeNodeGroupsRequest.Builder avoiding the need to create one manually via ListComputeNodeGroupsRequest.builder()

      Parameters:
      listComputeNodeGroupsRequest - A Consumer that will call methods on ListComputeNodeGroupsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListComputeNodeGroups operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listComputeNodeGroupsPaginator

      default ListComputeNodeGroupsPublisher listComputeNodeGroupsPaginator(ListComputeNodeGroupsRequest listComputeNodeGroupsRequest)

      This is a variant of listComputeNodeGroups(software.amazon.awssdk.services.pcs.model.ListComputeNodeGroupsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.pcs.paginators.ListComputeNodeGroupsPublisher publisher = client.listComputeNodeGroupsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.pcs.paginators.ListComputeNodeGroupsPublisher publisher = client.listComputeNodeGroupsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pcs.model.ListComputeNodeGroupsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.pcs.model.ListComputeNodeGroupsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listComputeNodeGroups(software.amazon.awssdk.services.pcs.model.ListComputeNodeGroupsRequest) operation.

      Parameters:
      listComputeNodeGroupsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listComputeNodeGroupsPaginator

      default ListComputeNodeGroupsPublisher listComputeNodeGroupsPaginator(Consumer<ListComputeNodeGroupsRequest.Builder> listComputeNodeGroupsRequest)

      This is a variant of listComputeNodeGroups(software.amazon.awssdk.services.pcs.model.ListComputeNodeGroupsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.pcs.paginators.ListComputeNodeGroupsPublisher publisher = client.listComputeNodeGroupsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.pcs.paginators.ListComputeNodeGroupsPublisher publisher = client.listComputeNodeGroupsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pcs.model.ListComputeNodeGroupsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.pcs.model.ListComputeNodeGroupsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listComputeNodeGroups(software.amazon.awssdk.services.pcs.model.ListComputeNodeGroupsRequest) operation.


      This is a convenience which creates an instance of the ListComputeNodeGroupsRequest.Builder avoiding the need to create one manually via ListComputeNodeGroupsRequest.builder()

      Parameters:
      listComputeNodeGroupsRequest - A Consumer that will call methods on ListComputeNodeGroupsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listQueues

      default CompletableFuture<ListQueuesResponse> listQueues(ListQueuesRequest listQueuesRequest)

      Returns a list of all queues associated with a cluster.

      Parameters:
      listQueuesRequest -
      Returns:
      A Java Future containing the result of the ListQueues operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listQueues

      default CompletableFuture<ListQueuesResponse> listQueues(Consumer<ListQueuesRequest.Builder> listQueuesRequest)

      Returns a list of all queues associated with a cluster.


      This is a convenience which creates an instance of the ListQueuesRequest.Builder avoiding the need to create one manually via ListQueuesRequest.builder()

      Parameters:
      listQueuesRequest - A Consumer that will call methods on ListQueuesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListQueues operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listQueuesPaginator

      default ListQueuesPublisher listQueuesPaginator(ListQueuesRequest listQueuesRequest)

      This is a variant of listQueues(software.amazon.awssdk.services.pcs.model.ListQueuesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.pcs.paginators.ListQueuesPublisher publisher = client.listQueuesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.pcs.paginators.ListQueuesPublisher publisher = client.listQueuesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pcs.model.ListQueuesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.pcs.model.ListQueuesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listQueues(software.amazon.awssdk.services.pcs.model.ListQueuesRequest) operation.

      Parameters:
      listQueuesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listQueuesPaginator

      default ListQueuesPublisher listQueuesPaginator(Consumer<ListQueuesRequest.Builder> listQueuesRequest)

      This is a variant of listQueues(software.amazon.awssdk.services.pcs.model.ListQueuesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.pcs.paginators.ListQueuesPublisher publisher = client.listQueuesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.pcs.paginators.ListQueuesPublisher publisher = client.listQueuesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pcs.model.ListQueuesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.pcs.model.ListQueuesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listQueues(software.amazon.awssdk.services.pcs.model.ListQueuesRequest) operation.


      This is a convenience which creates an instance of the ListQueuesRequest.Builder avoiding the need to create one manually via ListQueuesRequest.builder()

      Parameters:
      listQueuesRequest - A Consumer that will call methods on ListQueuesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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.

          • 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

          • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
          • 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.

            • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
            • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
            • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      Returns a list of all tags on an Amazon Web Services PCS resource.

      Parameters:
      listTagsForResourceRequest -
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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

      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

      Returns a list of all tags on an Amazon Web Services PCS resource.


      This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

      Parameters:
      listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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

      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • registerComputeNodeGroupInstance

      default CompletableFuture<RegisterComputeNodeGroupInstanceResponse> registerComputeNodeGroupInstance(RegisterComputeNodeGroupInstanceRequest registerComputeNodeGroupInstanceRequest)

      This API action isn't intended for you to use.

      Amazon Web Services PCS uses this API action to register the compute nodes it launches in your account.

      Parameters:
      registerComputeNodeGroupInstanceRequest -
      Returns:
      A Java Future containing the result of the RegisterComputeNodeGroupInstance operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
      • 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.

        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • registerComputeNodeGroupInstance

      default CompletableFuture<RegisterComputeNodeGroupInstanceResponse> registerComputeNodeGroupInstance(Consumer<RegisterComputeNodeGroupInstanceRequest.Builder> registerComputeNodeGroupInstanceRequest)

      This API action isn't intended for you to use.

      Amazon Web Services PCS uses this API action to register the compute nodes it launches in your account.


      This is a convenience which creates an instance of the RegisterComputeNodeGroupInstanceRequest.Builder avoiding the need to create one manually via RegisterComputeNodeGroupInstanceRequest.builder()

      Parameters:
      registerComputeNodeGroupInstanceRequest - A Consumer that will call methods on RegisterComputeNodeGroupInstanceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the RegisterComputeNodeGroupInstance operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
      • 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.

        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds or edits tags on an Amazon Web Services PCS resource. Each tag consists of a tag key and a tag value. The tag key and tag value are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

      Parameters:
      tagResourceRequest -
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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

        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)

      Adds or edits tags on an Amazon Web Services PCS resource. Each tag consists of a tag key and a tag value. The tag key and tag value are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.


      This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

        • 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

        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Deletes tags from an Amazon Web Services PCS resource. To delete a tag, specify the tag key and the Amazon Resource Name (ARN) of the Amazon Web Services PCS resource.

      Parameters:
      untagResourceRequest -
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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

      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

      Deletes tags from an Amazon Web Services PCS resource. To delete a tag, specify the tag key and the Amazon Resource Name (ARN) of the Amazon Web Services PCS resource.


      This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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

      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateComputeNodeGroup

      default CompletableFuture<UpdateComputeNodeGroupResponse> updateComputeNodeGroup(UpdateComputeNodeGroupRequest updateComputeNodeGroupRequest)

      Updates a compute node group. You can update many of the fields related to your compute node group including the configurations for networking, compute nodes, and settings specific to your scheduler (such as Slurm).

      Parameters:
      updateComputeNodeGroupRequest -
      Returns:
      A Java Future containing the result of the UpdateComputeNodeGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.

            • 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

            • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateComputeNodeGroup

      default CompletableFuture<UpdateComputeNodeGroupResponse> updateComputeNodeGroup(Consumer<UpdateComputeNodeGroupRequest.Builder> updateComputeNodeGroupRequest)

      Updates a compute node group. You can update many of the fields related to your compute node group including the configurations for networking, compute nodes, and settings specific to your scheduler (such as Slurm).


      This is a convenience which creates an instance of the UpdateComputeNodeGroupRequest.Builder avoiding the need to create one manually via UpdateComputeNodeGroupRequest.builder()

      Parameters:
      updateComputeNodeGroupRequest - A Consumer that will call methods on UpdateComputeNodeGroupRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateComputeNodeGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.

            • 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

            • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateQueue

      default CompletableFuture<UpdateQueueResponse> updateQueue(UpdateQueueRequest updateQueueRequest)

      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.

      Parameters:
      updateQueueRequest -
      Returns:
      A Java Future containing the result of the UpdateQueue operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.

            • 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

            • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateQueue

      default CompletableFuture<UpdateQueueResponse> updateQueue(Consumer<UpdateQueueRequest.Builder> updateQueueRequest)

      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 a convenience which creates an instance of the UpdateQueueRequest.Builder avoiding the need to create one manually via UpdateQueueRequest.builder()

      Parameters:
      updateQueueRequest - A Consumer that will call methods on UpdateQueueRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateQueue operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • 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.

          • 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.

            • 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

            • InternalServerException Amazon Web Services PCS can't process your request right now. Try again later.
            • 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.

              • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
              • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
              • PcsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default PcsServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static PcsAsyncClient create()
      Create a PcsAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      static PcsAsyncClientBuilder builder()
      Create a builder that can be used to configure and create a PcsAsyncClient.