@aws-sdk/client-application-discovery-service 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/ApplicationDiscoveryService.js +102 -109
- package/dist-es/ApplicationDiscoveryServiceClient.js +22 -28
- package/dist-es/commands/AssociateConfigurationItemsToApplicationCommand.js +21 -28
- package/dist-es/commands/BatchDeleteImportDataCommand.js +21 -28
- package/dist-es/commands/CreateApplicationCommand.js +21 -28
- package/dist-es/commands/CreateTagsCommand.js +21 -28
- package/dist-es/commands/DeleteApplicationsCommand.js +21 -28
- package/dist-es/commands/DeleteTagsCommand.js +21 -28
- package/dist-es/commands/DescribeAgentsCommand.js +21 -28
- package/dist-es/commands/DescribeConfigurationsCommand.js +21 -28
- package/dist-es/commands/DescribeContinuousExportsCommand.js +21 -28
- package/dist-es/commands/DescribeExportConfigurationsCommand.js +21 -28
- package/dist-es/commands/DescribeExportTasksCommand.js +21 -28
- package/dist-es/commands/DescribeImportTasksCommand.js +21 -28
- package/dist-es/commands/DescribeTagsCommand.js +21 -28
- package/dist-es/commands/DisassociateConfigurationItemsFromApplicationCommand.js +21 -28
- package/dist-es/commands/ExportConfigurationsCommand.js +22 -29
- package/dist-es/commands/GetDiscoverySummaryCommand.js +21 -28
- package/dist-es/commands/ListConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListServerNeighborsCommand.js +21 -28
- package/dist-es/commands/StartContinuousExportCommand.js +21 -28
- package/dist-es/commands/StartDataCollectionByAgentIdsCommand.js +21 -28
- package/dist-es/commands/StartExportTaskCommand.js +21 -28
- package/dist-es/commands/StartImportTaskCommand.js +21 -28
- package/dist-es/commands/StopContinuousExportCommand.js +21 -28
- package/dist-es/commands/StopDataCollectionByAgentIdsCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ApplicationDiscoveryServiceServiceException.js +5 -10
- package/dist-es/models/models_0.js +303 -168
- package/dist-es/pagination/DescribeContinuousExportsPaginator.js +25 -68
- package/dist-es/pagination/DescribeImportTasksPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1849 -2390
- 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,2331 +1,1810 @@
|
|
|
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, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
4
|
import { ApplicationDiscoveryServiceServiceException as __BaseException } from "../models/ApplicationDiscoveryServiceServiceException";
|
|
6
5
|
import { AuthorizationErrorException, ConflictErrorException, HomeRegionNotSetException, InvalidParameterException, InvalidParameterValueException, OperationNotPermittedException, ResourceInUseException, ResourceNotFoundException, ServerInternalErrorException, } from "../models/models_0";
|
|
7
|
-
export
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
export
|
|
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
|
-
export
|
|
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
|
-
return
|
|
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
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
export
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
return
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": return [3, 2];
|
|
1487
|
-
case "HomeRegionNotSetException": return [3, 4];
|
|
1488
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": return [3, 4];
|
|
1489
|
-
case "InvalidParameterException": return [3, 6];
|
|
1490
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": return [3, 6];
|
|
1491
|
-
case "InvalidParameterValueException": return [3, 8];
|
|
1492
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": return [3, 8];
|
|
1493
|
-
case "ServerInternalErrorException": return [3, 10];
|
|
1494
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": return [3, 10];
|
|
1495
|
-
}
|
|
1496
|
-
return [3, 12];
|
|
1497
|
-
case 2: return [4, deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1498
|
-
case 3: throw _d.sent();
|
|
1499
|
-
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1500
|
-
case 5: throw _d.sent();
|
|
1501
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1502
|
-
case 7: throw _d.sent();
|
|
1503
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1504
|
-
case 9: throw _d.sent();
|
|
1505
|
-
case 10: return [4, deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1506
|
-
case 11: throw _d.sent();
|
|
1507
|
-
case 12:
|
|
1508
|
-
parsedBody = parsedOutput.body;
|
|
1509
|
-
throwDefaultError({
|
|
1510
|
-
output: output,
|
|
1511
|
-
parsedBody: parsedBody,
|
|
1512
|
-
exceptionCtor: __BaseException,
|
|
1513
|
-
errorCode: errorCode,
|
|
1514
|
-
});
|
|
1515
|
-
_d.label = 13;
|
|
1516
|
-
case 13: return [2];
|
|
1517
|
-
}
|
|
1518
|
-
});
|
|
1519
|
-
}); };
|
|
1520
|
-
export var deserializeAws_json1_1StartContinuousExportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1521
|
-
var data, contents, response;
|
|
1522
|
-
return __generator(this, function (_a) {
|
|
1523
|
-
switch (_a.label) {
|
|
1524
|
-
case 0:
|
|
1525
|
-
if (output.statusCode >= 300) {
|
|
1526
|
-
return [2, deserializeAws_json1_1StartContinuousExportCommandError(output, context)];
|
|
1527
|
-
}
|
|
1528
|
-
return [4, parseBody(output.body, context)];
|
|
1529
|
-
case 1:
|
|
1530
|
-
data = _a.sent();
|
|
1531
|
-
contents = {};
|
|
1532
|
-
contents = deserializeAws_json1_1StartContinuousExportResponse(data, context);
|
|
1533
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1534
|
-
return [2, Promise.resolve(response)];
|
|
1535
|
-
}
|
|
1536
|
-
});
|
|
1537
|
-
}); };
|
|
1538
|
-
var deserializeAws_json1_1StartContinuousExportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1539
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1540
|
-
var _c;
|
|
1541
|
-
return __generator(this, function (_d) {
|
|
1542
|
-
switch (_d.label) {
|
|
1543
|
-
case 0:
|
|
1544
|
-
_a = [__assign({}, output)];
|
|
1545
|
-
_c = {};
|
|
1546
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1547
|
-
case 1:
|
|
1548
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1549
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
|
-
_b = errorCode;
|
|
1551
|
-
switch (_b) {
|
|
1552
|
-
case "AuthorizationErrorException": return [3, 2];
|
|
1553
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": return [3, 2];
|
|
1554
|
-
case "ConflictErrorException": return [3, 4];
|
|
1555
|
-
case "com.amazonaws.applicationdiscoveryservice#ConflictErrorException": return [3, 4];
|
|
1556
|
-
case "HomeRegionNotSetException": return [3, 6];
|
|
1557
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": return [3, 6];
|
|
1558
|
-
case "InvalidParameterException": return [3, 8];
|
|
1559
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": return [3, 8];
|
|
1560
|
-
case "InvalidParameterValueException": return [3, 10];
|
|
1561
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": return [3, 10];
|
|
1562
|
-
case "OperationNotPermittedException": return [3, 12];
|
|
1563
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException": return [3, 12];
|
|
1564
|
-
case "ResourceInUseException": return [3, 14];
|
|
1565
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException": return [3, 14];
|
|
1566
|
-
case "ServerInternalErrorException": return [3, 16];
|
|
1567
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": return [3, 16];
|
|
1568
|
-
}
|
|
1569
|
-
return [3, 18];
|
|
1570
|
-
case 2: return [4, deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1571
|
-
case 3: throw _d.sent();
|
|
1572
|
-
case 4: return [4, deserializeAws_json1_1ConflictErrorExceptionResponse(parsedOutput, context)];
|
|
1573
|
-
case 5: throw _d.sent();
|
|
1574
|
-
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1575
|
-
case 7: throw _d.sent();
|
|
1576
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1577
|
-
case 9: throw _d.sent();
|
|
1578
|
-
case 10: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1579
|
-
case 11: throw _d.sent();
|
|
1580
|
-
case 12: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1581
|
-
case 13: throw _d.sent();
|
|
1582
|
-
case 14: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1583
|
-
case 15: throw _d.sent();
|
|
1584
|
-
case 16: return [4, deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1585
|
-
case 17: throw _d.sent();
|
|
1586
|
-
case 18:
|
|
1587
|
-
parsedBody = parsedOutput.body;
|
|
1588
|
-
throwDefaultError({
|
|
1589
|
-
output: output,
|
|
1590
|
-
parsedBody: parsedBody,
|
|
1591
|
-
exceptionCtor: __BaseException,
|
|
1592
|
-
errorCode: errorCode,
|
|
1593
|
-
});
|
|
1594
|
-
_d.label = 19;
|
|
1595
|
-
case 19: return [2];
|
|
1596
|
-
}
|
|
1597
|
-
});
|
|
1598
|
-
}); };
|
|
1599
|
-
export var deserializeAws_json1_1StartDataCollectionByAgentIdsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1600
|
-
var data, contents, response;
|
|
1601
|
-
return __generator(this, function (_a) {
|
|
1602
|
-
switch (_a.label) {
|
|
1603
|
-
case 0:
|
|
1604
|
-
if (output.statusCode >= 300) {
|
|
1605
|
-
return [2, deserializeAws_json1_1StartDataCollectionByAgentIdsCommandError(output, context)];
|
|
1606
|
-
}
|
|
1607
|
-
return [4, parseBody(output.body, context)];
|
|
1608
|
-
case 1:
|
|
1609
|
-
data = _a.sent();
|
|
1610
|
-
contents = {};
|
|
1611
|
-
contents = deserializeAws_json1_1StartDataCollectionByAgentIdsResponse(data, context);
|
|
1612
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1613
|
-
return [2, Promise.resolve(response)];
|
|
1614
|
-
}
|
|
1615
|
-
});
|
|
1616
|
-
}); };
|
|
1617
|
-
var deserializeAws_json1_1StartDataCollectionByAgentIdsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1618
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1619
|
-
var _c;
|
|
1620
|
-
return __generator(this, function (_d) {
|
|
1621
|
-
switch (_d.label) {
|
|
1622
|
-
case 0:
|
|
1623
|
-
_a = [__assign({}, output)];
|
|
1624
|
-
_c = {};
|
|
1625
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1626
|
-
case 1:
|
|
1627
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1628
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
|
-
_b = errorCode;
|
|
1630
|
-
switch (_b) {
|
|
1631
|
-
case "AuthorizationErrorException": return [3, 2];
|
|
1632
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": return [3, 2];
|
|
1633
|
-
case "HomeRegionNotSetException": return [3, 4];
|
|
1634
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": return [3, 4];
|
|
1635
|
-
case "InvalidParameterException": return [3, 6];
|
|
1636
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": return [3, 6];
|
|
1637
|
-
case "InvalidParameterValueException": return [3, 8];
|
|
1638
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": return [3, 8];
|
|
1639
|
-
case "ServerInternalErrorException": return [3, 10];
|
|
1640
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": return [3, 10];
|
|
1641
|
-
}
|
|
1642
|
-
return [3, 12];
|
|
1643
|
-
case 2: return [4, deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1644
|
-
case 3: throw _d.sent();
|
|
1645
|
-
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1646
|
-
case 5: throw _d.sent();
|
|
1647
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1648
|
-
case 7: throw _d.sent();
|
|
1649
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1650
|
-
case 9: throw _d.sent();
|
|
1651
|
-
case 10: return [4, deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1652
|
-
case 11: throw _d.sent();
|
|
1653
|
-
case 12:
|
|
1654
|
-
parsedBody = parsedOutput.body;
|
|
1655
|
-
throwDefaultError({
|
|
1656
|
-
output: output,
|
|
1657
|
-
parsedBody: parsedBody,
|
|
1658
|
-
exceptionCtor: __BaseException,
|
|
1659
|
-
errorCode: errorCode,
|
|
1660
|
-
});
|
|
1661
|
-
_d.label = 13;
|
|
1662
|
-
case 13: return [2];
|
|
1663
|
-
}
|
|
1664
|
-
});
|
|
1665
|
-
}); };
|
|
1666
|
-
export var deserializeAws_json1_1StartExportTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1667
|
-
var data, contents, response;
|
|
1668
|
-
return __generator(this, function (_a) {
|
|
1669
|
-
switch (_a.label) {
|
|
1670
|
-
case 0:
|
|
1671
|
-
if (output.statusCode >= 300) {
|
|
1672
|
-
return [2, deserializeAws_json1_1StartExportTaskCommandError(output, context)];
|
|
1673
|
-
}
|
|
1674
|
-
return [4, parseBody(output.body, context)];
|
|
1675
|
-
case 1:
|
|
1676
|
-
data = _a.sent();
|
|
1677
|
-
contents = {};
|
|
1678
|
-
contents = deserializeAws_json1_1StartExportTaskResponse(data, context);
|
|
1679
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1680
|
-
return [2, Promise.resolve(response)];
|
|
1681
|
-
}
|
|
1682
|
-
});
|
|
1683
|
-
}); };
|
|
1684
|
-
var deserializeAws_json1_1StartExportTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1685
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1686
|
-
var _c;
|
|
1687
|
-
return __generator(this, function (_d) {
|
|
1688
|
-
switch (_d.label) {
|
|
1689
|
-
case 0:
|
|
1690
|
-
_a = [__assign({}, output)];
|
|
1691
|
-
_c = {};
|
|
1692
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1693
|
-
case 1:
|
|
1694
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1695
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1696
|
-
_b = errorCode;
|
|
1697
|
-
switch (_b) {
|
|
1698
|
-
case "AuthorizationErrorException": return [3, 2];
|
|
1699
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": return [3, 2];
|
|
1700
|
-
case "HomeRegionNotSetException": return [3, 4];
|
|
1701
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": return [3, 4];
|
|
1702
|
-
case "InvalidParameterException": return [3, 6];
|
|
1703
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": return [3, 6];
|
|
1704
|
-
case "InvalidParameterValueException": return [3, 8];
|
|
1705
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": return [3, 8];
|
|
1706
|
-
case "OperationNotPermittedException": return [3, 10];
|
|
1707
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException": return [3, 10];
|
|
1708
|
-
case "ServerInternalErrorException": return [3, 12];
|
|
1709
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": return [3, 12];
|
|
1710
|
-
}
|
|
1711
|
-
return [3, 14];
|
|
1712
|
-
case 2: return [4, deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1713
|
-
case 3: throw _d.sent();
|
|
1714
|
-
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1715
|
-
case 5: throw _d.sent();
|
|
1716
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1717
|
-
case 7: throw _d.sent();
|
|
1718
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1719
|
-
case 9: throw _d.sent();
|
|
1720
|
-
case 10: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1721
|
-
case 11: throw _d.sent();
|
|
1722
|
-
case 12: return [4, deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1723
|
-
case 13: throw _d.sent();
|
|
1724
|
-
case 14:
|
|
1725
|
-
parsedBody = parsedOutput.body;
|
|
1726
|
-
throwDefaultError({
|
|
1727
|
-
output: output,
|
|
1728
|
-
parsedBody: parsedBody,
|
|
1729
|
-
exceptionCtor: __BaseException,
|
|
1730
|
-
errorCode: errorCode,
|
|
1731
|
-
});
|
|
1732
|
-
_d.label = 15;
|
|
1733
|
-
case 15: return [2];
|
|
1734
|
-
}
|
|
1735
|
-
});
|
|
1736
|
-
}); };
|
|
1737
|
-
export var deserializeAws_json1_1StartImportTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1738
|
-
var data, contents, response;
|
|
1739
|
-
return __generator(this, function (_a) {
|
|
1740
|
-
switch (_a.label) {
|
|
1741
|
-
case 0:
|
|
1742
|
-
if (output.statusCode >= 300) {
|
|
1743
|
-
return [2, deserializeAws_json1_1StartImportTaskCommandError(output, context)];
|
|
1744
|
-
}
|
|
1745
|
-
return [4, parseBody(output.body, context)];
|
|
1746
|
-
case 1:
|
|
1747
|
-
data = _a.sent();
|
|
1748
|
-
contents = {};
|
|
1749
|
-
contents = deserializeAws_json1_1StartImportTaskResponse(data, context);
|
|
1750
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1751
|
-
return [2, Promise.resolve(response)];
|
|
1752
|
-
}
|
|
1753
|
-
});
|
|
1754
|
-
}); };
|
|
1755
|
-
var deserializeAws_json1_1StartImportTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1756
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1757
|
-
var _c;
|
|
1758
|
-
return __generator(this, function (_d) {
|
|
1759
|
-
switch (_d.label) {
|
|
1760
|
-
case 0:
|
|
1761
|
-
_a = [__assign({}, output)];
|
|
1762
|
-
_c = {};
|
|
1763
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1764
|
-
case 1:
|
|
1765
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1766
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
|
-
_b = errorCode;
|
|
1768
|
-
switch (_b) {
|
|
1769
|
-
case "AuthorizationErrorException": return [3, 2];
|
|
1770
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": return [3, 2];
|
|
1771
|
-
case "HomeRegionNotSetException": return [3, 4];
|
|
1772
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": return [3, 4];
|
|
1773
|
-
case "InvalidParameterException": return [3, 6];
|
|
1774
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": return [3, 6];
|
|
1775
|
-
case "InvalidParameterValueException": return [3, 8];
|
|
1776
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": return [3, 8];
|
|
1777
|
-
case "ResourceInUseException": return [3, 10];
|
|
1778
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException": return [3, 10];
|
|
1779
|
-
case "ServerInternalErrorException": return [3, 12];
|
|
1780
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": return [3, 12];
|
|
1781
|
-
}
|
|
1782
|
-
return [3, 14];
|
|
1783
|
-
case 2: return [4, deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1784
|
-
case 3: throw _d.sent();
|
|
1785
|
-
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1786
|
-
case 5: throw _d.sent();
|
|
1787
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1788
|
-
case 7: throw _d.sent();
|
|
1789
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1790
|
-
case 9: throw _d.sent();
|
|
1791
|
-
case 10: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1792
|
-
case 11: throw _d.sent();
|
|
1793
|
-
case 12: return [4, deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1794
|
-
case 13: throw _d.sent();
|
|
1795
|
-
case 14:
|
|
1796
|
-
parsedBody = parsedOutput.body;
|
|
1797
|
-
throwDefaultError({
|
|
1798
|
-
output: output,
|
|
1799
|
-
parsedBody: parsedBody,
|
|
1800
|
-
exceptionCtor: __BaseException,
|
|
1801
|
-
errorCode: errorCode,
|
|
1802
|
-
});
|
|
1803
|
-
_d.label = 15;
|
|
1804
|
-
case 15: return [2];
|
|
1805
|
-
}
|
|
1806
|
-
});
|
|
1807
|
-
}); };
|
|
1808
|
-
export var deserializeAws_json1_1StopContinuousExportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1809
|
-
var data, contents, response;
|
|
1810
|
-
return __generator(this, function (_a) {
|
|
1811
|
-
switch (_a.label) {
|
|
1812
|
-
case 0:
|
|
1813
|
-
if (output.statusCode >= 300) {
|
|
1814
|
-
return [2, deserializeAws_json1_1StopContinuousExportCommandError(output, context)];
|
|
1815
|
-
}
|
|
1816
|
-
return [4, parseBody(output.body, context)];
|
|
1817
|
-
case 1:
|
|
1818
|
-
data = _a.sent();
|
|
1819
|
-
contents = {};
|
|
1820
|
-
contents = deserializeAws_json1_1StopContinuousExportResponse(data, context);
|
|
1821
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1822
|
-
return [2, Promise.resolve(response)];
|
|
1823
|
-
}
|
|
1824
|
-
});
|
|
1825
|
-
}); };
|
|
1826
|
-
var deserializeAws_json1_1StopContinuousExportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1827
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1828
|
-
var _c;
|
|
1829
|
-
return __generator(this, function (_d) {
|
|
1830
|
-
switch (_d.label) {
|
|
1831
|
-
case 0:
|
|
1832
|
-
_a = [__assign({}, output)];
|
|
1833
|
-
_c = {};
|
|
1834
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1835
|
-
case 1:
|
|
1836
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1837
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
-
_b = errorCode;
|
|
1839
|
-
switch (_b) {
|
|
1840
|
-
case "AuthorizationErrorException": return [3, 2];
|
|
1841
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": return [3, 2];
|
|
1842
|
-
case "HomeRegionNotSetException": return [3, 4];
|
|
1843
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": return [3, 4];
|
|
1844
|
-
case "InvalidParameterException": return [3, 6];
|
|
1845
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": return [3, 6];
|
|
1846
|
-
case "InvalidParameterValueException": return [3, 8];
|
|
1847
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": return [3, 8];
|
|
1848
|
-
case "OperationNotPermittedException": return [3, 10];
|
|
1849
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException": return [3, 10];
|
|
1850
|
-
case "ResourceInUseException": return [3, 12];
|
|
1851
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException": return [3, 12];
|
|
1852
|
-
case "ResourceNotFoundException": return [3, 14];
|
|
1853
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException": return [3, 14];
|
|
1854
|
-
case "ServerInternalErrorException": return [3, 16];
|
|
1855
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": return [3, 16];
|
|
1856
|
-
}
|
|
1857
|
-
return [3, 18];
|
|
1858
|
-
case 2: return [4, deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1859
|
-
case 3: throw _d.sent();
|
|
1860
|
-
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1861
|
-
case 5: throw _d.sent();
|
|
1862
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1863
|
-
case 7: throw _d.sent();
|
|
1864
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1865
|
-
case 9: throw _d.sent();
|
|
1866
|
-
case 10: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1867
|
-
case 11: throw _d.sent();
|
|
1868
|
-
case 12: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1869
|
-
case 13: throw _d.sent();
|
|
1870
|
-
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1871
|
-
case 15: throw _d.sent();
|
|
1872
|
-
case 16: return [4, deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1873
|
-
case 17: throw _d.sent();
|
|
1874
|
-
case 18:
|
|
1875
|
-
parsedBody = parsedOutput.body;
|
|
1876
|
-
throwDefaultError({
|
|
1877
|
-
output: output,
|
|
1878
|
-
parsedBody: parsedBody,
|
|
1879
|
-
exceptionCtor: __BaseException,
|
|
1880
|
-
errorCode: errorCode,
|
|
1881
|
-
});
|
|
1882
|
-
_d.label = 19;
|
|
1883
|
-
case 19: return [2];
|
|
1884
|
-
}
|
|
1885
|
-
});
|
|
1886
|
-
}); };
|
|
1887
|
-
export var deserializeAws_json1_1StopDataCollectionByAgentIdsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1888
|
-
var data, contents, response;
|
|
1889
|
-
return __generator(this, function (_a) {
|
|
1890
|
-
switch (_a.label) {
|
|
1891
|
-
case 0:
|
|
1892
|
-
if (output.statusCode >= 300) {
|
|
1893
|
-
return [2, deserializeAws_json1_1StopDataCollectionByAgentIdsCommandError(output, context)];
|
|
1894
|
-
}
|
|
1895
|
-
return [4, parseBody(output.body, context)];
|
|
1896
|
-
case 1:
|
|
1897
|
-
data = _a.sent();
|
|
1898
|
-
contents = {};
|
|
1899
|
-
contents = deserializeAws_json1_1StopDataCollectionByAgentIdsResponse(data, context);
|
|
1900
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1901
|
-
return [2, Promise.resolve(response)];
|
|
1902
|
-
}
|
|
1903
|
-
});
|
|
1904
|
-
}); };
|
|
1905
|
-
var deserializeAws_json1_1StopDataCollectionByAgentIdsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1906
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1907
|
-
var _c;
|
|
1908
|
-
return __generator(this, function (_d) {
|
|
1909
|
-
switch (_d.label) {
|
|
1910
|
-
case 0:
|
|
1911
|
-
_a = [__assign({}, output)];
|
|
1912
|
-
_c = {};
|
|
1913
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1914
|
-
case 1:
|
|
1915
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1916
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
|
-
_b = errorCode;
|
|
1918
|
-
switch (_b) {
|
|
1919
|
-
case "AuthorizationErrorException": return [3, 2];
|
|
1920
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": return [3, 2];
|
|
1921
|
-
case "HomeRegionNotSetException": return [3, 4];
|
|
1922
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": return [3, 4];
|
|
1923
|
-
case "InvalidParameterException": return [3, 6];
|
|
1924
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": return [3, 6];
|
|
1925
|
-
case "InvalidParameterValueException": return [3, 8];
|
|
1926
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": return [3, 8];
|
|
1927
|
-
case "ServerInternalErrorException": return [3, 10];
|
|
1928
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": return [3, 10];
|
|
1929
|
-
}
|
|
1930
|
-
return [3, 12];
|
|
1931
|
-
case 2: return [4, deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1932
|
-
case 3: throw _d.sent();
|
|
1933
|
-
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1934
|
-
case 5: throw _d.sent();
|
|
1935
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1936
|
-
case 7: throw _d.sent();
|
|
1937
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1938
|
-
case 9: throw _d.sent();
|
|
1939
|
-
case 10: return [4, deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1940
|
-
case 11: throw _d.sent();
|
|
1941
|
-
case 12:
|
|
1942
|
-
parsedBody = parsedOutput.body;
|
|
1943
|
-
throwDefaultError({
|
|
1944
|
-
output: output,
|
|
1945
|
-
parsedBody: parsedBody,
|
|
1946
|
-
exceptionCtor: __BaseException,
|
|
1947
|
-
errorCode: errorCode,
|
|
1948
|
-
});
|
|
1949
|
-
_d.label = 13;
|
|
1950
|
-
case 13: return [2];
|
|
1951
|
-
}
|
|
1952
|
-
});
|
|
1953
|
-
}); };
|
|
1954
|
-
export var deserializeAws_json1_1UpdateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1955
|
-
var data, contents, response;
|
|
1956
|
-
return __generator(this, function (_a) {
|
|
1957
|
-
switch (_a.label) {
|
|
1958
|
-
case 0:
|
|
1959
|
-
if (output.statusCode >= 300) {
|
|
1960
|
-
return [2, deserializeAws_json1_1UpdateApplicationCommandError(output, context)];
|
|
1961
|
-
}
|
|
1962
|
-
return [4, parseBody(output.body, context)];
|
|
1963
|
-
case 1:
|
|
1964
|
-
data = _a.sent();
|
|
1965
|
-
contents = {};
|
|
1966
|
-
contents = deserializeAws_json1_1UpdateApplicationResponse(data, context);
|
|
1967
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1968
|
-
return [2, Promise.resolve(response)];
|
|
1969
|
-
}
|
|
1970
|
-
});
|
|
1971
|
-
}); };
|
|
1972
|
-
var deserializeAws_json1_1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1973
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1974
|
-
var _c;
|
|
1975
|
-
return __generator(this, function (_d) {
|
|
1976
|
-
switch (_d.label) {
|
|
1977
|
-
case 0:
|
|
1978
|
-
_a = [__assign({}, output)];
|
|
1979
|
-
_c = {};
|
|
1980
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1981
|
-
case 1:
|
|
1982
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1983
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1984
|
-
_b = errorCode;
|
|
1985
|
-
switch (_b) {
|
|
1986
|
-
case "AuthorizationErrorException": return [3, 2];
|
|
1987
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException": return [3, 2];
|
|
1988
|
-
case "HomeRegionNotSetException": return [3, 4];
|
|
1989
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException": return [3, 4];
|
|
1990
|
-
case "InvalidParameterException": return [3, 6];
|
|
1991
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException": return [3, 6];
|
|
1992
|
-
case "InvalidParameterValueException": return [3, 8];
|
|
1993
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException": return [3, 8];
|
|
1994
|
-
case "ServerInternalErrorException": return [3, 10];
|
|
1995
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException": return [3, 10];
|
|
1996
|
-
}
|
|
1997
|
-
return [3, 12];
|
|
1998
|
-
case 2: return [4, deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1999
|
-
case 3: throw _d.sent();
|
|
2000
|
-
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
2001
|
-
case 5: throw _d.sent();
|
|
2002
|
-
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2003
|
-
case 7: throw _d.sent();
|
|
2004
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
2005
|
-
case 9: throw _d.sent();
|
|
2006
|
-
case 10: return [4, deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2007
|
-
case 11: throw _d.sent();
|
|
2008
|
-
case 12:
|
|
2009
|
-
parsedBody = parsedOutput.body;
|
|
2010
|
-
throwDefaultError({
|
|
2011
|
-
output: output,
|
|
2012
|
-
parsedBody: parsedBody,
|
|
2013
|
-
exceptionCtor: __BaseException,
|
|
2014
|
-
errorCode: errorCode,
|
|
2015
|
-
});
|
|
2016
|
-
_d.label = 13;
|
|
2017
|
-
case 13: return [2];
|
|
2018
|
-
}
|
|
2019
|
-
});
|
|
2020
|
-
}); };
|
|
2021
|
-
var deserializeAws_json1_1AuthorizationErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2022
|
-
var body, deserialized, exception;
|
|
2023
|
-
return __generator(this, function (_a) {
|
|
2024
|
-
body = parsedOutput.body;
|
|
2025
|
-
deserialized = deserializeAws_json1_1AuthorizationErrorException(body, context);
|
|
2026
|
-
exception = new AuthorizationErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2027
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2028
|
-
});
|
|
2029
|
-
}); };
|
|
2030
|
-
var deserializeAws_json1_1ConflictErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2031
|
-
var body, deserialized, exception;
|
|
2032
|
-
return __generator(this, function (_a) {
|
|
2033
|
-
body = parsedOutput.body;
|
|
2034
|
-
deserialized = deserializeAws_json1_1ConflictErrorException(body, context);
|
|
2035
|
-
exception = new ConflictErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2036
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2037
|
-
});
|
|
2038
|
-
}); };
|
|
2039
|
-
var deserializeAws_json1_1HomeRegionNotSetExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2040
|
-
var body, deserialized, exception;
|
|
2041
|
-
return __generator(this, function (_a) {
|
|
2042
|
-
body = parsedOutput.body;
|
|
2043
|
-
deserialized = deserializeAws_json1_1HomeRegionNotSetException(body, context);
|
|
2044
|
-
exception = new HomeRegionNotSetException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2045
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2046
|
-
});
|
|
2047
|
-
}); };
|
|
2048
|
-
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2049
|
-
var body, deserialized, exception;
|
|
2050
|
-
return __generator(this, function (_a) {
|
|
2051
|
-
body = parsedOutput.body;
|
|
2052
|
-
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
2053
|
-
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2054
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2055
|
-
});
|
|
2056
|
-
}); };
|
|
2057
|
-
var deserializeAws_json1_1InvalidParameterValueExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2058
|
-
var body, deserialized, exception;
|
|
2059
|
-
return __generator(this, function (_a) {
|
|
2060
|
-
body = parsedOutput.body;
|
|
2061
|
-
deserialized = deserializeAws_json1_1InvalidParameterValueException(body, context);
|
|
2062
|
-
exception = new InvalidParameterValueException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2063
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2064
|
-
});
|
|
2065
|
-
}); };
|
|
2066
|
-
var deserializeAws_json1_1OperationNotPermittedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2067
|
-
var body, deserialized, exception;
|
|
2068
|
-
return __generator(this, function (_a) {
|
|
2069
|
-
body = parsedOutput.body;
|
|
2070
|
-
deserialized = deserializeAws_json1_1OperationNotPermittedException(body, context);
|
|
2071
|
-
exception = new OperationNotPermittedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2072
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2073
|
-
});
|
|
2074
|
-
}); };
|
|
2075
|
-
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2076
|
-
var body, deserialized, exception;
|
|
2077
|
-
return __generator(this, function (_a) {
|
|
2078
|
-
body = parsedOutput.body;
|
|
2079
|
-
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
2080
|
-
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2081
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2082
|
-
});
|
|
2083
|
-
}); };
|
|
2084
|
-
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2085
|
-
var body, deserialized, exception;
|
|
2086
|
-
return __generator(this, function (_a) {
|
|
2087
|
-
body = parsedOutput.body;
|
|
2088
|
-
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2089
|
-
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2090
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2091
|
-
});
|
|
2092
|
-
}); };
|
|
2093
|
-
var deserializeAws_json1_1ServerInternalErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2094
|
-
var body, deserialized, exception;
|
|
2095
|
-
return __generator(this, function (_a) {
|
|
2096
|
-
body = parsedOutput.body;
|
|
2097
|
-
deserialized = deserializeAws_json1_1ServerInternalErrorException(body, context);
|
|
2098
|
-
exception = new ServerInternalErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2099
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2100
|
-
});
|
|
2101
|
-
}); };
|
|
2102
|
-
var serializeAws_json1_1AgentIds = function (input, context) {
|
|
6
|
+
export const serializeAws_json1_1AssociateConfigurationItemsToApplicationCommand = async (input, context) => {
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/x-amz-json-1.1",
|
|
9
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.AssociateConfigurationItemsToApplication",
|
|
10
|
+
};
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(serializeAws_json1_1AssociateConfigurationItemsToApplicationRequest(input, context));
|
|
13
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
+
};
|
|
15
|
+
export const serializeAws_json1_1BatchDeleteImportDataCommand = async (input, context) => {
|
|
16
|
+
const headers = {
|
|
17
|
+
"content-type": "application/x-amz-json-1.1",
|
|
18
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.BatchDeleteImportData",
|
|
19
|
+
};
|
|
20
|
+
let body;
|
|
21
|
+
body = JSON.stringify(serializeAws_json1_1BatchDeleteImportDataRequest(input, context));
|
|
22
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
+
};
|
|
24
|
+
export const serializeAws_json1_1CreateApplicationCommand = async (input, context) => {
|
|
25
|
+
const headers = {
|
|
26
|
+
"content-type": "application/x-amz-json-1.1",
|
|
27
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateApplication",
|
|
28
|
+
};
|
|
29
|
+
let body;
|
|
30
|
+
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
31
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
|
+
};
|
|
33
|
+
export const serializeAws_json1_1CreateTagsCommand = async (input, context) => {
|
|
34
|
+
const headers = {
|
|
35
|
+
"content-type": "application/x-amz-json-1.1",
|
|
36
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateTags",
|
|
37
|
+
};
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify(serializeAws_json1_1CreateTagsRequest(input, context));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
42
|
+
export const serializeAws_json1_1DeleteApplicationsCommand = async (input, context) => {
|
|
43
|
+
const headers = {
|
|
44
|
+
"content-type": "application/x-amz-json-1.1",
|
|
45
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteApplications",
|
|
46
|
+
};
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify(serializeAws_json1_1DeleteApplicationsRequest(input, context));
|
|
49
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
+
};
|
|
51
|
+
export const serializeAws_json1_1DeleteTagsCommand = async (input, context) => {
|
|
52
|
+
const headers = {
|
|
53
|
+
"content-type": "application/x-amz-json-1.1",
|
|
54
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteTags",
|
|
55
|
+
};
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DeleteTagsRequest(input, context));
|
|
58
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
+
};
|
|
60
|
+
export const serializeAws_json1_1DescribeAgentsCommand = async (input, context) => {
|
|
61
|
+
const headers = {
|
|
62
|
+
"content-type": "application/x-amz-json-1.1",
|
|
63
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeAgents",
|
|
64
|
+
};
|
|
65
|
+
let body;
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAgentsRequest(input, context));
|
|
67
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
|
+
};
|
|
69
|
+
export const serializeAws_json1_1DescribeConfigurationsCommand = async (input, context) => {
|
|
70
|
+
const headers = {
|
|
71
|
+
"content-type": "application/x-amz-json-1.1",
|
|
72
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeConfigurations",
|
|
73
|
+
};
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(serializeAws_json1_1DescribeConfigurationsRequest(input, context));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
78
|
+
export const serializeAws_json1_1DescribeContinuousExportsCommand = async (input, context) => {
|
|
79
|
+
const headers = {
|
|
80
|
+
"content-type": "application/x-amz-json-1.1",
|
|
81
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeContinuousExports",
|
|
82
|
+
};
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify(serializeAws_json1_1DescribeContinuousExportsRequest(input, context));
|
|
85
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
+
};
|
|
87
|
+
export const serializeAws_json1_1DescribeExportConfigurationsCommand = async (input, context) => {
|
|
88
|
+
const headers = {
|
|
89
|
+
"content-type": "application/x-amz-json-1.1",
|
|
90
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportConfigurations",
|
|
91
|
+
};
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(serializeAws_json1_1DescribeExportConfigurationsRequest(input, context));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
96
|
+
export const serializeAws_json1_1DescribeExportTasksCommand = async (input, context) => {
|
|
97
|
+
const headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportTasks",
|
|
100
|
+
};
|
|
101
|
+
let body;
|
|
102
|
+
body = JSON.stringify(serializeAws_json1_1DescribeExportTasksRequest(input, context));
|
|
103
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
+
};
|
|
105
|
+
export const serializeAws_json1_1DescribeImportTasksCommand = async (input, context) => {
|
|
106
|
+
const headers = {
|
|
107
|
+
"content-type": "application/x-amz-json-1.1",
|
|
108
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeImportTasks",
|
|
109
|
+
};
|
|
110
|
+
let body;
|
|
111
|
+
body = JSON.stringify(serializeAws_json1_1DescribeImportTasksRequest(input, context));
|
|
112
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
+
};
|
|
114
|
+
export const serializeAws_json1_1DescribeTagsCommand = async (input, context) => {
|
|
115
|
+
const headers = {
|
|
116
|
+
"content-type": "application/x-amz-json-1.1",
|
|
117
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeTags",
|
|
118
|
+
};
|
|
119
|
+
let body;
|
|
120
|
+
body = JSON.stringify(serializeAws_json1_1DescribeTagsRequest(input, context));
|
|
121
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
|
+
};
|
|
123
|
+
export const serializeAws_json1_1DisassociateConfigurationItemsFromApplicationCommand = async (input, context) => {
|
|
124
|
+
const headers = {
|
|
125
|
+
"content-type": "application/x-amz-json-1.1",
|
|
126
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.DisassociateConfigurationItemsFromApplication",
|
|
127
|
+
};
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateConfigurationItemsFromApplicationRequest(input, context));
|
|
130
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
+
};
|
|
132
|
+
export const serializeAws_json1_1ExportConfigurationsCommand = async (input, context) => {
|
|
133
|
+
const headers = {
|
|
134
|
+
"content-type": "application/x-amz-json-1.1",
|
|
135
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.ExportConfigurations",
|
|
136
|
+
};
|
|
137
|
+
const body = "{}";
|
|
138
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
+
};
|
|
140
|
+
export const serializeAws_json1_1GetDiscoverySummaryCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.GetDiscoverySummary",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_1GetDiscoverySummaryRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
export const serializeAws_json1_1ListConfigurationsCommand = async (input, context) => {
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.1",
|
|
152
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListConfigurations",
|
|
153
|
+
};
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_1ListConfigurationsRequest(input, context));
|
|
156
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
+
};
|
|
158
|
+
export const serializeAws_json1_1ListServerNeighborsCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.1",
|
|
161
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListServerNeighbors",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_1ListServerNeighborsRequest(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
export const serializeAws_json1_1StartContinuousExportCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartContinuousExport",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1StartContinuousExportRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
export const serializeAws_json1_1StartDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
177
|
+
const headers = {
|
|
178
|
+
"content-type": "application/x-amz-json-1.1",
|
|
179
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartDataCollectionByAgentIds",
|
|
180
|
+
};
|
|
181
|
+
let body;
|
|
182
|
+
body = JSON.stringify(serializeAws_json1_1StartDataCollectionByAgentIdsRequest(input, context));
|
|
183
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
+
};
|
|
185
|
+
export const serializeAws_json1_1StartExportTaskCommand = async (input, context) => {
|
|
186
|
+
const headers = {
|
|
187
|
+
"content-type": "application/x-amz-json-1.1",
|
|
188
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartExportTask",
|
|
189
|
+
};
|
|
190
|
+
let body;
|
|
191
|
+
body = JSON.stringify(serializeAws_json1_1StartExportTaskRequest(input, context));
|
|
192
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
+
};
|
|
194
|
+
export const serializeAws_json1_1StartImportTaskCommand = async (input, context) => {
|
|
195
|
+
const headers = {
|
|
196
|
+
"content-type": "application/x-amz-json-1.1",
|
|
197
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartImportTask",
|
|
198
|
+
};
|
|
199
|
+
let body;
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_1StartImportTaskRequest(input, context));
|
|
201
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
|
+
};
|
|
203
|
+
export const serializeAws_json1_1StopContinuousExportCommand = async (input, context) => {
|
|
204
|
+
const headers = {
|
|
205
|
+
"content-type": "application/x-amz-json-1.1",
|
|
206
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopContinuousExport",
|
|
207
|
+
};
|
|
208
|
+
let body;
|
|
209
|
+
body = JSON.stringify(serializeAws_json1_1StopContinuousExportRequest(input, context));
|
|
210
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
+
};
|
|
212
|
+
export const serializeAws_json1_1StopDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
213
|
+
const headers = {
|
|
214
|
+
"content-type": "application/x-amz-json-1.1",
|
|
215
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopDataCollectionByAgentIds",
|
|
216
|
+
};
|
|
217
|
+
let body;
|
|
218
|
+
body = JSON.stringify(serializeAws_json1_1StopDataCollectionByAgentIdsRequest(input, context));
|
|
219
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
|
+
};
|
|
221
|
+
export const serializeAws_json1_1UpdateApplicationCommand = async (input, context) => {
|
|
222
|
+
const headers = {
|
|
223
|
+
"content-type": "application/x-amz-json-1.1",
|
|
224
|
+
"x-amz-target": "AWSPoseidonService_V2015_11_01.UpdateApplication",
|
|
225
|
+
};
|
|
226
|
+
let body;
|
|
227
|
+
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
228
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
|
+
};
|
|
230
|
+
export const deserializeAws_json1_1AssociateConfigurationItemsToApplicationCommand = async (output, context) => {
|
|
231
|
+
if (output.statusCode >= 300) {
|
|
232
|
+
return deserializeAws_json1_1AssociateConfigurationItemsToApplicationCommandError(output, context);
|
|
233
|
+
}
|
|
234
|
+
const data = await parseBody(output.body, context);
|
|
235
|
+
let contents = {};
|
|
236
|
+
contents = deserializeAws_json1_1AssociateConfigurationItemsToApplicationResponse(data, context);
|
|
237
|
+
const response = {
|
|
238
|
+
$metadata: deserializeMetadata(output),
|
|
239
|
+
...contents,
|
|
240
|
+
};
|
|
241
|
+
return Promise.resolve(response);
|
|
242
|
+
};
|
|
243
|
+
const deserializeAws_json1_1AssociateConfigurationItemsToApplicationCommandError = async (output, context) => {
|
|
244
|
+
const parsedOutput = {
|
|
245
|
+
...output,
|
|
246
|
+
body: await parseErrorBody(output.body, context),
|
|
247
|
+
};
|
|
248
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
249
|
+
switch (errorCode) {
|
|
250
|
+
case "AuthorizationErrorException":
|
|
251
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
252
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
253
|
+
case "HomeRegionNotSetException":
|
|
254
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
255
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
256
|
+
case "InvalidParameterException":
|
|
257
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
258
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
259
|
+
case "InvalidParameterValueException":
|
|
260
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
261
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
262
|
+
case "ServerInternalErrorException":
|
|
263
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
264
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
265
|
+
default:
|
|
266
|
+
const parsedBody = parsedOutput.body;
|
|
267
|
+
throwDefaultError({
|
|
268
|
+
output,
|
|
269
|
+
parsedBody,
|
|
270
|
+
exceptionCtor: __BaseException,
|
|
271
|
+
errorCode,
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
export const deserializeAws_json1_1BatchDeleteImportDataCommand = async (output, context) => {
|
|
276
|
+
if (output.statusCode >= 300) {
|
|
277
|
+
return deserializeAws_json1_1BatchDeleteImportDataCommandError(output, context);
|
|
278
|
+
}
|
|
279
|
+
const data = await parseBody(output.body, context);
|
|
280
|
+
let contents = {};
|
|
281
|
+
contents = deserializeAws_json1_1BatchDeleteImportDataResponse(data, context);
|
|
282
|
+
const response = {
|
|
283
|
+
$metadata: deserializeMetadata(output),
|
|
284
|
+
...contents,
|
|
285
|
+
};
|
|
286
|
+
return Promise.resolve(response);
|
|
287
|
+
};
|
|
288
|
+
const deserializeAws_json1_1BatchDeleteImportDataCommandError = async (output, context) => {
|
|
289
|
+
const parsedOutput = {
|
|
290
|
+
...output,
|
|
291
|
+
body: await parseErrorBody(output.body, context),
|
|
292
|
+
};
|
|
293
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
|
+
switch (errorCode) {
|
|
295
|
+
case "AuthorizationErrorException":
|
|
296
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
297
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
298
|
+
case "HomeRegionNotSetException":
|
|
299
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
300
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
301
|
+
case "InvalidParameterException":
|
|
302
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
303
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
304
|
+
case "InvalidParameterValueException":
|
|
305
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
306
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
307
|
+
case "ServerInternalErrorException":
|
|
308
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
309
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
310
|
+
default:
|
|
311
|
+
const parsedBody = parsedOutput.body;
|
|
312
|
+
throwDefaultError({
|
|
313
|
+
output,
|
|
314
|
+
parsedBody,
|
|
315
|
+
exceptionCtor: __BaseException,
|
|
316
|
+
errorCode,
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
export const deserializeAws_json1_1CreateApplicationCommand = async (output, context) => {
|
|
321
|
+
if (output.statusCode >= 300) {
|
|
322
|
+
return deserializeAws_json1_1CreateApplicationCommandError(output, context);
|
|
323
|
+
}
|
|
324
|
+
const data = await parseBody(output.body, context);
|
|
325
|
+
let contents = {};
|
|
326
|
+
contents = deserializeAws_json1_1CreateApplicationResponse(data, context);
|
|
327
|
+
const response = {
|
|
328
|
+
$metadata: deserializeMetadata(output),
|
|
329
|
+
...contents,
|
|
330
|
+
};
|
|
331
|
+
return Promise.resolve(response);
|
|
332
|
+
};
|
|
333
|
+
const deserializeAws_json1_1CreateApplicationCommandError = async (output, context) => {
|
|
334
|
+
const parsedOutput = {
|
|
335
|
+
...output,
|
|
336
|
+
body: await parseErrorBody(output.body, context),
|
|
337
|
+
};
|
|
338
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
339
|
+
switch (errorCode) {
|
|
340
|
+
case "AuthorizationErrorException":
|
|
341
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
342
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
343
|
+
case "HomeRegionNotSetException":
|
|
344
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
345
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
346
|
+
case "InvalidParameterException":
|
|
347
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
348
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
349
|
+
case "InvalidParameterValueException":
|
|
350
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
351
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
352
|
+
case "ServerInternalErrorException":
|
|
353
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
354
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
355
|
+
default:
|
|
356
|
+
const parsedBody = parsedOutput.body;
|
|
357
|
+
throwDefaultError({
|
|
358
|
+
output,
|
|
359
|
+
parsedBody,
|
|
360
|
+
exceptionCtor: __BaseException,
|
|
361
|
+
errorCode,
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
export const deserializeAws_json1_1CreateTagsCommand = async (output, context) => {
|
|
366
|
+
if (output.statusCode >= 300) {
|
|
367
|
+
return deserializeAws_json1_1CreateTagsCommandError(output, context);
|
|
368
|
+
}
|
|
369
|
+
const data = await parseBody(output.body, context);
|
|
370
|
+
let contents = {};
|
|
371
|
+
contents = deserializeAws_json1_1CreateTagsResponse(data, context);
|
|
372
|
+
const response = {
|
|
373
|
+
$metadata: deserializeMetadata(output),
|
|
374
|
+
...contents,
|
|
375
|
+
};
|
|
376
|
+
return Promise.resolve(response);
|
|
377
|
+
};
|
|
378
|
+
const deserializeAws_json1_1CreateTagsCommandError = async (output, context) => {
|
|
379
|
+
const parsedOutput = {
|
|
380
|
+
...output,
|
|
381
|
+
body: await parseErrorBody(output.body, context),
|
|
382
|
+
};
|
|
383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
384
|
+
switch (errorCode) {
|
|
385
|
+
case "AuthorizationErrorException":
|
|
386
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
387
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
388
|
+
case "HomeRegionNotSetException":
|
|
389
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
390
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
391
|
+
case "InvalidParameterException":
|
|
392
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
393
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
394
|
+
case "InvalidParameterValueException":
|
|
395
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
396
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
397
|
+
case "ResourceNotFoundException":
|
|
398
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
399
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
400
|
+
case "ServerInternalErrorException":
|
|
401
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
402
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
403
|
+
default:
|
|
404
|
+
const parsedBody = parsedOutput.body;
|
|
405
|
+
throwDefaultError({
|
|
406
|
+
output,
|
|
407
|
+
parsedBody,
|
|
408
|
+
exceptionCtor: __BaseException,
|
|
409
|
+
errorCode,
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
export const deserializeAws_json1_1DeleteApplicationsCommand = async (output, context) => {
|
|
414
|
+
if (output.statusCode >= 300) {
|
|
415
|
+
return deserializeAws_json1_1DeleteApplicationsCommandError(output, context);
|
|
416
|
+
}
|
|
417
|
+
const data = await parseBody(output.body, context);
|
|
418
|
+
let contents = {};
|
|
419
|
+
contents = deserializeAws_json1_1DeleteApplicationsResponse(data, context);
|
|
420
|
+
const response = {
|
|
421
|
+
$metadata: deserializeMetadata(output),
|
|
422
|
+
...contents,
|
|
423
|
+
};
|
|
424
|
+
return Promise.resolve(response);
|
|
425
|
+
};
|
|
426
|
+
const deserializeAws_json1_1DeleteApplicationsCommandError = async (output, context) => {
|
|
427
|
+
const parsedOutput = {
|
|
428
|
+
...output,
|
|
429
|
+
body: await parseErrorBody(output.body, context),
|
|
430
|
+
};
|
|
431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
432
|
+
switch (errorCode) {
|
|
433
|
+
case "AuthorizationErrorException":
|
|
434
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
435
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
436
|
+
case "HomeRegionNotSetException":
|
|
437
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
438
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
439
|
+
case "InvalidParameterException":
|
|
440
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
441
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
442
|
+
case "InvalidParameterValueException":
|
|
443
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
444
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
445
|
+
case "ServerInternalErrorException":
|
|
446
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
447
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
448
|
+
default:
|
|
449
|
+
const parsedBody = parsedOutput.body;
|
|
450
|
+
throwDefaultError({
|
|
451
|
+
output,
|
|
452
|
+
parsedBody,
|
|
453
|
+
exceptionCtor: __BaseException,
|
|
454
|
+
errorCode,
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
export const deserializeAws_json1_1DeleteTagsCommand = async (output, context) => {
|
|
459
|
+
if (output.statusCode >= 300) {
|
|
460
|
+
return deserializeAws_json1_1DeleteTagsCommandError(output, context);
|
|
461
|
+
}
|
|
462
|
+
const data = await parseBody(output.body, context);
|
|
463
|
+
let contents = {};
|
|
464
|
+
contents = deserializeAws_json1_1DeleteTagsResponse(data, context);
|
|
465
|
+
const response = {
|
|
466
|
+
$metadata: deserializeMetadata(output),
|
|
467
|
+
...contents,
|
|
468
|
+
};
|
|
469
|
+
return Promise.resolve(response);
|
|
470
|
+
};
|
|
471
|
+
const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) => {
|
|
472
|
+
const parsedOutput = {
|
|
473
|
+
...output,
|
|
474
|
+
body: await parseErrorBody(output.body, context),
|
|
475
|
+
};
|
|
476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
|
+
switch (errorCode) {
|
|
478
|
+
case "AuthorizationErrorException":
|
|
479
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
480
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
481
|
+
case "HomeRegionNotSetException":
|
|
482
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
483
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
484
|
+
case "InvalidParameterException":
|
|
485
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
486
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
487
|
+
case "InvalidParameterValueException":
|
|
488
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
489
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
490
|
+
case "ResourceNotFoundException":
|
|
491
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
492
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
493
|
+
case "ServerInternalErrorException":
|
|
494
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
495
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
496
|
+
default:
|
|
497
|
+
const parsedBody = parsedOutput.body;
|
|
498
|
+
throwDefaultError({
|
|
499
|
+
output,
|
|
500
|
+
parsedBody,
|
|
501
|
+
exceptionCtor: __BaseException,
|
|
502
|
+
errorCode,
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
export const deserializeAws_json1_1DescribeAgentsCommand = async (output, context) => {
|
|
507
|
+
if (output.statusCode >= 300) {
|
|
508
|
+
return deserializeAws_json1_1DescribeAgentsCommandError(output, context);
|
|
509
|
+
}
|
|
510
|
+
const data = await parseBody(output.body, context);
|
|
511
|
+
let contents = {};
|
|
512
|
+
contents = deserializeAws_json1_1DescribeAgentsResponse(data, context);
|
|
513
|
+
const response = {
|
|
514
|
+
$metadata: deserializeMetadata(output),
|
|
515
|
+
...contents,
|
|
516
|
+
};
|
|
517
|
+
return Promise.resolve(response);
|
|
518
|
+
};
|
|
519
|
+
const deserializeAws_json1_1DescribeAgentsCommandError = async (output, context) => {
|
|
520
|
+
const parsedOutput = {
|
|
521
|
+
...output,
|
|
522
|
+
body: await parseErrorBody(output.body, context),
|
|
523
|
+
};
|
|
524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
|
+
switch (errorCode) {
|
|
526
|
+
case "AuthorizationErrorException":
|
|
527
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
528
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
529
|
+
case "HomeRegionNotSetException":
|
|
530
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
531
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
532
|
+
case "InvalidParameterException":
|
|
533
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
534
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
535
|
+
case "InvalidParameterValueException":
|
|
536
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
537
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
538
|
+
case "ServerInternalErrorException":
|
|
539
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
540
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
541
|
+
default:
|
|
542
|
+
const parsedBody = parsedOutput.body;
|
|
543
|
+
throwDefaultError({
|
|
544
|
+
output,
|
|
545
|
+
parsedBody,
|
|
546
|
+
exceptionCtor: __BaseException,
|
|
547
|
+
errorCode,
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
export const deserializeAws_json1_1DescribeConfigurationsCommand = async (output, context) => {
|
|
552
|
+
if (output.statusCode >= 300) {
|
|
553
|
+
return deserializeAws_json1_1DescribeConfigurationsCommandError(output, context);
|
|
554
|
+
}
|
|
555
|
+
const data = await parseBody(output.body, context);
|
|
556
|
+
let contents = {};
|
|
557
|
+
contents = deserializeAws_json1_1DescribeConfigurationsResponse(data, context);
|
|
558
|
+
const response = {
|
|
559
|
+
$metadata: deserializeMetadata(output),
|
|
560
|
+
...contents,
|
|
561
|
+
};
|
|
562
|
+
return Promise.resolve(response);
|
|
563
|
+
};
|
|
564
|
+
const deserializeAws_json1_1DescribeConfigurationsCommandError = async (output, context) => {
|
|
565
|
+
const parsedOutput = {
|
|
566
|
+
...output,
|
|
567
|
+
body: await parseErrorBody(output.body, context),
|
|
568
|
+
};
|
|
569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
|
+
switch (errorCode) {
|
|
571
|
+
case "AuthorizationErrorException":
|
|
572
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
573
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
574
|
+
case "HomeRegionNotSetException":
|
|
575
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
576
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
577
|
+
case "InvalidParameterException":
|
|
578
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
579
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
580
|
+
case "InvalidParameterValueException":
|
|
581
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
582
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
583
|
+
case "ServerInternalErrorException":
|
|
584
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
585
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
586
|
+
default:
|
|
587
|
+
const parsedBody = parsedOutput.body;
|
|
588
|
+
throwDefaultError({
|
|
589
|
+
output,
|
|
590
|
+
parsedBody,
|
|
591
|
+
exceptionCtor: __BaseException,
|
|
592
|
+
errorCode,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
export const deserializeAws_json1_1DescribeContinuousExportsCommand = async (output, context) => {
|
|
597
|
+
if (output.statusCode >= 300) {
|
|
598
|
+
return deserializeAws_json1_1DescribeContinuousExportsCommandError(output, context);
|
|
599
|
+
}
|
|
600
|
+
const data = await parseBody(output.body, context);
|
|
601
|
+
let contents = {};
|
|
602
|
+
contents = deserializeAws_json1_1DescribeContinuousExportsResponse(data, context);
|
|
603
|
+
const response = {
|
|
604
|
+
$metadata: deserializeMetadata(output),
|
|
605
|
+
...contents,
|
|
606
|
+
};
|
|
607
|
+
return Promise.resolve(response);
|
|
608
|
+
};
|
|
609
|
+
const deserializeAws_json1_1DescribeContinuousExportsCommandError = async (output, context) => {
|
|
610
|
+
const parsedOutput = {
|
|
611
|
+
...output,
|
|
612
|
+
body: await parseErrorBody(output.body, context),
|
|
613
|
+
};
|
|
614
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
+
switch (errorCode) {
|
|
616
|
+
case "AuthorizationErrorException":
|
|
617
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
618
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
619
|
+
case "HomeRegionNotSetException":
|
|
620
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
621
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
622
|
+
case "InvalidParameterException":
|
|
623
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
624
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
625
|
+
case "InvalidParameterValueException":
|
|
626
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
627
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
628
|
+
case "OperationNotPermittedException":
|
|
629
|
+
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
630
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
631
|
+
case "ResourceNotFoundException":
|
|
632
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
633
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
634
|
+
case "ServerInternalErrorException":
|
|
635
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
636
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
637
|
+
default:
|
|
638
|
+
const parsedBody = parsedOutput.body;
|
|
639
|
+
throwDefaultError({
|
|
640
|
+
output,
|
|
641
|
+
parsedBody,
|
|
642
|
+
exceptionCtor: __BaseException,
|
|
643
|
+
errorCode,
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
export const deserializeAws_json1_1DescribeExportConfigurationsCommand = async (output, context) => {
|
|
648
|
+
if (output.statusCode >= 300) {
|
|
649
|
+
return deserializeAws_json1_1DescribeExportConfigurationsCommandError(output, context);
|
|
650
|
+
}
|
|
651
|
+
const data = await parseBody(output.body, context);
|
|
652
|
+
let contents = {};
|
|
653
|
+
contents = deserializeAws_json1_1DescribeExportConfigurationsResponse(data, context);
|
|
654
|
+
const response = {
|
|
655
|
+
$metadata: deserializeMetadata(output),
|
|
656
|
+
...contents,
|
|
657
|
+
};
|
|
658
|
+
return Promise.resolve(response);
|
|
659
|
+
};
|
|
660
|
+
const deserializeAws_json1_1DescribeExportConfigurationsCommandError = async (output, context) => {
|
|
661
|
+
const parsedOutput = {
|
|
662
|
+
...output,
|
|
663
|
+
body: await parseErrorBody(output.body, context),
|
|
664
|
+
};
|
|
665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
|
+
switch (errorCode) {
|
|
667
|
+
case "AuthorizationErrorException":
|
|
668
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
669
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
670
|
+
case "HomeRegionNotSetException":
|
|
671
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
672
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
673
|
+
case "InvalidParameterException":
|
|
674
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
675
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
676
|
+
case "InvalidParameterValueException":
|
|
677
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
678
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
679
|
+
case "ResourceNotFoundException":
|
|
680
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
681
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
682
|
+
case "ServerInternalErrorException":
|
|
683
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
684
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
685
|
+
default:
|
|
686
|
+
const parsedBody = parsedOutput.body;
|
|
687
|
+
throwDefaultError({
|
|
688
|
+
output,
|
|
689
|
+
parsedBody,
|
|
690
|
+
exceptionCtor: __BaseException,
|
|
691
|
+
errorCode,
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
export const deserializeAws_json1_1DescribeExportTasksCommand = async (output, context) => {
|
|
696
|
+
if (output.statusCode >= 300) {
|
|
697
|
+
return deserializeAws_json1_1DescribeExportTasksCommandError(output, context);
|
|
698
|
+
}
|
|
699
|
+
const data = await parseBody(output.body, context);
|
|
700
|
+
let contents = {};
|
|
701
|
+
contents = deserializeAws_json1_1DescribeExportTasksResponse(data, context);
|
|
702
|
+
const response = {
|
|
703
|
+
$metadata: deserializeMetadata(output),
|
|
704
|
+
...contents,
|
|
705
|
+
};
|
|
706
|
+
return Promise.resolve(response);
|
|
707
|
+
};
|
|
708
|
+
const deserializeAws_json1_1DescribeExportTasksCommandError = async (output, context) => {
|
|
709
|
+
const parsedOutput = {
|
|
710
|
+
...output,
|
|
711
|
+
body: await parseErrorBody(output.body, context),
|
|
712
|
+
};
|
|
713
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
+
switch (errorCode) {
|
|
715
|
+
case "AuthorizationErrorException":
|
|
716
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
717
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
718
|
+
case "HomeRegionNotSetException":
|
|
719
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
720
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
721
|
+
case "InvalidParameterException":
|
|
722
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
723
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
724
|
+
case "InvalidParameterValueException":
|
|
725
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
726
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
727
|
+
case "ServerInternalErrorException":
|
|
728
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
729
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
730
|
+
default:
|
|
731
|
+
const parsedBody = parsedOutput.body;
|
|
732
|
+
throwDefaultError({
|
|
733
|
+
output,
|
|
734
|
+
parsedBody,
|
|
735
|
+
exceptionCtor: __BaseException,
|
|
736
|
+
errorCode,
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
};
|
|
740
|
+
export const deserializeAws_json1_1DescribeImportTasksCommand = async (output, context) => {
|
|
741
|
+
if (output.statusCode >= 300) {
|
|
742
|
+
return deserializeAws_json1_1DescribeImportTasksCommandError(output, context);
|
|
743
|
+
}
|
|
744
|
+
const data = await parseBody(output.body, context);
|
|
745
|
+
let contents = {};
|
|
746
|
+
contents = deserializeAws_json1_1DescribeImportTasksResponse(data, context);
|
|
747
|
+
const response = {
|
|
748
|
+
$metadata: deserializeMetadata(output),
|
|
749
|
+
...contents,
|
|
750
|
+
};
|
|
751
|
+
return Promise.resolve(response);
|
|
752
|
+
};
|
|
753
|
+
const deserializeAws_json1_1DescribeImportTasksCommandError = async (output, context) => {
|
|
754
|
+
const parsedOutput = {
|
|
755
|
+
...output,
|
|
756
|
+
body: await parseErrorBody(output.body, context),
|
|
757
|
+
};
|
|
758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
switch (errorCode) {
|
|
760
|
+
case "AuthorizationErrorException":
|
|
761
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
762
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
763
|
+
case "HomeRegionNotSetException":
|
|
764
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
765
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
766
|
+
case "InvalidParameterException":
|
|
767
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
768
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
769
|
+
case "InvalidParameterValueException":
|
|
770
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
771
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
772
|
+
case "ServerInternalErrorException":
|
|
773
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
774
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
775
|
+
default:
|
|
776
|
+
const parsedBody = parsedOutput.body;
|
|
777
|
+
throwDefaultError({
|
|
778
|
+
output,
|
|
779
|
+
parsedBody,
|
|
780
|
+
exceptionCtor: __BaseException,
|
|
781
|
+
errorCode,
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
export const deserializeAws_json1_1DescribeTagsCommand = async (output, context) => {
|
|
786
|
+
if (output.statusCode >= 300) {
|
|
787
|
+
return deserializeAws_json1_1DescribeTagsCommandError(output, context);
|
|
788
|
+
}
|
|
789
|
+
const data = await parseBody(output.body, context);
|
|
790
|
+
let contents = {};
|
|
791
|
+
contents = deserializeAws_json1_1DescribeTagsResponse(data, context);
|
|
792
|
+
const response = {
|
|
793
|
+
$metadata: deserializeMetadata(output),
|
|
794
|
+
...contents,
|
|
795
|
+
};
|
|
796
|
+
return Promise.resolve(response);
|
|
797
|
+
};
|
|
798
|
+
const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) => {
|
|
799
|
+
const parsedOutput = {
|
|
800
|
+
...output,
|
|
801
|
+
body: await parseErrorBody(output.body, context),
|
|
802
|
+
};
|
|
803
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
+
switch (errorCode) {
|
|
805
|
+
case "AuthorizationErrorException":
|
|
806
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
807
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
808
|
+
case "HomeRegionNotSetException":
|
|
809
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
810
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
811
|
+
case "InvalidParameterException":
|
|
812
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
813
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
814
|
+
case "InvalidParameterValueException":
|
|
815
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
816
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
817
|
+
case "ResourceNotFoundException":
|
|
818
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
819
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
820
|
+
case "ServerInternalErrorException":
|
|
821
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
822
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
823
|
+
default:
|
|
824
|
+
const parsedBody = parsedOutput.body;
|
|
825
|
+
throwDefaultError({
|
|
826
|
+
output,
|
|
827
|
+
parsedBody,
|
|
828
|
+
exceptionCtor: __BaseException,
|
|
829
|
+
errorCode,
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
export const deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationCommand = async (output, context) => {
|
|
834
|
+
if (output.statusCode >= 300) {
|
|
835
|
+
return deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationCommandError(output, context);
|
|
836
|
+
}
|
|
837
|
+
const data = await parseBody(output.body, context);
|
|
838
|
+
let contents = {};
|
|
839
|
+
contents = deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationResponse(data, context);
|
|
840
|
+
const response = {
|
|
841
|
+
$metadata: deserializeMetadata(output),
|
|
842
|
+
...contents,
|
|
843
|
+
};
|
|
844
|
+
return Promise.resolve(response);
|
|
845
|
+
};
|
|
846
|
+
const deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationCommandError = async (output, context) => {
|
|
847
|
+
const parsedOutput = {
|
|
848
|
+
...output,
|
|
849
|
+
body: await parseErrorBody(output.body, context),
|
|
850
|
+
};
|
|
851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
|
+
switch (errorCode) {
|
|
853
|
+
case "AuthorizationErrorException":
|
|
854
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
855
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
856
|
+
case "HomeRegionNotSetException":
|
|
857
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
858
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
859
|
+
case "InvalidParameterException":
|
|
860
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
861
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
862
|
+
case "InvalidParameterValueException":
|
|
863
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
864
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
865
|
+
case "ServerInternalErrorException":
|
|
866
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
867
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
868
|
+
default:
|
|
869
|
+
const parsedBody = parsedOutput.body;
|
|
870
|
+
throwDefaultError({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
exceptionCtor: __BaseException,
|
|
874
|
+
errorCode,
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
};
|
|
878
|
+
export const deserializeAws_json1_1ExportConfigurationsCommand = async (output, context) => {
|
|
879
|
+
if (output.statusCode >= 300) {
|
|
880
|
+
return deserializeAws_json1_1ExportConfigurationsCommandError(output, context);
|
|
881
|
+
}
|
|
882
|
+
const data = await parseBody(output.body, context);
|
|
883
|
+
let contents = {};
|
|
884
|
+
contents = deserializeAws_json1_1ExportConfigurationsResponse(data, context);
|
|
885
|
+
const response = {
|
|
886
|
+
$metadata: deserializeMetadata(output),
|
|
887
|
+
...contents,
|
|
888
|
+
};
|
|
889
|
+
return Promise.resolve(response);
|
|
890
|
+
};
|
|
891
|
+
const deserializeAws_json1_1ExportConfigurationsCommandError = async (output, context) => {
|
|
892
|
+
const parsedOutput = {
|
|
893
|
+
...output,
|
|
894
|
+
body: await parseErrorBody(output.body, context),
|
|
895
|
+
};
|
|
896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
switch (errorCode) {
|
|
898
|
+
case "AuthorizationErrorException":
|
|
899
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
900
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
901
|
+
case "HomeRegionNotSetException":
|
|
902
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
903
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
904
|
+
case "InvalidParameterException":
|
|
905
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
906
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
907
|
+
case "InvalidParameterValueException":
|
|
908
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
909
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
910
|
+
case "OperationNotPermittedException":
|
|
911
|
+
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
912
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
913
|
+
case "ServerInternalErrorException":
|
|
914
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
915
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
916
|
+
default:
|
|
917
|
+
const parsedBody = parsedOutput.body;
|
|
918
|
+
throwDefaultError({
|
|
919
|
+
output,
|
|
920
|
+
parsedBody,
|
|
921
|
+
exceptionCtor: __BaseException,
|
|
922
|
+
errorCode,
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
export const deserializeAws_json1_1GetDiscoverySummaryCommand = async (output, context) => {
|
|
927
|
+
if (output.statusCode >= 300) {
|
|
928
|
+
return deserializeAws_json1_1GetDiscoverySummaryCommandError(output, context);
|
|
929
|
+
}
|
|
930
|
+
const data = await parseBody(output.body, context);
|
|
931
|
+
let contents = {};
|
|
932
|
+
contents = deserializeAws_json1_1GetDiscoverySummaryResponse(data, context);
|
|
933
|
+
const response = {
|
|
934
|
+
$metadata: deserializeMetadata(output),
|
|
935
|
+
...contents,
|
|
936
|
+
};
|
|
937
|
+
return Promise.resolve(response);
|
|
938
|
+
};
|
|
939
|
+
const deserializeAws_json1_1GetDiscoverySummaryCommandError = async (output, context) => {
|
|
940
|
+
const parsedOutput = {
|
|
941
|
+
...output,
|
|
942
|
+
body: await parseErrorBody(output.body, context),
|
|
943
|
+
};
|
|
944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
|
+
switch (errorCode) {
|
|
946
|
+
case "AuthorizationErrorException":
|
|
947
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
948
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
949
|
+
case "HomeRegionNotSetException":
|
|
950
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
951
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
952
|
+
case "InvalidParameterException":
|
|
953
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
954
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
955
|
+
case "InvalidParameterValueException":
|
|
956
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
957
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
958
|
+
case "ServerInternalErrorException":
|
|
959
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
960
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
961
|
+
default:
|
|
962
|
+
const parsedBody = parsedOutput.body;
|
|
963
|
+
throwDefaultError({
|
|
964
|
+
output,
|
|
965
|
+
parsedBody,
|
|
966
|
+
exceptionCtor: __BaseException,
|
|
967
|
+
errorCode,
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
export const deserializeAws_json1_1ListConfigurationsCommand = async (output, context) => {
|
|
972
|
+
if (output.statusCode >= 300) {
|
|
973
|
+
return deserializeAws_json1_1ListConfigurationsCommandError(output, context);
|
|
974
|
+
}
|
|
975
|
+
const data = await parseBody(output.body, context);
|
|
976
|
+
let contents = {};
|
|
977
|
+
contents = deserializeAws_json1_1ListConfigurationsResponse(data, context);
|
|
978
|
+
const response = {
|
|
979
|
+
$metadata: deserializeMetadata(output),
|
|
980
|
+
...contents,
|
|
981
|
+
};
|
|
982
|
+
return Promise.resolve(response);
|
|
983
|
+
};
|
|
984
|
+
const deserializeAws_json1_1ListConfigurationsCommandError = async (output, context) => {
|
|
985
|
+
const parsedOutput = {
|
|
986
|
+
...output,
|
|
987
|
+
body: await parseErrorBody(output.body, context),
|
|
988
|
+
};
|
|
989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
|
+
switch (errorCode) {
|
|
991
|
+
case "AuthorizationErrorException":
|
|
992
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
993
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
994
|
+
case "HomeRegionNotSetException":
|
|
995
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
996
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
997
|
+
case "InvalidParameterException":
|
|
998
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
999
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1000
|
+
case "InvalidParameterValueException":
|
|
1001
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1002
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1003
|
+
case "ResourceNotFoundException":
|
|
1004
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1005
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1006
|
+
case "ServerInternalErrorException":
|
|
1007
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1008
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1009
|
+
default:
|
|
1010
|
+
const parsedBody = parsedOutput.body;
|
|
1011
|
+
throwDefaultError({
|
|
1012
|
+
output,
|
|
1013
|
+
parsedBody,
|
|
1014
|
+
exceptionCtor: __BaseException,
|
|
1015
|
+
errorCode,
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
export const deserializeAws_json1_1ListServerNeighborsCommand = async (output, context) => {
|
|
1020
|
+
if (output.statusCode >= 300) {
|
|
1021
|
+
return deserializeAws_json1_1ListServerNeighborsCommandError(output, context);
|
|
1022
|
+
}
|
|
1023
|
+
const data = await parseBody(output.body, context);
|
|
1024
|
+
let contents = {};
|
|
1025
|
+
contents = deserializeAws_json1_1ListServerNeighborsResponse(data, context);
|
|
1026
|
+
const response = {
|
|
1027
|
+
$metadata: deserializeMetadata(output),
|
|
1028
|
+
...contents,
|
|
1029
|
+
};
|
|
1030
|
+
return Promise.resolve(response);
|
|
1031
|
+
};
|
|
1032
|
+
const deserializeAws_json1_1ListServerNeighborsCommandError = async (output, context) => {
|
|
1033
|
+
const parsedOutput = {
|
|
1034
|
+
...output,
|
|
1035
|
+
body: await parseErrorBody(output.body, context),
|
|
1036
|
+
};
|
|
1037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
|
+
switch (errorCode) {
|
|
1039
|
+
case "AuthorizationErrorException":
|
|
1040
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1041
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1042
|
+
case "HomeRegionNotSetException":
|
|
1043
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1044
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1045
|
+
case "InvalidParameterException":
|
|
1046
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1047
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1048
|
+
case "InvalidParameterValueException":
|
|
1049
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1050
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1051
|
+
case "ServerInternalErrorException":
|
|
1052
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1053
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1054
|
+
default:
|
|
1055
|
+
const parsedBody = parsedOutput.body;
|
|
1056
|
+
throwDefaultError({
|
|
1057
|
+
output,
|
|
1058
|
+
parsedBody,
|
|
1059
|
+
exceptionCtor: __BaseException,
|
|
1060
|
+
errorCode,
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
};
|
|
1064
|
+
export const deserializeAws_json1_1StartContinuousExportCommand = async (output, context) => {
|
|
1065
|
+
if (output.statusCode >= 300) {
|
|
1066
|
+
return deserializeAws_json1_1StartContinuousExportCommandError(output, context);
|
|
1067
|
+
}
|
|
1068
|
+
const data = await parseBody(output.body, context);
|
|
1069
|
+
let contents = {};
|
|
1070
|
+
contents = deserializeAws_json1_1StartContinuousExportResponse(data, context);
|
|
1071
|
+
const response = {
|
|
1072
|
+
$metadata: deserializeMetadata(output),
|
|
1073
|
+
...contents,
|
|
1074
|
+
};
|
|
1075
|
+
return Promise.resolve(response);
|
|
1076
|
+
};
|
|
1077
|
+
const deserializeAws_json1_1StartContinuousExportCommandError = async (output, context) => {
|
|
1078
|
+
const parsedOutput = {
|
|
1079
|
+
...output,
|
|
1080
|
+
body: await parseErrorBody(output.body, context),
|
|
1081
|
+
};
|
|
1082
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1083
|
+
switch (errorCode) {
|
|
1084
|
+
case "AuthorizationErrorException":
|
|
1085
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1086
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1087
|
+
case "ConflictErrorException":
|
|
1088
|
+
case "com.amazonaws.applicationdiscoveryservice#ConflictErrorException":
|
|
1089
|
+
throw await deserializeAws_json1_1ConflictErrorExceptionResponse(parsedOutput, context);
|
|
1090
|
+
case "HomeRegionNotSetException":
|
|
1091
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1092
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1093
|
+
case "InvalidParameterException":
|
|
1094
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1095
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1096
|
+
case "InvalidParameterValueException":
|
|
1097
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1098
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1099
|
+
case "OperationNotPermittedException":
|
|
1100
|
+
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1101
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1102
|
+
case "ResourceInUseException":
|
|
1103
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
1104
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1105
|
+
case "ServerInternalErrorException":
|
|
1106
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1107
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1108
|
+
default:
|
|
1109
|
+
const parsedBody = parsedOutput.body;
|
|
1110
|
+
throwDefaultError({
|
|
1111
|
+
output,
|
|
1112
|
+
parsedBody,
|
|
1113
|
+
exceptionCtor: __BaseException,
|
|
1114
|
+
errorCode,
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
};
|
|
1118
|
+
export const deserializeAws_json1_1StartDataCollectionByAgentIdsCommand = async (output, context) => {
|
|
1119
|
+
if (output.statusCode >= 300) {
|
|
1120
|
+
return deserializeAws_json1_1StartDataCollectionByAgentIdsCommandError(output, context);
|
|
1121
|
+
}
|
|
1122
|
+
const data = await parseBody(output.body, context);
|
|
1123
|
+
let contents = {};
|
|
1124
|
+
contents = deserializeAws_json1_1StartDataCollectionByAgentIdsResponse(data, context);
|
|
1125
|
+
const response = {
|
|
1126
|
+
$metadata: deserializeMetadata(output),
|
|
1127
|
+
...contents,
|
|
1128
|
+
};
|
|
1129
|
+
return Promise.resolve(response);
|
|
1130
|
+
};
|
|
1131
|
+
const deserializeAws_json1_1StartDataCollectionByAgentIdsCommandError = async (output, context) => {
|
|
1132
|
+
const parsedOutput = {
|
|
1133
|
+
...output,
|
|
1134
|
+
body: await parseErrorBody(output.body, context),
|
|
1135
|
+
};
|
|
1136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
|
+
switch (errorCode) {
|
|
1138
|
+
case "AuthorizationErrorException":
|
|
1139
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1140
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1141
|
+
case "HomeRegionNotSetException":
|
|
1142
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1143
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1144
|
+
case "InvalidParameterException":
|
|
1145
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1146
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1147
|
+
case "InvalidParameterValueException":
|
|
1148
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1149
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1150
|
+
case "ServerInternalErrorException":
|
|
1151
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1152
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1153
|
+
default:
|
|
1154
|
+
const parsedBody = parsedOutput.body;
|
|
1155
|
+
throwDefaultError({
|
|
1156
|
+
output,
|
|
1157
|
+
parsedBody,
|
|
1158
|
+
exceptionCtor: __BaseException,
|
|
1159
|
+
errorCode,
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
};
|
|
1163
|
+
export const deserializeAws_json1_1StartExportTaskCommand = async (output, context) => {
|
|
1164
|
+
if (output.statusCode >= 300) {
|
|
1165
|
+
return deserializeAws_json1_1StartExportTaskCommandError(output, context);
|
|
1166
|
+
}
|
|
1167
|
+
const data = await parseBody(output.body, context);
|
|
1168
|
+
let contents = {};
|
|
1169
|
+
contents = deserializeAws_json1_1StartExportTaskResponse(data, context);
|
|
1170
|
+
const response = {
|
|
1171
|
+
$metadata: deserializeMetadata(output),
|
|
1172
|
+
...contents,
|
|
1173
|
+
};
|
|
1174
|
+
return Promise.resolve(response);
|
|
1175
|
+
};
|
|
1176
|
+
const deserializeAws_json1_1StartExportTaskCommandError = async (output, context) => {
|
|
1177
|
+
const parsedOutput = {
|
|
1178
|
+
...output,
|
|
1179
|
+
body: await parseErrorBody(output.body, context),
|
|
1180
|
+
};
|
|
1181
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1182
|
+
switch (errorCode) {
|
|
1183
|
+
case "AuthorizationErrorException":
|
|
1184
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1185
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1186
|
+
case "HomeRegionNotSetException":
|
|
1187
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1188
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1189
|
+
case "InvalidParameterException":
|
|
1190
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1191
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1192
|
+
case "InvalidParameterValueException":
|
|
1193
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1194
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1195
|
+
case "OperationNotPermittedException":
|
|
1196
|
+
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1197
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1198
|
+
case "ServerInternalErrorException":
|
|
1199
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1200
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1201
|
+
default:
|
|
1202
|
+
const parsedBody = parsedOutput.body;
|
|
1203
|
+
throwDefaultError({
|
|
1204
|
+
output,
|
|
1205
|
+
parsedBody,
|
|
1206
|
+
exceptionCtor: __BaseException,
|
|
1207
|
+
errorCode,
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
export const deserializeAws_json1_1StartImportTaskCommand = async (output, context) => {
|
|
1212
|
+
if (output.statusCode >= 300) {
|
|
1213
|
+
return deserializeAws_json1_1StartImportTaskCommandError(output, context);
|
|
1214
|
+
}
|
|
1215
|
+
const data = await parseBody(output.body, context);
|
|
1216
|
+
let contents = {};
|
|
1217
|
+
contents = deserializeAws_json1_1StartImportTaskResponse(data, context);
|
|
1218
|
+
const response = {
|
|
1219
|
+
$metadata: deserializeMetadata(output),
|
|
1220
|
+
...contents,
|
|
1221
|
+
};
|
|
1222
|
+
return Promise.resolve(response);
|
|
1223
|
+
};
|
|
1224
|
+
const deserializeAws_json1_1StartImportTaskCommandError = async (output, context) => {
|
|
1225
|
+
const parsedOutput = {
|
|
1226
|
+
...output,
|
|
1227
|
+
body: await parseErrorBody(output.body, context),
|
|
1228
|
+
};
|
|
1229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
|
+
switch (errorCode) {
|
|
1231
|
+
case "AuthorizationErrorException":
|
|
1232
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1233
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1234
|
+
case "HomeRegionNotSetException":
|
|
1235
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1236
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1237
|
+
case "InvalidParameterException":
|
|
1238
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1239
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1240
|
+
case "InvalidParameterValueException":
|
|
1241
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1242
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1243
|
+
case "ResourceInUseException":
|
|
1244
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
1245
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1246
|
+
case "ServerInternalErrorException":
|
|
1247
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1248
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1249
|
+
default:
|
|
1250
|
+
const parsedBody = parsedOutput.body;
|
|
1251
|
+
throwDefaultError({
|
|
1252
|
+
output,
|
|
1253
|
+
parsedBody,
|
|
1254
|
+
exceptionCtor: __BaseException,
|
|
1255
|
+
errorCode,
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
export const deserializeAws_json1_1StopContinuousExportCommand = async (output, context) => {
|
|
1260
|
+
if (output.statusCode >= 300) {
|
|
1261
|
+
return deserializeAws_json1_1StopContinuousExportCommandError(output, context);
|
|
1262
|
+
}
|
|
1263
|
+
const data = await parseBody(output.body, context);
|
|
1264
|
+
let contents = {};
|
|
1265
|
+
contents = deserializeAws_json1_1StopContinuousExportResponse(data, context);
|
|
1266
|
+
const response = {
|
|
1267
|
+
$metadata: deserializeMetadata(output),
|
|
1268
|
+
...contents,
|
|
1269
|
+
};
|
|
1270
|
+
return Promise.resolve(response);
|
|
1271
|
+
};
|
|
1272
|
+
const deserializeAws_json1_1StopContinuousExportCommandError = async (output, context) => {
|
|
1273
|
+
const parsedOutput = {
|
|
1274
|
+
...output,
|
|
1275
|
+
body: await parseErrorBody(output.body, context),
|
|
1276
|
+
};
|
|
1277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
+
switch (errorCode) {
|
|
1279
|
+
case "AuthorizationErrorException":
|
|
1280
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1281
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1282
|
+
case "HomeRegionNotSetException":
|
|
1283
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1284
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1285
|
+
case "InvalidParameterException":
|
|
1286
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1287
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1288
|
+
case "InvalidParameterValueException":
|
|
1289
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1290
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1291
|
+
case "OperationNotPermittedException":
|
|
1292
|
+
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1293
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1294
|
+
case "ResourceInUseException":
|
|
1295
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
1296
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1297
|
+
case "ResourceNotFoundException":
|
|
1298
|
+
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
1299
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1300
|
+
case "ServerInternalErrorException":
|
|
1301
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1302
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1303
|
+
default:
|
|
1304
|
+
const parsedBody = parsedOutput.body;
|
|
1305
|
+
throwDefaultError({
|
|
1306
|
+
output,
|
|
1307
|
+
parsedBody,
|
|
1308
|
+
exceptionCtor: __BaseException,
|
|
1309
|
+
errorCode,
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
};
|
|
1313
|
+
export const deserializeAws_json1_1StopDataCollectionByAgentIdsCommand = async (output, context) => {
|
|
1314
|
+
if (output.statusCode >= 300) {
|
|
1315
|
+
return deserializeAws_json1_1StopDataCollectionByAgentIdsCommandError(output, context);
|
|
1316
|
+
}
|
|
1317
|
+
const data = await parseBody(output.body, context);
|
|
1318
|
+
let contents = {};
|
|
1319
|
+
contents = deserializeAws_json1_1StopDataCollectionByAgentIdsResponse(data, context);
|
|
1320
|
+
const response = {
|
|
1321
|
+
$metadata: deserializeMetadata(output),
|
|
1322
|
+
...contents,
|
|
1323
|
+
};
|
|
1324
|
+
return Promise.resolve(response);
|
|
1325
|
+
};
|
|
1326
|
+
const deserializeAws_json1_1StopDataCollectionByAgentIdsCommandError = async (output, context) => {
|
|
1327
|
+
const parsedOutput = {
|
|
1328
|
+
...output,
|
|
1329
|
+
body: await parseErrorBody(output.body, context),
|
|
1330
|
+
};
|
|
1331
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
|
+
switch (errorCode) {
|
|
1333
|
+
case "AuthorizationErrorException":
|
|
1334
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1335
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1336
|
+
case "HomeRegionNotSetException":
|
|
1337
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1338
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1339
|
+
case "InvalidParameterException":
|
|
1340
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1341
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1342
|
+
case "InvalidParameterValueException":
|
|
1343
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1344
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1345
|
+
case "ServerInternalErrorException":
|
|
1346
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1347
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1348
|
+
default:
|
|
1349
|
+
const parsedBody = parsedOutput.body;
|
|
1350
|
+
throwDefaultError({
|
|
1351
|
+
output,
|
|
1352
|
+
parsedBody,
|
|
1353
|
+
exceptionCtor: __BaseException,
|
|
1354
|
+
errorCode,
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
};
|
|
1358
|
+
export const deserializeAws_json1_1UpdateApplicationCommand = async (output, context) => {
|
|
1359
|
+
if (output.statusCode >= 300) {
|
|
1360
|
+
return deserializeAws_json1_1UpdateApplicationCommandError(output, context);
|
|
1361
|
+
}
|
|
1362
|
+
const data = await parseBody(output.body, context);
|
|
1363
|
+
let contents = {};
|
|
1364
|
+
contents = deserializeAws_json1_1UpdateApplicationResponse(data, context);
|
|
1365
|
+
const response = {
|
|
1366
|
+
$metadata: deserializeMetadata(output),
|
|
1367
|
+
...contents,
|
|
1368
|
+
};
|
|
1369
|
+
return Promise.resolve(response);
|
|
1370
|
+
};
|
|
1371
|
+
const deserializeAws_json1_1UpdateApplicationCommandError = async (output, context) => {
|
|
1372
|
+
const parsedOutput = {
|
|
1373
|
+
...output,
|
|
1374
|
+
body: await parseErrorBody(output.body, context),
|
|
1375
|
+
};
|
|
1376
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
+
switch (errorCode) {
|
|
1378
|
+
case "AuthorizationErrorException":
|
|
1379
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1380
|
+
throw await deserializeAws_json1_1AuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1381
|
+
case "HomeRegionNotSetException":
|
|
1382
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1383
|
+
throw await deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context);
|
|
1384
|
+
case "InvalidParameterException":
|
|
1385
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
1386
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1387
|
+
case "InvalidParameterValueException":
|
|
1388
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1389
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1390
|
+
case "ServerInternalErrorException":
|
|
1391
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1392
|
+
throw await deserializeAws_json1_1ServerInternalErrorExceptionResponse(parsedOutput, context);
|
|
1393
|
+
default:
|
|
1394
|
+
const parsedBody = parsedOutput.body;
|
|
1395
|
+
throwDefaultError({
|
|
1396
|
+
output,
|
|
1397
|
+
parsedBody,
|
|
1398
|
+
exceptionCtor: __BaseException,
|
|
1399
|
+
errorCode,
|
|
1400
|
+
});
|
|
1401
|
+
}
|
|
1402
|
+
};
|
|
1403
|
+
const deserializeAws_json1_1AuthorizationErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1404
|
+
const body = parsedOutput.body;
|
|
1405
|
+
const deserialized = deserializeAws_json1_1AuthorizationErrorException(body, context);
|
|
1406
|
+
const exception = new AuthorizationErrorException({
|
|
1407
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1408
|
+
...deserialized,
|
|
1409
|
+
});
|
|
1410
|
+
return __decorateServiceException(exception, body);
|
|
1411
|
+
};
|
|
1412
|
+
const deserializeAws_json1_1ConflictErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1413
|
+
const body = parsedOutput.body;
|
|
1414
|
+
const deserialized = deserializeAws_json1_1ConflictErrorException(body, context);
|
|
1415
|
+
const exception = new ConflictErrorException({
|
|
1416
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1417
|
+
...deserialized,
|
|
1418
|
+
});
|
|
1419
|
+
return __decorateServiceException(exception, body);
|
|
1420
|
+
};
|
|
1421
|
+
const deserializeAws_json1_1HomeRegionNotSetExceptionResponse = async (parsedOutput, context) => {
|
|
1422
|
+
const body = parsedOutput.body;
|
|
1423
|
+
const deserialized = deserializeAws_json1_1HomeRegionNotSetException(body, context);
|
|
1424
|
+
const exception = new HomeRegionNotSetException({
|
|
1425
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1426
|
+
...deserialized,
|
|
1427
|
+
});
|
|
1428
|
+
return __decorateServiceException(exception, body);
|
|
1429
|
+
};
|
|
1430
|
+
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
1431
|
+
const body = parsedOutput.body;
|
|
1432
|
+
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
1433
|
+
const exception = new InvalidParameterException({
|
|
1434
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1435
|
+
...deserialized,
|
|
1436
|
+
});
|
|
1437
|
+
return __decorateServiceException(exception, body);
|
|
1438
|
+
};
|
|
1439
|
+
const deserializeAws_json1_1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
|
|
1440
|
+
const body = parsedOutput.body;
|
|
1441
|
+
const deserialized = deserializeAws_json1_1InvalidParameterValueException(body, context);
|
|
1442
|
+
const exception = new InvalidParameterValueException({
|
|
1443
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1444
|
+
...deserialized,
|
|
1445
|
+
});
|
|
1446
|
+
return __decorateServiceException(exception, body);
|
|
1447
|
+
};
|
|
1448
|
+
const deserializeAws_json1_1OperationNotPermittedExceptionResponse = async (parsedOutput, context) => {
|
|
1449
|
+
const body = parsedOutput.body;
|
|
1450
|
+
const deserialized = deserializeAws_json1_1OperationNotPermittedException(body, context);
|
|
1451
|
+
const exception = new OperationNotPermittedException({
|
|
1452
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1453
|
+
...deserialized,
|
|
1454
|
+
});
|
|
1455
|
+
return __decorateServiceException(exception, body);
|
|
1456
|
+
};
|
|
1457
|
+
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
1458
|
+
const body = parsedOutput.body;
|
|
1459
|
+
const deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
1460
|
+
const exception = new ResourceInUseException({
|
|
1461
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1462
|
+
...deserialized,
|
|
1463
|
+
});
|
|
1464
|
+
return __decorateServiceException(exception, body);
|
|
1465
|
+
};
|
|
1466
|
+
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1467
|
+
const body = parsedOutput.body;
|
|
1468
|
+
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1469
|
+
const exception = new ResourceNotFoundException({
|
|
1470
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1471
|
+
...deserialized,
|
|
1472
|
+
});
|
|
1473
|
+
return __decorateServiceException(exception, body);
|
|
1474
|
+
};
|
|
1475
|
+
const deserializeAws_json1_1ServerInternalErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1476
|
+
const body = parsedOutput.body;
|
|
1477
|
+
const deserialized = deserializeAws_json1_1ServerInternalErrorException(body, context);
|
|
1478
|
+
const exception = new ServerInternalErrorException({
|
|
1479
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1480
|
+
...deserialized,
|
|
1481
|
+
});
|
|
1482
|
+
return __decorateServiceException(exception, body);
|
|
1483
|
+
};
|
|
1484
|
+
const serializeAws_json1_1AgentIds = (input, context) => {
|
|
2103
1485
|
return input
|
|
2104
|
-
.filter(
|
|
2105
|
-
.map(
|
|
1486
|
+
.filter((e) => e != null)
|
|
1487
|
+
.map((entry) => {
|
|
2106
1488
|
return entry;
|
|
2107
1489
|
});
|
|
2108
1490
|
};
|
|
2109
|
-
|
|
1491
|
+
const serializeAws_json1_1ApplicationIdsList = (input, context) => {
|
|
2110
1492
|
return input
|
|
2111
|
-
.filter(
|
|
2112
|
-
.map(
|
|
1493
|
+
.filter((e) => e != null)
|
|
1494
|
+
.map((entry) => {
|
|
2113
1495
|
return entry;
|
|
2114
1496
|
});
|
|
2115
1497
|
};
|
|
2116
|
-
|
|
2117
|
-
return
|
|
2118
|
-
|
|
2119
|
-
|
|
1498
|
+
const serializeAws_json1_1AssociateConfigurationItemsToApplicationRequest = (input, context) => {
|
|
1499
|
+
return {
|
|
1500
|
+
...(input.applicationConfigurationId != null && { applicationConfigurationId: input.applicationConfigurationId }),
|
|
1501
|
+
...(input.configurationIds != null && {
|
|
1502
|
+
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
1503
|
+
}),
|
|
1504
|
+
};
|
|
2120
1505
|
};
|
|
2121
|
-
|
|
2122
|
-
return
|
|
2123
|
-
|
|
2124
|
-
|
|
1506
|
+
const serializeAws_json1_1BatchDeleteImportDataRequest = (input, context) => {
|
|
1507
|
+
return {
|
|
1508
|
+
...(input.importTaskIds != null && {
|
|
1509
|
+
importTaskIds: serializeAws_json1_1ToDeleteIdentifierList(input.importTaskIds, context),
|
|
1510
|
+
}),
|
|
1511
|
+
};
|
|
2125
1512
|
};
|
|
2126
|
-
|
|
1513
|
+
const serializeAws_json1_1ConfigurationIdList = (input, context) => {
|
|
2127
1514
|
return input
|
|
2128
|
-
.filter(
|
|
2129
|
-
.map(
|
|
1515
|
+
.filter((e) => e != null)
|
|
1516
|
+
.map((entry) => {
|
|
2130
1517
|
return entry;
|
|
2131
1518
|
});
|
|
2132
1519
|
};
|
|
2133
|
-
|
|
1520
|
+
const serializeAws_json1_1ContinuousExportIds = (input, context) => {
|
|
2134
1521
|
return input
|
|
2135
|
-
.filter(
|
|
2136
|
-
.map(
|
|
1522
|
+
.filter((e) => e != null)
|
|
1523
|
+
.map((entry) => {
|
|
2137
1524
|
return entry;
|
|
2138
1525
|
});
|
|
2139
1526
|
};
|
|
2140
|
-
|
|
2141
|
-
return
|
|
1527
|
+
const serializeAws_json1_1CreateApplicationRequest = (input, context) => {
|
|
1528
|
+
return {
|
|
1529
|
+
...(input.description != null && { description: input.description }),
|
|
1530
|
+
...(input.name != null && { name: input.name }),
|
|
1531
|
+
};
|
|
2142
1532
|
};
|
|
2143
|
-
|
|
2144
|
-
return
|
|
2145
|
-
|
|
2146
|
-
|
|
1533
|
+
const serializeAws_json1_1CreateTagsRequest = (input, context) => {
|
|
1534
|
+
return {
|
|
1535
|
+
...(input.configurationIds != null && {
|
|
1536
|
+
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
1537
|
+
}),
|
|
1538
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagSet(input.tags, context) }),
|
|
1539
|
+
};
|
|
2147
1540
|
};
|
|
2148
|
-
|
|
2149
|
-
return
|
|
2150
|
-
|
|
2151
|
-
|
|
1541
|
+
const serializeAws_json1_1DeleteApplicationsRequest = (input, context) => {
|
|
1542
|
+
return {
|
|
1543
|
+
...(input.configurationIds != null && {
|
|
1544
|
+
configurationIds: serializeAws_json1_1ApplicationIdsList(input.configurationIds, context),
|
|
1545
|
+
}),
|
|
1546
|
+
};
|
|
2152
1547
|
};
|
|
2153
|
-
|
|
2154
|
-
return
|
|
2155
|
-
|
|
2156
|
-
|
|
1548
|
+
const serializeAws_json1_1DeleteTagsRequest = (input, context) => {
|
|
1549
|
+
return {
|
|
1550
|
+
...(input.configurationIds != null && {
|
|
1551
|
+
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
1552
|
+
}),
|
|
1553
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagSet(input.tags, context) }),
|
|
1554
|
+
};
|
|
2157
1555
|
};
|
|
2158
|
-
|
|
2159
|
-
return
|
|
1556
|
+
const serializeAws_json1_1DescribeAgentsRequest = (input, context) => {
|
|
1557
|
+
return {
|
|
1558
|
+
...(input.agentIds != null && { agentIds: serializeAws_json1_1AgentIds(input.agentIds, context) }),
|
|
1559
|
+
...(input.filters != null && { filters: serializeAws_json1_1Filters(input.filters, context) }),
|
|
1560
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1561
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1562
|
+
};
|
|
2160
1563
|
};
|
|
2161
|
-
|
|
2162
|
-
return
|
|
2163
|
-
|
|
2164
|
-
|
|
1564
|
+
const serializeAws_json1_1DescribeConfigurationsRequest = (input, context) => {
|
|
1565
|
+
return {
|
|
1566
|
+
...(input.configurationIds != null && {
|
|
1567
|
+
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
1568
|
+
}),
|
|
1569
|
+
};
|
|
2165
1570
|
};
|
|
2166
|
-
|
|
2167
|
-
return
|
|
1571
|
+
const serializeAws_json1_1DescribeContinuousExportsRequest = (input, context) => {
|
|
1572
|
+
return {
|
|
1573
|
+
...(input.exportIds != null && { exportIds: serializeAws_json1_1ContinuousExportIds(input.exportIds, context) }),
|
|
1574
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1575
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1576
|
+
};
|
|
2168
1577
|
};
|
|
2169
|
-
|
|
2170
|
-
return
|
|
1578
|
+
const serializeAws_json1_1DescribeExportConfigurationsRequest = (input, context) => {
|
|
1579
|
+
return {
|
|
1580
|
+
...(input.exportIds != null && { exportIds: serializeAws_json1_1ExportIds(input.exportIds, context) }),
|
|
1581
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1582
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1583
|
+
};
|
|
2171
1584
|
};
|
|
2172
|
-
|
|
2173
|
-
return
|
|
1585
|
+
const serializeAws_json1_1DescribeExportTasksRequest = (input, context) => {
|
|
1586
|
+
return {
|
|
1587
|
+
...(input.exportIds != null && { exportIds: serializeAws_json1_1ExportIds(input.exportIds, context) }),
|
|
1588
|
+
...(input.filters != null && { filters: serializeAws_json1_1ExportFilters(input.filters, context) }),
|
|
1589
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1590
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1591
|
+
};
|
|
2174
1592
|
};
|
|
2175
|
-
|
|
1593
|
+
const serializeAws_json1_1DescribeImportTasksFilterList = (input, context) => {
|
|
2176
1594
|
return input
|
|
2177
|
-
.filter(
|
|
2178
|
-
.map(
|
|
1595
|
+
.filter((e) => e != null)
|
|
1596
|
+
.map((entry) => {
|
|
2179
1597
|
return serializeAws_json1_1ImportTaskFilter(entry, context);
|
|
2180
1598
|
});
|
|
2181
1599
|
};
|
|
2182
|
-
|
|
2183
|
-
return
|
|
2184
|
-
|
|
2185
|
-
|
|
1600
|
+
const serializeAws_json1_1DescribeImportTasksRequest = (input, context) => {
|
|
1601
|
+
return {
|
|
1602
|
+
...(input.filters != null && {
|
|
1603
|
+
filters: serializeAws_json1_1DescribeImportTasksFilterList(input.filters, context),
|
|
1604
|
+
}),
|
|
1605
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1606
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1607
|
+
};
|
|
2186
1608
|
};
|
|
2187
|
-
|
|
2188
|
-
return
|
|
1609
|
+
const serializeAws_json1_1DescribeTagsRequest = (input, context) => {
|
|
1610
|
+
return {
|
|
1611
|
+
...(input.filters != null && { filters: serializeAws_json1_1TagFilters(input.filters, context) }),
|
|
1612
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1613
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1614
|
+
};
|
|
2189
1615
|
};
|
|
2190
|
-
|
|
2191
|
-
return
|
|
2192
|
-
|
|
2193
|
-
|
|
1616
|
+
const serializeAws_json1_1DisassociateConfigurationItemsFromApplicationRequest = (input, context) => {
|
|
1617
|
+
return {
|
|
1618
|
+
...(input.applicationConfigurationId != null && { applicationConfigurationId: input.applicationConfigurationId }),
|
|
1619
|
+
...(input.configurationIds != null && {
|
|
1620
|
+
configurationIds: serializeAws_json1_1ConfigurationIdList(input.configurationIds, context),
|
|
1621
|
+
}),
|
|
1622
|
+
};
|
|
2194
1623
|
};
|
|
2195
|
-
|
|
1624
|
+
const serializeAws_json1_1ExportDataFormats = (input, context) => {
|
|
2196
1625
|
return input
|
|
2197
|
-
.filter(
|
|
2198
|
-
.map(
|
|
1626
|
+
.filter((e) => e != null)
|
|
1627
|
+
.map((entry) => {
|
|
2199
1628
|
return entry;
|
|
2200
1629
|
});
|
|
2201
1630
|
};
|
|
2202
|
-
|
|
2203
|
-
return
|
|
1631
|
+
const serializeAws_json1_1ExportFilter = (input, context) => {
|
|
1632
|
+
return {
|
|
1633
|
+
...(input.condition != null && { condition: input.condition }),
|
|
1634
|
+
...(input.name != null && { name: input.name }),
|
|
1635
|
+
...(input.values != null && { values: serializeAws_json1_1FilterValues(input.values, context) }),
|
|
1636
|
+
};
|
|
2204
1637
|
};
|
|
2205
|
-
|
|
1638
|
+
const serializeAws_json1_1ExportFilters = (input, context) => {
|
|
2206
1639
|
return input
|
|
2207
|
-
.filter(
|
|
2208
|
-
.map(
|
|
1640
|
+
.filter((e) => e != null)
|
|
1641
|
+
.map((entry) => {
|
|
2209
1642
|
return serializeAws_json1_1ExportFilter(entry, context);
|
|
2210
1643
|
});
|
|
2211
1644
|
};
|
|
2212
|
-
|
|
1645
|
+
const serializeAws_json1_1ExportIds = (input, context) => {
|
|
2213
1646
|
return input
|
|
2214
|
-
.filter(
|
|
2215
|
-
.map(
|
|
1647
|
+
.filter((e) => e != null)
|
|
1648
|
+
.map((entry) => {
|
|
2216
1649
|
return entry;
|
|
2217
1650
|
});
|
|
2218
1651
|
};
|
|
2219
|
-
|
|
2220
|
-
return
|
|
1652
|
+
const serializeAws_json1_1Filter = (input, context) => {
|
|
1653
|
+
return {
|
|
1654
|
+
...(input.condition != null && { condition: input.condition }),
|
|
1655
|
+
...(input.name != null && { name: input.name }),
|
|
1656
|
+
...(input.values != null && { values: serializeAws_json1_1FilterValues(input.values, context) }),
|
|
1657
|
+
};
|
|
2221
1658
|
};
|
|
2222
|
-
|
|
1659
|
+
const serializeAws_json1_1Filters = (input, context) => {
|
|
2223
1660
|
return input
|
|
2224
|
-
.filter(
|
|
2225
|
-
.map(
|
|
1661
|
+
.filter((e) => e != null)
|
|
1662
|
+
.map((entry) => {
|
|
2226
1663
|
return serializeAws_json1_1Filter(entry, context);
|
|
2227
1664
|
});
|
|
2228
1665
|
};
|
|
2229
|
-
|
|
1666
|
+
const serializeAws_json1_1FilterValues = (input, context) => {
|
|
2230
1667
|
return input
|
|
2231
|
-
.filter(
|
|
2232
|
-
.map(
|
|
1668
|
+
.filter((e) => e != null)
|
|
1669
|
+
.map((entry) => {
|
|
2233
1670
|
return entry;
|
|
2234
1671
|
});
|
|
2235
1672
|
};
|
|
2236
|
-
|
|
1673
|
+
const serializeAws_json1_1GetDiscoverySummaryRequest = (input, context) => {
|
|
2237
1674
|
return {};
|
|
2238
1675
|
};
|
|
2239
|
-
|
|
2240
|
-
return
|
|
1676
|
+
const serializeAws_json1_1ImportTaskFilter = (input, context) => {
|
|
1677
|
+
return {
|
|
1678
|
+
...(input.name != null && { name: input.name }),
|
|
1679
|
+
...(input.values != null && { values: serializeAws_json1_1ImportTaskFilterValueList(input.values, context) }),
|
|
1680
|
+
};
|
|
2241
1681
|
};
|
|
2242
|
-
|
|
1682
|
+
const serializeAws_json1_1ImportTaskFilterValueList = (input, context) => {
|
|
2243
1683
|
return input
|
|
2244
|
-
.filter(
|
|
2245
|
-
.map(
|
|
1684
|
+
.filter((e) => e != null)
|
|
1685
|
+
.map((entry) => {
|
|
2246
1686
|
return entry;
|
|
2247
1687
|
});
|
|
2248
1688
|
};
|
|
2249
|
-
|
|
2250
|
-
return
|
|
1689
|
+
const serializeAws_json1_1ListConfigurationsRequest = (input, context) => {
|
|
1690
|
+
return {
|
|
1691
|
+
...(input.configurationType != null && { configurationType: input.configurationType }),
|
|
1692
|
+
...(input.filters != null && { filters: serializeAws_json1_1Filters(input.filters, context) }),
|
|
1693
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1694
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1695
|
+
...(input.orderBy != null && { orderBy: serializeAws_json1_1OrderByList(input.orderBy, context) }),
|
|
1696
|
+
};
|
|
2251
1697
|
};
|
|
2252
|
-
|
|
2253
|
-
return
|
|
2254
|
-
|
|
2255
|
-
|
|
1698
|
+
const serializeAws_json1_1ListServerNeighborsRequest = (input, context) => {
|
|
1699
|
+
return {
|
|
1700
|
+
...(input.configurationId != null && { configurationId: input.configurationId }),
|
|
1701
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1702
|
+
...(input.neighborConfigurationIds != null && {
|
|
1703
|
+
neighborConfigurationIds: serializeAws_json1_1ConfigurationIdList(input.neighborConfigurationIds, context),
|
|
1704
|
+
}),
|
|
1705
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1706
|
+
...(input.portInformationNeeded != null && { portInformationNeeded: input.portInformationNeeded }),
|
|
1707
|
+
};
|
|
2256
1708
|
};
|
|
2257
|
-
|
|
2258
|
-
return
|
|
1709
|
+
const serializeAws_json1_1OrderByElement = (input, context) => {
|
|
1710
|
+
return {
|
|
1711
|
+
...(input.fieldName != null && { fieldName: input.fieldName }),
|
|
1712
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
1713
|
+
};
|
|
2259
1714
|
};
|
|
2260
|
-
|
|
1715
|
+
const serializeAws_json1_1OrderByList = (input, context) => {
|
|
2261
1716
|
return input
|
|
2262
|
-
.filter(
|
|
2263
|
-
.map(
|
|
1717
|
+
.filter((e) => e != null)
|
|
1718
|
+
.map((entry) => {
|
|
2264
1719
|
return serializeAws_json1_1OrderByElement(entry, context);
|
|
2265
1720
|
});
|
|
2266
1721
|
};
|
|
2267
|
-
|
|
1722
|
+
const serializeAws_json1_1StartContinuousExportRequest = (input, context) => {
|
|
2268
1723
|
return {};
|
|
2269
1724
|
};
|
|
2270
|
-
|
|
2271
|
-
return
|
|
1725
|
+
const serializeAws_json1_1StartDataCollectionByAgentIdsRequest = (input, context) => {
|
|
1726
|
+
return {
|
|
1727
|
+
...(input.agentIds != null && { agentIds: serializeAws_json1_1AgentIds(input.agentIds, context) }),
|
|
1728
|
+
};
|
|
2272
1729
|
};
|
|
2273
|
-
|
|
2274
|
-
return
|
|
2275
|
-
|
|
2276
|
-
|
|
1730
|
+
const serializeAws_json1_1StartExportTaskRequest = (input, context) => {
|
|
1731
|
+
return {
|
|
1732
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1733
|
+
...(input.exportDataFormat != null && {
|
|
1734
|
+
exportDataFormat: serializeAws_json1_1ExportDataFormats(input.exportDataFormat, context),
|
|
1735
|
+
}),
|
|
1736
|
+
...(input.filters != null && { filters: serializeAws_json1_1ExportFilters(input.filters, context) }),
|
|
1737
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1738
|
+
};
|
|
2277
1739
|
};
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
1740
|
+
const serializeAws_json1_1StartImportTaskRequest = (input, context) => {
|
|
1741
|
+
return {
|
|
1742
|
+
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
1743
|
+
...(input.importUrl != null && { importUrl: input.importUrl }),
|
|
1744
|
+
...(input.name != null && { name: input.name }),
|
|
1745
|
+
};
|
|
2281
1746
|
};
|
|
2282
|
-
|
|
2283
|
-
return
|
|
1747
|
+
const serializeAws_json1_1StopContinuousExportRequest = (input, context) => {
|
|
1748
|
+
return {
|
|
1749
|
+
...(input.exportId != null && { exportId: input.exportId }),
|
|
1750
|
+
};
|
|
2284
1751
|
};
|
|
2285
|
-
|
|
2286
|
-
return
|
|
1752
|
+
const serializeAws_json1_1StopDataCollectionByAgentIdsRequest = (input, context) => {
|
|
1753
|
+
return {
|
|
1754
|
+
...(input.agentIds != null && { agentIds: serializeAws_json1_1AgentIds(input.agentIds, context) }),
|
|
1755
|
+
};
|
|
2287
1756
|
};
|
|
2288
|
-
|
|
2289
|
-
return
|
|
1757
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1758
|
+
return {
|
|
1759
|
+
...(input.key != null && { key: input.key }),
|
|
1760
|
+
...(input.value != null && { value: input.value }),
|
|
1761
|
+
};
|
|
2290
1762
|
};
|
|
2291
|
-
|
|
2292
|
-
return
|
|
1763
|
+
const serializeAws_json1_1TagFilter = (input, context) => {
|
|
1764
|
+
return {
|
|
1765
|
+
...(input.name != null && { name: input.name }),
|
|
1766
|
+
...(input.values != null && { values: serializeAws_json1_1FilterValues(input.values, context) }),
|
|
1767
|
+
};
|
|
2293
1768
|
};
|
|
2294
|
-
|
|
1769
|
+
const serializeAws_json1_1TagFilters = (input, context) => {
|
|
2295
1770
|
return input
|
|
2296
|
-
.filter(
|
|
2297
|
-
.map(
|
|
1771
|
+
.filter((e) => e != null)
|
|
1772
|
+
.map((entry) => {
|
|
2298
1773
|
return serializeAws_json1_1TagFilter(entry, context);
|
|
2299
1774
|
});
|
|
2300
1775
|
};
|
|
2301
|
-
|
|
1776
|
+
const serializeAws_json1_1TagSet = (input, context) => {
|
|
2302
1777
|
return input
|
|
2303
|
-
.filter(
|
|
2304
|
-
.map(
|
|
1778
|
+
.filter((e) => e != null)
|
|
1779
|
+
.map((entry) => {
|
|
2305
1780
|
return serializeAws_json1_1Tag(entry, context);
|
|
2306
1781
|
});
|
|
2307
1782
|
};
|
|
2308
|
-
|
|
1783
|
+
const serializeAws_json1_1ToDeleteIdentifierList = (input, context) => {
|
|
2309
1784
|
return input
|
|
2310
|
-
.filter(
|
|
2311
|
-
.map(
|
|
1785
|
+
.filter((e) => e != null)
|
|
1786
|
+
.map((entry) => {
|
|
2312
1787
|
return entry;
|
|
2313
1788
|
});
|
|
2314
1789
|
};
|
|
2315
|
-
|
|
2316
|
-
return
|
|
1790
|
+
const serializeAws_json1_1UpdateApplicationRequest = (input, context) => {
|
|
1791
|
+
return {
|
|
1792
|
+
...(input.configurationId != null && { configurationId: input.configurationId }),
|
|
1793
|
+
...(input.description != null && { description: input.description }),
|
|
1794
|
+
...(input.name != null && { name: input.name }),
|
|
1795
|
+
};
|
|
2317
1796
|
};
|
|
2318
|
-
|
|
1797
|
+
const deserializeAws_json1_1AgentConfigurationStatus = (output, context) => {
|
|
2319
1798
|
return {
|
|
2320
1799
|
agentId: __expectString(output.agentId),
|
|
2321
1800
|
description: __expectString(output.description),
|
|
2322
1801
|
operationSucceeded: __expectBoolean(output.operationSucceeded),
|
|
2323
1802
|
};
|
|
2324
1803
|
};
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
.filter(
|
|
2328
|
-
.map(
|
|
1804
|
+
const deserializeAws_json1_1AgentConfigurationStatusList = (output, context) => {
|
|
1805
|
+
const retVal = (output || [])
|
|
1806
|
+
.filter((e) => e != null)
|
|
1807
|
+
.map((entry) => {
|
|
2329
1808
|
if (entry === null) {
|
|
2330
1809
|
return null;
|
|
2331
1810
|
}
|
|
@@ -2333,7 +1812,7 @@ var deserializeAws_json1_1AgentConfigurationStatusList = function (output, conte
|
|
|
2333
1812
|
});
|
|
2334
1813
|
return retVal;
|
|
2335
1814
|
};
|
|
2336
|
-
|
|
1815
|
+
const deserializeAws_json1_1AgentInfo = (output, context) => {
|
|
2337
1816
|
return {
|
|
2338
1817
|
agentId: __expectString(output.agentId),
|
|
2339
1818
|
agentNetworkInfoList: output.agentNetworkInfoList != null
|
|
@@ -2349,16 +1828,16 @@ var deserializeAws_json1_1AgentInfo = function (output, context) {
|
|
|
2349
1828
|
version: __expectString(output.version),
|
|
2350
1829
|
};
|
|
2351
1830
|
};
|
|
2352
|
-
|
|
1831
|
+
const deserializeAws_json1_1AgentNetworkInfo = (output, context) => {
|
|
2353
1832
|
return {
|
|
2354
1833
|
ipAddress: __expectString(output.ipAddress),
|
|
2355
1834
|
macAddress: __expectString(output.macAddress),
|
|
2356
1835
|
};
|
|
2357
1836
|
};
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
.filter(
|
|
2361
|
-
.map(
|
|
1837
|
+
const deserializeAws_json1_1AgentNetworkInfoList = (output, context) => {
|
|
1838
|
+
const retVal = (output || [])
|
|
1839
|
+
.filter((e) => e != null)
|
|
1840
|
+
.map((entry) => {
|
|
2362
1841
|
if (entry === null) {
|
|
2363
1842
|
return null;
|
|
2364
1843
|
}
|
|
@@ -2366,10 +1845,10 @@ var deserializeAws_json1_1AgentNetworkInfoList = function (output, context) {
|
|
|
2366
1845
|
});
|
|
2367
1846
|
return retVal;
|
|
2368
1847
|
};
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
.filter(
|
|
2372
|
-
.map(
|
|
1848
|
+
const deserializeAws_json1_1AgentsInfo = (output, context) => {
|
|
1849
|
+
const retVal = (output || [])
|
|
1850
|
+
.filter((e) => e != null)
|
|
1851
|
+
.map((entry) => {
|
|
2373
1852
|
if (entry === null) {
|
|
2374
1853
|
return null;
|
|
2375
1854
|
}
|
|
@@ -2377,25 +1856,25 @@ var deserializeAws_json1_1AgentsInfo = function (output, context) {
|
|
|
2377
1856
|
});
|
|
2378
1857
|
return retVal;
|
|
2379
1858
|
};
|
|
2380
|
-
|
|
1859
|
+
const deserializeAws_json1_1AssociateConfigurationItemsToApplicationResponse = (output, context) => {
|
|
2381
1860
|
return {};
|
|
2382
1861
|
};
|
|
2383
|
-
|
|
1862
|
+
const deserializeAws_json1_1AuthorizationErrorException = (output, context) => {
|
|
2384
1863
|
return {
|
|
2385
1864
|
message: __expectString(output.message),
|
|
2386
1865
|
};
|
|
2387
1866
|
};
|
|
2388
|
-
|
|
1867
|
+
const deserializeAws_json1_1BatchDeleteImportDataError = (output, context) => {
|
|
2389
1868
|
return {
|
|
2390
1869
|
errorCode: __expectString(output.errorCode),
|
|
2391
1870
|
errorDescription: __expectString(output.errorDescription),
|
|
2392
1871
|
importTaskId: __expectString(output.importTaskId),
|
|
2393
1872
|
};
|
|
2394
1873
|
};
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
.filter(
|
|
2398
|
-
.map(
|
|
1874
|
+
const deserializeAws_json1_1BatchDeleteImportDataErrorList = (output, context) => {
|
|
1875
|
+
const retVal = (output || [])
|
|
1876
|
+
.filter((e) => e != null)
|
|
1877
|
+
.map((entry) => {
|
|
2399
1878
|
if (entry === null) {
|
|
2400
1879
|
return null;
|
|
2401
1880
|
}
|
|
@@ -2403,25 +1882,26 @@ var deserializeAws_json1_1BatchDeleteImportDataErrorList = function (output, con
|
|
|
2403
1882
|
});
|
|
2404
1883
|
return retVal;
|
|
2405
1884
|
};
|
|
2406
|
-
|
|
1885
|
+
const deserializeAws_json1_1BatchDeleteImportDataResponse = (output, context) => {
|
|
2407
1886
|
return {
|
|
2408
1887
|
errors: output.errors != null ? deserializeAws_json1_1BatchDeleteImportDataErrorList(output.errors, context) : undefined,
|
|
2409
1888
|
};
|
|
2410
1889
|
};
|
|
2411
|
-
|
|
2412
|
-
return Object.entries(output).reduce(
|
|
2413
|
-
var _b;
|
|
2414
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1890
|
+
const deserializeAws_json1_1Configuration = (output, context) => {
|
|
1891
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2415
1892
|
if (value === null) {
|
|
2416
1893
|
return acc;
|
|
2417
1894
|
}
|
|
2418
|
-
return
|
|
1895
|
+
return {
|
|
1896
|
+
...acc,
|
|
1897
|
+
[key]: __expectString(value),
|
|
1898
|
+
};
|
|
2419
1899
|
}, {});
|
|
2420
1900
|
};
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
.filter(
|
|
2424
|
-
.map(
|
|
1901
|
+
const deserializeAws_json1_1Configurations = (output, context) => {
|
|
1902
|
+
const retVal = (output || [])
|
|
1903
|
+
.filter((e) => e != null)
|
|
1904
|
+
.map((entry) => {
|
|
2425
1905
|
if (entry === null) {
|
|
2426
1906
|
return null;
|
|
2427
1907
|
}
|
|
@@ -2429,7 +1909,7 @@ var deserializeAws_json1_1Configurations = function (output, context) {
|
|
|
2429
1909
|
});
|
|
2430
1910
|
return retVal;
|
|
2431
1911
|
};
|
|
2432
|
-
|
|
1912
|
+
const deserializeAws_json1_1ConfigurationTag = (output, context) => {
|
|
2433
1913
|
return {
|
|
2434
1914
|
configurationId: __expectString(output.configurationId),
|
|
2435
1915
|
configurationType: __expectString(output.configurationType),
|
|
@@ -2440,10 +1920,10 @@ var deserializeAws_json1_1ConfigurationTag = function (output, context) {
|
|
|
2440
1920
|
value: __expectString(output.value),
|
|
2441
1921
|
};
|
|
2442
1922
|
};
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
.filter(
|
|
2446
|
-
.map(
|
|
1923
|
+
const deserializeAws_json1_1ConfigurationTagSet = (output, context) => {
|
|
1924
|
+
const retVal = (output || [])
|
|
1925
|
+
.filter((e) => e != null)
|
|
1926
|
+
.map((entry) => {
|
|
2447
1927
|
if (entry === null) {
|
|
2448
1928
|
return null;
|
|
2449
1929
|
}
|
|
@@ -2451,12 +1931,12 @@ var deserializeAws_json1_1ConfigurationTagSet = function (output, context) {
|
|
|
2451
1931
|
});
|
|
2452
1932
|
return retVal;
|
|
2453
1933
|
};
|
|
2454
|
-
|
|
1934
|
+
const deserializeAws_json1_1ConflictErrorException = (output, context) => {
|
|
2455
1935
|
return {
|
|
2456
1936
|
message: __expectString(output.message),
|
|
2457
1937
|
};
|
|
2458
1938
|
};
|
|
2459
|
-
|
|
1939
|
+
const deserializeAws_json1_1ContinuousExportDescription = (output, context) => {
|
|
2460
1940
|
return {
|
|
2461
1941
|
dataSource: __expectString(output.dataSource),
|
|
2462
1942
|
exportId: __expectString(output.exportId),
|
|
@@ -2470,10 +1950,10 @@ var deserializeAws_json1_1ContinuousExportDescription = function (output, contex
|
|
|
2470
1950
|
stopTime: output.stopTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopTime))) : undefined,
|
|
2471
1951
|
};
|
|
2472
1952
|
};
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
.filter(
|
|
2476
|
-
.map(
|
|
1953
|
+
const deserializeAws_json1_1ContinuousExportDescriptions = (output, context) => {
|
|
1954
|
+
const retVal = (output || [])
|
|
1955
|
+
.filter((e) => e != null)
|
|
1956
|
+
.map((entry) => {
|
|
2477
1957
|
if (entry === null) {
|
|
2478
1958
|
return null;
|
|
2479
1959
|
}
|
|
@@ -2481,15 +1961,15 @@ var deserializeAws_json1_1ContinuousExportDescriptions = function (output, conte
|
|
|
2481
1961
|
});
|
|
2482
1962
|
return retVal;
|
|
2483
1963
|
};
|
|
2484
|
-
|
|
1964
|
+
const deserializeAws_json1_1CreateApplicationResponse = (output, context) => {
|
|
2485
1965
|
return {
|
|
2486
1966
|
configurationId: __expectString(output.configurationId),
|
|
2487
1967
|
};
|
|
2488
1968
|
};
|
|
2489
|
-
|
|
1969
|
+
const deserializeAws_json1_1CreateTagsResponse = (output, context) => {
|
|
2490
1970
|
return {};
|
|
2491
1971
|
};
|
|
2492
|
-
|
|
1972
|
+
const deserializeAws_json1_1CustomerAgentInfo = (output, context) => {
|
|
2493
1973
|
return {
|
|
2494
1974
|
activeAgents: __expectInt32(output.activeAgents),
|
|
2495
1975
|
blackListedAgents: __expectInt32(output.blackListedAgents),
|
|
@@ -2500,7 +1980,7 @@ var deserializeAws_json1_1CustomerAgentInfo = function (output, context) {
|
|
|
2500
1980
|
unknownAgents: __expectInt32(output.unknownAgents),
|
|
2501
1981
|
};
|
|
2502
1982
|
};
|
|
2503
|
-
|
|
1983
|
+
const deserializeAws_json1_1CustomerAgentlessCollectorInfo = (output, context) => {
|
|
2504
1984
|
return {
|
|
2505
1985
|
activeAgentlessCollectors: __expectInt32(output.activeAgentlessCollectors),
|
|
2506
1986
|
denyListedAgentlessCollectors: __expectInt32(output.denyListedAgentlessCollectors),
|
|
@@ -2511,7 +1991,7 @@ var deserializeAws_json1_1CustomerAgentlessCollectorInfo = function (output, con
|
|
|
2511
1991
|
unknownAgentlessCollectors: __expectInt32(output.unknownAgentlessCollectors),
|
|
2512
1992
|
};
|
|
2513
1993
|
};
|
|
2514
|
-
|
|
1994
|
+
const deserializeAws_json1_1CustomerConnectorInfo = (output, context) => {
|
|
2515
1995
|
return {
|
|
2516
1996
|
activeConnectors: __expectInt32(output.activeConnectors),
|
|
2517
1997
|
blackListedConnectors: __expectInt32(output.blackListedConnectors),
|
|
@@ -2522,7 +2002,7 @@ var deserializeAws_json1_1CustomerConnectorInfo = function (output, context) {
|
|
|
2522
2002
|
unknownConnectors: __expectInt32(output.unknownConnectors),
|
|
2523
2003
|
};
|
|
2524
2004
|
};
|
|
2525
|
-
|
|
2005
|
+
const deserializeAws_json1_1CustomerMeCollectorInfo = (output, context) => {
|
|
2526
2006
|
return {
|
|
2527
2007
|
activeMeCollectors: __expectInt32(output.activeMeCollectors),
|
|
2528
2008
|
denyListedMeCollectors: __expectInt32(output.denyListedMeCollectors),
|
|
@@ -2533,32 +2013,33 @@ var deserializeAws_json1_1CustomerMeCollectorInfo = function (output, context) {
|
|
|
2533
2013
|
unknownMeCollectors: __expectInt32(output.unknownMeCollectors),
|
|
2534
2014
|
};
|
|
2535
2015
|
};
|
|
2536
|
-
|
|
2016
|
+
const deserializeAws_json1_1DeleteApplicationsResponse = (output, context) => {
|
|
2537
2017
|
return {};
|
|
2538
2018
|
};
|
|
2539
|
-
|
|
2019
|
+
const deserializeAws_json1_1DeleteTagsResponse = (output, context) => {
|
|
2540
2020
|
return {};
|
|
2541
2021
|
};
|
|
2542
|
-
|
|
2022
|
+
const deserializeAws_json1_1DescribeAgentsResponse = (output, context) => {
|
|
2543
2023
|
return {
|
|
2544
2024
|
agentsInfo: output.agentsInfo != null ? deserializeAws_json1_1AgentsInfo(output.agentsInfo, context) : undefined,
|
|
2545
2025
|
nextToken: __expectString(output.nextToken),
|
|
2546
2026
|
};
|
|
2547
2027
|
};
|
|
2548
|
-
|
|
2549
|
-
return Object.entries(output).reduce(
|
|
2550
|
-
var _b;
|
|
2551
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2028
|
+
const deserializeAws_json1_1DescribeConfigurationsAttribute = (output, context) => {
|
|
2029
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2552
2030
|
if (value === null) {
|
|
2553
2031
|
return acc;
|
|
2554
2032
|
}
|
|
2555
|
-
return
|
|
2033
|
+
return {
|
|
2034
|
+
...acc,
|
|
2035
|
+
[key]: __expectString(value),
|
|
2036
|
+
};
|
|
2556
2037
|
}, {});
|
|
2557
2038
|
};
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
.filter(
|
|
2561
|
-
.map(
|
|
2039
|
+
const deserializeAws_json1_1DescribeConfigurationsAttributes = (output, context) => {
|
|
2040
|
+
const retVal = (output || [])
|
|
2041
|
+
.filter((e) => e != null)
|
|
2042
|
+
.map((entry) => {
|
|
2562
2043
|
if (entry === null) {
|
|
2563
2044
|
return null;
|
|
2564
2045
|
}
|
|
@@ -2566,14 +2047,14 @@ var deserializeAws_json1_1DescribeConfigurationsAttributes = function (output, c
|
|
|
2566
2047
|
});
|
|
2567
2048
|
return retVal;
|
|
2568
2049
|
};
|
|
2569
|
-
|
|
2050
|
+
const deserializeAws_json1_1DescribeConfigurationsResponse = (output, context) => {
|
|
2570
2051
|
return {
|
|
2571
2052
|
configurations: output.configurations != null
|
|
2572
2053
|
? deserializeAws_json1_1DescribeConfigurationsAttributes(output.configurations, context)
|
|
2573
2054
|
: undefined,
|
|
2574
2055
|
};
|
|
2575
2056
|
};
|
|
2576
|
-
|
|
2057
|
+
const deserializeAws_json1_1DescribeContinuousExportsResponse = (output, context) => {
|
|
2577
2058
|
return {
|
|
2578
2059
|
descriptions: output.descriptions != null
|
|
2579
2060
|
? deserializeAws_json1_1ContinuousExportDescriptions(output.descriptions, context)
|
|
@@ -2581,39 +2062,39 @@ var deserializeAws_json1_1DescribeContinuousExportsResponse = function (output,
|
|
|
2581
2062
|
nextToken: __expectString(output.nextToken),
|
|
2582
2063
|
};
|
|
2583
2064
|
};
|
|
2584
|
-
|
|
2065
|
+
const deserializeAws_json1_1DescribeExportConfigurationsResponse = (output, context) => {
|
|
2585
2066
|
return {
|
|
2586
2067
|
exportsInfo: output.exportsInfo != null ? deserializeAws_json1_1ExportsInfo(output.exportsInfo, context) : undefined,
|
|
2587
2068
|
nextToken: __expectString(output.nextToken),
|
|
2588
2069
|
};
|
|
2589
2070
|
};
|
|
2590
|
-
|
|
2071
|
+
const deserializeAws_json1_1DescribeExportTasksResponse = (output, context) => {
|
|
2591
2072
|
return {
|
|
2592
2073
|
exportsInfo: output.exportsInfo != null ? deserializeAws_json1_1ExportsInfo(output.exportsInfo, context) : undefined,
|
|
2593
2074
|
nextToken: __expectString(output.nextToken),
|
|
2594
2075
|
};
|
|
2595
2076
|
};
|
|
2596
|
-
|
|
2077
|
+
const deserializeAws_json1_1DescribeImportTasksResponse = (output, context) => {
|
|
2597
2078
|
return {
|
|
2598
2079
|
nextToken: __expectString(output.nextToken),
|
|
2599
2080
|
tasks: output.tasks != null ? deserializeAws_json1_1ImportTaskList(output.tasks, context) : undefined,
|
|
2600
2081
|
};
|
|
2601
2082
|
};
|
|
2602
|
-
|
|
2083
|
+
const deserializeAws_json1_1DescribeTagsResponse = (output, context) => {
|
|
2603
2084
|
return {
|
|
2604
2085
|
nextToken: __expectString(output.nextToken),
|
|
2605
2086
|
tags: output.tags != null ? deserializeAws_json1_1ConfigurationTagSet(output.tags, context) : undefined,
|
|
2606
2087
|
};
|
|
2607
2088
|
};
|
|
2608
|
-
|
|
2089
|
+
const deserializeAws_json1_1DisassociateConfigurationItemsFromApplicationResponse = (output, context) => {
|
|
2609
2090
|
return {};
|
|
2610
2091
|
};
|
|
2611
|
-
|
|
2092
|
+
const deserializeAws_json1_1ExportConfigurationsResponse = (output, context) => {
|
|
2612
2093
|
return {
|
|
2613
2094
|
exportId: __expectString(output.exportId),
|
|
2614
2095
|
};
|
|
2615
2096
|
};
|
|
2616
|
-
|
|
2097
|
+
const deserializeAws_json1_1ExportInfo = (output, context) => {
|
|
2617
2098
|
return {
|
|
2618
2099
|
configurationsDownloadUrl: __expectString(output.configurationsDownloadUrl),
|
|
2619
2100
|
exportId: __expectString(output.exportId),
|
|
@@ -2631,10 +2112,10 @@ var deserializeAws_json1_1ExportInfo = function (output, context) {
|
|
|
2631
2112
|
statusMessage: __expectString(output.statusMessage),
|
|
2632
2113
|
};
|
|
2633
2114
|
};
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
.filter(
|
|
2637
|
-
.map(
|
|
2115
|
+
const deserializeAws_json1_1ExportsInfo = (output, context) => {
|
|
2116
|
+
const retVal = (output || [])
|
|
2117
|
+
.filter((e) => e != null)
|
|
2118
|
+
.map((entry) => {
|
|
2638
2119
|
if (entry === null) {
|
|
2639
2120
|
return null;
|
|
2640
2121
|
}
|
|
@@ -2642,7 +2123,7 @@ var deserializeAws_json1_1ExportsInfo = function (output, context) {
|
|
|
2642
2123
|
});
|
|
2643
2124
|
return retVal;
|
|
2644
2125
|
};
|
|
2645
|
-
|
|
2126
|
+
const deserializeAws_json1_1GetDiscoverySummaryResponse = (output, context) => {
|
|
2646
2127
|
return {
|
|
2647
2128
|
agentSummary: output.agentSummary != null ? deserializeAws_json1_1CustomerAgentInfo(output.agentSummary, context) : undefined,
|
|
2648
2129
|
agentlessCollectorSummary: output.agentlessCollectorSummary != null
|
|
@@ -2660,12 +2141,12 @@ var deserializeAws_json1_1GetDiscoverySummaryResponse = function (output, contex
|
|
|
2660
2141
|
serversMappedtoTags: __expectLong(output.serversMappedtoTags),
|
|
2661
2142
|
};
|
|
2662
2143
|
};
|
|
2663
|
-
|
|
2144
|
+
const deserializeAws_json1_1HomeRegionNotSetException = (output, context) => {
|
|
2664
2145
|
return {
|
|
2665
2146
|
message: __expectString(output.message),
|
|
2666
2147
|
};
|
|
2667
2148
|
};
|
|
2668
|
-
|
|
2149
|
+
const deserializeAws_json1_1ImportTask = (output, context) => {
|
|
2669
2150
|
return {
|
|
2670
2151
|
applicationImportFailure: __expectInt32(output.applicationImportFailure),
|
|
2671
2152
|
applicationImportSuccess: __expectInt32(output.applicationImportSuccess),
|
|
@@ -2688,10 +2169,10 @@ var deserializeAws_json1_1ImportTask = function (output, context) {
|
|
|
2688
2169
|
status: __expectString(output.status),
|
|
2689
2170
|
};
|
|
2690
2171
|
};
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
.filter(
|
|
2694
|
-
.map(
|
|
2172
|
+
const deserializeAws_json1_1ImportTaskList = (output, context) => {
|
|
2173
|
+
const retVal = (output || [])
|
|
2174
|
+
.filter((e) => e != null)
|
|
2175
|
+
.map((entry) => {
|
|
2695
2176
|
if (entry === null) {
|
|
2696
2177
|
return null;
|
|
2697
2178
|
}
|
|
@@ -2699,30 +2180,30 @@ var deserializeAws_json1_1ImportTaskList = function (output, context) {
|
|
|
2699
2180
|
});
|
|
2700
2181
|
return retVal;
|
|
2701
2182
|
};
|
|
2702
|
-
|
|
2183
|
+
const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
2703
2184
|
return {
|
|
2704
2185
|
message: __expectString(output.message),
|
|
2705
2186
|
};
|
|
2706
2187
|
};
|
|
2707
|
-
|
|
2188
|
+
const deserializeAws_json1_1InvalidParameterValueException = (output, context) => {
|
|
2708
2189
|
return {
|
|
2709
2190
|
message: __expectString(output.message),
|
|
2710
2191
|
};
|
|
2711
2192
|
};
|
|
2712
|
-
|
|
2193
|
+
const deserializeAws_json1_1ListConfigurationsResponse = (output, context) => {
|
|
2713
2194
|
return {
|
|
2714
2195
|
configurations: output.configurations != null ? deserializeAws_json1_1Configurations(output.configurations, context) : undefined,
|
|
2715
2196
|
nextToken: __expectString(output.nextToken),
|
|
2716
2197
|
};
|
|
2717
2198
|
};
|
|
2718
|
-
|
|
2199
|
+
const deserializeAws_json1_1ListServerNeighborsResponse = (output, context) => {
|
|
2719
2200
|
return {
|
|
2720
2201
|
knownDependencyCount: __expectLong(output.knownDependencyCount),
|
|
2721
2202
|
neighbors: output.neighbors != null ? deserializeAws_json1_1NeighborDetailsList(output.neighbors, context) : undefined,
|
|
2722
2203
|
nextToken: __expectString(output.nextToken),
|
|
2723
2204
|
};
|
|
2724
2205
|
};
|
|
2725
|
-
|
|
2206
|
+
const deserializeAws_json1_1NeighborConnectionDetail = (output, context) => {
|
|
2726
2207
|
return {
|
|
2727
2208
|
connectionsCount: __expectLong(output.connectionsCount),
|
|
2728
2209
|
destinationPort: __expectInt32(output.destinationPort),
|
|
@@ -2731,10 +2212,10 @@ var deserializeAws_json1_1NeighborConnectionDetail = function (output, context)
|
|
|
2731
2212
|
transportProtocol: __expectString(output.transportProtocol),
|
|
2732
2213
|
};
|
|
2733
2214
|
};
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
.filter(
|
|
2737
|
-
.map(
|
|
2215
|
+
const deserializeAws_json1_1NeighborDetailsList = (output, context) => {
|
|
2216
|
+
const retVal = (output || [])
|
|
2217
|
+
.filter((e) => e != null)
|
|
2218
|
+
.map((entry) => {
|
|
2738
2219
|
if (entry === null) {
|
|
2739
2220
|
return null;
|
|
2740
2221
|
}
|
|
@@ -2742,37 +2223,38 @@ var deserializeAws_json1_1NeighborDetailsList = function (output, context) {
|
|
|
2742
2223
|
});
|
|
2743
2224
|
return retVal;
|
|
2744
2225
|
};
|
|
2745
|
-
|
|
2226
|
+
const deserializeAws_json1_1OperationNotPermittedException = (output, context) => {
|
|
2746
2227
|
return {
|
|
2747
2228
|
message: __expectString(output.message),
|
|
2748
2229
|
};
|
|
2749
2230
|
};
|
|
2750
|
-
|
|
2231
|
+
const deserializeAws_json1_1ResourceInUseException = (output, context) => {
|
|
2751
2232
|
return {
|
|
2752
2233
|
message: __expectString(output.message),
|
|
2753
2234
|
};
|
|
2754
2235
|
};
|
|
2755
|
-
|
|
2236
|
+
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
2756
2237
|
return {
|
|
2757
2238
|
message: __expectString(output.message),
|
|
2758
2239
|
};
|
|
2759
2240
|
};
|
|
2760
|
-
|
|
2761
|
-
return Object.entries(output).reduce(
|
|
2762
|
-
var _b;
|
|
2763
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2241
|
+
const deserializeAws_json1_1SchemaStorageConfig = (output, context) => {
|
|
2242
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2764
2243
|
if (value === null) {
|
|
2765
2244
|
return acc;
|
|
2766
2245
|
}
|
|
2767
|
-
return
|
|
2246
|
+
return {
|
|
2247
|
+
...acc,
|
|
2248
|
+
[key]: __expectString(value),
|
|
2249
|
+
};
|
|
2768
2250
|
}, {});
|
|
2769
2251
|
};
|
|
2770
|
-
|
|
2252
|
+
const deserializeAws_json1_1ServerInternalErrorException = (output, context) => {
|
|
2771
2253
|
return {
|
|
2772
2254
|
message: __expectString(output.message),
|
|
2773
2255
|
};
|
|
2774
2256
|
};
|
|
2775
|
-
|
|
2257
|
+
const deserializeAws_json1_1StartContinuousExportResponse = (output, context) => {
|
|
2776
2258
|
return {
|
|
2777
2259
|
dataSource: __expectString(output.dataSource),
|
|
2778
2260
|
exportId: __expectString(output.exportId),
|
|
@@ -2783,108 +2265,85 @@ var deserializeAws_json1_1StartContinuousExportResponse = function (output, cont
|
|
|
2783
2265
|
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
2784
2266
|
};
|
|
2785
2267
|
};
|
|
2786
|
-
|
|
2268
|
+
const deserializeAws_json1_1StartDataCollectionByAgentIdsResponse = (output, context) => {
|
|
2787
2269
|
return {
|
|
2788
2270
|
agentsConfigurationStatus: output.agentsConfigurationStatus != null
|
|
2789
2271
|
? deserializeAws_json1_1AgentConfigurationStatusList(output.agentsConfigurationStatus, context)
|
|
2790
2272
|
: undefined,
|
|
2791
2273
|
};
|
|
2792
2274
|
};
|
|
2793
|
-
|
|
2275
|
+
const deserializeAws_json1_1StartExportTaskResponse = (output, context) => {
|
|
2794
2276
|
return {
|
|
2795
2277
|
exportId: __expectString(output.exportId),
|
|
2796
2278
|
};
|
|
2797
2279
|
};
|
|
2798
|
-
|
|
2280
|
+
const deserializeAws_json1_1StartImportTaskResponse = (output, context) => {
|
|
2799
2281
|
return {
|
|
2800
2282
|
task: output.task != null ? deserializeAws_json1_1ImportTask(output.task, context) : undefined,
|
|
2801
2283
|
};
|
|
2802
2284
|
};
|
|
2803
|
-
|
|
2285
|
+
const deserializeAws_json1_1StopContinuousExportResponse = (output, context) => {
|
|
2804
2286
|
return {
|
|
2805
2287
|
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
2806
2288
|
stopTime: output.stopTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopTime))) : undefined,
|
|
2807
2289
|
};
|
|
2808
2290
|
};
|
|
2809
|
-
|
|
2291
|
+
const deserializeAws_json1_1StopDataCollectionByAgentIdsResponse = (output, context) => {
|
|
2810
2292
|
return {
|
|
2811
2293
|
agentsConfigurationStatus: output.agentsConfigurationStatus != null
|
|
2812
2294
|
? deserializeAws_json1_1AgentConfigurationStatusList(output.agentsConfigurationStatus, context)
|
|
2813
2295
|
: undefined,
|
|
2814
2296
|
};
|
|
2815
2297
|
};
|
|
2816
|
-
|
|
2298
|
+
const deserializeAws_json1_1UpdateApplicationResponse = (output, context) => {
|
|
2817
2299
|
return {};
|
|
2818
2300
|
};
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
});
|
|
2827
|
-
};
|
|
2828
|
-
var collectBody = function (streamBody, context) {
|
|
2829
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2301
|
+
const deserializeMetadata = (output) => ({
|
|
2302
|
+
httpStatusCode: output.statusCode,
|
|
2303
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
2304
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2305
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2306
|
+
});
|
|
2307
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2830
2308
|
if (streamBody instanceof Uint8Array) {
|
|
2831
2309
|
return Promise.resolve(streamBody);
|
|
2832
2310
|
}
|
|
2833
2311
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2834
2312
|
};
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
};
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
if (resolvedHostname !== undefined) {
|
|
2854
|
-
contents.hostname = resolvedHostname;
|
|
2855
|
-
}
|
|
2856
|
-
if (body !== undefined) {
|
|
2857
|
-
contents.body = body;
|
|
2858
|
-
}
|
|
2859
|
-
return [2, new __HttpRequest(contents)];
|
|
2860
|
-
}
|
|
2861
|
-
});
|
|
2862
|
-
}); };
|
|
2863
|
-
var parseBody = function (streamBody, context) {
|
|
2864
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2865
|
-
if (encoded.length) {
|
|
2866
|
-
return JSON.parse(encoded);
|
|
2867
|
-
}
|
|
2868
|
-
return {};
|
|
2869
|
-
});
|
|
2313
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2314
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2315
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2316
|
+
const contents = {
|
|
2317
|
+
protocol,
|
|
2318
|
+
hostname,
|
|
2319
|
+
port,
|
|
2320
|
+
method: "POST",
|
|
2321
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2322
|
+
headers,
|
|
2323
|
+
};
|
|
2324
|
+
if (resolvedHostname !== undefined) {
|
|
2325
|
+
contents.hostname = resolvedHostname;
|
|
2326
|
+
}
|
|
2327
|
+
if (body !== undefined) {
|
|
2328
|
+
contents.body = body;
|
|
2329
|
+
}
|
|
2330
|
+
return new __HttpRequest(contents);
|
|
2870
2331
|
};
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
2887
|
-
var cleanValue = rawValue;
|
|
2332
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2333
|
+
if (encoded.length) {
|
|
2334
|
+
return JSON.parse(encoded);
|
|
2335
|
+
}
|
|
2336
|
+
return {};
|
|
2337
|
+
});
|
|
2338
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2339
|
+
const value = await parseBody(errorBody, context);
|
|
2340
|
+
value.message = value.message ?? value.Message;
|
|
2341
|
+
return value;
|
|
2342
|
+
};
|
|
2343
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2344
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2345
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2346
|
+
let cleanValue = rawValue;
|
|
2888
2347
|
if (typeof cleanValue === "number") {
|
|
2889
2348
|
cleanValue = cleanValue.toString();
|
|
2890
2349
|
}
|
|
@@ -2899,7 +2358,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2899
2358
|
}
|
|
2900
2359
|
return cleanValue;
|
|
2901
2360
|
};
|
|
2902
|
-
|
|
2361
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2903
2362
|
if (headerKey !== undefined) {
|
|
2904
2363
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2905
2364
|
}
|