Interface ComputeOptimizerAutomationAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface ComputeOptimizerAutomationAsyncClient extends AwsClient
Service client for accessing Compute Optimizer Automation 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.

Automation is a feature within Amazon Web Services Compute Optimizer that enables you to apply optimization recommendations to your Amazon Web Services resources, reducing costs and improving performance. You can apply recommended actions directly or create automation rules that implement recommendations on a recurring schedule when they match your specified criteria. With automation rules, set criteria such as Amazon Web Services Region and Resource Tags to target specific geographies and workloads. Configure rules to run daily, weekly, or monthly, and Compute Optimizer continuously evaluates new recommendations against your criteria. Track automation events over time, examine detailed step history, estimate savings achieved, and reverse actions directly from Compute Optimizer when needed.

  • Field Details

  • Method Details

    • associateAccounts

      default CompletableFuture<AssociateAccountsResponse> associateAccounts(AssociateAccountsRequest associateAccountsRequest)

      Associates one or more member accounts with your organization's management account, enabling centralized implementation of optimization actions across those accounts. Once associated, the management account (or a delegated administrator) can apply recommended actions to the member account. When you associate a member account, its organization rule mode is automatically set to "Any allowed," which permits the management account to create Automation rules that automatically apply actions to that account. If the member account has not previously enabled the Automation feature, the association process automatically enables it.

      Only the management account or a delegated administrator can perform this action.

      Parameters:
      associateAccountsRequest -
      Returns:
      A Java Future containing the result of the AssociateAccounts 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • associateAccounts

      default CompletableFuture<AssociateAccountsResponse> associateAccounts(Consumer<AssociateAccountsRequest.Builder> associateAccountsRequest)

      Associates one or more member accounts with your organization's management account, enabling centralized implementation of optimization actions across those accounts. Once associated, the management account (or a delegated administrator) can apply recommended actions to the member account. When you associate a member account, its organization rule mode is automatically set to "Any allowed," which permits the management account to create Automation rules that automatically apply actions to that account. If the member account has not previously enabled the Automation feature, the association process automatically enables it.

      Only the management account or a delegated administrator can perform this action.


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

      Parameters:
      associateAccountsRequest - A Consumer that will call methods on AssociateAccountsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the AssociateAccounts 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createAutomationRule

      default CompletableFuture<CreateAutomationRuleResponse> createAutomationRule(CreateAutomationRuleRequest createAutomationRuleRequest)

      Creates a new automation rule to apply recommended actions to resources based on specified criteria.

      Parameters:
      createAutomationRuleRequest -
      Returns:
      A Java Future containing the result of the CreateAutomationRule 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • ServiceQuotaExceededException The request would exceed service quotas.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createAutomationRule

      default CompletableFuture<CreateAutomationRuleResponse> createAutomationRule(Consumer<CreateAutomationRuleRequest.Builder> createAutomationRuleRequest)

      Creates a new automation rule to apply recommended actions to resources based on specified criteria.


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

      Parameters:
      createAutomationRuleRequest - A Consumer that will call methods on CreateAutomationRuleRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateAutomationRule 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • ServiceQuotaExceededException The request would exceed service quotas.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteAutomationRule

      default CompletableFuture<DeleteAutomationRuleResponse> deleteAutomationRule(DeleteAutomationRuleRequest deleteAutomationRuleRequest)

      Deletes an existing automation rule.

      Parameters:
      deleteAutomationRuleRequest -
      Returns:
      A Java Future containing the result of the DeleteAutomationRule 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteAutomationRule

      default CompletableFuture<DeleteAutomationRuleResponse> deleteAutomationRule(Consumer<DeleteAutomationRuleRequest.Builder> deleteAutomationRuleRequest)

      Deletes an existing automation rule.


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

      Parameters:
      deleteAutomationRuleRequest - A Consumer that will call methods on DeleteAutomationRuleRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteAutomationRule 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateAccounts

      default CompletableFuture<DisassociateAccountsResponse> disassociateAccounts(DisassociateAccountsRequest disassociateAccountsRequest)

      Disassociates member accounts from your organization's management account, removing centralized automation capabilities. Once disassociated, organization rules no longer apply to the member account, and the management account (or delegated administrator) cannot create Automation rules for that account.

      Only the management account or a delegated administrator can perform this action.

      Parameters:
      disassociateAccountsRequest -
      Returns:
      A Java Future containing the result of the DisassociateAccounts 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateAccounts

      default CompletableFuture<DisassociateAccountsResponse> disassociateAccounts(Consumer<DisassociateAccountsRequest.Builder> disassociateAccountsRequest)

      Disassociates member accounts from your organization's management account, removing centralized automation capabilities. Once disassociated, organization rules no longer apply to the member account, and the management account (or delegated administrator) cannot create Automation rules for that account.

      Only the management account or a delegated administrator can perform this action.


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

      Parameters:
      disassociateAccountsRequest - A Consumer that will call methods on DisassociateAccountsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DisassociateAccounts 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAutomationEvent

      default CompletableFuture<GetAutomationEventResponse> getAutomationEvent(GetAutomationEventRequest getAutomationEventRequest)

      Retrieves details about a specific automation event.

      Parameters:
      getAutomationEventRequest -
      Returns:
      A Java Future containing the result of the GetAutomationEvent 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAutomationEvent

      default CompletableFuture<GetAutomationEventResponse> getAutomationEvent(Consumer<GetAutomationEventRequest.Builder> getAutomationEventRequest)

      Retrieves details about a specific automation event.


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

      Parameters:
      getAutomationEventRequest - A Consumer that will call methods on GetAutomationEventRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetAutomationEvent 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAutomationRule

      default CompletableFuture<GetAutomationRuleResponse> getAutomationRule(GetAutomationRuleRequest getAutomationRuleRequest)

      Retrieves details about a specific automation rule.

      Parameters:
      getAutomationRuleRequest -
      Returns:
      A Java Future containing the result of the GetAutomationRule 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAutomationRule

      default CompletableFuture<GetAutomationRuleResponse> getAutomationRule(Consumer<GetAutomationRuleRequest.Builder> getAutomationRuleRequest)

      Retrieves details about a specific automation rule.


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

      Parameters:
      getAutomationRuleRequest - A Consumer that will call methods on GetAutomationRuleRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetAutomationRule 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getEnrollmentConfiguration

      default CompletableFuture<GetEnrollmentConfigurationResponse> getEnrollmentConfiguration(GetEnrollmentConfigurationRequest getEnrollmentConfigurationRequest)

      Retrieves the current enrollment configuration for Compute Optimizer Automation.

      Parameters:
      getEnrollmentConfigurationRequest -
      Returns:
      A Java Future containing the result of the GetEnrollmentConfiguration 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getEnrollmentConfiguration

      default CompletableFuture<GetEnrollmentConfigurationResponse> getEnrollmentConfiguration(Consumer<GetEnrollmentConfigurationRequest.Builder> getEnrollmentConfigurationRequest)

      Retrieves the current enrollment configuration for Compute Optimizer Automation.


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

      Parameters:
      getEnrollmentConfigurationRequest - A Consumer that will call methods on GetEnrollmentConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetEnrollmentConfiguration 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAccounts

      default CompletableFuture<ListAccountsResponse> listAccounts(ListAccountsRequest listAccountsRequest)

      Lists the accounts in your organization that are enrolled in Compute Optimizer and whether they have enabled Automation.

      Only the management account or a delegated administrator can perform this action.

      Parameters:
      listAccountsRequest -
      Returns:
      A Java Future containing the result of the ListAccounts 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAccounts

      default CompletableFuture<ListAccountsResponse> listAccounts(Consumer<ListAccountsRequest.Builder> listAccountsRequest)

      Lists the accounts in your organization that are enrolled in Compute Optimizer and whether they have enabled Automation.

      Only the management account or a delegated administrator can perform this action.


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

      Parameters:
      listAccountsRequest - A Consumer that will call methods on ListAccountsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAccounts 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAccountsPaginator

      default ListAccountsPublisher listAccountsPaginator(ListAccountsRequest listAccountsRequest)

      This is a variant of listAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest) 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.computeoptimizerautomation.paginators.ListAccountsPublisher publisher = client.listAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsPublisher publisher = client.listAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsResponse 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 listAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest) operation.

      Parameters:
      listAccountsRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAccountsPaginator

      default ListAccountsPublisher listAccountsPaginator(Consumer<ListAccountsRequest.Builder> listAccountsRequest)

      This is a variant of listAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest) 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.computeoptimizerautomation.paginators.ListAccountsPublisher publisher = client.listAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsPublisher publisher = client.listAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsResponse 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 listAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest) operation.


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

      Parameters:
      listAccountsRequest - A Consumer that will call methods on ListAccountsRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventSteps

      default CompletableFuture<ListAutomationEventStepsResponse> listAutomationEventSteps(ListAutomationEventStepsRequest listAutomationEventStepsRequest)

      Lists the steps for a specific automation event. You can only list steps for events created within the past year.

      Parameters:
      listAutomationEventStepsRequest -
      Returns:
      A Java Future containing the result of the ListAutomationEventSteps 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventSteps

      default CompletableFuture<ListAutomationEventStepsResponse> listAutomationEventSteps(Consumer<ListAutomationEventStepsRequest.Builder> listAutomationEventStepsRequest)

      Lists the steps for a specific automation event. You can only list steps for events created within the past year.


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

      Parameters:
      listAutomationEventStepsRequest - A Consumer that will call methods on ListAutomationEventStepsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAutomationEventSteps 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventStepsPaginator

      default ListAutomationEventStepsPublisher listAutomationEventStepsPaginator(ListAutomationEventStepsRequest listAutomationEventStepsRequest)

      This is a variant of listAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest) 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.computeoptimizerautomation.paginators.ListAutomationEventStepsPublisher publisher = client.listAutomationEventStepsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsPublisher publisher = client.listAutomationEventStepsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsResponse 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 listAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest) operation.

      Parameters:
      listAutomationEventStepsRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventStepsPaginator

      default ListAutomationEventStepsPublisher listAutomationEventStepsPaginator(Consumer<ListAutomationEventStepsRequest.Builder> listAutomationEventStepsRequest)

      This is a variant of listAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest) 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.computeoptimizerautomation.paginators.ListAutomationEventStepsPublisher publisher = client.listAutomationEventStepsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsPublisher publisher = client.listAutomationEventStepsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsResponse 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 listAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest) operation.


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

      Parameters:
      listAutomationEventStepsRequest - A Consumer that will call methods on ListAutomationEventStepsRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventSummaries

      default CompletableFuture<ListAutomationEventSummariesResponse> listAutomationEventSummaries(ListAutomationEventSummariesRequest listAutomationEventSummariesRequest)

      Provides a summary of automation events based on specified filters. Only events created within the past year will be included in the summary.

      Parameters:
      listAutomationEventSummariesRequest -
      Returns:
      A Java Future containing the result of the ListAutomationEventSummaries 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventSummaries

      default CompletableFuture<ListAutomationEventSummariesResponse> listAutomationEventSummaries(Consumer<ListAutomationEventSummariesRequest.Builder> listAutomationEventSummariesRequest)

      Provides a summary of automation events based on specified filters. Only events created within the past year will be included in the summary.


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

      Parameters:
      listAutomationEventSummariesRequest - A Consumer that will call methods on ListAutomationEventSummariesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAutomationEventSummaries 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventSummariesPaginator

      default ListAutomationEventSummariesPublisher listAutomationEventSummariesPaginator(ListAutomationEventSummariesRequest listAutomationEventSummariesRequest)

      This is a variant of listAutomationEventSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesRequest) 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.computeoptimizerautomation.paginators.ListAutomationEventSummariesPublisher publisher = client.listAutomationEventSummariesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesPublisher publisher = client.listAutomationEventSummariesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesResponse 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 listAutomationEventSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesRequest) operation.

      Parameters:
      listAutomationEventSummariesRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventSummariesPaginator

      default ListAutomationEventSummariesPublisher listAutomationEventSummariesPaginator(Consumer<ListAutomationEventSummariesRequest.Builder> listAutomationEventSummariesRequest)

      This is a variant of listAutomationEventSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesRequest) 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.computeoptimizerautomation.paginators.ListAutomationEventSummariesPublisher publisher = client.listAutomationEventSummariesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesPublisher publisher = client.listAutomationEventSummariesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesResponse 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 listAutomationEventSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesRequest) operation.


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

      Parameters:
      listAutomationEventSummariesRequest - A Consumer that will call methods on ListAutomationEventSummariesRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEvents

      default CompletableFuture<ListAutomationEventsResponse> listAutomationEvents(ListAutomationEventsRequest listAutomationEventsRequest)

      Lists automation events based on specified filters. You can retrieve events that were created within the past year.

      Parameters:
      listAutomationEventsRequest -
      Returns:
      A Java Future containing the result of the ListAutomationEvents 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEvents

      default CompletableFuture<ListAutomationEventsResponse> listAutomationEvents(Consumer<ListAutomationEventsRequest.Builder> listAutomationEventsRequest)

      Lists automation events based on specified filters. You can retrieve events that were created within the past year.


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

      Parameters:
      listAutomationEventsRequest - A Consumer that will call methods on ListAutomationEventsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAutomationEvents 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventsPaginator

      default ListAutomationEventsPublisher listAutomationEventsPaginator(ListAutomationEventsRequest listAutomationEventsRequest)

      This is a variant of listAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest) 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.computeoptimizerautomation.paginators.ListAutomationEventsPublisher publisher = client.listAutomationEventsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsPublisher publisher = client.listAutomationEventsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsResponse 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 listAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest) operation.

      Parameters:
      listAutomationEventsRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationEventsPaginator

      default ListAutomationEventsPublisher listAutomationEventsPaginator(Consumer<ListAutomationEventsRequest.Builder> listAutomationEventsRequest)

      This is a variant of listAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest) 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.computeoptimizerautomation.paginators.ListAutomationEventsPublisher publisher = client.listAutomationEventsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsPublisher publisher = client.listAutomationEventsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsResponse 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 listAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest) operation.


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

      Parameters:
      listAutomationEventsRequest - A Consumer that will call methods on ListAutomationEventsRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulePreview

      default CompletableFuture<ListAutomationRulePreviewResponse> listAutomationRulePreview(ListAutomationRulePreviewRequest listAutomationRulePreviewRequest)

      Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.

      Parameters:
      listAutomationRulePreviewRequest -
      Returns:
      A Java Future containing the result of the ListAutomationRulePreview 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulePreview

      default CompletableFuture<ListAutomationRulePreviewResponse> listAutomationRulePreview(Consumer<ListAutomationRulePreviewRequest.Builder> listAutomationRulePreviewRequest)

      Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.


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

      Parameters:
      listAutomationRulePreviewRequest - A Consumer that will call methods on ListAutomationRulePreviewRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAutomationRulePreview 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulePreviewPaginator

      default ListAutomationRulePreviewPublisher listAutomationRulePreviewPaginator(ListAutomationRulePreviewRequest listAutomationRulePreviewRequest)

      This is a variant of listAutomationRulePreview(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewRequest) 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.computeoptimizerautomation.paginators.ListAutomationRulePreviewPublisher publisher = client.listAutomationRulePreviewPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewPublisher publisher = client.listAutomationRulePreviewPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewResponse 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 listAutomationRulePreview(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewRequest) operation.

      Parameters:
      listAutomationRulePreviewRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulePreviewPaginator

      default ListAutomationRulePreviewPublisher listAutomationRulePreviewPaginator(Consumer<ListAutomationRulePreviewRequest.Builder> listAutomationRulePreviewRequest)

      This is a variant of listAutomationRulePreview(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewRequest) 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.computeoptimizerautomation.paginators.ListAutomationRulePreviewPublisher publisher = client.listAutomationRulePreviewPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewPublisher publisher = client.listAutomationRulePreviewPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewResponse 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 listAutomationRulePreview(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewRequest) operation.


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

      Parameters:
      listAutomationRulePreviewRequest - A Consumer that will call methods on ListAutomationRulePreviewRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulePreviewSummaries

      default CompletableFuture<ListAutomationRulePreviewSummariesResponse> listAutomationRulePreviewSummaries(ListAutomationRulePreviewSummariesRequest listAutomationRulePreviewSummariesRequest)

      Returns a summary of the recommended actions that match your rule preview configuration and criteria.

      Parameters:
      listAutomationRulePreviewSummariesRequest -
      Returns:
      A Java Future containing the result of the ListAutomationRulePreviewSummaries 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulePreviewSummaries

      default CompletableFuture<ListAutomationRulePreviewSummariesResponse> listAutomationRulePreviewSummaries(Consumer<ListAutomationRulePreviewSummariesRequest.Builder> listAutomationRulePreviewSummariesRequest)

      Returns a summary of the recommended actions that match your rule preview configuration and criteria.


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

      Parameters:
      listAutomationRulePreviewSummariesRequest - A Consumer that will call methods on ListAutomationRulePreviewSummariesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAutomationRulePreviewSummaries 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulePreviewSummariesPaginator

      default ListAutomationRulePreviewSummariesPublisher listAutomationRulePreviewSummariesPaginator(ListAutomationRulePreviewSummariesRequest listAutomationRulePreviewSummariesRequest)

      This is a variant of listAutomationRulePreviewSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesRequest) 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.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesPublisher publisher = client.listAutomationRulePreviewSummariesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesPublisher publisher = client.listAutomationRulePreviewSummariesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesResponse 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 listAutomationRulePreviewSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesRequest) operation.

      Parameters:
      listAutomationRulePreviewSummariesRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulePreviewSummariesPaginator

      default ListAutomationRulePreviewSummariesPublisher listAutomationRulePreviewSummariesPaginator(Consumer<ListAutomationRulePreviewSummariesRequest.Builder> listAutomationRulePreviewSummariesRequest)

      This is a variant of listAutomationRulePreviewSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesRequest) 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.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesPublisher publisher = client.listAutomationRulePreviewSummariesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesPublisher publisher = client.listAutomationRulePreviewSummariesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesResponse 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 listAutomationRulePreviewSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesRequest) operation.


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

      Parameters:
      listAutomationRulePreviewSummariesRequest - A Consumer that will call methods on ListAutomationRulePreviewSummariesRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRules

      default CompletableFuture<ListAutomationRulesResponse> listAutomationRules(ListAutomationRulesRequest listAutomationRulesRequest)

      Lists the automation rules that match specified filters.

      Parameters:
      listAutomationRulesRequest -
      Returns:
      A Java Future containing the result of the ListAutomationRules 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRules

      default CompletableFuture<ListAutomationRulesResponse> listAutomationRules(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest)

      Lists the automation rules that match specified filters.


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

      Parameters:
      listAutomationRulesRequest - A Consumer that will call methods on ListAutomationRulesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAutomationRules 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulesPaginator

      default ListAutomationRulesPublisher listAutomationRulesPaginator(ListAutomationRulesRequest listAutomationRulesRequest)

      This is a variant of listAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest) 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.computeoptimizerautomation.paginators.ListAutomationRulesPublisher publisher = client.listAutomationRulesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesPublisher publisher = client.listAutomationRulesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesResponse 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 listAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest) operation.

      Parameters:
      listAutomationRulesRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAutomationRulesPaginator

      default ListAutomationRulesPublisher listAutomationRulesPaginator(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest)

      This is a variant of listAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest) 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.computeoptimizerautomation.paginators.ListAutomationRulesPublisher publisher = client.listAutomationRulesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesPublisher publisher = client.listAutomationRulesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesResponse 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 listAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest) operation.


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

      Parameters:
      listAutomationRulesRequest - A Consumer that will call methods on ListAutomationRulesRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRecommendedActionSummaries

      default CompletableFuture<ListRecommendedActionSummariesResponse> listRecommendedActionSummaries(ListRecommendedActionSummariesRequest listRecommendedActionSummariesRequest)

      Provides a summary of recommended actions based on specified filters.

      Management accounts and delegated administrators can retrieve recommended actions that include associated member accounts. You can associate a member account using AssociateAccounts.

      Parameters:
      listRecommendedActionSummariesRequest -
      Returns:
      A Java Future containing the result of the ListRecommendedActionSummaries 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRecommendedActionSummaries

      default CompletableFuture<ListRecommendedActionSummariesResponse> listRecommendedActionSummaries(Consumer<ListRecommendedActionSummariesRequest.Builder> listRecommendedActionSummariesRequest)

      Provides a summary of recommended actions based on specified filters.

      Management accounts and delegated administrators can retrieve recommended actions that include associated member accounts. You can associate a member account using AssociateAccounts.


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

      Parameters:
      listRecommendedActionSummariesRequest - A Consumer that will call methods on ListRecommendedActionSummariesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListRecommendedActionSummaries 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRecommendedActionSummariesPaginator

      default ListRecommendedActionSummariesPublisher listRecommendedActionSummariesPaginator(ListRecommendedActionSummariesRequest listRecommendedActionSummariesRequest)

      This is a variant of listRecommendedActionSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesRequest) 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.computeoptimizerautomation.paginators.ListRecommendedActionSummariesPublisher publisher = client.listRecommendedActionSummariesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesPublisher publisher = client.listRecommendedActionSummariesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesResponse 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 listRecommendedActionSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesRequest) operation.

      Parameters:
      listRecommendedActionSummariesRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRecommendedActionSummariesPaginator

      default ListRecommendedActionSummariesPublisher listRecommendedActionSummariesPaginator(Consumer<ListRecommendedActionSummariesRequest.Builder> listRecommendedActionSummariesRequest)

      This is a variant of listRecommendedActionSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesRequest) 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.computeoptimizerautomation.paginators.ListRecommendedActionSummariesPublisher publisher = client.listRecommendedActionSummariesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesPublisher publisher = client.listRecommendedActionSummariesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesResponse 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 listRecommendedActionSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesRequest) operation.


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

      Parameters:
      listRecommendedActionSummariesRequest - A Consumer that will call methods on ListRecommendedActionSummariesRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRecommendedActions

      default CompletableFuture<ListRecommendedActionsResponse> listRecommendedActions(ListRecommendedActionsRequest listRecommendedActionsRequest)

      Lists the recommended actions based that match specified filters.

      Management accounts and delegated administrators can retrieve recommended actions that include associated member accounts. You can associate a member account using AssociateAccounts.

      Parameters:
      listRecommendedActionsRequest -
      Returns:
      A Java Future containing the result of the ListRecommendedActions 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRecommendedActions

      default CompletableFuture<ListRecommendedActionsResponse> listRecommendedActions(Consumer<ListRecommendedActionsRequest.Builder> listRecommendedActionsRequest)

      Lists the recommended actions based that match specified filters.

      Management accounts and delegated administrators can retrieve recommended actions that include associated member accounts. You can associate a member account using AssociateAccounts.


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

      Parameters:
      listRecommendedActionsRequest - A Consumer that will call methods on ListRecommendedActionsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListRecommendedActions 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRecommendedActionsPaginator

      default ListRecommendedActionsPublisher listRecommendedActionsPaginator(ListRecommendedActionsRequest listRecommendedActionsRequest)

      This is a variant of listRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest) 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.computeoptimizerautomation.paginators.ListRecommendedActionsPublisher publisher = client.listRecommendedActionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsPublisher publisher = client.listRecommendedActionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsResponse 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 listRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest) operation.

      Parameters:
      listRecommendedActionsRequest -
      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRecommendedActionsPaginator

      default ListRecommendedActionsPublisher listRecommendedActionsPaginator(Consumer<ListRecommendedActionsRequest.Builder> listRecommendedActionsRequest)

      This is a variant of listRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest) 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.computeoptimizerautomation.paginators.ListRecommendedActionsPublisher publisher = client.listRecommendedActionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsPublisher publisher = client.listRecommendedActionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsResponse 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 listRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest) operation.


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

      Parameters:
      listRecommendedActionsRequest - A Consumer that will call methods on ListRecommendedActionsRequest.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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException 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)

      Lists the tags for a specified 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException 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)

      Lists the tags for a specified 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • rollbackAutomationEvent

      default CompletableFuture<RollbackAutomationEventResponse> rollbackAutomationEvent(RollbackAutomationEventRequest rollbackAutomationEventRequest)

      Initiates a rollback for a completed automation event.

      Management accounts and delegated administrators can only initiate a rollback for events belonging to associated member accounts. You can associate a member account using AssociateAccounts.

      Parameters:
      rollbackAutomationEventRequest -
      Returns:
      A Java Future containing the result of the RollbackAutomationEvent 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The specified resource was not found.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • rollbackAutomationEvent

      default CompletableFuture<RollbackAutomationEventResponse> rollbackAutomationEvent(Consumer<RollbackAutomationEventRequest.Builder> rollbackAutomationEventRequest)

      Initiates a rollback for a completed automation event.

      Management accounts and delegated administrators can only initiate a rollback for events belonging to associated member accounts. You can associate a member account using AssociateAccounts.


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

      Parameters:
      rollbackAutomationEventRequest - A Consumer that will call methods on RollbackAutomationEventRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the RollbackAutomationEvent 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • ResourceNotFoundException The specified resource was not found.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startAutomationEvent

      default CompletableFuture<StartAutomationEventResponse> startAutomationEvent(StartAutomationEventRequest startAutomationEventRequest)

      Initiates a one-time, on-demand automation for the specified recommended action.

      Management accounts and delegated administrators can only initiate recommended actions for associated member accounts. You can associate a member account using AssociateAccounts.

      Parameters:
      startAutomationEventRequest -
      Returns:
      A Java Future containing the result of the StartAutomationEvent 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • ServiceQuotaExceededException The request would exceed service quotas.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startAutomationEvent

      default CompletableFuture<StartAutomationEventResponse> startAutomationEvent(Consumer<StartAutomationEventRequest.Builder> startAutomationEventRequest)

      Initiates a one-time, on-demand automation for the specified recommended action.

      Management accounts and delegated administrators can only initiate recommended actions for associated member accounts. You can associate a member account using AssociateAccounts.


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

      Parameters:
      startAutomationEventRequest - A Consumer that will call methods on StartAutomationEventRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartAutomationEvent 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ResourceNotFoundException The specified resource was not found.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • ServiceQuotaExceededException The request would exceed service quotas.
      • 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.
      • ComputeOptimizerAutomationException 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 tags to the specified resource.

      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException 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 tags to the specified resource.


      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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException 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)

      Removes tags from the specified 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException 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)

      Removes tags from the specified 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateAutomationRule

      default CompletableFuture<UpdateAutomationRuleResponse> updateAutomationRule(UpdateAutomationRuleRequest updateAutomationRuleRequest)

      Updates an existing automation rule.

      Parameters:
      updateAutomationRuleRequest -
      Returns:
      A Java Future containing the result of the UpdateAutomationRule 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateAutomationRule

      default CompletableFuture<UpdateAutomationRuleResponse> updateAutomationRule(Consumer<UpdateAutomationRuleRequest.Builder> updateAutomationRuleRequest)

      Updates an existing automation rule.


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

      Parameters:
      updateAutomationRuleRequest - A Consumer that will call methods on UpdateAutomationRuleRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateAutomationRule 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateEnrollmentConfiguration

      default CompletableFuture<UpdateEnrollmentConfigurationResponse> updateEnrollmentConfiguration(UpdateEnrollmentConfigurationRequest updateEnrollmentConfigurationRequest)

      Updates your account’s Compute Optimizer Automation enrollment configuration.

      Parameters:
      updateEnrollmentConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateEnrollmentConfiguration 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateEnrollmentConfiguration

      default CompletableFuture<UpdateEnrollmentConfigurationResponse> updateEnrollmentConfiguration(Consumer<UpdateEnrollmentConfigurationRequest.Builder> updateEnrollmentConfigurationRequest)

      Updates your account’s Compute Optimizer Automation enrollment configuration.


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

      Parameters:
      updateEnrollmentConfigurationRequest - A Consumer that will call methods on UpdateEnrollmentConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateEnrollmentConfiguration 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.
      • InvalidParameterValueException One or more parameter values are not valid.
      • ForbiddenException You are not authorized to perform this action.
      • OptInRequiredException The account must be opted in to Compute Optimizer Automation before performing this action.
      • IdempotentParameterMismatchException Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
      • ResourceNotFoundException The specified resource was not found.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient permissions to perform this action.
      • InternalServerException An internal error occurred while processing the request.
      • NotManagementAccountException The operation can only be performed by a management account.
      • ServiceUnavailableException The service is temporarily unavailable.
      • IdempotencyTokenInUseException The specified client token is already in use.
      • 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.
      • ComputeOptimizerAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default ComputeOptimizerAutomationServiceClientConfiguration 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

      Create a ComputeOptimizerAutomationAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a ComputeOptimizerAutomationAsyncClient.