aws-sdk-budgets 1.26.0 → 1.27.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: 9f9200e4ce322e3a8e1422f89d094e325f18bcc8
4
- data.tar.gz: 2fa1e7f305b48584eec61c3ff7b31b34db92ddf3
3
+ metadata.gz: cd5a3659015c6ef8a18eb7b06783b4e471c615f6
4
+ data.tar.gz: e5bc743579c8f2f10a896fb3330bfc1e1b62966a
5
5
  SHA512:
6
- metadata.gz: ed2e60f431521fbd3535bd523e209fc739d2b528ae0084947471408ab7f4e8f2b351622eeef6f0a85ef04e3326b1bbdaf1f6c13142212fbecd3971c4bc60128b
7
- data.tar.gz: cfdcdcef9bf5384785f47d05f765242fd9d65ab19292b9b256da0a032755f4ec3ae42f7864d41ada7f856fa5b769c6303bb55cbff8d659697c9dca0a17bdaccd
6
+ metadata.gz: b2b7fa8f971d096b5d9467628ed9f257e4d44731a73607c21a65c3f2da311d6a56b47d748d10ca10a4c539c247889afe80699c673b5ce5abe2b14da6aa6ce1e4
7
+ data.tar.gz: c05f8294f7bb5c7b1acb0edbebea0c8318c4412aba0a9ba38a925617220e41c3cefc3f5d1274d9af4c5259110e333ac61b538c62107f85d5427d244136ae899e
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-budgets/customizations'
42
42
  # @service
43
43
  module Aws::Budgets
44
44
 
45
- GEM_VERSION = '1.26.0'
45
+ GEM_VERSION = '1.27.0'
46
46
 
47
47
  end
@@ -337,7 +337,7 @@ module Aws::Budgets
337
337
  # unit: "UnitValue", # required
338
338
  # },
339
339
  # },
340
- # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE
340
+ # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, SAVINGS_PLANS_COVERAGE
341
341
  # last_updated_time: Time.now,
342
342
  # },
343
343
  # notifications_with_subscribers: [
@@ -625,7 +625,7 @@ module Aws::Budgets
625
625
  # resp.budget.calculated_spend.actual_spend.unit #=> String
626
626
  # resp.budget.calculated_spend.forecasted_spend.amount #=> String
627
627
  # resp.budget.calculated_spend.forecasted_spend.unit #=> String
628
- # resp.budget.budget_type #=> String, one of "USAGE", "COST", "RI_UTILIZATION", "RI_COVERAGE"
628
+ # resp.budget.budget_type #=> String, one of "USAGE", "COST", "RI_UTILIZATION", "RI_COVERAGE", "SAVINGS_PLANS_UTILIZATION", "SAVINGS_PLANS_COVERAGE"
629
629
  # resp.budget.last_updated_time #=> Time
630
630
  #
631
631
  # @overload describe_budget(params = {})
@@ -677,7 +677,7 @@ module Aws::Budgets
677
677
  # @example Response structure
678
678
  #
679
679
  # resp.budget_performance_history.budget_name #=> String
680
- # resp.budget_performance_history.budget_type #=> String, one of "USAGE", "COST", "RI_UTILIZATION", "RI_COVERAGE"
680
+ # resp.budget_performance_history.budget_type #=> String, one of "USAGE", "COST", "RI_UTILIZATION", "RI_COVERAGE", "SAVINGS_PLANS_UTILIZATION", "SAVINGS_PLANS_COVERAGE"
681
681
  # resp.budget_performance_history.cost_filters #=> Hash
682
682
  # resp.budget_performance_history.cost_filters["GenericString"] #=> Array
683
683
  # resp.budget_performance_history.cost_filters["GenericString"][0] #=> String
@@ -773,7 +773,7 @@ module Aws::Budgets
773
773
  # resp.budgets[0].calculated_spend.actual_spend.unit #=> String
774
774
  # resp.budgets[0].calculated_spend.forecasted_spend.amount #=> String
775
775
  # resp.budgets[0].calculated_spend.forecasted_spend.unit #=> String
776
- # resp.budgets[0].budget_type #=> String, one of "USAGE", "COST", "RI_UTILIZATION", "RI_COVERAGE"
776
+ # resp.budgets[0].budget_type #=> String, one of "USAGE", "COST", "RI_UTILIZATION", "RI_COVERAGE", "SAVINGS_PLANS_UTILIZATION", "SAVINGS_PLANS_COVERAGE"
777
777
  # resp.budgets[0].last_updated_time #=> Time
778
778
  # resp.next_token #=> String
779
779
  #
@@ -957,7 +957,7 @@ module Aws::Budgets
957
957
  # unit: "UnitValue", # required
958
958
  # },
959
959
  # },
960
- # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE
960
+ # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, SAVINGS_PLANS_COVERAGE
961
961
  # last_updated_time: Time.now,
962
962
  # },
963
963
  # })
@@ -1076,7 +1076,7 @@ module Aws::Budgets
1076
1076
  params: params,
1077
1077
  config: config)
1078
1078
  context[:gem_name] = 'aws-sdk-budgets'
1079
- context[:gem_version] = '1.26.0'
1079
+ context[:gem_version] = '1.27.0'
1080
1080
  Seahorse::Client::Request.new(handlers, context)
1081
1081
  end
1082
1082
 
@@ -11,6 +11,7 @@ module Aws::Budgets
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
14
15
  AccountId = Shapes::StringShape.new(name: 'AccountId')
15
16
  Budget = Shapes::StructureShape.new(name: 'Budget')
16
17
  BudgetName = Shapes::StringShape.new(name: 'BudgetName')
@@ -83,6 +84,9 @@ module Aws::Budgets
83
84
  UpdateSubscriberResponse = Shapes::StructureShape.new(name: 'UpdateSubscriberResponse')
84
85
  errorMessage = Shapes::StringShape.new(name: 'errorMessage')
85
86
 
87
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
88
+ AccessDeniedException.struct_class = Types::AccessDeniedException
89
+
86
90
  Budget.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
87
91
  Budget.add_member(:budget_limit, Shapes::ShapeRef.new(shape: Spend, location_name: "BudgetLimit"))
88
92
  Budget.add_member(:planned_budget_limits, Shapes::ShapeRef.new(shape: PlannedBudgetLimits, location_name: "PlannedBudgetLimits"))
@@ -331,6 +335,7 @@ module Aws::Budgets
331
335
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
332
336
  o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
333
337
  o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
338
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
334
339
  end)
335
340
 
336
341
  api.add_operation(:create_notification, Seahorse::Model::Operation.new.tap do |o|
@@ -344,6 +349,7 @@ module Aws::Budgets
344
349
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
345
350
  o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
346
351
  o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
352
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
347
353
  end)
348
354
 
349
355
  api.add_operation(:create_subscriber, Seahorse::Model::Operation.new.tap do |o|
@@ -357,6 +363,7 @@ module Aws::Budgets
357
363
  o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
358
364
  o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
359
365
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
366
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
360
367
  end)
361
368
 
362
369
  api.add_operation(:delete_budget, Seahorse::Model::Operation.new.tap do |o|
@@ -368,6 +375,7 @@ module Aws::Budgets
368
375
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
369
376
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
370
377
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
378
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
371
379
  end)
372
380
 
373
381
  api.add_operation(:delete_notification, Seahorse::Model::Operation.new.tap do |o|
@@ -379,6 +387,7 @@ module Aws::Budgets
379
387
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
380
388
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
381
389
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
390
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
382
391
  end)
383
392
 
384
393
  api.add_operation(:delete_subscriber, Seahorse::Model::Operation.new.tap do |o|
@@ -390,6 +399,7 @@ module Aws::Budgets
390
399
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
391
400
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
392
401
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
402
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
393
403
  end)
394
404
 
395
405
  api.add_operation(:describe_budget, Seahorse::Model::Operation.new.tap do |o|
@@ -401,6 +411,7 @@ module Aws::Budgets
401
411
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
402
412
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
403
413
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
414
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
404
415
  end)
405
416
 
406
417
  api.add_operation(:describe_budget_performance_history, Seahorse::Model::Operation.new.tap do |o|
@@ -414,6 +425,7 @@ module Aws::Budgets
414
425
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
415
426
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
416
427
  o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
428
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
417
429
  end)
418
430
 
419
431
  api.add_operation(:describe_budgets, Seahorse::Model::Operation.new.tap do |o|
@@ -427,6 +439,7 @@ module Aws::Budgets
427
439
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
428
440
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
429
441
  o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
442
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
430
443
  end)
431
444
 
432
445
  api.add_operation(:describe_notifications_for_budget, Seahorse::Model::Operation.new.tap do |o|
@@ -440,6 +453,7 @@ module Aws::Budgets
440
453
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
441
454
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
442
455
  o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
456
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
443
457
  end)
444
458
 
445
459
  api.add_operation(:describe_subscribers_for_notification, Seahorse::Model::Operation.new.tap do |o|
@@ -453,6 +467,7 @@ module Aws::Budgets
453
467
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
454
468
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
455
469
  o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
470
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
456
471
  end)
457
472
 
458
473
  api.add_operation(:update_budget, Seahorse::Model::Operation.new.tap do |o|
@@ -464,6 +479,7 @@ module Aws::Budgets
464
479
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
465
480
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
466
481
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
482
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
467
483
  end)
468
484
 
469
485
  api.add_operation(:update_notification, Seahorse::Model::Operation.new.tap do |o|
@@ -476,6 +492,7 @@ module Aws::Budgets
476
492
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
477
493
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
478
494
  o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
495
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
479
496
  end)
480
497
 
481
498
  api.add_operation(:update_subscriber, Seahorse::Model::Operation.new.tap do |o|
@@ -488,6 +505,7 @@ module Aws::Budgets
488
505
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
489
506
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
490
507
  o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
508
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
491
509
  end)
492
510
  end
493
511
 
@@ -10,6 +10,22 @@ module Aws::Budgets
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class AccessDeniedException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::Budgets::Types::AccessDeniedException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
13
29
  class CreationLimitExceededException < ServiceError
14
30
 
15
31
  # @param [Seahorse::Client::RequestContext] context
@@ -8,6 +8,18 @@
8
8
  module Aws::Budgets
9
9
  module Types
10
10
 
11
+ # You are not authorized to use this operation with the given
12
+ # parameters.
13
+ #
14
+ # @!attribute [rw] message
15
+ # The error message the exception carries.
16
+ # @return [String]
17
+ #
18
+ class AccessDeniedException < Struct.new(
19
+ :message)
20
+ include Aws::Structure
21
+ end
22
+
11
23
  # Represents the output of the `CreateBudget` operation. The content
12
24
  # consists of the detailed metadata and data file information, and the
13
25
  # current status of the `budget` object.
@@ -62,7 +74,7 @@ module Aws::Budgets
62
74
  # unit: "UnitValue", # required
63
75
  # },
64
76
  # },
65
- # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE
77
+ # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, SAVINGS_PLANS_COVERAGE
66
78
  # last_updated_time: Time.now,
67
79
  # }
68
80
  #
@@ -72,13 +84,15 @@ module Aws::Budgets
72
84
  # @return [String]
73
85
  #
74
86
  # @!attribute [rw] budget_limit
75
- # The total amount of cost, usage, RI utilization, or RI coverage that
76
- # you want to track with your budget.
87
+ # The total amount of cost, usage, RI utilization, RI coverage,
88
+ # Savings Plans utilization, or Savings Plans coverage that you want
89
+ # to track with your budget.
77
90
  #
78
91
  # `BudgetLimit` is required for cost or usage budgets, but optional
79
- # for RI utilization or coverage budgets. RI utilization or coverage
80
- # budgets default to `100`, which is the only valid value for RI
81
- # utilization or coverage budgets. You can't use `BudgetLimit` with
92
+ # for RI or Savings Plans utilization or coverage budgets. RI and
93
+ # Savings Plans utilization or coverage budgets default to `100`,
94
+ # which is the only valid value for RI or Savings Plans utilization or
95
+ # coverage budgets. You can't use `BudgetLimit` with
82
96
  # `PlannedBudgetLimits` for `CreateBudget` and `UpdateBudget` actions.
83
97
  # @return [Types::Spend]
84
98
  #
@@ -140,14 +154,16 @@ module Aws::Budgets
140
154
  # @!attribute [rw] cost_types
141
155
  # The types of costs that are included in this `COST` budget.
142
156
  #
143
- # `USAGE`, `RI_UTILIZATION`, and `RI_COVERAGE` budgets do not have
144
- # `CostTypes`.
157
+ # `USAGE`, `RI_UTILIZATION`, `RI_COVERAGE`,
158
+ # `Savings_Plans_Utilization`, and `Savings_Plans_Coverage` budgets do
159
+ # not have `CostTypes`.
145
160
  # @return [Types::CostTypes]
146
161
  #
147
162
  # @!attribute [rw] time_unit
148
163
  # The length of time until a budget resets the actual and forecasted
149
- # spend. `DAILY` is available only for `RI_UTILIZATION` and
150
- # `RI_COVERAGE` budgets.
164
+ # spend. `DAILY` is available only for `RI_UTILIZATION`,
165
+ # `RI_COVERAGE`, `Savings_Plans_Utilization`, and
166
+ # `Savings_Plans_Coverage` budgets.
151
167
  # @return [String]
152
168
  #
153
169
  # @!attribute [rw] time_period
@@ -176,8 +192,8 @@ module Aws::Budgets
176
192
  # @return [Types::CalculatedSpend]
177
193
  #
178
194
  # @!attribute [rw] budget_type
179
- # Whether this budget tracks costs, usage, RI utilization, or RI
180
- # coverage.
195
+ # Whether this budget tracks costs, usage, RI utilization, RI
196
+ # coverage, Savings Plans utilization, or Savings Plans coverage.
181
197
  # @return [String]
182
198
  #
183
199
  # @!attribute [rw] last_updated_time
@@ -456,7 +472,7 @@ module Aws::Budgets
456
472
  # unit: "UnitValue", # required
457
473
  # },
458
474
  # },
459
- # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE
475
+ # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, SAVINGS_PLANS_COVERAGE
460
476
  # last_updated_time: Time.now,
461
477
  # },
462
478
  # notifications_with_subscribers: [
@@ -1252,8 +1268,8 @@ module Aws::Budgets
1252
1268
  # The address that AWS sends budget notifications to, either an SNS
1253
1269
  # topic or an email.
1254
1270
  #
1255
- # AWS validates the address for a `CreateSubscriber` request with the
1256
- # `.*` regex.
1271
+ # When you create a subscriber, the value of `Address` can't contain
1272
+ # line breaks.
1257
1273
  # @return [String]
1258
1274
  #
1259
1275
  class Subscriber < Struct.new(
@@ -1353,7 +1369,7 @@ module Aws::Budgets
1353
1369
  # unit: "UnitValue", # required
1354
1370
  # },
1355
1371
  # },
1356
- # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE
1372
+ # budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, SAVINGS_PLANS_COVERAGE
1357
1373
  # last_updated_time: Time.now,
1358
1374
  # },
1359
1375
  # }
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.26.0
4
+ version: 1.27.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: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core