@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCostExplorerAsyncClient extends AWSCostExplorerClient implements AWSCostExplorerAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
The Cost Explorer API allows you to programmatically query your cost and usage data. You can query for aggregated data such as total monthly costs or total daily usage. You can also query for granular data, such as the number of daily write operations for DynamoDB database tables in your production environment.
Service Endpoint
The Cost Explorer API provides the following endpoint:
https://ce.us-east-1.amazonaws.com
configFactoryclient, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AWSCostExplorerAsyncClientBuilder |
asyncBuilder() |
Future<GetCostAndUsageResult> |
getCostAndUsageAsync(GetCostAndUsageRequest request)
Retrieve cost and usage metrics for your account.
|
Future<GetCostAndUsageResult> |
getCostAndUsageAsync(GetCostAndUsageRequest request,
AsyncHandler<GetCostAndUsageRequest,GetCostAndUsageResult> asyncHandler)
Retrieve cost and usage metrics for your account.
|
Future<GetDimensionValuesResult> |
getDimensionValuesAsync(GetDimensionValuesRequest request)
You can use
GetDimensionValues to retrieve all available filter values for a specific filter over a
period of time. |
Future<GetDimensionValuesResult> |
getDimensionValuesAsync(GetDimensionValuesRequest request,
AsyncHandler<GetDimensionValuesRequest,GetDimensionValuesResult> asyncHandler)
You can use
GetDimensionValues to retrieve all available filter values for a specific filter over a
period of time. |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetReservationUtilizationResult> |
getReservationUtilizationAsync(GetReservationUtilizationRequest request)
You can retrieve the Reservation utilization for your account.
|
Future<GetReservationUtilizationResult> |
getReservationUtilizationAsync(GetReservationUtilizationRequest request,
AsyncHandler<GetReservationUtilizationRequest,GetReservationUtilizationResult> asyncHandler)
You can retrieve the Reservation utilization for your account.
|
Future<GetTagsResult> |
getTagsAsync(GetTagsRequest request)
You can query for available tag keys and tag values for a specified period.
|
Future<GetTagsResult> |
getTagsAsync(GetTagsRequest request,
AsyncHandler<GetTagsRequest,GetTagsResult> asyncHandler)
You can query for available tag keys and tag values for a specified period.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, getCostAndUsage, getDimensionValues, getReservationUtilization, getTagsaddRequestHandler, addRequestHandler, beforeClientExecution, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerOverride, getSignerProvider, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, getCostAndUsage, getDimensionValues, getReservationUtilization, getTagspublic static AWSCostExplorerAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<GetCostAndUsageResult> getCostAndUsageAsync(GetCostAndUsageRequest request)
AWSCostExplorerAsync
Retrieve cost and usage metrics for your account. You can specify which cost and usage-related metric, such as
BlendedCosts or UsageQuantity, that you want the request to return. You can also filter
and group your data by various dimensions, such as AWS Service or AvailabilityZone, in
a specific time range. See the GetDimensionValues action for a complete list of the valid
dimensions. Master accounts in an organization have access to all member accounts.
getCostAndUsageAsync in interface AWSCostExplorerAsyncpublic Future<GetCostAndUsageResult> getCostAndUsageAsync(GetCostAndUsageRequest request, AsyncHandler<GetCostAndUsageRequest,GetCostAndUsageResult> asyncHandler)
AWSCostExplorerAsync
Retrieve cost and usage metrics for your account. You can specify which cost and usage-related metric, such as
BlendedCosts or UsageQuantity, that you want the request to return. You can also filter
and group your data by various dimensions, such as AWS Service or AvailabilityZone, in
a specific time range. See the GetDimensionValues action for a complete list of the valid
dimensions. Master accounts in an organization have access to all member accounts.
getCostAndUsageAsync in interface AWSCostExplorerAsyncasyncHandler - 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<GetDimensionValuesResult> getDimensionValuesAsync(GetDimensionValuesRequest request)
AWSCostExplorerAsync
You can use GetDimensionValues to retrieve all available filter values for a specific filter over a
period of time. You can search the dimension values for an arbitrary string.
getDimensionValuesAsync in interface AWSCostExplorerAsyncpublic Future<GetDimensionValuesResult> getDimensionValuesAsync(GetDimensionValuesRequest request, AsyncHandler<GetDimensionValuesRequest,GetDimensionValuesResult> asyncHandler)
AWSCostExplorerAsync
You can use GetDimensionValues to retrieve all available filter values for a specific filter over a
period of time. You can search the dimension values for an arbitrary string.
getDimensionValuesAsync in interface AWSCostExplorerAsyncasyncHandler - 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<GetReservationUtilizationResult> getReservationUtilizationAsync(GetReservationUtilizationRequest request)
AWSCostExplorerAsync
You can retrieve the Reservation utilization for your account. Master accounts in an organization have access to
their associated member accounts. You can filter data by dimensions in a time period. You can use
GetDimensionValues to determine the possible dimension values. Currently, you can group only by
SUBSCRIPTION_ID.
getReservationUtilizationAsync in interface AWSCostExplorerAsyncpublic Future<GetReservationUtilizationResult> getReservationUtilizationAsync(GetReservationUtilizationRequest request, AsyncHandler<GetReservationUtilizationRequest,GetReservationUtilizationResult> asyncHandler)
AWSCostExplorerAsync
You can retrieve the Reservation utilization for your account. Master accounts in an organization have access to
their associated member accounts. You can filter data by dimensions in a time period. You can use
GetDimensionValues to determine the possible dimension values. Currently, you can group only by
SUBSCRIPTION_ID.
getReservationUtilizationAsync in interface AWSCostExplorerAsyncasyncHandler - 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<GetTagsResult> getTagsAsync(GetTagsRequest request)
AWSCostExplorerAsyncYou can query for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.
getTagsAsync in interface AWSCostExplorerAsyncpublic Future<GetTagsResult> getTagsAsync(GetTagsRequest request, AsyncHandler<GetTagsRequest,GetTagsResult> asyncHandler)
AWSCostExplorerAsyncYou can query for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.
getTagsAsync in interface AWSCostExplorerAsyncasyncHandler - 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 AWSCostExplorershutdown in class AmazonWebServiceClientCopyright © 2017. All rights reserved.