aws-sdk-budgets 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,405 +1,404 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module Budgets
10
- # @api private
11
- module ClientApi
12
-
13
- include Seahorse::Model
14
-
15
- AccountId = Shapes::StringShape.new(name: 'AccountId')
16
- Budget = Shapes::StructureShape.new(name: 'Budget')
17
- BudgetName = Shapes::StringShape.new(name: 'BudgetName')
18
- BudgetType = Shapes::StringShape.new(name: 'BudgetType')
19
- Budgets = Shapes::ListShape.new(name: 'Budgets')
20
- CalculatedSpend = Shapes::StructureShape.new(name: 'CalculatedSpend')
21
- ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
22
- CostFilters = Shapes::MapShape.new(name: 'CostFilters')
23
- CostTypes = Shapes::StructureShape.new(name: 'CostTypes')
24
- CreateBudgetRequest = Shapes::StructureShape.new(name: 'CreateBudgetRequest')
25
- CreateBudgetResponse = Shapes::StructureShape.new(name: 'CreateBudgetResponse')
26
- CreateNotificationRequest = Shapes::StructureShape.new(name: 'CreateNotificationRequest')
27
- CreateNotificationResponse = Shapes::StructureShape.new(name: 'CreateNotificationResponse')
28
- CreateSubscriberRequest = Shapes::StructureShape.new(name: 'CreateSubscriberRequest')
29
- CreateSubscriberResponse = Shapes::StructureShape.new(name: 'CreateSubscriberResponse')
30
- CreationLimitExceededException = Shapes::StructureShape.new(name: 'CreationLimitExceededException')
31
- DeleteBudgetRequest = Shapes::StructureShape.new(name: 'DeleteBudgetRequest')
32
- DeleteBudgetResponse = Shapes::StructureShape.new(name: 'DeleteBudgetResponse')
33
- DeleteNotificationRequest = Shapes::StructureShape.new(name: 'DeleteNotificationRequest')
34
- DeleteNotificationResponse = Shapes::StructureShape.new(name: 'DeleteNotificationResponse')
35
- DeleteSubscriberRequest = Shapes::StructureShape.new(name: 'DeleteSubscriberRequest')
36
- DeleteSubscriberResponse = Shapes::StructureShape.new(name: 'DeleteSubscriberResponse')
37
- DescribeBudgetRequest = Shapes::StructureShape.new(name: 'DescribeBudgetRequest')
38
- DescribeBudgetResponse = Shapes::StructureShape.new(name: 'DescribeBudgetResponse')
39
- DescribeBudgetsRequest = Shapes::StructureShape.new(name: 'DescribeBudgetsRequest')
40
- DescribeBudgetsResponse = Shapes::StructureShape.new(name: 'DescribeBudgetsResponse')
41
- DescribeNotificationsForBudgetRequest = Shapes::StructureShape.new(name: 'DescribeNotificationsForBudgetRequest')
42
- DescribeNotificationsForBudgetResponse = Shapes::StructureShape.new(name: 'DescribeNotificationsForBudgetResponse')
43
- DescribeSubscribersForNotificationRequest = Shapes::StructureShape.new(name: 'DescribeSubscribersForNotificationRequest')
44
- DescribeSubscribersForNotificationResponse = Shapes::StructureShape.new(name: 'DescribeSubscribersForNotificationResponse')
45
- DimensionValues = Shapes::ListShape.new(name: 'DimensionValues')
46
- DuplicateRecordException = Shapes::StructureShape.new(name: 'DuplicateRecordException')
47
- ExpiredNextTokenException = Shapes::StructureShape.new(name: 'ExpiredNextTokenException')
48
- GenericBoolean = Shapes::BooleanShape.new(name: 'GenericBoolean')
49
- GenericString = Shapes::StringShape.new(name: 'GenericString')
50
- GenericTimestamp = Shapes::TimestampShape.new(name: 'GenericTimestamp')
51
- InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
52
- InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
53
- InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
54
- MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
55
- NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
56
- Notification = Shapes::StructureShape.new(name: 'Notification')
57
- NotificationThreshold = Shapes::FloatShape.new(name: 'NotificationThreshold')
58
- NotificationType = Shapes::StringShape.new(name: 'NotificationType')
59
- NotificationWithSubscribers = Shapes::StructureShape.new(name: 'NotificationWithSubscribers')
60
- NotificationWithSubscribersList = Shapes::ListShape.new(name: 'NotificationWithSubscribersList')
61
- Notifications = Shapes::ListShape.new(name: 'Notifications')
62
- NumericValue = Shapes::StringShape.new(name: 'NumericValue')
63
- Spend = Shapes::StructureShape.new(name: 'Spend')
64
- Subscriber = Shapes::StructureShape.new(name: 'Subscriber')
65
- Subscribers = Shapes::ListShape.new(name: 'Subscribers')
66
- SubscriptionType = Shapes::StringShape.new(name: 'SubscriptionType')
67
- TimePeriod = Shapes::StructureShape.new(name: 'TimePeriod')
68
- TimeUnit = Shapes::StringShape.new(name: 'TimeUnit')
69
- UpdateBudgetRequest = Shapes::StructureShape.new(name: 'UpdateBudgetRequest')
70
- UpdateBudgetResponse = Shapes::StructureShape.new(name: 'UpdateBudgetResponse')
71
- UpdateNotificationRequest = Shapes::StructureShape.new(name: 'UpdateNotificationRequest')
72
- UpdateNotificationResponse = Shapes::StructureShape.new(name: 'UpdateNotificationResponse')
73
- UpdateSubscriberRequest = Shapes::StructureShape.new(name: 'UpdateSubscriberRequest')
74
- UpdateSubscriberResponse = Shapes::StructureShape.new(name: 'UpdateSubscriberResponse')
75
- errorMessage = Shapes::StringShape.new(name: 'errorMessage')
76
-
77
- Budget.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
78
- Budget.add_member(:budget_limit, Shapes::ShapeRef.new(shape: Spend, required: true, location_name: "BudgetLimit"))
79
- Budget.add_member(:cost_filters, Shapes::ShapeRef.new(shape: CostFilters, location_name: "CostFilters"))
80
- Budget.add_member(:cost_types, Shapes::ShapeRef.new(shape: CostTypes, required: true, location_name: "CostTypes"))
81
- Budget.add_member(:time_unit, Shapes::ShapeRef.new(shape: TimeUnit, required: true, location_name: "TimeUnit"))
82
- Budget.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod, required: true, location_name: "TimePeriod"))
83
- Budget.add_member(:calculated_spend, Shapes::ShapeRef.new(shape: CalculatedSpend, location_name: "CalculatedSpend"))
84
- Budget.add_member(:budget_type, Shapes::ShapeRef.new(shape: BudgetType, required: true, location_name: "BudgetType"))
85
- Budget.struct_class = Types::Budget
86
-
87
- Budgets.member = Shapes::ShapeRef.new(shape: Budget)
88
-
89
- CalculatedSpend.add_member(:actual_spend, Shapes::ShapeRef.new(shape: Spend, required: true, location_name: "ActualSpend"))
90
- CalculatedSpend.add_member(:forecasted_spend, Shapes::ShapeRef.new(shape: Spend, location_name: "ForecastedSpend"))
91
- CalculatedSpend.struct_class = Types::CalculatedSpend
92
-
93
- CostFilters.key = Shapes::ShapeRef.new(shape: GenericString)
94
- CostFilters.value = Shapes::ShapeRef.new(shape: DimensionValues)
95
-
96
- CostTypes.add_member(:include_tax, Shapes::ShapeRef.new(shape: GenericBoolean, required: true, location_name: "IncludeTax"))
97
- CostTypes.add_member(:include_subscription, Shapes::ShapeRef.new(shape: GenericBoolean, required: true, location_name: "IncludeSubscription"))
98
- CostTypes.add_member(:use_blended, Shapes::ShapeRef.new(shape: GenericBoolean, required: true, location_name: "UseBlended"))
99
- CostTypes.struct_class = Types::CostTypes
100
-
101
- CreateBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
102
- CreateBudgetRequest.add_member(:budget, Shapes::ShapeRef.new(shape: Budget, required: true, location_name: "Budget"))
103
- CreateBudgetRequest.add_member(:notifications_with_subscribers, Shapes::ShapeRef.new(shape: NotificationWithSubscribersList, location_name: "NotificationsWithSubscribers"))
104
- CreateBudgetRequest.struct_class = Types::CreateBudgetRequest
105
-
106
- CreateBudgetResponse.struct_class = Types::CreateBudgetResponse
107
-
108
- CreateNotificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
109
- CreateNotificationRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
110
- CreateNotificationRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
111
- CreateNotificationRequest.add_member(:subscribers, Shapes::ShapeRef.new(shape: Subscribers, required: true, location_name: "Subscribers"))
112
- CreateNotificationRequest.struct_class = Types::CreateNotificationRequest
113
-
114
- CreateNotificationResponse.struct_class = Types::CreateNotificationResponse
115
-
116
- CreateSubscriberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
117
- CreateSubscriberRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
118
- CreateSubscriberRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
119
- CreateSubscriberRequest.add_member(:subscriber, Shapes::ShapeRef.new(shape: Subscriber, required: true, location_name: "Subscriber"))
120
- CreateSubscriberRequest.struct_class = Types::CreateSubscriberRequest
121
-
122
- CreateSubscriberResponse.struct_class = Types::CreateSubscriberResponse
123
-
124
- DeleteBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
125
- DeleteBudgetRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
126
- DeleteBudgetRequest.struct_class = Types::DeleteBudgetRequest
127
-
128
- DeleteBudgetResponse.struct_class = Types::DeleteBudgetResponse
129
-
130
- DeleteNotificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
131
- DeleteNotificationRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
132
- DeleteNotificationRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
133
- DeleteNotificationRequest.struct_class = Types::DeleteNotificationRequest
134
-
135
- DeleteNotificationResponse.struct_class = Types::DeleteNotificationResponse
136
-
137
- DeleteSubscriberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
138
- DeleteSubscriberRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
139
- DeleteSubscriberRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
140
- DeleteSubscriberRequest.add_member(:subscriber, Shapes::ShapeRef.new(shape: Subscriber, required: true, location_name: "Subscriber"))
141
- DeleteSubscriberRequest.struct_class = Types::DeleteSubscriberRequest
142
-
143
- DeleteSubscriberResponse.struct_class = Types::DeleteSubscriberResponse
144
-
145
- DescribeBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
146
- DescribeBudgetRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
147
- DescribeBudgetRequest.struct_class = Types::DescribeBudgetRequest
148
-
149
- DescribeBudgetResponse.add_member(:budget, Shapes::ShapeRef.new(shape: Budget, location_name: "Budget"))
150
- DescribeBudgetResponse.struct_class = Types::DescribeBudgetResponse
151
-
152
- DescribeBudgetsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
153
- DescribeBudgetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
154
- DescribeBudgetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
155
- DescribeBudgetsRequest.struct_class = Types::DescribeBudgetsRequest
156
-
157
- DescribeBudgetsResponse.add_member(:budgets, Shapes::ShapeRef.new(shape: Budgets, location_name: "Budgets"))
158
- DescribeBudgetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
159
- DescribeBudgetsResponse.struct_class = Types::DescribeBudgetsResponse
160
-
161
- DescribeNotificationsForBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
162
- DescribeNotificationsForBudgetRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
163
- DescribeNotificationsForBudgetRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
164
- DescribeNotificationsForBudgetRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
165
- DescribeNotificationsForBudgetRequest.struct_class = Types::DescribeNotificationsForBudgetRequest
166
-
167
- DescribeNotificationsForBudgetResponse.add_member(:notifications, Shapes::ShapeRef.new(shape: Notifications, location_name: "Notifications"))
168
- DescribeNotificationsForBudgetResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
169
- DescribeNotificationsForBudgetResponse.struct_class = Types::DescribeNotificationsForBudgetResponse
170
-
171
- DescribeSubscribersForNotificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
172
- DescribeSubscribersForNotificationRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
173
- DescribeSubscribersForNotificationRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
174
- DescribeSubscribersForNotificationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
175
- DescribeSubscribersForNotificationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
176
- DescribeSubscribersForNotificationRequest.struct_class = Types::DescribeSubscribersForNotificationRequest
177
-
178
- DescribeSubscribersForNotificationResponse.add_member(:subscribers, Shapes::ShapeRef.new(shape: Subscribers, location_name: "Subscribers"))
179
- DescribeSubscribersForNotificationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
180
- DescribeSubscribersForNotificationResponse.struct_class = Types::DescribeSubscribersForNotificationResponse
181
-
182
- DimensionValues.member = Shapes::ShapeRef.new(shape: GenericString)
183
-
184
- Notification.add_member(:notification_type, Shapes::ShapeRef.new(shape: NotificationType, required: true, location_name: "NotificationType"))
185
- Notification.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator"))
186
- Notification.add_member(:threshold, Shapes::ShapeRef.new(shape: NotificationThreshold, required: true, location_name: "Threshold"))
187
- Notification.struct_class = Types::Notification
188
-
189
- NotificationWithSubscribers.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
190
- NotificationWithSubscribers.add_member(:subscribers, Shapes::ShapeRef.new(shape: Subscribers, required: true, location_name: "Subscribers"))
191
- NotificationWithSubscribers.struct_class = Types::NotificationWithSubscribers
192
-
193
- NotificationWithSubscribersList.member = Shapes::ShapeRef.new(shape: NotificationWithSubscribers)
194
-
195
- Notifications.member = Shapes::ShapeRef.new(shape: Notification)
196
-
197
- Spend.add_member(:amount, Shapes::ShapeRef.new(shape: NumericValue, required: true, location_name: "Amount"))
198
- Spend.add_member(:unit, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Unit"))
199
- Spend.struct_class = Types::Spend
200
-
201
- Subscriber.add_member(:subscription_type, Shapes::ShapeRef.new(shape: SubscriptionType, required: true, location_name: "SubscriptionType"))
202
- Subscriber.add_member(:address, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Address"))
203
- Subscriber.struct_class = Types::Subscriber
204
-
205
- Subscribers.member = Shapes::ShapeRef.new(shape: Subscriber)
206
-
207
- TimePeriod.add_member(:start, Shapes::ShapeRef.new(shape: GenericTimestamp, required: true, location_name: "Start"))
208
- TimePeriod.add_member(:end, Shapes::ShapeRef.new(shape: GenericTimestamp, required: true, location_name: "End"))
209
- TimePeriod.struct_class = Types::TimePeriod
210
-
211
- UpdateBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
212
- UpdateBudgetRequest.add_member(:new_budget, Shapes::ShapeRef.new(shape: Budget, required: true, location_name: "NewBudget"))
213
- UpdateBudgetRequest.struct_class = Types::UpdateBudgetRequest
214
-
215
- UpdateBudgetResponse.struct_class = Types::UpdateBudgetResponse
216
-
217
- UpdateNotificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
218
- UpdateNotificationRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
219
- UpdateNotificationRequest.add_member(:old_notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "OldNotification"))
220
- UpdateNotificationRequest.add_member(:new_notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "NewNotification"))
221
- UpdateNotificationRequest.struct_class = Types::UpdateNotificationRequest
222
-
223
- UpdateNotificationResponse.struct_class = Types::UpdateNotificationResponse
224
-
225
- UpdateSubscriberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
226
- UpdateSubscriberRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
227
- UpdateSubscriberRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
228
- UpdateSubscriberRequest.add_member(:old_subscriber, Shapes::ShapeRef.new(shape: Subscriber, required: true, location_name: "OldSubscriber"))
229
- UpdateSubscriberRequest.add_member(:new_subscriber, Shapes::ShapeRef.new(shape: Subscriber, required: true, location_name: "NewSubscriber"))
230
- UpdateSubscriberRequest.struct_class = Types::UpdateSubscriberRequest
231
-
232
- UpdateSubscriberResponse.struct_class = Types::UpdateSubscriberResponse
233
-
234
-
235
- # @api private
236
- API = Seahorse::Model::Api.new.tap do |api|
237
-
238
- api.version = "2016-10-20"
239
-
240
- api.metadata = {
241
- "endpointPrefix" => "budgets",
242
- "jsonVersion" => "1.1",
243
- "protocol" => "json",
244
- "serviceFullName" => "AWS Budgets",
245
- "signatureVersion" => "v4",
246
- "targetPrefix" => "AWSBudgetServiceGateway",
247
- }
248
-
249
- api.add_operation(:create_budget, Seahorse::Model::Operation.new.tap do |o|
250
- o.name = "CreateBudget"
251
- o.http_method = "POST"
252
- o.http_request_uri = "/"
253
- o.input = Shapes::ShapeRef.new(shape: CreateBudgetRequest)
254
- o.output = Shapes::ShapeRef.new(shape: CreateBudgetResponse)
255
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
256
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
257
- o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
258
- o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
259
- end)
260
-
261
- api.add_operation(:create_notification, Seahorse::Model::Operation.new.tap do |o|
262
- o.name = "CreateNotification"
263
- o.http_method = "POST"
264
- o.http_request_uri = "/"
265
- o.input = Shapes::ShapeRef.new(shape: CreateNotificationRequest)
266
- o.output = Shapes::ShapeRef.new(shape: CreateNotificationResponse)
267
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
268
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
269
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
270
- o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
271
- o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
272
- end)
273
-
274
- api.add_operation(:create_subscriber, Seahorse::Model::Operation.new.tap do |o|
275
- o.name = "CreateSubscriber"
276
- o.http_method = "POST"
277
- o.http_request_uri = "/"
278
- o.input = Shapes::ShapeRef.new(shape: CreateSubscriberRequest)
279
- o.output = Shapes::ShapeRef.new(shape: CreateSubscriberResponse)
280
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
281
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
282
- o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
283
- o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
284
- end)
285
-
286
- api.add_operation(:delete_budget, Seahorse::Model::Operation.new.tap do |o|
287
- o.name = "DeleteBudget"
288
- o.http_method = "POST"
289
- o.http_request_uri = "/"
290
- o.input = Shapes::ShapeRef.new(shape: DeleteBudgetRequest)
291
- o.output = Shapes::ShapeRef.new(shape: DeleteBudgetResponse)
292
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
293
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
294
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
295
- end)
296
-
297
- api.add_operation(:delete_notification, Seahorse::Model::Operation.new.tap do |o|
298
- o.name = "DeleteNotification"
299
- o.http_method = "POST"
300
- o.http_request_uri = "/"
301
- o.input = Shapes::ShapeRef.new(shape: DeleteNotificationRequest)
302
- o.output = Shapes::ShapeRef.new(shape: DeleteNotificationResponse)
303
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
304
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
305
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
306
- end)
307
-
308
- api.add_operation(:delete_subscriber, Seahorse::Model::Operation.new.tap do |o|
309
- o.name = "DeleteSubscriber"
310
- o.http_method = "POST"
311
- o.http_request_uri = "/"
312
- o.input = Shapes::ShapeRef.new(shape: DeleteSubscriberRequest)
313
- o.output = Shapes::ShapeRef.new(shape: DeleteSubscriberResponse)
314
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
315
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
316
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
317
- end)
318
-
319
- api.add_operation(:describe_budget, Seahorse::Model::Operation.new.tap do |o|
320
- o.name = "DescribeBudget"
321
- o.http_method = "POST"
322
- o.http_request_uri = "/"
323
- o.input = Shapes::ShapeRef.new(shape: DescribeBudgetRequest)
324
- o.output = Shapes::ShapeRef.new(shape: DescribeBudgetResponse)
325
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
326
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
327
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
328
- end)
329
-
330
- api.add_operation(:describe_budgets, Seahorse::Model::Operation.new.tap do |o|
331
- o.name = "DescribeBudgets"
332
- o.http_method = "POST"
333
- o.http_request_uri = "/"
334
- o.input = Shapes::ShapeRef.new(shape: DescribeBudgetsRequest)
335
- o.output = Shapes::ShapeRef.new(shape: DescribeBudgetsResponse)
336
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
337
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
338
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
339
- o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
340
- o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
341
- end)
342
-
343
- api.add_operation(:describe_notifications_for_budget, Seahorse::Model::Operation.new.tap do |o|
344
- o.name = "DescribeNotificationsForBudget"
345
- o.http_method = "POST"
346
- o.http_request_uri = "/"
347
- o.input = Shapes::ShapeRef.new(shape: DescribeNotificationsForBudgetRequest)
348
- o.output = Shapes::ShapeRef.new(shape: DescribeNotificationsForBudgetResponse)
349
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
350
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
351
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
352
- o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
353
- o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
354
- end)
355
-
356
- api.add_operation(:describe_subscribers_for_notification, Seahorse::Model::Operation.new.tap do |o|
357
- o.name = "DescribeSubscribersForNotification"
358
- o.http_method = "POST"
359
- o.http_request_uri = "/"
360
- o.input = Shapes::ShapeRef.new(shape: DescribeSubscribersForNotificationRequest)
361
- o.output = Shapes::ShapeRef.new(shape: DescribeSubscribersForNotificationResponse)
362
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
363
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
364
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
365
- o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
366
- o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
367
- end)
368
-
369
- api.add_operation(:update_budget, Seahorse::Model::Operation.new.tap do |o|
370
- o.name = "UpdateBudget"
371
- o.http_method = "POST"
372
- o.http_request_uri = "/"
373
- o.input = Shapes::ShapeRef.new(shape: UpdateBudgetRequest)
374
- o.output = Shapes::ShapeRef.new(shape: UpdateBudgetResponse)
375
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
376
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
377
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
378
- end)
379
-
380
- api.add_operation(:update_notification, Seahorse::Model::Operation.new.tap do |o|
381
- o.name = "UpdateNotification"
382
- o.http_method = "POST"
383
- o.http_request_uri = "/"
384
- o.input = Shapes::ShapeRef.new(shape: UpdateNotificationRequest)
385
- o.output = Shapes::ShapeRef.new(shape: UpdateNotificationResponse)
386
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
387
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
388
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
389
- end)
390
-
391
- api.add_operation(:update_subscriber, Seahorse::Model::Operation.new.tap do |o|
392
- o.name = "UpdateSubscriber"
393
- o.http_method = "POST"
394
- o.http_request_uri = "/"
395
- o.input = Shapes::ShapeRef.new(shape: UpdateSubscriberRequest)
396
- o.output = Shapes::ShapeRef.new(shape: UpdateSubscriberResponse)
397
- o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
398
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
399
- o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
400
- end)
401
- end
8
+ module Aws::Budgets
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
15
+ Budget = Shapes::StructureShape.new(name: 'Budget')
16
+ BudgetName = Shapes::StringShape.new(name: 'BudgetName')
17
+ BudgetType = Shapes::StringShape.new(name: 'BudgetType')
18
+ Budgets = Shapes::ListShape.new(name: 'Budgets')
19
+ CalculatedSpend = Shapes::StructureShape.new(name: 'CalculatedSpend')
20
+ ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
21
+ CostFilters = Shapes::MapShape.new(name: 'CostFilters')
22
+ CostTypes = Shapes::StructureShape.new(name: 'CostTypes')
23
+ CreateBudgetRequest = Shapes::StructureShape.new(name: 'CreateBudgetRequest')
24
+ CreateBudgetResponse = Shapes::StructureShape.new(name: 'CreateBudgetResponse')
25
+ CreateNotificationRequest = Shapes::StructureShape.new(name: 'CreateNotificationRequest')
26
+ CreateNotificationResponse = Shapes::StructureShape.new(name: 'CreateNotificationResponse')
27
+ CreateSubscriberRequest = Shapes::StructureShape.new(name: 'CreateSubscriberRequest')
28
+ CreateSubscriberResponse = Shapes::StructureShape.new(name: 'CreateSubscriberResponse')
29
+ CreationLimitExceededException = Shapes::StructureShape.new(name: 'CreationLimitExceededException')
30
+ DeleteBudgetRequest = Shapes::StructureShape.new(name: 'DeleteBudgetRequest')
31
+ DeleteBudgetResponse = Shapes::StructureShape.new(name: 'DeleteBudgetResponse')
32
+ DeleteNotificationRequest = Shapes::StructureShape.new(name: 'DeleteNotificationRequest')
33
+ DeleteNotificationResponse = Shapes::StructureShape.new(name: 'DeleteNotificationResponse')
34
+ DeleteSubscriberRequest = Shapes::StructureShape.new(name: 'DeleteSubscriberRequest')
35
+ DeleteSubscriberResponse = Shapes::StructureShape.new(name: 'DeleteSubscriberResponse')
36
+ DescribeBudgetRequest = Shapes::StructureShape.new(name: 'DescribeBudgetRequest')
37
+ DescribeBudgetResponse = Shapes::StructureShape.new(name: 'DescribeBudgetResponse')
38
+ DescribeBudgetsRequest = Shapes::StructureShape.new(name: 'DescribeBudgetsRequest')
39
+ DescribeBudgetsResponse = Shapes::StructureShape.new(name: 'DescribeBudgetsResponse')
40
+ DescribeNotificationsForBudgetRequest = Shapes::StructureShape.new(name: 'DescribeNotificationsForBudgetRequest')
41
+ DescribeNotificationsForBudgetResponse = Shapes::StructureShape.new(name: 'DescribeNotificationsForBudgetResponse')
42
+ DescribeSubscribersForNotificationRequest = Shapes::StructureShape.new(name: 'DescribeSubscribersForNotificationRequest')
43
+ DescribeSubscribersForNotificationResponse = Shapes::StructureShape.new(name: 'DescribeSubscribersForNotificationResponse')
44
+ DimensionValues = Shapes::ListShape.new(name: 'DimensionValues')
45
+ DuplicateRecordException = Shapes::StructureShape.new(name: 'DuplicateRecordException')
46
+ ExpiredNextTokenException = Shapes::StructureShape.new(name: 'ExpiredNextTokenException')
47
+ GenericBoolean = Shapes::BooleanShape.new(name: 'GenericBoolean')
48
+ GenericString = Shapes::StringShape.new(name: 'GenericString')
49
+ GenericTimestamp = Shapes::TimestampShape.new(name: 'GenericTimestamp')
50
+ InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
51
+ InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
52
+ InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
53
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
54
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
55
+ Notification = Shapes::StructureShape.new(name: 'Notification')
56
+ NotificationThreshold = Shapes::FloatShape.new(name: 'NotificationThreshold')
57
+ NotificationType = Shapes::StringShape.new(name: 'NotificationType')
58
+ NotificationWithSubscribers = Shapes::StructureShape.new(name: 'NotificationWithSubscribers')
59
+ NotificationWithSubscribersList = Shapes::ListShape.new(name: 'NotificationWithSubscribersList')
60
+ Notifications = Shapes::ListShape.new(name: 'Notifications')
61
+ NumericValue = Shapes::StringShape.new(name: 'NumericValue')
62
+ Spend = Shapes::StructureShape.new(name: 'Spend')
63
+ Subscriber = Shapes::StructureShape.new(name: 'Subscriber')
64
+ Subscribers = Shapes::ListShape.new(name: 'Subscribers')
65
+ SubscriptionType = Shapes::StringShape.new(name: 'SubscriptionType')
66
+ TimePeriod = Shapes::StructureShape.new(name: 'TimePeriod')
67
+ TimeUnit = Shapes::StringShape.new(name: 'TimeUnit')
68
+ UpdateBudgetRequest = Shapes::StructureShape.new(name: 'UpdateBudgetRequest')
69
+ UpdateBudgetResponse = Shapes::StructureShape.new(name: 'UpdateBudgetResponse')
70
+ UpdateNotificationRequest = Shapes::StructureShape.new(name: 'UpdateNotificationRequest')
71
+ UpdateNotificationResponse = Shapes::StructureShape.new(name: 'UpdateNotificationResponse')
72
+ UpdateSubscriberRequest = Shapes::StructureShape.new(name: 'UpdateSubscriberRequest')
73
+ UpdateSubscriberResponse = Shapes::StructureShape.new(name: 'UpdateSubscriberResponse')
74
+ errorMessage = Shapes::StringShape.new(name: 'errorMessage')
75
+
76
+ Budget.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
77
+ Budget.add_member(:budget_limit, Shapes::ShapeRef.new(shape: Spend, required: true, location_name: "BudgetLimit"))
78
+ Budget.add_member(:cost_filters, Shapes::ShapeRef.new(shape: CostFilters, location_name: "CostFilters"))
79
+ Budget.add_member(:cost_types, Shapes::ShapeRef.new(shape: CostTypes, required: true, location_name: "CostTypes"))
80
+ Budget.add_member(:time_unit, Shapes::ShapeRef.new(shape: TimeUnit, required: true, location_name: "TimeUnit"))
81
+ Budget.add_member(:time_period, Shapes::ShapeRef.new(shape: TimePeriod, required: true, location_name: "TimePeriod"))
82
+ Budget.add_member(:calculated_spend, Shapes::ShapeRef.new(shape: CalculatedSpend, location_name: "CalculatedSpend"))
83
+ Budget.add_member(:budget_type, Shapes::ShapeRef.new(shape: BudgetType, required: true, location_name: "BudgetType"))
84
+ Budget.struct_class = Types::Budget
85
+
86
+ Budgets.member = Shapes::ShapeRef.new(shape: Budget)
87
+
88
+ CalculatedSpend.add_member(:actual_spend, Shapes::ShapeRef.new(shape: Spend, required: true, location_name: "ActualSpend"))
89
+ CalculatedSpend.add_member(:forecasted_spend, Shapes::ShapeRef.new(shape: Spend, location_name: "ForecastedSpend"))
90
+ CalculatedSpend.struct_class = Types::CalculatedSpend
91
+
92
+ CostFilters.key = Shapes::ShapeRef.new(shape: GenericString)
93
+ CostFilters.value = Shapes::ShapeRef.new(shape: DimensionValues)
94
+
95
+ CostTypes.add_member(:include_tax, Shapes::ShapeRef.new(shape: GenericBoolean, required: true, location_name: "IncludeTax"))
96
+ CostTypes.add_member(:include_subscription, Shapes::ShapeRef.new(shape: GenericBoolean, required: true, location_name: "IncludeSubscription"))
97
+ CostTypes.add_member(:use_blended, Shapes::ShapeRef.new(shape: GenericBoolean, required: true, location_name: "UseBlended"))
98
+ CostTypes.struct_class = Types::CostTypes
99
+
100
+ CreateBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
101
+ CreateBudgetRequest.add_member(:budget, Shapes::ShapeRef.new(shape: Budget, required: true, location_name: "Budget"))
102
+ CreateBudgetRequest.add_member(:notifications_with_subscribers, Shapes::ShapeRef.new(shape: NotificationWithSubscribersList, location_name: "NotificationsWithSubscribers"))
103
+ CreateBudgetRequest.struct_class = Types::CreateBudgetRequest
104
+
105
+ CreateBudgetResponse.struct_class = Types::CreateBudgetResponse
106
+
107
+ CreateNotificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
108
+ CreateNotificationRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
109
+ CreateNotificationRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
110
+ CreateNotificationRequest.add_member(:subscribers, Shapes::ShapeRef.new(shape: Subscribers, required: true, location_name: "Subscribers"))
111
+ CreateNotificationRequest.struct_class = Types::CreateNotificationRequest
112
+
113
+ CreateNotificationResponse.struct_class = Types::CreateNotificationResponse
114
+
115
+ CreateSubscriberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
116
+ CreateSubscriberRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
117
+ CreateSubscriberRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
118
+ CreateSubscriberRequest.add_member(:subscriber, Shapes::ShapeRef.new(shape: Subscriber, required: true, location_name: "Subscriber"))
119
+ CreateSubscriberRequest.struct_class = Types::CreateSubscriberRequest
120
+
121
+ CreateSubscriberResponse.struct_class = Types::CreateSubscriberResponse
122
+
123
+ DeleteBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
124
+ DeleteBudgetRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
125
+ DeleteBudgetRequest.struct_class = Types::DeleteBudgetRequest
126
+
127
+ DeleteBudgetResponse.struct_class = Types::DeleteBudgetResponse
128
+
129
+ DeleteNotificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
130
+ DeleteNotificationRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
131
+ DeleteNotificationRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
132
+ DeleteNotificationRequest.struct_class = Types::DeleteNotificationRequest
133
+
134
+ DeleteNotificationResponse.struct_class = Types::DeleteNotificationResponse
135
+
136
+ DeleteSubscriberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
137
+ DeleteSubscriberRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
138
+ DeleteSubscriberRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
139
+ DeleteSubscriberRequest.add_member(:subscriber, Shapes::ShapeRef.new(shape: Subscriber, required: true, location_name: "Subscriber"))
140
+ DeleteSubscriberRequest.struct_class = Types::DeleteSubscriberRequest
141
+
142
+ DeleteSubscriberResponse.struct_class = Types::DeleteSubscriberResponse
143
+
144
+ DescribeBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
145
+ DescribeBudgetRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
146
+ DescribeBudgetRequest.struct_class = Types::DescribeBudgetRequest
147
+
148
+ DescribeBudgetResponse.add_member(:budget, Shapes::ShapeRef.new(shape: Budget, location_name: "Budget"))
149
+ DescribeBudgetResponse.struct_class = Types::DescribeBudgetResponse
150
+
151
+ DescribeBudgetsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
152
+ DescribeBudgetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
153
+ DescribeBudgetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
154
+ DescribeBudgetsRequest.struct_class = Types::DescribeBudgetsRequest
155
+
156
+ DescribeBudgetsResponse.add_member(:budgets, Shapes::ShapeRef.new(shape: Budgets, location_name: "Budgets"))
157
+ DescribeBudgetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
158
+ DescribeBudgetsResponse.struct_class = Types::DescribeBudgetsResponse
159
+
160
+ DescribeNotificationsForBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
161
+ DescribeNotificationsForBudgetRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
162
+ DescribeNotificationsForBudgetRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
163
+ DescribeNotificationsForBudgetRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
164
+ DescribeNotificationsForBudgetRequest.struct_class = Types::DescribeNotificationsForBudgetRequest
165
+
166
+ DescribeNotificationsForBudgetResponse.add_member(:notifications, Shapes::ShapeRef.new(shape: Notifications, location_name: "Notifications"))
167
+ DescribeNotificationsForBudgetResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
168
+ DescribeNotificationsForBudgetResponse.struct_class = Types::DescribeNotificationsForBudgetResponse
169
+
170
+ DescribeSubscribersForNotificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
171
+ DescribeSubscribersForNotificationRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
172
+ DescribeSubscribersForNotificationRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
173
+ DescribeSubscribersForNotificationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
174
+ DescribeSubscribersForNotificationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
175
+ DescribeSubscribersForNotificationRequest.struct_class = Types::DescribeSubscribersForNotificationRequest
176
+
177
+ DescribeSubscribersForNotificationResponse.add_member(:subscribers, Shapes::ShapeRef.new(shape: Subscribers, location_name: "Subscribers"))
178
+ DescribeSubscribersForNotificationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
179
+ DescribeSubscribersForNotificationResponse.struct_class = Types::DescribeSubscribersForNotificationResponse
180
+
181
+ DimensionValues.member = Shapes::ShapeRef.new(shape: GenericString)
182
+
183
+ Notification.add_member(:notification_type, Shapes::ShapeRef.new(shape: NotificationType, required: true, location_name: "NotificationType"))
184
+ Notification.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator"))
185
+ Notification.add_member(:threshold, Shapes::ShapeRef.new(shape: NotificationThreshold, required: true, location_name: "Threshold"))
186
+ Notification.struct_class = Types::Notification
187
+
188
+ NotificationWithSubscribers.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
189
+ NotificationWithSubscribers.add_member(:subscribers, Shapes::ShapeRef.new(shape: Subscribers, required: true, location_name: "Subscribers"))
190
+ NotificationWithSubscribers.struct_class = Types::NotificationWithSubscribers
191
+
192
+ NotificationWithSubscribersList.member = Shapes::ShapeRef.new(shape: NotificationWithSubscribers)
193
+
194
+ Notifications.member = Shapes::ShapeRef.new(shape: Notification)
195
+
196
+ Spend.add_member(:amount, Shapes::ShapeRef.new(shape: NumericValue, required: true, location_name: "Amount"))
197
+ Spend.add_member(:unit, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Unit"))
198
+ Spend.struct_class = Types::Spend
199
+
200
+ Subscriber.add_member(:subscription_type, Shapes::ShapeRef.new(shape: SubscriptionType, required: true, location_name: "SubscriptionType"))
201
+ Subscriber.add_member(:address, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Address"))
202
+ Subscriber.struct_class = Types::Subscriber
402
203
 
204
+ Subscribers.member = Shapes::ShapeRef.new(shape: Subscriber)
205
+
206
+ TimePeriod.add_member(:start, Shapes::ShapeRef.new(shape: GenericTimestamp, required: true, location_name: "Start"))
207
+ TimePeriod.add_member(:end, Shapes::ShapeRef.new(shape: GenericTimestamp, required: true, location_name: "End"))
208
+ TimePeriod.struct_class = Types::TimePeriod
209
+
210
+ UpdateBudgetRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
211
+ UpdateBudgetRequest.add_member(:new_budget, Shapes::ShapeRef.new(shape: Budget, required: true, location_name: "NewBudget"))
212
+ UpdateBudgetRequest.struct_class = Types::UpdateBudgetRequest
213
+
214
+ UpdateBudgetResponse.struct_class = Types::UpdateBudgetResponse
215
+
216
+ UpdateNotificationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
217
+ UpdateNotificationRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
218
+ UpdateNotificationRequest.add_member(:old_notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "OldNotification"))
219
+ UpdateNotificationRequest.add_member(:new_notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "NewNotification"))
220
+ UpdateNotificationRequest.struct_class = Types::UpdateNotificationRequest
221
+
222
+ UpdateNotificationResponse.struct_class = Types::UpdateNotificationResponse
223
+
224
+ UpdateSubscriberRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
225
+ UpdateSubscriberRequest.add_member(:budget_name, Shapes::ShapeRef.new(shape: BudgetName, required: true, location_name: "BudgetName"))
226
+ UpdateSubscriberRequest.add_member(:notification, Shapes::ShapeRef.new(shape: Notification, required: true, location_name: "Notification"))
227
+ UpdateSubscriberRequest.add_member(:old_subscriber, Shapes::ShapeRef.new(shape: Subscriber, required: true, location_name: "OldSubscriber"))
228
+ UpdateSubscriberRequest.add_member(:new_subscriber, Shapes::ShapeRef.new(shape: Subscriber, required: true, location_name: "NewSubscriber"))
229
+ UpdateSubscriberRequest.struct_class = Types::UpdateSubscriberRequest
230
+
231
+ UpdateSubscriberResponse.struct_class = Types::UpdateSubscriberResponse
232
+
233
+
234
+ # @api private
235
+ API = Seahorse::Model::Api.new.tap do |api|
236
+
237
+ api.version = "2016-10-20"
238
+
239
+ api.metadata = {
240
+ "endpointPrefix" => "budgets",
241
+ "jsonVersion" => "1.1",
242
+ "protocol" => "json",
243
+ "serviceFullName" => "AWS Budgets",
244
+ "signatureVersion" => "v4",
245
+ "targetPrefix" => "AWSBudgetServiceGateway",
246
+ }
247
+
248
+ api.add_operation(:create_budget, Seahorse::Model::Operation.new.tap do |o|
249
+ o.name = "CreateBudget"
250
+ o.http_method = "POST"
251
+ o.http_request_uri = "/"
252
+ o.input = Shapes::ShapeRef.new(shape: CreateBudgetRequest)
253
+ o.output = Shapes::ShapeRef.new(shape: CreateBudgetResponse)
254
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
255
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
256
+ o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
257
+ o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
258
+ end)
259
+
260
+ api.add_operation(:create_notification, Seahorse::Model::Operation.new.tap do |o|
261
+ o.name = "CreateNotification"
262
+ o.http_method = "POST"
263
+ o.http_request_uri = "/"
264
+ o.input = Shapes::ShapeRef.new(shape: CreateNotificationRequest)
265
+ o.output = Shapes::ShapeRef.new(shape: CreateNotificationResponse)
266
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
267
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
268
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
269
+ o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
270
+ o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
271
+ end)
272
+
273
+ api.add_operation(:create_subscriber, Seahorse::Model::Operation.new.tap do |o|
274
+ o.name = "CreateSubscriber"
275
+ o.http_method = "POST"
276
+ o.http_request_uri = "/"
277
+ o.input = Shapes::ShapeRef.new(shape: CreateSubscriberRequest)
278
+ o.output = Shapes::ShapeRef.new(shape: CreateSubscriberResponse)
279
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
280
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
281
+ o.errors << Shapes::ShapeRef.new(shape: CreationLimitExceededException)
282
+ o.errors << Shapes::ShapeRef.new(shape: DuplicateRecordException)
283
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
284
+ end)
285
+
286
+ api.add_operation(:delete_budget, Seahorse::Model::Operation.new.tap do |o|
287
+ o.name = "DeleteBudget"
288
+ o.http_method = "POST"
289
+ o.http_request_uri = "/"
290
+ o.input = Shapes::ShapeRef.new(shape: DeleteBudgetRequest)
291
+ o.output = Shapes::ShapeRef.new(shape: DeleteBudgetResponse)
292
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
293
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
294
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
295
+ end)
296
+
297
+ api.add_operation(:delete_notification, Seahorse::Model::Operation.new.tap do |o|
298
+ o.name = "DeleteNotification"
299
+ o.http_method = "POST"
300
+ o.http_request_uri = "/"
301
+ o.input = Shapes::ShapeRef.new(shape: DeleteNotificationRequest)
302
+ o.output = Shapes::ShapeRef.new(shape: DeleteNotificationResponse)
303
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
304
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
305
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
306
+ end)
307
+
308
+ api.add_operation(:delete_subscriber, Seahorse::Model::Operation.new.tap do |o|
309
+ o.name = "DeleteSubscriber"
310
+ o.http_method = "POST"
311
+ o.http_request_uri = "/"
312
+ o.input = Shapes::ShapeRef.new(shape: DeleteSubscriberRequest)
313
+ o.output = Shapes::ShapeRef.new(shape: DeleteSubscriberResponse)
314
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
315
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
316
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
317
+ end)
318
+
319
+ api.add_operation(:describe_budget, Seahorse::Model::Operation.new.tap do |o|
320
+ o.name = "DescribeBudget"
321
+ o.http_method = "POST"
322
+ o.http_request_uri = "/"
323
+ o.input = Shapes::ShapeRef.new(shape: DescribeBudgetRequest)
324
+ o.output = Shapes::ShapeRef.new(shape: DescribeBudgetResponse)
325
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
326
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
327
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
328
+ end)
329
+
330
+ api.add_operation(:describe_budgets, Seahorse::Model::Operation.new.tap do |o|
331
+ o.name = "DescribeBudgets"
332
+ o.http_method = "POST"
333
+ o.http_request_uri = "/"
334
+ o.input = Shapes::ShapeRef.new(shape: DescribeBudgetsRequest)
335
+ o.output = Shapes::ShapeRef.new(shape: DescribeBudgetsResponse)
336
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
337
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
338
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
339
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
340
+ o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
341
+ end)
342
+
343
+ api.add_operation(:describe_notifications_for_budget, Seahorse::Model::Operation.new.tap do |o|
344
+ o.name = "DescribeNotificationsForBudget"
345
+ o.http_method = "POST"
346
+ o.http_request_uri = "/"
347
+ o.input = Shapes::ShapeRef.new(shape: DescribeNotificationsForBudgetRequest)
348
+ o.output = Shapes::ShapeRef.new(shape: DescribeNotificationsForBudgetResponse)
349
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
350
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
351
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
352
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
353
+ o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
354
+ end)
355
+
356
+ api.add_operation(:describe_subscribers_for_notification, Seahorse::Model::Operation.new.tap do |o|
357
+ o.name = "DescribeSubscribersForNotification"
358
+ o.http_method = "POST"
359
+ o.http_request_uri = "/"
360
+ o.input = Shapes::ShapeRef.new(shape: DescribeSubscribersForNotificationRequest)
361
+ o.output = Shapes::ShapeRef.new(shape: DescribeSubscribersForNotificationResponse)
362
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
363
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
364
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
365
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
366
+ o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
367
+ end)
368
+
369
+ api.add_operation(:update_budget, Seahorse::Model::Operation.new.tap do |o|
370
+ o.name = "UpdateBudget"
371
+ o.http_method = "POST"
372
+ o.http_request_uri = "/"
373
+ o.input = Shapes::ShapeRef.new(shape: UpdateBudgetRequest)
374
+ o.output = Shapes::ShapeRef.new(shape: UpdateBudgetResponse)
375
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
376
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
377
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
378
+ end)
379
+
380
+ api.add_operation(:update_notification, Seahorse::Model::Operation.new.tap do |o|
381
+ o.name = "UpdateNotification"
382
+ o.http_method = "POST"
383
+ o.http_request_uri = "/"
384
+ o.input = Shapes::ShapeRef.new(shape: UpdateNotificationRequest)
385
+ o.output = Shapes::ShapeRef.new(shape: UpdateNotificationResponse)
386
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
387
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
388
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
389
+ end)
390
+
391
+ api.add_operation(:update_subscriber, Seahorse::Model::Operation.new.tap do |o|
392
+ o.name = "UpdateSubscriber"
393
+ o.http_method = "POST"
394
+ o.http_request_uri = "/"
395
+ o.input = Shapes::ShapeRef.new(shape: UpdateSubscriberRequest)
396
+ o.output = Shapes::ShapeRef.new(shape: UpdateSubscriberResponse)
397
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
398
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
399
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
400
+ end)
403
401
  end
402
+
404
403
  end
405
404
  end