@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCostOptimizationHubAsyncClient extends AWSCostOptimizationHubClient implements AWSCostOptimizationHubAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
You can use the Cost Optimization Hub API to programmatically identify, filter, aggregate, and quantify savings for your cost optimization recommendations across multiple Amazon Web Services Regions and Amazon Web Services accounts in your organization.
The Cost Optimization Hub API provides the following endpoint:
https://cost-optimization-hub.us-east-1.amazonaws.com
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, getCachedResponseMetadata, getPreferences, getRecommendation, listEnrollmentStatuses, listRecommendations, listRecommendationSummaries, updateEnrollmentStatus, updatePreferencesaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, getPreferences, getRecommendation, listEnrollmentStatuses, listRecommendations, listRecommendationSummaries, updateEnrollmentStatus, updatePreferencespublic static AWSCostOptimizationHubAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<GetPreferencesResult> getPreferencesAsync(GetPreferencesRequest request)
AWSCostOptimizationHubAsyncReturns a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented—estimated savings after discounts or estimated savings before discounts, for example.
getPreferencesAsync in interface AWSCostOptimizationHubAsyncpublic Future<GetPreferencesResult> getPreferencesAsync(GetPreferencesRequest request, AsyncHandler<GetPreferencesRequest,GetPreferencesResult> asyncHandler)
AWSCostOptimizationHubAsyncReturns a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented—estimated savings after discounts or estimated savings before discounts, for example.
getPreferencesAsync in interface AWSCostOptimizationHubAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetRecommendationResult> getRecommendationAsync(GetRecommendationRequest request)
AWSCostOptimizationHubAsyncReturns both the current and recommended resource configuration and the estimated cost impact for a recommendation.
The recommendationId is only valid for up to a maximum of 24 hours as recommendations are refreshed
daily. To retrieve the recommendationId, use the ListRecommendations API.
getRecommendationAsync in interface AWSCostOptimizationHubAsyncpublic Future<GetRecommendationResult> getRecommendationAsync(GetRecommendationRequest request, AsyncHandler<GetRecommendationRequest,GetRecommendationResult> asyncHandler)
AWSCostOptimizationHubAsyncReturns both the current and recommended resource configuration and the estimated cost impact for a recommendation.
The recommendationId is only valid for up to a maximum of 24 hours as recommendations are refreshed
daily. To retrieve the recommendationId, use the ListRecommendations API.
getRecommendationAsync in interface AWSCostOptimizationHubAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEnrollmentStatusesResult> listEnrollmentStatusesAsync(ListEnrollmentStatusesRequest request)
AWSCostOptimizationHubAsyncRetrieves the enrollment status for an account. It can also return the list of accounts that are enrolled under the organization.
listEnrollmentStatusesAsync in interface AWSCostOptimizationHubAsyncpublic Future<ListEnrollmentStatusesResult> listEnrollmentStatusesAsync(ListEnrollmentStatusesRequest request, AsyncHandler<ListEnrollmentStatusesRequest,ListEnrollmentStatusesResult> asyncHandler)
AWSCostOptimizationHubAsyncRetrieves the enrollment status for an account. It can also return the list of accounts that are enrolled under the organization.
listEnrollmentStatusesAsync in interface AWSCostOptimizationHubAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListRecommendationSummariesResult> listRecommendationSummariesAsync(ListRecommendationSummariesRequest request)
AWSCostOptimizationHubAsyncReturns a concise representation of savings estimates for resources. Also returns de-duped savings across different types of recommendations.
The following filters are not supported for this API: recommendationIds, resourceArns,
and resourceIds.
listRecommendationSummariesAsync in interface AWSCostOptimizationHubAsyncpublic Future<ListRecommendationSummariesResult> listRecommendationSummariesAsync(ListRecommendationSummariesRequest request, AsyncHandler<ListRecommendationSummariesRequest,ListRecommendationSummariesResult> asyncHandler)
AWSCostOptimizationHubAsyncReturns a concise representation of savings estimates for resources. Also returns de-duped savings across different types of recommendations.
The following filters are not supported for this API: recommendationIds, resourceArns,
and resourceIds.
listRecommendationSummariesAsync in interface AWSCostOptimizationHubAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListRecommendationsResult> listRecommendationsAsync(ListRecommendationsRequest request)
AWSCostOptimizationHubAsyncReturns a list of recommendations.
listRecommendationsAsync in interface AWSCostOptimizationHubAsyncpublic Future<ListRecommendationsResult> listRecommendationsAsync(ListRecommendationsRequest request, AsyncHandler<ListRecommendationsRequest,ListRecommendationsResult> asyncHandler)
AWSCostOptimizationHubAsyncReturns a list of recommendations.
listRecommendationsAsync in interface AWSCostOptimizationHubAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateEnrollmentStatusResult> updateEnrollmentStatusAsync(UpdateEnrollmentStatusRequest request)
AWSCostOptimizationHubAsyncUpdates the enrollment (opt in and opt out) status of an account to the Cost Optimization Hub service.
If the account is a management account of an organization, this action can also be used to enroll member accounts of the organization.
You must have the appropriate permissions to opt in to Cost Optimization Hub and to view its recommendations. When you opt in, Cost Optimization Hub automatically creates a service-linked role in your account to access its data.
updateEnrollmentStatusAsync in interface AWSCostOptimizationHubAsyncpublic Future<UpdateEnrollmentStatusResult> updateEnrollmentStatusAsync(UpdateEnrollmentStatusRequest request, AsyncHandler<UpdateEnrollmentStatusRequest,UpdateEnrollmentStatusResult> asyncHandler)
AWSCostOptimizationHubAsyncUpdates the enrollment (opt in and opt out) status of an account to the Cost Optimization Hub service.
If the account is a management account of an organization, this action can also be used to enroll member accounts of the organization.
You must have the appropriate permissions to opt in to Cost Optimization Hub and to view its recommendations. When you opt in, Cost Optimization Hub automatically creates a service-linked role in your account to access its data.
updateEnrollmentStatusAsync in interface AWSCostOptimizationHubAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdatePreferencesResult> updatePreferencesAsync(UpdatePreferencesRequest request)
AWSCostOptimizationHubAsyncUpdates a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented.
updatePreferencesAsync in interface AWSCostOptimizationHubAsyncpublic Future<UpdatePreferencesResult> updatePreferencesAsync(UpdatePreferencesRequest request, AsyncHandler<UpdatePreferencesRequest,UpdatePreferencesResult> asyncHandler)
AWSCostOptimizationHubAsyncUpdates a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented.
updatePreferencesAsync in interface AWSCostOptimizationHubAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AWSCostOptimizationHubshutdown in class AWSCostOptimizationHubClient