@aws-sdk/client-budgets 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Budgets.js +101 -94
  4. package/dist-es/BudgetsClient.js +28 -22
  5. package/dist-es/commands/CreateBudgetActionCommand.js +28 -21
  6. package/dist-es/commands/CreateBudgetCommand.js +28 -21
  7. package/dist-es/commands/CreateNotificationCommand.js +28 -21
  8. package/dist-es/commands/CreateSubscriberCommand.js +28 -21
  9. package/dist-es/commands/DeleteBudgetActionCommand.js +28 -21
  10. package/dist-es/commands/DeleteBudgetCommand.js +28 -21
  11. package/dist-es/commands/DeleteNotificationCommand.js +28 -21
  12. package/dist-es/commands/DeleteSubscriberCommand.js +28 -21
  13. package/dist-es/commands/DescribeBudgetActionCommand.js +28 -21
  14. package/dist-es/commands/DescribeBudgetActionHistoriesCommand.js +28 -21
  15. package/dist-es/commands/DescribeBudgetActionsForAccountCommand.js +28 -21
  16. package/dist-es/commands/DescribeBudgetActionsForBudgetCommand.js +28 -21
  17. package/dist-es/commands/DescribeBudgetCommand.js +28 -21
  18. package/dist-es/commands/DescribeBudgetNotificationsForAccountCommand.js +28 -21
  19. package/dist-es/commands/DescribeBudgetPerformanceHistoryCommand.js +28 -21
  20. package/dist-es/commands/DescribeBudgetsCommand.js +28 -21
  21. package/dist-es/commands/DescribeNotificationsForBudgetCommand.js +28 -21
  22. package/dist-es/commands/DescribeSubscribersForNotificationCommand.js +28 -21
  23. package/dist-es/commands/ExecuteBudgetActionCommand.js +28 -21
  24. package/dist-es/commands/UpdateBudgetActionCommand.js +28 -21
  25. package/dist-es/commands/UpdateBudgetCommand.js +28 -21
  26. package/dist-es/commands/UpdateNotificationCommand.js +28 -21
  27. package/dist-es/commands/UpdateSubscriberCommand.js +28 -21
  28. package/dist-es/endpoints.js +8 -8
  29. package/dist-es/models/BudgetsServiceException.js +10 -5
  30. package/dist-es/models/models_0.js +190 -340
  31. package/dist-es/pagination/DescribeBudgetActionHistoriesPaginator.js +68 -25
  32. package/dist-es/pagination/DescribeBudgetActionsForAccountPaginator.js +68 -25
  33. package/dist-es/pagination/DescribeBudgetActionsForBudgetPaginator.js +68 -25
  34. package/dist-es/pagination/DescribeBudgetNotificationsForAccountPaginator.js +68 -25
  35. package/dist-es/pagination/DescribeBudgetPerformanceHistoryPaginator.js +68 -25
  36. package/dist-es/pagination/DescribeBudgetsPaginator.js +68 -25
  37. package/dist-es/pagination/DescribeNotificationsForBudgetPaginator.js +68 -25
  38. package/dist-es/pagination/DescribeSubscribersForNotificationPaginator.js +68 -25
  39. package/dist-es/protocols/Aws_json1_1.js +2302 -1894
  40. package/dist-es/runtimeConfig.browser.js +12 -26
  41. package/dist-es/runtimeConfig.js +12 -30
  42. package/dist-es/runtimeConfig.native.js +5 -8
  43. package/dist-es/runtimeConfig.shared.js +11 -8
  44. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-budgets
@@ -2385,10 +2385,10 @@ const deserializeAws_json1_1Users = (output, context) => {
2385
2385
  return retVal;
2386
2386
  };
2387
2387
  const deserializeMetadata = (output) => {
2388
- var _a;
2388
+ var _a, _b;
2389
2389
  return ({
2390
2390
  httpStatusCode: output.statusCode,
2391
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2391
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2392
2392
  extendedRequestId: output.headers["x-amz-id-2"],
2393
2393
  cfId: output.headers["x-amz-cf-id"],
2394
2394
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { BudgetsClient } from "./BudgetsClient";
2
3
  import { CreateBudgetActionCommand, } from "./commands/CreateBudgetActionCommand";
3
4
  import { CreateBudgetCommand, } from "./commands/CreateBudgetCommand";
@@ -22,327 +23,333 @@ import { UpdateBudgetActionCommand, } from "./commands/UpdateBudgetActionCommand
22
23
  import { UpdateBudgetCommand, } from "./commands/UpdateBudgetCommand";
23
24
  import { UpdateNotificationCommand, } from "./commands/UpdateNotificationCommand";
24
25
  import { UpdateSubscriberCommand, } from "./commands/UpdateSubscriberCommand";
25
- export class Budgets extends BudgetsClient {
26
- createBudget(args, optionsOrCb, cb) {
27
- const command = new CreateBudgetCommand(args);
26
+ var Budgets = (function (_super) {
27
+ __extends(Budgets, _super);
28
+ function Budgets() {
29
+ return _super !== null && _super.apply(this, arguments) || this;
30
+ }
31
+ Budgets.prototype.createBudget = function (args, optionsOrCb, cb) {
32
+ var command = new CreateBudgetCommand(args);
28
33
  if (typeof optionsOrCb === "function") {
29
34
  this.send(command, optionsOrCb);
30
35
  }
31
36
  else if (typeof cb === "function") {
32
37
  if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
34
39
  this.send(command, optionsOrCb || {}, cb);
35
40
  }
36
41
  else {
37
42
  return this.send(command, optionsOrCb);
38
43
  }
39
- }
40
- createBudgetAction(args, optionsOrCb, cb) {
41
- const command = new CreateBudgetActionCommand(args);
44
+ };
45
+ Budgets.prototype.createBudgetAction = function (args, optionsOrCb, cb) {
46
+ var command = new CreateBudgetActionCommand(args);
42
47
  if (typeof optionsOrCb === "function") {
43
48
  this.send(command, optionsOrCb);
44
49
  }
45
50
  else if (typeof cb === "function") {
46
51
  if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
48
53
  this.send(command, optionsOrCb || {}, cb);
49
54
  }
50
55
  else {
51
56
  return this.send(command, optionsOrCb);
52
57
  }
53
- }
54
- createNotification(args, optionsOrCb, cb) {
55
- const command = new CreateNotificationCommand(args);
58
+ };
59
+ Budgets.prototype.createNotification = function (args, optionsOrCb, cb) {
60
+ var command = new CreateNotificationCommand(args);
56
61
  if (typeof optionsOrCb === "function") {
57
62
  this.send(command, optionsOrCb);
58
63
  }
59
64
  else if (typeof cb === "function") {
60
65
  if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
62
67
  this.send(command, optionsOrCb || {}, cb);
63
68
  }
64
69
  else {
65
70
  return this.send(command, optionsOrCb);
66
71
  }
67
- }
68
- createSubscriber(args, optionsOrCb, cb) {
69
- const command = new CreateSubscriberCommand(args);
72
+ };
73
+ Budgets.prototype.createSubscriber = function (args, optionsOrCb, cb) {
74
+ var command = new CreateSubscriberCommand(args);
70
75
  if (typeof optionsOrCb === "function") {
71
76
  this.send(command, optionsOrCb);
72
77
  }
73
78
  else if (typeof cb === "function") {
74
79
  if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
76
81
  this.send(command, optionsOrCb || {}, cb);
77
82
  }
78
83
  else {
79
84
  return this.send(command, optionsOrCb);
80
85
  }
81
- }
82
- deleteBudget(args, optionsOrCb, cb) {
83
- const command = new DeleteBudgetCommand(args);
86
+ };
87
+ Budgets.prototype.deleteBudget = function (args, optionsOrCb, cb) {
88
+ var command = new DeleteBudgetCommand(args);
84
89
  if (typeof optionsOrCb === "function") {
85
90
  this.send(command, optionsOrCb);
86
91
  }
87
92
  else if (typeof cb === "function") {
88
93
  if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
95
  this.send(command, optionsOrCb || {}, cb);
91
96
  }
92
97
  else {
93
98
  return this.send(command, optionsOrCb);
94
99
  }
95
- }
96
- deleteBudgetAction(args, optionsOrCb, cb) {
97
- const command = new DeleteBudgetActionCommand(args);
100
+ };
101
+ Budgets.prototype.deleteBudgetAction = function (args, optionsOrCb, cb) {
102
+ var command = new DeleteBudgetActionCommand(args);
98
103
  if (typeof optionsOrCb === "function") {
99
104
  this.send(command, optionsOrCb);
100
105
  }
101
106
  else if (typeof cb === "function") {
102
107
  if (typeof optionsOrCb !== "object")
103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
109
  this.send(command, optionsOrCb || {}, cb);
105
110
  }
106
111
  else {
107
112
  return this.send(command, optionsOrCb);
108
113
  }
109
- }
110
- deleteNotification(args, optionsOrCb, cb) {
111
- const command = new DeleteNotificationCommand(args);
114
+ };
115
+ Budgets.prototype.deleteNotification = function (args, optionsOrCb, cb) {
116
+ var command = new DeleteNotificationCommand(args);
112
117
  if (typeof optionsOrCb === "function") {
113
118
  this.send(command, optionsOrCb);
114
119
  }
115
120
  else if (typeof cb === "function") {
116
121
  if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
123
  this.send(command, optionsOrCb || {}, cb);
119
124
  }
120
125
  else {
121
126
  return this.send(command, optionsOrCb);
122
127
  }
123
- }
124
- deleteSubscriber(args, optionsOrCb, cb) {
125
- const command = new DeleteSubscriberCommand(args);
128
+ };
129
+ Budgets.prototype.deleteSubscriber = function (args, optionsOrCb, cb) {
130
+ var command = new DeleteSubscriberCommand(args);
126
131
  if (typeof optionsOrCb === "function") {
127
132
  this.send(command, optionsOrCb);
128
133
  }
129
134
  else if (typeof cb === "function") {
130
135
  if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
137
  this.send(command, optionsOrCb || {}, cb);
133
138
  }
134
139
  else {
135
140
  return this.send(command, optionsOrCb);
136
141
  }
137
- }
138
- describeBudget(args, optionsOrCb, cb) {
139
- const command = new DescribeBudgetCommand(args);
142
+ };
143
+ Budgets.prototype.describeBudget = function (args, optionsOrCb, cb) {
144
+ var command = new DescribeBudgetCommand(args);
140
145
  if (typeof optionsOrCb === "function") {
141
146
  this.send(command, optionsOrCb);
142
147
  }
143
148
  else if (typeof cb === "function") {
144
149
  if (typeof optionsOrCb !== "object")
145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
151
  this.send(command, optionsOrCb || {}, cb);
147
152
  }
148
153
  else {
149
154
  return this.send(command, optionsOrCb);
150
155
  }
151
- }
152
- describeBudgetAction(args, optionsOrCb, cb) {
153
- const command = new DescribeBudgetActionCommand(args);
156
+ };
157
+ Budgets.prototype.describeBudgetAction = function (args, optionsOrCb, cb) {
158
+ var command = new DescribeBudgetActionCommand(args);
154
159
  if (typeof optionsOrCb === "function") {
155
160
  this.send(command, optionsOrCb);
156
161
  }
157
162
  else if (typeof cb === "function") {
158
163
  if (typeof optionsOrCb !== "object")
159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
160
165
  this.send(command, optionsOrCb || {}, cb);
161
166
  }
162
167
  else {
163
168
  return this.send(command, optionsOrCb);
164
169
  }
165
- }
166
- describeBudgetActionHistories(args, optionsOrCb, cb) {
167
- const command = new DescribeBudgetActionHistoriesCommand(args);
170
+ };
171
+ Budgets.prototype.describeBudgetActionHistories = function (args, optionsOrCb, cb) {
172
+ var command = new DescribeBudgetActionHistoriesCommand(args);
168
173
  if (typeof optionsOrCb === "function") {
169
174
  this.send(command, optionsOrCb);
170
175
  }
171
176
  else if (typeof cb === "function") {
172
177
  if (typeof optionsOrCb !== "object")
173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
174
179
  this.send(command, optionsOrCb || {}, cb);
175
180
  }
176
181
  else {
177
182
  return this.send(command, optionsOrCb);
178
183
  }
179
- }
180
- describeBudgetActionsForAccount(args, optionsOrCb, cb) {
181
- const command = new DescribeBudgetActionsForAccountCommand(args);
184
+ };
185
+ Budgets.prototype.describeBudgetActionsForAccount = function (args, optionsOrCb, cb) {
186
+ var command = new DescribeBudgetActionsForAccountCommand(args);
182
187
  if (typeof optionsOrCb === "function") {
183
188
  this.send(command, optionsOrCb);
184
189
  }
185
190
  else if (typeof cb === "function") {
186
191
  if (typeof optionsOrCb !== "object")
187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
188
193
  this.send(command, optionsOrCb || {}, cb);
189
194
  }
190
195
  else {
191
196
  return this.send(command, optionsOrCb);
192
197
  }
193
- }
194
- describeBudgetActionsForBudget(args, optionsOrCb, cb) {
195
- const command = new DescribeBudgetActionsForBudgetCommand(args);
198
+ };
199
+ Budgets.prototype.describeBudgetActionsForBudget = function (args, optionsOrCb, cb) {
200
+ var command = new DescribeBudgetActionsForBudgetCommand(args);
196
201
  if (typeof optionsOrCb === "function") {
197
202
  this.send(command, optionsOrCb);
198
203
  }
199
204
  else if (typeof cb === "function") {
200
205
  if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
202
207
  this.send(command, optionsOrCb || {}, cb);
203
208
  }
204
209
  else {
205
210
  return this.send(command, optionsOrCb);
206
211
  }
207
- }
208
- describeBudgetNotificationsForAccount(args, optionsOrCb, cb) {
209
- const command = new DescribeBudgetNotificationsForAccountCommand(args);
212
+ };
213
+ Budgets.prototype.describeBudgetNotificationsForAccount = function (args, optionsOrCb, cb) {
214
+ var command = new DescribeBudgetNotificationsForAccountCommand(args);
210
215
  if (typeof optionsOrCb === "function") {
211
216
  this.send(command, optionsOrCb);
212
217
  }
213
218
  else if (typeof cb === "function") {
214
219
  if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
216
221
  this.send(command, optionsOrCb || {}, cb);
217
222
  }
218
223
  else {
219
224
  return this.send(command, optionsOrCb);
220
225
  }
221
- }
222
- describeBudgetPerformanceHistory(args, optionsOrCb, cb) {
223
- const command = new DescribeBudgetPerformanceHistoryCommand(args);
226
+ };
227
+ Budgets.prototype.describeBudgetPerformanceHistory = function (args, optionsOrCb, cb) {
228
+ var command = new DescribeBudgetPerformanceHistoryCommand(args);
224
229
  if (typeof optionsOrCb === "function") {
225
230
  this.send(command, optionsOrCb);
226
231
  }
227
232
  else if (typeof cb === "function") {
228
233
  if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
230
235
  this.send(command, optionsOrCb || {}, cb);
231
236
  }
232
237
  else {
233
238
  return this.send(command, optionsOrCb);
234
239
  }
235
- }
236
- describeBudgets(args, optionsOrCb, cb) {
237
- const command = new DescribeBudgetsCommand(args);
240
+ };
241
+ Budgets.prototype.describeBudgets = function (args, optionsOrCb, cb) {
242
+ var command = new DescribeBudgetsCommand(args);
238
243
  if (typeof optionsOrCb === "function") {
239
244
  this.send(command, optionsOrCb);
240
245
  }
241
246
  else if (typeof cb === "function") {
242
247
  if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
244
249
  this.send(command, optionsOrCb || {}, cb);
245
250
  }
246
251
  else {
247
252
  return this.send(command, optionsOrCb);
248
253
  }
249
- }
250
- describeNotificationsForBudget(args, optionsOrCb, cb) {
251
- const command = new DescribeNotificationsForBudgetCommand(args);
254
+ };
255
+ Budgets.prototype.describeNotificationsForBudget = function (args, optionsOrCb, cb) {
256
+ var command = new DescribeNotificationsForBudgetCommand(args);
252
257
  if (typeof optionsOrCb === "function") {
253
258
  this.send(command, optionsOrCb);
254
259
  }
255
260
  else if (typeof cb === "function") {
256
261
  if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
258
263
  this.send(command, optionsOrCb || {}, cb);
259
264
  }
260
265
  else {
261
266
  return this.send(command, optionsOrCb);
262
267
  }
263
- }
264
- describeSubscribersForNotification(args, optionsOrCb, cb) {
265
- const command = new DescribeSubscribersForNotificationCommand(args);
268
+ };
269
+ Budgets.prototype.describeSubscribersForNotification = function (args, optionsOrCb, cb) {
270
+ var command = new DescribeSubscribersForNotificationCommand(args);
266
271
  if (typeof optionsOrCb === "function") {
267
272
  this.send(command, optionsOrCb);
268
273
  }
269
274
  else if (typeof cb === "function") {
270
275
  if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
272
277
  this.send(command, optionsOrCb || {}, cb);
273
278
  }
274
279
  else {
275
280
  return this.send(command, optionsOrCb);
276
281
  }
277
- }
278
- executeBudgetAction(args, optionsOrCb, cb) {
279
- const command = new ExecuteBudgetActionCommand(args);
282
+ };
283
+ Budgets.prototype.executeBudgetAction = function (args, optionsOrCb, cb) {
284
+ var command = new ExecuteBudgetActionCommand(args);
280
285
  if (typeof optionsOrCb === "function") {
281
286
  this.send(command, optionsOrCb);
282
287
  }
283
288
  else if (typeof cb === "function") {
284
289
  if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
286
291
  this.send(command, optionsOrCb || {}, cb);
287
292
  }
288
293
  else {
289
294
  return this.send(command, optionsOrCb);
290
295
  }
291
- }
292
- updateBudget(args, optionsOrCb, cb) {
293
- const command = new UpdateBudgetCommand(args);
296
+ };
297
+ Budgets.prototype.updateBudget = function (args, optionsOrCb, cb) {
298
+ var command = new UpdateBudgetCommand(args);
294
299
  if (typeof optionsOrCb === "function") {
295
300
  this.send(command, optionsOrCb);
296
301
  }
297
302
  else if (typeof cb === "function") {
298
303
  if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
300
305
  this.send(command, optionsOrCb || {}, cb);
301
306
  }
302
307
  else {
303
308
  return this.send(command, optionsOrCb);
304
309
  }
305
- }
306
- updateBudgetAction(args, optionsOrCb, cb) {
307
- const command = new UpdateBudgetActionCommand(args);
310
+ };
311
+ Budgets.prototype.updateBudgetAction = function (args, optionsOrCb, cb) {
312
+ var command = new UpdateBudgetActionCommand(args);
308
313
  if (typeof optionsOrCb === "function") {
309
314
  this.send(command, optionsOrCb);
310
315
  }
311
316
  else if (typeof cb === "function") {
312
317
  if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
314
319
  this.send(command, optionsOrCb || {}, cb);
315
320
  }
316
321
  else {
317
322
  return this.send(command, optionsOrCb);
318
323
  }
319
- }
320
- updateNotification(args, optionsOrCb, cb) {
321
- const command = new UpdateNotificationCommand(args);
324
+ };
325
+ Budgets.prototype.updateNotification = function (args, optionsOrCb, cb) {
326
+ var command = new UpdateNotificationCommand(args);
322
327
  if (typeof optionsOrCb === "function") {
323
328
  this.send(command, optionsOrCb);
324
329
  }
325
330
  else if (typeof cb === "function") {
326
331
  if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
328
333
  this.send(command, optionsOrCb || {}, cb);
329
334
  }
330
335
  else {
331
336
  return this.send(command, optionsOrCb);
332
337
  }
333
- }
334
- updateSubscriber(args, optionsOrCb, cb) {
335
- const command = new UpdateSubscriberCommand(args);
338
+ };
339
+ Budgets.prototype.updateSubscriber = function (args, optionsOrCb, cb) {
340
+ var command = new UpdateSubscriberCommand(args);
336
341
  if (typeof optionsOrCb === "function") {
337
342
  this.send(command, optionsOrCb);
338
343
  }
339
344
  else if (typeof cb === "function") {
340
345
  if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
342
347
  this.send(command, optionsOrCb || {}, cb);
343
348
  }
344
349
  else {
345
350
  return this.send(command, optionsOrCb);
346
351
  }
347
- }
348
- }
352
+ };
353
+ return Budgets;
354
+ }(BudgetsClient));
355
+ export { Budgets };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class BudgetsClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var BudgetsClient = (function (_super) {
13
+ __extends(BudgetsClient, _super);
14
+ function BudgetsClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ BudgetsClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return BudgetsClient;
38
+ }(__Client));
39
+ export { BudgetsClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateBudgetActionRequestFilterSensitiveLog, CreateBudgetActionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateBudgetActionCommand, serializeAws_json1_1CreateBudgetActionCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateBudgetActionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateBudgetActionCommand = (function (_super) {
7
+ __extends(CreateBudgetActionCommand, _super);
8
+ function CreateBudgetActionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateBudgetActionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BudgetsClient";
15
- const commandName = "CreateBudgetActionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BudgetsClient";
18
+ var commandName = "CreateBudgetActionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateBudgetActionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateBudgetActionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateBudgetActionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateBudgetActionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateBudgetActionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateBudgetActionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateBudgetActionCommand;
38
+ }($Command));
39
+ export { CreateBudgetActionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateBudgetRequestFilterSensitiveLog, CreateBudgetResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateBudgetCommand, serializeAws_json1_1CreateBudgetCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateBudgetCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateBudgetCommand = (function (_super) {
7
+ __extends(CreateBudgetCommand, _super);
8
+ function CreateBudgetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateBudgetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BudgetsClient";
15
- const commandName = "CreateBudgetCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BudgetsClient";
18
+ var commandName = "CreateBudgetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateBudgetRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateBudgetResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateBudgetCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateBudgetCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateBudgetCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateBudgetCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateBudgetCommand;
38
+ }($Command));
39
+ export { CreateBudgetCommand };