aws-sdk-budgets 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,405 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
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
402
+
403
+ end
404
+ end
405
+ end
@@ -0,0 +1,7 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Budgets
10
+ module Errors
11
+
12
+ extend Aws::Errors::DynamicErrors
13
+
14
+ # Raised when calling #load or #data on a resource class that can not be
15
+ # loaded. This can happen when:
16
+ #
17
+ # * A resource class has identifiers, but no data attributes.
18
+ # * Resource data is only available when making an API call that
19
+ # enumerates all resources of that type.
20
+ class ResourceNotLoadable < RuntimeError; end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Budgets
10
+ class Resource
11
+
12
+ # @param options ({})
13
+ # @option options [Client] :client
14
+ def initialize(options = {})
15
+ @client = options[:client] || Client.new(options)
16
+ end
17
+
18
+ # @return [Client]
19
+ def client
20
+ @client
21
+ end
22
+
23
+ end
24
+ end
25
+ end