aws-sdk-budgets 1.47.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-budgets/client.rb +52 -3
- data/lib/aws-sdk-budgets/client_api.rb +69 -1
- data/lib/aws-sdk-budgets/errors.rb +16 -0
- data/lib/aws-sdk-budgets/types.rb +79 -3
- data/lib/aws-sdk-budgets.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bdd9a4c84c769f8d193cdd3aa50556e4c90cad215740b33cdd8c4dc24ef5b8c1
|
|
4
|
+
data.tar.gz: 6c2c5bd9dd6d689dcaf629e2d2f24ed2c0d3821b22210ccec00ca99e0b094591
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 761fb2064a84fa057a86919795672148be92d9d010b199486f17e0b6408f64cdddcaefa7156e46ab698beac04dccf66270ff9ce6830183bfab2ad996b0af88e7
|
|
7
|
+
data.tar.gz: 1928c7d68dc2188e4eb254c0bc218fcde27fd171a66b96293d5b64a0131ff65e660f4f135c30423470db62ba31dbe2622132cc64b73d90731dad43bca3fa4321
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.50.0 (2022-06-14)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Add a budgets ThrottlingException. Update the CostFilters value pattern.
|
|
8
|
+
|
|
9
|
+
1.49.0 (2022-02-24)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
14
|
+
1.48.0 (2022-02-18)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - This change introduces DescribeBudgetNotificationsForAccount API which returns budget notifications for the specified account
|
|
18
|
+
|
|
4
19
|
1.47.0 (2022-02-16)
|
|
5
20
|
------------------
|
|
6
21
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.50.0
|
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
|
31
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
|
32
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
|
@@ -75,6 +76,7 @@ module Aws::Budgets
|
|
|
75
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
76
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
|
77
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
|
78
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
|
79
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
|
80
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
|
@@ -402,7 +404,7 @@ module Aws::Budgets
|
|
|
402
404
|
# },
|
|
403
405
|
# },
|
|
404
406
|
# cost_filters: {
|
|
405
|
-
# "GenericString" => ["
|
|
407
|
+
# "GenericString" => ["DimensionValue"],
|
|
406
408
|
# },
|
|
407
409
|
# cost_types: {
|
|
408
410
|
# include_tax: false,
|
|
@@ -1185,6 +1187,53 @@ module Aws::Budgets
|
|
|
1185
1187
|
req.send_request(options)
|
|
1186
1188
|
end
|
|
1187
1189
|
|
|
1190
|
+
# Lists the budget names and notifications that are associated with an
|
|
1191
|
+
# account.
|
|
1192
|
+
#
|
|
1193
|
+
# @option params [required, String] :account_id
|
|
1194
|
+
# The account ID of the user. It's a 12-digit number.
|
|
1195
|
+
#
|
|
1196
|
+
# @option params [Integer] :max_results
|
|
1197
|
+
# An integer that shows how many budget name entries a paginated
|
|
1198
|
+
# response contains.
|
|
1199
|
+
#
|
|
1200
|
+
# @option params [String] :next_token
|
|
1201
|
+
# A generic string.
|
|
1202
|
+
#
|
|
1203
|
+
# @return [Types::DescribeBudgetNotificationsForAccountResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1204
|
+
#
|
|
1205
|
+
# * {Types::DescribeBudgetNotificationsForAccountResponse#budget_notifications_for_account #budget_notifications_for_account} => Array<Types::BudgetNotificationsForAccount>
|
|
1206
|
+
# * {Types::DescribeBudgetNotificationsForAccountResponse#next_token #next_token} => String
|
|
1207
|
+
#
|
|
1208
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1209
|
+
#
|
|
1210
|
+
# @example Request syntax with placeholder values
|
|
1211
|
+
#
|
|
1212
|
+
# resp = client.describe_budget_notifications_for_account({
|
|
1213
|
+
# account_id: "AccountId", # required
|
|
1214
|
+
# max_results: 1,
|
|
1215
|
+
# next_token: "GenericString",
|
|
1216
|
+
# })
|
|
1217
|
+
#
|
|
1218
|
+
# @example Response structure
|
|
1219
|
+
#
|
|
1220
|
+
# resp.budget_notifications_for_account #=> Array
|
|
1221
|
+
# resp.budget_notifications_for_account[0].notifications #=> Array
|
|
1222
|
+
# resp.budget_notifications_for_account[0].notifications[0].notification_type #=> String, one of "ACTUAL", "FORECASTED"
|
|
1223
|
+
# resp.budget_notifications_for_account[0].notifications[0].comparison_operator #=> String, one of "GREATER_THAN", "LESS_THAN", "EQUAL_TO"
|
|
1224
|
+
# resp.budget_notifications_for_account[0].notifications[0].threshold #=> Float
|
|
1225
|
+
# resp.budget_notifications_for_account[0].notifications[0].threshold_type #=> String, one of "PERCENTAGE", "ABSOLUTE_VALUE"
|
|
1226
|
+
# resp.budget_notifications_for_account[0].notifications[0].notification_state #=> String, one of "OK", "ALARM"
|
|
1227
|
+
# resp.budget_notifications_for_account[0].budget_name #=> String
|
|
1228
|
+
# resp.next_token #=> String
|
|
1229
|
+
#
|
|
1230
|
+
# @overload describe_budget_notifications_for_account(params = {})
|
|
1231
|
+
# @param [Hash] params ({})
|
|
1232
|
+
def describe_budget_notifications_for_account(params = {}, options = {})
|
|
1233
|
+
req = build_request(:describe_budget_notifications_for_account, params)
|
|
1234
|
+
req.send_request(options)
|
|
1235
|
+
end
|
|
1236
|
+
|
|
1188
1237
|
# Describes the history for `DAILY`, `MONTHLY`, and `QUARTERLY` budgets.
|
|
1189
1238
|
# Budget history isn't available for `ANNUAL` budgets.
|
|
1190
1239
|
#
|
|
@@ -1535,7 +1584,7 @@ module Aws::Budgets
|
|
|
1535
1584
|
# },
|
|
1536
1585
|
# },
|
|
1537
1586
|
# cost_filters: {
|
|
1538
|
-
# "GenericString" => ["
|
|
1587
|
+
# "GenericString" => ["DimensionValue"],
|
|
1539
1588
|
# },
|
|
1540
1589
|
# cost_types: {
|
|
1541
1590
|
# include_tax: false,
|
|
@@ -1833,7 +1882,7 @@ module Aws::Budgets
|
|
|
1833
1882
|
params: params,
|
|
1834
1883
|
config: config)
|
|
1835
1884
|
context[:gem_name] = 'aws-sdk-budgets'
|
|
1836
|
-
context[:gem_version] = '1.
|
|
1885
|
+
context[:gem_version] = '1.50.0'
|
|
1837
1886
|
Seahorse::Client::Request.new(handlers, context)
|
|
1838
1887
|
end
|
|
1839
1888
|
|
|
@@ -31,6 +31,8 @@ module Aws::Budgets
|
|
|
31
31
|
AutoAdjustType = Shapes::StringShape.new(name: 'AutoAdjustType')
|
|
32
32
|
Budget = Shapes::StructureShape.new(name: 'Budget')
|
|
33
33
|
BudgetName = Shapes::StringShape.new(name: 'BudgetName')
|
|
34
|
+
BudgetNotificationsForAccount = Shapes::StructureShape.new(name: 'BudgetNotificationsForAccount')
|
|
35
|
+
BudgetNotificationsForAccountList = Shapes::ListShape.new(name: 'BudgetNotificationsForAccountList')
|
|
34
36
|
BudgetPerformanceHistory = Shapes::StructureShape.new(name: 'BudgetPerformanceHistory')
|
|
35
37
|
BudgetType = Shapes::StringShape.new(name: 'BudgetType')
|
|
36
38
|
BudgetedAndActualAmounts = Shapes::StructureShape.new(name: 'BudgetedAndActualAmounts')
|
|
@@ -66,6 +68,8 @@ module Aws::Budgets
|
|
|
66
68
|
DescribeBudgetActionsForAccountResponse = Shapes::StructureShape.new(name: 'DescribeBudgetActionsForAccountResponse')
|
|
67
69
|
DescribeBudgetActionsForBudgetRequest = Shapes::StructureShape.new(name: 'DescribeBudgetActionsForBudgetRequest')
|
|
68
70
|
DescribeBudgetActionsForBudgetResponse = Shapes::StructureShape.new(name: 'DescribeBudgetActionsForBudgetResponse')
|
|
71
|
+
DescribeBudgetNotificationsForAccountRequest = Shapes::StructureShape.new(name: 'DescribeBudgetNotificationsForAccountRequest')
|
|
72
|
+
DescribeBudgetNotificationsForAccountResponse = Shapes::StructureShape.new(name: 'DescribeBudgetNotificationsForAccountResponse')
|
|
69
73
|
DescribeBudgetPerformanceHistoryRequest = Shapes::StructureShape.new(name: 'DescribeBudgetPerformanceHistoryRequest')
|
|
70
74
|
DescribeBudgetPerformanceHistoryResponse = Shapes::StructureShape.new(name: 'DescribeBudgetPerformanceHistoryResponse')
|
|
71
75
|
DescribeBudgetRequest = Shapes::StructureShape.new(name: 'DescribeBudgetRequest')
|
|
@@ -76,6 +80,7 @@ module Aws::Budgets
|
|
|
76
80
|
DescribeNotificationsForBudgetResponse = Shapes::StructureShape.new(name: 'DescribeNotificationsForBudgetResponse')
|
|
77
81
|
DescribeSubscribersForNotificationRequest = Shapes::StructureShape.new(name: 'DescribeSubscribersForNotificationRequest')
|
|
78
82
|
DescribeSubscribersForNotificationResponse = Shapes::StructureShape.new(name: 'DescribeSubscribersForNotificationResponse')
|
|
83
|
+
DimensionValue = Shapes::StringShape.new(name: 'DimensionValue')
|
|
79
84
|
DimensionValues = Shapes::ListShape.new(name: 'DimensionValues')
|
|
80
85
|
DuplicateRecordException = Shapes::StructureShape.new(name: 'DuplicateRecordException')
|
|
81
86
|
EventType = Shapes::StringShape.new(name: 'EventType')
|
|
@@ -95,6 +100,7 @@ module Aws::Budgets
|
|
|
95
100
|
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
|
96
101
|
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
|
97
102
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
|
103
|
+
MaxResultsBudgetNotifications = Shapes::IntegerShape.new(name: 'MaxResultsBudgetNotifications')
|
|
98
104
|
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
|
99
105
|
Notification = Shapes::StructureShape.new(name: 'Notification')
|
|
100
106
|
NotificationState = Shapes::StringShape.new(name: 'NotificationState')
|
|
@@ -123,6 +129,7 @@ module Aws::Budgets
|
|
|
123
129
|
TargetId = Shapes::StringShape.new(name: 'TargetId')
|
|
124
130
|
TargetIds = Shapes::ListShape.new(name: 'TargetIds')
|
|
125
131
|
ThresholdType = Shapes::StringShape.new(name: 'ThresholdType')
|
|
132
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
126
133
|
TimePeriod = Shapes::StructureShape.new(name: 'TimePeriod')
|
|
127
134
|
TimeUnit = Shapes::StringShape.new(name: 'TimeUnit')
|
|
128
135
|
UnitValue = Shapes::StringShape.new(name: 'UnitValue')
|
|
@@ -189,6 +196,12 @@ module Aws::Budgets
|
|
|
189
196
|
Budget.add_member(:auto_adjust_data, Shapes::ShapeRef.new(shape: AutoAdjustData, location_name: "AutoAdjustData"))
|
|
190
197
|
Budget.struct_class = Types::Budget
|
|
191
198
|
|
|
199
|
+
BudgetNotificationsForAccount.add_member(:notifications, Shapes::ShapeRef.new(shape: Notifications, location_name: "Notifications"))
|
|
200
|
+
BudgetNotificationsForAccount.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, location_name: "BudgetName"))
|
|
201
|
+
BudgetNotificationsForAccount.struct_class = Types::BudgetNotificationsForAccount
|
|
202
|
+
|
|
203
|
+
BudgetNotificationsForAccountList.member = Shapes::ShapeRef.new(shape: BudgetNotificationsForAccount)
|
|
204
|
+
|
|
192
205
|
BudgetPerformanceHistory.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, location_name: "BudgetName"))
|
|
193
206
|
BudgetPerformanceHistory.add_member(:budget_type, Shapes::ShapeRef.new(shape: BudgetType, location_name: "BudgetType"))
|
|
194
207
|
BudgetPerformanceHistory.add_member(:cost_filters, Shapes::ShapeRef.new(shape: CostFilters, location_name: "CostFilters"))
|
|
@@ -345,6 +358,15 @@ module Aws::Budgets
|
|
|
345
358
|
DescribeBudgetActionsForBudgetResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
|
346
359
|
DescribeBudgetActionsForBudgetResponse.struct_class = Types::DescribeBudgetActionsForBudgetResponse
|
|
347
360
|
|
|
361
|
+
DescribeBudgetNotificationsForAccountRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
|
362
|
+
DescribeBudgetNotificationsForAccountRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsBudgetNotifications, location_name: "MaxResults"))
|
|
363
|
+
DescribeBudgetNotificationsForAccountRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
|
364
|
+
DescribeBudgetNotificationsForAccountRequest.struct_class = Types::DescribeBudgetNotificationsForAccountRequest
|
|
365
|
+
|
|
366
|
+
DescribeBudgetNotificationsForAccountResponse.add_member(:budget_notifications_for_account, Shapes::ShapeRef.new(shape: BudgetNotificationsForAccountList, location_name: "BudgetNotificationsForAccount"))
|
|
367
|
+
DescribeBudgetNotificationsForAccountResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
|
368
|
+
DescribeBudgetNotificationsForAccountResponse.struct_class = Types::DescribeBudgetNotificationsForAccountResponse
|
|
369
|
+
|
|
348
370
|
DescribeBudgetPerformanceHistoryRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
|
349
371
|
DescribeBudgetPerformanceHistoryRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
|
|
350
372
|
DescribeBudgetPerformanceHistoryRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod, location_name: "TimePeriod"))
|
|
@@ -393,7 +415,7 @@ module Aws::Budgets
|
|
|
393
415
|
DescribeSubscribersForNotificationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
|
|
394
416
|
DescribeSubscribersForNotificationResponse.struct_class = Types::DescribeSubscribersForNotificationResponse
|
|
395
417
|
|
|
396
|
-
DimensionValues.member = Shapes::ShapeRef.new(shape:
|
|
418
|
+
DimensionValues.member = Shapes::ShapeRef.new(shape: DimensionValue)
|
|
397
419
|
|
|
398
420
|
DuplicateRecordException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
|
|
399
421
|
DuplicateRecordException.struct_class = Types::DuplicateRecordException
|
|
@@ -483,6 +505,9 @@ module Aws::Budgets
|
|
|
483
505
|
|
|
484
506
|
TargetIds.member = Shapes::ShapeRef.new(shape: TargetId)
|
|
485
507
|
|
|
508
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
|
|
509
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
|
510
|
+
|
|
486
511
|
TimePeriod.add_member(:start, Shapes::ShapeRef.new(shape: GenericTimestamp, location_name: "Start"))
|
|
487
512
|
TimePeriod.add_member(:end, Shapes::ShapeRef.new(shape: GenericTimestamp, location_name: "End"))
|
|
488
513
|
TimePeriod.struct_class = Types::TimePeriod
|
|
@@ -559,6 +584,7 @@ module Aws::Budgets
|
|
|
559
584
|
o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
|
|
560
585
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
|
|
561
586
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
587
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
562
588
|
end)
|
|
563
589
|
|
|
564
590
|
api.add_operation(:create_budget_action, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -573,6 +599,7 @@ module Aws::Budgets
|
|
|
573
599
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
|
|
574
600
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
575
601
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
602
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
576
603
|
end)
|
|
577
604
|
|
|
578
605
|
api.add_operation(:create_notification, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -587,6 +614,7 @@ module Aws::Budgets
|
|
|
587
614
|
o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
|
|
588
615
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
|
|
589
616
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
617
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
590
618
|
end)
|
|
591
619
|
|
|
592
620
|
api.add_operation(:create_subscriber, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -601,6 +629,7 @@ module Aws::Budgets
|
|
|
601
629
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
|
|
602
630
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
603
631
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
632
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
604
633
|
end)
|
|
605
634
|
|
|
606
635
|
api.add_operation(:delete_budget, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -613,6 +642,7 @@ module Aws::Budgets
|
|
|
613
642
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
|
614
643
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
615
644
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
645
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
616
646
|
end)
|
|
617
647
|
|
|
618
648
|
api.add_operation(:delete_budget_action, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -626,6 +656,7 @@ module Aws::Budgets
|
|
|
626
656
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
627
657
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
628
658
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLockedException)
|
|
659
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
629
660
|
end)
|
|
630
661
|
|
|
631
662
|
api.add_operation(:delete_notification, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -638,6 +669,7 @@ module Aws::Budgets
|
|
|
638
669
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
|
639
670
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
640
671
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
672
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
641
673
|
end)
|
|
642
674
|
|
|
643
675
|
api.add_operation(:delete_subscriber, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -650,6 +682,7 @@ module Aws::Budgets
|
|
|
650
682
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
|
651
683
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
652
684
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
685
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
653
686
|
end)
|
|
654
687
|
|
|
655
688
|
api.add_operation(:describe_budget, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -662,6 +695,7 @@ module Aws::Budgets
|
|
|
662
695
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
|
663
696
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
664
697
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
698
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
665
699
|
end)
|
|
666
700
|
|
|
667
701
|
api.add_operation(:describe_budget_action, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -674,6 +708,7 @@ module Aws::Budgets
|
|
|
674
708
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
|
675
709
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
676
710
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
711
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
677
712
|
end)
|
|
678
713
|
|
|
679
714
|
api.add_operation(:describe_budget_action_histories, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -687,6 +722,7 @@ module Aws::Budgets
|
|
|
687
722
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
688
723
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
689
724
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
|
725
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
690
726
|
o[:pager] = Aws::Pager.new(
|
|
691
727
|
limit_key: "max_results",
|
|
692
728
|
tokens: {
|
|
@@ -705,6 +741,7 @@ module Aws::Budgets
|
|
|
705
741
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
|
706
742
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
707
743
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
|
744
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
708
745
|
o[:pager] = Aws::Pager.new(
|
|
709
746
|
limit_key: "max_results",
|
|
710
747
|
tokens: {
|
|
@@ -724,6 +761,28 @@ module Aws::Budgets
|
|
|
724
761
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
725
762
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
726
763
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
|
764
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
765
|
+
o[:pager] = Aws::Pager.new(
|
|
766
|
+
limit_key: "max_results",
|
|
767
|
+
tokens: {
|
|
768
|
+
"next_token" => "next_token"
|
|
769
|
+
}
|
|
770
|
+
)
|
|
771
|
+
end)
|
|
772
|
+
|
|
773
|
+
api.add_operation(:describe_budget_notifications_for_account, Seahorse::Model::Operation.new.tap do |o|
|
|
774
|
+
o.name = "DescribeBudgetNotificationsForAccount"
|
|
775
|
+
o.http_method = "POST"
|
|
776
|
+
o.http_request_uri = "/"
|
|
777
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeBudgetNotificationsForAccountRequest)
|
|
778
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeBudgetNotificationsForAccountResponse)
|
|
779
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
|
780
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
|
781
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
782
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
|
783
|
+
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
|
784
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
785
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
727
786
|
o[:pager] = Aws::Pager.new(
|
|
728
787
|
limit_key: "max_results",
|
|
729
788
|
tokens: {
|
|
@@ -744,6 +803,7 @@ module Aws::Budgets
|
|
|
744
803
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
|
745
804
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
|
746
805
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
806
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
747
807
|
o[:pager] = Aws::Pager.new(
|
|
748
808
|
limit_key: "max_results",
|
|
749
809
|
tokens: {
|
|
@@ -764,6 +824,7 @@ module Aws::Budgets
|
|
|
764
824
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
|
765
825
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
|
766
826
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
827
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
767
828
|
o[:pager] = Aws::Pager.new(
|
|
768
829
|
limit_key: "max_results",
|
|
769
830
|
tokens: {
|
|
@@ -784,6 +845,7 @@ module Aws::Budgets
|
|
|
784
845
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
|
785
846
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
|
786
847
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
848
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
787
849
|
o[:pager] = Aws::Pager.new(
|
|
788
850
|
limit_key: "max_results",
|
|
789
851
|
tokens: {
|
|
@@ -804,6 +866,7 @@ module Aws::Budgets
|
|
|
804
866
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
|
805
867
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
|
806
868
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
869
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
807
870
|
o[:pager] = Aws::Pager.new(
|
|
808
871
|
limit_key: "max_results",
|
|
809
872
|
tokens: {
|
|
@@ -823,6 +886,7 @@ module Aws::Budgets
|
|
|
823
886
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
824
887
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
825
888
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLockedException)
|
|
889
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
826
890
|
end)
|
|
827
891
|
|
|
828
892
|
api.add_operation(:update_budget, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -835,6 +899,7 @@ module Aws::Budgets
|
|
|
835
899
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
|
836
900
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
837
901
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
902
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
838
903
|
end)
|
|
839
904
|
|
|
840
905
|
api.add_operation(:update_budget_action, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -848,6 +913,7 @@ module Aws::Budgets
|
|
|
848
913
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
849
914
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
850
915
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLockedException)
|
|
916
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
851
917
|
end)
|
|
852
918
|
|
|
853
919
|
api.add_operation(:update_notification, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -861,6 +927,7 @@ module Aws::Budgets
|
|
|
861
927
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
862
928
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
|
|
863
929
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
930
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
864
931
|
end)
|
|
865
932
|
|
|
866
933
|
api.add_operation(:update_subscriber, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -874,6 +941,7 @@ module Aws::Budgets
|
|
|
874
941
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
|
875
942
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
|
|
876
943
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
944
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
877
945
|
end)
|
|
878
946
|
end
|
|
879
947
|
|
|
@@ -36,6 +36,7 @@ module Aws::Budgets
|
|
|
36
36
|
# * {InvalidParameterException}
|
|
37
37
|
# * {NotFoundException}
|
|
38
38
|
# * {ResourceLockedException}
|
|
39
|
+
# * {ThrottlingException}
|
|
39
40
|
#
|
|
40
41
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
|
41
42
|
# if they are not defined above.
|
|
@@ -178,5 +179,20 @@ module Aws::Budgets
|
|
|
178
179
|
end
|
|
179
180
|
end
|
|
180
181
|
|
|
182
|
+
class ThrottlingException < ServiceError
|
|
183
|
+
|
|
184
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
185
|
+
# @param [String] message
|
|
186
|
+
# @param [Aws::Budgets::Types::ThrottlingException] data
|
|
187
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
188
|
+
super(context, message, data)
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# @return [String]
|
|
192
|
+
def message
|
|
193
|
+
@message || @data[:message]
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
181
197
|
end
|
|
182
198
|
end
|
|
@@ -216,7 +216,7 @@ module Aws::Budgets
|
|
|
216
216
|
# },
|
|
217
217
|
# },
|
|
218
218
|
# cost_filters: {
|
|
219
|
-
# "GenericString" => ["
|
|
219
|
+
# "GenericString" => ["DimensionValue"],
|
|
220
220
|
# },
|
|
221
221
|
# cost_types: {
|
|
222
222
|
# include_tax: false,
|
|
@@ -402,6 +402,24 @@ module Aws::Budgets
|
|
|
402
402
|
include Aws::Structure
|
|
403
403
|
end
|
|
404
404
|
|
|
405
|
+
# The budget name and associated notifications for an account.
|
|
406
|
+
#
|
|
407
|
+
# @!attribute [rw] notifications
|
|
408
|
+
# A list of notifications.
|
|
409
|
+
# @return [Array<Types::Notification>]
|
|
410
|
+
#
|
|
411
|
+
# @!attribute [rw] budget_name
|
|
412
|
+
# A string that represents the budget name. The ":" and "\\"
|
|
413
|
+
# characters aren't allowed.
|
|
414
|
+
# @return [String]
|
|
415
|
+
#
|
|
416
|
+
class BudgetNotificationsForAccount < Struct.new(
|
|
417
|
+
:notifications,
|
|
418
|
+
:budget_name)
|
|
419
|
+
SENSITIVE = []
|
|
420
|
+
include Aws::Structure
|
|
421
|
+
end
|
|
422
|
+
|
|
405
423
|
# A history of the state of a budget at the end of the budget's
|
|
406
424
|
# specified time period.
|
|
407
425
|
#
|
|
@@ -751,7 +769,7 @@ module Aws::Budgets
|
|
|
751
769
|
# },
|
|
752
770
|
# },
|
|
753
771
|
# cost_filters: {
|
|
754
|
-
# "GenericString" => ["
|
|
772
|
+
# "GenericString" => ["DimensionValue"],
|
|
755
773
|
# },
|
|
756
774
|
# cost_types: {
|
|
757
775
|
# include_tax: false,
|
|
@@ -1398,6 +1416,51 @@ module Aws::Budgets
|
|
|
1398
1416
|
include Aws::Structure
|
|
1399
1417
|
end
|
|
1400
1418
|
|
|
1419
|
+
# @note When making an API call, you may pass DescribeBudgetNotificationsForAccountRequest
|
|
1420
|
+
# data as a hash:
|
|
1421
|
+
#
|
|
1422
|
+
# {
|
|
1423
|
+
# account_id: "AccountId", # required
|
|
1424
|
+
# max_results: 1,
|
|
1425
|
+
# next_token: "GenericString",
|
|
1426
|
+
# }
|
|
1427
|
+
#
|
|
1428
|
+
# @!attribute [rw] account_id
|
|
1429
|
+
# The account ID of the user. It's a 12-digit number.
|
|
1430
|
+
# @return [String]
|
|
1431
|
+
#
|
|
1432
|
+
# @!attribute [rw] max_results
|
|
1433
|
+
# An integer that shows how many budget name entries a paginated
|
|
1434
|
+
# response contains.
|
|
1435
|
+
# @return [Integer]
|
|
1436
|
+
#
|
|
1437
|
+
# @!attribute [rw] next_token
|
|
1438
|
+
# A generic string.
|
|
1439
|
+
# @return [String]
|
|
1440
|
+
#
|
|
1441
|
+
class DescribeBudgetNotificationsForAccountRequest < Struct.new(
|
|
1442
|
+
:account_id,
|
|
1443
|
+
:max_results,
|
|
1444
|
+
:next_token)
|
|
1445
|
+
SENSITIVE = []
|
|
1446
|
+
include Aws::Structure
|
|
1447
|
+
end
|
|
1448
|
+
|
|
1449
|
+
# @!attribute [rw] budget_notifications_for_account
|
|
1450
|
+
# A list of budget names and associated notifications for an account.
|
|
1451
|
+
# @return [Array<Types::BudgetNotificationsForAccount>]
|
|
1452
|
+
#
|
|
1453
|
+
# @!attribute [rw] next_token
|
|
1454
|
+
# A generic string.
|
|
1455
|
+
# @return [String]
|
|
1456
|
+
#
|
|
1457
|
+
class DescribeBudgetNotificationsForAccountResponse < Struct.new(
|
|
1458
|
+
:budget_notifications_for_account,
|
|
1459
|
+
:next_token)
|
|
1460
|
+
SENSITIVE = []
|
|
1461
|
+
include Aws::Structure
|
|
1462
|
+
end
|
|
1463
|
+
|
|
1401
1464
|
# @note When making an API call, you may pass DescribeBudgetPerformanceHistoryRequest
|
|
1402
1465
|
# data as a hash:
|
|
1403
1466
|
#
|
|
@@ -2162,6 +2225,19 @@ module Aws::Budgets
|
|
|
2162
2225
|
include Aws::Structure
|
|
2163
2226
|
end
|
|
2164
2227
|
|
|
2228
|
+
# The number of API requests has exceeded the maximum allowed API
|
|
2229
|
+
# request throttling limit for the account.
|
|
2230
|
+
#
|
|
2231
|
+
# @!attribute [rw] message
|
|
2232
|
+
# The error message the exception carries.
|
|
2233
|
+
# @return [String]
|
|
2234
|
+
#
|
|
2235
|
+
class ThrottlingException < Struct.new(
|
|
2236
|
+
:message)
|
|
2237
|
+
SENSITIVE = []
|
|
2238
|
+
include Aws::Structure
|
|
2239
|
+
end
|
|
2240
|
+
|
|
2165
2241
|
# The period of time that's covered by a budget. The period has a start
|
|
2166
2242
|
# date and an end date. The start date must come before the end date.
|
|
2167
2243
|
# There are no restrictions on the end date.
|
|
@@ -2344,7 +2420,7 @@ module Aws::Budgets
|
|
|
2344
2420
|
# },
|
|
2345
2421
|
# },
|
|
2346
2422
|
# cost_filters: {
|
|
2347
|
-
# "GenericString" => ["
|
|
2423
|
+
# "GenericString" => ["DimensionValue"],
|
|
2348
2424
|
# },
|
|
2349
2425
|
# cost_types: {
|
|
2350
2426
|
# include_tax: false,
|
data/lib/aws-sdk-budgets.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-budgets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.50.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|
|
@@ -19,7 +19,7 @@ dependencies:
|
|
|
19
19
|
version: '3'
|
|
20
20
|
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 3.
|
|
22
|
+
version: 3.127.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,7 +29,7 @@ dependencies:
|
|
|
29
29
|
version: '3'
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 3.
|
|
32
|
+
version: 3.127.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: aws-sigv4
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|