@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCostAndUsageReportAsyncClient extends AWSCostAndUsageReportClient implements AWSCostAndUsageReportAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
You can use the Amazon Web Services Cost and Usage Report API to programmatically create, query, and delete Amazon Web Services Cost and Usage Report definitions.
Amazon Web Services Cost and Usage Report track the monthly Amazon Web Services costs and usage associated with your Amazon Web Services account. The report contains line items for each unique combination of Amazon Web Services product, usage type, and operation that your Amazon Web Services account uses. You can configure the Amazon Web Services Cost and Usage Report to show only the data that you want, using the Amazon Web Services Cost and Usage Report API.
Service Endpoint
The Amazon Web Services Cost and Usage Report API provides the following endpoint:
cur.us-east-1.amazonaws.com
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSCostAndUsageReportAsyncClient()
Deprecated.
|
AWSCostAndUsageReportAsyncClient(AWSCredentials awsCredentials)
Deprecated.
|
AWSCostAndUsageReportAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSCostAndUsageReportAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
|
AWSCostAndUsageReportAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSCostAndUsageReportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSCostAndUsageReportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSCostAndUsageReportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
|
AWSCostAndUsageReportAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
|
builder, deleteReportDefinition, describeReportDefinitions, getCachedResponseMetadata, listTagsForResource, modifyReportDefinition, putReportDefinition, tagResource, untagResource
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteReportDefinition, describeReportDefinitions, getCachedResponseMetadata, listTagsForResource, modifyReportDefinition, putReportDefinition, setEndpoint, setRegion, tagResource, untagResource
@Deprecated public AWSCostAndUsageReportAsyncClient()
AWSCostAndUsageReportAsyncClientBuilder.defaultClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
@Deprecated public AWSCostAndUsageReportAsyncClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client connects to AWS Cost and Usage Report Service
(ex: proxy settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AWSCostAndUsageReportAsyncClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AWSCostAndUsageReportAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AWSCostAndUsageReportAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AWSCostAndUsageReportAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AWSCostAndUsageReportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AWSCostAndUsageReportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AWSCostAndUsageReportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.public static AWSCostAndUsageReportAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DeleteReportDefinitionResult> deleteReportDefinitionAsync(DeleteReportDefinitionRequest request)
AWSCostAndUsageReportAsync
Deletes the specified report. Any tags associated with the report are also deleted.
deleteReportDefinitionAsync
in interface AWSCostAndUsageReportAsync
request
- Deletes the specified report.public Future<DeleteReportDefinitionResult> deleteReportDefinitionAsync(DeleteReportDefinitionRequest request, AsyncHandler<DeleteReportDefinitionRequest,DeleteReportDefinitionResult> asyncHandler)
AWSCostAndUsageReportAsync
Deletes the specified report. Any tags associated with the report are also deleted.
deleteReportDefinitionAsync
in interface AWSCostAndUsageReportAsync
request
- Deletes the specified report.asyncHandler
- 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<DescribeReportDefinitionsResult> describeReportDefinitionsAsync(DescribeReportDefinitionsRequest request)
AWSCostAndUsageReportAsync
Lists the Amazon Web Services Cost and Usage Report available to this account.
describeReportDefinitionsAsync
in interface AWSCostAndUsageReportAsync
request
- Requests a Amazon Web Services Cost and Usage Report list owned by the account.public Future<DescribeReportDefinitionsResult> describeReportDefinitionsAsync(DescribeReportDefinitionsRequest request, AsyncHandler<DescribeReportDefinitionsRequest,DescribeReportDefinitionsResult> asyncHandler)
AWSCostAndUsageReportAsync
Lists the Amazon Web Services Cost and Usage Report available to this account.
describeReportDefinitionsAsync
in interface AWSCostAndUsageReportAsync
request
- Requests a Amazon Web Services Cost and Usage Report list owned by the account.asyncHandler
- 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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSCostAndUsageReportAsync
Lists the tags associated with the specified report definition.
listTagsForResourceAsync
in interface AWSCostAndUsageReportAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSCostAndUsageReportAsync
Lists the tags associated with the specified report definition.
listTagsForResourceAsync
in interface AWSCostAndUsageReportAsync
asyncHandler
- 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<ModifyReportDefinitionResult> modifyReportDefinitionAsync(ModifyReportDefinitionRequest request)
AWSCostAndUsageReportAsync
Allows you to programmatically update your report preferences.
modifyReportDefinitionAsync
in interface AWSCostAndUsageReportAsync
public Future<ModifyReportDefinitionResult> modifyReportDefinitionAsync(ModifyReportDefinitionRequest request, AsyncHandler<ModifyReportDefinitionRequest,ModifyReportDefinitionResult> asyncHandler)
AWSCostAndUsageReportAsync
Allows you to programmatically update your report preferences.
modifyReportDefinitionAsync
in interface AWSCostAndUsageReportAsync
asyncHandler
- 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<PutReportDefinitionResult> putReportDefinitionAsync(PutReportDefinitionRequest request)
AWSCostAndUsageReportAsync
Creates a new report using the description that you provide.
putReportDefinitionAsync
in interface AWSCostAndUsageReportAsync
request
- Creates a Cost and Usage Report.public Future<PutReportDefinitionResult> putReportDefinitionAsync(PutReportDefinitionRequest request, AsyncHandler<PutReportDefinitionRequest,PutReportDefinitionResult> asyncHandler)
AWSCostAndUsageReportAsync
Creates a new report using the description that you provide.
putReportDefinitionAsync
in interface AWSCostAndUsageReportAsync
request
- Creates a Cost and Usage Report.asyncHandler
- 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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSCostAndUsageReportAsync
Associates a set of tags with a report definition.
tagResourceAsync
in interface AWSCostAndUsageReportAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSCostAndUsageReportAsync
Associates a set of tags with a report definition.
tagResourceAsync
in interface AWSCostAndUsageReportAsync
asyncHandler
- 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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSCostAndUsageReportAsync
Disassociates a set of tags from a report definition.
untagResourceAsync
in interface AWSCostAndUsageReportAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSCostAndUsageReportAsync
Disassociates a set of tags from a report definition.
untagResourceAsync
in interface AWSCostAndUsageReportAsync
asyncHandler
- 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 AWSCostAndUsageReport
shutdown
in class AWSCostAndUsageReportClient