aws-sdk-budgets 1.4.0 → 1.5.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/lib/aws-sdk-budgets.rb +1 -1
- data/lib/aws-sdk-budgets/client.rb +107 -92
- data/lib/aws-sdk-budgets/client_api.rb +4 -4
- data/lib/aws-sdk-budgets/types.rb +254 -148
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0077337ddfa0756c7d7604bcb896fa084239fb5b
|
|
4
|
+
data.tar.gz: b39fffee7c9f6b31fd221b461415eb18a7c3138a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4560341d9770749a3bfeb9ca25613deecb43809651ed1c5cc00d18ff5da9bd8d422121f18f0ac97bac4bf980feb2437895ca3f26fade14b2a1f5aec7d2cd537a
|
|
7
|
+
data.tar.gz: 5da5e04054b46f4fe8095133b1c7aabe754099518116962392c7128269c36cb0c368c730501b3486b55371e914b19ae9e615ada9f3dbd127488cc2463624491d
|
data/lib/aws-sdk-budgets.rb
CHANGED
|
@@ -155,16 +155,20 @@ module Aws::Budgets
|
|
|
155
155
|
|
|
156
156
|
# @!group API Operations
|
|
157
157
|
|
|
158
|
-
#
|
|
158
|
+
# Creates a budget and, if included, notifications and subscribers.
|
|
159
159
|
#
|
|
160
160
|
# @option params [required, String] :account_id
|
|
161
|
-
#
|
|
161
|
+
# The `accountId` that is associated with the budget.
|
|
162
162
|
#
|
|
163
163
|
# @option params [required, Types::Budget] :budget
|
|
164
|
-
#
|
|
164
|
+
# The budget object that you want to create.
|
|
165
165
|
#
|
|
166
166
|
# @option params [Array<Types::NotificationWithSubscribers>] :notifications_with_subscribers
|
|
167
|
-
# A
|
|
167
|
+
# A notification that you want to associate with a budget. A budget can
|
|
168
|
+
# have up to five notifications, and each notification can have one SNS
|
|
169
|
+
# subscriber and up to ten email subscribers. If you include
|
|
170
|
+
# notifications and subscribers in your `CreateBudget` call, AWS creates
|
|
171
|
+
# the notifications and subscribers for you.
|
|
168
172
|
#
|
|
169
173
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
170
174
|
#
|
|
@@ -174,7 +178,7 @@ module Aws::Budgets
|
|
|
174
178
|
# account_id: "AccountId", # required
|
|
175
179
|
# budget: { # required
|
|
176
180
|
# budget_name: "BudgetName", # required
|
|
177
|
-
# budget_limit: {
|
|
181
|
+
# budget_limit: {
|
|
178
182
|
# amount: "NumericValue", # required
|
|
179
183
|
# unit: "UnitValue", # required
|
|
180
184
|
# },
|
|
@@ -195,9 +199,9 @@ module Aws::Budgets
|
|
|
195
199
|
# use_amortized: false,
|
|
196
200
|
# },
|
|
197
201
|
# time_unit: "DAILY", # required, accepts DAILY, MONTHLY, QUARTERLY, ANNUALLY
|
|
198
|
-
# time_period: {
|
|
199
|
-
# start: Time.now,
|
|
200
|
-
# end: Time.now,
|
|
202
|
+
# time_period: {
|
|
203
|
+
# start: Time.now,
|
|
204
|
+
# end: Time.now,
|
|
201
205
|
# },
|
|
202
206
|
# calculated_spend: {
|
|
203
207
|
# actual_spend: { # required
|
|
@@ -236,21 +240,24 @@ module Aws::Budgets
|
|
|
236
240
|
req.send_request(options)
|
|
237
241
|
end
|
|
238
242
|
|
|
239
|
-
#
|
|
243
|
+
# Creates a notification. You must create the budget before you create
|
|
244
|
+
# the associated notification.
|
|
240
245
|
#
|
|
241
246
|
# @option params [required, String] :account_id
|
|
242
|
-
#
|
|
247
|
+
# The `accountId` that is associated with the budget that you want to
|
|
248
|
+
# create a notification for.
|
|
243
249
|
#
|
|
244
250
|
# @option params [required, String] :budget_name
|
|
245
|
-
#
|
|
246
|
-
#
|
|
251
|
+
# The name of the budget that you want AWS to notified you about. Budget
|
|
252
|
+
# names must be unique within an account.
|
|
247
253
|
#
|
|
248
254
|
# @option params [required, Types::Notification] :notification
|
|
249
|
-
#
|
|
250
|
-
# with different settings.
|
|
255
|
+
# The notification that you want to create.
|
|
251
256
|
#
|
|
252
257
|
# @option params [required, Array<Types::Subscriber>] :subscribers
|
|
253
|
-
# A list of subscribers
|
|
258
|
+
# A list of subscribers that you want to associate with the
|
|
259
|
+
# notification. Each notification can have one SNS subscriber and up to
|
|
260
|
+
# ten email subscribers.
|
|
254
261
|
#
|
|
255
262
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
256
263
|
#
|
|
@@ -280,22 +287,22 @@ module Aws::Budgets
|
|
|
280
287
|
req.send_request(options)
|
|
281
288
|
end
|
|
282
289
|
|
|
283
|
-
#
|
|
290
|
+
# Creates a subscriber. You must create the associated budget and
|
|
291
|
+
# notification before you create the subscriber.
|
|
284
292
|
#
|
|
285
293
|
# @option params [required, String] :account_id
|
|
286
|
-
#
|
|
294
|
+
# The `accountId` associated with the budget that you want to create a
|
|
295
|
+
# subscriber for.
|
|
287
296
|
#
|
|
288
297
|
# @option params [required, String] :budget_name
|
|
289
|
-
#
|
|
290
|
-
#
|
|
298
|
+
# The name of the budget that you want to subscribe to. Budget names
|
|
299
|
+
# must be unique within an account.
|
|
291
300
|
#
|
|
292
301
|
# @option params [required, Types::Notification] :notification
|
|
293
|
-
#
|
|
294
|
-
# with different settings.
|
|
302
|
+
# The notification that you want to create a subscriber for.
|
|
295
303
|
#
|
|
296
304
|
# @option params [required, Types::Subscriber] :subscriber
|
|
297
|
-
#
|
|
298
|
-
# with different addresses.
|
|
305
|
+
# The subscriber that you want to associate with a budget notification.
|
|
299
306
|
#
|
|
300
307
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
301
308
|
#
|
|
@@ -323,14 +330,17 @@ module Aws::Budgets
|
|
|
323
330
|
req.send_request(options)
|
|
324
331
|
end
|
|
325
332
|
|
|
326
|
-
#
|
|
333
|
+
# Deletes a budget. You can delete your budget at any time.
|
|
334
|
+
#
|
|
335
|
+
# **Deleting a budget also deletes the notifications and subscribers
|
|
336
|
+
# associated with that budget.**
|
|
327
337
|
#
|
|
328
338
|
# @option params [required, String] :account_id
|
|
329
|
-
#
|
|
339
|
+
# The `accountId` that is associated with the budget that you want to
|
|
340
|
+
# delete.
|
|
330
341
|
#
|
|
331
342
|
# @option params [required, String] :budget_name
|
|
332
|
-
#
|
|
333
|
-
# allowed.
|
|
343
|
+
# The name of the budget that you want to delete.
|
|
334
344
|
#
|
|
335
345
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
336
346
|
#
|
|
@@ -348,18 +358,20 @@ module Aws::Budgets
|
|
|
348
358
|
req.send_request(options)
|
|
349
359
|
end
|
|
350
360
|
|
|
351
|
-
#
|
|
361
|
+
# Deletes a notification.
|
|
362
|
+
#
|
|
363
|
+
# **Deleting a notification also deletes the subscribers associated with
|
|
364
|
+
# the notification.**
|
|
352
365
|
#
|
|
353
366
|
# @option params [required, String] :account_id
|
|
354
|
-
#
|
|
367
|
+
# The `accountId` that is associated with the budget whose notification
|
|
368
|
+
# you want to delete.
|
|
355
369
|
#
|
|
356
370
|
# @option params [required, String] :budget_name
|
|
357
|
-
#
|
|
358
|
-
# allowed.
|
|
371
|
+
# The name of the budget whose notification you want to delete.
|
|
359
372
|
#
|
|
360
373
|
# @option params [required, Types::Notification] :notification
|
|
361
|
-
#
|
|
362
|
-
# with different settings.
|
|
374
|
+
# The notification that you want to delete.
|
|
363
375
|
#
|
|
364
376
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
365
377
|
#
|
|
@@ -383,22 +395,23 @@ module Aws::Budgets
|
|
|
383
395
|
req.send_request(options)
|
|
384
396
|
end
|
|
385
397
|
|
|
386
|
-
#
|
|
398
|
+
# Deletes a subscriber.
|
|
399
|
+
#
|
|
400
|
+
# **Deleting the last subscriber to a notification also deletes the
|
|
401
|
+
# notification.**
|
|
387
402
|
#
|
|
388
403
|
# @option params [required, String] :account_id
|
|
389
|
-
#
|
|
404
|
+
# The `accountId` that is associated with the budget whose subscriber
|
|
405
|
+
# you want to delete.
|
|
390
406
|
#
|
|
391
407
|
# @option params [required, String] :budget_name
|
|
392
|
-
#
|
|
393
|
-
# allowed.
|
|
408
|
+
# The name of the budget whose subscriber you want to delete.
|
|
394
409
|
#
|
|
395
410
|
# @option params [required, Types::Notification] :notification
|
|
396
|
-
#
|
|
397
|
-
# with different settings.
|
|
411
|
+
# The notification whose subscriber you want to delete.
|
|
398
412
|
#
|
|
399
413
|
# @option params [required, Types::Subscriber] :subscriber
|
|
400
|
-
#
|
|
401
|
-
# with different addresses.
|
|
414
|
+
# The subscriber that you want to delete.
|
|
402
415
|
#
|
|
403
416
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
404
417
|
#
|
|
@@ -426,14 +439,14 @@ module Aws::Budgets
|
|
|
426
439
|
req.send_request(options)
|
|
427
440
|
end
|
|
428
441
|
|
|
429
|
-
#
|
|
442
|
+
# Describes a budget.
|
|
430
443
|
#
|
|
431
444
|
# @option params [required, String] :account_id
|
|
432
|
-
#
|
|
445
|
+
# The `accountId` that is associated with the budget that you want a
|
|
446
|
+
# description of.
|
|
433
447
|
#
|
|
434
448
|
# @option params [required, String] :budget_name
|
|
435
|
-
#
|
|
436
|
-
# allowed.
|
|
449
|
+
# The name of the budget that you want a description of.
|
|
437
450
|
#
|
|
438
451
|
# @return [Types::DescribeBudgetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
439
452
|
#
|
|
@@ -481,17 +494,19 @@ module Aws::Budgets
|
|
|
481
494
|
req.send_request(options)
|
|
482
495
|
end
|
|
483
496
|
|
|
484
|
-
#
|
|
497
|
+
# Lists the budgets associated with an account.
|
|
485
498
|
#
|
|
486
499
|
# @option params [required, String] :account_id
|
|
487
|
-
#
|
|
500
|
+
# The `accountId` that is associated with the budgets that you want
|
|
501
|
+
# descriptions of.
|
|
488
502
|
#
|
|
489
503
|
# @option params [Integer] :max_results
|
|
490
|
-
#
|
|
491
|
-
#
|
|
504
|
+
# Optional integer. Specifies the maximum number of results to return in
|
|
505
|
+
# response.
|
|
492
506
|
#
|
|
493
507
|
# @option params [String] :next_token
|
|
494
|
-
#
|
|
508
|
+
# The pagination token that indicates the next set of results to
|
|
509
|
+
# retrieve.
|
|
495
510
|
#
|
|
496
511
|
# @return [Types::DescribeBudgetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
497
512
|
#
|
|
@@ -543,21 +558,22 @@ module Aws::Budgets
|
|
|
543
558
|
req.send_request(options)
|
|
544
559
|
end
|
|
545
560
|
|
|
546
|
-
#
|
|
561
|
+
# Lists the notifications associated with a budget.
|
|
547
562
|
#
|
|
548
563
|
# @option params [required, String] :account_id
|
|
549
|
-
#
|
|
564
|
+
# The `accountId` that is associated with the budget whose notifications
|
|
565
|
+
# you want descriptions of.
|
|
550
566
|
#
|
|
551
567
|
# @option params [required, String] :budget_name
|
|
552
|
-
#
|
|
553
|
-
# allowed.
|
|
568
|
+
# The name of the budget whose notifications you want descriptions of.
|
|
554
569
|
#
|
|
555
570
|
# @option params [Integer] :max_results
|
|
556
|
-
#
|
|
557
|
-
#
|
|
571
|
+
# Optional integer. Specifies the maximum number of results to return in
|
|
572
|
+
# response.
|
|
558
573
|
#
|
|
559
574
|
# @option params [String] :next_token
|
|
560
|
-
#
|
|
575
|
+
# The pagination token that indicates the next set of results to
|
|
576
|
+
# retrieve.
|
|
561
577
|
#
|
|
562
578
|
# @return [Types::DescribeNotificationsForBudgetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
563
579
|
#
|
|
@@ -589,25 +605,25 @@ module Aws::Budgets
|
|
|
589
605
|
req.send_request(options)
|
|
590
606
|
end
|
|
591
607
|
|
|
592
|
-
#
|
|
608
|
+
# Lists the subscribers associated with a notification.
|
|
593
609
|
#
|
|
594
610
|
# @option params [required, String] :account_id
|
|
595
|
-
#
|
|
611
|
+
# The `accountId` that is associated with the budget whose subscribers
|
|
612
|
+
# you want descriptions of.
|
|
596
613
|
#
|
|
597
614
|
# @option params [required, String] :budget_name
|
|
598
|
-
#
|
|
599
|
-
# allowed.
|
|
615
|
+
# The name of the budget whose subscribers you want descriptions of.
|
|
600
616
|
#
|
|
601
617
|
# @option params [required, Types::Notification] :notification
|
|
602
|
-
#
|
|
603
|
-
# with different settings.
|
|
618
|
+
# The notification whose subscribers you want to list.
|
|
604
619
|
#
|
|
605
620
|
# @option params [Integer] :max_results
|
|
606
|
-
#
|
|
607
|
-
#
|
|
621
|
+
# Optional integer. Specifies the maximum number of results to return in
|
|
622
|
+
# response.
|
|
608
623
|
#
|
|
609
624
|
# @option params [String] :next_token
|
|
610
|
-
#
|
|
625
|
+
# The pagination token that indicates the next set of results to
|
|
626
|
+
# retrieve.
|
|
611
627
|
#
|
|
612
628
|
# @return [Types::DescribeSubscribersForNotificationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
613
629
|
#
|
|
@@ -643,13 +659,17 @@ module Aws::Budgets
|
|
|
643
659
|
req.send_request(options)
|
|
644
660
|
end
|
|
645
661
|
|
|
646
|
-
#
|
|
662
|
+
# Updates a budget. You can change every part of a budget except for the
|
|
663
|
+
# `budgetName` and the `calculatedSpend`. When a budget is modified, the
|
|
664
|
+
# `calculatedSpend` drops to zero until AWS has new usage data to use
|
|
665
|
+
# for forecasting.
|
|
647
666
|
#
|
|
648
667
|
# @option params [required, String] :account_id
|
|
649
|
-
#
|
|
668
|
+
# The `accountId` that is associated with the budget that you want to
|
|
669
|
+
# update.
|
|
650
670
|
#
|
|
651
671
|
# @option params [required, Types::Budget] :new_budget
|
|
652
|
-
#
|
|
672
|
+
# The budget that you want to update your budget to.
|
|
653
673
|
#
|
|
654
674
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
655
675
|
#
|
|
@@ -659,7 +679,7 @@ module Aws::Budgets
|
|
|
659
679
|
# account_id: "AccountId", # required
|
|
660
680
|
# new_budget: { # required
|
|
661
681
|
# budget_name: "BudgetName", # required
|
|
662
|
-
# budget_limit: {
|
|
682
|
+
# budget_limit: {
|
|
663
683
|
# amount: "NumericValue", # required
|
|
664
684
|
# unit: "UnitValue", # required
|
|
665
685
|
# },
|
|
@@ -680,9 +700,9 @@ module Aws::Budgets
|
|
|
680
700
|
# use_amortized: false,
|
|
681
701
|
# },
|
|
682
702
|
# time_unit: "DAILY", # required, accepts DAILY, MONTHLY, QUARTERLY, ANNUALLY
|
|
683
|
-
# time_period: {
|
|
684
|
-
# start: Time.now,
|
|
685
|
-
# end: Time.now,
|
|
703
|
+
# time_period: {
|
|
704
|
+
# start: Time.now,
|
|
705
|
+
# end: Time.now,
|
|
686
706
|
# },
|
|
687
707
|
# calculated_spend: {
|
|
688
708
|
# actual_spend: { # required
|
|
@@ -705,22 +725,20 @@ module Aws::Budgets
|
|
|
705
725
|
req.send_request(options)
|
|
706
726
|
end
|
|
707
727
|
|
|
708
|
-
#
|
|
728
|
+
# Updates a notification.
|
|
709
729
|
#
|
|
710
730
|
# @option params [required, String] :account_id
|
|
711
|
-
#
|
|
731
|
+
# The `accountId` that is associated with the budget whose notification
|
|
732
|
+
# you want to update.
|
|
712
733
|
#
|
|
713
734
|
# @option params [required, String] :budget_name
|
|
714
|
-
#
|
|
715
|
-
# allowed.
|
|
735
|
+
# The name of the budget whose notification you want to update.
|
|
716
736
|
#
|
|
717
737
|
# @option params [required, Types::Notification] :old_notification
|
|
718
|
-
#
|
|
719
|
-
# with different settings.
|
|
738
|
+
# The previous notification associated with a budget.
|
|
720
739
|
#
|
|
721
740
|
# @option params [required, Types::Notification] :new_notification
|
|
722
|
-
#
|
|
723
|
-
# with different settings.
|
|
741
|
+
# The updated notification to be associated with a budget.
|
|
724
742
|
#
|
|
725
743
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
726
744
|
#
|
|
@@ -750,26 +768,23 @@ module Aws::Budgets
|
|
|
750
768
|
req.send_request(options)
|
|
751
769
|
end
|
|
752
770
|
|
|
753
|
-
#
|
|
771
|
+
# Updates a subscriber.
|
|
754
772
|
#
|
|
755
773
|
# @option params [required, String] :account_id
|
|
756
|
-
#
|
|
774
|
+
# The `accountId` that is associated with the budget whose subscriber
|
|
775
|
+
# you want to update.
|
|
757
776
|
#
|
|
758
777
|
# @option params [required, String] :budget_name
|
|
759
|
-
#
|
|
760
|
-
# allowed.
|
|
778
|
+
# The name of the budget whose subscriber you want to update.
|
|
761
779
|
#
|
|
762
780
|
# @option params [required, Types::Notification] :notification
|
|
763
|
-
#
|
|
764
|
-
# with different settings.
|
|
781
|
+
# The notification whose subscriber you want to update.
|
|
765
782
|
#
|
|
766
783
|
# @option params [required, Types::Subscriber] :old_subscriber
|
|
767
|
-
#
|
|
768
|
-
# with different addresses.
|
|
784
|
+
# The previous subscriber associated with a budget notification.
|
|
769
785
|
#
|
|
770
786
|
# @option params [required, Types::Subscriber] :new_subscriber
|
|
771
|
-
#
|
|
772
|
-
# with different addresses.
|
|
787
|
+
# The updated subscriber associated with a budget notification.
|
|
773
788
|
#
|
|
774
789
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
775
790
|
#
|
|
@@ -814,7 +829,7 @@ module Aws::Budgets
|
|
|
814
829
|
params: params,
|
|
815
830
|
config: config)
|
|
816
831
|
context[:gem_name] = 'aws-sdk-budgets'
|
|
817
|
-
context[:gem_version] = '1.
|
|
832
|
+
context[:gem_version] = '1.5.0'
|
|
818
833
|
Seahorse::Client::Request.new(handlers, context)
|
|
819
834
|
end
|
|
820
835
|
|
|
@@ -77,11 +77,11 @@ module Aws::Budgets
|
|
|
77
77
|
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
|
78
78
|
|
|
79
79
|
Budget.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
|
|
80
|
-
Budget.add_member(:budget_limit, Shapes::ShapeRef.new(shape: Spend,
|
|
80
|
+
Budget.add_member(:budget_limit, Shapes::ShapeRef.new(shape: Spend, location_name: "BudgetLimit"))
|
|
81
81
|
Budget.add_member(:cost_filters, Shapes::ShapeRef.new(shape: CostFilters, location_name: "CostFilters"))
|
|
82
82
|
Budget.add_member(:cost_types, Shapes::ShapeRef.new(shape: CostTypes, location_name: "CostTypes"))
|
|
83
83
|
Budget.add_member(:time_unit, Shapes::ShapeRef.new(shape: TimeUnit, required: true, location_name: "TimeUnit"))
|
|
84
|
-
Budget.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod,
|
|
84
|
+
Budget.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod, location_name: "TimePeriod"))
|
|
85
85
|
Budget.add_member(:calculated_spend, Shapes::ShapeRef.new(shape: CalculatedSpend, location_name: "CalculatedSpend"))
|
|
86
86
|
Budget.add_member(:budget_type, Shapes::ShapeRef.new(shape: BudgetType, required: true, location_name: "BudgetType"))
|
|
87
87
|
Budget.struct_class = Types::Budget
|
|
@@ -215,8 +215,8 @@ module Aws::Budgets
|
|
|
215
215
|
|
|
216
216
|
Subscribers.member = Shapes::ShapeRef.new(shape: Subscriber)
|
|
217
217
|
|
|
218
|
-
TimePeriod.add_member(:start, Shapes::ShapeRef.new(shape: GenericTimestamp,
|
|
219
|
-
TimePeriod.add_member(:end, Shapes::ShapeRef.new(shape: GenericTimestamp,
|
|
218
|
+
TimePeriod.add_member(:start, Shapes::ShapeRef.new(shape: GenericTimestamp, location_name: "Start"))
|
|
219
|
+
TimePeriod.add_member(:end, Shapes::ShapeRef.new(shape: GenericTimestamp, location_name: "End"))
|
|
220
220
|
TimePeriod.struct_class = Types::TimePeriod
|
|
221
221
|
|
|
222
222
|
UpdateBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|