Class: Aws::Budgets::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Budgets::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb
Overview
An API client for Budgets. To construct a client, you need to configure a :region and :credentials.
client = Aws::Budgets::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_budget(params = {}) ⇒ Struct
Creates a budget and, if included, notifications and subscribers.
-
#create_budget_action(params = {}) ⇒ Types::CreateBudgetActionResponse
Creates a budget action.
-
#create_notification(params = {}) ⇒ Struct
Creates a notification.
-
#create_subscriber(params = {}) ⇒ Struct
Creates a subscriber.
-
#delete_budget(params = {}) ⇒ Struct
Deletes a budget.
-
#delete_budget_action(params = {}) ⇒ Types::DeleteBudgetActionResponse
Deletes a budget action.
-
#delete_notification(params = {}) ⇒ Struct
Deletes a notification.
-
#delete_subscriber(params = {}) ⇒ Struct
Deletes a subscriber.
-
#describe_budget(params = {}) ⇒ Types::DescribeBudgetResponse
Describes a budget.
-
#describe_budget_action(params = {}) ⇒ Types::DescribeBudgetActionResponse
Describes a budget action detail.
-
#describe_budget_action_histories(params = {}) ⇒ Types::DescribeBudgetActionHistoriesResponse
Describes a budget action history detail.
-
#describe_budget_actions_for_account(params = {}) ⇒ Types::DescribeBudgetActionsForAccountResponse
Describes all of the budget actions for an account.
-
#describe_budget_actions_for_budget(params = {}) ⇒ Types::DescribeBudgetActionsForBudgetResponse
Describes all of the budget actions for a budget.
-
#describe_budget_notifications_for_account(params = {}) ⇒ Types::DescribeBudgetNotificationsForAccountResponse
Lists the budget names and notifications that are associated with an account.
-
#describe_budget_performance_history(params = {}) ⇒ Types::DescribeBudgetPerformanceHistoryResponse
Describes the history for
DAILY,MONTHLY, andQUARTERLYbudgets. -
#describe_budgets(params = {}) ⇒ Types::DescribeBudgetsResponse
Lists the budgets that are associated with an account.
-
#describe_notifications_for_budget(params = {}) ⇒ Types::DescribeNotificationsForBudgetResponse
Lists the notifications that are associated with a budget.
-
#describe_subscribers_for_notification(params = {}) ⇒ Types::DescribeSubscribersForNotificationResponse
Lists the subscribers that are associated with a notification.
-
#execute_budget_action(params = {}) ⇒ Types::ExecuteBudgetActionResponse
Executes a budget action.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists tags associated with a budget or budget action resource.
-
#tag_resource(params = {}) ⇒ Struct
Creates tags for a budget or budget action resource.
-
#untag_resource(params = {}) ⇒ Struct
Deletes tags associated with a budget or budget action resource.
-
#update_budget(params = {}) ⇒ Struct
Updates a budget.
-
#update_budget_action(params = {}) ⇒ Types::UpdateBudgetActionResponse
Updates a budget action.
-
#update_notification(params = {}) ⇒ Struct
Updates a notification.
-
#update_subscriber(params = {}) ⇒ Struct
Updates a subscriber.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
485 486 487 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 485 def initialize(*args) super end |
Instance Method Details
#create_budget(params = {}) ⇒ Struct
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 use case. The
Request Syntax section shows the BudgetLimit syntax. For
PlannedBudgetLimits, see the Examples section.
Similarly, only one set of filter and metric selections can be
present
in the syntax at one time. Either FilterExpression and Metrics or
CostFilters and CostTypes, not both or a different combination. We
recommend using FilterExpression and Metrics as they provide more
flexible and powerful filtering capabilities. The Request Syntax
section shows the FilterExpression/Metrics syntax.
657 658 659 660 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 657 def create_budget(params = {}, = {}) req = build_request(:create_budget, params) req.send_request() end |
#create_budget_action(params = {}) ⇒ Types::CreateBudgetActionResponse
Creates a budget action.
762 763 764 765 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 762 def create_budget_action(params = {}, = {}) req = build_request(:create_budget_action, params) req.send_request() end |
#create_notification(params = {}) ⇒ Struct
Creates a notification. You must create the budget before you create the associated notification.
810 811 812 813 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 810 def create_notification(params = {}, = {}) req = build_request(:create_notification, params) req.send_request() end |
#create_subscriber(params = {}) ⇒ Struct
Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
854 855 856 857 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 854 def create_subscriber(params = {}, = {}) req = build_request(:create_subscriber, params) req.send_request() end |
#delete_budget(params = {}) ⇒ Struct
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.
882 883 884 885 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 882 def delete_budget(params = {}, = {}) req = build_request(:delete_budget, params) req.send_request() end |
#delete_budget_action(params = {}) ⇒ Types::DeleteBudgetActionResponse
Deletes a budget action.
951 952 953 954 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 951 def delete_budget_action(params = {}, = {}) req = build_request(:delete_budget_action, params) req.send_request() end |
#delete_notification(params = {}) ⇒ Struct
Deletes a notification.
Deleting a notification also deletes the subscribers that are associated with the notification.
989 990 991 992 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 989 def delete_notification(params = {}, = {}) req = build_request(:delete_notification, params) req.send_request() end |
#delete_subscriber(params = {}) ⇒ Struct
Deletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
1034 1035 1036 1037 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1034 def delete_subscriber(params = {}, = {}) req = build_request(:delete_subscriber, params) req.send_request() end |
#describe_budget(params = {}) ⇒ Types::DescribeBudgetResponse
Describes a budget.
The Request Syntax section shows the BudgetLimit syntax. For
PlannedBudgetLimits, see the Examples section.
1142 1143 1144 1145 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1142 def describe_budget(params = {}, = {}) req = build_request(:describe_budget, params) req.send_request() end |
#describe_budget_action(params = {}) ⇒ Types::DescribeBudgetActionResponse
Describes a budget action detail.
1211 1212 1213 1214 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1211 def describe_budget_action(params = {}, = {}) req = build_request(:describe_budget_action, params) req.send_request() end |
#describe_budget_action_histories(params = {}) ⇒ Types::DescribeBudgetActionHistoriesResponse
Describes a budget action history detail.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1303 1304 1305 1306 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1303 def describe_budget_action_histories(params = {}, = {}) req = build_request(:describe_budget_action_histories, params) req.send_request() end |
#describe_budget_actions_for_account(params = {}) ⇒ Types::DescribeBudgetActionsForAccountResponse
Describes all of the budget actions for an account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1368 1369 1370 1371 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1368 def describe_budget_actions_for_account(params = {}, = {}) req = build_request(:describe_budget_actions_for_account, params) req.send_request() end |
#describe_budget_actions_for_budget(params = {}) ⇒ Types::DescribeBudgetActionsForBudgetResponse
Describes all of the budget actions for a budget.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1442 1443 1444 1445 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1442 def describe_budget_actions_for_budget(params = {}, = {}) req = build_request(:describe_budget_actions_for_budget, params) req.send_request() end |
#describe_budget_notifications_for_account(params = {}) ⇒ Types::DescribeBudgetNotificationsForAccountResponse
Lists the budget names and notifications that are associated with an account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1489 1490 1491 1492 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1489 def describe_budget_notifications_for_account(params = {}, = {}) req = build_request(:describe_budget_notifications_for_account, params) req.send_request() end |
#describe_budget_performance_history(params = {}) ⇒ Types::DescribeBudgetPerformanceHistoryResponse
Describes the history for DAILY, MONTHLY, and QUARTERLY budgets.
Budget history isn't available for ANNUAL budgets.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1597 1598 1599 1600 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1597 def describe_budget_performance_history(params = {}, = {}) req = build_request(:describe_budget_performance_history, params) req.send_request() end |
#describe_budgets(params = {}) ⇒ Types::DescribeBudgetsResponse
Lists the budgets that are associated with an account.
The Request Syntax section shows the BudgetLimit syntax. For
PlannedBudgetLimits, see the Examples section.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1716 1717 1718 1719 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1716 def describe_budgets(params = {}, = {}) req = build_request(:describe_budgets, params) req.send_request() end |
#describe_notifications_for_budget(params = {}) ⇒ Types::DescribeNotificationsForBudgetResponse
Lists the notifications that are associated with a budget.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1766 1767 1768 1769 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1766 def describe_notifications_for_budget(params = {}, = {}) req = build_request(:describe_notifications_for_budget, params) req.send_request() end |
#describe_subscribers_for_notification(params = {}) ⇒ Types::DescribeSubscribersForNotificationResponse
Lists the subscribers that are associated with a notification.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1823 1824 1825 1826 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1823 def describe_subscribers_for_notification(params = {}, = {}) req = build_request(:describe_subscribers_for_notification, params) req.send_request() end |
#execute_budget_action(params = {}) ⇒ Types::ExecuteBudgetActionResponse
Executes a budget action.
1873 1874 1875 1876 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1873 def execute_budget_action(params = {}, = {}) req = build_request(:execute_budget_action, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists tags associated with a budget or budget action resource.
1901 1902 1903 1904 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1901 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Creates tags for a budget or budget action resource.
1930 1931 1932 1933 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1930 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deletes tags associated with a budget or budget action resource.
1954 1955 1956 1957 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 1954 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_budget(params = {}) ⇒ Struct
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.
Similarly, only one set of filter and metric selections can be
present
in the syntax at one time. Either FilterExpression and Metrics or
CostFilters and CostTypes, not both or a different combination. We
recommend using FilterExpression and Metrics as they provide more
flexible and powerful filtering capabilities. The Request Syntax
section shows the FilterExpression/Metrics syntax.
2094 2095 2096 2097 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 2094 def update_budget(params = {}, = {}) req = build_request(:update_budget, params) req.send_request() end |
#update_budget_action(params = {}) ⇒ Types::UpdateBudgetActionResponse
Updates a budget action.
2239 2240 2241 2242 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 2239 def update_budget_action(params = {}, = {}) req = build_request(:update_budget_action, params) req.send_request() end |
#update_notification(params = {}) ⇒ Struct
Updates a notification.
2284 2285 2286 2287 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 2284 def update_notification(params = {}, = {}) req = build_request(:update_notification, params) req.send_request() end |
#update_subscriber(params = {}) ⇒ Struct
Updates a subscriber.
2333 2334 2335 2336 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/client.rb', line 2333 def update_subscriber(params = {}, = {}) req = build_request(:update_subscriber, params) req.send_request() end |