@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBudgetsAsyncClient extends AWSBudgetsClient implements AWSBudgetsAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Budgets enable you to plan your service usage, service costs, and your RI utilization. You can also track how close your plan is to your budgeted amount or to the free tier limits. Budgets provide you with a quick way to see your usage-to-date and current estimated charges from AWS and to see how much your predicted usage accrues in charges by the end of the month. Budgets also compare current estimates and charges to the amount that you indicated you want to use or spend and lets you see how much of your budget has been used. AWS updates your budget status several times a day. Budgets track your unblended costs, subscriptions, and refunds. You can create the following types of budgets:
Cost budgets allow you to say how much you want to spend on a service.
Usage budgets allow you to say how many hours you want to use for one or more services.
RI utilization budgets allow you to define a utilization threshold and receive alerts when RIs are tracking below that threshold.
You can create up to 20,000 budgets per AWS master account. Your first two budgets are free of charge. Each additional budget costs $0.02 per day. You can set up optional notifications that warn you if you exceed, or are forecasted to exceed, your budgeted amount. You can have notifications sent to an Amazon SNS topic, to an email address, or to both. For more information, see Creating an Amazon SNS Topic for Budget Notifications. AWS Free Tier usage alerts via AWS Budgets are provided for you, and do not count toward your budget limits.
Service Endpoint
The AWS Budgets API provides the following endpoint:
https://budgets.us-east-1.amazonaws.com
configFactoryclient, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_PREFIX| Constructor and Description |
|---|
AWSBudgetsAsyncClient()
Deprecated.
|
AWSBudgetsAsyncClient(AWSCredentials awsCredentials)
Deprecated.
|
AWSBudgetsAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSBudgetsAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
|
AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
|
AWSBudgetsAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
|
builder, createBudget, createNotification, createSubscriber, deleteBudget, deleteNotification, deleteSubscriber, describeBudget, describeBudgets, describeNotificationsForBudget, describeSubscribersForNotification, getCachedResponseMetadata, updateBudget, updateNotification, updateSubscriberaddRequestHandler, addRequestHandler, beforeClientExecution, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerOverride, getSignerProvider, getSignerRegionOverride, getSigningRegion, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateBudget, createNotification, createSubscriber, deleteBudget, deleteNotification, deleteSubscriber, describeBudget, describeBudgets, describeNotificationsForBudget, describeSubscribersForNotification, getCachedResponseMetadata, setEndpoint, setRegion, updateBudget, updateNotification, updateSubscriber@Deprecated public AWSBudgetsAsyncClient()
AWSBudgetsAsyncClientBuilder.defaultClient()Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
@Deprecated public AWSBudgetsAsyncClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections().
clientConfiguration - The client configuration options controlling how this client connects to AWSBudgets (ex: proxy settings,
retry counts, etc).DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)@Deprecated public AWSBudgetsAsyncClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)@Deprecated public AWSBudgetsAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService - The executor service by which all asynchronous requests will be executed.@Deprecated public AWSBudgetsAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration) and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).executorService - The executor service by which all asynchronous requests will be executed.@Deprecated public AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)@Deprecated public AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections().
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)@Deprecated public AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService - The executor service by which all asynchronous requests will be executed.@Deprecated public AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration) and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).executorService - The executor service by which all asynchronous requests will be executed.public static AWSBudgetsAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateBudgetResult> createBudgetAsync(CreateBudgetRequest request)
AWSBudgetsAsyncCreates a budget and, if included, notifications and subscribers.
createBudgetAsync in interface AWSBudgetsAsyncrequest - Request of CreateBudgetpublic Future<CreateBudgetResult> createBudgetAsync(CreateBudgetRequest request, AsyncHandler<CreateBudgetRequest,CreateBudgetResult> asyncHandler)
AWSBudgetsAsyncCreates a budget and, if included, notifications and subscribers.
createBudgetAsync in interface AWSBudgetsAsyncrequest - Request of CreateBudgetasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateNotificationResult> createNotificationAsync(CreateNotificationRequest request)
AWSBudgetsAsyncCreates a notification. You must create the budget before you create the associated notification.
createNotificationAsync in interface AWSBudgetsAsyncrequest - Request of CreateNotificationpublic Future<CreateNotificationResult> createNotificationAsync(CreateNotificationRequest request, AsyncHandler<CreateNotificationRequest,CreateNotificationResult> asyncHandler)
AWSBudgetsAsyncCreates a notification. You must create the budget before you create the associated notification.
createNotificationAsync in interface AWSBudgetsAsyncrequest - Request of CreateNotificationasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateSubscriberResult> createSubscriberAsync(CreateSubscriberRequest request)
AWSBudgetsAsyncCreates a subscriber. You must create the associated budget and notification before you create the subscriber.
createSubscriberAsync in interface AWSBudgetsAsyncrequest - Request of CreateSubscriberpublic Future<CreateSubscriberResult> createSubscriberAsync(CreateSubscriberRequest request, AsyncHandler<CreateSubscriberRequest,CreateSubscriberResult> asyncHandler)
AWSBudgetsAsyncCreates a subscriber. You must create the associated budget and notification before you create the subscriber.
createSubscriberAsync in interface AWSBudgetsAsyncrequest - Request of CreateSubscriberasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteBudgetResult> deleteBudgetAsync(DeleteBudgetRequest request)
AWSBudgetsAsyncDeletes a budget. You can delete your budget at any time.
Deleting a budget also deletes the notifications and subscribers associated with that budget.
deleteBudgetAsync in interface AWSBudgetsAsyncrequest - Request of DeleteBudgetpublic Future<DeleteBudgetResult> deleteBudgetAsync(DeleteBudgetRequest request, AsyncHandler<DeleteBudgetRequest,DeleteBudgetResult> asyncHandler)
AWSBudgetsAsyncDeletes a budget. You can delete your budget at any time.
Deleting a budget also deletes the notifications and subscribers associated with that budget.
deleteBudgetAsync in interface AWSBudgetsAsyncrequest - Request of DeleteBudgetasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteNotificationResult> deleteNotificationAsync(DeleteNotificationRequest request)
AWSBudgetsAsyncDeletes a notification.
Deleting a notification also deletes the subscribers associated with the notification.
deleteNotificationAsync in interface AWSBudgetsAsyncrequest - Request of DeleteNotificationpublic Future<DeleteNotificationResult> deleteNotificationAsync(DeleteNotificationRequest request, AsyncHandler<DeleteNotificationRequest,DeleteNotificationResult> asyncHandler)
AWSBudgetsAsyncDeletes a notification.
Deleting a notification also deletes the subscribers associated with the notification.
deleteNotificationAsync in interface AWSBudgetsAsyncrequest - Request of DeleteNotificationasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteSubscriberResult> deleteSubscriberAsync(DeleteSubscriberRequest request)
AWSBudgetsAsyncDeletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
deleteSubscriberAsync in interface AWSBudgetsAsyncrequest - Request of DeleteSubscriberpublic Future<DeleteSubscriberResult> deleteSubscriberAsync(DeleteSubscriberRequest request, AsyncHandler<DeleteSubscriberRequest,DeleteSubscriberResult> asyncHandler)
AWSBudgetsAsyncDeletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
deleteSubscriberAsync in interface AWSBudgetsAsyncrequest - Request of DeleteSubscriberasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeBudgetResult> describeBudgetAsync(DescribeBudgetRequest request)
AWSBudgetsAsyncDescribes a budget.
describeBudgetAsync in interface AWSBudgetsAsyncrequest - Request of DescribeBudgetpublic Future<DescribeBudgetResult> describeBudgetAsync(DescribeBudgetRequest request, AsyncHandler<DescribeBudgetRequest,DescribeBudgetResult> asyncHandler)
AWSBudgetsAsyncDescribes a budget.
describeBudgetAsync in interface AWSBudgetsAsyncrequest - Request of DescribeBudgetasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeBudgetsResult> describeBudgetsAsync(DescribeBudgetsRequest request)
AWSBudgetsAsyncLists the budgets associated with an account.
describeBudgetsAsync in interface AWSBudgetsAsyncrequest - Request of DescribeBudgetspublic Future<DescribeBudgetsResult> describeBudgetsAsync(DescribeBudgetsRequest request, AsyncHandler<DescribeBudgetsRequest,DescribeBudgetsResult> asyncHandler)
AWSBudgetsAsyncLists the budgets associated with an account.
describeBudgetsAsync in interface AWSBudgetsAsyncrequest - Request of DescribeBudgetsasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeNotificationsForBudgetResult> describeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request)
AWSBudgetsAsyncLists the notifications associated with a budget.
describeNotificationsForBudgetAsync in interface AWSBudgetsAsyncrequest - Request of DescribeNotificationsForBudgetpublic Future<DescribeNotificationsForBudgetResult> describeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request, AsyncHandler<DescribeNotificationsForBudgetRequest,DescribeNotificationsForBudgetResult> asyncHandler)
AWSBudgetsAsyncLists the notifications associated with a budget.
describeNotificationsForBudgetAsync in interface AWSBudgetsAsyncrequest - Request of DescribeNotificationsForBudgetasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeSubscribersForNotificationResult> describeSubscribersForNotificationAsync(DescribeSubscribersForNotificationRequest request)
AWSBudgetsAsyncLists the subscribers associated with a notification.
describeSubscribersForNotificationAsync in interface AWSBudgetsAsyncrequest - Request of DescribeSubscribersForNotificationpublic Future<DescribeSubscribersForNotificationResult> describeSubscribersForNotificationAsync(DescribeSubscribersForNotificationRequest request, AsyncHandler<DescribeSubscribersForNotificationRequest,DescribeSubscribersForNotificationResult> asyncHandler)
AWSBudgetsAsyncLists the subscribers associated with a notification.
describeSubscribersForNotificationAsync in interface AWSBudgetsAsyncrequest - Request of DescribeSubscribersForNotificationasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateBudgetResult> updateBudgetAsync(UpdateBudgetRequest request)
AWSBudgetsAsync
Updates a budget. You can change every part of a budget except for the budgetName and the
calculatedSpend. When a budget is modified, the calculatedSpend drops to zero until AWS
has new usage data to use for forecasting.
updateBudgetAsync in interface AWSBudgetsAsyncrequest - Request of UpdateBudgetpublic Future<UpdateBudgetResult> updateBudgetAsync(UpdateBudgetRequest request, AsyncHandler<UpdateBudgetRequest,UpdateBudgetResult> asyncHandler)
AWSBudgetsAsync
Updates a budget. You can change every part of a budget except for the budgetName and the
calculatedSpend. When a budget is modified, the calculatedSpend drops to zero until AWS
has new usage data to use for forecasting.
updateBudgetAsync in interface AWSBudgetsAsyncrequest - Request of UpdateBudgetasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateNotificationResult> updateNotificationAsync(UpdateNotificationRequest request)
AWSBudgetsAsyncUpdates a notification.
updateNotificationAsync in interface AWSBudgetsAsyncrequest - Request of UpdateNotificationpublic Future<UpdateNotificationResult> updateNotificationAsync(UpdateNotificationRequest request, AsyncHandler<UpdateNotificationRequest,UpdateNotificationResult> asyncHandler)
AWSBudgetsAsyncUpdates a notification.
updateNotificationAsync in interface AWSBudgetsAsyncrequest - Request of UpdateNotificationasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateSubscriberResult> updateSubscriberAsync(UpdateSubscriberRequest request)
AWSBudgetsAsyncUpdates a subscriber.
updateSubscriberAsync in interface AWSBudgetsAsyncrequest - Request of UpdateSubscriberpublic Future<UpdateSubscriberResult> updateSubscriberAsync(UpdateSubscriberRequest request, AsyncHandler<UpdateSubscriberRequest,UpdateSubscriberResult> asyncHandler)
AWSBudgetsAsyncUpdates a subscriber.
updateSubscriberAsync in interface AWSBudgetsAsyncrequest - Request of UpdateSubscriberasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AWSBudgetsshutdown in class AmazonWebServiceClientCopyright © 2018. All rights reserved.