@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBudgetsClient extends AmazonWebServiceClient implements AWSBudgets
The AWS Budgets API enables you to use AWS Budgets to plan your service usage, service costs, and instance reservations. The API reference provides descriptions, syntax, and usage examples for each of the actions and data types for AWS Budgets.
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 AWS, and how much your predicted usage will accrue in charges by the end of the month
How much of your budget has been used
AWS 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 AWS Budgets API provides the following endpoint:
https://budgets.amazonaws.com
For information about costs that are associated with the AWS Budgets API, see AWS Cost Management Pricing.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_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, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, 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 AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public CreateBudgetActionResult createBudgetAction(CreateBudgetActionRequest request)
Creates a budget action.
createBudgetAction
in interface AWSBudgets
createBudgetActionRequest
- 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.public CreateNotificationResult createNotification(CreateNotificationRequest request)
Creates a notification. You must create the budget before you create the associated notification.
createNotification
in interface AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public CreateSubscriberResult createSubscriber(CreateSubscriberRequest request)
Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
createSubscriber
in interface AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.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 AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public DeleteBudgetActionResult deleteBudgetAction(DeleteBudgetActionRequest request)
Deletes a budget action.
deleteBudgetAction
in interface AWSBudgets
deleteBudgetActionRequest
- 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.public DeleteNotificationResult deleteNotification(DeleteNotificationRequest request)
Deletes a notification.
Deleting a notification also deletes the subscribers that are associated with the notification.
deleteNotification
in interface AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public DeleteSubscriberResult deleteSubscriber(DeleteSubscriberRequest request)
Deletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
deleteSubscriber
in interface AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.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 AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public DescribeBudgetActionResult describeBudgetAction(DescribeBudgetActionRequest request)
Describes a budget action detail.
describeBudgetAction
in interface AWSBudgets
describeBudgetActionRequest
- 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.public DescribeBudgetActionHistoriesResult describeBudgetActionHistories(DescribeBudgetActionHistoriesRequest request)
Describes a budget action history detail.
describeBudgetActionHistories
in interface AWSBudgets
describeBudgetActionHistoriesRequest
- 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.public DescribeBudgetActionsForAccountResult describeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest request)
Describes all of the budget actions for an account.
describeBudgetActionsForAccount
in interface AWSBudgets
describeBudgetActionsForAccountRequest
- 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.public DescribeBudgetActionsForBudgetResult describeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest request)
Describes all of the budget actions for a budget.
describeBudgetActionsForBudget
in interface AWSBudgets
describeBudgetActionsForBudgetRequest
- 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.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 AWSBudgets
describeBudgetPerformanceHistoryRequest
- 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.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 AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public DescribeNotificationsForBudgetResult describeNotificationsForBudget(DescribeNotificationsForBudgetRequest request)
Lists the notifications that are associated with a budget.
describeNotificationsForBudget
in interface AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public DescribeSubscribersForNotificationResult describeSubscribersForNotification(DescribeSubscribersForNotificationRequest request)
Lists the subscribers that are associated with a notification.
describeSubscribersForNotification
in interface AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public ExecuteBudgetActionResult executeBudgetAction(ExecuteBudgetActionRequest request)
Executes a budget action.
executeBudgetAction
in interface AWSBudgets
executeBudgetActionRequest
- 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.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 AWS
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 AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public UpdateBudgetActionResult updateBudgetAction(UpdateBudgetActionRequest request)
Updates a budget action.
updateBudgetAction
in interface AWSBudgets
updateBudgetActionRequest
- 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.public UpdateNotificationResult updateNotification(UpdateNotificationRequest request)
Updates a notification.
updateNotification
in interface AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.public UpdateSubscriberResult updateSubscriber(UpdateSubscriberRequest request)
Updates a subscriber.
updateSubscriber
in interface AWSBudgets
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.AccessDeniedException
- You are not authorized to use this operation with the given parameters.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 AWSBudgets
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSBudgets
shutdown
in class AmazonWebServiceClient