@aws-sdk/client-resource-groups-tagging-api 3.181.0 → 3.183.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/CHANGELOG.md +8 -0
- package/dist-es/ResourceGroupsTaggingAPI.js +34 -41
- package/dist-es/ResourceGroupsTaggingAPIClient.js +22 -28
- package/dist-es/commands/DescribeReportCreationCommand.js +21 -28
- package/dist-es/commands/GetComplianceSummaryCommand.js +21 -28
- package/dist-es/commands/GetResourcesCommand.js +21 -28
- package/dist-es/commands/GetTagKeysCommand.js +21 -28
- package/dist-es/commands/GetTagValuesCommand.js +21 -28
- package/dist-es/commands/StartReportCreationCommand.js +21 -28
- package/dist-es/commands/TagResourcesCommand.js +21 -28
- package/dist-es/commands/UntagResourcesCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ResourceGroupsTaggingAPIServiceException.js +5 -10
- package/dist-es/models/models_0.js +138 -95
- package/dist-es/pagination/GetComplianceSummaryPaginator.js +25 -68
- package/dist-es/pagination/GetResourcesPaginator.js +25 -68
- package/dist-es/pagination/GetTagKeysPaginator.js +24 -67
- package/dist-es/pagination/GetTagValuesPaginator.js +24 -67
- package/dist-es/protocols/Aws_json1_1.js +651 -823
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,774 +1,624 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ConcurrentModificationException, ConstraintViolationException, InternalServiceException, InvalidParameterException, PaginationTokenExpiredException, ThrottledException, } from "../models/models_0";
|
|
5
4
|
import { ResourceGroupsTaggingAPIServiceException as __BaseException } from "../models/ResourceGroupsTaggingAPIServiceException";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
});
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
output: output,
|
|
467
|
-
parsedBody: parsedBody,
|
|
468
|
-
exceptionCtor: __BaseException,
|
|
469
|
-
errorCode: errorCode,
|
|
470
|
-
});
|
|
471
|
-
_d.label = 13;
|
|
472
|
-
case 13: return [2];
|
|
473
|
-
}
|
|
474
|
-
});
|
|
475
|
-
}); };
|
|
476
|
-
export var deserializeAws_json1_1TagResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
477
|
-
var data, contents, response;
|
|
478
|
-
return __generator(this, function (_a) {
|
|
479
|
-
switch (_a.label) {
|
|
480
|
-
case 0:
|
|
481
|
-
if (output.statusCode >= 300) {
|
|
482
|
-
return [2, deserializeAws_json1_1TagResourcesCommandError(output, context)];
|
|
483
|
-
}
|
|
484
|
-
return [4, parseBody(output.body, context)];
|
|
485
|
-
case 1:
|
|
486
|
-
data = _a.sent();
|
|
487
|
-
contents = {};
|
|
488
|
-
contents = deserializeAws_json1_1TagResourcesOutput(data, context);
|
|
489
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
490
|
-
return [2, Promise.resolve(response)];
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
|
-
}); };
|
|
494
|
-
var deserializeAws_json1_1TagResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
495
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
496
|
-
var _c;
|
|
497
|
-
return __generator(this, function (_d) {
|
|
498
|
-
switch (_d.label) {
|
|
499
|
-
case 0:
|
|
500
|
-
_a = [__assign({}, output)];
|
|
501
|
-
_c = {};
|
|
502
|
-
return [4, parseErrorBody(output.body, context)];
|
|
503
|
-
case 1:
|
|
504
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
505
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
_b = errorCode;
|
|
507
|
-
switch (_b) {
|
|
508
|
-
case "InternalServiceException": return [3, 2];
|
|
509
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
510
|
-
case "InvalidParameterException": return [3, 4];
|
|
511
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
512
|
-
case "ThrottledException": return [3, 6];
|
|
513
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 6];
|
|
514
|
-
}
|
|
515
|
-
return [3, 8];
|
|
516
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
517
|
-
case 3: throw _d.sent();
|
|
518
|
-
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
519
|
-
case 5: throw _d.sent();
|
|
520
|
-
case 6: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
521
|
-
case 7: throw _d.sent();
|
|
522
|
-
case 8:
|
|
523
|
-
parsedBody = parsedOutput.body;
|
|
524
|
-
throwDefaultError({
|
|
525
|
-
output: output,
|
|
526
|
-
parsedBody: parsedBody,
|
|
527
|
-
exceptionCtor: __BaseException,
|
|
528
|
-
errorCode: errorCode,
|
|
529
|
-
});
|
|
530
|
-
_d.label = 9;
|
|
531
|
-
case 9: return [2];
|
|
532
|
-
}
|
|
533
|
-
});
|
|
534
|
-
}); };
|
|
535
|
-
export var deserializeAws_json1_1UntagResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
536
|
-
var data, contents, response;
|
|
537
|
-
return __generator(this, function (_a) {
|
|
538
|
-
switch (_a.label) {
|
|
539
|
-
case 0:
|
|
540
|
-
if (output.statusCode >= 300) {
|
|
541
|
-
return [2, deserializeAws_json1_1UntagResourcesCommandError(output, context)];
|
|
542
|
-
}
|
|
543
|
-
return [4, parseBody(output.body, context)];
|
|
544
|
-
case 1:
|
|
545
|
-
data = _a.sent();
|
|
546
|
-
contents = {};
|
|
547
|
-
contents = deserializeAws_json1_1UntagResourcesOutput(data, context);
|
|
548
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
549
|
-
return [2, Promise.resolve(response)];
|
|
550
|
-
}
|
|
551
|
-
});
|
|
552
|
-
}); };
|
|
553
|
-
var deserializeAws_json1_1UntagResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
554
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
555
|
-
var _c;
|
|
556
|
-
return __generator(this, function (_d) {
|
|
557
|
-
switch (_d.label) {
|
|
558
|
-
case 0:
|
|
559
|
-
_a = [__assign({}, output)];
|
|
560
|
-
_c = {};
|
|
561
|
-
return [4, parseErrorBody(output.body, context)];
|
|
562
|
-
case 1:
|
|
563
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
_b = errorCode;
|
|
566
|
-
switch (_b) {
|
|
567
|
-
case "InternalServiceException": return [3, 2];
|
|
568
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException": return [3, 2];
|
|
569
|
-
case "InvalidParameterException": return [3, 4];
|
|
570
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException": return [3, 4];
|
|
571
|
-
case "ThrottledException": return [3, 6];
|
|
572
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException": return [3, 6];
|
|
573
|
-
}
|
|
574
|
-
return [3, 8];
|
|
575
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
576
|
-
case 3: throw _d.sent();
|
|
577
|
-
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
578
|
-
case 5: throw _d.sent();
|
|
579
|
-
case 6: return [4, deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)];
|
|
580
|
-
case 7: throw _d.sent();
|
|
581
|
-
case 8:
|
|
582
|
-
parsedBody = parsedOutput.body;
|
|
583
|
-
throwDefaultError({
|
|
584
|
-
output: output,
|
|
585
|
-
parsedBody: parsedBody,
|
|
586
|
-
exceptionCtor: __BaseException,
|
|
587
|
-
errorCode: errorCode,
|
|
588
|
-
});
|
|
589
|
-
_d.label = 9;
|
|
590
|
-
case 9: return [2];
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
}); };
|
|
594
|
-
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
595
|
-
var body, deserialized, exception;
|
|
596
|
-
return __generator(this, function (_a) {
|
|
597
|
-
body = parsedOutput.body;
|
|
598
|
-
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
599
|
-
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
600
|
-
return [2, __decorateServiceException(exception, body)];
|
|
601
|
-
});
|
|
602
|
-
}); };
|
|
603
|
-
var deserializeAws_json1_1ConstraintViolationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
604
|
-
var body, deserialized, exception;
|
|
605
|
-
return __generator(this, function (_a) {
|
|
606
|
-
body = parsedOutput.body;
|
|
607
|
-
deserialized = deserializeAws_json1_1ConstraintViolationException(body, context);
|
|
608
|
-
exception = new ConstraintViolationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
609
|
-
return [2, __decorateServiceException(exception, body)];
|
|
610
|
-
});
|
|
611
|
-
}); };
|
|
612
|
-
var deserializeAws_json1_1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
613
|
-
var body, deserialized, exception;
|
|
614
|
-
return __generator(this, function (_a) {
|
|
615
|
-
body = parsedOutput.body;
|
|
616
|
-
deserialized = deserializeAws_json1_1InternalServiceException(body, context);
|
|
617
|
-
exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
618
|
-
return [2, __decorateServiceException(exception, body)];
|
|
619
|
-
});
|
|
620
|
-
}); };
|
|
621
|
-
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
622
|
-
var body, deserialized, exception;
|
|
623
|
-
return __generator(this, function (_a) {
|
|
624
|
-
body = parsedOutput.body;
|
|
625
|
-
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
626
|
-
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
627
|
-
return [2, __decorateServiceException(exception, body)];
|
|
628
|
-
});
|
|
629
|
-
}); };
|
|
630
|
-
var deserializeAws_json1_1PaginationTokenExpiredExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
631
|
-
var body, deserialized, exception;
|
|
632
|
-
return __generator(this, function (_a) {
|
|
633
|
-
body = parsedOutput.body;
|
|
634
|
-
deserialized = deserializeAws_json1_1PaginationTokenExpiredException(body, context);
|
|
635
|
-
exception = new PaginationTokenExpiredException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
636
|
-
return [2, __decorateServiceException(exception, body)];
|
|
637
|
-
});
|
|
638
|
-
}); };
|
|
639
|
-
var deserializeAws_json1_1ThrottledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
640
|
-
var body, deserialized, exception;
|
|
641
|
-
return __generator(this, function (_a) {
|
|
642
|
-
body = parsedOutput.body;
|
|
643
|
-
deserialized = deserializeAws_json1_1ThrottledException(body, context);
|
|
644
|
-
exception = new ThrottledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
645
|
-
return [2, __decorateServiceException(exception, body)];
|
|
646
|
-
});
|
|
647
|
-
}); };
|
|
648
|
-
var serializeAws_json1_1DescribeReportCreationInput = function (input, context) {
|
|
5
|
+
export const serializeAws_json1_1DescribeReportCreationCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.DescribeReportCreation",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1DescribeReportCreationInput(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_1GetComplianceSummaryCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.1",
|
|
17
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetComplianceSummary",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_1GetComplianceSummaryInput(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_1GetResourcesCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetResources",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1GetResourcesInput(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_1GetTagKeysCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.1",
|
|
35
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagKeys",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_1GetTagKeysInput(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_1GetTagValuesCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagValues",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_1GetTagValuesInput(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_1StartReportCreationCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.StartReportCreation",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1StartReportCreationInput(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_1TagResourcesCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.TagResources",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1TagResourcesInput(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_1UntagResourcesCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.UntagResources",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourcesInput(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const deserializeAws_json1_1DescribeReportCreationCommand = async (output, context) => {
|
|
78
|
+
if (output.statusCode >= 300) {
|
|
79
|
+
return deserializeAws_json1_1DescribeReportCreationCommandError(output, context);
|
|
80
|
+
}
|
|
81
|
+
const data = await parseBody(output.body, context);
|
|
82
|
+
let contents = {};
|
|
83
|
+
contents = deserializeAws_json1_1DescribeReportCreationOutput(data, context);
|
|
84
|
+
const response = {
|
|
85
|
+
$metadata: deserializeMetadata(output),
|
|
86
|
+
...contents,
|
|
87
|
+
};
|
|
88
|
+
return Promise.resolve(response);
|
|
89
|
+
};
|
|
90
|
+
const deserializeAws_json1_1DescribeReportCreationCommandError = async (output, context) => {
|
|
91
|
+
const parsedOutput = {
|
|
92
|
+
...output,
|
|
93
|
+
body: await parseErrorBody(output.body, context),
|
|
94
|
+
};
|
|
95
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
96
|
+
switch (errorCode) {
|
|
97
|
+
case "ConstraintViolationException":
|
|
98
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
99
|
+
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
100
|
+
case "InternalServiceException":
|
|
101
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
102
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
103
|
+
case "InvalidParameterException":
|
|
104
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
105
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
106
|
+
case "ThrottledException":
|
|
107
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
108
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
109
|
+
default:
|
|
110
|
+
const parsedBody = parsedOutput.body;
|
|
111
|
+
throwDefaultError({
|
|
112
|
+
output,
|
|
113
|
+
parsedBody,
|
|
114
|
+
exceptionCtor: __BaseException,
|
|
115
|
+
errorCode,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
export const deserializeAws_json1_1GetComplianceSummaryCommand = async (output, context) => {
|
|
120
|
+
if (output.statusCode >= 300) {
|
|
121
|
+
return deserializeAws_json1_1GetComplianceSummaryCommandError(output, context);
|
|
122
|
+
}
|
|
123
|
+
const data = await parseBody(output.body, context);
|
|
124
|
+
let contents = {};
|
|
125
|
+
contents = deserializeAws_json1_1GetComplianceSummaryOutput(data, context);
|
|
126
|
+
const response = {
|
|
127
|
+
$metadata: deserializeMetadata(output),
|
|
128
|
+
...contents,
|
|
129
|
+
};
|
|
130
|
+
return Promise.resolve(response);
|
|
131
|
+
};
|
|
132
|
+
const deserializeAws_json1_1GetComplianceSummaryCommandError = async (output, context) => {
|
|
133
|
+
const parsedOutput = {
|
|
134
|
+
...output,
|
|
135
|
+
body: await parseErrorBody(output.body, context),
|
|
136
|
+
};
|
|
137
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
138
|
+
switch (errorCode) {
|
|
139
|
+
case "ConstraintViolationException":
|
|
140
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
141
|
+
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
142
|
+
case "InternalServiceException":
|
|
143
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
144
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
145
|
+
case "InvalidParameterException":
|
|
146
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
147
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
148
|
+
case "ThrottledException":
|
|
149
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
150
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
151
|
+
default:
|
|
152
|
+
const parsedBody = parsedOutput.body;
|
|
153
|
+
throwDefaultError({
|
|
154
|
+
output,
|
|
155
|
+
parsedBody,
|
|
156
|
+
exceptionCtor: __BaseException,
|
|
157
|
+
errorCode,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
export const deserializeAws_json1_1GetResourcesCommand = async (output, context) => {
|
|
162
|
+
if (output.statusCode >= 300) {
|
|
163
|
+
return deserializeAws_json1_1GetResourcesCommandError(output, context);
|
|
164
|
+
}
|
|
165
|
+
const data = await parseBody(output.body, context);
|
|
166
|
+
let contents = {};
|
|
167
|
+
contents = deserializeAws_json1_1GetResourcesOutput(data, context);
|
|
168
|
+
const response = {
|
|
169
|
+
$metadata: deserializeMetadata(output),
|
|
170
|
+
...contents,
|
|
171
|
+
};
|
|
172
|
+
return Promise.resolve(response);
|
|
173
|
+
};
|
|
174
|
+
const deserializeAws_json1_1GetResourcesCommandError = async (output, context) => {
|
|
175
|
+
const parsedOutput = {
|
|
176
|
+
...output,
|
|
177
|
+
body: await parseErrorBody(output.body, context),
|
|
178
|
+
};
|
|
179
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
180
|
+
switch (errorCode) {
|
|
181
|
+
case "InternalServiceException":
|
|
182
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
183
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
184
|
+
case "InvalidParameterException":
|
|
185
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
186
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
187
|
+
case "PaginationTokenExpiredException":
|
|
188
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
189
|
+
throw await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context);
|
|
190
|
+
case "ThrottledException":
|
|
191
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
192
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
193
|
+
default:
|
|
194
|
+
const parsedBody = parsedOutput.body;
|
|
195
|
+
throwDefaultError({
|
|
196
|
+
output,
|
|
197
|
+
parsedBody,
|
|
198
|
+
exceptionCtor: __BaseException,
|
|
199
|
+
errorCode,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
export const deserializeAws_json1_1GetTagKeysCommand = async (output, context) => {
|
|
204
|
+
if (output.statusCode >= 300) {
|
|
205
|
+
return deserializeAws_json1_1GetTagKeysCommandError(output, context);
|
|
206
|
+
}
|
|
207
|
+
const data = await parseBody(output.body, context);
|
|
208
|
+
let contents = {};
|
|
209
|
+
contents = deserializeAws_json1_1GetTagKeysOutput(data, context);
|
|
210
|
+
const response = {
|
|
211
|
+
$metadata: deserializeMetadata(output),
|
|
212
|
+
...contents,
|
|
213
|
+
};
|
|
214
|
+
return Promise.resolve(response);
|
|
215
|
+
};
|
|
216
|
+
const deserializeAws_json1_1GetTagKeysCommandError = async (output, context) => {
|
|
217
|
+
const parsedOutput = {
|
|
218
|
+
...output,
|
|
219
|
+
body: await parseErrorBody(output.body, context),
|
|
220
|
+
};
|
|
221
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
222
|
+
switch (errorCode) {
|
|
223
|
+
case "InternalServiceException":
|
|
224
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
225
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
226
|
+
case "InvalidParameterException":
|
|
227
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
228
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
229
|
+
case "PaginationTokenExpiredException":
|
|
230
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
231
|
+
throw await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context);
|
|
232
|
+
case "ThrottledException":
|
|
233
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
234
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
235
|
+
default:
|
|
236
|
+
const parsedBody = parsedOutput.body;
|
|
237
|
+
throwDefaultError({
|
|
238
|
+
output,
|
|
239
|
+
parsedBody,
|
|
240
|
+
exceptionCtor: __BaseException,
|
|
241
|
+
errorCode,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
export const deserializeAws_json1_1GetTagValuesCommand = async (output, context) => {
|
|
246
|
+
if (output.statusCode >= 300) {
|
|
247
|
+
return deserializeAws_json1_1GetTagValuesCommandError(output, context);
|
|
248
|
+
}
|
|
249
|
+
const data = await parseBody(output.body, context);
|
|
250
|
+
let contents = {};
|
|
251
|
+
contents = deserializeAws_json1_1GetTagValuesOutput(data, context);
|
|
252
|
+
const response = {
|
|
253
|
+
$metadata: deserializeMetadata(output),
|
|
254
|
+
...contents,
|
|
255
|
+
};
|
|
256
|
+
return Promise.resolve(response);
|
|
257
|
+
};
|
|
258
|
+
const deserializeAws_json1_1GetTagValuesCommandError = async (output, context) => {
|
|
259
|
+
const parsedOutput = {
|
|
260
|
+
...output,
|
|
261
|
+
body: await parseErrorBody(output.body, context),
|
|
262
|
+
};
|
|
263
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
264
|
+
switch (errorCode) {
|
|
265
|
+
case "InternalServiceException":
|
|
266
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
267
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
268
|
+
case "InvalidParameterException":
|
|
269
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
270
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
271
|
+
case "PaginationTokenExpiredException":
|
|
272
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
273
|
+
throw await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context);
|
|
274
|
+
case "ThrottledException":
|
|
275
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
276
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
277
|
+
default:
|
|
278
|
+
const parsedBody = parsedOutput.body;
|
|
279
|
+
throwDefaultError({
|
|
280
|
+
output,
|
|
281
|
+
parsedBody,
|
|
282
|
+
exceptionCtor: __BaseException,
|
|
283
|
+
errorCode,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
export const deserializeAws_json1_1StartReportCreationCommand = async (output, context) => {
|
|
288
|
+
if (output.statusCode >= 300) {
|
|
289
|
+
return deserializeAws_json1_1StartReportCreationCommandError(output, context);
|
|
290
|
+
}
|
|
291
|
+
const data = await parseBody(output.body, context);
|
|
292
|
+
let contents = {};
|
|
293
|
+
contents = deserializeAws_json1_1StartReportCreationOutput(data, context);
|
|
294
|
+
const response = {
|
|
295
|
+
$metadata: deserializeMetadata(output),
|
|
296
|
+
...contents,
|
|
297
|
+
};
|
|
298
|
+
return Promise.resolve(response);
|
|
299
|
+
};
|
|
300
|
+
const deserializeAws_json1_1StartReportCreationCommandError = async (output, context) => {
|
|
301
|
+
const parsedOutput = {
|
|
302
|
+
...output,
|
|
303
|
+
body: await parseErrorBody(output.body, context),
|
|
304
|
+
};
|
|
305
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
+
switch (errorCode) {
|
|
307
|
+
case "ConcurrentModificationException":
|
|
308
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
309
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
310
|
+
case "ConstraintViolationException":
|
|
311
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
312
|
+
throw await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context);
|
|
313
|
+
case "InternalServiceException":
|
|
314
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
315
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
316
|
+
case "InvalidParameterException":
|
|
317
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
318
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
319
|
+
case "ThrottledException":
|
|
320
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
321
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
322
|
+
default:
|
|
323
|
+
const parsedBody = parsedOutput.body;
|
|
324
|
+
throwDefaultError({
|
|
325
|
+
output,
|
|
326
|
+
parsedBody,
|
|
327
|
+
exceptionCtor: __BaseException,
|
|
328
|
+
errorCode,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
export const deserializeAws_json1_1TagResourcesCommand = async (output, context) => {
|
|
333
|
+
if (output.statusCode >= 300) {
|
|
334
|
+
return deserializeAws_json1_1TagResourcesCommandError(output, context);
|
|
335
|
+
}
|
|
336
|
+
const data = await parseBody(output.body, context);
|
|
337
|
+
let contents = {};
|
|
338
|
+
contents = deserializeAws_json1_1TagResourcesOutput(data, context);
|
|
339
|
+
const response = {
|
|
340
|
+
$metadata: deserializeMetadata(output),
|
|
341
|
+
...contents,
|
|
342
|
+
};
|
|
343
|
+
return Promise.resolve(response);
|
|
344
|
+
};
|
|
345
|
+
const deserializeAws_json1_1TagResourcesCommandError = async (output, context) => {
|
|
346
|
+
const parsedOutput = {
|
|
347
|
+
...output,
|
|
348
|
+
body: await parseErrorBody(output.body, context),
|
|
349
|
+
};
|
|
350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
+
switch (errorCode) {
|
|
352
|
+
case "InternalServiceException":
|
|
353
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
354
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
355
|
+
case "InvalidParameterException":
|
|
356
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
357
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
358
|
+
case "ThrottledException":
|
|
359
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
360
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
361
|
+
default:
|
|
362
|
+
const parsedBody = parsedOutput.body;
|
|
363
|
+
throwDefaultError({
|
|
364
|
+
output,
|
|
365
|
+
parsedBody,
|
|
366
|
+
exceptionCtor: __BaseException,
|
|
367
|
+
errorCode,
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
export const deserializeAws_json1_1UntagResourcesCommand = async (output, context) => {
|
|
372
|
+
if (output.statusCode >= 300) {
|
|
373
|
+
return deserializeAws_json1_1UntagResourcesCommandError(output, context);
|
|
374
|
+
}
|
|
375
|
+
const data = await parseBody(output.body, context);
|
|
376
|
+
let contents = {};
|
|
377
|
+
contents = deserializeAws_json1_1UntagResourcesOutput(data, context);
|
|
378
|
+
const response = {
|
|
379
|
+
$metadata: deserializeMetadata(output),
|
|
380
|
+
...contents,
|
|
381
|
+
};
|
|
382
|
+
return Promise.resolve(response);
|
|
383
|
+
};
|
|
384
|
+
const deserializeAws_json1_1UntagResourcesCommandError = async (output, context) => {
|
|
385
|
+
const parsedOutput = {
|
|
386
|
+
...output,
|
|
387
|
+
body: await parseErrorBody(output.body, context),
|
|
388
|
+
};
|
|
389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
+
switch (errorCode) {
|
|
391
|
+
case "InternalServiceException":
|
|
392
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
393
|
+
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
394
|
+
case "InvalidParameterException":
|
|
395
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
396
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
397
|
+
case "ThrottledException":
|
|
398
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
399
|
+
throw await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context);
|
|
400
|
+
default:
|
|
401
|
+
const parsedBody = parsedOutput.body;
|
|
402
|
+
throwDefaultError({
|
|
403
|
+
output,
|
|
404
|
+
parsedBody,
|
|
405
|
+
exceptionCtor: __BaseException,
|
|
406
|
+
errorCode,
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
411
|
+
const body = parsedOutput.body;
|
|
412
|
+
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
413
|
+
const exception = new ConcurrentModificationException({
|
|
414
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
415
|
+
...deserialized,
|
|
416
|
+
});
|
|
417
|
+
return __decorateServiceException(exception, body);
|
|
418
|
+
};
|
|
419
|
+
const deserializeAws_json1_1ConstraintViolationExceptionResponse = async (parsedOutput, context) => {
|
|
420
|
+
const body = parsedOutput.body;
|
|
421
|
+
const deserialized = deserializeAws_json1_1ConstraintViolationException(body, context);
|
|
422
|
+
const exception = new ConstraintViolationException({
|
|
423
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
424
|
+
...deserialized,
|
|
425
|
+
});
|
|
426
|
+
return __decorateServiceException(exception, body);
|
|
427
|
+
};
|
|
428
|
+
const deserializeAws_json1_1InternalServiceExceptionResponse = async (parsedOutput, context) => {
|
|
429
|
+
const body = parsedOutput.body;
|
|
430
|
+
const deserialized = deserializeAws_json1_1InternalServiceException(body, context);
|
|
431
|
+
const exception = new InternalServiceException({
|
|
432
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
433
|
+
...deserialized,
|
|
434
|
+
});
|
|
435
|
+
return __decorateServiceException(exception, body);
|
|
436
|
+
};
|
|
437
|
+
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
438
|
+
const body = parsedOutput.body;
|
|
439
|
+
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
440
|
+
const exception = new InvalidParameterException({
|
|
441
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
442
|
+
...deserialized,
|
|
443
|
+
});
|
|
444
|
+
return __decorateServiceException(exception, body);
|
|
445
|
+
};
|
|
446
|
+
const deserializeAws_json1_1PaginationTokenExpiredExceptionResponse = async (parsedOutput, context) => {
|
|
447
|
+
const body = parsedOutput.body;
|
|
448
|
+
const deserialized = deserializeAws_json1_1PaginationTokenExpiredException(body, context);
|
|
449
|
+
const exception = new PaginationTokenExpiredException({
|
|
450
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
451
|
+
...deserialized,
|
|
452
|
+
});
|
|
453
|
+
return __decorateServiceException(exception, body);
|
|
454
|
+
};
|
|
455
|
+
const deserializeAws_json1_1ThrottledExceptionResponse = async (parsedOutput, context) => {
|
|
456
|
+
const body = parsedOutput.body;
|
|
457
|
+
const deserialized = deserializeAws_json1_1ThrottledException(body, context);
|
|
458
|
+
const exception = new ThrottledException({
|
|
459
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
460
|
+
...deserialized,
|
|
461
|
+
});
|
|
462
|
+
return __decorateServiceException(exception, body);
|
|
463
|
+
};
|
|
464
|
+
const serializeAws_json1_1DescribeReportCreationInput = (input, context) => {
|
|
649
465
|
return {};
|
|
650
466
|
};
|
|
651
|
-
|
|
652
|
-
return
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
|
|
467
|
+
const serializeAws_json1_1GetComplianceSummaryInput = (input, context) => {
|
|
468
|
+
return {
|
|
469
|
+
...(input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupBy(input.GroupBy, context) }),
|
|
470
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
471
|
+
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
472
|
+
...(input.RegionFilters != null && {
|
|
473
|
+
RegionFilters: serializeAws_json1_1RegionFilterList(input.RegionFilters, context),
|
|
474
|
+
}),
|
|
475
|
+
...(input.ResourceTypeFilters != null && {
|
|
476
|
+
ResourceTypeFilters: serializeAws_json1_1ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
477
|
+
}),
|
|
478
|
+
...(input.TagKeyFilters != null && {
|
|
479
|
+
TagKeyFilters: serializeAws_json1_1TagKeyFilterList(input.TagKeyFilters, context),
|
|
480
|
+
}),
|
|
481
|
+
...(input.TargetIdFilters != null && {
|
|
482
|
+
TargetIdFilters: serializeAws_json1_1TargetIdFilterList(input.TargetIdFilters, context),
|
|
483
|
+
}),
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
const serializeAws_json1_1GetResourcesInput = (input, context) => {
|
|
487
|
+
return {
|
|
488
|
+
...(input.ExcludeCompliantResources != null && { ExcludeCompliantResources: input.ExcludeCompliantResources }),
|
|
489
|
+
...(input.IncludeComplianceDetails != null && { IncludeComplianceDetails: input.IncludeComplianceDetails }),
|
|
490
|
+
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
491
|
+
...(input.ResourceARNList != null && {
|
|
492
|
+
ResourceARNList: serializeAws_json1_1ResourceARNListForGet(input.ResourceARNList, context),
|
|
493
|
+
}),
|
|
494
|
+
...(input.ResourceTypeFilters != null && {
|
|
495
|
+
ResourceTypeFilters: serializeAws_json1_1ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
496
|
+
}),
|
|
497
|
+
...(input.ResourcesPerPage != null && { ResourcesPerPage: input.ResourcesPerPage }),
|
|
498
|
+
...(input.TagFilters != null && { TagFilters: serializeAws_json1_1TagFilterList(input.TagFilters, context) }),
|
|
499
|
+
...(input.TagsPerPage != null && { TagsPerPage: input.TagsPerPage }),
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
const serializeAws_json1_1GetTagKeysInput = (input, context) => {
|
|
503
|
+
return {
|
|
504
|
+
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
const serializeAws_json1_1GetTagValuesInput = (input, context) => {
|
|
508
|
+
return {
|
|
509
|
+
...(input.Key != null && { Key: input.Key }),
|
|
510
|
+
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
const serializeAws_json1_1GroupBy = (input, context) => {
|
|
676
514
|
return input
|
|
677
|
-
.filter(
|
|
678
|
-
.map(
|
|
515
|
+
.filter((e) => e != null)
|
|
516
|
+
.map((entry) => {
|
|
679
517
|
return entry;
|
|
680
518
|
});
|
|
681
519
|
};
|
|
682
|
-
|
|
520
|
+
const serializeAws_json1_1RegionFilterList = (input, context) => {
|
|
683
521
|
return input
|
|
684
|
-
.filter(
|
|
685
|
-
.map(
|
|
522
|
+
.filter((e) => e != null)
|
|
523
|
+
.map((entry) => {
|
|
686
524
|
return entry;
|
|
687
525
|
});
|
|
688
526
|
};
|
|
689
|
-
|
|
527
|
+
const serializeAws_json1_1ResourceARNListForGet = (input, context) => {
|
|
690
528
|
return input
|
|
691
|
-
.filter(
|
|
692
|
-
.map(
|
|
529
|
+
.filter((e) => e != null)
|
|
530
|
+
.map((entry) => {
|
|
693
531
|
return entry;
|
|
694
532
|
});
|
|
695
533
|
};
|
|
696
|
-
|
|
534
|
+
const serializeAws_json1_1ResourceARNListForTagUntag = (input, context) => {
|
|
697
535
|
return input
|
|
698
|
-
.filter(
|
|
699
|
-
.map(
|
|
536
|
+
.filter((e) => e != null)
|
|
537
|
+
.map((entry) => {
|
|
700
538
|
return entry;
|
|
701
539
|
});
|
|
702
540
|
};
|
|
703
|
-
|
|
541
|
+
const serializeAws_json1_1ResourceTypeFilterList = (input, context) => {
|
|
704
542
|
return input
|
|
705
|
-
.filter(
|
|
706
|
-
.map(
|
|
543
|
+
.filter((e) => e != null)
|
|
544
|
+
.map((entry) => {
|
|
707
545
|
return entry;
|
|
708
546
|
});
|
|
709
547
|
};
|
|
710
|
-
|
|
711
|
-
return
|
|
548
|
+
const serializeAws_json1_1StartReportCreationInput = (input, context) => {
|
|
549
|
+
return {
|
|
550
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
551
|
+
};
|
|
712
552
|
};
|
|
713
|
-
|
|
714
|
-
return
|
|
553
|
+
const serializeAws_json1_1TagFilter = (input, context) => {
|
|
554
|
+
return {
|
|
555
|
+
...(input.Key != null && { Key: input.Key }),
|
|
556
|
+
...(input.Values != null && { Values: serializeAws_json1_1TagValueList(input.Values, context) }),
|
|
557
|
+
};
|
|
715
558
|
};
|
|
716
|
-
|
|
559
|
+
const serializeAws_json1_1TagFilterList = (input, context) => {
|
|
717
560
|
return input
|
|
718
|
-
.filter(
|
|
719
|
-
.map(
|
|
561
|
+
.filter((e) => e != null)
|
|
562
|
+
.map((entry) => {
|
|
720
563
|
return serializeAws_json1_1TagFilter(entry, context);
|
|
721
564
|
});
|
|
722
565
|
};
|
|
723
|
-
|
|
566
|
+
const serializeAws_json1_1TagKeyFilterList = (input, context) => {
|
|
724
567
|
return input
|
|
725
|
-
.filter(
|
|
726
|
-
.map(
|
|
568
|
+
.filter((e) => e != null)
|
|
569
|
+
.map((entry) => {
|
|
727
570
|
return entry;
|
|
728
571
|
});
|
|
729
572
|
};
|
|
730
|
-
|
|
573
|
+
const serializeAws_json1_1TagKeyListForUntag = (input, context) => {
|
|
731
574
|
return input
|
|
732
|
-
.filter(
|
|
733
|
-
.map(
|
|
575
|
+
.filter((e) => e != null)
|
|
576
|
+
.map((entry) => {
|
|
734
577
|
return entry;
|
|
735
578
|
});
|
|
736
579
|
};
|
|
737
|
-
|
|
738
|
-
return Object.entries(input).reduce(
|
|
739
|
-
var _b;
|
|
740
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
580
|
+
const serializeAws_json1_1TagMap = (input, context) => {
|
|
581
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
741
582
|
if (value === null) {
|
|
742
583
|
return acc;
|
|
743
584
|
}
|
|
744
|
-
return
|
|
585
|
+
return {
|
|
586
|
+
...acc,
|
|
587
|
+
[key]: value,
|
|
588
|
+
};
|
|
745
589
|
}, {});
|
|
746
590
|
};
|
|
747
|
-
|
|
748
|
-
return
|
|
749
|
-
|
|
750
|
-
|
|
591
|
+
const serializeAws_json1_1TagResourcesInput = (input, context) => {
|
|
592
|
+
return {
|
|
593
|
+
...(input.ResourceARNList != null && {
|
|
594
|
+
ResourceARNList: serializeAws_json1_1ResourceARNListForTagUntag(input.ResourceARNList, context),
|
|
595
|
+
}),
|
|
596
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
597
|
+
};
|
|
751
598
|
};
|
|
752
|
-
|
|
599
|
+
const serializeAws_json1_1TagValueList = (input, context) => {
|
|
753
600
|
return input
|
|
754
|
-
.filter(
|
|
755
|
-
.map(
|
|
601
|
+
.filter((e) => e != null)
|
|
602
|
+
.map((entry) => {
|
|
756
603
|
return entry;
|
|
757
604
|
});
|
|
758
605
|
};
|
|
759
|
-
|
|
606
|
+
const serializeAws_json1_1TargetIdFilterList = (input, context) => {
|
|
760
607
|
return input
|
|
761
|
-
.filter(
|
|
762
|
-
.map(
|
|
608
|
+
.filter((e) => e != null)
|
|
609
|
+
.map((entry) => {
|
|
763
610
|
return entry;
|
|
764
611
|
});
|
|
765
612
|
};
|
|
766
|
-
|
|
767
|
-
return
|
|
768
|
-
|
|
769
|
-
|
|
613
|
+
const serializeAws_json1_1UntagResourcesInput = (input, context) => {
|
|
614
|
+
return {
|
|
615
|
+
...(input.ResourceARNList != null && {
|
|
616
|
+
ResourceARNList: serializeAws_json1_1ResourceARNListForTagUntag(input.ResourceARNList, context),
|
|
617
|
+
}),
|
|
618
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyListForUntag(input.TagKeys, context) }),
|
|
619
|
+
};
|
|
770
620
|
};
|
|
771
|
-
|
|
621
|
+
const deserializeAws_json1_1ComplianceDetails = (output, context) => {
|
|
772
622
|
return {
|
|
773
623
|
ComplianceStatus: __expectBoolean(output.ComplianceStatus),
|
|
774
624
|
KeysWithNoncompliantValues: output.KeysWithNoncompliantValues != null
|
|
@@ -777,17 +627,17 @@ var deserializeAws_json1_1ComplianceDetails = function (output, context) {
|
|
|
777
627
|
NoncompliantKeys: output.NoncompliantKeys != null ? deserializeAws_json1_1TagKeyList(output.NoncompliantKeys, context) : undefined,
|
|
778
628
|
};
|
|
779
629
|
};
|
|
780
|
-
|
|
630
|
+
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
781
631
|
return {
|
|
782
632
|
Message: __expectString(output.Message),
|
|
783
633
|
};
|
|
784
634
|
};
|
|
785
|
-
|
|
635
|
+
const deserializeAws_json1_1ConstraintViolationException = (output, context) => {
|
|
786
636
|
return {
|
|
787
637
|
Message: __expectString(output.Message),
|
|
788
638
|
};
|
|
789
639
|
};
|
|
790
|
-
|
|
640
|
+
const deserializeAws_json1_1DescribeReportCreationOutput = (output, context) => {
|
|
791
641
|
return {
|
|
792
642
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
793
643
|
S3Location: __expectString(output.S3Location),
|
|
@@ -795,30 +645,31 @@ var deserializeAws_json1_1DescribeReportCreationOutput = function (output, conte
|
|
|
795
645
|
Status: __expectString(output.Status),
|
|
796
646
|
};
|
|
797
647
|
};
|
|
798
|
-
|
|
799
|
-
return Object.entries(output).reduce(
|
|
800
|
-
var _b;
|
|
801
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
648
|
+
const deserializeAws_json1_1FailedResourcesMap = (output, context) => {
|
|
649
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
802
650
|
if (value === null) {
|
|
803
651
|
return acc;
|
|
804
652
|
}
|
|
805
|
-
return
|
|
653
|
+
return {
|
|
654
|
+
...acc,
|
|
655
|
+
[key]: deserializeAws_json1_1FailureInfo(value, context),
|
|
656
|
+
};
|
|
806
657
|
}, {});
|
|
807
658
|
};
|
|
808
|
-
|
|
659
|
+
const deserializeAws_json1_1FailureInfo = (output, context) => {
|
|
809
660
|
return {
|
|
810
661
|
ErrorCode: __expectString(output.ErrorCode),
|
|
811
662
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
812
663
|
StatusCode: __expectInt32(output.StatusCode),
|
|
813
664
|
};
|
|
814
665
|
};
|
|
815
|
-
|
|
666
|
+
const deserializeAws_json1_1GetComplianceSummaryOutput = (output, context) => {
|
|
816
667
|
return {
|
|
817
668
|
PaginationToken: __expectString(output.PaginationToken),
|
|
818
669
|
SummaryList: output.SummaryList != null ? deserializeAws_json1_1SummaryList(output.SummaryList, context) : undefined,
|
|
819
670
|
};
|
|
820
671
|
};
|
|
821
|
-
|
|
672
|
+
const deserializeAws_json1_1GetResourcesOutput = (output, context) => {
|
|
822
673
|
return {
|
|
823
674
|
PaginationToken: __expectString(output.PaginationToken),
|
|
824
675
|
ResourceTagMappingList: output.ResourceTagMappingList != null
|
|
@@ -826,34 +677,34 @@ var deserializeAws_json1_1GetResourcesOutput = function (output, context) {
|
|
|
826
677
|
: undefined,
|
|
827
678
|
};
|
|
828
679
|
};
|
|
829
|
-
|
|
680
|
+
const deserializeAws_json1_1GetTagKeysOutput = (output, context) => {
|
|
830
681
|
return {
|
|
831
682
|
PaginationToken: __expectString(output.PaginationToken),
|
|
832
683
|
TagKeys: output.TagKeys != null ? deserializeAws_json1_1TagKeyList(output.TagKeys, context) : undefined,
|
|
833
684
|
};
|
|
834
685
|
};
|
|
835
|
-
|
|
686
|
+
const deserializeAws_json1_1GetTagValuesOutput = (output, context) => {
|
|
836
687
|
return {
|
|
837
688
|
PaginationToken: __expectString(output.PaginationToken),
|
|
838
689
|
TagValues: output.TagValues != null ? deserializeAws_json1_1TagValuesOutputList(output.TagValues, context) : undefined,
|
|
839
690
|
};
|
|
840
691
|
};
|
|
841
|
-
|
|
692
|
+
const deserializeAws_json1_1InternalServiceException = (output, context) => {
|
|
842
693
|
return {
|
|
843
694
|
Message: __expectString(output.Message),
|
|
844
695
|
};
|
|
845
696
|
};
|
|
846
|
-
|
|
697
|
+
const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
847
698
|
return {
|
|
848
699
|
Message: __expectString(output.Message),
|
|
849
700
|
};
|
|
850
701
|
};
|
|
851
|
-
|
|
702
|
+
const deserializeAws_json1_1PaginationTokenExpiredException = (output, context) => {
|
|
852
703
|
return {
|
|
853
704
|
Message: __expectString(output.Message),
|
|
854
705
|
};
|
|
855
706
|
};
|
|
856
|
-
|
|
707
|
+
const deserializeAws_json1_1ResourceTagMapping = (output, context) => {
|
|
857
708
|
return {
|
|
858
709
|
ComplianceDetails: output.ComplianceDetails != null
|
|
859
710
|
? deserializeAws_json1_1ComplianceDetails(output.ComplianceDetails, context)
|
|
@@ -862,10 +713,10 @@ var deserializeAws_json1_1ResourceTagMapping = function (output, context) {
|
|
|
862
713
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
863
714
|
};
|
|
864
715
|
};
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
.filter(
|
|
868
|
-
.map(
|
|
716
|
+
const deserializeAws_json1_1ResourceTagMappingList = (output, context) => {
|
|
717
|
+
const retVal = (output || [])
|
|
718
|
+
.filter((e) => e != null)
|
|
719
|
+
.map((entry) => {
|
|
869
720
|
if (entry === null) {
|
|
870
721
|
return null;
|
|
871
722
|
}
|
|
@@ -873,10 +724,10 @@ var deserializeAws_json1_1ResourceTagMappingList = function (output, context) {
|
|
|
873
724
|
});
|
|
874
725
|
return retVal;
|
|
875
726
|
};
|
|
876
|
-
|
|
727
|
+
const deserializeAws_json1_1StartReportCreationOutput = (output, context) => {
|
|
877
728
|
return {};
|
|
878
729
|
};
|
|
879
|
-
|
|
730
|
+
const deserializeAws_json1_1Summary = (output, context) => {
|
|
880
731
|
return {
|
|
881
732
|
LastUpdated: __expectString(output.LastUpdated),
|
|
882
733
|
NonCompliantResources: __expectLong(output.NonCompliantResources),
|
|
@@ -886,10 +737,10 @@ var deserializeAws_json1_1Summary = function (output, context) {
|
|
|
886
737
|
TargetIdType: __expectString(output.TargetIdType),
|
|
887
738
|
};
|
|
888
739
|
};
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
.filter(
|
|
892
|
-
.map(
|
|
740
|
+
const deserializeAws_json1_1SummaryList = (output, context) => {
|
|
741
|
+
const retVal = (output || [])
|
|
742
|
+
.filter((e) => e != null)
|
|
743
|
+
.map((entry) => {
|
|
893
744
|
if (entry === null) {
|
|
894
745
|
return null;
|
|
895
746
|
}
|
|
@@ -897,16 +748,16 @@ var deserializeAws_json1_1SummaryList = function (output, context) {
|
|
|
897
748
|
});
|
|
898
749
|
return retVal;
|
|
899
750
|
};
|
|
900
|
-
|
|
751
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
901
752
|
return {
|
|
902
753
|
Key: __expectString(output.Key),
|
|
903
754
|
Value: __expectString(output.Value),
|
|
904
755
|
};
|
|
905
756
|
};
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
.filter(
|
|
909
|
-
.map(
|
|
757
|
+
const deserializeAws_json1_1TagKeyList = (output, context) => {
|
|
758
|
+
const retVal = (output || [])
|
|
759
|
+
.filter((e) => e != null)
|
|
760
|
+
.map((entry) => {
|
|
910
761
|
if (entry === null) {
|
|
911
762
|
return null;
|
|
912
763
|
}
|
|
@@ -914,10 +765,10 @@ var deserializeAws_json1_1TagKeyList = function (output, context) {
|
|
|
914
765
|
});
|
|
915
766
|
return retVal;
|
|
916
767
|
};
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
.filter(
|
|
920
|
-
.map(
|
|
768
|
+
const deserializeAws_json1_1TagList = (output, context) => {
|
|
769
|
+
const retVal = (output || [])
|
|
770
|
+
.filter((e) => e != null)
|
|
771
|
+
.map((entry) => {
|
|
921
772
|
if (entry === null) {
|
|
922
773
|
return null;
|
|
923
774
|
}
|
|
@@ -925,17 +776,17 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
925
776
|
});
|
|
926
777
|
return retVal;
|
|
927
778
|
};
|
|
928
|
-
|
|
779
|
+
const deserializeAws_json1_1TagResourcesOutput = (output, context) => {
|
|
929
780
|
return {
|
|
930
781
|
FailedResourcesMap: output.FailedResourcesMap != null
|
|
931
782
|
? deserializeAws_json1_1FailedResourcesMap(output.FailedResourcesMap, context)
|
|
932
783
|
: undefined,
|
|
933
784
|
};
|
|
934
785
|
};
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
.filter(
|
|
938
|
-
.map(
|
|
786
|
+
const deserializeAws_json1_1TagValuesOutputList = (output, context) => {
|
|
787
|
+
const retVal = (output || [])
|
|
788
|
+
.filter((e) => e != null)
|
|
789
|
+
.map((entry) => {
|
|
939
790
|
if (entry === null) {
|
|
940
791
|
return null;
|
|
941
792
|
}
|
|
@@ -943,87 +794,64 @@ var deserializeAws_json1_1TagValuesOutputList = function (output, context) {
|
|
|
943
794
|
});
|
|
944
795
|
return retVal;
|
|
945
796
|
};
|
|
946
|
-
|
|
797
|
+
const deserializeAws_json1_1ThrottledException = (output, context) => {
|
|
947
798
|
return {
|
|
948
799
|
Message: __expectString(output.Message),
|
|
949
800
|
};
|
|
950
801
|
};
|
|
951
|
-
|
|
802
|
+
const deserializeAws_json1_1UntagResourcesOutput = (output, context) => {
|
|
952
803
|
return {
|
|
953
804
|
FailedResourcesMap: output.FailedResourcesMap != null
|
|
954
805
|
? deserializeAws_json1_1FailedResourcesMap(output.FailedResourcesMap, context)
|
|
955
806
|
: undefined,
|
|
956
807
|
};
|
|
957
808
|
};
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
});
|
|
966
|
-
};
|
|
967
|
-
var collectBody = function (streamBody, context) {
|
|
968
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
809
|
+
const deserializeMetadata = (output) => ({
|
|
810
|
+
httpStatusCode: output.statusCode,
|
|
811
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
812
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
813
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
814
|
+
});
|
|
815
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
969
816
|
if (streamBody instanceof Uint8Array) {
|
|
970
817
|
return Promise.resolve(streamBody);
|
|
971
818
|
}
|
|
972
819
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
973
820
|
};
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
};
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
if (resolvedHostname !== undefined) {
|
|
993
|
-
contents.hostname = resolvedHostname;
|
|
994
|
-
}
|
|
995
|
-
if (body !== undefined) {
|
|
996
|
-
contents.body = body;
|
|
997
|
-
}
|
|
998
|
-
return [2, new __HttpRequest(contents)];
|
|
999
|
-
}
|
|
1000
|
-
});
|
|
1001
|
-
}); };
|
|
1002
|
-
var parseBody = function (streamBody, context) {
|
|
1003
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1004
|
-
if (encoded.length) {
|
|
1005
|
-
return JSON.parse(encoded);
|
|
1006
|
-
}
|
|
1007
|
-
return {};
|
|
1008
|
-
});
|
|
821
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
822
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
823
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
824
|
+
const contents = {
|
|
825
|
+
protocol,
|
|
826
|
+
hostname,
|
|
827
|
+
port,
|
|
828
|
+
method: "POST",
|
|
829
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
830
|
+
headers,
|
|
831
|
+
};
|
|
832
|
+
if (resolvedHostname !== undefined) {
|
|
833
|
+
contents.hostname = resolvedHostname;
|
|
834
|
+
}
|
|
835
|
+
if (body !== undefined) {
|
|
836
|
+
contents.body = body;
|
|
837
|
+
}
|
|
838
|
+
return new __HttpRequest(contents);
|
|
1009
839
|
};
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
1026
|
-
var cleanValue = rawValue;
|
|
840
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
841
|
+
if (encoded.length) {
|
|
842
|
+
return JSON.parse(encoded);
|
|
843
|
+
}
|
|
844
|
+
return {};
|
|
845
|
+
});
|
|
846
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
847
|
+
const value = await parseBody(errorBody, context);
|
|
848
|
+
value.message = value.message ?? value.Message;
|
|
849
|
+
return value;
|
|
850
|
+
};
|
|
851
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
852
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
853
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
854
|
+
let cleanValue = rawValue;
|
|
1027
855
|
if (typeof cleanValue === "number") {
|
|
1028
856
|
cleanValue = cleanValue.toString();
|
|
1029
857
|
}
|
|
@@ -1038,7 +866,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1038
866
|
}
|
|
1039
867
|
return cleanValue;
|
|
1040
868
|
};
|
|
1041
|
-
|
|
869
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1042
870
|
if (headerKey !== undefined) {
|
|
1043
871
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1044
872
|
}
|