@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface ApplicationCostProfilerAsyncClient extends AwsClient
builder() method.
This reference provides descriptions of the AWS Application Cost Profiler API.
The AWS Application Cost Profiler API provides programmatic access to view, create, update, and delete application cost report definitions, as well as to import your usage data into the Application Cost Profiler service.
For more information about using this service, see the AWS Application Cost Profiler User Guide.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static ApplicationCostProfilerAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
ApplicationCostProfilerAsyncClient. |
static ApplicationCostProfilerAsyncClient |
create()
Create a
ApplicationCostProfilerAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<DeleteReportDefinitionResponse> |
deleteReportDefinition(Consumer<DeleteReportDefinitionRequest.Builder> deleteReportDefinitionRequest)
Deletes the specified report definition in AWS Application Cost Profiler.
|
default CompletableFuture<DeleteReportDefinitionResponse> |
deleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest)
Deletes the specified report definition in AWS Application Cost Profiler.
|
default CompletableFuture<GetReportDefinitionResponse> |
getReportDefinition(Consumer<GetReportDefinitionRequest.Builder> getReportDefinitionRequest)
Retrieves the definition of a report already configured in AWS Application Cost Profiler.
|
default CompletableFuture<GetReportDefinitionResponse> |
getReportDefinition(GetReportDefinitionRequest getReportDefinitionRequest)
Retrieves the definition of a report already configured in AWS Application Cost Profiler.
|
default CompletableFuture<ImportApplicationUsageResponse> |
importApplicationUsage(Consumer<ImportApplicationUsageRequest.Builder> importApplicationUsageRequest)
Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
|
default CompletableFuture<ImportApplicationUsageResponse> |
importApplicationUsage(ImportApplicationUsageRequest importApplicationUsageRequest)
Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
|
default CompletableFuture<ListReportDefinitionsResponse> |
listReportDefinitions(Consumer<ListReportDefinitionsRequest.Builder> listReportDefinitionsRequest)
Retrieves a list of all reports and their configurations for your AWS account.
|
default CompletableFuture<ListReportDefinitionsResponse> |
listReportDefinitions(ListReportDefinitionsRequest listReportDefinitionsRequest)
Retrieves a list of all reports and their configurations for your AWS account.
|
default ListReportDefinitionsPublisher |
listReportDefinitionsPaginator(Consumer<ListReportDefinitionsRequest.Builder> listReportDefinitionsRequest)
Retrieves a list of all reports and their configurations for your AWS account.
|
default ListReportDefinitionsPublisher |
listReportDefinitionsPaginator(ListReportDefinitionsRequest listReportDefinitionsRequest)
Retrieves a list of all reports and their configurations for your AWS account.
|
default CompletableFuture<PutReportDefinitionResponse> |
putReportDefinition(Consumer<PutReportDefinitionRequest.Builder> putReportDefinitionRequest)
Creates the report definition for a report in Application Cost Profiler.
|
default CompletableFuture<PutReportDefinitionResponse> |
putReportDefinition(PutReportDefinitionRequest putReportDefinitionRequest)
Creates the report definition for a report in Application Cost Profiler.
|
default ApplicationCostProfilerServiceClientConfiguration |
serviceClientConfiguration() |
default CompletableFuture<UpdateReportDefinitionResponse> |
updateReportDefinition(Consumer<UpdateReportDefinitionRequest.Builder> updateReportDefinitionRequest)
Updates existing report in AWS Application Cost Profiler.
|
default CompletableFuture<UpdateReportDefinitionResponse> |
updateReportDefinition(UpdateReportDefinitionRequest updateReportDefinitionRequest)
Updates existing report in AWS Application Cost Profiler.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CompletableFuture<DeleteReportDefinitionResponse> deleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest)
Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being generated.
deleteReportDefinitionRequest - default CompletableFuture<DeleteReportDefinitionResponse> deleteReportDefinition(Consumer<DeleteReportDefinitionRequest.Builder> deleteReportDefinitionRequest)
Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being generated.
This is a convenience which creates an instance of the DeleteReportDefinitionRequest.Builder avoiding the
need to create one manually via DeleteReportDefinitionRequest.builder()
deleteReportDefinitionRequest - A Consumer that will call methods on DeleteReportDefinitionRequest.Builder to create a
request.default CompletableFuture<GetReportDefinitionResponse> getReportDefinition(GetReportDefinitionRequest getReportDefinitionRequest)
Retrieves the definition of a report already configured in AWS Application Cost Profiler.
getReportDefinitionRequest - default CompletableFuture<GetReportDefinitionResponse> getReportDefinition(Consumer<GetReportDefinitionRequest.Builder> getReportDefinitionRequest)
Retrieves the definition of a report already configured in AWS Application Cost Profiler.
This is a convenience which creates an instance of the GetReportDefinitionRequest.Builder avoiding the
need to create one manually via GetReportDefinitionRequest.builder()
getReportDefinitionRequest - A Consumer that will call methods on GetReportDefinitionRequest.Builder to create a
request.default CompletableFuture<ImportApplicationUsageResponse> importApplicationUsage(ImportApplicationUsageRequest importApplicationUsageRequest)
Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
The data must already exist in the S3 location. As part of the action, AWS Application Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon for processing asynchronously.
importApplicationUsageRequest - default CompletableFuture<ImportApplicationUsageResponse> importApplicationUsage(Consumer<ImportApplicationUsageRequest.Builder> importApplicationUsageRequest)
Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
The data must already exist in the S3 location. As part of the action, AWS Application Cost Profiler copies the object from your S3 bucket to an S3 bucket owned by Amazon for processing asynchronously.
This is a convenience which creates an instance of the ImportApplicationUsageRequest.Builder avoiding the
need to create one manually via ImportApplicationUsageRequest.builder()
importApplicationUsageRequest - A Consumer that will call methods on ImportApplicationUsageRequest.Builder to create a
request.default CompletableFuture<ListReportDefinitionsResponse> listReportDefinitions(ListReportDefinitionsRequest listReportDefinitionsRequest)
Retrieves a list of all reports and their configurations for your AWS account.
The maximum number of reports is one.
listReportDefinitionsRequest - default CompletableFuture<ListReportDefinitionsResponse> listReportDefinitions(Consumer<ListReportDefinitionsRequest.Builder> listReportDefinitionsRequest)
Retrieves a list of all reports and their configurations for your AWS account.
The maximum number of reports is one.
This is a convenience which creates an instance of the ListReportDefinitionsRequest.Builder avoiding the
need to create one manually via ListReportDefinitionsRequest.builder()
listReportDefinitionsRequest - A Consumer that will call methods on ListReportDefinitionsRequest.Builder to create a
request.default ListReportDefinitionsPublisher listReportDefinitionsPaginator(ListReportDefinitionsRequest listReportDefinitionsRequest)
Retrieves a list of all reports and their configurations for your AWS account.
The maximum number of reports is one.
This is a variant of
listReportDefinitions(software.amazon.awssdk.services.applicationcostprofiler.model.ListReportDefinitionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.applicationcostprofiler.paginators.ListReportDefinitionsPublisher publisher = client.listReportDefinitionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.applicationcostprofiler.paginators.ListReportDefinitionsPublisher publisher = client.listReportDefinitionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.applicationcostprofiler.model.ListReportDefinitionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.applicationcostprofiler.model.ListReportDefinitionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listReportDefinitions(software.amazon.awssdk.services.applicationcostprofiler.model.ListReportDefinitionsRequest)
operation.
listReportDefinitionsRequest - default ListReportDefinitionsPublisher listReportDefinitionsPaginator(Consumer<ListReportDefinitionsRequest.Builder> listReportDefinitionsRequest)
Retrieves a list of all reports and their configurations for your AWS account.
The maximum number of reports is one.
This is a variant of
listReportDefinitions(software.amazon.awssdk.services.applicationcostprofiler.model.ListReportDefinitionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.applicationcostprofiler.paginators.ListReportDefinitionsPublisher publisher = client.listReportDefinitionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.applicationcostprofiler.paginators.ListReportDefinitionsPublisher publisher = client.listReportDefinitionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.applicationcostprofiler.model.ListReportDefinitionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.applicationcostprofiler.model.ListReportDefinitionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listReportDefinitions(software.amazon.awssdk.services.applicationcostprofiler.model.ListReportDefinitionsRequest)
operation.
This is a convenience which creates an instance of the ListReportDefinitionsRequest.Builder avoiding the
need to create one manually via ListReportDefinitionsRequest.builder()
listReportDefinitionsRequest - A Consumer that will call methods on ListReportDefinitionsRequest.Builder to create a
request.default CompletableFuture<PutReportDefinitionResponse> putReportDefinition(PutReportDefinitionRequest putReportDefinitionRequest)
Creates the report definition for a report in Application Cost Profiler.
putReportDefinitionRequest - default CompletableFuture<PutReportDefinitionResponse> putReportDefinition(Consumer<PutReportDefinitionRequest.Builder> putReportDefinitionRequest)
Creates the report definition for a report in Application Cost Profiler.
This is a convenience which creates an instance of the PutReportDefinitionRequest.Builder avoiding the
need to create one manually via PutReportDefinitionRequest.builder()
putReportDefinitionRequest - A Consumer that will call methods on PutReportDefinitionRequest.Builder to create a
request.default CompletableFuture<UpdateReportDefinitionResponse> updateReportDefinition(UpdateReportDefinitionRequest updateReportDefinitionRequest)
Updates existing report in AWS Application Cost Profiler.
updateReportDefinitionRequest - default CompletableFuture<UpdateReportDefinitionResponse> updateReportDefinition(Consumer<UpdateReportDefinitionRequest.Builder> updateReportDefinitionRequest)
Updates existing report in AWS Application Cost Profiler.
This is a convenience which creates an instance of the UpdateReportDefinitionRequest.Builder avoiding the
need to create one manually via UpdateReportDefinitionRequest.builder()
updateReportDefinitionRequest - A Consumer that will call methods on UpdateReportDefinitionRequest.Builder to create a
request.default ApplicationCostProfilerServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientstatic ApplicationCostProfilerAsyncClient create()
ApplicationCostProfilerAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static ApplicationCostProfilerAsyncClientBuilder builder()
ApplicationCostProfilerAsyncClient.Copyright © 2023. All rights reserved.