Interface ComputeOptimizerAutomationAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionassociateAccounts(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.associateAccounts(AssociateAccountsRequest associateAccountsRequest) Associates one or more member accounts with your organization's management account, enabling centralized implementation of optimization actions across those accounts.builder()Create a builder that can be used to configure and create aComputeOptimizerAutomationAsyncClient.create()Create aComputeOptimizerAutomationAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createAutomationRule(Consumer<CreateAutomationRuleRequest.Builder> createAutomationRuleRequest) Creates a new automation rule to apply recommended actions to resources based on specified criteria.createAutomationRule(CreateAutomationRuleRequest createAutomationRuleRequest) Creates a new automation rule to apply recommended actions to resources based on specified criteria.deleteAutomationRule(Consumer<DeleteAutomationRuleRequest.Builder> deleteAutomationRuleRequest) Deletes an existing automation rule.deleteAutomationRule(DeleteAutomationRuleRequest deleteAutomationRuleRequest) Deletes an existing automation rule.disassociateAccounts(Consumer<DisassociateAccountsRequest.Builder> disassociateAccountsRequest) Disassociates member accounts from your organization's management account, removing centralized automation capabilities.disassociateAccounts(DisassociateAccountsRequest disassociateAccountsRequest) Disassociates member accounts from your organization's management account, removing centralized automation capabilities.getAutomationEvent(Consumer<GetAutomationEventRequest.Builder> getAutomationEventRequest) Retrieves details about a specific automation event.getAutomationEvent(GetAutomationEventRequest getAutomationEventRequest) Retrieves details about a specific automation event.getAutomationRule(Consumer<GetAutomationRuleRequest.Builder> getAutomationRuleRequest) Retrieves details about a specific automation rule.getAutomationRule(GetAutomationRuleRequest getAutomationRuleRequest) Retrieves details about a specific automation rule.getEnrollmentConfiguration(Consumer<GetEnrollmentConfigurationRequest.Builder> getEnrollmentConfigurationRequest) Retrieves the current enrollment configuration for Compute Optimizer Automation.getEnrollmentConfiguration(GetEnrollmentConfigurationRequest getEnrollmentConfigurationRequest) Retrieves the current enrollment configuration for Compute Optimizer Automation.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.default CompletableFuture<ListAccountsResponse> listAccounts(ListAccountsRequest listAccountsRequest) Lists the accounts in your organization that are enrolled in Compute Optimizer and whether they have enabled Automation.default ListAccountsPublisherlistAccountsPaginator(Consumer<ListAccountsRequest.Builder> listAccountsRequest) This is a variant oflistAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest)operation.default ListAccountsPublisherlistAccountsPaginator(ListAccountsRequest listAccountsRequest) This is a variant oflistAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest)operation.listAutomationEvents(Consumer<ListAutomationEventsRequest.Builder> listAutomationEventsRequest) Lists automation events based on specified filters.listAutomationEvents(ListAutomationEventsRequest listAutomationEventsRequest) Lists automation events based on specified filters.default ListAutomationEventsPublisherlistAutomationEventsPaginator(Consumer<ListAutomationEventsRequest.Builder> listAutomationEventsRequest) This is a variant oflistAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest)operation.default ListAutomationEventsPublisherlistAutomationEventsPaginator(ListAutomationEventsRequest listAutomationEventsRequest) This is a variant oflistAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest)operation.listAutomationEventSteps(Consumer<ListAutomationEventStepsRequest.Builder> listAutomationEventStepsRequest) Lists the steps for a specific automation event.listAutomationEventSteps(ListAutomationEventStepsRequest listAutomationEventStepsRequest) Lists the steps for a specific automation event.listAutomationEventStepsPaginator(Consumer<ListAutomationEventStepsRequest.Builder> listAutomationEventStepsRequest) This is a variant oflistAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest)operation.listAutomationEventStepsPaginator(ListAutomationEventStepsRequest listAutomationEventStepsRequest) This is a variant oflistAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest)operation.listAutomationEventSummaries(Consumer<ListAutomationEventSummariesRequest.Builder> listAutomationEventSummariesRequest) Provides a summary of automation events based on specified filters.listAutomationEventSummaries(ListAutomationEventSummariesRequest listAutomationEventSummariesRequest) Provides a summary of automation events based on specified filters.listAutomationEventSummariesPaginator(Consumer<ListAutomationEventSummariesRequest.Builder> listAutomationEventSummariesRequest) listAutomationEventSummariesPaginator(ListAutomationEventSummariesRequest listAutomationEventSummariesRequest) listAutomationRulePreview(Consumer<ListAutomationRulePreviewRequest.Builder> listAutomationRulePreviewRequest) Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.listAutomationRulePreview(ListAutomationRulePreviewRequest listAutomationRulePreviewRequest) Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.listAutomationRulePreviewPaginator(Consumer<ListAutomationRulePreviewRequest.Builder> listAutomationRulePreviewRequest) This is a variant oflistAutomationRulePreview(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewRequest)operation.listAutomationRulePreviewPaginator(ListAutomationRulePreviewRequest listAutomationRulePreviewRequest) This is a variant oflistAutomationRulePreview(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewRequest)operation.listAutomationRulePreviewSummaries(Consumer<ListAutomationRulePreviewSummariesRequest.Builder> listAutomationRulePreviewSummariesRequest) Returns a summary of the recommended actions that match your rule preview configuration and criteria.listAutomationRulePreviewSummaries(ListAutomationRulePreviewSummariesRequest listAutomationRulePreviewSummariesRequest) Returns a summary of the recommended actions that match your rule preview configuration and criteria.listAutomationRulePreviewSummariesPaginator(Consumer<ListAutomationRulePreviewSummariesRequest.Builder> listAutomationRulePreviewSummariesRequest) listAutomationRulePreviewSummariesPaginator(ListAutomationRulePreviewSummariesRequest listAutomationRulePreviewSummariesRequest) listAutomationRules(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest) Lists the automation rules that match specified filters.listAutomationRules(ListAutomationRulesRequest listAutomationRulesRequest) Lists the automation rules that match specified filters.default ListAutomationRulesPublisherlistAutomationRulesPaginator(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest) This is a variant oflistAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest)operation.default ListAutomationRulesPublisherlistAutomationRulesPaginator(ListAutomationRulesRequest listAutomationRulesRequest) This is a variant oflistAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest)operation.listRecommendedActions(Consumer<ListRecommendedActionsRequest.Builder> listRecommendedActionsRequest) Lists the recommended actions based that match specified filters.listRecommendedActions(ListRecommendedActionsRequest listRecommendedActionsRequest) Lists the recommended actions based that match specified filters.default ListRecommendedActionsPublisherlistRecommendedActionsPaginator(Consumer<ListRecommendedActionsRequest.Builder> listRecommendedActionsRequest) This is a variant oflistRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest)operation.default ListRecommendedActionsPublisherlistRecommendedActionsPaginator(ListRecommendedActionsRequest listRecommendedActionsRequest) This is a variant oflistRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest)operation.listRecommendedActionSummaries(Consumer<ListRecommendedActionSummariesRequest.Builder> listRecommendedActionSummariesRequest) Provides a summary of recommended actions based on specified filters.listRecommendedActionSummaries(ListRecommendedActionSummariesRequest listRecommendedActionSummariesRequest) Provides a summary of recommended actions based on specified filters.listRecommendedActionSummariesPaginator(Consumer<ListRecommendedActionSummariesRequest.Builder> listRecommendedActionSummariesRequest) listRecommendedActionSummariesPaginator(ListRecommendedActionSummariesRequest listRecommendedActionSummariesRequest) listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for a specified resource.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for a specified resource.rollbackAutomationEvent(Consumer<RollbackAutomationEventRequest.Builder> rollbackAutomationEventRequest) Initiates a rollback for a completed automation event.rollbackAutomationEvent(RollbackAutomationEventRequest rollbackAutomationEventRequest) Initiates a rollback for a completed automation event.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartAutomationEvent(Consumer<StartAutomationEventRequest.Builder> startAutomationEventRequest) Initiates a one-time, on-demand automation for the specified recommended action.startAutomationEvent(StartAutomationEventRequest startAutomationEventRequest) Initiates a one-time, on-demand automation for the specified recommended action.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to the specified resource.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds tags to the specified resource.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the specified resource.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from the specified resource.updateAutomationRule(Consumer<UpdateAutomationRuleRequest.Builder> updateAutomationRuleRequest) Updates an existing automation rule.updateAutomationRule(UpdateAutomationRuleRequest updateAutomationRuleRequest) Updates an existing automation rule.updateEnrollmentConfiguration(Consumer<UpdateEnrollmentConfigurationRequest.Builder> updateEnrollmentConfigurationRequest) Updates your account’s Compute Optimizer Automation enrollment configuration.updateEnrollmentConfiguration(UpdateEnrollmentConfigurationRequest updateEnrollmentConfigurationRequest) Updates your account’s Compute Optimizer Automation enrollment configuration.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
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 invokeThrowable.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.Builderavoiding the need to create one manually viaAssociateAccountsRequest.builder()- Parameters:
associateAccountsRequest- AConsumerthat will call methods onAssociateAccountsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaCreateAutomationRuleRequest.builder()- Parameters:
createAutomationRuleRequest- AConsumerthat will call methods onCreateAutomationRuleRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDeleteAutomationRuleRequest.builder()- Parameters:
deleteAutomationRuleRequest- AConsumerthat will call methods onDeleteAutomationRuleRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDisassociateAccountsRequest.builder()- Parameters:
disassociateAccountsRequest- AConsumerthat will call methods onDisassociateAccountsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetAutomationEventRequest.builder()- Parameters:
getAutomationEventRequest- AConsumerthat will call methods onGetAutomationEventRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetAutomationRuleRequest.builder()- Parameters:
getAutomationRuleRequest- AConsumerthat will call methods onGetAutomationRuleRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetEnrollmentConfigurationRequest.builder()- Parameters:
getEnrollmentConfigurationRequest- AConsumerthat will call methods onGetEnrollmentConfigurationRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListAccountsRequest.builder()- Parameters:
listAccountsRequest- AConsumerthat will call methods onListAccountsRequest.Builderto 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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsPublisher publisher = client.listAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsPublisher publisher = client.listAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListAccountsRequest.builder()- Parameters:
listAccountsRequest- AConsumerthat will call methods onListAccountsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListAutomationEventStepsRequest.builder()- Parameters:
listAutomationEventStepsRequest- AConsumerthat will call methods onListAutomationEventStepsRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsPublisher publisher = client.listAutomationEventStepsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsPublisher publisher = client.listAutomationEventStepsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListAutomationEventStepsRequest.builder()- Parameters:
listAutomationEventStepsRequest- AConsumerthat will call methods onListAutomationEventStepsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListAutomationEventSummariesRequest.builder()- Parameters:
listAutomationEventSummariesRequest- AConsumerthat will call methods onListAutomationEventSummariesRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesPublisher publisher = client.listAutomationEventSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesPublisher publisher = client.listAutomationEventSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListAutomationEventSummariesRequest.builder()- Parameters:
listAutomationEventSummariesRequest- AConsumerthat will call methods onListAutomationEventSummariesRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListAutomationEventsRequest.builder()- Parameters:
listAutomationEventsRequest- AConsumerthat will call methods onListAutomationEventsRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsPublisher publisher = client.listAutomationEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsPublisher publisher = client.listAutomationEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListAutomationEventsRequest.builder()- Parameters:
listAutomationEventsRequest- AConsumerthat will call methods onListAutomationEventsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListAutomationRulePreviewRequest.builder()- Parameters:
listAutomationRulePreviewRequest- AConsumerthat will call methods onListAutomationRulePreviewRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewPublisher publisher = client.listAutomationRulePreviewPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewPublisher publisher = client.listAutomationRulePreviewPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListAutomationRulePreviewRequest.builder()- Parameters:
listAutomationRulePreviewRequest- AConsumerthat will call methods onListAutomationRulePreviewRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListAutomationRulePreviewSummariesRequest.builder()- Parameters:
listAutomationRulePreviewSummariesRequest- AConsumerthat will call methods onListAutomationRulePreviewSummariesRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesPublisher publisher = client.listAutomationRulePreviewSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesPublisher publisher = client.listAutomationRulePreviewSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListAutomationRulePreviewSummariesRequest.builder()- Parameters:
listAutomationRulePreviewSummariesRequest- AConsumerthat will call methods onListAutomationRulePreviewSummariesRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListAutomationRulesRequest.builder()- Parameters:
listAutomationRulesRequest- AConsumerthat will call methods onListAutomationRulesRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesPublisher publisher = client.listAutomationRulesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesPublisher publisher = client.listAutomationRulesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListAutomationRulesRequest.builder()- Parameters:
listAutomationRulesRequest- AConsumerthat will call methods onListAutomationRulesRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListRecommendedActionSummariesRequest.builder()- Parameters:
listRecommendedActionSummariesRequest- AConsumerthat will call methods onListRecommendedActionSummariesRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesPublisher publisher = client.listRecommendedActionSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesPublisher publisher = client.listRecommendedActionSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListRecommendedActionSummariesRequest.builder()- Parameters:
listRecommendedActionSummariesRequest- AConsumerthat will call methods onListRecommendedActionSummariesRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListRecommendedActionsRequest.builder()- Parameters:
listRecommendedActionsRequest- AConsumerthat will call methods onListRecommendedActionsRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsPublisher publisher = client.listRecommendedActionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsPublisher publisher = client.listRecommendedActionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListRecommendedActionsRequest.builder()- Parameters:
listRecommendedActionsRequest- AConsumerthat will call methods onListRecommendedActionsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaRollbackAutomationEventRequest.builder()- Parameters:
rollbackAutomationEventRequest- AConsumerthat will call methods onRollbackAutomationEventRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaStartAutomationEventRequest.builder()- Parameters:
startAutomationEventRequest- AConsumerthat will call methods onStartAutomationEventRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateAutomationRuleRequest.builder()- Parameters:
updateAutomationRuleRequest- AConsumerthat will call methods onUpdateAutomationRuleRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateEnrollmentConfigurationRequest.builder()- Parameters:
updateEnrollmentConfigurationRequest- AConsumerthat will call methods onUpdateEnrollmentConfigurationRequest.Builderto 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 invokeThrowable.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
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aComputeOptimizerAutomationAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aComputeOptimizerAutomationAsyncClient.
-