@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface CostExplorerAsyncClient extends AwsClient
builder() method.
You can use the Cost Explorer API 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. This might include the number of daily write operations for Amazon DynamoDB database tables in your production environment.
Service Endpoint
The Cost Explorer API provides the following endpoint:
https://ce.us-east-1.amazonaws.com
For information about the costs that are associated with the Cost Explorer API, see Amazon Web Services Cost Management Pricing.
| 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 CostExplorerAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
CostExplorerAsyncClient. |
static CostExplorerAsyncClient |
create()
Create a
CostExplorerAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<CreateAnomalyMonitorResponse> |
createAnomalyMonitor(Consumer<CreateAnomalyMonitorRequest.Builder> createAnomalyMonitorRequest)
Creates a new cost anomaly detection monitor with the requested type and monitor specification.
|
default CompletableFuture<CreateAnomalyMonitorResponse> |
createAnomalyMonitor(CreateAnomalyMonitorRequest createAnomalyMonitorRequest)
Creates a new cost anomaly detection monitor with the requested type and monitor specification.
|
default CompletableFuture<CreateAnomalySubscriptionResponse> |
createAnomalySubscription(Consumer<CreateAnomalySubscriptionRequest.Builder> createAnomalySubscriptionRequest)
Adds an alert subscription to a cost anomaly detection monitor.
|
default CompletableFuture<CreateAnomalySubscriptionResponse> |
createAnomalySubscription(CreateAnomalySubscriptionRequest createAnomalySubscriptionRequest)
Adds an alert subscription to a cost anomaly detection monitor.
|
default CompletableFuture<CreateCostCategoryDefinitionResponse> |
createCostCategoryDefinition(Consumer<CreateCostCategoryDefinitionRequest.Builder> createCostCategoryDefinitionRequest)
Creates a new Cost Category with the requested name and rules.
|
default CompletableFuture<CreateCostCategoryDefinitionResponse> |
createCostCategoryDefinition(CreateCostCategoryDefinitionRequest createCostCategoryDefinitionRequest)
Creates a new Cost Category with the requested name and rules.
|
default CompletableFuture<DeleteAnomalyMonitorResponse> |
deleteAnomalyMonitor(Consumer<DeleteAnomalyMonitorRequest.Builder> deleteAnomalyMonitorRequest)
Deletes a cost anomaly monitor.
|
default CompletableFuture<DeleteAnomalyMonitorResponse> |
deleteAnomalyMonitor(DeleteAnomalyMonitorRequest deleteAnomalyMonitorRequest)
Deletes a cost anomaly monitor.
|
default CompletableFuture<DeleteAnomalySubscriptionResponse> |
deleteAnomalySubscription(Consumer<DeleteAnomalySubscriptionRequest.Builder> deleteAnomalySubscriptionRequest)
Deletes a cost anomaly subscription.
|
default CompletableFuture<DeleteAnomalySubscriptionResponse> |
deleteAnomalySubscription(DeleteAnomalySubscriptionRequest deleteAnomalySubscriptionRequest)
Deletes a cost anomaly subscription.
|
default CompletableFuture<DeleteCostCategoryDefinitionResponse> |
deleteCostCategoryDefinition(Consumer<DeleteCostCategoryDefinitionRequest.Builder> deleteCostCategoryDefinitionRequest)
Deletes a Cost Category.
|
default CompletableFuture<DeleteCostCategoryDefinitionResponse> |
deleteCostCategoryDefinition(DeleteCostCategoryDefinitionRequest deleteCostCategoryDefinitionRequest)
Deletes a Cost Category.
|
default CompletableFuture<DescribeCostCategoryDefinitionResponse> |
describeCostCategoryDefinition(Consumer<DescribeCostCategoryDefinitionRequest.Builder> describeCostCategoryDefinitionRequest)
Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a Cost Category that's
defined in the account.
|
default CompletableFuture<DescribeCostCategoryDefinitionResponse> |
describeCostCategoryDefinition(DescribeCostCategoryDefinitionRequest describeCostCategoryDefinitionRequest)
Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a Cost Category that's
defined in the account.
|
default CompletableFuture<GetAnomaliesResponse> |
getAnomalies(Consumer<GetAnomaliesRequest.Builder> getAnomaliesRequest)
Retrieves all of the cost anomalies detected on your account during the time period that's specified by the
DateInterval object. |
default CompletableFuture<GetAnomaliesResponse> |
getAnomalies(GetAnomaliesRequest getAnomaliesRequest)
Retrieves all of the cost anomalies detected on your account during the time period that's specified by the
DateInterval object. |
default CompletableFuture<GetAnomalyMonitorsResponse> |
getAnomalyMonitors(Consumer<GetAnomalyMonitorsRequest.Builder> getAnomalyMonitorsRequest)
Retrieves the cost anomaly monitor definitions for your account.
|
default CompletableFuture<GetAnomalyMonitorsResponse> |
getAnomalyMonitors(GetAnomalyMonitorsRequest getAnomalyMonitorsRequest)
Retrieves the cost anomaly monitor definitions for your account.
|
default CompletableFuture<GetAnomalySubscriptionsResponse> |
getAnomalySubscriptions(Consumer<GetAnomalySubscriptionsRequest.Builder> getAnomalySubscriptionsRequest)
Retrieves the cost anomaly subscription objects for your account.
|
default CompletableFuture<GetAnomalySubscriptionsResponse> |
getAnomalySubscriptions(GetAnomalySubscriptionsRequest getAnomalySubscriptionsRequest)
Retrieves the cost anomaly subscription objects for your account.
|
default CompletableFuture<GetCostAndUsageResponse> |
getCostAndUsage(Consumer<GetCostAndUsageRequest.Builder> getCostAndUsageRequest)
Retrieves cost and usage metrics for your account.
|
default CompletableFuture<GetCostAndUsageResponse> |
getCostAndUsage(GetCostAndUsageRequest getCostAndUsageRequest)
Retrieves cost and usage metrics for your account.
|
default CompletableFuture<GetCostAndUsageWithResourcesResponse> |
getCostAndUsageWithResources(Consumer<GetCostAndUsageWithResourcesRequest.Builder> getCostAndUsageWithResourcesRequest)
Retrieves cost and usage metrics with resources for your account.
|
default CompletableFuture<GetCostAndUsageWithResourcesResponse> |
getCostAndUsageWithResources(GetCostAndUsageWithResourcesRequest getCostAndUsageWithResourcesRequest)
Retrieves cost and usage metrics with resources for your account.
|
default CompletableFuture<GetCostCategoriesResponse> |
getCostCategories(Consumer<GetCostCategoriesRequest.Builder> getCostCategoriesRequest)
Retrieves an array of Cost Category names and values incurred cost.
|
default CompletableFuture<GetCostCategoriesResponse> |
getCostCategories(GetCostCategoriesRequest getCostCategoriesRequest)
Retrieves an array of Cost Category names and values incurred cost.
|
default CompletableFuture<GetCostForecastResponse> |
getCostForecast(Consumer<GetCostForecastRequest.Builder> getCostForecastRequest)
Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time period
that you select, based on your past costs.
|
default CompletableFuture<GetCostForecastResponse> |
getCostForecast(GetCostForecastRequest getCostForecastRequest)
Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time period
that you select, based on your past costs.
|
default CompletableFuture<GetDimensionValuesResponse> |
getDimensionValues(Consumer<GetDimensionValuesRequest.Builder> getDimensionValuesRequest)
Retrieves all available filter values for a specified filter over a period of time.
|
default CompletableFuture<GetDimensionValuesResponse> |
getDimensionValues(GetDimensionValuesRequest getDimensionValuesRequest)
Retrieves all available filter values for a specified filter over a period of time.
|
default CompletableFuture<GetReservationCoverageResponse> |
getReservationCoverage(Consumer<GetReservationCoverageRequest.Builder> getReservationCoverageRequest)
Retrieves the reservation coverage for your account, which you can use to see how much of your Amazon Elastic
Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a
reservation.
|
default CompletableFuture<GetReservationCoverageResponse> |
getReservationCoverage(GetReservationCoverageRequest getReservationCoverageRequest)
Retrieves the reservation coverage for your account, which you can use to see how much of your Amazon Elastic
Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a
reservation.
|
default CompletableFuture<GetReservationPurchaseRecommendationResponse> |
getReservationPurchaseRecommendation(Consumer<GetReservationPurchaseRecommendationRequest.Builder> getReservationPurchaseRecommendationRequest)
Gets recommendations for reservation purchases.
|
default CompletableFuture<GetReservationPurchaseRecommendationResponse> |
getReservationPurchaseRecommendation(GetReservationPurchaseRecommendationRequest getReservationPurchaseRecommendationRequest)
Gets recommendations for reservation purchases.
|
default CompletableFuture<GetReservationUtilizationResponse> |
getReservationUtilization(Consumer<GetReservationUtilizationRequest.Builder> getReservationUtilizationRequest)
Retrieves the reservation utilization for your account.
|
default CompletableFuture<GetReservationUtilizationResponse> |
getReservationUtilization(GetReservationUtilizationRequest getReservationUtilizationRequest)
Retrieves the reservation utilization for your account.
|
default CompletableFuture<GetRightsizingRecommendationResponse> |
getRightsizingRecommendation(Consumer<GetRightsizingRecommendationRequest.Builder> getRightsizingRecommendationRequest)
Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.
|
default CompletableFuture<GetRightsizingRecommendationResponse> |
getRightsizingRecommendation(GetRightsizingRecommendationRequest getRightsizingRecommendationRequest)
Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.
|
default CompletableFuture<GetSavingsPlansCoverageResponse> |
getSavingsPlansCoverage(Consumer<GetSavingsPlansCoverageRequest.Builder> getSavingsPlansCoverageRequest)
Retrieves the Savings Plans covered for your account.
|
default CompletableFuture<GetSavingsPlansCoverageResponse> |
getSavingsPlansCoverage(GetSavingsPlansCoverageRequest getSavingsPlansCoverageRequest)
Retrieves the Savings Plans covered for your account.
|
default GetSavingsPlansCoveragePublisher |
getSavingsPlansCoveragePaginator(Consumer<GetSavingsPlansCoverageRequest.Builder> getSavingsPlansCoverageRequest)
Retrieves the Savings Plans covered for your account.
|
default GetSavingsPlansCoveragePublisher |
getSavingsPlansCoveragePaginator(GetSavingsPlansCoverageRequest getSavingsPlansCoverageRequest)
Retrieves the Savings Plans covered for your account.
|
default CompletableFuture<GetSavingsPlansPurchaseRecommendationResponse> |
getSavingsPlansPurchaseRecommendation(Consumer<GetSavingsPlansPurchaseRecommendationRequest.Builder> getSavingsPlansPurchaseRecommendationRequest)
Retrieves the Savings Plans recommendations for your account.
|
default CompletableFuture<GetSavingsPlansPurchaseRecommendationResponse> |
getSavingsPlansPurchaseRecommendation(GetSavingsPlansPurchaseRecommendationRequest getSavingsPlansPurchaseRecommendationRequest)
Retrieves the Savings Plans recommendations for your account.
|
default CompletableFuture<GetSavingsPlansUtilizationResponse> |
getSavingsPlansUtilization(Consumer<GetSavingsPlansUtilizationRequest.Builder> getSavingsPlansUtilizationRequest)
Retrieves the Savings Plans utilization for your account across date ranges with daily or monthly granularity.
|
default CompletableFuture<GetSavingsPlansUtilizationResponse> |
getSavingsPlansUtilization(GetSavingsPlansUtilizationRequest getSavingsPlansUtilizationRequest)
Retrieves the Savings Plans utilization for your account across date ranges with daily or monthly granularity.
|
default CompletableFuture<GetSavingsPlansUtilizationDetailsResponse> |
getSavingsPlansUtilizationDetails(Consumer<GetSavingsPlansUtilizationDetailsRequest.Builder> getSavingsPlansUtilizationDetailsRequest)
Retrieves attribute data along with aggregate utilization and savings data for a given time period.
|
default CompletableFuture<GetSavingsPlansUtilizationDetailsResponse> |
getSavingsPlansUtilizationDetails(GetSavingsPlansUtilizationDetailsRequest getSavingsPlansUtilizationDetailsRequest)
Retrieves attribute data along with aggregate utilization and savings data for a given time period.
|
default GetSavingsPlansUtilizationDetailsPublisher |
getSavingsPlansUtilizationDetailsPaginator(Consumer<GetSavingsPlansUtilizationDetailsRequest.Builder> getSavingsPlansUtilizationDetailsRequest)
Retrieves attribute data along with aggregate utilization and savings data for a given time period.
|
default GetSavingsPlansUtilizationDetailsPublisher |
getSavingsPlansUtilizationDetailsPaginator(GetSavingsPlansUtilizationDetailsRequest getSavingsPlansUtilizationDetailsRequest)
Retrieves attribute data along with aggregate utilization and savings data for a given time period.
|
default CompletableFuture<GetTagsResponse> |
getTags(Consumer<GetTagsRequest.Builder> getTagsRequest)
Queries for available tag keys and tag values for a specified period.
|
default CompletableFuture<GetTagsResponse> |
getTags(GetTagsRequest getTagsRequest)
Queries for available tag keys and tag values for a specified period.
|
default CompletableFuture<GetUsageForecastResponse> |
getUsageForecast(Consumer<GetUsageForecastRequest.Builder> getUsageForecastRequest)
Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period
that you select, based on your past usage.
|
default CompletableFuture<GetUsageForecastResponse> |
getUsageForecast(GetUsageForecastRequest getUsageForecastRequest)
Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period
that you select, based on your past usage.
|
default CompletableFuture<ListCostAllocationTagsResponse> |
listCostAllocationTags(Consumer<ListCostAllocationTagsRequest.Builder> listCostAllocationTagsRequest)
Get a list of cost allocation tags.
|
default CompletableFuture<ListCostAllocationTagsResponse> |
listCostAllocationTags(ListCostAllocationTagsRequest listCostAllocationTagsRequest)
Get a list of cost allocation tags.
|
default ListCostAllocationTagsPublisher |
listCostAllocationTagsPaginator(Consumer<ListCostAllocationTagsRequest.Builder> listCostAllocationTagsRequest)
Get a list of cost allocation tags.
|
default ListCostAllocationTagsPublisher |
listCostAllocationTagsPaginator(ListCostAllocationTagsRequest listCostAllocationTagsRequest)
Get a list of cost allocation tags.
|
default CompletableFuture<ListCostCategoryDefinitionsResponse> |
listCostCategoryDefinitions(Consumer<ListCostCategoryDefinitionsRequest.Builder> listCostCategoryDefinitionsRequest)
Returns the name, Amazon Resource Name (ARN),
NumberOfRules and effective dates of all Cost
Categories defined in the account. |
default CompletableFuture<ListCostCategoryDefinitionsResponse> |
listCostCategoryDefinitions(ListCostCategoryDefinitionsRequest listCostCategoryDefinitionsRequest)
Returns the name, Amazon Resource Name (ARN),
NumberOfRules and effective dates of all Cost
Categories defined in the account. |
default ListCostCategoryDefinitionsPublisher |
listCostCategoryDefinitionsPaginator(Consumer<ListCostCategoryDefinitionsRequest.Builder> listCostCategoryDefinitionsRequest)
Returns the name, Amazon Resource Name (ARN),
NumberOfRules and effective dates of all Cost
Categories defined in the account. |
default ListCostCategoryDefinitionsPublisher |
listCostCategoryDefinitionsPaginator(ListCostCategoryDefinitionsRequest listCostCategoryDefinitionsRequest)
Returns the name, Amazon Resource Name (ARN),
NumberOfRules and effective dates of all Cost
Categories defined in the account. |
default CompletableFuture<ListSavingsPlansPurchaseRecommendationGenerationResponse> |
listSavingsPlansPurchaseRecommendationGeneration(Consumer<ListSavingsPlansPurchaseRecommendationGenerationRequest.Builder> listSavingsPlansPurchaseRecommendationGenerationRequest)
Retrieves a list of your historical recommendation generations within the past 30 days.
|
default CompletableFuture<ListSavingsPlansPurchaseRecommendationGenerationResponse> |
listSavingsPlansPurchaseRecommendationGeneration(ListSavingsPlansPurchaseRecommendationGenerationRequest listSavingsPlansPurchaseRecommendationGenerationRequest)
Retrieves a list of your historical recommendation generations within the past 30 days.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).
|
default CompletableFuture<ProvideAnomalyFeedbackResponse> |
provideAnomalyFeedback(Consumer<ProvideAnomalyFeedbackRequest.Builder> provideAnomalyFeedbackRequest)
Modifies the feedback property of a given cost anomaly.
|
default CompletableFuture<ProvideAnomalyFeedbackResponse> |
provideAnomalyFeedback(ProvideAnomalyFeedbackRequest provideAnomalyFeedbackRequest)
Modifies the feedback property of a given cost anomaly.
|
default CostExplorerServiceClientConfiguration |
serviceClientConfiguration() |
default CompletableFuture<StartSavingsPlansPurchaseRecommendationGenerationResponse> |
startSavingsPlansPurchaseRecommendationGeneration(Consumer<StartSavingsPlansPurchaseRecommendationGenerationRequest.Builder> startSavingsPlansPurchaseRecommendationGenerationRequest)
Requests a Savings Plans recommendation generation.
|
default CompletableFuture<StartSavingsPlansPurchaseRecommendationGenerationResponse> |
startSavingsPlansPurchaseRecommendationGeneration(StartSavingsPlansPurchaseRecommendationGenerationRequest startSavingsPlansPurchaseRecommendationGenerationRequest)
Requests a Savings Plans recommendation generation.
|
default CompletableFuture<TagResourceResponse> |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
An API operation for adding one or more tags (key-value pairs) to a resource.
|
default CompletableFuture<TagResourceResponse> |
tagResource(TagResourceRequest tagResourceRequest)
An API operation for adding one or more tags (key-value pairs) to a resource.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes one or more tags from a resource.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from a resource.
|
default CompletableFuture<UpdateAnomalyMonitorResponse> |
updateAnomalyMonitor(Consumer<UpdateAnomalyMonitorRequest.Builder> updateAnomalyMonitorRequest)
Updates an existing cost anomaly monitor.
|
default CompletableFuture<UpdateAnomalyMonitorResponse> |
updateAnomalyMonitor(UpdateAnomalyMonitorRequest updateAnomalyMonitorRequest)
Updates an existing cost anomaly monitor.
|
default CompletableFuture<UpdateAnomalySubscriptionResponse> |
updateAnomalySubscription(Consumer<UpdateAnomalySubscriptionRequest.Builder> updateAnomalySubscriptionRequest)
Updates an existing cost anomaly monitor subscription.
|
default CompletableFuture<UpdateAnomalySubscriptionResponse> |
updateAnomalySubscription(UpdateAnomalySubscriptionRequest updateAnomalySubscriptionRequest)
Updates an existing cost anomaly monitor subscription.
|
default CompletableFuture<UpdateCostAllocationTagsStatusResponse> |
updateCostAllocationTagsStatus(Consumer<UpdateCostAllocationTagsStatusRequest.Builder> updateCostAllocationTagsStatusRequest)
Updates status for cost allocation tags in bulk, with maximum batch size of 20.
|
default CompletableFuture<UpdateCostAllocationTagsStatusResponse> |
updateCostAllocationTagsStatus(UpdateCostAllocationTagsStatusRequest updateCostAllocationTagsStatusRequest)
Updates status for cost allocation tags in bulk, with maximum batch size of 20.
|
default CompletableFuture<UpdateCostCategoryDefinitionResponse> |
updateCostCategoryDefinition(Consumer<UpdateCostCategoryDefinitionRequest.Builder> updateCostCategoryDefinitionRequest)
Updates an existing Cost Category.
|
default CompletableFuture<UpdateCostCategoryDefinitionResponse> |
updateCostCategoryDefinition(UpdateCostCategoryDefinitionRequest updateCostCategoryDefinitionRequest)
Updates an existing Cost Category.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CompletableFuture<CreateAnomalyMonitorResponse> createAnomalyMonitor(CreateAnomalyMonitorRequest createAnomalyMonitorRequest)
Creates a new cost anomaly detection monitor with the requested type and monitor specification.
createAnomalyMonitorRequest - default CompletableFuture<CreateAnomalyMonitorResponse> createAnomalyMonitor(Consumer<CreateAnomalyMonitorRequest.Builder> createAnomalyMonitorRequest)
Creates a new cost anomaly detection monitor with the requested type and monitor specification.
This is a convenience which creates an instance of the CreateAnomalyMonitorRequest.Builder avoiding the
need to create one manually via CreateAnomalyMonitorRequest.builder()
createAnomalyMonitorRequest - A Consumer that will call methods on CreateAnomalyMonitorRequest.Builder to create a
request.default CompletableFuture<CreateAnomalySubscriptionResponse> createAnomalySubscription(CreateAnomalySubscriptionRequest createAnomalySubscriptionRequest)
Adds an alert subscription to a cost anomaly detection monitor. You can use each subscription to define subscribers with email or SNS notifications. Email subscribers can set an absolute or percentage threshold and a time frequency for receiving notifications.
createAnomalySubscriptionRequest - default CompletableFuture<CreateAnomalySubscriptionResponse> createAnomalySubscription(Consumer<CreateAnomalySubscriptionRequest.Builder> createAnomalySubscriptionRequest)
Adds an alert subscription to a cost anomaly detection monitor. You can use each subscription to define subscribers with email or SNS notifications. Email subscribers can set an absolute or percentage threshold and a time frequency for receiving notifications.
This is a convenience which creates an instance of the CreateAnomalySubscriptionRequest.Builder avoiding
the need to create one manually via CreateAnomalySubscriptionRequest.builder()
createAnomalySubscriptionRequest - A Consumer that will call methods on CreateAnomalySubscriptionRequest.Builder to create a
request.default CompletableFuture<CreateCostCategoryDefinitionResponse> createCostCategoryDefinition(CreateCostCategoryDefinitionRequest createCostCategoryDefinitionRequest)
Creates a new Cost Category with the requested name and rules.
createCostCategoryDefinitionRequest - default CompletableFuture<CreateCostCategoryDefinitionResponse> createCostCategoryDefinition(Consumer<CreateCostCategoryDefinitionRequest.Builder> createCostCategoryDefinitionRequest)
Creates a new Cost Category with the requested name and rules.
This is a convenience which creates an instance of the CreateCostCategoryDefinitionRequest.Builder
avoiding the need to create one manually via CreateCostCategoryDefinitionRequest.builder()
createCostCategoryDefinitionRequest - A Consumer that will call methods on CreateCostCategoryDefinitionRequest.Builder to create
a request.default CompletableFuture<DeleteAnomalyMonitorResponse> deleteAnomalyMonitor(DeleteAnomalyMonitorRequest deleteAnomalyMonitorRequest)
Deletes a cost anomaly monitor.
deleteAnomalyMonitorRequest - default CompletableFuture<DeleteAnomalyMonitorResponse> deleteAnomalyMonitor(Consumer<DeleteAnomalyMonitorRequest.Builder> deleteAnomalyMonitorRequest)
Deletes a cost anomaly monitor.
This is a convenience which creates an instance of the DeleteAnomalyMonitorRequest.Builder avoiding the
need to create one manually via DeleteAnomalyMonitorRequest.builder()
deleteAnomalyMonitorRequest - A Consumer that will call methods on DeleteAnomalyMonitorRequest.Builder to create a
request.default CompletableFuture<DeleteAnomalySubscriptionResponse> deleteAnomalySubscription(DeleteAnomalySubscriptionRequest deleteAnomalySubscriptionRequest)
Deletes a cost anomaly subscription.
deleteAnomalySubscriptionRequest - default CompletableFuture<DeleteAnomalySubscriptionResponse> deleteAnomalySubscription(Consumer<DeleteAnomalySubscriptionRequest.Builder> deleteAnomalySubscriptionRequest)
Deletes a cost anomaly subscription.
This is a convenience which creates an instance of the DeleteAnomalySubscriptionRequest.Builder avoiding
the need to create one manually via DeleteAnomalySubscriptionRequest.builder()
deleteAnomalySubscriptionRequest - A Consumer that will call methods on DeleteAnomalySubscriptionRequest.Builder to create a
request.default CompletableFuture<DeleteCostCategoryDefinitionResponse> deleteCostCategoryDefinition(DeleteCostCategoryDefinitionRequest deleteCostCategoryDefinitionRequest)
Deletes a Cost Category. Expenses from this month going forward will no longer be categorized with this Cost Category.
deleteCostCategoryDefinitionRequest - default CompletableFuture<DeleteCostCategoryDefinitionResponse> deleteCostCategoryDefinition(Consumer<DeleteCostCategoryDefinitionRequest.Builder> deleteCostCategoryDefinitionRequest)
Deletes a Cost Category. Expenses from this month going forward will no longer be categorized with this Cost Category.
This is a convenience which creates an instance of the DeleteCostCategoryDefinitionRequest.Builder
avoiding the need to create one manually via DeleteCostCategoryDefinitionRequest.builder()
deleteCostCategoryDefinitionRequest - A Consumer that will call methods on DeleteCostCategoryDefinitionRequest.Builder to create
a request.default CompletableFuture<DescribeCostCategoryDefinitionResponse> describeCostCategoryDefinition(DescribeCostCategoryDefinitionRequest describeCostCategoryDefinitionRequest)
Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a Cost Category that's defined in the account.
You have the option to use EffectiveOn to return a Cost Category that's active on a specific date.
If there's no EffectiveOn specified, you see a Cost Category that's effective on the current date.
If Cost Category is still effective, EffectiveEnd is omitted in the response.
describeCostCategoryDefinitionRequest - default CompletableFuture<DescribeCostCategoryDefinitionResponse> describeCostCategoryDefinition(Consumer<DescribeCostCategoryDefinitionRequest.Builder> describeCostCategoryDefinitionRequest)
Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a Cost Category that's defined in the account.
You have the option to use EffectiveOn to return a Cost Category that's active on a specific date.
If there's no EffectiveOn specified, you see a Cost Category that's effective on the current date.
If Cost Category is still effective, EffectiveEnd is omitted in the response.
This is a convenience which creates an instance of the DescribeCostCategoryDefinitionRequest.Builder
avoiding the need to create one manually via DescribeCostCategoryDefinitionRequest.builder()
describeCostCategoryDefinitionRequest - A Consumer that will call methods on DescribeCostCategoryDefinitionRequest.Builder to
create a request.default CompletableFuture<GetAnomaliesResponse> getAnomalies(GetAnomaliesRequest getAnomaliesRequest)
Retrieves all of the cost anomalies detected on your account during the time period that's specified by the
DateInterval object. Anomalies are available for up to 90 days.
getAnomaliesRequest - default CompletableFuture<GetAnomaliesResponse> getAnomalies(Consumer<GetAnomaliesRequest.Builder> getAnomaliesRequest)
Retrieves all of the cost anomalies detected on your account during the time period that's specified by the
DateInterval object. Anomalies are available for up to 90 days.
This is a convenience which creates an instance of the GetAnomaliesRequest.Builder avoiding the need to
create one manually via GetAnomaliesRequest.builder()
getAnomaliesRequest - A Consumer that will call methods on GetAnomaliesRequest.Builder to create a request.default CompletableFuture<GetAnomalyMonitorsResponse> getAnomalyMonitors(GetAnomalyMonitorsRequest getAnomalyMonitorsRequest)
Retrieves the cost anomaly monitor definitions for your account. You can filter using a list of cost anomaly monitor Amazon Resource Names (ARNs).
getAnomalyMonitorsRequest - default CompletableFuture<GetAnomalyMonitorsResponse> getAnomalyMonitors(Consumer<GetAnomalyMonitorsRequest.Builder> getAnomalyMonitorsRequest)
Retrieves the cost anomaly monitor definitions for your account. You can filter using a list of cost anomaly monitor Amazon Resource Names (ARNs).
This is a convenience which creates an instance of the GetAnomalyMonitorsRequest.Builder avoiding the
need to create one manually via GetAnomalyMonitorsRequest.builder()
getAnomalyMonitorsRequest - A Consumer that will call methods on GetAnomalyMonitorsRequest.Builder to create a
request.default CompletableFuture<GetAnomalySubscriptionsResponse> getAnomalySubscriptions(GetAnomalySubscriptionsRequest getAnomalySubscriptionsRequest)
Retrieves the cost anomaly subscription objects for your account. You can filter using a list of cost anomaly monitor Amazon Resource Names (ARNs).
getAnomalySubscriptionsRequest - default CompletableFuture<GetAnomalySubscriptionsResponse> getAnomalySubscriptions(Consumer<GetAnomalySubscriptionsRequest.Builder> getAnomalySubscriptionsRequest)
Retrieves the cost anomaly subscription objects for your account. You can filter using a list of cost anomaly monitor Amazon Resource Names (ARNs).
This is a convenience which creates an instance of the GetAnomalySubscriptionsRequest.Builder avoiding
the need to create one manually via GetAnomalySubscriptionsRequest.builder()
getAnomalySubscriptionsRequest - A Consumer that will call methods on GetAnomalySubscriptionsRequest.Builder to create a
request.default CompletableFuture<GetCostAndUsageResponse> getCostAndUsage(GetCostAndUsageRequest getCostAndUsageRequest)
Retrieves cost and usage metrics for your account. You can specify which cost and usage-related metric that you
want the request to return. For example, you can specify BlendedCosts or UsageQuantity.
You can also filter and group your data by various dimensions, such as SERVICE or AZ,
in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all
member accounts.
For information about filter limitations, see Quotas and restrictions in the Billing and Cost Management User Guide.
getCostAndUsageRequest - default CompletableFuture<GetCostAndUsageResponse> getCostAndUsage(Consumer<GetCostAndUsageRequest.Builder> getCostAndUsageRequest)
Retrieves cost and usage metrics for your account. You can specify which cost and usage-related metric that you
want the request to return. For example, you can specify BlendedCosts or UsageQuantity.
You can also filter and group your data by various dimensions, such as SERVICE or AZ,
in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all
member accounts.
For information about filter limitations, see Quotas and restrictions in the Billing and Cost Management User Guide.
This is a convenience which creates an instance of the GetCostAndUsageRequest.Builder avoiding the need
to create one manually via GetCostAndUsageRequest.builder()
getCostAndUsageRequest - A Consumer that will call methods on GetCostAndUsageRequest.Builder to create a request.default CompletableFuture<GetCostAndUsageWithResourcesResponse> getCostAndUsageWithResources(GetCostAndUsageWithResourcesRequest getCostAndUsageWithResourcesRequest)
Retrieves cost and usage metrics with resources 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 SERVICE or AZ, in a
specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all
member accounts. This API is currently available for the Amazon Elastic Compute Cloud – Compute service only.
This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings page. For information about how to access the Settings page, see Controlling Access for Cost Explorer in the Billing and Cost Management User Guide.
getCostAndUsageWithResourcesRequest - default CompletableFuture<GetCostAndUsageWithResourcesResponse> getCostAndUsageWithResources(Consumer<GetCostAndUsageWithResourcesRequest.Builder> getCostAndUsageWithResourcesRequest)
Retrieves cost and usage metrics with resources 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 SERVICE or AZ, in a
specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all
member accounts. This API is currently available for the Amazon Elastic Compute Cloud – Compute service only.
This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings page. For information about how to access the Settings page, see Controlling Access for Cost Explorer in the Billing and Cost Management User Guide.
This is a convenience which creates an instance of the GetCostAndUsageWithResourcesRequest.Builder
avoiding the need to create one manually via GetCostAndUsageWithResourcesRequest.builder()
getCostAndUsageWithResourcesRequest - A Consumer that will call methods on GetCostAndUsageWithResourcesRequest.Builder to create
a request.default CompletableFuture<GetCostCategoriesResponse> getCostCategories(GetCostCategoriesRequest getCostCategoriesRequest)
Retrieves an array of Cost Category names and values incurred cost.
If some Cost Category names and values are not associated with any cost, they will not be returned by this API.
getCostCategoriesRequest - default CompletableFuture<GetCostCategoriesResponse> getCostCategories(Consumer<GetCostCategoriesRequest.Builder> getCostCategoriesRequest)
Retrieves an array of Cost Category names and values incurred cost.
If some Cost Category names and values are not associated with any cost, they will not be returned by this API.
This is a convenience which creates an instance of the GetCostCategoriesRequest.Builder avoiding the need
to create one manually via GetCostCategoriesRequest.builder()
getCostCategoriesRequest - A Consumer that will call methods on GetCostCategoriesRequest.Builder to create a request.default CompletableFuture<GetCostForecastResponse> getCostForecast(GetCostForecastRequest getCostForecastRequest)
Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time period that you select, based on your past costs.
getCostForecastRequest - default CompletableFuture<GetCostForecastResponse> getCostForecast(Consumer<GetCostForecastRequest.Builder> getCostForecastRequest)
Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time period that you select, based on your past costs.
This is a convenience which creates an instance of the GetCostForecastRequest.Builder avoiding the need
to create one manually via GetCostForecastRequest.builder()
getCostForecastRequest - A Consumer that will call methods on GetCostForecastRequest.Builder to create a request.default CompletableFuture<GetDimensionValuesResponse> getDimensionValues(GetDimensionValuesRequest getDimensionValuesRequest)
Retrieves all available filter values for a specified filter over a period of time. You can search the dimension values for an arbitrary string.
getDimensionValuesRequest - default CompletableFuture<GetDimensionValuesResponse> getDimensionValues(Consumer<GetDimensionValuesRequest.Builder> getDimensionValuesRequest)
Retrieves all available filter values for a specified filter over a period of time. You can search the dimension values for an arbitrary string.
This is a convenience which creates an instance of the GetDimensionValuesRequest.Builder avoiding the
need to create one manually via GetDimensionValuesRequest.builder()
getDimensionValuesRequest - A Consumer that will call methods on GetDimensionValuesRequest.Builder to create a
request.default CompletableFuture<GetReservationCoverageResponse> getReservationCoverage(GetReservationCoverageRequest getReservationCoverageRequest)
Retrieves the reservation coverage for your account, which you can use to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a reservation. An organization's management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions. For any time period, you can filter data about reservation usage by the following dimensions:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
To determine valid values for a dimension, use the GetDimensionValues operation.
getReservationCoverageRequest - You can use the following request parameters to query for how much of your instance usage a reservation
covered.default CompletableFuture<GetReservationCoverageResponse> getReservationCoverage(Consumer<GetReservationCoverageRequest.Builder> getReservationCoverageRequest)
Retrieves the reservation coverage for your account, which you can use to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a reservation. An organization's management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions. For any time period, you can filter data about reservation usage by the following dimensions:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
To determine valid values for a dimension, use the GetDimensionValues operation.
This is a convenience which creates an instance of the GetReservationCoverageRequest.Builder avoiding the
need to create one manually via GetReservationCoverageRequest.builder()
getReservationCoverageRequest - A Consumer that will call methods on GetReservationCoverageRequest.Builder to create a
request. You can use the following request parameters to query for how much of your instance usage a
reservation covered.default CompletableFuture<GetReservationPurchaseRecommendationResponse> getReservationPurchaseRecommendation(GetReservationPurchaseRecommendationRequest getReservationPurchaseRecommendationRequest)
Gets recommendations for reservation purchases. These recommendations might help you to reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing.
Amazon Web Services generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage into categories that are eligible for a reservation. After Amazon Web Services has these categories, it simulates every combination of reservations in each category of usage to identify the best number of each type of Reserved Instance (RI) to purchase to maximize your estimated savings.
For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family
usage in the US West (Oregon) Region and recommends that you buy size-flexible regional reservations to apply to
the c4 family usage. Amazon Web Services recommends the smallest size instance in an instance family. This makes
it easier to purchase a size-flexible Reserved Instance (RI). Amazon Web Services also shows the equal number of
normalized units. This way, you can purchase any instance size that you want. For this example, your RI
recommendation is for c4.large because that is the smallest size instance in the c4 instance family.
getReservationPurchaseRecommendationRequest - default CompletableFuture<GetReservationPurchaseRecommendationResponse> getReservationPurchaseRecommendation(Consumer<GetReservationPurchaseRecommendationRequest.Builder> getReservationPurchaseRecommendationRequest)
Gets recommendations for reservation purchases. These recommendations might help you to reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing.
Amazon Web Services generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage into categories that are eligible for a reservation. After Amazon Web Services has these categories, it simulates every combination of reservations in each category of usage to identify the best number of each type of Reserved Instance (RI) to purchase to maximize your estimated savings.
For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family
usage in the US West (Oregon) Region and recommends that you buy size-flexible regional reservations to apply to
the c4 family usage. Amazon Web Services recommends the smallest size instance in an instance family. This makes
it easier to purchase a size-flexible Reserved Instance (RI). Amazon Web Services also shows the equal number of
normalized units. This way, you can purchase any instance size that you want. For this example, your RI
recommendation is for c4.large because that is the smallest size instance in the c4 instance family.
This is a convenience which creates an instance of the
GetReservationPurchaseRecommendationRequest.Builder avoiding the need to create one manually via
GetReservationPurchaseRecommendationRequest.builder()
getReservationPurchaseRecommendationRequest - A Consumer that will call methods on GetReservationPurchaseRecommendationRequest.Builder
to create a request.default CompletableFuture<GetReservationUtilizationResponse> getReservationUtilization(GetReservationUtilizationRequest getReservationUtilizationRequest)
Retrieves the reservation utilization for your account. Management account in an organization have access to
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.
getReservationUtilizationRequest - default CompletableFuture<GetReservationUtilizationResponse> getReservationUtilization(Consumer<GetReservationUtilizationRequest.Builder> getReservationUtilizationRequest)
Retrieves the reservation utilization for your account. Management account in an organization have access to
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.
This is a convenience which creates an instance of the GetReservationUtilizationRequest.Builder avoiding
the need to create one manually via GetReservationUtilizationRequest.builder()
getReservationUtilizationRequest - A Consumer that will call methods on GetReservationUtilizationRequest.Builder to create a
request.default CompletableFuture<GetRightsizingRecommendationResponse> getRightsizingRecommendation(GetRightsizingRecommendationRequest getRightsizingRecommendationRequest)
Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.
Recommendations are generated to either downsize or terminate instances, along with providing savings detail and metrics. For more information about calculation and function, see Optimizing Your Cost with Rightsizing Recommendations in the Billing and Cost Management User Guide.
getRightsizingRecommendationRequest - default CompletableFuture<GetRightsizingRecommendationResponse> getRightsizingRecommendation(Consumer<GetRightsizingRecommendationRequest.Builder> getRightsizingRecommendationRequest)
Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.
Recommendations are generated to either downsize or terminate instances, along with providing savings detail and metrics. For more information about calculation and function, see Optimizing Your Cost with Rightsizing Recommendations in the Billing and Cost Management User Guide.
This is a convenience which creates an instance of the GetRightsizingRecommendationRequest.Builder
avoiding the need to create one manually via GetRightsizingRecommendationRequest.builder()
getRightsizingRecommendationRequest - A Consumer that will call methods on GetRightsizingRecommendationRequest.Builder to create
a request.default CompletableFuture<GetSavingsPlansCoverageResponse> getSavingsPlansCoverage(GetSavingsPlansCoverageRequest getSavingsPlansCoverageRequest)
Retrieves the Savings Plans covered for your account. This enables you to see how much of your cost is covered by a Savings Plan. An organization’s management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions. For any time period, you can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
To determine valid values for a dimension, use the GetDimensionValues operation.
getSavingsPlansCoverageRequest - default CompletableFuture<GetSavingsPlansCoverageResponse> getSavingsPlansCoverage(Consumer<GetSavingsPlansCoverageRequest.Builder> getSavingsPlansCoverageRequest)
Retrieves the Savings Plans covered for your account. This enables you to see how much of your cost is covered by a Savings Plan. An organization’s management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions. For any time period, you can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
To determine valid values for a dimension, use the GetDimensionValues operation.
This is a convenience which creates an instance of the GetSavingsPlansCoverageRequest.Builder avoiding
the need to create one manually via GetSavingsPlansCoverageRequest.builder()
getSavingsPlansCoverageRequest - A Consumer that will call methods on GetSavingsPlansCoverageRequest.Builder to create a
request.default GetSavingsPlansCoveragePublisher getSavingsPlansCoveragePaginator(GetSavingsPlansCoverageRequest getSavingsPlansCoverageRequest)
Retrieves the Savings Plans covered for your account. This enables you to see how much of your cost is covered by a Savings Plan. An organization’s management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions. For any time period, you can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
To determine valid values for a dimension, use the GetDimensionValues operation.
This is a variant of
getSavingsPlansCoverage(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansCoverageRequest)
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.costexplorer.paginators.GetSavingsPlansCoveragePublisher publisher = client.getSavingsPlansCoveragePaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costexplorer.paginators.GetSavingsPlansCoveragePublisher publisher = client.getSavingsPlansCoveragePaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansCoverageResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansCoverageResponse 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
getSavingsPlansCoverage(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansCoverageRequest)
operation.
getSavingsPlansCoverageRequest - default GetSavingsPlansCoveragePublisher getSavingsPlansCoveragePaginator(Consumer<GetSavingsPlansCoverageRequest.Builder> getSavingsPlansCoverageRequest)
Retrieves the Savings Plans covered for your account. This enables you to see how much of your cost is covered by a Savings Plan. An organization’s management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions. For any time period, you can filter data for Savings Plans usage with the following dimensions:
LINKED_ACCOUNT
REGION
SERVICE
INSTANCE_FAMILY
To determine valid values for a dimension, use the GetDimensionValues operation.
This is a variant of
getSavingsPlansCoverage(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansCoverageRequest)
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.costexplorer.paginators.GetSavingsPlansCoveragePublisher publisher = client.getSavingsPlansCoveragePaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costexplorer.paginators.GetSavingsPlansCoveragePublisher publisher = client.getSavingsPlansCoveragePaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansCoverageResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansCoverageResponse 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
getSavingsPlansCoverage(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansCoverageRequest)
operation.
This is a convenience which creates an instance of the GetSavingsPlansCoverageRequest.Builder avoiding
the need to create one manually via GetSavingsPlansCoverageRequest.builder()
getSavingsPlansCoverageRequest - A Consumer that will call methods on GetSavingsPlansCoverageRequest.Builder to create a
request.default CompletableFuture<GetSavingsPlansPurchaseRecommendationResponse> getSavingsPlansPurchaseRecommendation(GetSavingsPlansPurchaseRecommendationRequest getSavingsPlansPurchaseRecommendationRequest)
Retrieves the Savings Plans recommendations for your account. First use
StartSavingsPlansPurchaseRecommendationGeneration to generate a new set of recommendations, and then
use GetSavingsPlansPurchaseRecommendation to retrieve them.
getSavingsPlansPurchaseRecommendationRequest - default CompletableFuture<GetSavingsPlansPurchaseRecommendationResponse> getSavingsPlansPurchaseRecommendation(Consumer<GetSavingsPlansPurchaseRecommendationRequest.Builder> getSavingsPlansPurchaseRecommendationRequest)
Retrieves the Savings Plans recommendations for your account. First use
StartSavingsPlansPurchaseRecommendationGeneration to generate a new set of recommendations, and then
use GetSavingsPlansPurchaseRecommendation to retrieve them.
This is a convenience which creates an instance of the
GetSavingsPlansPurchaseRecommendationRequest.Builder avoiding the need to create one manually via
GetSavingsPlansPurchaseRecommendationRequest.builder()
getSavingsPlansPurchaseRecommendationRequest - A Consumer that will call methods on GetSavingsPlansPurchaseRecommendationRequest.Builder
to create a request.default CompletableFuture<GetSavingsPlansUtilizationResponse> getSavingsPlansUtilization(GetSavingsPlansUtilizationRequest getSavingsPlansUtilizationRequest)
Retrieves the Savings Plans utilization for your account across date ranges with daily or monthly granularity.
Management account in an organization have access to member accounts. You can use GetDimensionValues
in SAVINGS_PLANS to determine the possible dimension values.
You can't group by any dimension values for GetSavingsPlansUtilization.
getSavingsPlansUtilizationRequest - default CompletableFuture<GetSavingsPlansUtilizationResponse> getSavingsPlansUtilization(Consumer<GetSavingsPlansUtilizationRequest.Builder> getSavingsPlansUtilizationRequest)
Retrieves the Savings Plans utilization for your account across date ranges with daily or monthly granularity.
Management account in an organization have access to member accounts. You can use GetDimensionValues
in SAVINGS_PLANS to determine the possible dimension values.
You can't group by any dimension values for GetSavingsPlansUtilization.
This is a convenience which creates an instance of the GetSavingsPlansUtilizationRequest.Builder avoiding
the need to create one manually via GetSavingsPlansUtilizationRequest.builder()
getSavingsPlansUtilizationRequest - A Consumer that will call methods on GetSavingsPlansUtilizationRequest.Builder to create a
request.default CompletableFuture<GetSavingsPlansUtilizationDetailsResponse> getSavingsPlansUtilizationDetails(GetSavingsPlansUtilizationDetailsRequest getSavingsPlansUtilizationDetailsRequest)
Retrieves attribute data along with aggregate utilization and savings data for a given time period. This doesn't
support granular or grouped data (daily/monthly) in response. You can't retrieve data by dates in a single
response similar to GetSavingsPlanUtilization, but you have the option to make multiple calls to
GetSavingsPlanUtilizationDetails by providing individual dates. You can use
GetDimensionValues in SAVINGS_PLANS to determine the possible dimension values.
GetSavingsPlanUtilizationDetails internally groups data by SavingsPlansArn.
getSavingsPlansUtilizationDetailsRequest - default CompletableFuture<GetSavingsPlansUtilizationDetailsResponse> getSavingsPlansUtilizationDetails(Consumer<GetSavingsPlansUtilizationDetailsRequest.Builder> getSavingsPlansUtilizationDetailsRequest)
Retrieves attribute data along with aggregate utilization and savings data for a given time period. This doesn't
support granular or grouped data (daily/monthly) in response. You can't retrieve data by dates in a single
response similar to GetSavingsPlanUtilization, but you have the option to make multiple calls to
GetSavingsPlanUtilizationDetails by providing individual dates. You can use
GetDimensionValues in SAVINGS_PLANS to determine the possible dimension values.
GetSavingsPlanUtilizationDetails internally groups data by SavingsPlansArn.
This is a convenience which creates an instance of the GetSavingsPlansUtilizationDetailsRequest.Builder
avoiding the need to create one manually via GetSavingsPlansUtilizationDetailsRequest.builder()
getSavingsPlansUtilizationDetailsRequest - A Consumer that will call methods on GetSavingsPlansUtilizationDetailsRequest.Builder to
create a request.default GetSavingsPlansUtilizationDetailsPublisher getSavingsPlansUtilizationDetailsPaginator(GetSavingsPlansUtilizationDetailsRequest getSavingsPlansUtilizationDetailsRequest)
Retrieves attribute data along with aggregate utilization and savings data for a given time period. This doesn't
support granular or grouped data (daily/monthly) in response. You can't retrieve data by dates in a single
response similar to GetSavingsPlanUtilization, but you have the option to make multiple calls to
GetSavingsPlanUtilizationDetails by providing individual dates. You can use
GetDimensionValues in SAVINGS_PLANS to determine the possible dimension values.
GetSavingsPlanUtilizationDetails internally groups data by SavingsPlansArn.
This is a variant of
getSavingsPlansUtilizationDetails(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationDetailsRequest)
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.costexplorer.paginators.GetSavingsPlansUtilizationDetailsPublisher publisher = client.getSavingsPlansUtilizationDetailsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costexplorer.paginators.GetSavingsPlansUtilizationDetailsPublisher publisher = client.getSavingsPlansUtilizationDetailsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationDetailsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationDetailsResponse 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
getSavingsPlansUtilizationDetails(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationDetailsRequest)
operation.
getSavingsPlansUtilizationDetailsRequest - default GetSavingsPlansUtilizationDetailsPublisher getSavingsPlansUtilizationDetailsPaginator(Consumer<GetSavingsPlansUtilizationDetailsRequest.Builder> getSavingsPlansUtilizationDetailsRequest)
Retrieves attribute data along with aggregate utilization and savings data for a given time period. This doesn't
support granular or grouped data (daily/monthly) in response. You can't retrieve data by dates in a single
response similar to GetSavingsPlanUtilization, but you have the option to make multiple calls to
GetSavingsPlanUtilizationDetails by providing individual dates. You can use
GetDimensionValues in SAVINGS_PLANS to determine the possible dimension values.
GetSavingsPlanUtilizationDetails internally groups data by SavingsPlansArn.
This is a variant of
getSavingsPlansUtilizationDetails(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationDetailsRequest)
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.costexplorer.paginators.GetSavingsPlansUtilizationDetailsPublisher publisher = client.getSavingsPlansUtilizationDetailsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costexplorer.paginators.GetSavingsPlansUtilizationDetailsPublisher publisher = client.getSavingsPlansUtilizationDetailsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationDetailsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationDetailsResponse 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
getSavingsPlansUtilizationDetails(software.amazon.awssdk.services.costexplorer.model.GetSavingsPlansUtilizationDetailsRequest)
operation.
This is a convenience which creates an instance of the GetSavingsPlansUtilizationDetailsRequest.Builder
avoiding the need to create one manually via GetSavingsPlansUtilizationDetailsRequest.builder()
getSavingsPlansUtilizationDetailsRequest - A Consumer that will call methods on GetSavingsPlansUtilizationDetailsRequest.Builder to
create a request.default CompletableFuture<GetTagsResponse> getTags(GetTagsRequest getTagsRequest)
Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.
getTagsRequest - default CompletableFuture<GetTagsResponse> getTags(Consumer<GetTagsRequest.Builder> getTagsRequest)
Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.
This is a convenience which creates an instance of the GetTagsRequest.Builder avoiding the need to create
one manually via GetTagsRequest.builder()
getTagsRequest - A Consumer that will call methods on GetTagsRequest.Builder to create a request.default CompletableFuture<GetUsageForecastResponse> getUsageForecast(GetUsageForecastRequest getUsageForecastRequest)
Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage.
getUsageForecastRequest - UsageType/UsageTypeGroup filter selections that contain matching units, for example:
hours.default CompletableFuture<GetUsageForecastResponse> getUsageForecast(Consumer<GetUsageForecastRequest.Builder> getUsageForecastRequest)
Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage.
This is a convenience which creates an instance of the GetUsageForecastRequest.Builder avoiding the need
to create one manually via GetUsageForecastRequest.builder()
getUsageForecastRequest - A Consumer that will call methods on GetUsageForecastRequest.Builder to create a request.UsageType/UsageTypeGroup filter selections that contain matching units, for example:
hours.default CompletableFuture<ListCostAllocationTagsResponse> listCostAllocationTags(ListCostAllocationTagsRequest listCostAllocationTagsRequest)
Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default, all cost allocation tags are returned.
listCostAllocationTagsRequest - default CompletableFuture<ListCostAllocationTagsResponse> listCostAllocationTags(Consumer<ListCostAllocationTagsRequest.Builder> listCostAllocationTagsRequest)
Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default, all cost allocation tags are returned.
This is a convenience which creates an instance of the ListCostAllocationTagsRequest.Builder avoiding the
need to create one manually via ListCostAllocationTagsRequest.builder()
listCostAllocationTagsRequest - A Consumer that will call methods on ListCostAllocationTagsRequest.Builder to create a
request.default ListCostAllocationTagsPublisher listCostAllocationTagsPaginator(ListCostAllocationTagsRequest listCostAllocationTagsRequest)
Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default, all cost allocation tags are returned.
This is a variant of
listCostAllocationTags(software.amazon.awssdk.services.costexplorer.model.ListCostAllocationTagsRequest)
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.costexplorer.paginators.ListCostAllocationTagsPublisher publisher = client.listCostAllocationTagsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costexplorer.paginators.ListCostAllocationTagsPublisher publisher = client.listCostAllocationTagsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costexplorer.model.ListCostAllocationTagsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costexplorer.model.ListCostAllocationTagsResponse 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
listCostAllocationTags(software.amazon.awssdk.services.costexplorer.model.ListCostAllocationTagsRequest)
operation.
listCostAllocationTagsRequest - default ListCostAllocationTagsPublisher listCostAllocationTagsPaginator(Consumer<ListCostAllocationTagsRequest.Builder> listCostAllocationTagsRequest)
Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default, all cost allocation tags are returned.
This is a variant of
listCostAllocationTags(software.amazon.awssdk.services.costexplorer.model.ListCostAllocationTagsRequest)
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.costexplorer.paginators.ListCostAllocationTagsPublisher publisher = client.listCostAllocationTagsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costexplorer.paginators.ListCostAllocationTagsPublisher publisher = client.listCostAllocationTagsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costexplorer.model.ListCostAllocationTagsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costexplorer.model.ListCostAllocationTagsResponse 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
listCostAllocationTags(software.amazon.awssdk.services.costexplorer.model.ListCostAllocationTagsRequest)
operation.
This is a convenience which creates an instance of the ListCostAllocationTagsRequest.Builder avoiding the
need to create one manually via ListCostAllocationTagsRequest.builder()
listCostAllocationTagsRequest - A Consumer that will call methods on ListCostAllocationTagsRequest.Builder to create a
request.default CompletableFuture<ListCostCategoryDefinitionsResponse> listCostCategoryDefinitions(ListCostCategoryDefinitionsRequest listCostCategoryDefinitionsRequest)
Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all Cost
Categories defined in the account. You have the option to use EffectiveOn to return a list of Cost
Categories that were active on a specific date. If there is no EffectiveOn specified, you’ll see
Cost Categories that are effective on the current date. If Cost Category is still effective,
EffectiveEnd is omitted in the response. ListCostCategoryDefinitions supports
pagination. The request can have a MaxResults range up to 100.
listCostCategoryDefinitionsRequest - default CompletableFuture<ListCostCategoryDefinitionsResponse> listCostCategoryDefinitions(Consumer<ListCostCategoryDefinitionsRequest.Builder> listCostCategoryDefinitionsRequest)
Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all Cost
Categories defined in the account. You have the option to use EffectiveOn to return a list of Cost
Categories that were active on a specific date. If there is no EffectiveOn specified, you’ll see
Cost Categories that are effective on the current date. If Cost Category is still effective,
EffectiveEnd is omitted in the response. ListCostCategoryDefinitions supports
pagination. The request can have a MaxResults range up to 100.
This is a convenience which creates an instance of the ListCostCategoryDefinitionsRequest.Builder
avoiding the need to create one manually via ListCostCategoryDefinitionsRequest.builder()
listCostCategoryDefinitionsRequest - A Consumer that will call methods on ListCostCategoryDefinitionsRequest.Builder to create
a request.default ListCostCategoryDefinitionsPublisher listCostCategoryDefinitionsPaginator(ListCostCategoryDefinitionsRequest listCostCategoryDefinitionsRequest)
Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all Cost
Categories defined in the account. You have the option to use EffectiveOn to return a list of Cost
Categories that were active on a specific date. If there is no EffectiveOn specified, you’ll see
Cost Categories that are effective on the current date. If Cost Category is still effective,
EffectiveEnd is omitted in the response. ListCostCategoryDefinitions supports
pagination. The request can have a MaxResults range up to 100.
This is a variant of
listCostCategoryDefinitions(software.amazon.awssdk.services.costexplorer.model.ListCostCategoryDefinitionsRequest)
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.costexplorer.paginators.ListCostCategoryDefinitionsPublisher publisher = client.listCostCategoryDefinitionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costexplorer.paginators.ListCostCategoryDefinitionsPublisher publisher = client.listCostCategoryDefinitionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costexplorer.model.ListCostCategoryDefinitionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costexplorer.model.ListCostCategoryDefinitionsResponse 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
listCostCategoryDefinitions(software.amazon.awssdk.services.costexplorer.model.ListCostCategoryDefinitionsRequest)
operation.
listCostCategoryDefinitionsRequest - default ListCostCategoryDefinitionsPublisher listCostCategoryDefinitionsPaginator(Consumer<ListCostCategoryDefinitionsRequest.Builder> listCostCategoryDefinitionsRequest)
Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all Cost
Categories defined in the account. You have the option to use EffectiveOn to return a list of Cost
Categories that were active on a specific date. If there is no EffectiveOn specified, you’ll see
Cost Categories that are effective on the current date. If Cost Category is still effective,
EffectiveEnd is omitted in the response. ListCostCategoryDefinitions supports
pagination. The request can have a MaxResults range up to 100.
This is a variant of
listCostCategoryDefinitions(software.amazon.awssdk.services.costexplorer.model.ListCostCategoryDefinitionsRequest)
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.costexplorer.paginators.ListCostCategoryDefinitionsPublisher publisher = client.listCostCategoryDefinitionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costexplorer.paginators.ListCostCategoryDefinitionsPublisher publisher = client.listCostCategoryDefinitionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costexplorer.model.ListCostCategoryDefinitionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costexplorer.model.ListCostCategoryDefinitionsResponse 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
listCostCategoryDefinitions(software.amazon.awssdk.services.costexplorer.model.ListCostCategoryDefinitionsRequest)
operation.
This is a convenience which creates an instance of the ListCostCategoryDefinitionsRequest.Builder
avoiding the need to create one manually via ListCostCategoryDefinitionsRequest.builder()
listCostCategoryDefinitionsRequest - A Consumer that will call methods on ListCostCategoryDefinitionsRequest.Builder to create
a request.default CompletableFuture<ListSavingsPlansPurchaseRecommendationGenerationResponse> listSavingsPlansPurchaseRecommendationGeneration(ListSavingsPlansPurchaseRecommendationGenerationRequest listSavingsPlansPurchaseRecommendationGenerationRequest)
Retrieves a list of your historical recommendation generations within the past 30 days.
listSavingsPlansPurchaseRecommendationGenerationRequest - default CompletableFuture<ListSavingsPlansPurchaseRecommendationGenerationResponse> listSavingsPlansPurchaseRecommendationGeneration(Consumer<ListSavingsPlansPurchaseRecommendationGenerationRequest.Builder> listSavingsPlansPurchaseRecommendationGenerationRequest)
Retrieves a list of your historical recommendation generations within the past 30 days.
This is a convenience which creates an instance of the
ListSavingsPlansPurchaseRecommendationGenerationRequest.Builder avoiding the need to create one manually
via ListSavingsPlansPurchaseRecommendationGenerationRequest.builder()
listSavingsPlansPurchaseRecommendationGenerationRequest - A Consumer that will call methods on
ListSavingsPlansPurchaseRecommendationGenerationRequest.Builder to create a request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request.default CompletableFuture<ProvideAnomalyFeedbackResponse> provideAnomalyFeedback(ProvideAnomalyFeedbackRequest provideAnomalyFeedbackRequest)
Modifies the feedback property of a given cost anomaly.
provideAnomalyFeedbackRequest - default CompletableFuture<ProvideAnomalyFeedbackResponse> provideAnomalyFeedback(Consumer<ProvideAnomalyFeedbackRequest.Builder> provideAnomalyFeedbackRequest)
Modifies the feedback property of a given cost anomaly.
This is a convenience which creates an instance of the ProvideAnomalyFeedbackRequest.Builder avoiding the
need to create one manually via ProvideAnomalyFeedbackRequest.builder()
provideAnomalyFeedbackRequest - A Consumer that will call methods on ProvideAnomalyFeedbackRequest.Builder to create a
request.default CompletableFuture<StartSavingsPlansPurchaseRecommendationGenerationResponse> startSavingsPlansPurchaseRecommendationGeneration(StartSavingsPlansPurchaseRecommendationGenerationRequest startSavingsPlansPurchaseRecommendationGenerationRequest)
Requests a Savings Plans recommendation generation. This enables you to calculate a fresh set of Savings Plans recommendations that takes your latest usage data and current Savings Plans inventory into account. You can refresh Savings Plans recommendations up to three times daily for a consolidated billing family.
StartSavingsPlansPurchaseRecommendationGeneration has no request syntax because no input parameters
are needed to support this operation.
startSavingsPlansPurchaseRecommendationGenerationRequest - default CompletableFuture<StartSavingsPlansPurchaseRecommendationGenerationResponse> startSavingsPlansPurchaseRecommendationGeneration(Consumer<StartSavingsPlansPurchaseRecommendationGenerationRequest.Builder> startSavingsPlansPurchaseRecommendationGenerationRequest)
Requests a Savings Plans recommendation generation. This enables you to calculate a fresh set of Savings Plans recommendations that takes your latest usage data and current Savings Plans inventory into account. You can refresh Savings Plans recommendations up to three times daily for a consolidated billing family.
StartSavingsPlansPurchaseRecommendationGeneration has no request syntax because no input parameters
are needed to support this operation.
This is a convenience which creates an instance of the
StartSavingsPlansPurchaseRecommendationGenerationRequest.Builder avoiding the need to create one manually
via StartSavingsPlansPurchaseRecommendationGenerationRequest.builder()
startSavingsPlansPurchaseRecommendationGenerationRequest - A Consumer that will call methods on
StartSavingsPlansPurchaseRecommendationGenerationRequest.Builder to create a request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
An API operation for adding one or more tags (key-value pairs) to a resource.
You can use the TagResource operation with a resource that already has tags. If you specify a new
tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a
tag key that is already associated with the resource, the new tag value you specify replaces the previous value
for that tag.
Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
An API operation for adding one or more tags (key-value pairs) to a resource.
You can use the TagResource operation with a resource that already has tags. If you specify a new
tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a
tag key that is already associated with the resource, the new tag value you specify replaces the previous value
for that tag.
Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.default CompletableFuture<UpdateAnomalyMonitorResponse> updateAnomalyMonitor(UpdateAnomalyMonitorRequest updateAnomalyMonitorRequest)
Updates an existing cost anomaly monitor. The changes made are applied going forward, and doesn't change anomalies detected in the past.
updateAnomalyMonitorRequest - default CompletableFuture<UpdateAnomalyMonitorResponse> updateAnomalyMonitor(Consumer<UpdateAnomalyMonitorRequest.Builder> updateAnomalyMonitorRequest)
Updates an existing cost anomaly monitor. The changes made are applied going forward, and doesn't change anomalies detected in the past.
This is a convenience which creates an instance of the UpdateAnomalyMonitorRequest.Builder avoiding the
need to create one manually via UpdateAnomalyMonitorRequest.builder()
updateAnomalyMonitorRequest - A Consumer that will call methods on UpdateAnomalyMonitorRequest.Builder to create a
request.default CompletableFuture<UpdateAnomalySubscriptionResponse> updateAnomalySubscription(UpdateAnomalySubscriptionRequest updateAnomalySubscriptionRequest)
Updates an existing cost anomaly monitor subscription.
updateAnomalySubscriptionRequest - default CompletableFuture<UpdateAnomalySubscriptionResponse> updateAnomalySubscription(Consumer<UpdateAnomalySubscriptionRequest.Builder> updateAnomalySubscriptionRequest)
Updates an existing cost anomaly monitor subscription.
This is a convenience which creates an instance of the UpdateAnomalySubscriptionRequest.Builder avoiding
the need to create one manually via UpdateAnomalySubscriptionRequest.builder()
updateAnomalySubscriptionRequest - A Consumer that will call methods on UpdateAnomalySubscriptionRequest.Builder to create a
request.default CompletableFuture<UpdateCostAllocationTagsStatusResponse> updateCostAllocationTagsStatus(UpdateCostAllocationTagsStatusRequest updateCostAllocationTagsStatusRequest)
Updates status for cost allocation tags in bulk, with maximum batch size of 20. If the tag status that's updated is the same as the existing tag status, the request doesn't fail. Instead, it doesn't have any effect on the tag status (for example, activating the active tag).
updateCostAllocationTagsStatusRequest - default CompletableFuture<UpdateCostAllocationTagsStatusResponse> updateCostAllocationTagsStatus(Consumer<UpdateCostAllocationTagsStatusRequest.Builder> updateCostAllocationTagsStatusRequest)
Updates status for cost allocation tags in bulk, with maximum batch size of 20. If the tag status that's updated is the same as the existing tag status, the request doesn't fail. Instead, it doesn't have any effect on the tag status (for example, activating the active tag).
This is a convenience which creates an instance of the UpdateCostAllocationTagsStatusRequest.Builder
avoiding the need to create one manually via UpdateCostAllocationTagsStatusRequest.builder()
updateCostAllocationTagsStatusRequest - A Consumer that will call methods on UpdateCostAllocationTagsStatusRequest.Builder to
create a request.default CompletableFuture<UpdateCostCategoryDefinitionResponse> updateCostCategoryDefinition(UpdateCostCategoryDefinitionRequest updateCostCategoryDefinitionRequest)
Updates an existing Cost Category. Changes made to the Cost Category rules will be used to categorize the current month’s expenses and future expenses. This won’t change categorization for the previous months.
updateCostCategoryDefinitionRequest - default CompletableFuture<UpdateCostCategoryDefinitionResponse> updateCostCategoryDefinition(Consumer<UpdateCostCategoryDefinitionRequest.Builder> updateCostCategoryDefinitionRequest)
Updates an existing Cost Category. Changes made to the Cost Category rules will be used to categorize the current month’s expenses and future expenses. This won’t change categorization for the previous months.
This is a convenience which creates an instance of the UpdateCostCategoryDefinitionRequest.Builder
avoiding the need to create one manually via UpdateCostCategoryDefinitionRequest.builder()
updateCostCategoryDefinitionRequest - A Consumer that will call methods on UpdateCostCategoryDefinitionRequest.Builder to create
a request.default CostExplorerServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientstatic CostExplorerAsyncClient create()
CostExplorerAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static CostExplorerAsyncClientBuilder builder()
CostExplorerAsyncClient.Copyright © 2023. All rights reserved.