aws-sdk-budgets 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57f73f9f9cef59dbcb2b7a4124a6906d9e5e9d70
4
- data.tar.gz: fc428c1bacb6289c4e33d249912967392c9fbdbc
3
+ metadata.gz: 0077337ddfa0756c7d7604bcb896fa084239fb5b
4
+ data.tar.gz: b39fffee7c9f6b31fd221b461415eb18a7c3138a
5
5
  SHA512:
6
- metadata.gz: 48e197c76a66b0c47d9c309f6adcbfd92e17e63e52d32c2e6d22a9024c8376b146ea37d25b2a82f1126bf66028dc4a5552efb3de6a8a669c090b67a409327a8c
7
- data.tar.gz: 54015cc95a6fe041fefff926af376a77ae5b0bff92e5e6ab2bca5e5a7a4431d6cadeffb960c8956478fc5b29cde88f9b4f3225f3c8d78f93105a206f4639324e
6
+ metadata.gz: 4560341d9770749a3bfeb9ca25613deecb43809651ed1c5cc00d18ff5da9bd8d422121f18f0ac97bac4bf980feb2437895ca3f26fade14b2a1f5aec7d2cd537a
7
+ data.tar.gz: 5da5e04054b46f4fe8095133b1c7aabe754099518116962392c7128269c36cb0c368c730501b3486b55371e914b19ae9e615ada9f3dbd127488cc2463624491d
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-budgets/customizations'
42
42
  # @service
43
43
  module Aws::Budgets
44
44
 
45
- GEM_VERSION = '1.4.0'
45
+ GEM_VERSION = '1.5.0'
46
46
 
47
47
  end
@@ -155,16 +155,20 @@ module Aws::Budgets
155
155
 
156
156
  # @!group API Operations
157
157
 
158
- # Create a new budget
158
+ # Creates a budget and, if included, notifications and subscribers.
159
159
  #
160
160
  # @option params [required, String] :account_id
161
- # Account Id of the customer. It should be a 12 digit number.
161
+ # The `accountId` that is associated with the budget.
162
162
  #
163
163
  # @option params [required, Types::Budget] :budget
164
- # AWS Budget model
164
+ # The budget object that you want to create.
165
165
  #
166
166
  # @option params [Array<Types::NotificationWithSubscribers>] :notifications_with_subscribers
167
- # A list of Notifications, each with a list of subscribers.
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: { # required
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: { # required
199
- # start: Time.now, # required
200
- # end: Time.now, # required
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
- # Create a new Notification with subscribers for a budget
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
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
246
- # allowed.
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
- # Notification model. Each budget may contain multiple notifications
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
- # Create a new Subscriber for a notification
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
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
290
- # allowed.
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
- # Notification model. Each budget may contain multiple notifications
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
- # Subscriber model. Each notification may contain multiple subscribers
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
- # Delete a budget and related notifications
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
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
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
- # Delete a notification and related subscribers
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
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
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
- # Notification model. Each budget may contain multiple notifications
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
- # Delete a Subscriber for a notification
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
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
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
- # Notification model. Each budget may contain multiple notifications
397
- # with different settings.
411
+ # The notification whose subscriber you want to delete.
398
412
  #
399
413
  # @option params [required, Types::Subscriber] :subscriber
400
- # Subscriber model. Each notification may contain multiple subscribers
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
- # Get a single budget
442
+ # Describes a budget.
430
443
  #
431
444
  # @option params [required, String] :account_id
432
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
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
- # Get all budgets for an account
497
+ # Lists the budgets associated with an account.
485
498
  #
486
499
  # @option params [required, String] :account_id
487
- # Account Id of the customer. It should be a 12 digit number.
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
- # An integer to represent how many entries a paginated response
491
- # contains. Maximum is set to 100.
504
+ # Optional integer. Specifies the maximum number of results to return in
505
+ # response.
492
506
  #
493
507
  # @option params [String] :next_token
494
- # A generic String.
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
- # Get notifications of a budget
561
+ # Lists the notifications associated with a budget.
547
562
  #
548
563
  # @option params [required, String] :account_id
549
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
553
- # allowed.
568
+ # The name of the budget whose notifications you want descriptions of.
554
569
  #
555
570
  # @option params [Integer] :max_results
556
- # An integer to represent how many entries a paginated response
557
- # contains. Maximum is set to 100.
571
+ # Optional integer. Specifies the maximum number of results to return in
572
+ # response.
558
573
  #
559
574
  # @option params [String] :next_token
560
- # A generic String.
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
- # Get subscribers of a notification
608
+ # Lists the subscribers associated with a notification.
593
609
  #
594
610
  # @option params [required, String] :account_id
595
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
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
- # Notification model. Each budget may contain multiple notifications
603
- # with different settings.
618
+ # The notification whose subscribers you want to list.
604
619
  #
605
620
  # @option params [Integer] :max_results
606
- # An integer to represent how many entries a paginated response
607
- # contains. Maximum is set to 100.
621
+ # Optional integer. Specifies the maximum number of results to return in
622
+ # response.
608
623
  #
609
624
  # @option params [String] :next_token
610
- # A generic String.
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
- # Update the information of a budget already created
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
- # Account Id of the customer. It should be a 12 digit number.
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
- # AWS Budget model
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: { # required
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: { # required
684
- # start: Time.now, # required
685
- # end: Time.now, # required
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
- # Update the information about a notification already created
728
+ # Updates a notification.
709
729
  #
710
730
  # @option params [required, String] :account_id
711
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
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
- # Notification model. Each budget may contain multiple notifications
719
- # with different settings.
738
+ # The previous notification associated with a budget.
720
739
  #
721
740
  # @option params [required, Types::Notification] :new_notification
722
- # Notification model. Each budget may contain multiple notifications
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
- # Update a subscriber
771
+ # Updates a subscriber.
754
772
  #
755
773
  # @option params [required, String] :account_id
756
- # Account Id of the customer. It should be a 12 digit number.
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
- # A string represents the budget name. No ":" and "\\" character is
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
- # Notification model. Each budget may contain multiple notifications
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
- # Subscriber model. Each notification may contain multiple subscribers
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
- # Subscriber model. Each notification may contain multiple subscribers
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.4.0'
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, required: true, location_name: "BudgetLimit"))
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, required: true, location_name: "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, required: true, location_name: "Start"))
219
- TimePeriod.add_member(:end, Shapes::ShapeRef.new(shape: GenericTimestamp, required: true, location_name: "End"))
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"))