@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBudgetsClient extends AmazonWebServiceClient implements AWSBudgets
Use the Amazon Web Services Budgets API to plan your service usage, service costs, and instance reservations. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Amazon Web Services Budgets feature.
Budgets provide you with a way to see the following information:
How close your plan is to your budgeted amount or to the free tier limits
Your usage-to-date, including how much you've used of your Reserved Instances (RIs)
Your current estimated charges from Amazon Web Services, and how much your predicted usage will accrue in charges by the end of the month
How much of your budget has been used
Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:
Cost budgets - Plan how much you want to spend on a service.
Usage budgets - Plan how much you want to use one or more services.
RI utilization budgets - Define a utilization threshold, and receive alerts when your RI usage falls below that threshold. This lets you see if your RIs are unused or under-utilized.
RI coverage budgets - Define a coverage threshold, and receive alerts when the number of your instance hours that are covered by RIs fall below that threshold. This lets you see how much of your instance usage is covered by a reservation.
Service Endpoint
The Amazon Web Services Budgets API provides the following endpoint:
https://budgets.amazonaws.com
For information about costs that are associated with the Amazon Web Services Budgets API, see Amazon Web Services Cost Management Pricing.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Constructor and Description |
|---|
AWSBudgetsClient()
Deprecated.
|
AWSBudgetsClient(AWSCredentials awsCredentials)
Deprecated.
use
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AWSBudgetsClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
AWSBudgetsClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
|
AWSBudgetsClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSBudgetsClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSBudgetsClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
|
AWSBudgetsClient(ClientConfiguration clientConfiguration)
Deprecated.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion@Deprecated public AWSBudgetsClient()
AWSBudgetsClientBuilder.defaultClient()All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain@Deprecated public AWSBudgetsClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling how this client connects to AWSBudgets (ex: proxy settings,
retry counts, etc.).DefaultAWSCredentialsProviderChain@Deprecated public AWSBudgetsClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AWSBudgetsClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.@Deprecated public AWSBudgetsClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration - The client configuration options controlling how this client connects to AWSBudgets (ex: proxy settings,
retry counts, etc.).@Deprecated public AWSBudgetsClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.@Deprecated public AWSBudgetsClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this client connects to AWSBudgets (ex: proxy settings,
retry counts, etc.).@Deprecated public AWSBudgetsClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration) and
AwsClientBuilder.withMetricsCollector(RequestMetricCollector)All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this client connects to AWSBudgets (ex: proxy settings,
retry counts, etc.).requestMetricCollector - optional request metric collectorpublic static AWSBudgetsClientBuilder builder()
public CreateBudgetResult createBudget(CreateBudgetRequest request)
Creates a budget and, if included, notifications and subscribers.
Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at one
time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit
syntax. For PlannedBudgetLimits, see the Examples section.
createBudget in interface AWSBudgetscreateBudgetRequest - Request of CreateBudgetInvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.InternalErrorException - An error on the server occurred during the processing of your request. Try again later.CreationLimitExceededException - You've exceeded the notification or subscriber limit.DuplicateRecordException - The budget name already exists. Budget names must be unique within an account.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.ServiceQuotaExceededException - You've reached the limit on the number of tags you can associate with a resource.public CreateBudgetActionResult createBudgetAction(CreateBudgetActionRequest request)
Creates a budget action.
createBudgetAction in interface AWSBudgetscreateBudgetActionRequest - InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.InternalErrorException - An error on the server occurred during the processing of your request. Try again later.CreationLimitExceededException - You've exceeded the notification or subscriber limit.DuplicateRecordException - The budget name already exists. Budget names must be unique within an account.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.ServiceQuotaExceededException - You've reached the limit on the number of tags you can associate with a resource.public CreateNotificationResult createNotification(CreateNotificationRequest request)
Creates a notification. You must create the budget before you create the associated notification.
createNotification in interface AWSBudgetscreateNotificationRequest - Request of CreateNotificationInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.CreationLimitExceededException - You've exceeded the notification or subscriber limit.DuplicateRecordException - The budget name already exists. Budget names must be unique within an account.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public CreateSubscriberResult createSubscriber(CreateSubscriberRequest request)
Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
createSubscriber in interface AWSBudgetscreateSubscriberRequest - Request of CreateSubscriberInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.CreationLimitExceededException - You've exceeded the notification or subscriber limit.DuplicateRecordException - The budget name already exists. Budget names must be unique within an account.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DeleteBudgetResult deleteBudget(DeleteBudgetRequest request)
Deletes a budget. You can delete your budget at any time.
Deleting a budget also deletes the notifications and subscribers that are associated with that budget.
deleteBudget in interface AWSBudgetsdeleteBudgetRequest - Request of DeleteBudgetInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DeleteBudgetActionResult deleteBudgetAction(DeleteBudgetActionRequest request)
Deletes a budget action.
deleteBudgetAction in interface AWSBudgetsdeleteBudgetActionRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ResourceLockedException - The request was received and recognized by the server, but the server rejected that particular method for
the requested resource.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DeleteNotificationResult deleteNotification(DeleteNotificationRequest request)
Deletes a notification.
Deleting a notification also deletes the subscribers that are associated with the notification.
deleteNotification in interface AWSBudgetsdeleteNotificationRequest - Request of DeleteNotificationInvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.InternalErrorException - An error on the server occurred during the processing of your request. Try again later.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DeleteSubscriberResult deleteSubscriber(DeleteSubscriberRequest request)
Deletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
deleteSubscriber in interface AWSBudgetsdeleteSubscriberRequest - Request of DeleteSubscriberInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeBudgetResult describeBudget(DescribeBudgetRequest request)
Describes a budget.
The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see
the Examples section.
describeBudget in interface AWSBudgetsdescribeBudgetRequest - Request of DescribeBudgetInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeBudgetActionResult describeBudgetAction(DescribeBudgetActionRequest request)
Describes a budget action detail.
describeBudgetAction in interface AWSBudgetsdescribeBudgetActionRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeBudgetActionHistoriesResult describeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request)
Describes a budget action history detail.
describeBudgetActionHistories in interface AWSBudgetsdescribeBudgetActionHistoriesRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.InvalidNextTokenException - The pagination token is invalid.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeBudgetActionsForAccountResult describeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request)
Describes all of the budget actions for an account.
describeBudgetActionsForAccount in interface AWSBudgetsdescribeBudgetActionsForAccountRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.AccessDeniedException - You are not authorized to use this operation with the given parameters.InvalidNextTokenException - The pagination token is invalid.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeBudgetActionsForBudgetResult describeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request)
Describes all of the budget actions for a budget.
describeBudgetActionsForBudget in interface AWSBudgetsdescribeBudgetActionsForBudgetRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.InvalidNextTokenException - The pagination token is invalid.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeBudgetNotificationsForAccountResult describeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest request)
Lists the budget names and notifications that are associated with an account.
describeBudgetNotificationsForAccount in interface AWSBudgetsdescribeBudgetNotificationsForAccountRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.InvalidNextTokenException - The pagination token is invalid.ExpiredNextTokenException - The pagination token expired.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeBudgetPerformanceHistoryResult describeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest request)
Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget
history isn't available for ANNUAL budgets.
describeBudgetPerformanceHistory in interface AWSBudgetsdescribeBudgetPerformanceHistoryRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.InvalidNextTokenException - The pagination token is invalid.ExpiredNextTokenException - The pagination token expired.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeBudgetsResult describeBudgets(DescribeBudgetsRequest request)
Lists the budgets that are associated with an account.
The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see
the Examples section.
describeBudgets in interface AWSBudgetsdescribeBudgetsRequest - Request of DescribeBudgetsInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.InvalidNextTokenException - The pagination token is invalid.ExpiredNextTokenException - The pagination token expired.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeNotificationsForBudgetResult describeNotificationsForBudget(DescribeNotificationsForBudgetRequest request)
Lists the notifications that are associated with a budget.
describeNotificationsForBudget in interface AWSBudgetsdescribeNotificationsForBudgetRequest - Request of DescribeNotificationsForBudgetInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.InvalidNextTokenException - The pagination token is invalid.ExpiredNextTokenException - The pagination token expired.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public DescribeSubscribersForNotificationResult describeSubscribersForNotification(DescribeSubscribersForNotificationRequest request)
Lists the subscribers that are associated with a notification.
describeSubscribersForNotification in interface AWSBudgetsdescribeSubscribersForNotificationRequest - Request of DescribeSubscribersForNotificationInternalErrorException - An error on the server occurred during the processing of your request. Try again later.NotFoundException - We can’t locate the resource that you specified.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.InvalidNextTokenException - The pagination token is invalid.ExpiredNextTokenException - The pagination token expired.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public ExecuteBudgetActionResult executeBudgetAction(ExecuteBudgetActionRequest request)
Executes a budget action.
executeBudgetAction in interface AWSBudgetsexecuteBudgetActionRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ResourceLockedException - The request was received and recognized by the server, but the server rejected that particular method for
the requested resource.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists tags associated with a budget or budget action resource.
listTagsForResource in interface AWSBudgetslistTagsForResourceRequest - ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.public TagResourceResult tagResource(TagResourceRequest request)
Creates tags for a budget or budget action resource.
tagResource in interface AWSBudgetstagResourceRequest - ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.ServiceQuotaExceededException - You've reached the limit on the number of tags you can associate with a resource.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.public UntagResourceResult untagResource(UntagResourceRequest request)
Deletes tags associated with a budget or budget action resource.
untagResource in interface AWSBudgetsuntagResourceRequest - ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.public UpdateBudgetResult updateBudget(UpdateBudgetRequest request)
Updates a budget. You can change every part of a budget except for the budgetName and the
calculatedSpend. When you modify a budget, the calculatedSpend drops to zero until
Amazon Web Services has new usage data to use for forecasting.
Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax at one
time. Use the syntax that matches your case. The Request Syntax section shows the BudgetLimit
syntax. For PlannedBudgetLimits, see the Examples section.
updateBudget in interface AWSBudgetsupdateBudgetRequest - Request of UpdateBudgetInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public UpdateBudgetActionResult updateBudgetAction(UpdateBudgetActionRequest request)
Updates a budget action.
updateBudgetAction in interface AWSBudgetsupdateBudgetActionRequest - InternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.AccessDeniedException - You are not authorized to use this operation with the given parameters.ResourceLockedException - The request was received and recognized by the server, but the server rejected that particular method for
the requested resource.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public UpdateNotificationResult updateNotification(UpdateNotificationRequest request)
Updates a notification.
updateNotification in interface AWSBudgetsupdateNotificationRequest - Request of UpdateNotificationInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.DuplicateRecordException - The budget name already exists. Budget names must be unique within an account.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public UpdateSubscriberResult updateSubscriber(UpdateSubscriberRequest request)
Updates a subscriber.
updateSubscriber in interface AWSBudgetsupdateSubscriberRequest - Request of UpdateSubscriberInternalErrorException - An error on the server occurred during the processing of your request. Try again later.InvalidParameterException - An error on the client occurred. Typically, the cause is an invalid input value.NotFoundException - We can’t locate the resource that you specified.DuplicateRecordException - The budget name already exists. Budget names must be unique within an account.AccessDeniedException - You are not authorized to use this operation with the given parameters.ThrottlingException - The number of API requests has exceeded the maximum allowed API request throttling limit for the account.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AWSBudgetsrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AWSBudgetsshutdown in class AmazonWebServiceClient