aws-sdk-budgets 1.21.0 → 1.22.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: ecd29d372b0f19bdf5560642d25b69eb037be6a8
4
- data.tar.gz: fe3ad247ea9f9054bc07cc9d0f50bf57040e0e3f
3
+ metadata.gz: 53f101519382ebf93b26190490808b0e8be78da5
4
+ data.tar.gz: 950aaed2811ee94d952b134d39cd29406cfa1c62
5
5
  SHA512:
6
- metadata.gz: 4c583e0b87c0bcf0287d27921d1c98173a7c71929cf4b8c7e5117507f5385e4bc0d6d1ed48a3b0c74aa38bd3eaf51b3359c8e690e02c436ff5c4d109882f41b5
7
- data.tar.gz: 5ba8f0915d009e3b8399e7a575b9ca967fdadf45f383608d771f2dd7ba4a446832ad4c34bc25b47671d5983b005428bd073aac937ff6abec21d9d05435c7bd4d
6
+ metadata.gz: 5a3a7acdab7807fcd926ab63a261cb6f2bf7618d3707c2ac9b59a60c1a9a1132fb0d0f411e8b08a25db2203741e1d7b228fcf9d7bfe64a1e3bf4054f0c389e21
7
+ data.tar.gz: a531bf20c08dfc04650fe0922047f9fcf5187e5f3d7ed2db18286da2fe3077582841c06ca13f7beea269d6b542bb9635c34d9f3f09965c3278033d4bd31543a2
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-budgets/customizations'
42
42
  # @service
43
43
  module Aws::Budgets
44
44
 
45
- GEM_VERSION = '1.21.0'
45
+ GEM_VERSION = '1.22.0'
46
46
 
47
47
  end
@@ -262,6 +262,15 @@ module Aws::Budgets
262
262
 
263
263
  # Creates a budget and, if included, notifications and subscribers.
264
264
  #
265
+ # Only one of `BudgetLimit` or `PlannedBudgetLimits` can be present in
266
+ # the syntax at one time. Use the syntax that matches your case. The
267
+ # Request Syntax section shows the `BudgetLimit` syntax. For
268
+ # `PlannedBudgetLimits`, see the [Examples][1] section.
269
+ #
270
+ #
271
+ #
272
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples
273
+ #
265
274
  # @option params [required, String] :account_id
266
275
  # The `accountId` that is associated with the budget.
267
276
  #
@@ -287,6 +296,12 @@ module Aws::Budgets
287
296
  # amount: "NumericValue", # required
288
297
  # unit: "UnitValue", # required
289
298
  # },
299
+ # planned_budget_limits: {
300
+ # "GenericString" => {
301
+ # amount: "NumericValue", # required
302
+ # unit: "UnitValue", # required
303
+ # },
304
+ # },
290
305
  # cost_filters: {
291
306
  # "GenericString" => ["GenericString"],
292
307
  # },
@@ -552,6 +567,13 @@ module Aws::Budgets
552
567
 
553
568
  # Describes a budget.
554
569
  #
570
+ # The Request Syntax section shows the `BudgetLimit` syntax. For
571
+ # `PlannedBudgetLimits`, see the [Examples][1] section.
572
+ #
573
+ #
574
+ #
575
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples
576
+ #
555
577
  # @option params [required, String] :account_id
556
578
  # The `accountId` that is associated with the budget that you want a
557
579
  # description of.
@@ -575,6 +597,9 @@ module Aws::Budgets
575
597
  # resp.budget.budget_name #=> String
576
598
  # resp.budget.budget_limit.amount #=> String
577
599
  # resp.budget.budget_limit.unit #=> String
600
+ # resp.budget.planned_budget_limits #=> Hash
601
+ # resp.budget.planned_budget_limits["GenericString"].amount #=> String
602
+ # resp.budget.planned_budget_limits["GenericString"].unit #=> String
578
603
  # resp.budget.cost_filters #=> Hash
579
604
  # resp.budget.cost_filters["GenericString"] #=> Array
580
605
  # resp.budget.cost_filters["GenericString"][0] #=> String
@@ -682,6 +707,13 @@ module Aws::Budgets
682
707
 
683
708
  # Lists the budgets that are associated with an account.
684
709
  #
710
+ # The Request Syntax section shows the `BudgetLimit` syntax. For
711
+ # `PlannedBudgetLimits`, see the [Examples][1] section.
712
+ #
713
+ #
714
+ #
715
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples
716
+ #
685
717
  # @option params [required, String] :account_id
686
718
  # The `accountId` that is associated with the budgets that you want
687
719
  # descriptions of.
@@ -713,6 +745,9 @@ module Aws::Budgets
713
745
  # resp.budgets[0].budget_name #=> String
714
746
  # resp.budgets[0].budget_limit.amount #=> String
715
747
  # resp.budgets[0].budget_limit.unit #=> String
748
+ # resp.budgets[0].planned_budget_limits #=> Hash
749
+ # resp.budgets[0].planned_budget_limits["GenericString"].amount #=> String
750
+ # resp.budgets[0].planned_budget_limits["GenericString"].unit #=> String
716
751
  # resp.budgets[0].cost_filters #=> Hash
717
752
  # resp.budgets[0].cost_filters["GenericString"] #=> Array
718
753
  # resp.budgets[0].cost_filters["GenericString"][0] #=> String
@@ -853,6 +888,15 @@ module Aws::Budgets
853
888
  # `calculatedSpend` drops to zero until AWS has new usage data to use
854
889
  # for forecasting.
855
890
  #
891
+ # Only one of `BudgetLimit` or `PlannedBudgetLimits` can be present in
892
+ # the syntax at one time. Use the syntax that matches your case. The
893
+ # Request Syntax section shows the `BudgetLimit` syntax. For
894
+ # `PlannedBudgetLimits`, see the [Examples][1] section.
895
+ #
896
+ #
897
+ #
898
+ # [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples
899
+ #
856
900
  # @option params [required, String] :account_id
857
901
  # The `accountId` that is associated with the budget that you want to
858
902
  # update.
@@ -872,6 +916,12 @@ module Aws::Budgets
872
916
  # amount: "NumericValue", # required
873
917
  # unit: "UnitValue", # required
874
918
  # },
919
+ # planned_budget_limits: {
920
+ # "GenericString" => {
921
+ # amount: "NumericValue", # required
922
+ # unit: "UnitValue", # required
923
+ # },
924
+ # },
875
925
  # cost_filters: {
876
926
  # "GenericString" => ["GenericString"],
877
927
  # },
@@ -1022,7 +1072,7 @@ module Aws::Budgets
1022
1072
  params: params,
1023
1073
  config: config)
1024
1074
  context[:gem_name] = 'aws-sdk-budgets'
1025
- context[:gem_version] = '1.21.0'
1075
+ context[:gem_version] = '1.22.0'
1026
1076
  Seahorse::Client::Request.new(handlers, context)
1027
1077
  end
1028
1078
 
@@ -65,6 +65,7 @@ module Aws::Budgets
65
65
  Notifications = Shapes::ListShape.new(name: 'Notifications')
66
66
  NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
67
67
  NumericValue = Shapes::StringShape.new(name: 'NumericValue')
68
+ PlannedBudgetLimits = Shapes::MapShape.new(name: 'PlannedBudgetLimits')
68
69
  Spend = Shapes::StructureShape.new(name: 'Spend')
69
70
  Subscriber = Shapes::StructureShape.new(name: 'Subscriber')
70
71
  SubscriberAddress = Shapes::StringShape.new(name: 'SubscriberAddress')
@@ -84,6 +85,7 @@ module Aws::Budgets
84
85
 
85
86
  Budget.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
86
87
  Budget.add_member(:budget_limit, Shapes::ShapeRef.new(shape: Spend, location_name: "BudgetLimit"))
88
+ Budget.add_member(:planned_budget_limits, Shapes::ShapeRef.new(shape: PlannedBudgetLimits, location_name: "PlannedBudgetLimits"))
87
89
  Budget.add_member(:cost_filters, Shapes::ShapeRef.new(shape: CostFilters, location_name: "CostFilters"))
88
90
  Budget.add_member(:cost_types, Shapes::ShapeRef.new(shape: CostTypes, location_name: "CostTypes"))
89
91
  Budget.add_member(:time_unit, Shapes::ShapeRef.new(shape: TimeUnit, required: true, location_name: "TimeUnit"))
@@ -260,6 +262,9 @@ module Aws::Budgets
260
262
 
261
263
  Notifications.member = Shapes::ShapeRef.new(shape: Notification)
262
264
 
265
+ PlannedBudgetLimits.key = Shapes::ShapeRef.new(shape: GenericString)
266
+ PlannedBudgetLimits.value = Shapes::ShapeRef.new(shape: Spend)
267
+
263
268
  Spend.add_member(:amount, Shapes::ShapeRef.new(shape: NumericValue, required: true, location_name: "Amount"))
264
269
  Spend.add_member(:unit, Shapes::ShapeRef.new(shape: UnitValue, required: true, location_name: "Unit"))
265
270
  Spend.struct_class = Types::Spend
@@ -25,6 +25,12 @@ module Aws::Budgets
25
25
  # amount: "NumericValue", # required
26
26
  # unit: "UnitValue", # required
27
27
  # },
28
+ # planned_budget_limits: {
29
+ # "GenericString" => {
30
+ # amount: "NumericValue", # required
31
+ # unit: "UnitValue", # required
32
+ # },
33
+ # },
28
34
  # cost_filters: {
29
35
  # "GenericString" => ["GenericString"],
30
36
  # },
@@ -61,7 +67,7 @@ module Aws::Budgets
61
67
  # }
62
68
  #
63
69
  # @!attribute [rw] budget_name
64
- # The name of a budget. The name must be unique within accounts. The
70
+ # The name of a budget. The name must be unique within an account. The
65
71
  # `:` and `` characters aren't allowed in `BudgetName`.
66
72
  # @return [String]
67
73
  #
@@ -72,11 +78,49 @@ module Aws::Budgets
72
78
  # `BudgetLimit` is required for cost or usage budgets, but optional
73
79
  # for RI utilization or coverage budgets. RI utilization or coverage
74
80
  # budgets default to `100`, which is the only valid value for RI
75
- # utilization or coverage budgets.
81
+ # utilization or coverage budgets. You can't use `BudgetLimit` with
82
+ # `PlannedBudgetLimits` for `CreateBudget` and `UpdateBudget` actions.
76
83
  # @return [Types::Spend]
77
84
  #
85
+ # @!attribute [rw] planned_budget_limits
86
+ # A map containing multiple `BudgetLimit`, including current or future
87
+ # limits.
88
+ #
89
+ # `PlannedBudgetLimits` is available for cost or usage budget and
90
+ # supports monthly and quarterly `TimeUnit`.
91
+ #
92
+ # For monthly budgets, provide 12 months of `PlannedBudgetLimits`
93
+ # values. This must start from the current month and include the next
94
+ # 11 months. The `key` is the start of the month, `UTC` in epoch
95
+ # seconds.
96
+ #
97
+ # For quarterly budgets, provide 4 quarters of `PlannedBudgetLimits`
98
+ # value entries in standard calendar quarter increments. This must
99
+ # start from the current quarter and include the next 3 quarters. The
100
+ # `key` is the start of the quarter, `UTC` in epoch seconds.
101
+ #
102
+ # If the planned budget expires before 12 months for monthly or 4
103
+ # quarters for quarterly, provide the `PlannedBudgetLimits` values
104
+ # only for the remaining periods.
105
+ #
106
+ # If the budget begins at a date in the future, provide
107
+ # `PlannedBudgetLimits` values from the start date of the budget.
108
+ #
109
+ # After all of the `BudgetLimit` values in `PlannedBudgetLimits` are
110
+ # used, the budget continues to use the last limit as the
111
+ # `BudgetLimit`. At that point, the planned budget provides the same
112
+ # experience as a fixed budget.
113
+ #
114
+ # `DescribeBudget` and `DescribeBudgets` response along with
115
+ # `PlannedBudgetLimits` will also contain `BudgetLimit` representing
116
+ # the current month or quarter limit present in `PlannedBudgetLimits`.
117
+ # This only applies to budgets created with `PlannedBudgetLimits`.
118
+ # Budgets created without `PlannedBudgetLimits` will only contain
119
+ # `BudgetLimit`, and no `PlannedBudgetLimits`.
120
+ # @return [Hash<String,Types::Spend>]
121
+ #
78
122
  # @!attribute [rw] cost_filters
79
- # The cost filters, such as service or region, that are applied to a
123
+ # The cost filters, such as service or tag, that are applied to a
80
124
  # budget.
81
125
  #
82
126
  # AWS Budgets supports the following services as a filter for RI
@@ -132,8 +176,8 @@ module Aws::Budgets
132
176
  # @return [Types::CalculatedSpend]
133
177
  #
134
178
  # @!attribute [rw] budget_type
135
- # Whether this budget tracks monetary costs, usage, RI utilization, or
136
- # RI coverage.
179
+ # Whether this budget tracks costs, usage, RI utilization, or RI
180
+ # coverage.
137
181
  # @return [String]
138
182
  #
139
183
  # @!attribute [rw] last_updated_time
@@ -143,6 +187,7 @@ module Aws::Budgets
143
187
  class Budget < Struct.new(
144
188
  :budget_name,
145
189
  :budget_limit,
190
+ :planned_budget_limits,
146
191
  :cost_filters,
147
192
  :cost_types,
148
193
  :time_unit,
@@ -374,6 +419,12 @@ module Aws::Budgets
374
419
  # amount: "NumericValue", # required
375
420
  # unit: "UnitValue", # required
376
421
  # },
422
+ # planned_budget_limits: {
423
+ # "GenericString" => {
424
+ # amount: "NumericValue", # required
425
+ # unit: "UnitValue", # required
426
+ # },
427
+ # },
377
428
  # cost_filters: {
378
429
  # "GenericString" => ["GenericString"],
379
430
  # },
@@ -1200,6 +1251,9 @@ module Aws::Budgets
1200
1251
  # @!attribute [rw] address
1201
1252
  # The address that AWS sends budget notifications to, either an SNS
1202
1253
  # topic or an email.
1254
+ #
1255
+ # AWS validates the address for a `CreateSubscriber` request with the
1256
+ # `.*` regex.
1203
1257
  # @return [String]
1204
1258
  #
1205
1259
  class Subscriber < Struct.new(
@@ -1262,6 +1316,12 @@ module Aws::Budgets
1262
1316
  # amount: "NumericValue", # required
1263
1317
  # unit: "UnitValue", # required
1264
1318
  # },
1319
+ # planned_budget_limits: {
1320
+ # "GenericString" => {
1321
+ # amount: "NumericValue", # required
1322
+ # unit: "UnitValue", # required
1323
+ # },
1324
+ # },
1265
1325
  # cost_filters: {
1266
1326
  # "GenericString" => ["GenericString"],
1267
1327
  # },
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.21.0
4
+ version: 1.22.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-05-21 00:00:00.000000000 Z
11
+ date: 2019-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core