@aws-sdk/client-budgets 3.310.0 → 3.315.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.
- package/dist-cjs/protocols/Aws_json1_1.js +349 -941
- package/dist-es/protocols/Aws_json1_1.js +350 -942
- package/package.json +6 -6
|
@@ -6,230 +6,161 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const BudgetsServiceException_1 = require("../models/BudgetsServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_CreateBudgetCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateBudget",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("CreateBudget");
|
|
13
10
|
let body;
|
|
14
11
|
body = JSON.stringify(se_CreateBudgetRequest(input, context));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_CreateBudgetCommand = se_CreateBudgetCommand;
|
|
18
15
|
const se_CreateBudgetActionCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateBudgetAction",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("CreateBudgetAction");
|
|
23
17
|
let body;
|
|
24
18
|
body = JSON.stringify(se_CreateBudgetActionRequest(input, context));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_CreateBudgetActionCommand = se_CreateBudgetActionCommand;
|
|
28
22
|
const se_CreateNotificationCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateNotification",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("CreateNotification");
|
|
33
24
|
let body;
|
|
34
25
|
body = JSON.stringify(se_CreateNotificationRequest(input, context));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_CreateNotificationCommand = se_CreateNotificationCommand;
|
|
38
29
|
const se_CreateSubscriberCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateSubscriber",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateSubscriber");
|
|
43
31
|
let body;
|
|
44
32
|
body = JSON.stringify(se_CreateSubscriberRequest(input, context));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_CreateSubscriberCommand = se_CreateSubscriberCommand;
|
|
48
36
|
const se_DeleteBudgetCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudget",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DeleteBudget");
|
|
53
38
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DeleteBudgetCommand = se_DeleteBudgetCommand;
|
|
58
43
|
const se_DeleteBudgetActionCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudgetAction",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("DeleteBudgetAction");
|
|
63
45
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_DeleteBudgetActionCommand = se_DeleteBudgetActionCommand;
|
|
68
50
|
const se_DeleteNotificationCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteNotification",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("DeleteNotification");
|
|
73
52
|
let body;
|
|
74
53
|
body = JSON.stringify(se_DeleteNotificationRequest(input, context));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_DeleteNotificationCommand = se_DeleteNotificationCommand;
|
|
78
57
|
const se_DeleteSubscriberCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteSubscriber",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("DeleteSubscriber");
|
|
83
59
|
let body;
|
|
84
60
|
body = JSON.stringify(se_DeleteSubscriberRequest(input, context));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_DeleteSubscriberCommand = se_DeleteSubscriberCommand;
|
|
88
64
|
const se_DescribeBudgetCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudget",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("DescribeBudget");
|
|
93
66
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_DescribeBudgetCommand = se_DescribeBudgetCommand;
|
|
98
71
|
const se_DescribeBudgetActionCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetAction",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DescribeBudgetAction");
|
|
103
73
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_DescribeBudgetActionCommand = se_DescribeBudgetActionCommand;
|
|
108
78
|
const se_DescribeBudgetActionHistoriesCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionHistories",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("DescribeBudgetActionHistories");
|
|
113
80
|
let body;
|
|
114
81
|
body = JSON.stringify(se_DescribeBudgetActionHistoriesRequest(input, context));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_DescribeBudgetActionHistoriesCommand = se_DescribeBudgetActionHistoriesCommand;
|
|
118
85
|
const se_DescribeBudgetActionsForAccountCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.1",
|
|
121
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForAccount",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("DescribeBudgetActionsForAccount");
|
|
123
87
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_DescribeBudgetActionsForAccountCommand = se_DescribeBudgetActionsForAccountCommand;
|
|
128
92
|
const se_DescribeBudgetActionsForBudgetCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
131
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForBudget",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("DescribeBudgetActionsForBudget");
|
|
133
94
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_DescribeBudgetActionsForBudgetCommand = se_DescribeBudgetActionsForBudgetCommand;
|
|
138
99
|
const se_DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetNotificationsForAccount",
|
|
142
|
-
};
|
|
100
|
+
const headers = sharedHeaders("DescribeBudgetNotificationsForAccount");
|
|
143
101
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_DescribeBudgetNotificationsForAccountCommand = se_DescribeBudgetNotificationsForAccountCommand;
|
|
148
106
|
const se_DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.1",
|
|
151
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetPerformanceHistory",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("DescribeBudgetPerformanceHistory");
|
|
153
108
|
let body;
|
|
154
109
|
body = JSON.stringify(se_DescribeBudgetPerformanceHistoryRequest(input, context));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_DescribeBudgetPerformanceHistoryCommand = se_DescribeBudgetPerformanceHistoryCommand;
|
|
158
113
|
const se_DescribeBudgetsCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgets",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("DescribeBudgets");
|
|
163
115
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_DescribeBudgetsCommand = se_DescribeBudgetsCommand;
|
|
168
120
|
const se_DescribeNotificationsForBudgetCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeNotificationsForBudget",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("DescribeNotificationsForBudget");
|
|
173
122
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_DescribeNotificationsForBudgetCommand = se_DescribeNotificationsForBudgetCommand;
|
|
178
127
|
const se_DescribeSubscribersForNotificationCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeSubscribersForNotification",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("DescribeSubscribersForNotification");
|
|
183
129
|
let body;
|
|
184
130
|
body = JSON.stringify(se_DescribeSubscribersForNotificationRequest(input, context));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_DescribeSubscribersForNotificationCommand = se_DescribeSubscribersForNotificationCommand;
|
|
188
134
|
const se_ExecuteBudgetActionCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "AWSBudgetServiceGateway.ExecuteBudgetAction",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("ExecuteBudgetAction");
|
|
193
136
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_ExecuteBudgetActionCommand = se_ExecuteBudgetActionCommand;
|
|
198
141
|
const se_UpdateBudgetCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudget",
|
|
202
|
-
};
|
|
142
|
+
const headers = sharedHeaders("UpdateBudget");
|
|
203
143
|
let body;
|
|
204
144
|
body = JSON.stringify(se_UpdateBudgetRequest(input, context));
|
|
205
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
146
|
};
|
|
207
147
|
exports.se_UpdateBudgetCommand = se_UpdateBudgetCommand;
|
|
208
148
|
const se_UpdateBudgetActionCommand = async (input, context) => {
|
|
209
|
-
const headers =
|
|
210
|
-
"content-type": "application/x-amz-json-1.1",
|
|
211
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudgetAction",
|
|
212
|
-
};
|
|
149
|
+
const headers = sharedHeaders("UpdateBudgetAction");
|
|
213
150
|
let body;
|
|
214
151
|
body = JSON.stringify(se_UpdateBudgetActionRequest(input, context));
|
|
215
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
153
|
};
|
|
217
154
|
exports.se_UpdateBudgetActionCommand = se_UpdateBudgetActionCommand;
|
|
218
155
|
const se_UpdateNotificationCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-amz-json-1.1",
|
|
221
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateNotification",
|
|
222
|
-
};
|
|
156
|
+
const headers = sharedHeaders("UpdateNotification");
|
|
223
157
|
let body;
|
|
224
158
|
body = JSON.stringify(se_UpdateNotificationRequest(input, context));
|
|
225
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
160
|
};
|
|
227
161
|
exports.se_UpdateNotificationCommand = se_UpdateNotificationCommand;
|
|
228
162
|
const se_UpdateSubscriberCommand = async (input, context) => {
|
|
229
|
-
const headers =
|
|
230
|
-
"content-type": "application/x-amz-json-1.1",
|
|
231
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateSubscriber",
|
|
232
|
-
};
|
|
163
|
+
const headers = sharedHeaders("UpdateSubscriber");
|
|
233
164
|
let body;
|
|
234
165
|
body = JSON.stringify(se_UpdateSubscriberRequest(input, context));
|
|
235
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -241,12 +172,12 @@ const de_CreateBudgetCommand = async (output, context) => {
|
|
|
241
172
|
}
|
|
242
173
|
const data = await parseBody(output.body, context);
|
|
243
174
|
let contents = {};
|
|
244
|
-
contents =
|
|
175
|
+
contents = (0, smithy_client_1._json)(data);
|
|
245
176
|
const response = {
|
|
246
177
|
$metadata: deserializeMetadata(output),
|
|
247
178
|
...contents,
|
|
248
179
|
};
|
|
249
|
-
return
|
|
180
|
+
return response;
|
|
250
181
|
};
|
|
251
182
|
exports.de_CreateBudgetCommand = de_CreateBudgetCommand;
|
|
252
183
|
const de_CreateBudgetCommandError = async (output, context) => {
|
|
@@ -276,10 +207,9 @@ const de_CreateBudgetCommandError = async (output, context) => {
|
|
|
276
207
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
277
208
|
default:
|
|
278
209
|
const parsedBody = parsedOutput.body;
|
|
279
|
-
|
|
210
|
+
return throwDefaultError({
|
|
280
211
|
output,
|
|
281
212
|
parsedBody,
|
|
282
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
283
213
|
errorCode,
|
|
284
214
|
});
|
|
285
215
|
}
|
|
@@ -290,12 +220,12 @@ const de_CreateBudgetActionCommand = async (output, context) => {
|
|
|
290
220
|
}
|
|
291
221
|
const data = await parseBody(output.body, context);
|
|
292
222
|
let contents = {};
|
|
293
|
-
contents =
|
|
223
|
+
contents = (0, smithy_client_1._json)(data);
|
|
294
224
|
const response = {
|
|
295
225
|
$metadata: deserializeMetadata(output),
|
|
296
226
|
...contents,
|
|
297
227
|
};
|
|
298
|
-
return
|
|
228
|
+
return response;
|
|
299
229
|
};
|
|
300
230
|
exports.de_CreateBudgetActionCommand = de_CreateBudgetActionCommand;
|
|
301
231
|
const de_CreateBudgetActionCommandError = async (output, context) => {
|
|
@@ -328,10 +258,9 @@ const de_CreateBudgetActionCommandError = async (output, context) => {
|
|
|
328
258
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
329
259
|
default:
|
|
330
260
|
const parsedBody = parsedOutput.body;
|
|
331
|
-
|
|
261
|
+
return throwDefaultError({
|
|
332
262
|
output,
|
|
333
263
|
parsedBody,
|
|
334
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
335
264
|
errorCode,
|
|
336
265
|
});
|
|
337
266
|
}
|
|
@@ -342,12 +271,12 @@ const de_CreateNotificationCommand = async (output, context) => {
|
|
|
342
271
|
}
|
|
343
272
|
const data = await parseBody(output.body, context);
|
|
344
273
|
let contents = {};
|
|
345
|
-
contents =
|
|
274
|
+
contents = (0, smithy_client_1._json)(data);
|
|
346
275
|
const response = {
|
|
347
276
|
$metadata: deserializeMetadata(output),
|
|
348
277
|
...contents,
|
|
349
278
|
};
|
|
350
|
-
return
|
|
279
|
+
return response;
|
|
351
280
|
};
|
|
352
281
|
exports.de_CreateNotificationCommand = de_CreateNotificationCommand;
|
|
353
282
|
const de_CreateNotificationCommandError = async (output, context) => {
|
|
@@ -380,10 +309,9 @@ const de_CreateNotificationCommandError = async (output, context) => {
|
|
|
380
309
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
381
310
|
default:
|
|
382
311
|
const parsedBody = parsedOutput.body;
|
|
383
|
-
|
|
312
|
+
return throwDefaultError({
|
|
384
313
|
output,
|
|
385
314
|
parsedBody,
|
|
386
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
387
315
|
errorCode,
|
|
388
316
|
});
|
|
389
317
|
}
|
|
@@ -394,12 +322,12 @@ const de_CreateSubscriberCommand = async (output, context) => {
|
|
|
394
322
|
}
|
|
395
323
|
const data = await parseBody(output.body, context);
|
|
396
324
|
let contents = {};
|
|
397
|
-
contents =
|
|
325
|
+
contents = (0, smithy_client_1._json)(data);
|
|
398
326
|
const response = {
|
|
399
327
|
$metadata: deserializeMetadata(output),
|
|
400
328
|
...contents,
|
|
401
329
|
};
|
|
402
|
-
return
|
|
330
|
+
return response;
|
|
403
331
|
};
|
|
404
332
|
exports.de_CreateSubscriberCommand = de_CreateSubscriberCommand;
|
|
405
333
|
const de_CreateSubscriberCommandError = async (output, context) => {
|
|
@@ -432,10 +360,9 @@ const de_CreateSubscriberCommandError = async (output, context) => {
|
|
|
432
360
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
433
361
|
default:
|
|
434
362
|
const parsedBody = parsedOutput.body;
|
|
435
|
-
|
|
363
|
+
return throwDefaultError({
|
|
436
364
|
output,
|
|
437
365
|
parsedBody,
|
|
438
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
439
366
|
errorCode,
|
|
440
367
|
});
|
|
441
368
|
}
|
|
@@ -446,12 +373,12 @@ const de_DeleteBudgetCommand = async (output, context) => {
|
|
|
446
373
|
}
|
|
447
374
|
const data = await parseBody(output.body, context);
|
|
448
375
|
let contents = {};
|
|
449
|
-
contents =
|
|
376
|
+
contents = (0, smithy_client_1._json)(data);
|
|
450
377
|
const response = {
|
|
451
378
|
$metadata: deserializeMetadata(output),
|
|
452
379
|
...contents,
|
|
453
380
|
};
|
|
454
|
-
return
|
|
381
|
+
return response;
|
|
455
382
|
};
|
|
456
383
|
exports.de_DeleteBudgetCommand = de_DeleteBudgetCommand;
|
|
457
384
|
const de_DeleteBudgetCommandError = async (output, context) => {
|
|
@@ -478,10 +405,9 @@ const de_DeleteBudgetCommandError = async (output, context) => {
|
|
|
478
405
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
479
406
|
default:
|
|
480
407
|
const parsedBody = parsedOutput.body;
|
|
481
|
-
|
|
408
|
+
return throwDefaultError({
|
|
482
409
|
output,
|
|
483
410
|
parsedBody,
|
|
484
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
485
411
|
errorCode,
|
|
486
412
|
});
|
|
487
413
|
}
|
|
@@ -497,7 +423,7 @@ const de_DeleteBudgetActionCommand = async (output, context) => {
|
|
|
497
423
|
$metadata: deserializeMetadata(output),
|
|
498
424
|
...contents,
|
|
499
425
|
};
|
|
500
|
-
return
|
|
426
|
+
return response;
|
|
501
427
|
};
|
|
502
428
|
exports.de_DeleteBudgetActionCommand = de_DeleteBudgetActionCommand;
|
|
503
429
|
const de_DeleteBudgetActionCommandError = async (output, context) => {
|
|
@@ -527,10 +453,9 @@ const de_DeleteBudgetActionCommandError = async (output, context) => {
|
|
|
527
453
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
528
454
|
default:
|
|
529
455
|
const parsedBody = parsedOutput.body;
|
|
530
|
-
|
|
456
|
+
return throwDefaultError({
|
|
531
457
|
output,
|
|
532
458
|
parsedBody,
|
|
533
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
534
459
|
errorCode,
|
|
535
460
|
});
|
|
536
461
|
}
|
|
@@ -541,12 +466,12 @@ const de_DeleteNotificationCommand = async (output, context) => {
|
|
|
541
466
|
}
|
|
542
467
|
const data = await parseBody(output.body, context);
|
|
543
468
|
let contents = {};
|
|
544
|
-
contents =
|
|
469
|
+
contents = (0, smithy_client_1._json)(data);
|
|
545
470
|
const response = {
|
|
546
471
|
$metadata: deserializeMetadata(output),
|
|
547
472
|
...contents,
|
|
548
473
|
};
|
|
549
|
-
return
|
|
474
|
+
return response;
|
|
550
475
|
};
|
|
551
476
|
exports.de_DeleteNotificationCommand = de_DeleteNotificationCommand;
|
|
552
477
|
const de_DeleteNotificationCommandError = async (output, context) => {
|
|
@@ -573,10 +498,9 @@ const de_DeleteNotificationCommandError = async (output, context) => {
|
|
|
573
498
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
574
499
|
default:
|
|
575
500
|
const parsedBody = parsedOutput.body;
|
|
576
|
-
|
|
501
|
+
return throwDefaultError({
|
|
577
502
|
output,
|
|
578
503
|
parsedBody,
|
|
579
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
580
504
|
errorCode,
|
|
581
505
|
});
|
|
582
506
|
}
|
|
@@ -587,12 +511,12 @@ const de_DeleteSubscriberCommand = async (output, context) => {
|
|
|
587
511
|
}
|
|
588
512
|
const data = await parseBody(output.body, context);
|
|
589
513
|
let contents = {};
|
|
590
|
-
contents =
|
|
514
|
+
contents = (0, smithy_client_1._json)(data);
|
|
591
515
|
const response = {
|
|
592
516
|
$metadata: deserializeMetadata(output),
|
|
593
517
|
...contents,
|
|
594
518
|
};
|
|
595
|
-
return
|
|
519
|
+
return response;
|
|
596
520
|
};
|
|
597
521
|
exports.de_DeleteSubscriberCommand = de_DeleteSubscriberCommand;
|
|
598
522
|
const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
@@ -619,10 +543,9 @@ const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
|
619
543
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
620
544
|
default:
|
|
621
545
|
const parsedBody = parsedOutput.body;
|
|
622
|
-
|
|
546
|
+
return throwDefaultError({
|
|
623
547
|
output,
|
|
624
548
|
parsedBody,
|
|
625
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
626
549
|
errorCode,
|
|
627
550
|
});
|
|
628
551
|
}
|
|
@@ -638,7 +561,7 @@ const de_DescribeBudgetCommand = async (output, context) => {
|
|
|
638
561
|
$metadata: deserializeMetadata(output),
|
|
639
562
|
...contents,
|
|
640
563
|
};
|
|
641
|
-
return
|
|
564
|
+
return response;
|
|
642
565
|
};
|
|
643
566
|
exports.de_DescribeBudgetCommand = de_DescribeBudgetCommand;
|
|
644
567
|
const de_DescribeBudgetCommandError = async (output, context) => {
|
|
@@ -665,10 +588,9 @@ const de_DescribeBudgetCommandError = async (output, context) => {
|
|
|
665
588
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
666
589
|
default:
|
|
667
590
|
const parsedBody = parsedOutput.body;
|
|
668
|
-
|
|
591
|
+
return throwDefaultError({
|
|
669
592
|
output,
|
|
670
593
|
parsedBody,
|
|
671
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
672
594
|
errorCode,
|
|
673
595
|
});
|
|
674
596
|
}
|
|
@@ -684,7 +606,7 @@ const de_DescribeBudgetActionCommand = async (output, context) => {
|
|
|
684
606
|
$metadata: deserializeMetadata(output),
|
|
685
607
|
...contents,
|
|
686
608
|
};
|
|
687
|
-
return
|
|
609
|
+
return response;
|
|
688
610
|
};
|
|
689
611
|
exports.de_DescribeBudgetActionCommand = de_DescribeBudgetActionCommand;
|
|
690
612
|
const de_DescribeBudgetActionCommandError = async (output, context) => {
|
|
@@ -711,10 +633,9 @@ const de_DescribeBudgetActionCommandError = async (output, context) => {
|
|
|
711
633
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
712
634
|
default:
|
|
713
635
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
|
|
636
|
+
return throwDefaultError({
|
|
715
637
|
output,
|
|
716
638
|
parsedBody,
|
|
717
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
718
639
|
errorCode,
|
|
719
640
|
});
|
|
720
641
|
}
|
|
@@ -730,7 +651,7 @@ const de_DescribeBudgetActionHistoriesCommand = async (output, context) => {
|
|
|
730
651
|
$metadata: deserializeMetadata(output),
|
|
731
652
|
...contents,
|
|
732
653
|
};
|
|
733
|
-
return
|
|
654
|
+
return response;
|
|
734
655
|
};
|
|
735
656
|
exports.de_DescribeBudgetActionHistoriesCommand = de_DescribeBudgetActionHistoriesCommand;
|
|
736
657
|
const de_DescribeBudgetActionHistoriesCommandError = async (output, context) => {
|
|
@@ -760,10 +681,9 @@ const de_DescribeBudgetActionHistoriesCommandError = async (output, context) =>
|
|
|
760
681
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
761
682
|
default:
|
|
762
683
|
const parsedBody = parsedOutput.body;
|
|
763
|
-
|
|
684
|
+
return throwDefaultError({
|
|
764
685
|
output,
|
|
765
686
|
parsedBody,
|
|
766
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
767
687
|
errorCode,
|
|
768
688
|
});
|
|
769
689
|
}
|
|
@@ -779,7 +699,7 @@ const de_DescribeBudgetActionsForAccountCommand = async (output, context) => {
|
|
|
779
699
|
$metadata: deserializeMetadata(output),
|
|
780
700
|
...contents,
|
|
781
701
|
};
|
|
782
|
-
return
|
|
702
|
+
return response;
|
|
783
703
|
};
|
|
784
704
|
exports.de_DescribeBudgetActionsForAccountCommand = de_DescribeBudgetActionsForAccountCommand;
|
|
785
705
|
const de_DescribeBudgetActionsForAccountCommandError = async (output, context) => {
|
|
@@ -806,10 +726,9 @@ const de_DescribeBudgetActionsForAccountCommandError = async (output, context) =
|
|
|
806
726
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
807
727
|
default:
|
|
808
728
|
const parsedBody = parsedOutput.body;
|
|
809
|
-
|
|
729
|
+
return throwDefaultError({
|
|
810
730
|
output,
|
|
811
731
|
parsedBody,
|
|
812
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
813
732
|
errorCode,
|
|
814
733
|
});
|
|
815
734
|
}
|
|
@@ -825,7 +744,7 @@ const de_DescribeBudgetActionsForBudgetCommand = async (output, context) => {
|
|
|
825
744
|
$metadata: deserializeMetadata(output),
|
|
826
745
|
...contents,
|
|
827
746
|
};
|
|
828
|
-
return
|
|
747
|
+
return response;
|
|
829
748
|
};
|
|
830
749
|
exports.de_DescribeBudgetActionsForBudgetCommand = de_DescribeBudgetActionsForBudgetCommand;
|
|
831
750
|
const de_DescribeBudgetActionsForBudgetCommandError = async (output, context) => {
|
|
@@ -855,10 +774,9 @@ const de_DescribeBudgetActionsForBudgetCommandError = async (output, context) =>
|
|
|
855
774
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
856
775
|
default:
|
|
857
776
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
777
|
+
return throwDefaultError({
|
|
859
778
|
output,
|
|
860
779
|
parsedBody,
|
|
861
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
862
780
|
errorCode,
|
|
863
781
|
});
|
|
864
782
|
}
|
|
@@ -874,7 +792,7 @@ const de_DescribeBudgetNotificationsForAccountCommand = async (output, context)
|
|
|
874
792
|
$metadata: deserializeMetadata(output),
|
|
875
793
|
...contents,
|
|
876
794
|
};
|
|
877
|
-
return
|
|
795
|
+
return response;
|
|
878
796
|
};
|
|
879
797
|
exports.de_DescribeBudgetNotificationsForAccountCommand = de_DescribeBudgetNotificationsForAccountCommand;
|
|
880
798
|
const de_DescribeBudgetNotificationsForAccountCommandError = async (output, context) => {
|
|
@@ -907,10 +825,9 @@ const de_DescribeBudgetNotificationsForAccountCommandError = async (output, cont
|
|
|
907
825
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
908
826
|
default:
|
|
909
827
|
const parsedBody = parsedOutput.body;
|
|
910
|
-
|
|
828
|
+
return throwDefaultError({
|
|
911
829
|
output,
|
|
912
830
|
parsedBody,
|
|
913
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
914
831
|
errorCode,
|
|
915
832
|
});
|
|
916
833
|
}
|
|
@@ -926,7 +843,7 @@ const de_DescribeBudgetPerformanceHistoryCommand = async (output, context) => {
|
|
|
926
843
|
$metadata: deserializeMetadata(output),
|
|
927
844
|
...contents,
|
|
928
845
|
};
|
|
929
|
-
return
|
|
846
|
+
return response;
|
|
930
847
|
};
|
|
931
848
|
exports.de_DescribeBudgetPerformanceHistoryCommand = de_DescribeBudgetPerformanceHistoryCommand;
|
|
932
849
|
const de_DescribeBudgetPerformanceHistoryCommandError = async (output, context) => {
|
|
@@ -959,10 +876,9 @@ const de_DescribeBudgetPerformanceHistoryCommandError = async (output, context)
|
|
|
959
876
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
960
877
|
default:
|
|
961
878
|
const parsedBody = parsedOutput.body;
|
|
962
|
-
|
|
879
|
+
return throwDefaultError({
|
|
963
880
|
output,
|
|
964
881
|
parsedBody,
|
|
965
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
966
882
|
errorCode,
|
|
967
883
|
});
|
|
968
884
|
}
|
|
@@ -978,7 +894,7 @@ const de_DescribeBudgetsCommand = async (output, context) => {
|
|
|
978
894
|
$metadata: deserializeMetadata(output),
|
|
979
895
|
...contents,
|
|
980
896
|
};
|
|
981
|
-
return
|
|
897
|
+
return response;
|
|
982
898
|
};
|
|
983
899
|
exports.de_DescribeBudgetsCommand = de_DescribeBudgetsCommand;
|
|
984
900
|
const de_DescribeBudgetsCommandError = async (output, context) => {
|
|
@@ -1011,10 +927,9 @@ const de_DescribeBudgetsCommandError = async (output, context) => {
|
|
|
1011
927
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1012
928
|
default:
|
|
1013
929
|
const parsedBody = parsedOutput.body;
|
|
1014
|
-
|
|
930
|
+
return throwDefaultError({
|
|
1015
931
|
output,
|
|
1016
932
|
parsedBody,
|
|
1017
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1018
933
|
errorCode,
|
|
1019
934
|
});
|
|
1020
935
|
}
|
|
@@ -1030,7 +945,7 @@ const de_DescribeNotificationsForBudgetCommand = async (output, context) => {
|
|
|
1030
945
|
$metadata: deserializeMetadata(output),
|
|
1031
946
|
...contents,
|
|
1032
947
|
};
|
|
1033
|
-
return
|
|
948
|
+
return response;
|
|
1034
949
|
};
|
|
1035
950
|
exports.de_DescribeNotificationsForBudgetCommand = de_DescribeNotificationsForBudgetCommand;
|
|
1036
951
|
const de_DescribeNotificationsForBudgetCommandError = async (output, context) => {
|
|
@@ -1063,10 +978,9 @@ const de_DescribeNotificationsForBudgetCommandError = async (output, context) =>
|
|
|
1063
978
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1064
979
|
default:
|
|
1065
980
|
const parsedBody = parsedOutput.body;
|
|
1066
|
-
|
|
981
|
+
return throwDefaultError({
|
|
1067
982
|
output,
|
|
1068
983
|
parsedBody,
|
|
1069
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1070
984
|
errorCode,
|
|
1071
985
|
});
|
|
1072
986
|
}
|
|
@@ -1077,12 +991,12 @@ const de_DescribeSubscribersForNotificationCommand = async (output, context) =>
|
|
|
1077
991
|
}
|
|
1078
992
|
const data = await parseBody(output.body, context);
|
|
1079
993
|
let contents = {};
|
|
1080
|
-
contents =
|
|
994
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1081
995
|
const response = {
|
|
1082
996
|
$metadata: deserializeMetadata(output),
|
|
1083
997
|
...contents,
|
|
1084
998
|
};
|
|
1085
|
-
return
|
|
999
|
+
return response;
|
|
1086
1000
|
};
|
|
1087
1001
|
exports.de_DescribeSubscribersForNotificationCommand = de_DescribeSubscribersForNotificationCommand;
|
|
1088
1002
|
const de_DescribeSubscribersForNotificationCommandError = async (output, context) => {
|
|
@@ -1115,10 +1029,9 @@ const de_DescribeSubscribersForNotificationCommandError = async (output, context
|
|
|
1115
1029
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1116
1030
|
default:
|
|
1117
1031
|
const parsedBody = parsedOutput.body;
|
|
1118
|
-
|
|
1032
|
+
return throwDefaultError({
|
|
1119
1033
|
output,
|
|
1120
1034
|
parsedBody,
|
|
1121
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1122
1035
|
errorCode,
|
|
1123
1036
|
});
|
|
1124
1037
|
}
|
|
@@ -1129,12 +1042,12 @@ const de_ExecuteBudgetActionCommand = async (output, context) => {
|
|
|
1129
1042
|
}
|
|
1130
1043
|
const data = await parseBody(output.body, context);
|
|
1131
1044
|
let contents = {};
|
|
1132
|
-
contents =
|
|
1045
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1133
1046
|
const response = {
|
|
1134
1047
|
$metadata: deserializeMetadata(output),
|
|
1135
1048
|
...contents,
|
|
1136
1049
|
};
|
|
1137
|
-
return
|
|
1050
|
+
return response;
|
|
1138
1051
|
};
|
|
1139
1052
|
exports.de_ExecuteBudgetActionCommand = de_ExecuteBudgetActionCommand;
|
|
1140
1053
|
const de_ExecuteBudgetActionCommandError = async (output, context) => {
|
|
@@ -1164,10 +1077,9 @@ const de_ExecuteBudgetActionCommandError = async (output, context) => {
|
|
|
1164
1077
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1165
1078
|
default:
|
|
1166
1079
|
const parsedBody = parsedOutput.body;
|
|
1167
|
-
|
|
1080
|
+
return throwDefaultError({
|
|
1168
1081
|
output,
|
|
1169
1082
|
parsedBody,
|
|
1170
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1171
1083
|
errorCode,
|
|
1172
1084
|
});
|
|
1173
1085
|
}
|
|
@@ -1178,12 +1090,12 @@ const de_UpdateBudgetCommand = async (output, context) => {
|
|
|
1178
1090
|
}
|
|
1179
1091
|
const data = await parseBody(output.body, context);
|
|
1180
1092
|
let contents = {};
|
|
1181
|
-
contents =
|
|
1093
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1182
1094
|
const response = {
|
|
1183
1095
|
$metadata: deserializeMetadata(output),
|
|
1184
1096
|
...contents,
|
|
1185
1097
|
};
|
|
1186
|
-
return
|
|
1098
|
+
return response;
|
|
1187
1099
|
};
|
|
1188
1100
|
exports.de_UpdateBudgetCommand = de_UpdateBudgetCommand;
|
|
1189
1101
|
const de_UpdateBudgetCommandError = async (output, context) => {
|
|
@@ -1210,10 +1122,9 @@ const de_UpdateBudgetCommandError = async (output, context) => {
|
|
|
1210
1122
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1211
1123
|
default:
|
|
1212
1124
|
const parsedBody = parsedOutput.body;
|
|
1213
|
-
|
|
1125
|
+
return throwDefaultError({
|
|
1214
1126
|
output,
|
|
1215
1127
|
parsedBody,
|
|
1216
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1217
1128
|
errorCode,
|
|
1218
1129
|
});
|
|
1219
1130
|
}
|
|
@@ -1229,7 +1140,7 @@ const de_UpdateBudgetActionCommand = async (output, context) => {
|
|
|
1229
1140
|
$metadata: deserializeMetadata(output),
|
|
1230
1141
|
...contents,
|
|
1231
1142
|
};
|
|
1232
|
-
return
|
|
1143
|
+
return response;
|
|
1233
1144
|
};
|
|
1234
1145
|
exports.de_UpdateBudgetActionCommand = de_UpdateBudgetActionCommand;
|
|
1235
1146
|
const de_UpdateBudgetActionCommandError = async (output, context) => {
|
|
@@ -1259,10 +1170,9 @@ const de_UpdateBudgetActionCommandError = async (output, context) => {
|
|
|
1259
1170
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1260
1171
|
default:
|
|
1261
1172
|
const parsedBody = parsedOutput.body;
|
|
1262
|
-
|
|
1173
|
+
return throwDefaultError({
|
|
1263
1174
|
output,
|
|
1264
1175
|
parsedBody,
|
|
1265
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1266
1176
|
errorCode,
|
|
1267
1177
|
});
|
|
1268
1178
|
}
|
|
@@ -1273,12 +1183,12 @@ const de_UpdateNotificationCommand = async (output, context) => {
|
|
|
1273
1183
|
}
|
|
1274
1184
|
const data = await parseBody(output.body, context);
|
|
1275
1185
|
let contents = {};
|
|
1276
|
-
contents =
|
|
1186
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1277
1187
|
const response = {
|
|
1278
1188
|
$metadata: deserializeMetadata(output),
|
|
1279
1189
|
...contents,
|
|
1280
1190
|
};
|
|
1281
|
-
return
|
|
1191
|
+
return response;
|
|
1282
1192
|
};
|
|
1283
1193
|
exports.de_UpdateNotificationCommand = de_UpdateNotificationCommand;
|
|
1284
1194
|
const de_UpdateNotificationCommandError = async (output, context) => {
|
|
@@ -1308,10 +1218,9 @@ const de_UpdateNotificationCommandError = async (output, context) => {
|
|
|
1308
1218
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1309
1219
|
default:
|
|
1310
1220
|
const parsedBody = parsedOutput.body;
|
|
1311
|
-
|
|
1221
|
+
return throwDefaultError({
|
|
1312
1222
|
output,
|
|
1313
1223
|
parsedBody,
|
|
1314
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1315
1224
|
errorCode,
|
|
1316
1225
|
});
|
|
1317
1226
|
}
|
|
@@ -1322,12 +1231,12 @@ const de_UpdateSubscriberCommand = async (output, context) => {
|
|
|
1322
1231
|
}
|
|
1323
1232
|
const data = await parseBody(output.body, context);
|
|
1324
1233
|
let contents = {};
|
|
1325
|
-
contents =
|
|
1234
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1326
1235
|
const response = {
|
|
1327
1236
|
$metadata: deserializeMetadata(output),
|
|
1328
1237
|
...contents,
|
|
1329
1238
|
};
|
|
1330
|
-
return
|
|
1239
|
+
return response;
|
|
1331
1240
|
};
|
|
1332
1241
|
exports.de_UpdateSubscriberCommand = de_UpdateSubscriberCommand;
|
|
1333
1242
|
const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
@@ -1357,17 +1266,16 @@ const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
|
1357
1266
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1358
1267
|
default:
|
|
1359
1268
|
const parsedBody = parsedOutput.body;
|
|
1360
|
-
|
|
1269
|
+
return throwDefaultError({
|
|
1361
1270
|
output,
|
|
1362
1271
|
parsedBody,
|
|
1363
|
-
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1364
1272
|
errorCode,
|
|
1365
1273
|
});
|
|
1366
1274
|
}
|
|
1367
1275
|
};
|
|
1368
1276
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1369
1277
|
const body = parsedOutput.body;
|
|
1370
|
-
const deserialized =
|
|
1278
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1371
1279
|
const exception = new models_0_1.AccessDeniedException({
|
|
1372
1280
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1373
1281
|
...deserialized,
|
|
@@ -1376,7 +1284,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1376
1284
|
};
|
|
1377
1285
|
const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1378
1286
|
const body = parsedOutput.body;
|
|
1379
|
-
const deserialized =
|
|
1287
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1380
1288
|
const exception = new models_0_1.CreationLimitExceededException({
|
|
1381
1289
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1382
1290
|
...deserialized,
|
|
@@ -1385,7 +1293,7 @@ const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1385
1293
|
};
|
|
1386
1294
|
const de_DuplicateRecordExceptionRes = async (parsedOutput, context) => {
|
|
1387
1295
|
const body = parsedOutput.body;
|
|
1388
|
-
const deserialized =
|
|
1296
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1389
1297
|
const exception = new models_0_1.DuplicateRecordException({
|
|
1390
1298
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1391
1299
|
...deserialized,
|
|
@@ -1394,7 +1302,7 @@ const de_DuplicateRecordExceptionRes = async (parsedOutput, context) => {
|
|
|
1394
1302
|
};
|
|
1395
1303
|
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1396
1304
|
const body = parsedOutput.body;
|
|
1397
|
-
const deserialized =
|
|
1305
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1398
1306
|
const exception = new models_0_1.ExpiredNextTokenException({
|
|
1399
1307
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1400
1308
|
...deserialized,
|
|
@@ -1403,7 +1311,7 @@ const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1403
1311
|
};
|
|
1404
1312
|
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1405
1313
|
const body = parsedOutput.body;
|
|
1406
|
-
const deserialized =
|
|
1314
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1407
1315
|
const exception = new models_0_1.InternalErrorException({
|
|
1408
1316
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1409
1317
|
...deserialized,
|
|
@@ -1412,7 +1320,7 @@ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1412
1320
|
};
|
|
1413
1321
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1414
1322
|
const body = parsedOutput.body;
|
|
1415
|
-
const deserialized =
|
|
1323
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1416
1324
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
1417
1325
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1418
1326
|
...deserialized,
|
|
@@ -1421,7 +1329,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1421
1329
|
};
|
|
1422
1330
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1423
1331
|
const body = parsedOutput.body;
|
|
1424
|
-
const deserialized =
|
|
1332
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1425
1333
|
const exception = new models_0_1.InvalidParameterException({
|
|
1426
1334
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1427
1335
|
...deserialized,
|
|
@@ -1430,7 +1338,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1430
1338
|
};
|
|
1431
1339
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1432
1340
|
const body = parsedOutput.body;
|
|
1433
|
-
const deserialized =
|
|
1341
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1434
1342
|
const exception = new models_0_1.NotFoundException({
|
|
1435
1343
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1436
1344
|
...deserialized,
|
|
@@ -1439,7 +1347,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1439
1347
|
};
|
|
1440
1348
|
const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
|
|
1441
1349
|
const body = parsedOutput.body;
|
|
1442
|
-
const deserialized =
|
|
1350
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1443
1351
|
const exception = new models_0_1.ResourceLockedException({
|
|
1444
1352
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1445
1353
|
...deserialized,
|
|
@@ -1448,7 +1356,7 @@ const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
|
|
|
1448
1356
|
};
|
|
1449
1357
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1450
1358
|
const body = parsedOutput.body;
|
|
1451
|
-
const deserialized =
|
|
1359
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1452
1360
|
const exception = new models_0_1.ThrottlingException({
|
|
1453
1361
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1454
1362
|
...deserialized,
|
|
@@ -1456,283 +1364,126 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1456
1364
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1457
1365
|
};
|
|
1458
1366
|
const se_ActionThreshold = (input, context) => {
|
|
1459
|
-
return {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
};
|
|
1367
|
+
return (0, smithy_client_1.take)(input, {
|
|
1368
|
+
ActionThresholdType: [],
|
|
1369
|
+
ActionThresholdValue: smithy_client_1.serializeFloat,
|
|
1370
|
+
});
|
|
1463
1371
|
};
|
|
1464
1372
|
const se_AutoAdjustData = (input, context) => {
|
|
1465
|
-
return {
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
...(input.LastAutoAdjustTime != null && {
|
|
1471
|
-
LastAutoAdjustTime: Math.round(input.LastAutoAdjustTime.getTime() / 1000),
|
|
1472
|
-
}),
|
|
1473
|
-
};
|
|
1373
|
+
return (0, smithy_client_1.take)(input, {
|
|
1374
|
+
AutoAdjustType: [],
|
|
1375
|
+
HistoricalOptions: smithy_client_1._json,
|
|
1376
|
+
LastAutoAdjustTime: (_) => Math.round(_.getTime() / 1000),
|
|
1377
|
+
});
|
|
1474
1378
|
};
|
|
1475
1379
|
const se_Budget = (input, context) => {
|
|
1476
|
-
return {
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1490
|
-
};
|
|
1491
|
-
};
|
|
1492
|
-
const se_CalculatedSpend = (input, context) => {
|
|
1493
|
-
return {
|
|
1494
|
-
...(input.ActualSpend != null && { ActualSpend: se_Spend(input.ActualSpend, context) }),
|
|
1495
|
-
...(input.ForecastedSpend != null && { ForecastedSpend: se_Spend(input.ForecastedSpend, context) }),
|
|
1496
|
-
};
|
|
1497
|
-
};
|
|
1498
|
-
const se_CostFilters = (input, context) => {
|
|
1499
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1500
|
-
if (value === null) {
|
|
1501
|
-
return acc;
|
|
1502
|
-
}
|
|
1503
|
-
acc[key] = se_DimensionValues(value, context);
|
|
1504
|
-
return acc;
|
|
1505
|
-
}, {});
|
|
1506
|
-
};
|
|
1507
|
-
const se_CostTypes = (input, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
...(input.IncludeCredit != null && { IncludeCredit: input.IncludeCredit }),
|
|
1510
|
-
...(input.IncludeDiscount != null && { IncludeDiscount: input.IncludeDiscount }),
|
|
1511
|
-
...(input.IncludeOtherSubscription != null && { IncludeOtherSubscription: input.IncludeOtherSubscription }),
|
|
1512
|
-
...(input.IncludeRecurring != null && { IncludeRecurring: input.IncludeRecurring }),
|
|
1513
|
-
...(input.IncludeRefund != null && { IncludeRefund: input.IncludeRefund }),
|
|
1514
|
-
...(input.IncludeSubscription != null && { IncludeSubscription: input.IncludeSubscription }),
|
|
1515
|
-
...(input.IncludeSupport != null && { IncludeSupport: input.IncludeSupport }),
|
|
1516
|
-
...(input.IncludeTax != null && { IncludeTax: input.IncludeTax }),
|
|
1517
|
-
...(input.IncludeUpfront != null && { IncludeUpfront: input.IncludeUpfront }),
|
|
1518
|
-
...(input.UseAmortized != null && { UseAmortized: input.UseAmortized }),
|
|
1519
|
-
...(input.UseBlended != null && { UseBlended: input.UseBlended }),
|
|
1520
|
-
};
|
|
1380
|
+
return (0, smithy_client_1.take)(input, {
|
|
1381
|
+
AutoAdjustData: (_) => se_AutoAdjustData(_, context),
|
|
1382
|
+
BudgetLimit: smithy_client_1._json,
|
|
1383
|
+
BudgetName: [],
|
|
1384
|
+
BudgetType: [],
|
|
1385
|
+
CalculatedSpend: smithy_client_1._json,
|
|
1386
|
+
CostFilters: smithy_client_1._json,
|
|
1387
|
+
CostTypes: smithy_client_1._json,
|
|
1388
|
+
LastUpdatedTime: (_) => Math.round(_.getTime() / 1000),
|
|
1389
|
+
PlannedBudgetLimits: smithy_client_1._json,
|
|
1390
|
+
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1391
|
+
TimeUnit: [],
|
|
1392
|
+
});
|
|
1521
1393
|
};
|
|
1522
1394
|
const se_CreateBudgetActionRequest = (input, context) => {
|
|
1523
|
-
return {
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
};
|
|
1395
|
+
return (0, smithy_client_1.take)(input, {
|
|
1396
|
+
AccountId: [],
|
|
1397
|
+
ActionThreshold: (_) => se_ActionThreshold(_, context),
|
|
1398
|
+
ActionType: [],
|
|
1399
|
+
ApprovalModel: [],
|
|
1400
|
+
BudgetName: [],
|
|
1401
|
+
Definition: smithy_client_1._json,
|
|
1402
|
+
ExecutionRoleArn: [],
|
|
1403
|
+
NotificationType: [],
|
|
1404
|
+
Subscribers: smithy_client_1._json,
|
|
1405
|
+
});
|
|
1534
1406
|
};
|
|
1535
1407
|
const se_CreateBudgetRequest = (input, context) => {
|
|
1536
|
-
return {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
}),
|
|
1542
|
-
};
|
|
1408
|
+
return (0, smithy_client_1.take)(input, {
|
|
1409
|
+
AccountId: [],
|
|
1410
|
+
Budget: (_) => se_Budget(_, context),
|
|
1411
|
+
NotificationsWithSubscribers: (_) => se_NotificationWithSubscribersList(_, context),
|
|
1412
|
+
});
|
|
1543
1413
|
};
|
|
1544
1414
|
const se_CreateNotificationRequest = (input, context) => {
|
|
1545
|
-
return {
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
};
|
|
1415
|
+
return (0, smithy_client_1.take)(input, {
|
|
1416
|
+
AccountId: [],
|
|
1417
|
+
BudgetName: [],
|
|
1418
|
+
Notification: (_) => se_Notification(_, context),
|
|
1419
|
+
Subscribers: smithy_client_1._json,
|
|
1420
|
+
});
|
|
1551
1421
|
};
|
|
1552
1422
|
const se_CreateSubscriberRequest = (input, context) => {
|
|
1553
|
-
return {
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
};
|
|
1559
|
-
};
|
|
1560
|
-
const se_Definition = (input, context) => {
|
|
1561
|
-
return {
|
|
1562
|
-
...(input.IamActionDefinition != null && {
|
|
1563
|
-
IamActionDefinition: se_IamActionDefinition(input.IamActionDefinition, context),
|
|
1564
|
-
}),
|
|
1565
|
-
...(input.ScpActionDefinition != null && {
|
|
1566
|
-
ScpActionDefinition: se_ScpActionDefinition(input.ScpActionDefinition, context),
|
|
1567
|
-
}),
|
|
1568
|
-
...(input.SsmActionDefinition != null && {
|
|
1569
|
-
SsmActionDefinition: se_SsmActionDefinition(input.SsmActionDefinition, context),
|
|
1570
|
-
}),
|
|
1571
|
-
};
|
|
1572
|
-
};
|
|
1573
|
-
const se_DeleteBudgetActionRequest = (input, context) => {
|
|
1574
|
-
return {
|
|
1575
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1576
|
-
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1577
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1578
|
-
};
|
|
1579
|
-
};
|
|
1580
|
-
const se_DeleteBudgetRequest = (input, context) => {
|
|
1581
|
-
return {
|
|
1582
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1583
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1584
|
-
};
|
|
1423
|
+
return (0, smithy_client_1.take)(input, {
|
|
1424
|
+
AccountId: [],
|
|
1425
|
+
BudgetName: [],
|
|
1426
|
+
Notification: (_) => se_Notification(_, context),
|
|
1427
|
+
Subscriber: smithy_client_1._json,
|
|
1428
|
+
});
|
|
1585
1429
|
};
|
|
1586
1430
|
const se_DeleteNotificationRequest = (input, context) => {
|
|
1587
|
-
return {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
};
|
|
1431
|
+
return (0, smithy_client_1.take)(input, {
|
|
1432
|
+
AccountId: [],
|
|
1433
|
+
BudgetName: [],
|
|
1434
|
+
Notification: (_) => se_Notification(_, context),
|
|
1435
|
+
});
|
|
1592
1436
|
};
|
|
1593
1437
|
const se_DeleteSubscriberRequest = (input, context) => {
|
|
1594
|
-
return {
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
};
|
|
1438
|
+
return (0, smithy_client_1.take)(input, {
|
|
1439
|
+
AccountId: [],
|
|
1440
|
+
BudgetName: [],
|
|
1441
|
+
Notification: (_) => se_Notification(_, context),
|
|
1442
|
+
Subscriber: smithy_client_1._json,
|
|
1443
|
+
});
|
|
1600
1444
|
};
|
|
1601
1445
|
const se_DescribeBudgetActionHistoriesRequest = (input, context) => {
|
|
1602
|
-
return {
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
};
|
|
1610
|
-
};
|
|
1611
|
-
const se_DescribeBudgetActionRequest = (input, context) => {
|
|
1612
|
-
return {
|
|
1613
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1614
|
-
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1615
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1616
|
-
};
|
|
1617
|
-
};
|
|
1618
|
-
const se_DescribeBudgetActionsForAccountRequest = (input, context) => {
|
|
1619
|
-
return {
|
|
1620
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1621
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1622
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1623
|
-
};
|
|
1624
|
-
};
|
|
1625
|
-
const se_DescribeBudgetActionsForBudgetRequest = (input, context) => {
|
|
1626
|
-
return {
|
|
1627
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1628
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1629
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1630
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1631
|
-
};
|
|
1632
|
-
};
|
|
1633
|
-
const se_DescribeBudgetNotificationsForAccountRequest = (input, context) => {
|
|
1634
|
-
return {
|
|
1635
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1636
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1637
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1638
|
-
};
|
|
1639
|
-
};
|
|
1640
|
-
const se_DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
1641
|
-
return {
|
|
1642
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1643
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1644
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1645
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1646
|
-
...(input.TimePeriod != null && { TimePeriod: se_TimePeriod(input.TimePeriod, context) }),
|
|
1647
|
-
};
|
|
1648
|
-
};
|
|
1649
|
-
const se_DescribeBudgetRequest = (input, context) => {
|
|
1650
|
-
return {
|
|
1651
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1652
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1653
|
-
};
|
|
1654
|
-
};
|
|
1655
|
-
const se_DescribeBudgetsRequest = (input, context) => {
|
|
1656
|
-
return {
|
|
1657
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1658
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1659
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
const se_DescribeNotificationsForBudgetRequest = (input, context) => {
|
|
1663
|
-
return {
|
|
1664
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1665
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1666
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1667
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1668
|
-
};
|
|
1669
|
-
};
|
|
1670
|
-
const se_DescribeSubscribersForNotificationRequest = (input, context) => {
|
|
1671
|
-
return {
|
|
1672
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1673
|
-
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1674
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1675
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1676
|
-
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1677
|
-
};
|
|
1678
|
-
};
|
|
1679
|
-
const se_DimensionValues = (input, context) => {
|
|
1680
|
-
return input
|
|
1681
|
-
.filter((e) => e != null)
|
|
1682
|
-
.map((entry) => {
|
|
1683
|
-
return entry;
|
|
1446
|
+
return (0, smithy_client_1.take)(input, {
|
|
1447
|
+
AccountId: [],
|
|
1448
|
+
ActionId: [],
|
|
1449
|
+
BudgetName: [],
|
|
1450
|
+
MaxResults: [],
|
|
1451
|
+
NextToken: [],
|
|
1452
|
+
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1684
1453
|
});
|
|
1685
1454
|
};
|
|
1686
|
-
const
|
|
1687
|
-
return {
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
};
|
|
1694
|
-
const se_Groups = (input, context) => {
|
|
1695
|
-
return input
|
|
1696
|
-
.filter((e) => e != null)
|
|
1697
|
-
.map((entry) => {
|
|
1698
|
-
return entry;
|
|
1455
|
+
const se_DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
1456
|
+
return (0, smithy_client_1.take)(input, {
|
|
1457
|
+
AccountId: [],
|
|
1458
|
+
BudgetName: [],
|
|
1459
|
+
MaxResults: [],
|
|
1460
|
+
NextToken: [],
|
|
1461
|
+
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1699
1462
|
});
|
|
1700
1463
|
};
|
|
1701
|
-
const
|
|
1702
|
-
return {
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
return {
|
|
1709
|
-
...(input.Groups != null && { Groups: se_Groups(input.Groups, context) }),
|
|
1710
|
-
...(input.PolicyArn != null && { PolicyArn: input.PolicyArn }),
|
|
1711
|
-
...(input.Roles != null && { Roles: se_Roles(input.Roles, context) }),
|
|
1712
|
-
...(input.Users != null && { Users: se_Users(input.Users, context) }),
|
|
1713
|
-
};
|
|
1714
|
-
};
|
|
1715
|
-
const se_InstanceIds = (input, context) => {
|
|
1716
|
-
return input
|
|
1717
|
-
.filter((e) => e != null)
|
|
1718
|
-
.map((entry) => {
|
|
1719
|
-
return entry;
|
|
1464
|
+
const se_DescribeSubscribersForNotificationRequest = (input, context) => {
|
|
1465
|
+
return (0, smithy_client_1.take)(input, {
|
|
1466
|
+
AccountId: [],
|
|
1467
|
+
BudgetName: [],
|
|
1468
|
+
MaxResults: [],
|
|
1469
|
+
NextToken: [],
|
|
1470
|
+
Notification: (_) => se_Notification(_, context),
|
|
1720
1471
|
});
|
|
1721
1472
|
};
|
|
1722
1473
|
const se_Notification = (input, context) => {
|
|
1723
|
-
return {
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
};
|
|
1474
|
+
return (0, smithy_client_1.take)(input, {
|
|
1475
|
+
ComparisonOperator: [],
|
|
1476
|
+
NotificationState: [],
|
|
1477
|
+
NotificationType: [],
|
|
1478
|
+
Threshold: smithy_client_1.serializeFloat,
|
|
1479
|
+
ThresholdType: [],
|
|
1480
|
+
});
|
|
1730
1481
|
};
|
|
1731
1482
|
const se_NotificationWithSubscribers = (input, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
};
|
|
1483
|
+
return (0, smithy_client_1.take)(input, {
|
|
1484
|
+
Notification: (_) => se_Notification(_, context),
|
|
1485
|
+
Subscribers: smithy_client_1._json,
|
|
1486
|
+
});
|
|
1736
1487
|
};
|
|
1737
1488
|
const se_NotificationWithSubscribersList = (input, context) => {
|
|
1738
1489
|
return input
|
|
@@ -1741,608 +1492,258 @@ const se_NotificationWithSubscribersList = (input, context) => {
|
|
|
1741
1492
|
return se_NotificationWithSubscribers(entry, context);
|
|
1742
1493
|
});
|
|
1743
1494
|
};
|
|
1744
|
-
const se_PlannedBudgetLimits = (input, context) => {
|
|
1745
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1746
|
-
if (value === null) {
|
|
1747
|
-
return acc;
|
|
1748
|
-
}
|
|
1749
|
-
acc[key] = se_Spend(value, context);
|
|
1750
|
-
return acc;
|
|
1751
|
-
}, {});
|
|
1752
|
-
};
|
|
1753
|
-
const se_Roles = (input, context) => {
|
|
1754
|
-
return input
|
|
1755
|
-
.filter((e) => e != null)
|
|
1756
|
-
.map((entry) => {
|
|
1757
|
-
return entry;
|
|
1758
|
-
});
|
|
1759
|
-
};
|
|
1760
|
-
const se_ScpActionDefinition = (input, context) => {
|
|
1761
|
-
return {
|
|
1762
|
-
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
1763
|
-
...(input.TargetIds != null && { TargetIds: se_TargetIds(input.TargetIds, context) }),
|
|
1764
|
-
};
|
|
1765
|
-
};
|
|
1766
|
-
const se_Spend = (input, context) => {
|
|
1767
|
-
return {
|
|
1768
|
-
...(input.Amount != null && { Amount: input.Amount }),
|
|
1769
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
1770
|
-
};
|
|
1771
|
-
};
|
|
1772
|
-
const se_SsmActionDefinition = (input, context) => {
|
|
1773
|
-
return {
|
|
1774
|
-
...(input.ActionSubType != null && { ActionSubType: input.ActionSubType }),
|
|
1775
|
-
...(input.InstanceIds != null && { InstanceIds: se_InstanceIds(input.InstanceIds, context) }),
|
|
1776
|
-
...(input.Region != null && { Region: input.Region }),
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
const se_Subscriber = (input, context) => {
|
|
1780
|
-
return {
|
|
1781
|
-
...(input.Address != null && { Address: input.Address }),
|
|
1782
|
-
...(input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }),
|
|
1783
|
-
};
|
|
1784
|
-
};
|
|
1785
|
-
const se_Subscribers = (input, context) => {
|
|
1786
|
-
return input
|
|
1787
|
-
.filter((e) => e != null)
|
|
1788
|
-
.map((entry) => {
|
|
1789
|
-
return se_Subscriber(entry, context);
|
|
1790
|
-
});
|
|
1791
|
-
};
|
|
1792
|
-
const se_TargetIds = (input, context) => {
|
|
1793
|
-
return input
|
|
1794
|
-
.filter((e) => e != null)
|
|
1795
|
-
.map((entry) => {
|
|
1796
|
-
return entry;
|
|
1797
|
-
});
|
|
1798
|
-
};
|
|
1799
1495
|
const se_TimePeriod = (input, context) => {
|
|
1800
|
-
return {
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
};
|
|
1496
|
+
return (0, smithy_client_1.take)(input, {
|
|
1497
|
+
End: (_) => Math.round(_.getTime() / 1000),
|
|
1498
|
+
Start: (_) => Math.round(_.getTime() / 1000),
|
|
1499
|
+
});
|
|
1804
1500
|
};
|
|
1805
1501
|
const se_UpdateBudgetActionRequest = (input, context) => {
|
|
1806
|
-
return {
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
};
|
|
1502
|
+
return (0, smithy_client_1.take)(input, {
|
|
1503
|
+
AccountId: [],
|
|
1504
|
+
ActionId: [],
|
|
1505
|
+
ActionThreshold: (_) => se_ActionThreshold(_, context),
|
|
1506
|
+
ApprovalModel: [],
|
|
1507
|
+
BudgetName: [],
|
|
1508
|
+
Definition: smithy_client_1._json,
|
|
1509
|
+
ExecutionRoleArn: [],
|
|
1510
|
+
NotificationType: [],
|
|
1511
|
+
Subscribers: smithy_client_1._json,
|
|
1512
|
+
});
|
|
1817
1513
|
};
|
|
1818
1514
|
const se_UpdateBudgetRequest = (input, context) => {
|
|
1819
|
-
return {
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
};
|
|
1515
|
+
return (0, smithy_client_1.take)(input, {
|
|
1516
|
+
AccountId: [],
|
|
1517
|
+
NewBudget: (_) => se_Budget(_, context),
|
|
1518
|
+
});
|
|
1823
1519
|
};
|
|
1824
1520
|
const se_UpdateNotificationRequest = (input, context) => {
|
|
1825
|
-
return {
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
};
|
|
1521
|
+
return (0, smithy_client_1.take)(input, {
|
|
1522
|
+
AccountId: [],
|
|
1523
|
+
BudgetName: [],
|
|
1524
|
+
NewNotification: (_) => se_Notification(_, context),
|
|
1525
|
+
OldNotification: (_) => se_Notification(_, context),
|
|
1526
|
+
});
|
|
1831
1527
|
};
|
|
1832
1528
|
const se_UpdateSubscriberRequest = (input, context) => {
|
|
1833
|
-
return {
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
const se_Users = (input, context) => {
|
|
1842
|
-
return input
|
|
1843
|
-
.filter((e) => e != null)
|
|
1844
|
-
.map((entry) => {
|
|
1845
|
-
return entry;
|
|
1529
|
+
return (0, smithy_client_1.take)(input, {
|
|
1530
|
+
AccountId: [],
|
|
1531
|
+
BudgetName: [],
|
|
1532
|
+
NewSubscriber: smithy_client_1._json,
|
|
1533
|
+
Notification: (_) => se_Notification(_, context),
|
|
1534
|
+
OldSubscriber: smithy_client_1._json,
|
|
1846
1535
|
});
|
|
1847
1536
|
};
|
|
1848
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1849
|
-
return {
|
|
1850
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1851
|
-
};
|
|
1852
|
-
};
|
|
1853
1537
|
const de_Action = (output, context) => {
|
|
1854
|
-
return {
|
|
1855
|
-
ActionId:
|
|
1856
|
-
ActionThreshold:
|
|
1857
|
-
ActionType:
|
|
1858
|
-
ApprovalModel:
|
|
1859
|
-
BudgetName:
|
|
1860
|
-
Definition:
|
|
1861
|
-
ExecutionRoleArn:
|
|
1862
|
-
NotificationType:
|
|
1863
|
-
Status:
|
|
1864
|
-
Subscribers:
|
|
1865
|
-
};
|
|
1538
|
+
return (0, smithy_client_1.take)(output, {
|
|
1539
|
+
ActionId: smithy_client_1.expectString,
|
|
1540
|
+
ActionThreshold: (_) => de_ActionThreshold(_, context),
|
|
1541
|
+
ActionType: smithy_client_1.expectString,
|
|
1542
|
+
ApprovalModel: smithy_client_1.expectString,
|
|
1543
|
+
BudgetName: smithy_client_1.expectString,
|
|
1544
|
+
Definition: smithy_client_1._json,
|
|
1545
|
+
ExecutionRoleArn: smithy_client_1.expectString,
|
|
1546
|
+
NotificationType: smithy_client_1.expectString,
|
|
1547
|
+
Status: smithy_client_1.expectString,
|
|
1548
|
+
Subscribers: smithy_client_1._json,
|
|
1549
|
+
});
|
|
1866
1550
|
};
|
|
1867
1551
|
const de_ActionHistories = (output, context) => {
|
|
1868
1552
|
const retVal = (output || [])
|
|
1869
1553
|
.filter((e) => e != null)
|
|
1870
1554
|
.map((entry) => {
|
|
1871
|
-
if (entry === null) {
|
|
1872
|
-
return null;
|
|
1873
|
-
}
|
|
1874
1555
|
return de_ActionHistory(entry, context);
|
|
1875
1556
|
});
|
|
1876
1557
|
return retVal;
|
|
1877
1558
|
};
|
|
1878
1559
|
const de_ActionHistory = (output, context) => {
|
|
1879
|
-
return {
|
|
1880
|
-
ActionHistoryDetails:
|
|
1881
|
-
EventType:
|
|
1882
|
-
Status:
|
|
1883
|
-
Timestamp:
|
|
1884
|
-
};
|
|
1560
|
+
return (0, smithy_client_1.take)(output, {
|
|
1561
|
+
ActionHistoryDetails: (_) => de_ActionHistoryDetails(_, context),
|
|
1562
|
+
EventType: smithy_client_1.expectString,
|
|
1563
|
+
Status: smithy_client_1.expectString,
|
|
1564
|
+
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1565
|
+
});
|
|
1885
1566
|
};
|
|
1886
1567
|
const de_ActionHistoryDetails = (output, context) => {
|
|
1887
|
-
return {
|
|
1888
|
-
Action:
|
|
1889
|
-
Message:
|
|
1890
|
-
};
|
|
1568
|
+
return (0, smithy_client_1.take)(output, {
|
|
1569
|
+
Action: (_) => de_Action(_, context),
|
|
1570
|
+
Message: smithy_client_1.expectString,
|
|
1571
|
+
});
|
|
1891
1572
|
};
|
|
1892
1573
|
const de_Actions = (output, context) => {
|
|
1893
1574
|
const retVal = (output || [])
|
|
1894
1575
|
.filter((e) => e != null)
|
|
1895
1576
|
.map((entry) => {
|
|
1896
|
-
if (entry === null) {
|
|
1897
|
-
return null;
|
|
1898
|
-
}
|
|
1899
1577
|
return de_Action(entry, context);
|
|
1900
1578
|
});
|
|
1901
1579
|
return retVal;
|
|
1902
1580
|
};
|
|
1903
1581
|
const de_ActionThreshold = (output, context) => {
|
|
1904
|
-
return {
|
|
1905
|
-
ActionThresholdType:
|
|
1906
|
-
ActionThresholdValue:
|
|
1907
|
-
};
|
|
1582
|
+
return (0, smithy_client_1.take)(output, {
|
|
1583
|
+
ActionThresholdType: smithy_client_1.expectString,
|
|
1584
|
+
ActionThresholdValue: smithy_client_1.limitedParseDouble,
|
|
1585
|
+
});
|
|
1908
1586
|
};
|
|
1909
1587
|
const de_AutoAdjustData = (output, context) => {
|
|
1910
|
-
return {
|
|
1911
|
-
AutoAdjustType:
|
|
1912
|
-
HistoricalOptions:
|
|
1913
|
-
LastAutoAdjustTime:
|
|
1914
|
-
|
|
1915
|
-
: undefined,
|
|
1916
|
-
};
|
|
1588
|
+
return (0, smithy_client_1.take)(output, {
|
|
1589
|
+
AutoAdjustType: smithy_client_1.expectString,
|
|
1590
|
+
HistoricalOptions: smithy_client_1._json,
|
|
1591
|
+
LastAutoAdjustTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1592
|
+
});
|
|
1917
1593
|
};
|
|
1918
1594
|
const de_Budget = (output, context) => {
|
|
1919
|
-
return {
|
|
1920
|
-
AutoAdjustData:
|
|
1921
|
-
BudgetLimit:
|
|
1922
|
-
BudgetName:
|
|
1923
|
-
BudgetType:
|
|
1924
|
-
CalculatedSpend:
|
|
1925
|
-
CostFilters:
|
|
1926
|
-
CostTypes:
|
|
1927
|
-
LastUpdatedTime:
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
TimeUnit: (0, smithy_client_1.expectString)(output.TimeUnit),
|
|
1933
|
-
};
|
|
1595
|
+
return (0, smithy_client_1.take)(output, {
|
|
1596
|
+
AutoAdjustData: (_) => de_AutoAdjustData(_, context),
|
|
1597
|
+
BudgetLimit: smithy_client_1._json,
|
|
1598
|
+
BudgetName: smithy_client_1.expectString,
|
|
1599
|
+
BudgetType: smithy_client_1.expectString,
|
|
1600
|
+
CalculatedSpend: smithy_client_1._json,
|
|
1601
|
+
CostFilters: smithy_client_1._json,
|
|
1602
|
+
CostTypes: smithy_client_1._json,
|
|
1603
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1604
|
+
PlannedBudgetLimits: smithy_client_1._json,
|
|
1605
|
+
TimePeriod: (_) => de_TimePeriod(_, context),
|
|
1606
|
+
TimeUnit: smithy_client_1.expectString,
|
|
1607
|
+
});
|
|
1934
1608
|
};
|
|
1935
1609
|
const de_BudgetedAndActualAmounts = (output, context) => {
|
|
1936
|
-
return {
|
|
1937
|
-
ActualAmount:
|
|
1938
|
-
BudgetedAmount:
|
|
1939
|
-
TimePeriod:
|
|
1940
|
-
};
|
|
1610
|
+
return (0, smithy_client_1.take)(output, {
|
|
1611
|
+
ActualAmount: smithy_client_1._json,
|
|
1612
|
+
BudgetedAmount: smithy_client_1._json,
|
|
1613
|
+
TimePeriod: (_) => de_TimePeriod(_, context),
|
|
1614
|
+
});
|
|
1941
1615
|
};
|
|
1942
1616
|
const de_BudgetedAndActualAmountsList = (output, context) => {
|
|
1943
1617
|
const retVal = (output || [])
|
|
1944
1618
|
.filter((e) => e != null)
|
|
1945
1619
|
.map((entry) => {
|
|
1946
|
-
if (entry === null) {
|
|
1947
|
-
return null;
|
|
1948
|
-
}
|
|
1949
1620
|
return de_BudgetedAndActualAmounts(entry, context);
|
|
1950
1621
|
});
|
|
1951
1622
|
return retVal;
|
|
1952
1623
|
};
|
|
1953
1624
|
const de_BudgetNotificationsForAccount = (output, context) => {
|
|
1954
|
-
return {
|
|
1955
|
-
BudgetName:
|
|
1956
|
-
Notifications:
|
|
1957
|
-
};
|
|
1625
|
+
return (0, smithy_client_1.take)(output, {
|
|
1626
|
+
BudgetName: smithy_client_1.expectString,
|
|
1627
|
+
Notifications: (_) => de_Notifications(_, context),
|
|
1628
|
+
});
|
|
1958
1629
|
};
|
|
1959
1630
|
const de_BudgetNotificationsForAccountList = (output, context) => {
|
|
1960
1631
|
const retVal = (output || [])
|
|
1961
1632
|
.filter((e) => e != null)
|
|
1962
1633
|
.map((entry) => {
|
|
1963
|
-
if (entry === null) {
|
|
1964
|
-
return null;
|
|
1965
|
-
}
|
|
1966
1634
|
return de_BudgetNotificationsForAccount(entry, context);
|
|
1967
1635
|
});
|
|
1968
1636
|
return retVal;
|
|
1969
1637
|
};
|
|
1970
1638
|
const de_BudgetPerformanceHistory = (output, context) => {
|
|
1971
|
-
return {
|
|
1972
|
-
BudgetName:
|
|
1973
|
-
BudgetType:
|
|
1974
|
-
BudgetedAndActualAmountsList:
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
TimeUnit: (0, smithy_client_1.expectString)(output.TimeUnit),
|
|
1980
|
-
};
|
|
1639
|
+
return (0, smithy_client_1.take)(output, {
|
|
1640
|
+
BudgetName: smithy_client_1.expectString,
|
|
1641
|
+
BudgetType: smithy_client_1.expectString,
|
|
1642
|
+
BudgetedAndActualAmountsList: (_) => de_BudgetedAndActualAmountsList(_, context),
|
|
1643
|
+
CostFilters: smithy_client_1._json,
|
|
1644
|
+
CostTypes: smithy_client_1._json,
|
|
1645
|
+
TimeUnit: smithy_client_1.expectString,
|
|
1646
|
+
});
|
|
1981
1647
|
};
|
|
1982
1648
|
const de_Budgets = (output, context) => {
|
|
1983
1649
|
const retVal = (output || [])
|
|
1984
1650
|
.filter((e) => e != null)
|
|
1985
1651
|
.map((entry) => {
|
|
1986
|
-
if (entry === null) {
|
|
1987
|
-
return null;
|
|
1988
|
-
}
|
|
1989
1652
|
return de_Budget(entry, context);
|
|
1990
1653
|
});
|
|
1991
1654
|
return retVal;
|
|
1992
1655
|
};
|
|
1993
|
-
const de_CalculatedSpend = (output, context) => {
|
|
1994
|
-
return {
|
|
1995
|
-
ActualSpend: output.ActualSpend != null ? de_Spend(output.ActualSpend, context) : undefined,
|
|
1996
|
-
ForecastedSpend: output.ForecastedSpend != null ? de_Spend(output.ForecastedSpend, context) : undefined,
|
|
1997
|
-
};
|
|
1998
|
-
};
|
|
1999
|
-
const de_CostFilters = (output, context) => {
|
|
2000
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2001
|
-
if (value === null) {
|
|
2002
|
-
return acc;
|
|
2003
|
-
}
|
|
2004
|
-
acc[key] = de_DimensionValues(value, context);
|
|
2005
|
-
return acc;
|
|
2006
|
-
}, {});
|
|
2007
|
-
};
|
|
2008
|
-
const de_CostTypes = (output, context) => {
|
|
2009
|
-
return {
|
|
2010
|
-
IncludeCredit: (0, smithy_client_1.expectBoolean)(output.IncludeCredit),
|
|
2011
|
-
IncludeDiscount: (0, smithy_client_1.expectBoolean)(output.IncludeDiscount),
|
|
2012
|
-
IncludeOtherSubscription: (0, smithy_client_1.expectBoolean)(output.IncludeOtherSubscription),
|
|
2013
|
-
IncludeRecurring: (0, smithy_client_1.expectBoolean)(output.IncludeRecurring),
|
|
2014
|
-
IncludeRefund: (0, smithy_client_1.expectBoolean)(output.IncludeRefund),
|
|
2015
|
-
IncludeSubscription: (0, smithy_client_1.expectBoolean)(output.IncludeSubscription),
|
|
2016
|
-
IncludeSupport: (0, smithy_client_1.expectBoolean)(output.IncludeSupport),
|
|
2017
|
-
IncludeTax: (0, smithy_client_1.expectBoolean)(output.IncludeTax),
|
|
2018
|
-
IncludeUpfront: (0, smithy_client_1.expectBoolean)(output.IncludeUpfront),
|
|
2019
|
-
UseAmortized: (0, smithy_client_1.expectBoolean)(output.UseAmortized),
|
|
2020
|
-
UseBlended: (0, smithy_client_1.expectBoolean)(output.UseBlended),
|
|
2021
|
-
};
|
|
2022
|
-
};
|
|
2023
|
-
const de_CreateBudgetActionResponse = (output, context) => {
|
|
2024
|
-
return {
|
|
2025
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2026
|
-
ActionId: (0, smithy_client_1.expectString)(output.ActionId),
|
|
2027
|
-
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2028
|
-
};
|
|
2029
|
-
};
|
|
2030
|
-
const de_CreateBudgetResponse = (output, context) => {
|
|
2031
|
-
return {};
|
|
2032
|
-
};
|
|
2033
|
-
const de_CreateNotificationResponse = (output, context) => {
|
|
2034
|
-
return {};
|
|
2035
|
-
};
|
|
2036
|
-
const de_CreateSubscriberResponse = (output, context) => {
|
|
2037
|
-
return {};
|
|
2038
|
-
};
|
|
2039
|
-
const de_CreationLimitExceededException = (output, context) => {
|
|
2040
|
-
return {
|
|
2041
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2042
|
-
};
|
|
2043
|
-
};
|
|
2044
|
-
const de_Definition = (output, context) => {
|
|
2045
|
-
return {
|
|
2046
|
-
IamActionDefinition: output.IamActionDefinition != null ? de_IamActionDefinition(output.IamActionDefinition, context) : undefined,
|
|
2047
|
-
ScpActionDefinition: output.ScpActionDefinition != null ? de_ScpActionDefinition(output.ScpActionDefinition, context) : undefined,
|
|
2048
|
-
SsmActionDefinition: output.SsmActionDefinition != null ? de_SsmActionDefinition(output.SsmActionDefinition, context) : undefined,
|
|
2049
|
-
};
|
|
2050
|
-
};
|
|
2051
1656
|
const de_DeleteBudgetActionResponse = (output, context) => {
|
|
2052
|
-
return {
|
|
2053
|
-
AccountId:
|
|
2054
|
-
Action:
|
|
2055
|
-
BudgetName:
|
|
2056
|
-
};
|
|
2057
|
-
};
|
|
2058
|
-
const de_DeleteBudgetResponse = (output, context) => {
|
|
2059
|
-
return {};
|
|
2060
|
-
};
|
|
2061
|
-
const de_DeleteNotificationResponse = (output, context) => {
|
|
2062
|
-
return {};
|
|
2063
|
-
};
|
|
2064
|
-
const de_DeleteSubscriberResponse = (output, context) => {
|
|
2065
|
-
return {};
|
|
1657
|
+
return (0, smithy_client_1.take)(output, {
|
|
1658
|
+
AccountId: smithy_client_1.expectString,
|
|
1659
|
+
Action: (_) => de_Action(_, context),
|
|
1660
|
+
BudgetName: smithy_client_1.expectString,
|
|
1661
|
+
});
|
|
2066
1662
|
};
|
|
2067
1663
|
const de_DescribeBudgetActionHistoriesResponse = (output, context) => {
|
|
2068
|
-
return {
|
|
2069
|
-
ActionHistories:
|
|
2070
|
-
NextToken:
|
|
2071
|
-
};
|
|
1664
|
+
return (0, smithy_client_1.take)(output, {
|
|
1665
|
+
ActionHistories: (_) => de_ActionHistories(_, context),
|
|
1666
|
+
NextToken: smithy_client_1.expectString,
|
|
1667
|
+
});
|
|
2072
1668
|
};
|
|
2073
1669
|
const de_DescribeBudgetActionResponse = (output, context) => {
|
|
2074
|
-
return {
|
|
2075
|
-
AccountId:
|
|
2076
|
-
Action:
|
|
2077
|
-
BudgetName:
|
|
2078
|
-
};
|
|
1670
|
+
return (0, smithy_client_1.take)(output, {
|
|
1671
|
+
AccountId: smithy_client_1.expectString,
|
|
1672
|
+
Action: (_) => de_Action(_, context),
|
|
1673
|
+
BudgetName: smithy_client_1.expectString,
|
|
1674
|
+
});
|
|
2079
1675
|
};
|
|
2080
1676
|
const de_DescribeBudgetActionsForAccountResponse = (output, context) => {
|
|
2081
|
-
return {
|
|
2082
|
-
Actions:
|
|
2083
|
-
NextToken:
|
|
2084
|
-
};
|
|
1677
|
+
return (0, smithy_client_1.take)(output, {
|
|
1678
|
+
Actions: (_) => de_Actions(_, context),
|
|
1679
|
+
NextToken: smithy_client_1.expectString,
|
|
1680
|
+
});
|
|
2085
1681
|
};
|
|
2086
1682
|
const de_DescribeBudgetActionsForBudgetResponse = (output, context) => {
|
|
2087
|
-
return {
|
|
2088
|
-
Actions:
|
|
2089
|
-
NextToken:
|
|
2090
|
-
};
|
|
1683
|
+
return (0, smithy_client_1.take)(output, {
|
|
1684
|
+
Actions: (_) => de_Actions(_, context),
|
|
1685
|
+
NextToken: smithy_client_1.expectString,
|
|
1686
|
+
});
|
|
2091
1687
|
};
|
|
2092
1688
|
const de_DescribeBudgetNotificationsForAccountResponse = (output, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
BudgetNotificationsForAccount:
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2098
|
-
};
|
|
1689
|
+
return (0, smithy_client_1.take)(output, {
|
|
1690
|
+
BudgetNotificationsForAccount: (_) => de_BudgetNotificationsForAccountList(_, context),
|
|
1691
|
+
NextToken: smithy_client_1.expectString,
|
|
1692
|
+
});
|
|
2099
1693
|
};
|
|
2100
1694
|
const de_DescribeBudgetPerformanceHistoryResponse = (output, context) => {
|
|
2101
|
-
return {
|
|
2102
|
-
BudgetPerformanceHistory:
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2106
|
-
};
|
|
1695
|
+
return (0, smithy_client_1.take)(output, {
|
|
1696
|
+
BudgetPerformanceHistory: (_) => de_BudgetPerformanceHistory(_, context),
|
|
1697
|
+
NextToken: smithy_client_1.expectString,
|
|
1698
|
+
});
|
|
2107
1699
|
};
|
|
2108
1700
|
const de_DescribeBudgetResponse = (output, context) => {
|
|
2109
|
-
return {
|
|
2110
|
-
Budget:
|
|
2111
|
-
};
|
|
2112
|
-
};
|
|
2113
|
-
const de_DescribeBudgetsResponse = (output, context) => {
|
|
2114
|
-
return {
|
|
2115
|
-
Budgets: output.Budgets != null ? de_Budgets(output.Budgets, context) : undefined,
|
|
2116
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2117
|
-
};
|
|
2118
|
-
};
|
|
2119
|
-
const de_DescribeNotificationsForBudgetResponse = (output, context) => {
|
|
2120
|
-
return {
|
|
2121
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2122
|
-
Notifications: output.Notifications != null ? de_Notifications(output.Notifications, context) : undefined,
|
|
2123
|
-
};
|
|
2124
|
-
};
|
|
2125
|
-
const de_DescribeSubscribersForNotificationResponse = (output, context) => {
|
|
2126
|
-
return {
|
|
2127
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2128
|
-
Subscribers: output.Subscribers != null ? de_Subscribers(output.Subscribers, context) : undefined,
|
|
2129
|
-
};
|
|
2130
|
-
};
|
|
2131
|
-
const de_DimensionValues = (output, context) => {
|
|
2132
|
-
const retVal = (output || [])
|
|
2133
|
-
.filter((e) => e != null)
|
|
2134
|
-
.map((entry) => {
|
|
2135
|
-
if (entry === null) {
|
|
2136
|
-
return null;
|
|
2137
|
-
}
|
|
2138
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1701
|
+
return (0, smithy_client_1.take)(output, {
|
|
1702
|
+
Budget: (_) => de_Budget(_, context),
|
|
2139
1703
|
});
|
|
2140
|
-
return retVal;
|
|
2141
|
-
};
|
|
2142
|
-
const de_DuplicateRecordException = (output, context) => {
|
|
2143
|
-
return {
|
|
2144
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2145
|
-
};
|
|
2146
1704
|
};
|
|
2147
|
-
const
|
|
2148
|
-
return {
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
BudgetName: (0, smithy_client_1.expectString)(output.BudgetName),
|
|
2152
|
-
ExecutionType: (0, smithy_client_1.expectString)(output.ExecutionType),
|
|
2153
|
-
};
|
|
2154
|
-
};
|
|
2155
|
-
const de_ExpiredNextTokenException = (output, context) => {
|
|
2156
|
-
return {
|
|
2157
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
const de_Groups = (output, context) => {
|
|
2161
|
-
const retVal = (output || [])
|
|
2162
|
-
.filter((e) => e != null)
|
|
2163
|
-
.map((entry) => {
|
|
2164
|
-
if (entry === null) {
|
|
2165
|
-
return null;
|
|
2166
|
-
}
|
|
2167
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1705
|
+
const de_DescribeBudgetsResponse = (output, context) => {
|
|
1706
|
+
return (0, smithy_client_1.take)(output, {
|
|
1707
|
+
Budgets: (_) => de_Budgets(_, context),
|
|
1708
|
+
NextToken: smithy_client_1.expectString,
|
|
2168
1709
|
});
|
|
2169
|
-
return retVal;
|
|
2170
1710
|
};
|
|
2171
|
-
const
|
|
2172
|
-
return {
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
};
|
|
2176
|
-
};
|
|
2177
|
-
const de_IamActionDefinition = (output, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
|
|
2180
|
-
PolicyArn: (0, smithy_client_1.expectString)(output.PolicyArn),
|
|
2181
|
-
Roles: output.Roles != null ? de_Roles(output.Roles, context) : undefined,
|
|
2182
|
-
Users: output.Users != null ? de_Users(output.Users, context) : undefined,
|
|
2183
|
-
};
|
|
2184
|
-
};
|
|
2185
|
-
const de_InstanceIds = (output, context) => {
|
|
2186
|
-
const retVal = (output || [])
|
|
2187
|
-
.filter((e) => e != null)
|
|
2188
|
-
.map((entry) => {
|
|
2189
|
-
if (entry === null) {
|
|
2190
|
-
return null;
|
|
2191
|
-
}
|
|
2192
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1711
|
+
const de_DescribeNotificationsForBudgetResponse = (output, context) => {
|
|
1712
|
+
return (0, smithy_client_1.take)(output, {
|
|
1713
|
+
NextToken: smithy_client_1.expectString,
|
|
1714
|
+
Notifications: (_) => de_Notifications(_, context),
|
|
2193
1715
|
});
|
|
2194
|
-
return retVal;
|
|
2195
|
-
};
|
|
2196
|
-
const de_InternalErrorException = (output, context) => {
|
|
2197
|
-
return {
|
|
2198
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
2202
|
-
return {
|
|
2203
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
const de_InvalidParameterException = (output, context) => {
|
|
2207
|
-
return {
|
|
2208
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2209
|
-
};
|
|
2210
|
-
};
|
|
2211
|
-
const de_NotFoundException = (output, context) => {
|
|
2212
|
-
return {
|
|
2213
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2214
|
-
};
|
|
2215
1716
|
};
|
|
2216
1717
|
const de_Notification = (output, context) => {
|
|
2217
|
-
return {
|
|
2218
|
-
ComparisonOperator:
|
|
2219
|
-
NotificationState:
|
|
2220
|
-
NotificationType:
|
|
2221
|
-
Threshold:
|
|
2222
|
-
ThresholdType:
|
|
2223
|
-
};
|
|
1718
|
+
return (0, smithy_client_1.take)(output, {
|
|
1719
|
+
ComparisonOperator: smithy_client_1.expectString,
|
|
1720
|
+
NotificationState: smithy_client_1.expectString,
|
|
1721
|
+
NotificationType: smithy_client_1.expectString,
|
|
1722
|
+
Threshold: smithy_client_1.limitedParseDouble,
|
|
1723
|
+
ThresholdType: smithy_client_1.expectString,
|
|
1724
|
+
});
|
|
2224
1725
|
};
|
|
2225
1726
|
const de_Notifications = (output, context) => {
|
|
2226
1727
|
const retVal = (output || [])
|
|
2227
1728
|
.filter((e) => e != null)
|
|
2228
1729
|
.map((entry) => {
|
|
2229
|
-
if (entry === null) {
|
|
2230
|
-
return null;
|
|
2231
|
-
}
|
|
2232
1730
|
return de_Notification(entry, context);
|
|
2233
1731
|
});
|
|
2234
1732
|
return retVal;
|
|
2235
1733
|
};
|
|
2236
|
-
const de_PlannedBudgetLimits = (output, context) => {
|
|
2237
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2238
|
-
if (value === null) {
|
|
2239
|
-
return acc;
|
|
2240
|
-
}
|
|
2241
|
-
acc[key] = de_Spend(value, context);
|
|
2242
|
-
return acc;
|
|
2243
|
-
}, {});
|
|
2244
|
-
};
|
|
2245
|
-
const de_ResourceLockedException = (output, context) => {
|
|
2246
|
-
return {
|
|
2247
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2248
|
-
};
|
|
2249
|
-
};
|
|
2250
|
-
const de_Roles = (output, context) => {
|
|
2251
|
-
const retVal = (output || [])
|
|
2252
|
-
.filter((e) => e != null)
|
|
2253
|
-
.map((entry) => {
|
|
2254
|
-
if (entry === null) {
|
|
2255
|
-
return null;
|
|
2256
|
-
}
|
|
2257
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2258
|
-
});
|
|
2259
|
-
return retVal;
|
|
2260
|
-
};
|
|
2261
|
-
const de_ScpActionDefinition = (output, context) => {
|
|
2262
|
-
return {
|
|
2263
|
-
PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
|
|
2264
|
-
TargetIds: output.TargetIds != null ? de_TargetIds(output.TargetIds, context) : undefined,
|
|
2265
|
-
};
|
|
2266
|
-
};
|
|
2267
|
-
const de_Spend = (output, context) => {
|
|
2268
|
-
return {
|
|
2269
|
-
Amount: (0, smithy_client_1.expectString)(output.Amount),
|
|
2270
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
2271
|
-
};
|
|
2272
|
-
};
|
|
2273
|
-
const de_SsmActionDefinition = (output, context) => {
|
|
2274
|
-
return {
|
|
2275
|
-
ActionSubType: (0, smithy_client_1.expectString)(output.ActionSubType),
|
|
2276
|
-
InstanceIds: output.InstanceIds != null ? de_InstanceIds(output.InstanceIds, context) : undefined,
|
|
2277
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
2278
|
-
};
|
|
2279
|
-
};
|
|
2280
|
-
const de_Subscriber = (output, context) => {
|
|
2281
|
-
return {
|
|
2282
|
-
Address: (0, smithy_client_1.expectString)(output.Address),
|
|
2283
|
-
SubscriptionType: (0, smithy_client_1.expectString)(output.SubscriptionType),
|
|
2284
|
-
};
|
|
2285
|
-
};
|
|
2286
|
-
const de_Subscribers = (output, context) => {
|
|
2287
|
-
const retVal = (output || [])
|
|
2288
|
-
.filter((e) => e != null)
|
|
2289
|
-
.map((entry) => {
|
|
2290
|
-
if (entry === null) {
|
|
2291
|
-
return null;
|
|
2292
|
-
}
|
|
2293
|
-
return de_Subscriber(entry, context);
|
|
2294
|
-
});
|
|
2295
|
-
return retVal;
|
|
2296
|
-
};
|
|
2297
|
-
const de_TargetIds = (output, context) => {
|
|
2298
|
-
const retVal = (output || [])
|
|
2299
|
-
.filter((e) => e != null)
|
|
2300
|
-
.map((entry) => {
|
|
2301
|
-
if (entry === null) {
|
|
2302
|
-
return null;
|
|
2303
|
-
}
|
|
2304
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2305
|
-
});
|
|
2306
|
-
return retVal;
|
|
2307
|
-
};
|
|
2308
|
-
const de_ThrottlingException = (output, context) => {
|
|
2309
|
-
return {
|
|
2310
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2311
|
-
};
|
|
2312
|
-
};
|
|
2313
1734
|
const de_TimePeriod = (output, context) => {
|
|
2314
|
-
return {
|
|
2315
|
-
End:
|
|
2316
|
-
Start:
|
|
2317
|
-
};
|
|
1735
|
+
return (0, smithy_client_1.take)(output, {
|
|
1736
|
+
End: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1737
|
+
Start: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1738
|
+
});
|
|
2318
1739
|
};
|
|
2319
1740
|
const de_UpdateBudgetActionResponse = (output, context) => {
|
|
2320
|
-
return {
|
|
2321
|
-
AccountId:
|
|
2322
|
-
BudgetName:
|
|
2323
|
-
NewAction:
|
|
2324
|
-
OldAction:
|
|
2325
|
-
};
|
|
2326
|
-
};
|
|
2327
|
-
const de_UpdateBudgetResponse = (output, context) => {
|
|
2328
|
-
return {};
|
|
2329
|
-
};
|
|
2330
|
-
const de_UpdateNotificationResponse = (output, context) => {
|
|
2331
|
-
return {};
|
|
2332
|
-
};
|
|
2333
|
-
const de_UpdateSubscriberResponse = (output, context) => {
|
|
2334
|
-
return {};
|
|
2335
|
-
};
|
|
2336
|
-
const de_Users = (output, context) => {
|
|
2337
|
-
const retVal = (output || [])
|
|
2338
|
-
.filter((e) => e != null)
|
|
2339
|
-
.map((entry) => {
|
|
2340
|
-
if (entry === null) {
|
|
2341
|
-
return null;
|
|
2342
|
-
}
|
|
2343
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1741
|
+
return (0, smithy_client_1.take)(output, {
|
|
1742
|
+
AccountId: smithy_client_1.expectString,
|
|
1743
|
+
BudgetName: smithy_client_1.expectString,
|
|
1744
|
+
NewAction: (_) => de_Action(_, context),
|
|
1745
|
+
OldAction: (_) => de_Action(_, context),
|
|
2344
1746
|
});
|
|
2345
|
-
return retVal;
|
|
2346
1747
|
};
|
|
2347
1748
|
const deserializeMetadata = (output) => ({
|
|
2348
1749
|
httpStatusCode: output.statusCode,
|
|
@@ -2357,6 +1758,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2357
1758
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2358
1759
|
};
|
|
2359
1760
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1761
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(BudgetsServiceException_1.BudgetsServiceException);
|
|
2360
1762
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2361
1763
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2362
1764
|
const contents = {
|
|
@@ -2375,6 +1777,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2375
1777
|
}
|
|
2376
1778
|
return new protocol_http_1.HttpRequest(contents);
|
|
2377
1779
|
};
|
|
1780
|
+
function sharedHeaders(operation) {
|
|
1781
|
+
return {
|
|
1782
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1783
|
+
"x-amz-target": `AWSBudgetServiceGateway.${operation}`,
|
|
1784
|
+
};
|
|
1785
|
+
}
|
|
2378
1786
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2379
1787
|
if (encoded.length) {
|
|
2380
1788
|
return JSON.parse(encoded);
|