Interface ComputeOptimizerAutomationClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.
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 TypeMethodDescriptiondefault AssociateAccountsResponseassociateAccounts(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.default AssociateAccountsResponseassociateAccounts(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 aComputeOptimizerAutomationClient.create()Create aComputeOptimizerAutomationClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateAutomationRuleResponsecreateAutomationRule(Consumer<CreateAutomationRuleRequest.Builder> createAutomationRuleRequest) Creates a new automation rule to apply recommended actions to resources based on specified criteria.default CreateAutomationRuleResponsecreateAutomationRule(CreateAutomationRuleRequest createAutomationRuleRequest) Creates a new automation rule to apply recommended actions to resources based on specified criteria.default DeleteAutomationRuleResponsedeleteAutomationRule(Consumer<DeleteAutomationRuleRequest.Builder> deleteAutomationRuleRequest) Deletes an existing automation rule.default DeleteAutomationRuleResponsedeleteAutomationRule(DeleteAutomationRuleRequest deleteAutomationRuleRequest) Deletes an existing automation rule.default DisassociateAccountsResponsedisassociateAccounts(Consumer<DisassociateAccountsRequest.Builder> disassociateAccountsRequest) Disassociates member accounts from your organization's management account, removing centralized automation capabilities.default DisassociateAccountsResponsedisassociateAccounts(DisassociateAccountsRequest disassociateAccountsRequest) Disassociates member accounts from your organization's management account, removing centralized automation capabilities.default GetAutomationEventResponsegetAutomationEvent(Consumer<GetAutomationEventRequest.Builder> getAutomationEventRequest) Retrieves details about a specific automation event.default GetAutomationEventResponsegetAutomationEvent(GetAutomationEventRequest getAutomationEventRequest) Retrieves details about a specific automation event.default GetAutomationRuleResponsegetAutomationRule(Consumer<GetAutomationRuleRequest.Builder> getAutomationRuleRequest) Retrieves details about a specific automation rule.default GetAutomationRuleResponsegetAutomationRule(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 ListAccountsResponselistAccounts(Consumer<ListAccountsRequest.Builder> listAccountsRequest) Lists the accounts in your organization that are enrolled in Compute Optimizer and whether they have enabled Automation.default ListAccountsResponselistAccounts(ListAccountsRequest listAccountsRequest) Lists the accounts in your organization that are enrolled in Compute Optimizer and whether they have enabled Automation.default ListAccountsIterablelistAccountsPaginator(Consumer<ListAccountsRequest.Builder> listAccountsRequest) This is a variant oflistAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest)operation.default ListAccountsIterablelistAccountsPaginator(ListAccountsRequest listAccountsRequest) This is a variant oflistAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest)operation.default ListAutomationEventsResponselistAutomationEvents(Consumer<ListAutomationEventsRequest.Builder> listAutomationEventsRequest) Lists automation events based on specified filters.default ListAutomationEventsResponselistAutomationEvents(ListAutomationEventsRequest listAutomationEventsRequest) Lists automation events based on specified filters.default ListAutomationEventsIterablelistAutomationEventsPaginator(Consumer<ListAutomationEventsRequest.Builder> listAutomationEventsRequest) This is a variant oflistAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest)operation.default ListAutomationEventsIterablelistAutomationEventsPaginator(ListAutomationEventsRequest listAutomationEventsRequest) This is a variant oflistAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest)operation.default ListAutomationEventStepsResponselistAutomationEventSteps(Consumer<ListAutomationEventStepsRequest.Builder> listAutomationEventStepsRequest) Lists the steps for a specific automation event.default ListAutomationEventStepsResponselistAutomationEventSteps(ListAutomationEventStepsRequest listAutomationEventStepsRequest) Lists the steps for a specific automation event.default ListAutomationEventStepsIterablelistAutomationEventStepsPaginator(Consumer<ListAutomationEventStepsRequest.Builder> listAutomationEventStepsRequest) This is a variant oflistAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest)operation.default ListAutomationEventStepsIterablelistAutomationEventStepsPaginator(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) default ListAutomationRulesResponselistAutomationRules(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest) Lists the automation rules that match specified filters.default ListAutomationRulesResponselistAutomationRules(ListAutomationRulesRequest listAutomationRulesRequest) Lists the automation rules that match specified filters.default ListAutomationRulesIterablelistAutomationRulesPaginator(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest) This is a variant oflistAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest)operation.default ListAutomationRulesIterablelistAutomationRulesPaginator(ListAutomationRulesRequest listAutomationRulesRequest) This is a variant oflistAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest)operation.default ListRecommendedActionsResponselistRecommendedActions(Consumer<ListRecommendedActionsRequest.Builder> listRecommendedActionsRequest) Lists the recommended actions based that match specified filters.default ListRecommendedActionsResponselistRecommendedActions(ListRecommendedActionsRequest listRecommendedActionsRequest) Lists the recommended actions based that match specified filters.default ListRecommendedActionsIterablelistRecommendedActionsPaginator(Consumer<ListRecommendedActionsRequest.Builder> listRecommendedActionsRequest) This is a variant oflistRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest)operation.default ListRecommendedActionsIterablelistRecommendedActionsPaginator(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) default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for a specified resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for a specified resource.default RollbackAutomationEventResponserollbackAutomationEvent(Consumer<RollbackAutomationEventRequest.Builder> rollbackAutomationEventRequest) Initiates a rollback for a completed automation event.default RollbackAutomationEventResponserollbackAutomationEvent(RollbackAutomationEventRequest rollbackAutomationEventRequest) Initiates a rollback for a completed automation event.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartAutomationEventResponsestartAutomationEvent(Consumer<StartAutomationEventRequest.Builder> startAutomationEventRequest) Initiates a one-time, on-demand automation for the specified recommended action.default StartAutomationEventResponsestartAutomationEvent(StartAutomationEventRequest startAutomationEventRequest) Initiates a one-time, on-demand automation for the specified recommended action.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to the specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds tags to the specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from the specified resource.default UpdateAutomationRuleResponseupdateAutomationRule(Consumer<UpdateAutomationRuleRequest.Builder> updateAutomationRuleRequest) Updates an existing automation rule.default UpdateAutomationRuleResponseupdateAutomationRule(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 AssociateAccountsResponse associateAccounts(AssociateAccountsRequest associateAccountsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, IdempotentParameterMismatchException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the AssociateAccounts operation returned by the service.
- See Also:
-
associateAccounts
default AssociateAccountsResponse associateAccounts(Consumer<AssociateAccountsRequest.Builder> associateAccountsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, IdempotentParameterMismatchException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the AssociateAccounts operation returned by the service.
- See Also:
-
createAutomationRule
default CreateAutomationRuleResponse createAutomationRule(CreateAutomationRuleRequest createAutomationRuleRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, IdempotentParameterMismatchException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Creates a new automation rule to apply recommended actions to resources based on specified criteria.
- Parameters:
createAutomationRuleRequest-- Returns:
- Result of the CreateAutomationRule operation returned by the service.
- See Also:
-
createAutomationRule
default CreateAutomationRuleResponse createAutomationRule(Consumer<CreateAutomationRuleRequest.Builder> createAutomationRuleRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, IdempotentParameterMismatchException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the CreateAutomationRule operation returned by the service.
- See Also:
-
deleteAutomationRule
default DeleteAutomationRuleResponse deleteAutomationRule(DeleteAutomationRuleRequest deleteAutomationRuleRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Deletes an existing automation rule.
- Parameters:
deleteAutomationRuleRequest-- Returns:
- Result of the DeleteAutomationRule operation returned by the service.
- See Also:
-
deleteAutomationRule
default DeleteAutomationRuleResponse deleteAutomationRule(Consumer<DeleteAutomationRuleRequest.Builder> deleteAutomationRuleRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the DeleteAutomationRule operation returned by the service.
- See Also:
-
disassociateAccounts
default DisassociateAccountsResponse disassociateAccounts(DisassociateAccountsRequest disassociateAccountsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, IdempotentParameterMismatchException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the DisassociateAccounts operation returned by the service.
- See Also:
-
disassociateAccounts
default DisassociateAccountsResponse disassociateAccounts(Consumer<DisassociateAccountsRequest.Builder> disassociateAccountsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, IdempotentParameterMismatchException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the DisassociateAccounts operation returned by the service.
- See Also:
-
getAutomationEvent
default GetAutomationEventResponse getAutomationEvent(GetAutomationEventRequest getAutomationEventRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Retrieves details about a specific automation event.
- Parameters:
getAutomationEventRequest-- Returns:
- Result of the GetAutomationEvent operation returned by the service.
- See Also:
-
getAutomationEvent
default GetAutomationEventResponse getAutomationEvent(Consumer<GetAutomationEventRequest.Builder> getAutomationEventRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the GetAutomationEvent operation returned by the service.
- See Also:
-
getAutomationRule
default GetAutomationRuleResponse getAutomationRule(GetAutomationRuleRequest getAutomationRuleRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Retrieves details about a specific automation rule.
- Parameters:
getAutomationRuleRequest-- Returns:
- Result of the GetAutomationRule operation returned by the service.
- See Also:
-
getAutomationRule
default GetAutomationRuleResponse getAutomationRule(Consumer<GetAutomationRuleRequest.Builder> getAutomationRuleRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the GetAutomationRule operation returned by the service.
- See Also:
-
getEnrollmentConfiguration
default GetEnrollmentConfigurationResponse getEnrollmentConfiguration(GetEnrollmentConfigurationRequest getEnrollmentConfigurationRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Retrieves the current enrollment configuration for Compute Optimizer Automation.
- Parameters:
getEnrollmentConfigurationRequest-- Returns:
- Result of the GetEnrollmentConfiguration operation returned by the service.
- See Also:
-
getEnrollmentConfiguration
default GetEnrollmentConfigurationResponse getEnrollmentConfiguration(Consumer<GetEnrollmentConfigurationRequest.Builder> getEnrollmentConfigurationRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the GetEnrollmentConfiguration operation returned by the service.
- See Also:
-
listAccounts
default ListAccountsResponse listAccounts(ListAccountsRequest listAccountsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAccounts operation returned by the service.
- See Also:
-
listAccounts
default ListAccountsResponse listAccounts(Consumer<ListAccountsRequest.Builder> listAccountsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAccounts operation returned by the service.
- See Also:
-
listAccountsPaginator
default ListAccountsIterable listAccountsPaginator(ListAccountsRequest listAccountsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsIterable responses = client.listAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsIterable responses = client .listAccountsPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsIterable responses = client.listAccountsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAccountsPaginator
default ListAccountsIterable listAccountsPaginator(Consumer<ListAccountsRequest.Builder> listAccountsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAccounts(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsIterable responses = client.listAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsIterable responses = client .listAccountsPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAccountsIterable responses = client.listAccountsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationEventSteps
default ListAutomationEventStepsResponse listAutomationEventSteps(ListAutomationEventStepsRequest listAutomationEventStepsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Lists the steps for a specific automation event. You can only list steps for events created within the past year.
- Parameters:
listAutomationEventStepsRequest-- Returns:
- Result of the ListAutomationEventSteps operation returned by the service.
- See Also:
-
listAutomationEventSteps
default ListAutomationEventStepsResponse listAutomationEventSteps(Consumer<ListAutomationEventStepsRequest.Builder> listAutomationEventStepsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAutomationEventSteps operation returned by the service.
- See Also:
-
listAutomationEventStepsPaginator
default ListAutomationEventStepsIterable listAutomationEventStepsPaginator(ListAutomationEventStepsRequest listAutomationEventStepsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsIterable responses = client.listAutomationEventStepsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsIterable responses = client .listAutomationEventStepsPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsIterable responses = client.listAutomationEventStepsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationEventStepsPaginator
default ListAutomationEventStepsIterable listAutomationEventStepsPaginator(Consumer<ListAutomationEventStepsRequest.Builder> listAutomationEventStepsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationEventSteps(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsIterable responses = client.listAutomationEventStepsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsIterable responses = client .listAutomationEventStepsPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventStepsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventStepsIterable responses = client.listAutomationEventStepsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationEventSummaries
default ListAutomationEventSummariesResponse listAutomationEventSummaries(ListAutomationEventSummariesRequest listAutomationEventSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAutomationEventSummaries operation returned by the service.
- See Also:
-
listAutomationEventSummaries
default ListAutomationEventSummariesResponse listAutomationEventSummaries(Consumer<ListAutomationEventSummariesRequest.Builder> listAutomationEventSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAutomationEventSummaries operation returned by the service.
- See Also:
-
listAutomationEventSummariesPaginator
default ListAutomationEventSummariesIterable listAutomationEventSummariesPaginator(ListAutomationEventSummariesRequest listAutomationEventSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationEventSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesIterable responses = client.listAutomationEventSummariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesIterable responses = client .listAutomationEventSummariesPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesIterable responses = client.listAutomationEventSummariesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationEventSummariesPaginator
default ListAutomationEventSummariesIterable listAutomationEventSummariesPaginator(Consumer<ListAutomationEventSummariesRequest.Builder> listAutomationEventSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationEventSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesIterable responses = client.listAutomationEventSummariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesIterable responses = client .listAutomationEventSummariesPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventSummariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventSummariesIterable responses = client.listAutomationEventSummariesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationEvents
default ListAutomationEventsResponse listAutomationEvents(ListAutomationEventsRequest listAutomationEventsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Lists automation events based on specified filters. You can retrieve events that were created within the past year.
- Parameters:
listAutomationEventsRequest-- Returns:
- Result of the ListAutomationEvents operation returned by the service.
- See Also:
-
listAutomationEvents
default ListAutomationEventsResponse listAutomationEvents(Consumer<ListAutomationEventsRequest.Builder> listAutomationEventsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAutomationEvents operation returned by the service.
- See Also:
-
listAutomationEventsPaginator
default ListAutomationEventsIterable listAutomationEventsPaginator(ListAutomationEventsRequest listAutomationEventsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsIterable responses = client.listAutomationEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsIterable responses = client .listAutomationEventsPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsIterable responses = client.listAutomationEventsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationEventsPaginator
default ListAutomationEventsIterable listAutomationEventsPaginator(Consumer<ListAutomationEventsRequest.Builder> listAutomationEventsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationEvents(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsIterable responses = client.listAutomationEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsIterable responses = client .listAutomationEventsPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationEventsIterable responses = client.listAutomationEventsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationRulePreview
default ListAutomationRulePreviewResponse listAutomationRulePreview(ListAutomationRulePreviewRequest listAutomationRulePreviewRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.
- Parameters:
listAutomationRulePreviewRequest-- Returns:
- Result of the ListAutomationRulePreview operation returned by the service.
- See Also:
-
listAutomationRulePreview
default ListAutomationRulePreviewResponse listAutomationRulePreview(Consumer<ListAutomationRulePreviewRequest.Builder> listAutomationRulePreviewRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAutomationRulePreview operation returned by the service.
- See Also:
-
listAutomationRulePreviewPaginator
default ListAutomationRulePreviewIterable listAutomationRulePreviewPaginator(ListAutomationRulePreviewRequest listAutomationRulePreviewRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationRulePreview(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewIterable responses = client.listAutomationRulePreviewPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewIterable responses = client .listAutomationRulePreviewPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewIterable responses = client.listAutomationRulePreviewPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationRulePreviewPaginator
default ListAutomationRulePreviewIterable listAutomationRulePreviewPaginator(Consumer<ListAutomationRulePreviewRequest.Builder> listAutomationRulePreviewRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationRulePreview(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewIterable responses = client.listAutomationRulePreviewPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewIterable responses = client .listAutomationRulePreviewPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewIterable responses = client.listAutomationRulePreviewPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationRulePreviewSummaries
default ListAutomationRulePreviewSummariesResponse listAutomationRulePreviewSummaries(ListAutomationRulePreviewSummariesRequest listAutomationRulePreviewSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Returns a summary of the recommended actions that match your rule preview configuration and criteria.
- Parameters:
listAutomationRulePreviewSummariesRequest-- Returns:
- Result of the ListAutomationRulePreviewSummaries operation returned by the service.
- See Also:
-
listAutomationRulePreviewSummaries
default ListAutomationRulePreviewSummariesResponse listAutomationRulePreviewSummaries(Consumer<ListAutomationRulePreviewSummariesRequest.Builder> listAutomationRulePreviewSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAutomationRulePreviewSummaries operation returned by the service.
- See Also:
-
listAutomationRulePreviewSummariesPaginator
default ListAutomationRulePreviewSummariesIterable listAutomationRulePreviewSummariesPaginator(ListAutomationRulePreviewSummariesRequest listAutomationRulePreviewSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationRulePreviewSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesIterable responses = client.listAutomationRulePreviewSummariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesIterable responses = client .listAutomationRulePreviewSummariesPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesIterable responses = client.listAutomationRulePreviewSummariesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationRulePreviewSummariesPaginator
default ListAutomationRulePreviewSummariesIterable listAutomationRulePreviewSummariesPaginator(Consumer<ListAutomationRulePreviewSummariesRequest.Builder> listAutomationRulePreviewSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationRulePreviewSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesIterable responses = client.listAutomationRulePreviewSummariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesIterable responses = client .listAutomationRulePreviewSummariesPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulePreviewSummariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulePreviewSummariesIterable responses = client.listAutomationRulePreviewSummariesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationRules
default ListAutomationRulesResponse listAutomationRules(ListAutomationRulesRequest listAutomationRulesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Lists the automation rules that match specified filters.
- Parameters:
listAutomationRulesRequest-- Returns:
- Result of the ListAutomationRules operation returned by the service.
- See Also:
-
listAutomationRules
default ListAutomationRulesResponse listAutomationRules(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListAutomationRules operation returned by the service.
- See Also:
-
listAutomationRulesPaginator
default ListAutomationRulesIterable listAutomationRulesPaginator(ListAutomationRulesRequest listAutomationRulesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesIterable responses = client.listAutomationRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesIterable responses = client .listAutomationRulesPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesIterable responses = client.listAutomationRulesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAutomationRulesPaginator
default ListAutomationRulesIterable listAutomationRulesPaginator(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listAutomationRules(software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesIterable responses = client.listAutomationRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesIterable responses = client .listAutomationRulesPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListAutomationRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListAutomationRulesIterable responses = client.listAutomationRulesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRecommendedActionSummaries
default ListRecommendedActionSummariesResponse listRecommendedActionSummaries(ListRecommendedActionSummariesRequest listRecommendedActionSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListRecommendedActionSummaries operation returned by the service.
- See Also:
-
listRecommendedActionSummaries
default ListRecommendedActionSummariesResponse listRecommendedActionSummaries(Consumer<ListRecommendedActionSummariesRequest.Builder> listRecommendedActionSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListRecommendedActionSummaries operation returned by the service.
- See Also:
-
listRecommendedActionSummariesPaginator
default ListRecommendedActionSummariesIterable listRecommendedActionSummariesPaginator(ListRecommendedActionSummariesRequest listRecommendedActionSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listRecommendedActionSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesIterable responses = client.listRecommendedActionSummariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesIterable responses = client .listRecommendedActionSummariesPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesIterable responses = client.listRecommendedActionSummariesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRecommendedActionSummariesPaginator
default ListRecommendedActionSummariesIterable listRecommendedActionSummariesPaginator(Consumer<ListRecommendedActionSummariesRequest.Builder> listRecommendedActionSummariesRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listRecommendedActionSummaries(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesIterable responses = client.listRecommendedActionSummariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesIterable responses = client .listRecommendedActionSummariesPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionSummariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionSummariesIterable responses = client.listRecommendedActionSummariesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRecommendedActions
default ListRecommendedActionsResponse listRecommendedActions(ListRecommendedActionsRequest listRecommendedActionsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListRecommendedActions operation returned by the service.
- See Also:
-
listRecommendedActions
default ListRecommendedActionsResponse listRecommendedActions(Consumer<ListRecommendedActionsRequest.Builder> listRecommendedActionsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListRecommendedActions operation returned by the service.
- See Also:
-
listRecommendedActionsPaginator
default ListRecommendedActionsIterable listRecommendedActionsPaginator(ListRecommendedActionsRequest listRecommendedActionsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsIterable responses = client.listRecommendedActionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsIterable responses = client .listRecommendedActionsPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsIterable responses = client.listRecommendedActionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRecommendedActionsPaginator
default ListRecommendedActionsIterable listRecommendedActionsPaginator(Consumer<ListRecommendedActionsRequest.Builder> listRecommendedActionsRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException This is a variant of
listRecommendedActions(software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsIterable responses = client.listRecommendedActionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsIterable responses = client .listRecommendedActionsPaginator(request); for (software.amazon.awssdk.services.computeoptimizerautomation.model.ListRecommendedActionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.computeoptimizerautomation.paginators.ListRecommendedActionsIterable responses = client.listRecommendedActionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Lists the tags for a specified resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
rollbackAutomationEvent
default RollbackAutomationEventResponse rollbackAutomationEvent(RollbackAutomationEventRequest rollbackAutomationEventRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, ResourceNotFoundException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the RollbackAutomationEvent operation returned by the service.
- See Also:
-
rollbackAutomationEvent
default RollbackAutomationEventResponse rollbackAutomationEvent(Consumer<RollbackAutomationEventRequest.Builder> rollbackAutomationEventRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, ResourceNotFoundException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the RollbackAutomationEvent operation returned by the service.
- See Also:
-
startAutomationEvent
default StartAutomationEventResponse startAutomationEvent(StartAutomationEventRequest startAutomationEventRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, IdempotentParameterMismatchException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the StartAutomationEvent operation returned by the service.
- See Also:
-
startAutomationEvent
default StartAutomationEventResponse startAutomationEvent(Consumer<StartAutomationEventRequest.Builder> startAutomationEventRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ThrottlingException, IdempotentParameterMismatchException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the StartAutomationEvent operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Adds tags to the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Removes tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateAutomationRule
default UpdateAutomationRuleResponse updateAutomationRule(UpdateAutomationRuleRequest updateAutomationRuleRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Updates an existing automation rule.
- Parameters:
updateAutomationRuleRequest-- Returns:
- Result of the UpdateAutomationRule operation returned by the service.
- See Also:
-
updateAutomationRule
default UpdateAutomationRuleResponse updateAutomationRule(Consumer<UpdateAutomationRuleRequest.Builder> updateAutomationRuleRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, ResourceNotFoundException, ThrottlingException, IdempotentParameterMismatchException, AccessDeniedException, InternalServerException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the UpdateAutomationRule operation returned by the service.
- See Also:
-
updateEnrollmentConfiguration
default UpdateEnrollmentConfigurationResponse updateEnrollmentConfiguration(UpdateEnrollmentConfigurationRequest updateEnrollmentConfigurationRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, IdempotentParameterMismatchException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException Updates your account’s Compute Optimizer Automation enrollment configuration.
- Parameters:
updateEnrollmentConfigurationRequest-- Returns:
- Result of the UpdateEnrollmentConfiguration operation returned by the service.
- See Also:
-
updateEnrollmentConfiguration
default UpdateEnrollmentConfigurationResponse updateEnrollmentConfiguration(Consumer<UpdateEnrollmentConfigurationRequest.Builder> updateEnrollmentConfigurationRequest) throws InvalidParameterValueException, ForbiddenException, OptInRequiredException, IdempotentParameterMismatchException, ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, NotManagementAccountException, ServiceUnavailableException, IdempotencyTokenInUseException, AwsServiceException, SdkClientException, ComputeOptimizerAutomationException 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:
- Result of the UpdateEnrollmentConfiguration operation returned by the service.
- See Also:
-
create
Create aComputeOptimizerAutomationClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aComputeOptimizerAutomationClient. -
serviceMetadata
-
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
-