@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSBudgets
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSBudgets
instead.
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.amazonaws.com
For information about costs associated with the AWS Budgets API, see AWS Cost Management Pricing.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CreateBudgetResult |
createBudget(CreateBudgetRequest createBudgetRequest)
Creates a budget and, if included, notifications and subscribers.
|
CreateNotificationResult |
createNotification(CreateNotificationRequest createNotificationRequest)
Creates a notification.
|
CreateSubscriberResult |
createSubscriber(CreateSubscriberRequest createSubscriberRequest)
Creates a subscriber.
|
DeleteBudgetResult |
deleteBudget(DeleteBudgetRequest deleteBudgetRequest)
Deletes a budget.
|
DeleteNotificationResult |
deleteNotification(DeleteNotificationRequest deleteNotificationRequest)
Deletes a notification.
|
DeleteSubscriberResult |
deleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest)
Deletes a subscriber.
|
DescribeBudgetResult |
describeBudget(DescribeBudgetRequest describeBudgetRequest)
Describes a budget.
|
DescribeBudgetsResult |
describeBudgets(DescribeBudgetsRequest describeBudgetsRequest)
Lists the budgets associated with an account.
|
DescribeNotificationsForBudgetResult |
describeNotificationsForBudget(DescribeNotificationsForBudgetRequest describeNotificationsForBudgetRequest)
Lists the notifications associated with a budget.
|
DescribeSubscribersForNotificationResult |
describeSubscribersForNotification(DescribeSubscribersForNotificationRequest describeSubscribersForNotificationRequest)
Lists the subscribers associated with a notification.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
void |
setEndpoint(String endpoint)
Deprecated.
use
AwsClientBuilder#setEndpointConfiguration(AwsClientBuilder.EndpointConfiguration) for
example:
builder.setEndpointConfiguration(new EndpointConfiguration(endpoint, signingRegion)); |
void |
setRegion(Region region)
Deprecated.
use
AwsClientBuilder#setRegion(String) |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
UpdateBudgetResult |
updateBudget(UpdateBudgetRequest updateBudgetRequest)
Updates a budget.
|
UpdateNotificationResult |
updateNotification(UpdateNotificationRequest updateNotificationRequest)
Updates a notification.
|
UpdateSubscriberResult |
updateSubscriber(UpdateSubscriberRequest updateSubscriberRequest)
Updates a subscriber.
|
static final String ENDPOINT_PREFIX
@Deprecated void setEndpoint(String endpoint)
AwsClientBuilder#setEndpointConfiguration(AwsClientBuilder.EndpointConfiguration)
for
example:
builder.setEndpointConfiguration(new EndpointConfiguration(endpoint, signingRegion));
Callers can pass in just the endpoint (ex: "budgets.amazonaws.com") or a full URL, including the protocol (ex:
"budgets.amazonaws.com"). If the protocol is not specified here, the default protocol from this client's
ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-region-selection.html#region-selection- choose-endpoint
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
endpoint
- The endpoint (ex: "budgets.amazonaws.com") or a full URL, including the protocol (ex:
"budgets.amazonaws.com") of the region specific AWS endpoint this client will communicate with.@Deprecated void setRegion(Region region)
AwsClientBuilder#setRegion(String)
setEndpoint(String)
, sets the regional endpoint for this client's service
calls. Callers can use this method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
region
- The region this client will communicate with. See Region.getRegion(com.amazonaws.regions.Regions)
for accessing a given region. Must not be null and must be a region where the service is available.Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
,
Region.isServiceSupported(String)
CreateBudgetResult createBudget(CreateBudgetRequest createBudgetRequest)
Creates a budget and, if included, notifications and subscribers.
createBudgetRequest
- 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.CreateNotificationResult createNotification(CreateNotificationRequest createNotificationRequest)
Creates a notification. You must create the budget before you create the associated notification.
createNotificationRequest
- 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.CreateSubscriberResult createSubscriber(CreateSubscriberRequest createSubscriberRequest)
Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
createSubscriberRequest
- 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.DeleteBudgetResult deleteBudget(DeleteBudgetRequest deleteBudgetRequest)
Deletes a budget. You can delete your budget at any time.
Deleting a budget also deletes the notifications and subscribers associated with that budget.
deleteBudgetRequest
- 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.DeleteNotificationResult deleteNotification(DeleteNotificationRequest deleteNotificationRequest)
Deletes a notification.
Deleting a notification also deletes the subscribers associated with the notification.
deleteNotificationRequest
- 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.DeleteSubscriberResult deleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest)
Deletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
deleteSubscriberRequest
- 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.DescribeBudgetResult describeBudget(DescribeBudgetRequest describeBudgetRequest)
Describes a budget.
describeBudgetRequest
- 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.DescribeBudgetsResult describeBudgets(DescribeBudgetsRequest describeBudgetsRequest)
Lists the budgets associated with an account.
describeBudgetsRequest
- 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.DescribeNotificationsForBudgetResult describeNotificationsForBudget(DescribeNotificationsForBudgetRequest describeNotificationsForBudgetRequest)
Lists the notifications associated with a budget.
describeNotificationsForBudgetRequest
- 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.DescribeSubscribersForNotificationResult describeSubscribersForNotification(DescribeSubscribersForNotificationRequest describeSubscribersForNotificationRequest)
Lists the subscribers associated with a notification.
describeSubscribersForNotificationRequest
- 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.UpdateBudgetResult updateBudget(UpdateBudgetRequest updateBudgetRequest)
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.
updateBudgetRequest
- 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.UpdateNotificationResult updateNotification(UpdateNotificationRequest updateNotificationRequest)
Updates a notification.
updateNotificationRequest
- 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.UpdateSubscriberResult updateSubscriber(UpdateSubscriberRequest updateSubscriberRequest)
Updates a subscriber.
updateSubscriberRequest
- 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.void shutdown()
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 a request.
request
- The originally executed request.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.