@aws-sdk/client-ssm-contacts 3.186.0 → 3.188.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/SSMContacts.js +110 -117
- package/dist-es/SSMContactsClient.js +22 -28
- package/dist-es/commands/AcceptPageCommand.js +21 -28
- package/dist-es/commands/ActivateContactChannelCommand.js +21 -28
- package/dist-es/commands/CreateContactChannelCommand.js +21 -28
- package/dist-es/commands/CreateContactCommand.js +21 -28
- package/dist-es/commands/DeactivateContactChannelCommand.js +21 -28
- package/dist-es/commands/DeleteContactChannelCommand.js +21 -28
- package/dist-es/commands/DeleteContactCommand.js +21 -28
- package/dist-es/commands/DescribeEngagementCommand.js +21 -28
- package/dist-es/commands/DescribePageCommand.js +21 -28
- package/dist-es/commands/GetContactChannelCommand.js +21 -28
- package/dist-es/commands/GetContactCommand.js +21 -28
- package/dist-es/commands/GetContactPolicyCommand.js +21 -28
- package/dist-es/commands/ListContactChannelsCommand.js +21 -28
- package/dist-es/commands/ListContactsCommand.js +21 -28
- package/dist-es/commands/ListEngagementsCommand.js +21 -28
- package/dist-es/commands/ListPageReceiptsCommand.js +21 -28
- package/dist-es/commands/ListPagesByContactCommand.js +21 -28
- package/dist-es/commands/ListPagesByEngagementCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutContactPolicyCommand.js +21 -28
- package/dist-es/commands/SendActivationCodeCommand.js +21 -28
- package/dist-es/commands/StartEngagementCommand.js +21 -28
- package/dist-es/commands/StopEngagementCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateContactChannelCommand.js +21 -28
- package/dist-es/commands/UpdateContactCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SSMContactsServiceException.js +5 -10
- package/dist-es/models/models_0.js +314 -179
- package/dist-es/pagination/ListContactChannelsPaginator.js +25 -68
- package/dist-es/pagination/ListContactsPaginator.js +25 -68
- package/dist-es/pagination/ListEngagementsPaginator.js +25 -68
- package/dist-es/pagination/ListPageReceiptsPaginator.js +25 -68
- package/dist-es/pagination/ListPagesByContactPaginator.js +25 -68
- package/dist-es/pagination/ListPagesByEngagementPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1913 -2482
- 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,2418 +1,1872 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } 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, 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 { AccessDeniedException, ConflictException, DataEncryptionException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
5
|
import { SSMContactsServiceException as __BaseException } from "../models/SSMContactsServiceException";
|
|
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
|
-
|
|
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
|
-
return
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
export
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
});
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
return
|
|
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
|
-
export
|
|
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
|
-
|
|
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
|
-
export
|
|
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
|
-
parsedBody: parsedBody,
|
|
1459
|
-
exceptionCtor: __BaseException,
|
|
1460
|
-
errorCode: errorCode,
|
|
1461
|
-
});
|
|
1462
|
-
_d.label = 13;
|
|
1463
|
-
case 13: return [2];
|
|
1464
|
-
}
|
|
1465
|
-
});
|
|
1466
|
-
}); };
|
|
1467
|
-
export var deserializeAws_json1_1ListPagesByEngagementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1468
|
-
var data, contents, response;
|
|
1469
|
-
return __generator(this, function (_a) {
|
|
1470
|
-
switch (_a.label) {
|
|
1471
|
-
case 0:
|
|
1472
|
-
if (output.statusCode >= 300) {
|
|
1473
|
-
return [2, deserializeAws_json1_1ListPagesByEngagementCommandError(output, context)];
|
|
1474
|
-
}
|
|
1475
|
-
return [4, parseBody(output.body, context)];
|
|
1476
|
-
case 1:
|
|
1477
|
-
data = _a.sent();
|
|
1478
|
-
contents = {};
|
|
1479
|
-
contents = deserializeAws_json1_1ListPagesByEngagementResult(data, context);
|
|
1480
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1481
|
-
return [2, Promise.resolve(response)];
|
|
1482
|
-
}
|
|
1483
|
-
});
|
|
1484
|
-
}); };
|
|
1485
|
-
var deserializeAws_json1_1ListPagesByEngagementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1486
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1487
|
-
var _c;
|
|
1488
|
-
return __generator(this, function (_d) {
|
|
1489
|
-
switch (_d.label) {
|
|
1490
|
-
case 0:
|
|
1491
|
-
_a = [__assign({}, output)];
|
|
1492
|
-
_c = {};
|
|
1493
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1494
|
-
case 1:
|
|
1495
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
|
-
_b = errorCode;
|
|
1498
|
-
switch (_b) {
|
|
1499
|
-
case "AccessDeniedException": return [3, 2];
|
|
1500
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1501
|
-
case "InternalServerException": return [3, 4];
|
|
1502
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1503
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1504
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1505
|
-
case "ThrottlingException": return [3, 8];
|
|
1506
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1507
|
-
case "ValidationException": return [3, 10];
|
|
1508
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1509
|
-
}
|
|
1510
|
-
return [3, 12];
|
|
1511
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1512
|
-
case 3: throw _d.sent();
|
|
1513
|
-
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1514
|
-
case 5: throw _d.sent();
|
|
1515
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1516
|
-
case 7: throw _d.sent();
|
|
1517
|
-
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1518
|
-
case 9: throw _d.sent();
|
|
1519
|
-
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1520
|
-
case 11: throw _d.sent();
|
|
1521
|
-
case 12:
|
|
1522
|
-
parsedBody = parsedOutput.body;
|
|
1523
|
-
throwDefaultError({
|
|
1524
|
-
output: output,
|
|
1525
|
-
parsedBody: parsedBody,
|
|
1526
|
-
exceptionCtor: __BaseException,
|
|
1527
|
-
errorCode: errorCode,
|
|
1528
|
-
});
|
|
1529
|
-
_d.label = 13;
|
|
1530
|
-
case 13: return [2];
|
|
1531
|
-
}
|
|
1532
|
-
});
|
|
1533
|
-
}); };
|
|
1534
|
-
export var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1535
|
-
var data, contents, response;
|
|
1536
|
-
return __generator(this, function (_a) {
|
|
1537
|
-
switch (_a.label) {
|
|
1538
|
-
case 0:
|
|
1539
|
-
if (output.statusCode >= 300) {
|
|
1540
|
-
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1541
|
-
}
|
|
1542
|
-
return [4, parseBody(output.body, context)];
|
|
1543
|
-
case 1:
|
|
1544
|
-
data = _a.sent();
|
|
1545
|
-
contents = {};
|
|
1546
|
-
contents = deserializeAws_json1_1ListTagsForResourceResult(data, context);
|
|
1547
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1548
|
-
return [2, Promise.resolve(response)];
|
|
1549
|
-
}
|
|
1550
|
-
});
|
|
1551
|
-
}); };
|
|
1552
|
-
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1553
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1554
|
-
var _c;
|
|
1555
|
-
return __generator(this, function (_d) {
|
|
1556
|
-
switch (_d.label) {
|
|
1557
|
-
case 0:
|
|
1558
|
-
_a = [__assign({}, output)];
|
|
1559
|
-
_c = {};
|
|
1560
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1561
|
-
case 1:
|
|
1562
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1563
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
|
-
_b = errorCode;
|
|
1565
|
-
switch (_b) {
|
|
1566
|
-
case "AccessDeniedException": return [3, 2];
|
|
1567
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1568
|
-
case "InternalServerException": return [3, 4];
|
|
1569
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1570
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1571
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1572
|
-
case "ThrottlingException": return [3, 8];
|
|
1573
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1574
|
-
case "ValidationException": return [3, 10];
|
|
1575
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1576
|
-
}
|
|
1577
|
-
return [3, 12];
|
|
1578
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1579
|
-
case 3: throw _d.sent();
|
|
1580
|
-
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1581
|
-
case 5: throw _d.sent();
|
|
1582
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1583
|
-
case 7: throw _d.sent();
|
|
1584
|
-
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1585
|
-
case 9: throw _d.sent();
|
|
1586
|
-
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1587
|
-
case 11: throw _d.sent();
|
|
1588
|
-
case 12:
|
|
1589
|
-
parsedBody = parsedOutput.body;
|
|
1590
|
-
throwDefaultError({
|
|
1591
|
-
output: output,
|
|
1592
|
-
parsedBody: parsedBody,
|
|
1593
|
-
exceptionCtor: __BaseException,
|
|
1594
|
-
errorCode: errorCode,
|
|
1595
|
-
});
|
|
1596
|
-
_d.label = 13;
|
|
1597
|
-
case 13: return [2];
|
|
1598
|
-
}
|
|
1599
|
-
});
|
|
1600
|
-
}); };
|
|
1601
|
-
export var deserializeAws_json1_1PutContactPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1602
|
-
var data, contents, response;
|
|
1603
|
-
return __generator(this, function (_a) {
|
|
1604
|
-
switch (_a.label) {
|
|
1605
|
-
case 0:
|
|
1606
|
-
if (output.statusCode >= 300) {
|
|
1607
|
-
return [2, deserializeAws_json1_1PutContactPolicyCommandError(output, context)];
|
|
1608
|
-
}
|
|
1609
|
-
return [4, parseBody(output.body, context)];
|
|
1610
|
-
case 1:
|
|
1611
|
-
data = _a.sent();
|
|
1612
|
-
contents = {};
|
|
1613
|
-
contents = deserializeAws_json1_1PutContactPolicyResult(data, context);
|
|
1614
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1615
|
-
return [2, Promise.resolve(response)];
|
|
1616
|
-
}
|
|
1617
|
-
});
|
|
1618
|
-
}); };
|
|
1619
|
-
var deserializeAws_json1_1PutContactPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1620
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1621
|
-
var _c;
|
|
1622
|
-
return __generator(this, function (_d) {
|
|
1623
|
-
switch (_d.label) {
|
|
1624
|
-
case 0:
|
|
1625
|
-
_a = [__assign({}, output)];
|
|
1626
|
-
_c = {};
|
|
1627
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1628
|
-
case 1:
|
|
1629
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1630
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
-
_b = errorCode;
|
|
1632
|
-
switch (_b) {
|
|
1633
|
-
case "AccessDeniedException": return [3, 2];
|
|
1634
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1635
|
-
case "ConflictException": return [3, 4];
|
|
1636
|
-
case "com.amazonaws.ssmcontacts#ConflictException": return [3, 4];
|
|
1637
|
-
case "InternalServerException": return [3, 6];
|
|
1638
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
1639
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1640
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
1641
|
-
case "ThrottlingException": return [3, 10];
|
|
1642
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
1643
|
-
case "ValidationException": return [3, 12];
|
|
1644
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
1645
|
-
}
|
|
1646
|
-
return [3, 14];
|
|
1647
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1648
|
-
case 3: throw _d.sent();
|
|
1649
|
-
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1650
|
-
case 5: throw _d.sent();
|
|
1651
|
-
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1652
|
-
case 7: throw _d.sent();
|
|
1653
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1654
|
-
case 9: throw _d.sent();
|
|
1655
|
-
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1656
|
-
case 11: throw _d.sent();
|
|
1657
|
-
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1658
|
-
case 13: throw _d.sent();
|
|
1659
|
-
case 14:
|
|
1660
|
-
parsedBody = parsedOutput.body;
|
|
1661
|
-
throwDefaultError({
|
|
1662
|
-
output: output,
|
|
1663
|
-
parsedBody: parsedBody,
|
|
1664
|
-
exceptionCtor: __BaseException,
|
|
1665
|
-
errorCode: errorCode,
|
|
1666
|
-
});
|
|
1667
|
-
_d.label = 15;
|
|
1668
|
-
case 15: return [2];
|
|
1669
|
-
}
|
|
1670
|
-
});
|
|
1671
|
-
}); };
|
|
1672
|
-
export var deserializeAws_json1_1SendActivationCodeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1673
|
-
var data, contents, response;
|
|
1674
|
-
return __generator(this, function (_a) {
|
|
1675
|
-
switch (_a.label) {
|
|
1676
|
-
case 0:
|
|
1677
|
-
if (output.statusCode >= 300) {
|
|
1678
|
-
return [2, deserializeAws_json1_1SendActivationCodeCommandError(output, context)];
|
|
1679
|
-
}
|
|
1680
|
-
return [4, parseBody(output.body, context)];
|
|
1681
|
-
case 1:
|
|
1682
|
-
data = _a.sent();
|
|
1683
|
-
contents = {};
|
|
1684
|
-
contents = deserializeAws_json1_1SendActivationCodeResult(data, context);
|
|
1685
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1686
|
-
return [2, Promise.resolve(response)];
|
|
1687
|
-
}
|
|
1688
|
-
});
|
|
1689
|
-
}); };
|
|
1690
|
-
var deserializeAws_json1_1SendActivationCodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1691
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1692
|
-
var _c;
|
|
1693
|
-
return __generator(this, function (_d) {
|
|
1694
|
-
switch (_d.label) {
|
|
1695
|
-
case 0:
|
|
1696
|
-
_a = [__assign({}, output)];
|
|
1697
|
-
_c = {};
|
|
1698
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1699
|
-
case 1:
|
|
1700
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1701
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
|
-
_b = errorCode;
|
|
1703
|
-
switch (_b) {
|
|
1704
|
-
case "AccessDeniedException": return [3, 2];
|
|
1705
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1706
|
-
case "DataEncryptionException": return [3, 4];
|
|
1707
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
1708
|
-
case "InternalServerException": return [3, 6];
|
|
1709
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
1710
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1711
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
1712
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
1713
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3, 10];
|
|
1714
|
-
case "ThrottlingException": return [3, 12];
|
|
1715
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 12];
|
|
1716
|
-
case "ValidationException": return [3, 14];
|
|
1717
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 14];
|
|
1718
|
-
}
|
|
1719
|
-
return [3, 16];
|
|
1720
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1721
|
-
case 3: throw _d.sent();
|
|
1722
|
-
case 4: return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
1723
|
-
case 5: throw _d.sent();
|
|
1724
|
-
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1725
|
-
case 7: throw _d.sent();
|
|
1726
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1727
|
-
case 9: throw _d.sent();
|
|
1728
|
-
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1729
|
-
case 11: throw _d.sent();
|
|
1730
|
-
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1731
|
-
case 13: throw _d.sent();
|
|
1732
|
-
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1733
|
-
case 15: throw _d.sent();
|
|
1734
|
-
case 16:
|
|
1735
|
-
parsedBody = parsedOutput.body;
|
|
1736
|
-
throwDefaultError({
|
|
1737
|
-
output: output,
|
|
1738
|
-
parsedBody: parsedBody,
|
|
1739
|
-
exceptionCtor: __BaseException,
|
|
1740
|
-
errorCode: errorCode,
|
|
1741
|
-
});
|
|
1742
|
-
_d.label = 17;
|
|
1743
|
-
case 17: return [2];
|
|
1744
|
-
}
|
|
1745
|
-
});
|
|
1746
|
-
}); };
|
|
1747
|
-
export var deserializeAws_json1_1StartEngagementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var data, contents, response;
|
|
1749
|
-
return __generator(this, function (_a) {
|
|
1750
|
-
switch (_a.label) {
|
|
1751
|
-
case 0:
|
|
1752
|
-
if (output.statusCode >= 300) {
|
|
1753
|
-
return [2, deserializeAws_json1_1StartEngagementCommandError(output, context)];
|
|
1754
|
-
}
|
|
1755
|
-
return [4, parseBody(output.body, context)];
|
|
1756
|
-
case 1:
|
|
1757
|
-
data = _a.sent();
|
|
1758
|
-
contents = {};
|
|
1759
|
-
contents = deserializeAws_json1_1StartEngagementResult(data, context);
|
|
1760
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1761
|
-
return [2, Promise.resolve(response)];
|
|
1762
|
-
}
|
|
1763
|
-
});
|
|
1764
|
-
}); };
|
|
1765
|
-
var deserializeAws_json1_1StartEngagementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1766
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1767
|
-
var _c;
|
|
1768
|
-
return __generator(this, function (_d) {
|
|
1769
|
-
switch (_d.label) {
|
|
1770
|
-
case 0:
|
|
1771
|
-
_a = [__assign({}, output)];
|
|
1772
|
-
_c = {};
|
|
1773
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1774
|
-
case 1:
|
|
1775
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1776
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1777
|
-
_b = errorCode;
|
|
1778
|
-
switch (_b) {
|
|
1779
|
-
case "AccessDeniedException": return [3, 2];
|
|
1780
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1781
|
-
case "DataEncryptionException": return [3, 4];
|
|
1782
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
1783
|
-
case "InternalServerException": return [3, 6];
|
|
1784
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
1785
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1786
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
1787
|
-
case "ThrottlingException": return [3, 10];
|
|
1788
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
1789
|
-
case "ValidationException": return [3, 12];
|
|
1790
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
1791
|
-
}
|
|
1792
|
-
return [3, 14];
|
|
1793
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1794
|
-
case 3: throw _d.sent();
|
|
1795
|
-
case 4: return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
1796
|
-
case 5: throw _d.sent();
|
|
1797
|
-
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1798
|
-
case 7: throw _d.sent();
|
|
1799
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1800
|
-
case 9: throw _d.sent();
|
|
1801
|
-
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1802
|
-
case 11: throw _d.sent();
|
|
1803
|
-
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1804
|
-
case 13: throw _d.sent();
|
|
1805
|
-
case 14:
|
|
1806
|
-
parsedBody = parsedOutput.body;
|
|
1807
|
-
throwDefaultError({
|
|
1808
|
-
output: output,
|
|
1809
|
-
parsedBody: parsedBody,
|
|
1810
|
-
exceptionCtor: __BaseException,
|
|
1811
|
-
errorCode: errorCode,
|
|
1812
|
-
});
|
|
1813
|
-
_d.label = 15;
|
|
1814
|
-
case 15: return [2];
|
|
1815
|
-
}
|
|
1816
|
-
});
|
|
1817
|
-
}); };
|
|
1818
|
-
export var deserializeAws_json1_1StopEngagementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1819
|
-
var data, contents, response;
|
|
1820
|
-
return __generator(this, function (_a) {
|
|
1821
|
-
switch (_a.label) {
|
|
1822
|
-
case 0:
|
|
1823
|
-
if (output.statusCode >= 300) {
|
|
1824
|
-
return [2, deserializeAws_json1_1StopEngagementCommandError(output, context)];
|
|
1825
|
-
}
|
|
1826
|
-
return [4, parseBody(output.body, context)];
|
|
1827
|
-
case 1:
|
|
1828
|
-
data = _a.sent();
|
|
1829
|
-
contents = {};
|
|
1830
|
-
contents = deserializeAws_json1_1StopEngagementResult(data, context);
|
|
1831
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1832
|
-
return [2, Promise.resolve(response)];
|
|
1833
|
-
}
|
|
1834
|
-
});
|
|
1835
|
-
}); };
|
|
1836
|
-
var deserializeAws_json1_1StopEngagementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1837
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1838
|
-
var _c;
|
|
1839
|
-
return __generator(this, function (_d) {
|
|
1840
|
-
switch (_d.label) {
|
|
1841
|
-
case 0:
|
|
1842
|
-
_a = [__assign({}, output)];
|
|
1843
|
-
_c = {};
|
|
1844
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1845
|
-
case 1:
|
|
1846
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1847
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
|
-
_b = errorCode;
|
|
1849
|
-
switch (_b) {
|
|
1850
|
-
case "AccessDeniedException": return [3, 2];
|
|
1851
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1852
|
-
case "InternalServerException": return [3, 4];
|
|
1853
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1854
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1855
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1856
|
-
case "ThrottlingException": return [3, 8];
|
|
1857
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1858
|
-
case "ValidationException": return [3, 10];
|
|
1859
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1860
|
-
}
|
|
1861
|
-
return [3, 12];
|
|
1862
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1863
|
-
case 3: throw _d.sent();
|
|
1864
|
-
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1865
|
-
case 5: throw _d.sent();
|
|
1866
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1867
|
-
case 7: throw _d.sent();
|
|
1868
|
-
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1869
|
-
case 9: throw _d.sent();
|
|
1870
|
-
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1871
|
-
case 11: throw _d.sent();
|
|
1872
|
-
case 12:
|
|
1873
|
-
parsedBody = parsedOutput.body;
|
|
1874
|
-
throwDefaultError({
|
|
1875
|
-
output: output,
|
|
1876
|
-
parsedBody: parsedBody,
|
|
1877
|
-
exceptionCtor: __BaseException,
|
|
1878
|
-
errorCode: errorCode,
|
|
1879
|
-
});
|
|
1880
|
-
_d.label = 13;
|
|
1881
|
-
case 13: return [2];
|
|
1882
|
-
}
|
|
1883
|
-
});
|
|
1884
|
-
}); };
|
|
1885
|
-
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1886
|
-
var data, contents, response;
|
|
1887
|
-
return __generator(this, function (_a) {
|
|
1888
|
-
switch (_a.label) {
|
|
1889
|
-
case 0:
|
|
1890
|
-
if (output.statusCode >= 300) {
|
|
1891
|
-
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1892
|
-
}
|
|
1893
|
-
return [4, parseBody(output.body, context)];
|
|
1894
|
-
case 1:
|
|
1895
|
-
data = _a.sent();
|
|
1896
|
-
contents = {};
|
|
1897
|
-
contents = deserializeAws_json1_1TagResourceResult(data, context);
|
|
1898
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1899
|
-
return [2, Promise.resolve(response)];
|
|
1900
|
-
}
|
|
1901
|
-
});
|
|
1902
|
-
}); };
|
|
1903
|
-
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1904
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1905
|
-
var _c;
|
|
1906
|
-
return __generator(this, function (_d) {
|
|
1907
|
-
switch (_d.label) {
|
|
1908
|
-
case 0:
|
|
1909
|
-
_a = [__assign({}, output)];
|
|
1910
|
-
_c = {};
|
|
1911
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1912
|
-
case 1:
|
|
1913
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1914
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
-
_b = errorCode;
|
|
1916
|
-
switch (_b) {
|
|
1917
|
-
case "AccessDeniedException": return [3, 2];
|
|
1918
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1919
|
-
case "InternalServerException": return [3, 4];
|
|
1920
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1921
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1922
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1923
|
-
case "ServiceQuotaExceededException": return [3, 8];
|
|
1924
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3, 8];
|
|
1925
|
-
case "ThrottlingException": return [3, 10];
|
|
1926
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 10];
|
|
1927
|
-
case "ValidationException": return [3, 12];
|
|
1928
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 12];
|
|
1929
|
-
}
|
|
1930
|
-
return [3, 14];
|
|
1931
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1932
|
-
case 3: throw _d.sent();
|
|
1933
|
-
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1934
|
-
case 5: throw _d.sent();
|
|
1935
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1936
|
-
case 7: throw _d.sent();
|
|
1937
|
-
case 8: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1938
|
-
case 9: throw _d.sent();
|
|
1939
|
-
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1940
|
-
case 11: throw _d.sent();
|
|
1941
|
-
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1942
|
-
case 13: throw _d.sent();
|
|
1943
|
-
case 14:
|
|
1944
|
-
parsedBody = parsedOutput.body;
|
|
1945
|
-
throwDefaultError({
|
|
1946
|
-
output: output,
|
|
1947
|
-
parsedBody: parsedBody,
|
|
1948
|
-
exceptionCtor: __BaseException,
|
|
1949
|
-
errorCode: errorCode,
|
|
1950
|
-
});
|
|
1951
|
-
_d.label = 15;
|
|
1952
|
-
case 15: return [2];
|
|
1953
|
-
}
|
|
1954
|
-
});
|
|
1955
|
-
}); };
|
|
1956
|
-
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1957
|
-
var data, contents, response;
|
|
1958
|
-
return __generator(this, function (_a) {
|
|
1959
|
-
switch (_a.label) {
|
|
1960
|
-
case 0:
|
|
1961
|
-
if (output.statusCode >= 300) {
|
|
1962
|
-
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1963
|
-
}
|
|
1964
|
-
return [4, parseBody(output.body, context)];
|
|
1965
|
-
case 1:
|
|
1966
|
-
data = _a.sent();
|
|
1967
|
-
contents = {};
|
|
1968
|
-
contents = deserializeAws_json1_1UntagResourceResult(data, context);
|
|
1969
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1970
|
-
return [2, Promise.resolve(response)];
|
|
1971
|
-
}
|
|
1972
|
-
});
|
|
1973
|
-
}); };
|
|
1974
|
-
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1975
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1976
|
-
var _c;
|
|
1977
|
-
return __generator(this, function (_d) {
|
|
1978
|
-
switch (_d.label) {
|
|
1979
|
-
case 0:
|
|
1980
|
-
_a = [__assign({}, output)];
|
|
1981
|
-
_c = {};
|
|
1982
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1983
|
-
case 1:
|
|
1984
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1985
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
|
-
_b = errorCode;
|
|
1987
|
-
switch (_b) {
|
|
1988
|
-
case "AccessDeniedException": return [3, 2];
|
|
1989
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
1990
|
-
case "InternalServerException": return [3, 4];
|
|
1991
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 4];
|
|
1992
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1993
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 6];
|
|
1994
|
-
case "ThrottlingException": return [3, 8];
|
|
1995
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 8];
|
|
1996
|
-
case "ValidationException": return [3, 10];
|
|
1997
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 10];
|
|
1998
|
-
}
|
|
1999
|
-
return [3, 12];
|
|
2000
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2001
|
-
case 3: throw _d.sent();
|
|
2002
|
-
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2003
|
-
case 5: throw _d.sent();
|
|
2004
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2005
|
-
case 7: throw _d.sent();
|
|
2006
|
-
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2007
|
-
case 9: throw _d.sent();
|
|
2008
|
-
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2009
|
-
case 11: throw _d.sent();
|
|
2010
|
-
case 12:
|
|
2011
|
-
parsedBody = parsedOutput.body;
|
|
2012
|
-
throwDefaultError({
|
|
2013
|
-
output: output,
|
|
2014
|
-
parsedBody: parsedBody,
|
|
2015
|
-
exceptionCtor: __BaseException,
|
|
2016
|
-
errorCode: errorCode,
|
|
2017
|
-
});
|
|
2018
|
-
_d.label = 13;
|
|
2019
|
-
case 13: return [2];
|
|
2020
|
-
}
|
|
2021
|
-
});
|
|
2022
|
-
}); };
|
|
2023
|
-
export var deserializeAws_json1_1UpdateContactCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2024
|
-
var data, contents, response;
|
|
2025
|
-
return __generator(this, function (_a) {
|
|
2026
|
-
switch (_a.label) {
|
|
2027
|
-
case 0:
|
|
2028
|
-
if (output.statusCode >= 300) {
|
|
2029
|
-
return [2, deserializeAws_json1_1UpdateContactCommandError(output, context)];
|
|
2030
|
-
}
|
|
2031
|
-
return [4, parseBody(output.body, context)];
|
|
2032
|
-
case 1:
|
|
2033
|
-
data = _a.sent();
|
|
2034
|
-
contents = {};
|
|
2035
|
-
contents = deserializeAws_json1_1UpdateContactResult(data, context);
|
|
2036
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2037
|
-
return [2, Promise.resolve(response)];
|
|
2038
|
-
}
|
|
2039
|
-
});
|
|
2040
|
-
}); };
|
|
2041
|
-
var deserializeAws_json1_1UpdateContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2042
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2043
|
-
var _c;
|
|
2044
|
-
return __generator(this, function (_d) {
|
|
2045
|
-
switch (_d.label) {
|
|
2046
|
-
case 0:
|
|
2047
|
-
_a = [__assign({}, output)];
|
|
2048
|
-
_c = {};
|
|
2049
|
-
return [4, parseErrorBody(output.body, context)];
|
|
2050
|
-
case 1:
|
|
2051
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
|
-
_b = errorCode;
|
|
2054
|
-
switch (_b) {
|
|
2055
|
-
case "AccessDeniedException": return [3, 2];
|
|
2056
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2057
|
-
case "DataEncryptionException": return [3, 4];
|
|
2058
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 4];
|
|
2059
|
-
case "InternalServerException": return [3, 6];
|
|
2060
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 6];
|
|
2061
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
2062
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 8];
|
|
2063
|
-
case "ServiceQuotaExceededException": return [3, 10];
|
|
2064
|
-
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException": return [3, 10];
|
|
2065
|
-
case "ThrottlingException": return [3, 12];
|
|
2066
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 12];
|
|
2067
|
-
case "ValidationException": return [3, 14];
|
|
2068
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 14];
|
|
2069
|
-
}
|
|
2070
|
-
return [3, 16];
|
|
2071
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2072
|
-
case 3: throw _d.sent();
|
|
2073
|
-
case 4: return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
2074
|
-
case 5: throw _d.sent();
|
|
2075
|
-
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2076
|
-
case 7: throw _d.sent();
|
|
2077
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2078
|
-
case 9: throw _d.sent();
|
|
2079
|
-
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2080
|
-
case 11: throw _d.sent();
|
|
2081
|
-
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2082
|
-
case 13: throw _d.sent();
|
|
2083
|
-
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2084
|
-
case 15: throw _d.sent();
|
|
2085
|
-
case 16:
|
|
2086
|
-
parsedBody = parsedOutput.body;
|
|
2087
|
-
throwDefaultError({
|
|
2088
|
-
output: output,
|
|
2089
|
-
parsedBody: parsedBody,
|
|
2090
|
-
exceptionCtor: __BaseException,
|
|
2091
|
-
errorCode: errorCode,
|
|
2092
|
-
});
|
|
2093
|
-
_d.label = 17;
|
|
2094
|
-
case 17: return [2];
|
|
2095
|
-
}
|
|
2096
|
-
});
|
|
2097
|
-
}); };
|
|
2098
|
-
export var deserializeAws_json1_1UpdateContactChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2099
|
-
var data, contents, response;
|
|
2100
|
-
return __generator(this, function (_a) {
|
|
2101
|
-
switch (_a.label) {
|
|
2102
|
-
case 0:
|
|
2103
|
-
if (output.statusCode >= 300) {
|
|
2104
|
-
return [2, deserializeAws_json1_1UpdateContactChannelCommandError(output, context)];
|
|
2105
|
-
}
|
|
2106
|
-
return [4, parseBody(output.body, context)];
|
|
2107
|
-
case 1:
|
|
2108
|
-
data = _a.sent();
|
|
2109
|
-
contents = {};
|
|
2110
|
-
contents = deserializeAws_json1_1UpdateContactChannelResult(data, context);
|
|
2111
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2112
|
-
return [2, Promise.resolve(response)];
|
|
2113
|
-
}
|
|
2114
|
-
});
|
|
2115
|
-
}); };
|
|
2116
|
-
var deserializeAws_json1_1UpdateContactChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2117
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2118
|
-
var _c;
|
|
2119
|
-
return __generator(this, function (_d) {
|
|
2120
|
-
switch (_d.label) {
|
|
2121
|
-
case 0:
|
|
2122
|
-
_a = [__assign({}, output)];
|
|
2123
|
-
_c = {};
|
|
2124
|
-
return [4, parseErrorBody(output.body, context)];
|
|
2125
|
-
case 1:
|
|
2126
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2127
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
|
-
_b = errorCode;
|
|
2129
|
-
switch (_b) {
|
|
2130
|
-
case "AccessDeniedException": return [3, 2];
|
|
2131
|
-
case "com.amazonaws.ssmcontacts#AccessDeniedException": return [3, 2];
|
|
2132
|
-
case "ConflictException": return [3, 4];
|
|
2133
|
-
case "com.amazonaws.ssmcontacts#ConflictException": return [3, 4];
|
|
2134
|
-
case "DataEncryptionException": return [3, 6];
|
|
2135
|
-
case "com.amazonaws.ssmcontacts#DataEncryptionException": return [3, 6];
|
|
2136
|
-
case "InternalServerException": return [3, 8];
|
|
2137
|
-
case "com.amazonaws.ssmcontacts#InternalServerException": return [3, 8];
|
|
2138
|
-
case "ResourceNotFoundException": return [3, 10];
|
|
2139
|
-
case "com.amazonaws.ssmcontacts#ResourceNotFoundException": return [3, 10];
|
|
2140
|
-
case "ThrottlingException": return [3, 12];
|
|
2141
|
-
case "com.amazonaws.ssmcontacts#ThrottlingException": return [3, 12];
|
|
2142
|
-
case "ValidationException": return [3, 14];
|
|
2143
|
-
case "com.amazonaws.ssmcontacts#ValidationException": return [3, 14];
|
|
2144
|
-
}
|
|
2145
|
-
return [3, 16];
|
|
2146
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2147
|
-
case 3: throw _d.sent();
|
|
2148
|
-
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2149
|
-
case 5: throw _d.sent();
|
|
2150
|
-
case 6: return [4, deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context)];
|
|
2151
|
-
case 7: throw _d.sent();
|
|
2152
|
-
case 8: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2153
|
-
case 9: throw _d.sent();
|
|
2154
|
-
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2155
|
-
case 11: throw _d.sent();
|
|
2156
|
-
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2157
|
-
case 13: throw _d.sent();
|
|
2158
|
-
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2159
|
-
case 15: throw _d.sent();
|
|
2160
|
-
case 16:
|
|
2161
|
-
parsedBody = parsedOutput.body;
|
|
2162
|
-
throwDefaultError({
|
|
2163
|
-
output: output,
|
|
2164
|
-
parsedBody: parsedBody,
|
|
2165
|
-
exceptionCtor: __BaseException,
|
|
2166
|
-
errorCode: errorCode,
|
|
2167
|
-
});
|
|
2168
|
-
_d.label = 17;
|
|
2169
|
-
case 17: return [2];
|
|
2170
|
-
}
|
|
2171
|
-
});
|
|
2172
|
-
}); };
|
|
2173
|
-
var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2174
|
-
var body, deserialized, exception;
|
|
2175
|
-
return __generator(this, function (_a) {
|
|
2176
|
-
body = parsedOutput.body;
|
|
2177
|
-
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2178
|
-
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2179
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2180
|
-
});
|
|
2181
|
-
}); };
|
|
2182
|
-
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2183
|
-
var body, deserialized, exception;
|
|
2184
|
-
return __generator(this, function (_a) {
|
|
2185
|
-
body = parsedOutput.body;
|
|
2186
|
-
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
2187
|
-
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2188
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2189
|
-
});
|
|
2190
|
-
}); };
|
|
2191
|
-
var deserializeAws_json1_1DataEncryptionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2192
|
-
var body, deserialized, exception;
|
|
2193
|
-
return __generator(this, function (_a) {
|
|
2194
|
-
body = parsedOutput.body;
|
|
2195
|
-
deserialized = deserializeAws_json1_1DataEncryptionException(body, context);
|
|
2196
|
-
exception = new DataEncryptionException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2197
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2198
|
-
});
|
|
2199
|
-
}); };
|
|
2200
|
-
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2201
|
-
var body, deserialized, exception;
|
|
2202
|
-
return __generator(this, function (_a) {
|
|
2203
|
-
body = parsedOutput.body;
|
|
2204
|
-
deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
2205
|
-
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2206
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2207
|
-
});
|
|
2208
|
-
}); };
|
|
2209
|
-
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2210
|
-
var body, deserialized, exception;
|
|
2211
|
-
return __generator(this, function (_a) {
|
|
2212
|
-
body = parsedOutput.body;
|
|
2213
|
-
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2214
|
-
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2215
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2216
|
-
});
|
|
2217
|
-
}); };
|
|
2218
|
-
var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2219
|
-
var body, deserialized, exception;
|
|
2220
|
-
return __generator(this, function (_a) {
|
|
2221
|
-
body = parsedOutput.body;
|
|
2222
|
-
deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
2223
|
-
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2224
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2225
|
-
});
|
|
2226
|
-
}); };
|
|
2227
|
-
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2228
|
-
var body, deserialized, exception;
|
|
2229
|
-
return __generator(this, function (_a) {
|
|
2230
|
-
body = parsedOutput.body;
|
|
2231
|
-
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
2232
|
-
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2233
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2234
|
-
});
|
|
2235
|
-
}); };
|
|
2236
|
-
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2237
|
-
var body, deserialized, exception;
|
|
2238
|
-
return __generator(this, function (_a) {
|
|
2239
|
-
body = parsedOutput.body;
|
|
2240
|
-
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
2241
|
-
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2242
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2243
|
-
});
|
|
2244
|
-
}); };
|
|
2245
|
-
var serializeAws_json1_1AcceptPageRequest = function (input, context) {
|
|
2246
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AcceptCode != null && { AcceptCode: input.AcceptCode })), (input.AcceptCodeValidation != null && { AcceptCodeValidation: input.AcceptCodeValidation })), (input.AcceptType != null && { AcceptType: input.AcceptType })), (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId })), (input.Note != null && { Note: input.Note })), (input.PageId != null && { PageId: input.PageId }));
|
|
6
|
+
export const serializeAws_json1_1AcceptPageCommand = async (input, context) => {
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/x-amz-json-1.1",
|
|
9
|
+
"x-amz-target": "SSMContacts.AcceptPage",
|
|
10
|
+
};
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(serializeAws_json1_1AcceptPageRequest(input, context));
|
|
13
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
+
};
|
|
15
|
+
export const serializeAws_json1_1ActivateContactChannelCommand = async (input, context) => {
|
|
16
|
+
const headers = {
|
|
17
|
+
"content-type": "application/x-amz-json-1.1",
|
|
18
|
+
"x-amz-target": "SSMContacts.ActivateContactChannel",
|
|
19
|
+
};
|
|
20
|
+
let body;
|
|
21
|
+
body = JSON.stringify(serializeAws_json1_1ActivateContactChannelRequest(input, context));
|
|
22
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
+
};
|
|
24
|
+
export const serializeAws_json1_1CreateContactCommand = async (input, context) => {
|
|
25
|
+
const headers = {
|
|
26
|
+
"content-type": "application/x-amz-json-1.1",
|
|
27
|
+
"x-amz-target": "SSMContacts.CreateContact",
|
|
28
|
+
};
|
|
29
|
+
let body;
|
|
30
|
+
body = JSON.stringify(serializeAws_json1_1CreateContactRequest(input, context));
|
|
31
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
|
+
};
|
|
33
|
+
export const serializeAws_json1_1CreateContactChannelCommand = async (input, context) => {
|
|
34
|
+
const headers = {
|
|
35
|
+
"content-type": "application/x-amz-json-1.1",
|
|
36
|
+
"x-amz-target": "SSMContacts.CreateContactChannel",
|
|
37
|
+
};
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify(serializeAws_json1_1CreateContactChannelRequest(input, context));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
42
|
+
export const serializeAws_json1_1DeactivateContactChannelCommand = async (input, context) => {
|
|
43
|
+
const headers = {
|
|
44
|
+
"content-type": "application/x-amz-json-1.1",
|
|
45
|
+
"x-amz-target": "SSMContacts.DeactivateContactChannel",
|
|
46
|
+
};
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify(serializeAws_json1_1DeactivateContactChannelRequest(input, context));
|
|
49
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
+
};
|
|
51
|
+
export const serializeAws_json1_1DeleteContactCommand = async (input, context) => {
|
|
52
|
+
const headers = {
|
|
53
|
+
"content-type": "application/x-amz-json-1.1",
|
|
54
|
+
"x-amz-target": "SSMContacts.DeleteContact",
|
|
55
|
+
};
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DeleteContactRequest(input, context));
|
|
58
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
+
};
|
|
60
|
+
export const serializeAws_json1_1DeleteContactChannelCommand = async (input, context) => {
|
|
61
|
+
const headers = {
|
|
62
|
+
"content-type": "application/x-amz-json-1.1",
|
|
63
|
+
"x-amz-target": "SSMContacts.DeleteContactChannel",
|
|
64
|
+
};
|
|
65
|
+
let body;
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_1DeleteContactChannelRequest(input, context));
|
|
67
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
|
+
};
|
|
69
|
+
export const serializeAws_json1_1DescribeEngagementCommand = async (input, context) => {
|
|
70
|
+
const headers = {
|
|
71
|
+
"content-type": "application/x-amz-json-1.1",
|
|
72
|
+
"x-amz-target": "SSMContacts.DescribeEngagement",
|
|
73
|
+
};
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEngagementRequest(input, context));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
78
|
+
export const serializeAws_json1_1DescribePageCommand = async (input, context) => {
|
|
79
|
+
const headers = {
|
|
80
|
+
"content-type": "application/x-amz-json-1.1",
|
|
81
|
+
"x-amz-target": "SSMContacts.DescribePage",
|
|
82
|
+
};
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify(serializeAws_json1_1DescribePageRequest(input, context));
|
|
85
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
+
};
|
|
87
|
+
export const serializeAws_json1_1GetContactCommand = async (input, context) => {
|
|
88
|
+
const headers = {
|
|
89
|
+
"content-type": "application/x-amz-json-1.1",
|
|
90
|
+
"x-amz-target": "SSMContacts.GetContact",
|
|
91
|
+
};
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(serializeAws_json1_1GetContactRequest(input, context));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
96
|
+
export const serializeAws_json1_1GetContactChannelCommand = async (input, context) => {
|
|
97
|
+
const headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "SSMContacts.GetContactChannel",
|
|
100
|
+
};
|
|
101
|
+
let body;
|
|
102
|
+
body = JSON.stringify(serializeAws_json1_1GetContactChannelRequest(input, context));
|
|
103
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
+
};
|
|
105
|
+
export const serializeAws_json1_1GetContactPolicyCommand = async (input, context) => {
|
|
106
|
+
const headers = {
|
|
107
|
+
"content-type": "application/x-amz-json-1.1",
|
|
108
|
+
"x-amz-target": "SSMContacts.GetContactPolicy",
|
|
109
|
+
};
|
|
110
|
+
let body;
|
|
111
|
+
body = JSON.stringify(serializeAws_json1_1GetContactPolicyRequest(input, context));
|
|
112
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
+
};
|
|
114
|
+
export const serializeAws_json1_1ListContactChannelsCommand = async (input, context) => {
|
|
115
|
+
const headers = {
|
|
116
|
+
"content-type": "application/x-amz-json-1.1",
|
|
117
|
+
"x-amz-target": "SSMContacts.ListContactChannels",
|
|
118
|
+
};
|
|
119
|
+
let body;
|
|
120
|
+
body = JSON.stringify(serializeAws_json1_1ListContactChannelsRequest(input, context));
|
|
121
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
|
+
};
|
|
123
|
+
export const serializeAws_json1_1ListContactsCommand = async (input, context) => {
|
|
124
|
+
const headers = {
|
|
125
|
+
"content-type": "application/x-amz-json-1.1",
|
|
126
|
+
"x-amz-target": "SSMContacts.ListContacts",
|
|
127
|
+
};
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify(serializeAws_json1_1ListContactsRequest(input, context));
|
|
130
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
+
};
|
|
132
|
+
export const serializeAws_json1_1ListEngagementsCommand = async (input, context) => {
|
|
133
|
+
const headers = {
|
|
134
|
+
"content-type": "application/x-amz-json-1.1",
|
|
135
|
+
"x-amz-target": "SSMContacts.ListEngagements",
|
|
136
|
+
};
|
|
137
|
+
let body;
|
|
138
|
+
body = JSON.stringify(serializeAws_json1_1ListEngagementsRequest(input, context));
|
|
139
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
+
};
|
|
141
|
+
export const serializeAws_json1_1ListPageReceiptsCommand = async (input, context) => {
|
|
142
|
+
const headers = {
|
|
143
|
+
"content-type": "application/x-amz-json-1.1",
|
|
144
|
+
"x-amz-target": "SSMContacts.ListPageReceipts",
|
|
145
|
+
};
|
|
146
|
+
let body;
|
|
147
|
+
body = JSON.stringify(serializeAws_json1_1ListPageReceiptsRequest(input, context));
|
|
148
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
+
};
|
|
150
|
+
export const serializeAws_json1_1ListPagesByContactCommand = async (input, context) => {
|
|
151
|
+
const headers = {
|
|
152
|
+
"content-type": "application/x-amz-json-1.1",
|
|
153
|
+
"x-amz-target": "SSMContacts.ListPagesByContact",
|
|
154
|
+
};
|
|
155
|
+
let body;
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1ListPagesByContactRequest(input, context));
|
|
157
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
|
+
};
|
|
159
|
+
export const serializeAws_json1_1ListPagesByEngagementCommand = async (input, context) => {
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/x-amz-json-1.1",
|
|
162
|
+
"x-amz-target": "SSMContacts.ListPagesByEngagement",
|
|
163
|
+
};
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_1ListPagesByEngagementRequest(input, context));
|
|
166
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
+
};
|
|
168
|
+
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
169
|
+
const headers = {
|
|
170
|
+
"content-type": "application/x-amz-json-1.1",
|
|
171
|
+
"x-amz-target": "SSMContacts.ListTagsForResource",
|
|
172
|
+
};
|
|
173
|
+
let body;
|
|
174
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
175
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
+
};
|
|
177
|
+
export const serializeAws_json1_1PutContactPolicyCommand = async (input, context) => {
|
|
178
|
+
const headers = {
|
|
179
|
+
"content-type": "application/x-amz-json-1.1",
|
|
180
|
+
"x-amz-target": "SSMContacts.PutContactPolicy",
|
|
181
|
+
};
|
|
182
|
+
let body;
|
|
183
|
+
body = JSON.stringify(serializeAws_json1_1PutContactPolicyRequest(input, context));
|
|
184
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
+
};
|
|
186
|
+
export const serializeAws_json1_1SendActivationCodeCommand = async (input, context) => {
|
|
187
|
+
const headers = {
|
|
188
|
+
"content-type": "application/x-amz-json-1.1",
|
|
189
|
+
"x-amz-target": "SSMContacts.SendActivationCode",
|
|
190
|
+
};
|
|
191
|
+
let body;
|
|
192
|
+
body = JSON.stringify(serializeAws_json1_1SendActivationCodeRequest(input, context));
|
|
193
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
|
+
};
|
|
195
|
+
export const serializeAws_json1_1StartEngagementCommand = async (input, context) => {
|
|
196
|
+
const headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.1",
|
|
198
|
+
"x-amz-target": "SSMContacts.StartEngagement",
|
|
199
|
+
};
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(serializeAws_json1_1StartEngagementRequest(input, context));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
204
|
+
export const serializeAws_json1_1StopEngagementCommand = async (input, context) => {
|
|
205
|
+
const headers = {
|
|
206
|
+
"content-type": "application/x-amz-json-1.1",
|
|
207
|
+
"x-amz-target": "SSMContacts.StopEngagement",
|
|
208
|
+
};
|
|
209
|
+
let body;
|
|
210
|
+
body = JSON.stringify(serializeAws_json1_1StopEngagementRequest(input, context));
|
|
211
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
+
};
|
|
213
|
+
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
214
|
+
const headers = {
|
|
215
|
+
"content-type": "application/x-amz-json-1.1",
|
|
216
|
+
"x-amz-target": "SSMContacts.TagResource",
|
|
217
|
+
};
|
|
218
|
+
let body;
|
|
219
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
220
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
+
};
|
|
222
|
+
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
223
|
+
const headers = {
|
|
224
|
+
"content-type": "application/x-amz-json-1.1",
|
|
225
|
+
"x-amz-target": "SSMContacts.UntagResource",
|
|
226
|
+
};
|
|
227
|
+
let body;
|
|
228
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
229
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
|
+
};
|
|
231
|
+
export const serializeAws_json1_1UpdateContactCommand = async (input, context) => {
|
|
232
|
+
const headers = {
|
|
233
|
+
"content-type": "application/x-amz-json-1.1",
|
|
234
|
+
"x-amz-target": "SSMContacts.UpdateContact",
|
|
235
|
+
};
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(serializeAws_json1_1UpdateContactRequest(input, context));
|
|
238
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
+
};
|
|
240
|
+
export const serializeAws_json1_1UpdateContactChannelCommand = async (input, context) => {
|
|
241
|
+
const headers = {
|
|
242
|
+
"content-type": "application/x-amz-json-1.1",
|
|
243
|
+
"x-amz-target": "SSMContacts.UpdateContactChannel",
|
|
244
|
+
};
|
|
245
|
+
let body;
|
|
246
|
+
body = JSON.stringify(serializeAws_json1_1UpdateContactChannelRequest(input, context));
|
|
247
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
+
};
|
|
249
|
+
export const deserializeAws_json1_1AcceptPageCommand = async (output, context) => {
|
|
250
|
+
if (output.statusCode >= 300) {
|
|
251
|
+
return deserializeAws_json1_1AcceptPageCommandError(output, context);
|
|
252
|
+
}
|
|
253
|
+
const data = await parseBody(output.body, context);
|
|
254
|
+
let contents = {};
|
|
255
|
+
contents = deserializeAws_json1_1AcceptPageResult(data, context);
|
|
256
|
+
const response = {
|
|
257
|
+
$metadata: deserializeMetadata(output),
|
|
258
|
+
...contents,
|
|
259
|
+
};
|
|
260
|
+
return Promise.resolve(response);
|
|
261
|
+
};
|
|
262
|
+
const deserializeAws_json1_1AcceptPageCommandError = async (output, context) => {
|
|
263
|
+
const parsedOutput = {
|
|
264
|
+
...output,
|
|
265
|
+
body: await parseErrorBody(output.body, context),
|
|
266
|
+
};
|
|
267
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
268
|
+
switch (errorCode) {
|
|
269
|
+
case "AccessDeniedException":
|
|
270
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
271
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
272
|
+
case "InternalServerException":
|
|
273
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
274
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
275
|
+
case "ResourceNotFoundException":
|
|
276
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
277
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
278
|
+
case "ThrottlingException":
|
|
279
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
280
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
281
|
+
case "ValidationException":
|
|
282
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
283
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
284
|
+
default:
|
|
285
|
+
const parsedBody = parsedOutput.body;
|
|
286
|
+
throwDefaultError({
|
|
287
|
+
output,
|
|
288
|
+
parsedBody,
|
|
289
|
+
exceptionCtor: __BaseException,
|
|
290
|
+
errorCode,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
export const deserializeAws_json1_1ActivateContactChannelCommand = async (output, context) => {
|
|
295
|
+
if (output.statusCode >= 300) {
|
|
296
|
+
return deserializeAws_json1_1ActivateContactChannelCommandError(output, context);
|
|
297
|
+
}
|
|
298
|
+
const data = await parseBody(output.body, context);
|
|
299
|
+
let contents = {};
|
|
300
|
+
contents = deserializeAws_json1_1ActivateContactChannelResult(data, context);
|
|
301
|
+
const response = {
|
|
302
|
+
$metadata: deserializeMetadata(output),
|
|
303
|
+
...contents,
|
|
304
|
+
};
|
|
305
|
+
return Promise.resolve(response);
|
|
306
|
+
};
|
|
307
|
+
const deserializeAws_json1_1ActivateContactChannelCommandError = async (output, context) => {
|
|
308
|
+
const parsedOutput = {
|
|
309
|
+
...output,
|
|
310
|
+
body: await parseErrorBody(output.body, context),
|
|
311
|
+
};
|
|
312
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
313
|
+
switch (errorCode) {
|
|
314
|
+
case "AccessDeniedException":
|
|
315
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
316
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
317
|
+
case "InternalServerException":
|
|
318
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
319
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
320
|
+
case "ResourceNotFoundException":
|
|
321
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
322
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
323
|
+
case "ThrottlingException":
|
|
324
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
325
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
326
|
+
case "ValidationException":
|
|
327
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
328
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
329
|
+
default:
|
|
330
|
+
const parsedBody = parsedOutput.body;
|
|
331
|
+
throwDefaultError({
|
|
332
|
+
output,
|
|
333
|
+
parsedBody,
|
|
334
|
+
exceptionCtor: __BaseException,
|
|
335
|
+
errorCode,
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
export const deserializeAws_json1_1CreateContactCommand = async (output, context) => {
|
|
340
|
+
if (output.statusCode >= 300) {
|
|
341
|
+
return deserializeAws_json1_1CreateContactCommandError(output, context);
|
|
342
|
+
}
|
|
343
|
+
const data = await parseBody(output.body, context);
|
|
344
|
+
let contents = {};
|
|
345
|
+
contents = deserializeAws_json1_1CreateContactResult(data, context);
|
|
346
|
+
const response = {
|
|
347
|
+
$metadata: deserializeMetadata(output),
|
|
348
|
+
...contents,
|
|
349
|
+
};
|
|
350
|
+
return Promise.resolve(response);
|
|
351
|
+
};
|
|
352
|
+
const deserializeAws_json1_1CreateContactCommandError = async (output, context) => {
|
|
353
|
+
const parsedOutput = {
|
|
354
|
+
...output,
|
|
355
|
+
body: await parseErrorBody(output.body, context),
|
|
356
|
+
};
|
|
357
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
358
|
+
switch (errorCode) {
|
|
359
|
+
case "AccessDeniedException":
|
|
360
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
361
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
362
|
+
case "ConflictException":
|
|
363
|
+
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
364
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
365
|
+
case "DataEncryptionException":
|
|
366
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
367
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
368
|
+
case "InternalServerException":
|
|
369
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
370
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
371
|
+
case "ServiceQuotaExceededException":
|
|
372
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
373
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
374
|
+
case "ThrottlingException":
|
|
375
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
376
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
377
|
+
case "ValidationException":
|
|
378
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
379
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
380
|
+
default:
|
|
381
|
+
const parsedBody = parsedOutput.body;
|
|
382
|
+
throwDefaultError({
|
|
383
|
+
output,
|
|
384
|
+
parsedBody,
|
|
385
|
+
exceptionCtor: __BaseException,
|
|
386
|
+
errorCode,
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
export const deserializeAws_json1_1CreateContactChannelCommand = async (output, context) => {
|
|
391
|
+
if (output.statusCode >= 300) {
|
|
392
|
+
return deserializeAws_json1_1CreateContactChannelCommandError(output, context);
|
|
393
|
+
}
|
|
394
|
+
const data = await parseBody(output.body, context);
|
|
395
|
+
let contents = {};
|
|
396
|
+
contents = deserializeAws_json1_1CreateContactChannelResult(data, context);
|
|
397
|
+
const response = {
|
|
398
|
+
$metadata: deserializeMetadata(output),
|
|
399
|
+
...contents,
|
|
400
|
+
};
|
|
401
|
+
return Promise.resolve(response);
|
|
402
|
+
};
|
|
403
|
+
const deserializeAws_json1_1CreateContactChannelCommandError = async (output, context) => {
|
|
404
|
+
const parsedOutput = {
|
|
405
|
+
...output,
|
|
406
|
+
body: await parseErrorBody(output.body, context),
|
|
407
|
+
};
|
|
408
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
|
+
switch (errorCode) {
|
|
410
|
+
case "AccessDeniedException":
|
|
411
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
412
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
413
|
+
case "ConflictException":
|
|
414
|
+
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
415
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
416
|
+
case "DataEncryptionException":
|
|
417
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
418
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
419
|
+
case "InternalServerException":
|
|
420
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
421
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
422
|
+
case "ThrottlingException":
|
|
423
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
424
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
425
|
+
case "ValidationException":
|
|
426
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
427
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
428
|
+
default:
|
|
429
|
+
const parsedBody = parsedOutput.body;
|
|
430
|
+
throwDefaultError({
|
|
431
|
+
output,
|
|
432
|
+
parsedBody,
|
|
433
|
+
exceptionCtor: __BaseException,
|
|
434
|
+
errorCode,
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
export const deserializeAws_json1_1DeactivateContactChannelCommand = async (output, context) => {
|
|
439
|
+
if (output.statusCode >= 300) {
|
|
440
|
+
return deserializeAws_json1_1DeactivateContactChannelCommandError(output, context);
|
|
441
|
+
}
|
|
442
|
+
const data = await parseBody(output.body, context);
|
|
443
|
+
let contents = {};
|
|
444
|
+
contents = deserializeAws_json1_1DeactivateContactChannelResult(data, context);
|
|
445
|
+
const response = {
|
|
446
|
+
$metadata: deserializeMetadata(output),
|
|
447
|
+
...contents,
|
|
448
|
+
};
|
|
449
|
+
return Promise.resolve(response);
|
|
450
|
+
};
|
|
451
|
+
const deserializeAws_json1_1DeactivateContactChannelCommandError = async (output, context) => {
|
|
452
|
+
const parsedOutput = {
|
|
453
|
+
...output,
|
|
454
|
+
body: await parseErrorBody(output.body, context),
|
|
455
|
+
};
|
|
456
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
|
+
switch (errorCode) {
|
|
458
|
+
case "AccessDeniedException":
|
|
459
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
460
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
461
|
+
case "InternalServerException":
|
|
462
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
463
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
464
|
+
case "ResourceNotFoundException":
|
|
465
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
466
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
467
|
+
case "ThrottlingException":
|
|
468
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
469
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
470
|
+
case "ValidationException":
|
|
471
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
472
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
473
|
+
default:
|
|
474
|
+
const parsedBody = parsedOutput.body;
|
|
475
|
+
throwDefaultError({
|
|
476
|
+
output,
|
|
477
|
+
parsedBody,
|
|
478
|
+
exceptionCtor: __BaseException,
|
|
479
|
+
errorCode,
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
export const deserializeAws_json1_1DeleteContactCommand = async (output, context) => {
|
|
484
|
+
if (output.statusCode >= 300) {
|
|
485
|
+
return deserializeAws_json1_1DeleteContactCommandError(output, context);
|
|
486
|
+
}
|
|
487
|
+
const data = await parseBody(output.body, context);
|
|
488
|
+
let contents = {};
|
|
489
|
+
contents = deserializeAws_json1_1DeleteContactResult(data, context);
|
|
490
|
+
const response = {
|
|
491
|
+
$metadata: deserializeMetadata(output),
|
|
492
|
+
...contents,
|
|
493
|
+
};
|
|
494
|
+
return Promise.resolve(response);
|
|
495
|
+
};
|
|
496
|
+
const deserializeAws_json1_1DeleteContactCommandError = async (output, context) => {
|
|
497
|
+
const parsedOutput = {
|
|
498
|
+
...output,
|
|
499
|
+
body: await parseErrorBody(output.body, context),
|
|
500
|
+
};
|
|
501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
+
switch (errorCode) {
|
|
503
|
+
case "AccessDeniedException":
|
|
504
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
505
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
506
|
+
case "InternalServerException":
|
|
507
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
508
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
509
|
+
case "ResourceNotFoundException":
|
|
510
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
511
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
512
|
+
case "ThrottlingException":
|
|
513
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
514
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
515
|
+
case "ValidationException":
|
|
516
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
517
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
518
|
+
default:
|
|
519
|
+
const parsedBody = parsedOutput.body;
|
|
520
|
+
throwDefaultError({
|
|
521
|
+
output,
|
|
522
|
+
parsedBody,
|
|
523
|
+
exceptionCtor: __BaseException,
|
|
524
|
+
errorCode,
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
export const deserializeAws_json1_1DeleteContactChannelCommand = async (output, context) => {
|
|
529
|
+
if (output.statusCode >= 300) {
|
|
530
|
+
return deserializeAws_json1_1DeleteContactChannelCommandError(output, context);
|
|
531
|
+
}
|
|
532
|
+
const data = await parseBody(output.body, context);
|
|
533
|
+
let contents = {};
|
|
534
|
+
contents = deserializeAws_json1_1DeleteContactChannelResult(data, context);
|
|
535
|
+
const response = {
|
|
536
|
+
$metadata: deserializeMetadata(output),
|
|
537
|
+
...contents,
|
|
538
|
+
};
|
|
539
|
+
return Promise.resolve(response);
|
|
540
|
+
};
|
|
541
|
+
const deserializeAws_json1_1DeleteContactChannelCommandError = async (output, context) => {
|
|
542
|
+
const parsedOutput = {
|
|
543
|
+
...output,
|
|
544
|
+
body: await parseErrorBody(output.body, context),
|
|
545
|
+
};
|
|
546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
+
switch (errorCode) {
|
|
548
|
+
case "AccessDeniedException":
|
|
549
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
550
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
551
|
+
case "InternalServerException":
|
|
552
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
553
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
554
|
+
case "ResourceNotFoundException":
|
|
555
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
556
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
557
|
+
case "ThrottlingException":
|
|
558
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
559
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
560
|
+
case "ValidationException":
|
|
561
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
562
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
563
|
+
default:
|
|
564
|
+
const parsedBody = parsedOutput.body;
|
|
565
|
+
throwDefaultError({
|
|
566
|
+
output,
|
|
567
|
+
parsedBody,
|
|
568
|
+
exceptionCtor: __BaseException,
|
|
569
|
+
errorCode,
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
export const deserializeAws_json1_1DescribeEngagementCommand = async (output, context) => {
|
|
574
|
+
if (output.statusCode >= 300) {
|
|
575
|
+
return deserializeAws_json1_1DescribeEngagementCommandError(output, context);
|
|
576
|
+
}
|
|
577
|
+
const data = await parseBody(output.body, context);
|
|
578
|
+
let contents = {};
|
|
579
|
+
contents = deserializeAws_json1_1DescribeEngagementResult(data, context);
|
|
580
|
+
const response = {
|
|
581
|
+
$metadata: deserializeMetadata(output),
|
|
582
|
+
...contents,
|
|
583
|
+
};
|
|
584
|
+
return Promise.resolve(response);
|
|
585
|
+
};
|
|
586
|
+
const deserializeAws_json1_1DescribeEngagementCommandError = async (output, context) => {
|
|
587
|
+
const parsedOutput = {
|
|
588
|
+
...output,
|
|
589
|
+
body: await parseErrorBody(output.body, context),
|
|
590
|
+
};
|
|
591
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
592
|
+
switch (errorCode) {
|
|
593
|
+
case "AccessDeniedException":
|
|
594
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
595
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
596
|
+
case "DataEncryptionException":
|
|
597
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
598
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
599
|
+
case "InternalServerException":
|
|
600
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
601
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
602
|
+
case "ResourceNotFoundException":
|
|
603
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
604
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
605
|
+
case "ThrottlingException":
|
|
606
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
607
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
608
|
+
case "ValidationException":
|
|
609
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
610
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
611
|
+
default:
|
|
612
|
+
const parsedBody = parsedOutput.body;
|
|
613
|
+
throwDefaultError({
|
|
614
|
+
output,
|
|
615
|
+
parsedBody,
|
|
616
|
+
exceptionCtor: __BaseException,
|
|
617
|
+
errorCode,
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
export const deserializeAws_json1_1DescribePageCommand = async (output, context) => {
|
|
622
|
+
if (output.statusCode >= 300) {
|
|
623
|
+
return deserializeAws_json1_1DescribePageCommandError(output, context);
|
|
624
|
+
}
|
|
625
|
+
const data = await parseBody(output.body, context);
|
|
626
|
+
let contents = {};
|
|
627
|
+
contents = deserializeAws_json1_1DescribePageResult(data, context);
|
|
628
|
+
const response = {
|
|
629
|
+
$metadata: deserializeMetadata(output),
|
|
630
|
+
...contents,
|
|
631
|
+
};
|
|
632
|
+
return Promise.resolve(response);
|
|
633
|
+
};
|
|
634
|
+
const deserializeAws_json1_1DescribePageCommandError = async (output, context) => {
|
|
635
|
+
const parsedOutput = {
|
|
636
|
+
...output,
|
|
637
|
+
body: await parseErrorBody(output.body, context),
|
|
638
|
+
};
|
|
639
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
+
switch (errorCode) {
|
|
641
|
+
case "AccessDeniedException":
|
|
642
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
643
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
644
|
+
case "DataEncryptionException":
|
|
645
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
646
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
647
|
+
case "InternalServerException":
|
|
648
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
649
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
650
|
+
case "ResourceNotFoundException":
|
|
651
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
652
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
653
|
+
case "ThrottlingException":
|
|
654
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
655
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
656
|
+
case "ValidationException":
|
|
657
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
658
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
659
|
+
default:
|
|
660
|
+
const parsedBody = parsedOutput.body;
|
|
661
|
+
throwDefaultError({
|
|
662
|
+
output,
|
|
663
|
+
parsedBody,
|
|
664
|
+
exceptionCtor: __BaseException,
|
|
665
|
+
errorCode,
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
export const deserializeAws_json1_1GetContactCommand = async (output, context) => {
|
|
670
|
+
if (output.statusCode >= 300) {
|
|
671
|
+
return deserializeAws_json1_1GetContactCommandError(output, context);
|
|
672
|
+
}
|
|
673
|
+
const data = await parseBody(output.body, context);
|
|
674
|
+
let contents = {};
|
|
675
|
+
contents = deserializeAws_json1_1GetContactResult(data, context);
|
|
676
|
+
const response = {
|
|
677
|
+
$metadata: deserializeMetadata(output),
|
|
678
|
+
...contents,
|
|
679
|
+
};
|
|
680
|
+
return Promise.resolve(response);
|
|
681
|
+
};
|
|
682
|
+
const deserializeAws_json1_1GetContactCommandError = async (output, context) => {
|
|
683
|
+
const parsedOutput = {
|
|
684
|
+
...output,
|
|
685
|
+
body: await parseErrorBody(output.body, context),
|
|
686
|
+
};
|
|
687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
+
switch (errorCode) {
|
|
689
|
+
case "AccessDeniedException":
|
|
690
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
691
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
692
|
+
case "DataEncryptionException":
|
|
693
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
694
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
695
|
+
case "InternalServerException":
|
|
696
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
697
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
698
|
+
case "ResourceNotFoundException":
|
|
699
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
700
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
701
|
+
case "ThrottlingException":
|
|
702
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
703
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
704
|
+
case "ValidationException":
|
|
705
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
706
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
707
|
+
default:
|
|
708
|
+
const parsedBody = parsedOutput.body;
|
|
709
|
+
throwDefaultError({
|
|
710
|
+
output,
|
|
711
|
+
parsedBody,
|
|
712
|
+
exceptionCtor: __BaseException,
|
|
713
|
+
errorCode,
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
export const deserializeAws_json1_1GetContactChannelCommand = async (output, context) => {
|
|
718
|
+
if (output.statusCode >= 300) {
|
|
719
|
+
return deserializeAws_json1_1GetContactChannelCommandError(output, context);
|
|
720
|
+
}
|
|
721
|
+
const data = await parseBody(output.body, context);
|
|
722
|
+
let contents = {};
|
|
723
|
+
contents = deserializeAws_json1_1GetContactChannelResult(data, context);
|
|
724
|
+
const response = {
|
|
725
|
+
$metadata: deserializeMetadata(output),
|
|
726
|
+
...contents,
|
|
727
|
+
};
|
|
728
|
+
return Promise.resolve(response);
|
|
729
|
+
};
|
|
730
|
+
const deserializeAws_json1_1GetContactChannelCommandError = async (output, context) => {
|
|
731
|
+
const parsedOutput = {
|
|
732
|
+
...output,
|
|
733
|
+
body: await parseErrorBody(output.body, context),
|
|
734
|
+
};
|
|
735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
|
+
switch (errorCode) {
|
|
737
|
+
case "AccessDeniedException":
|
|
738
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
739
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
740
|
+
case "DataEncryptionException":
|
|
741
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
742
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
743
|
+
case "InternalServerException":
|
|
744
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
745
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
746
|
+
case "ResourceNotFoundException":
|
|
747
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
748
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
749
|
+
case "ThrottlingException":
|
|
750
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
751
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
752
|
+
case "ValidationException":
|
|
753
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
754
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
755
|
+
default:
|
|
756
|
+
const parsedBody = parsedOutput.body;
|
|
757
|
+
throwDefaultError({
|
|
758
|
+
output,
|
|
759
|
+
parsedBody,
|
|
760
|
+
exceptionCtor: __BaseException,
|
|
761
|
+
errorCode,
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
export const deserializeAws_json1_1GetContactPolicyCommand = async (output, context) => {
|
|
766
|
+
if (output.statusCode >= 300) {
|
|
767
|
+
return deserializeAws_json1_1GetContactPolicyCommandError(output, context);
|
|
768
|
+
}
|
|
769
|
+
const data = await parseBody(output.body, context);
|
|
770
|
+
let contents = {};
|
|
771
|
+
contents = deserializeAws_json1_1GetContactPolicyResult(data, context);
|
|
772
|
+
const response = {
|
|
773
|
+
$metadata: deserializeMetadata(output),
|
|
774
|
+
...contents,
|
|
775
|
+
};
|
|
776
|
+
return Promise.resolve(response);
|
|
777
|
+
};
|
|
778
|
+
const deserializeAws_json1_1GetContactPolicyCommandError = async (output, context) => {
|
|
779
|
+
const parsedOutput = {
|
|
780
|
+
...output,
|
|
781
|
+
body: await parseErrorBody(output.body, context),
|
|
782
|
+
};
|
|
783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
|
+
switch (errorCode) {
|
|
785
|
+
case "AccessDeniedException":
|
|
786
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
787
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
788
|
+
case "InternalServerException":
|
|
789
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
790
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
791
|
+
case "ResourceNotFoundException":
|
|
792
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
793
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
794
|
+
case "ThrottlingException":
|
|
795
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
796
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
797
|
+
case "ValidationException":
|
|
798
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
799
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
800
|
+
default:
|
|
801
|
+
const parsedBody = parsedOutput.body;
|
|
802
|
+
throwDefaultError({
|
|
803
|
+
output,
|
|
804
|
+
parsedBody,
|
|
805
|
+
exceptionCtor: __BaseException,
|
|
806
|
+
errorCode,
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
export const deserializeAws_json1_1ListContactChannelsCommand = async (output, context) => {
|
|
811
|
+
if (output.statusCode >= 300) {
|
|
812
|
+
return deserializeAws_json1_1ListContactChannelsCommandError(output, context);
|
|
813
|
+
}
|
|
814
|
+
const data = await parseBody(output.body, context);
|
|
815
|
+
let contents = {};
|
|
816
|
+
contents = deserializeAws_json1_1ListContactChannelsResult(data, context);
|
|
817
|
+
const response = {
|
|
818
|
+
$metadata: deserializeMetadata(output),
|
|
819
|
+
...contents,
|
|
820
|
+
};
|
|
821
|
+
return Promise.resolve(response);
|
|
822
|
+
};
|
|
823
|
+
const deserializeAws_json1_1ListContactChannelsCommandError = async (output, context) => {
|
|
824
|
+
const parsedOutput = {
|
|
825
|
+
...output,
|
|
826
|
+
body: await parseErrorBody(output.body, context),
|
|
827
|
+
};
|
|
828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
switch (errorCode) {
|
|
830
|
+
case "AccessDeniedException":
|
|
831
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
832
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
833
|
+
case "DataEncryptionException":
|
|
834
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
835
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
836
|
+
case "InternalServerException":
|
|
837
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
838
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
839
|
+
case "ResourceNotFoundException":
|
|
840
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
841
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
842
|
+
case "ThrottlingException":
|
|
843
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
844
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
845
|
+
case "ValidationException":
|
|
846
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
847
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
848
|
+
default:
|
|
849
|
+
const parsedBody = parsedOutput.body;
|
|
850
|
+
throwDefaultError({
|
|
851
|
+
output,
|
|
852
|
+
parsedBody,
|
|
853
|
+
exceptionCtor: __BaseException,
|
|
854
|
+
errorCode,
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
export const deserializeAws_json1_1ListContactsCommand = async (output, context) => {
|
|
859
|
+
if (output.statusCode >= 300) {
|
|
860
|
+
return deserializeAws_json1_1ListContactsCommandError(output, context);
|
|
861
|
+
}
|
|
862
|
+
const data = await parseBody(output.body, context);
|
|
863
|
+
let contents = {};
|
|
864
|
+
contents = deserializeAws_json1_1ListContactsResult(data, context);
|
|
865
|
+
const response = {
|
|
866
|
+
$metadata: deserializeMetadata(output),
|
|
867
|
+
...contents,
|
|
868
|
+
};
|
|
869
|
+
return Promise.resolve(response);
|
|
870
|
+
};
|
|
871
|
+
const deserializeAws_json1_1ListContactsCommandError = async (output, context) => {
|
|
872
|
+
const parsedOutput = {
|
|
873
|
+
...output,
|
|
874
|
+
body: await parseErrorBody(output.body, context),
|
|
875
|
+
};
|
|
876
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
+
switch (errorCode) {
|
|
878
|
+
case "AccessDeniedException":
|
|
879
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
880
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
881
|
+
case "InternalServerException":
|
|
882
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
883
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
884
|
+
case "ThrottlingException":
|
|
885
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
886
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
887
|
+
case "ValidationException":
|
|
888
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
889
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
890
|
+
default:
|
|
891
|
+
const parsedBody = parsedOutput.body;
|
|
892
|
+
throwDefaultError({
|
|
893
|
+
output,
|
|
894
|
+
parsedBody,
|
|
895
|
+
exceptionCtor: __BaseException,
|
|
896
|
+
errorCode,
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
};
|
|
900
|
+
export const deserializeAws_json1_1ListEngagementsCommand = async (output, context) => {
|
|
901
|
+
if (output.statusCode >= 300) {
|
|
902
|
+
return deserializeAws_json1_1ListEngagementsCommandError(output, context);
|
|
903
|
+
}
|
|
904
|
+
const data = await parseBody(output.body, context);
|
|
905
|
+
let contents = {};
|
|
906
|
+
contents = deserializeAws_json1_1ListEngagementsResult(data, context);
|
|
907
|
+
const response = {
|
|
908
|
+
$metadata: deserializeMetadata(output),
|
|
909
|
+
...contents,
|
|
910
|
+
};
|
|
911
|
+
return Promise.resolve(response);
|
|
912
|
+
};
|
|
913
|
+
const deserializeAws_json1_1ListEngagementsCommandError = async (output, context) => {
|
|
914
|
+
const parsedOutput = {
|
|
915
|
+
...output,
|
|
916
|
+
body: await parseErrorBody(output.body, context),
|
|
917
|
+
};
|
|
918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
|
+
switch (errorCode) {
|
|
920
|
+
case "AccessDeniedException":
|
|
921
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
922
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
923
|
+
case "InternalServerException":
|
|
924
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
925
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
926
|
+
case "ThrottlingException":
|
|
927
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
928
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
929
|
+
case "ValidationException":
|
|
930
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
931
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
932
|
+
default:
|
|
933
|
+
const parsedBody = parsedOutput.body;
|
|
934
|
+
throwDefaultError({
|
|
935
|
+
output,
|
|
936
|
+
parsedBody,
|
|
937
|
+
exceptionCtor: __BaseException,
|
|
938
|
+
errorCode,
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
export const deserializeAws_json1_1ListPageReceiptsCommand = async (output, context) => {
|
|
943
|
+
if (output.statusCode >= 300) {
|
|
944
|
+
return deserializeAws_json1_1ListPageReceiptsCommandError(output, context);
|
|
945
|
+
}
|
|
946
|
+
const data = await parseBody(output.body, context);
|
|
947
|
+
let contents = {};
|
|
948
|
+
contents = deserializeAws_json1_1ListPageReceiptsResult(data, context);
|
|
949
|
+
const response = {
|
|
950
|
+
$metadata: deserializeMetadata(output),
|
|
951
|
+
...contents,
|
|
952
|
+
};
|
|
953
|
+
return Promise.resolve(response);
|
|
954
|
+
};
|
|
955
|
+
const deserializeAws_json1_1ListPageReceiptsCommandError = async (output, context) => {
|
|
956
|
+
const parsedOutput = {
|
|
957
|
+
...output,
|
|
958
|
+
body: await parseErrorBody(output.body, context),
|
|
959
|
+
};
|
|
960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
+
switch (errorCode) {
|
|
962
|
+
case "AccessDeniedException":
|
|
963
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
964
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
965
|
+
case "InternalServerException":
|
|
966
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
967
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
968
|
+
case "ResourceNotFoundException":
|
|
969
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
970
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
971
|
+
case "ThrottlingException":
|
|
972
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
973
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
974
|
+
case "ValidationException":
|
|
975
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
976
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
977
|
+
default:
|
|
978
|
+
const parsedBody = parsedOutput.body;
|
|
979
|
+
throwDefaultError({
|
|
980
|
+
output,
|
|
981
|
+
parsedBody,
|
|
982
|
+
exceptionCtor: __BaseException,
|
|
983
|
+
errorCode,
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
};
|
|
987
|
+
export const deserializeAws_json1_1ListPagesByContactCommand = async (output, context) => {
|
|
988
|
+
if (output.statusCode >= 300) {
|
|
989
|
+
return deserializeAws_json1_1ListPagesByContactCommandError(output, context);
|
|
990
|
+
}
|
|
991
|
+
const data = await parseBody(output.body, context);
|
|
992
|
+
let contents = {};
|
|
993
|
+
contents = deserializeAws_json1_1ListPagesByContactResult(data, context);
|
|
994
|
+
const response = {
|
|
995
|
+
$metadata: deserializeMetadata(output),
|
|
996
|
+
...contents,
|
|
997
|
+
};
|
|
998
|
+
return Promise.resolve(response);
|
|
999
|
+
};
|
|
1000
|
+
const deserializeAws_json1_1ListPagesByContactCommandError = async (output, context) => {
|
|
1001
|
+
const parsedOutput = {
|
|
1002
|
+
...output,
|
|
1003
|
+
body: await parseErrorBody(output.body, context),
|
|
1004
|
+
};
|
|
1005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
+
switch (errorCode) {
|
|
1007
|
+
case "AccessDeniedException":
|
|
1008
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1009
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1010
|
+
case "InternalServerException":
|
|
1011
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1012
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1013
|
+
case "ResourceNotFoundException":
|
|
1014
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1015
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1016
|
+
case "ThrottlingException":
|
|
1017
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1018
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1019
|
+
case "ValidationException":
|
|
1020
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1021
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1022
|
+
default:
|
|
1023
|
+
const parsedBody = parsedOutput.body;
|
|
1024
|
+
throwDefaultError({
|
|
1025
|
+
output,
|
|
1026
|
+
parsedBody,
|
|
1027
|
+
exceptionCtor: __BaseException,
|
|
1028
|
+
errorCode,
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
export const deserializeAws_json1_1ListPagesByEngagementCommand = async (output, context) => {
|
|
1033
|
+
if (output.statusCode >= 300) {
|
|
1034
|
+
return deserializeAws_json1_1ListPagesByEngagementCommandError(output, context);
|
|
1035
|
+
}
|
|
1036
|
+
const data = await parseBody(output.body, context);
|
|
1037
|
+
let contents = {};
|
|
1038
|
+
contents = deserializeAws_json1_1ListPagesByEngagementResult(data, context);
|
|
1039
|
+
const response = {
|
|
1040
|
+
$metadata: deserializeMetadata(output),
|
|
1041
|
+
...contents,
|
|
1042
|
+
};
|
|
1043
|
+
return Promise.resolve(response);
|
|
1044
|
+
};
|
|
1045
|
+
const deserializeAws_json1_1ListPagesByEngagementCommandError = async (output, context) => {
|
|
1046
|
+
const parsedOutput = {
|
|
1047
|
+
...output,
|
|
1048
|
+
body: await parseErrorBody(output.body, context),
|
|
1049
|
+
};
|
|
1050
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
+
switch (errorCode) {
|
|
1052
|
+
case "AccessDeniedException":
|
|
1053
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1054
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1055
|
+
case "InternalServerException":
|
|
1056
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1057
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1058
|
+
case "ResourceNotFoundException":
|
|
1059
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1060
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1061
|
+
case "ThrottlingException":
|
|
1062
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1063
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1064
|
+
case "ValidationException":
|
|
1065
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1066
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1067
|
+
default:
|
|
1068
|
+
const parsedBody = parsedOutput.body;
|
|
1069
|
+
throwDefaultError({
|
|
1070
|
+
output,
|
|
1071
|
+
parsedBody,
|
|
1072
|
+
exceptionCtor: __BaseException,
|
|
1073
|
+
errorCode,
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1078
|
+
if (output.statusCode >= 300) {
|
|
1079
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1080
|
+
}
|
|
1081
|
+
const data = await parseBody(output.body, context);
|
|
1082
|
+
let contents = {};
|
|
1083
|
+
contents = deserializeAws_json1_1ListTagsForResourceResult(data, context);
|
|
1084
|
+
const response = {
|
|
1085
|
+
$metadata: deserializeMetadata(output),
|
|
1086
|
+
...contents,
|
|
1087
|
+
};
|
|
1088
|
+
return Promise.resolve(response);
|
|
1089
|
+
};
|
|
1090
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1091
|
+
const parsedOutput = {
|
|
1092
|
+
...output,
|
|
1093
|
+
body: await parseErrorBody(output.body, context),
|
|
1094
|
+
};
|
|
1095
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
|
+
switch (errorCode) {
|
|
1097
|
+
case "AccessDeniedException":
|
|
1098
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1099
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1100
|
+
case "InternalServerException":
|
|
1101
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1102
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1103
|
+
case "ResourceNotFoundException":
|
|
1104
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1105
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1106
|
+
case "ThrottlingException":
|
|
1107
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1108
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1109
|
+
case "ValidationException":
|
|
1110
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1111
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1112
|
+
default:
|
|
1113
|
+
const parsedBody = parsedOutput.body;
|
|
1114
|
+
throwDefaultError({
|
|
1115
|
+
output,
|
|
1116
|
+
parsedBody,
|
|
1117
|
+
exceptionCtor: __BaseException,
|
|
1118
|
+
errorCode,
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
export const deserializeAws_json1_1PutContactPolicyCommand = async (output, context) => {
|
|
1123
|
+
if (output.statusCode >= 300) {
|
|
1124
|
+
return deserializeAws_json1_1PutContactPolicyCommandError(output, context);
|
|
1125
|
+
}
|
|
1126
|
+
const data = await parseBody(output.body, context);
|
|
1127
|
+
let contents = {};
|
|
1128
|
+
contents = deserializeAws_json1_1PutContactPolicyResult(data, context);
|
|
1129
|
+
const response = {
|
|
1130
|
+
$metadata: deserializeMetadata(output),
|
|
1131
|
+
...contents,
|
|
1132
|
+
};
|
|
1133
|
+
return Promise.resolve(response);
|
|
1134
|
+
};
|
|
1135
|
+
const deserializeAws_json1_1PutContactPolicyCommandError = async (output, context) => {
|
|
1136
|
+
const parsedOutput = {
|
|
1137
|
+
...output,
|
|
1138
|
+
body: await parseErrorBody(output.body, context),
|
|
1139
|
+
};
|
|
1140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
|
+
switch (errorCode) {
|
|
1142
|
+
case "AccessDeniedException":
|
|
1143
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1144
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1145
|
+
case "ConflictException":
|
|
1146
|
+
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
1147
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1148
|
+
case "InternalServerException":
|
|
1149
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1150
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1151
|
+
case "ResourceNotFoundException":
|
|
1152
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1153
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1154
|
+
case "ThrottlingException":
|
|
1155
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1156
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1157
|
+
case "ValidationException":
|
|
1158
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1159
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1160
|
+
default:
|
|
1161
|
+
const parsedBody = parsedOutput.body;
|
|
1162
|
+
throwDefaultError({
|
|
1163
|
+
output,
|
|
1164
|
+
parsedBody,
|
|
1165
|
+
exceptionCtor: __BaseException,
|
|
1166
|
+
errorCode,
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
export const deserializeAws_json1_1SendActivationCodeCommand = async (output, context) => {
|
|
1171
|
+
if (output.statusCode >= 300) {
|
|
1172
|
+
return deserializeAws_json1_1SendActivationCodeCommandError(output, context);
|
|
1173
|
+
}
|
|
1174
|
+
const data = await parseBody(output.body, context);
|
|
1175
|
+
let contents = {};
|
|
1176
|
+
contents = deserializeAws_json1_1SendActivationCodeResult(data, context);
|
|
1177
|
+
const response = {
|
|
1178
|
+
$metadata: deserializeMetadata(output),
|
|
1179
|
+
...contents,
|
|
1180
|
+
};
|
|
1181
|
+
return Promise.resolve(response);
|
|
1182
|
+
};
|
|
1183
|
+
const deserializeAws_json1_1SendActivationCodeCommandError = async (output, context) => {
|
|
1184
|
+
const parsedOutput = {
|
|
1185
|
+
...output,
|
|
1186
|
+
body: await parseErrorBody(output.body, context),
|
|
1187
|
+
};
|
|
1188
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
|
+
switch (errorCode) {
|
|
1190
|
+
case "AccessDeniedException":
|
|
1191
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1192
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1193
|
+
case "DataEncryptionException":
|
|
1194
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1195
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
1196
|
+
case "InternalServerException":
|
|
1197
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1198
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1199
|
+
case "ResourceNotFoundException":
|
|
1200
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1201
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1202
|
+
case "ServiceQuotaExceededException":
|
|
1203
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
1204
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1205
|
+
case "ThrottlingException":
|
|
1206
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1207
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1208
|
+
case "ValidationException":
|
|
1209
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1210
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1211
|
+
default:
|
|
1212
|
+
const parsedBody = parsedOutput.body;
|
|
1213
|
+
throwDefaultError({
|
|
1214
|
+
output,
|
|
1215
|
+
parsedBody,
|
|
1216
|
+
exceptionCtor: __BaseException,
|
|
1217
|
+
errorCode,
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
export const deserializeAws_json1_1StartEngagementCommand = async (output, context) => {
|
|
1222
|
+
if (output.statusCode >= 300) {
|
|
1223
|
+
return deserializeAws_json1_1StartEngagementCommandError(output, context);
|
|
1224
|
+
}
|
|
1225
|
+
const data = await parseBody(output.body, context);
|
|
1226
|
+
let contents = {};
|
|
1227
|
+
contents = deserializeAws_json1_1StartEngagementResult(data, context);
|
|
1228
|
+
const response = {
|
|
1229
|
+
$metadata: deserializeMetadata(output),
|
|
1230
|
+
...contents,
|
|
1231
|
+
};
|
|
1232
|
+
return Promise.resolve(response);
|
|
1233
|
+
};
|
|
1234
|
+
const deserializeAws_json1_1StartEngagementCommandError = async (output, context) => {
|
|
1235
|
+
const parsedOutput = {
|
|
1236
|
+
...output,
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
|
+
};
|
|
1239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
+
switch (errorCode) {
|
|
1241
|
+
case "AccessDeniedException":
|
|
1242
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1243
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1244
|
+
case "DataEncryptionException":
|
|
1245
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1246
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
1247
|
+
case "InternalServerException":
|
|
1248
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1249
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1250
|
+
case "ResourceNotFoundException":
|
|
1251
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1252
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1253
|
+
case "ThrottlingException":
|
|
1254
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1255
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1256
|
+
case "ValidationException":
|
|
1257
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1258
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1259
|
+
default:
|
|
1260
|
+
const parsedBody = parsedOutput.body;
|
|
1261
|
+
throwDefaultError({
|
|
1262
|
+
output,
|
|
1263
|
+
parsedBody,
|
|
1264
|
+
exceptionCtor: __BaseException,
|
|
1265
|
+
errorCode,
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
};
|
|
1269
|
+
export const deserializeAws_json1_1StopEngagementCommand = async (output, context) => {
|
|
1270
|
+
if (output.statusCode >= 300) {
|
|
1271
|
+
return deserializeAws_json1_1StopEngagementCommandError(output, context);
|
|
1272
|
+
}
|
|
1273
|
+
const data = await parseBody(output.body, context);
|
|
1274
|
+
let contents = {};
|
|
1275
|
+
contents = deserializeAws_json1_1StopEngagementResult(data, context);
|
|
1276
|
+
const response = {
|
|
1277
|
+
$metadata: deserializeMetadata(output),
|
|
1278
|
+
...contents,
|
|
1279
|
+
};
|
|
1280
|
+
return Promise.resolve(response);
|
|
1281
|
+
};
|
|
1282
|
+
const deserializeAws_json1_1StopEngagementCommandError = async (output, context) => {
|
|
1283
|
+
const parsedOutput = {
|
|
1284
|
+
...output,
|
|
1285
|
+
body: await parseErrorBody(output.body, context),
|
|
1286
|
+
};
|
|
1287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
+
switch (errorCode) {
|
|
1289
|
+
case "AccessDeniedException":
|
|
1290
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1291
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1292
|
+
case "InternalServerException":
|
|
1293
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1294
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1295
|
+
case "ResourceNotFoundException":
|
|
1296
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1297
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1298
|
+
case "ThrottlingException":
|
|
1299
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1300
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1301
|
+
case "ValidationException":
|
|
1302
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1303
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1304
|
+
default:
|
|
1305
|
+
const parsedBody = parsedOutput.body;
|
|
1306
|
+
throwDefaultError({
|
|
1307
|
+
output,
|
|
1308
|
+
parsedBody,
|
|
1309
|
+
exceptionCtor: __BaseException,
|
|
1310
|
+
errorCode,
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
};
|
|
1314
|
+
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1315
|
+
if (output.statusCode >= 300) {
|
|
1316
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
1317
|
+
}
|
|
1318
|
+
const data = await parseBody(output.body, context);
|
|
1319
|
+
let contents = {};
|
|
1320
|
+
contents = deserializeAws_json1_1TagResourceResult(data, context);
|
|
1321
|
+
const response = {
|
|
1322
|
+
$metadata: deserializeMetadata(output),
|
|
1323
|
+
...contents,
|
|
1324
|
+
};
|
|
1325
|
+
return Promise.resolve(response);
|
|
1326
|
+
};
|
|
1327
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1328
|
+
const parsedOutput = {
|
|
1329
|
+
...output,
|
|
1330
|
+
body: await parseErrorBody(output.body, context),
|
|
1331
|
+
};
|
|
1332
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
+
switch (errorCode) {
|
|
1334
|
+
case "AccessDeniedException":
|
|
1335
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1336
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1337
|
+
case "InternalServerException":
|
|
1338
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1339
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1340
|
+
case "ResourceNotFoundException":
|
|
1341
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1342
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1343
|
+
case "ServiceQuotaExceededException":
|
|
1344
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
1345
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1346
|
+
case "ThrottlingException":
|
|
1347
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1348
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1349
|
+
case "ValidationException":
|
|
1350
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1351
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1352
|
+
default:
|
|
1353
|
+
const parsedBody = parsedOutput.body;
|
|
1354
|
+
throwDefaultError({
|
|
1355
|
+
output,
|
|
1356
|
+
parsedBody,
|
|
1357
|
+
exceptionCtor: __BaseException,
|
|
1358
|
+
errorCode,
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1363
|
+
if (output.statusCode >= 300) {
|
|
1364
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
1365
|
+
}
|
|
1366
|
+
const data = await parseBody(output.body, context);
|
|
1367
|
+
let contents = {};
|
|
1368
|
+
contents = deserializeAws_json1_1UntagResourceResult(data, context);
|
|
1369
|
+
const response = {
|
|
1370
|
+
$metadata: deserializeMetadata(output),
|
|
1371
|
+
...contents,
|
|
1372
|
+
};
|
|
1373
|
+
return Promise.resolve(response);
|
|
1374
|
+
};
|
|
1375
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1376
|
+
const parsedOutput = {
|
|
1377
|
+
...output,
|
|
1378
|
+
body: await parseErrorBody(output.body, context),
|
|
1379
|
+
};
|
|
1380
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
+
switch (errorCode) {
|
|
1382
|
+
case "AccessDeniedException":
|
|
1383
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1384
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1385
|
+
case "InternalServerException":
|
|
1386
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1387
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1388
|
+
case "ResourceNotFoundException":
|
|
1389
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1390
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1391
|
+
case "ThrottlingException":
|
|
1392
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1393
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1394
|
+
case "ValidationException":
|
|
1395
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1396
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1397
|
+
default:
|
|
1398
|
+
const parsedBody = parsedOutput.body;
|
|
1399
|
+
throwDefaultError({
|
|
1400
|
+
output,
|
|
1401
|
+
parsedBody,
|
|
1402
|
+
exceptionCtor: __BaseException,
|
|
1403
|
+
errorCode,
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
export const deserializeAws_json1_1UpdateContactCommand = async (output, context) => {
|
|
1408
|
+
if (output.statusCode >= 300) {
|
|
1409
|
+
return deserializeAws_json1_1UpdateContactCommandError(output, context);
|
|
1410
|
+
}
|
|
1411
|
+
const data = await parseBody(output.body, context);
|
|
1412
|
+
let contents = {};
|
|
1413
|
+
contents = deserializeAws_json1_1UpdateContactResult(data, context);
|
|
1414
|
+
const response = {
|
|
1415
|
+
$metadata: deserializeMetadata(output),
|
|
1416
|
+
...contents,
|
|
1417
|
+
};
|
|
1418
|
+
return Promise.resolve(response);
|
|
1419
|
+
};
|
|
1420
|
+
const deserializeAws_json1_1UpdateContactCommandError = async (output, context) => {
|
|
1421
|
+
const parsedOutput = {
|
|
1422
|
+
...output,
|
|
1423
|
+
body: await parseErrorBody(output.body, context),
|
|
1424
|
+
};
|
|
1425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
+
switch (errorCode) {
|
|
1427
|
+
case "AccessDeniedException":
|
|
1428
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1429
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1430
|
+
case "DataEncryptionException":
|
|
1431
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1432
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
1433
|
+
case "InternalServerException":
|
|
1434
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1435
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1436
|
+
case "ResourceNotFoundException":
|
|
1437
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1438
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1439
|
+
case "ServiceQuotaExceededException":
|
|
1440
|
+
case "com.amazonaws.ssmcontacts#ServiceQuotaExceededException":
|
|
1441
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1442
|
+
case "ThrottlingException":
|
|
1443
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1444
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1445
|
+
case "ValidationException":
|
|
1446
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1447
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1448
|
+
default:
|
|
1449
|
+
const parsedBody = parsedOutput.body;
|
|
1450
|
+
throwDefaultError({
|
|
1451
|
+
output,
|
|
1452
|
+
parsedBody,
|
|
1453
|
+
exceptionCtor: __BaseException,
|
|
1454
|
+
errorCode,
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
2247
1457
|
};
|
|
2248
|
-
|
|
2249
|
-
|
|
1458
|
+
export const deserializeAws_json1_1UpdateContactChannelCommand = async (output, context) => {
|
|
1459
|
+
if (output.statusCode >= 300) {
|
|
1460
|
+
return deserializeAws_json1_1UpdateContactChannelCommandError(output, context);
|
|
1461
|
+
}
|
|
1462
|
+
const data = await parseBody(output.body, context);
|
|
1463
|
+
let contents = {};
|
|
1464
|
+
contents = deserializeAws_json1_1UpdateContactChannelResult(data, context);
|
|
1465
|
+
const response = {
|
|
1466
|
+
$metadata: deserializeMetadata(output),
|
|
1467
|
+
...contents,
|
|
1468
|
+
};
|
|
1469
|
+
return Promise.resolve(response);
|
|
2250
1470
|
};
|
|
2251
|
-
|
|
2252
|
-
|
|
1471
|
+
const deserializeAws_json1_1UpdateContactChannelCommandError = async (output, context) => {
|
|
1472
|
+
const parsedOutput = {
|
|
1473
|
+
...output,
|
|
1474
|
+
body: await parseErrorBody(output.body, context),
|
|
1475
|
+
};
|
|
1476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
|
+
switch (errorCode) {
|
|
1478
|
+
case "AccessDeniedException":
|
|
1479
|
+
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
1480
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1481
|
+
case "ConflictException":
|
|
1482
|
+
case "com.amazonaws.ssmcontacts#ConflictException":
|
|
1483
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1484
|
+
case "DataEncryptionException":
|
|
1485
|
+
case "com.amazonaws.ssmcontacts#DataEncryptionException":
|
|
1486
|
+
throw await deserializeAws_json1_1DataEncryptionExceptionResponse(parsedOutput, context);
|
|
1487
|
+
case "InternalServerException":
|
|
1488
|
+
case "com.amazonaws.ssmcontacts#InternalServerException":
|
|
1489
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1490
|
+
case "ResourceNotFoundException":
|
|
1491
|
+
case "com.amazonaws.ssmcontacts#ResourceNotFoundException":
|
|
1492
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1493
|
+
case "ThrottlingException":
|
|
1494
|
+
case "com.amazonaws.ssmcontacts#ThrottlingException":
|
|
1495
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1496
|
+
case "ValidationException":
|
|
1497
|
+
case "com.amazonaws.ssmcontacts#ValidationException":
|
|
1498
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1499
|
+
default:
|
|
1500
|
+
const parsedBody = parsedOutput.body;
|
|
1501
|
+
throwDefaultError({
|
|
1502
|
+
output,
|
|
1503
|
+
parsedBody,
|
|
1504
|
+
exceptionCtor: __BaseException,
|
|
1505
|
+
errorCode,
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
1508
|
+
};
|
|
1509
|
+
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1510
|
+
const body = parsedOutput.body;
|
|
1511
|
+
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1512
|
+
const exception = new AccessDeniedException({
|
|
1513
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1514
|
+
...deserialized,
|
|
1515
|
+
});
|
|
1516
|
+
return __decorateServiceException(exception, body);
|
|
1517
|
+
};
|
|
1518
|
+
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1519
|
+
const body = parsedOutput.body;
|
|
1520
|
+
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
1521
|
+
const exception = new ConflictException({
|
|
1522
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1523
|
+
...deserialized,
|
|
1524
|
+
});
|
|
1525
|
+
return __decorateServiceException(exception, body);
|
|
1526
|
+
};
|
|
1527
|
+
const deserializeAws_json1_1DataEncryptionExceptionResponse = async (parsedOutput, context) => {
|
|
1528
|
+
const body = parsedOutput.body;
|
|
1529
|
+
const deserialized = deserializeAws_json1_1DataEncryptionException(body, context);
|
|
1530
|
+
const exception = new DataEncryptionException({
|
|
1531
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1532
|
+
...deserialized,
|
|
1533
|
+
});
|
|
1534
|
+
return __decorateServiceException(exception, body);
|
|
1535
|
+
};
|
|
1536
|
+
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1537
|
+
const body = parsedOutput.body;
|
|
1538
|
+
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
1539
|
+
const exception = new InternalServerException({
|
|
1540
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1541
|
+
...deserialized,
|
|
1542
|
+
});
|
|
1543
|
+
return __decorateServiceException(exception, body);
|
|
1544
|
+
};
|
|
1545
|
+
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1546
|
+
const body = parsedOutput.body;
|
|
1547
|
+
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1548
|
+
const exception = new ResourceNotFoundException({
|
|
1549
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1550
|
+
...deserialized,
|
|
1551
|
+
});
|
|
1552
|
+
return __decorateServiceException(exception, body);
|
|
1553
|
+
};
|
|
1554
|
+
const deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1555
|
+
const body = parsedOutput.body;
|
|
1556
|
+
const deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
1557
|
+
const exception = new ServiceQuotaExceededException({
|
|
1558
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1559
|
+
...deserialized,
|
|
1560
|
+
});
|
|
1561
|
+
return __decorateServiceException(exception, body);
|
|
1562
|
+
};
|
|
1563
|
+
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1564
|
+
const body = parsedOutput.body;
|
|
1565
|
+
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
1566
|
+
const exception = new ThrottlingException({
|
|
1567
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1568
|
+
...deserialized,
|
|
1569
|
+
});
|
|
1570
|
+
return __decorateServiceException(exception, body);
|
|
1571
|
+
};
|
|
1572
|
+
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1573
|
+
const body = parsedOutput.body;
|
|
1574
|
+
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
1575
|
+
const exception = new ValidationException({
|
|
1576
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1577
|
+
...deserialized,
|
|
1578
|
+
});
|
|
1579
|
+
return __decorateServiceException(exception, body);
|
|
1580
|
+
};
|
|
1581
|
+
const serializeAws_json1_1AcceptPageRequest = (input, context) => {
|
|
1582
|
+
return {
|
|
1583
|
+
...(input.AcceptCode != null && { AcceptCode: input.AcceptCode }),
|
|
1584
|
+
...(input.AcceptCodeValidation != null && { AcceptCodeValidation: input.AcceptCodeValidation }),
|
|
1585
|
+
...(input.AcceptType != null && { AcceptType: input.AcceptType }),
|
|
1586
|
+
...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
|
|
1587
|
+
...(input.Note != null && { Note: input.Note }),
|
|
1588
|
+
...(input.PageId != null && { PageId: input.PageId }),
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
const serializeAws_json1_1ActivateContactChannelRequest = (input, context) => {
|
|
1592
|
+
return {
|
|
1593
|
+
...(input.ActivationCode != null && { ActivationCode: input.ActivationCode }),
|
|
1594
|
+
...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
const serializeAws_json1_1ChannelTargetInfo = (input, context) => {
|
|
1598
|
+
return {
|
|
1599
|
+
...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
|
|
1600
|
+
...(input.RetryIntervalInMinutes != null && { RetryIntervalInMinutes: input.RetryIntervalInMinutes }),
|
|
1601
|
+
};
|
|
2253
1602
|
};
|
|
2254
|
-
|
|
2255
|
-
return
|
|
1603
|
+
const serializeAws_json1_1ContactChannelAddress = (input, context) => {
|
|
1604
|
+
return {
|
|
1605
|
+
...(input.SimpleAddress != null && { SimpleAddress: input.SimpleAddress }),
|
|
1606
|
+
};
|
|
2256
1607
|
};
|
|
2257
|
-
|
|
2258
|
-
return
|
|
1608
|
+
const serializeAws_json1_1ContactTargetInfo = (input, context) => {
|
|
1609
|
+
return {
|
|
1610
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
1611
|
+
...(input.IsEssential != null && { IsEssential: input.IsEssential }),
|
|
1612
|
+
};
|
|
2259
1613
|
};
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
1614
|
+
const serializeAws_json1_1CreateContactChannelRequest = (input, context) => {
|
|
1615
|
+
return {
|
|
1616
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
1617
|
+
...(input.DeferActivation != null && { DeferActivation: input.DeferActivation }),
|
|
1618
|
+
...(input.DeliveryAddress != null && {
|
|
1619
|
+
DeliveryAddress: serializeAws_json1_1ContactChannelAddress(input.DeliveryAddress, context),
|
|
1620
|
+
}),
|
|
1621
|
+
IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
|
|
1622
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1623
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1624
|
+
};
|
|
2265
1625
|
};
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
1626
|
+
const serializeAws_json1_1CreateContactRequest = (input, context) => {
|
|
1627
|
+
return {
|
|
1628
|
+
...(input.Alias != null && { Alias: input.Alias }),
|
|
1629
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
1630
|
+
IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
|
|
1631
|
+
...(input.Plan != null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }),
|
|
1632
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
|
|
1633
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1634
|
+
};
|
|
2269
1635
|
};
|
|
2270
|
-
|
|
2271
|
-
return
|
|
1636
|
+
const serializeAws_json1_1DeactivateContactChannelRequest = (input, context) => {
|
|
1637
|
+
return {
|
|
1638
|
+
...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
|
|
1639
|
+
};
|
|
2272
1640
|
};
|
|
2273
|
-
|
|
2274
|
-
return
|
|
1641
|
+
const serializeAws_json1_1DeleteContactChannelRequest = (input, context) => {
|
|
1642
|
+
return {
|
|
1643
|
+
...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
|
|
1644
|
+
};
|
|
2275
1645
|
};
|
|
2276
|
-
|
|
2277
|
-
return
|
|
1646
|
+
const serializeAws_json1_1DeleteContactRequest = (input, context) => {
|
|
1647
|
+
return {
|
|
1648
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
1649
|
+
};
|
|
2278
1650
|
};
|
|
2279
|
-
|
|
2280
|
-
return
|
|
1651
|
+
const serializeAws_json1_1DescribeEngagementRequest = (input, context) => {
|
|
1652
|
+
return {
|
|
1653
|
+
...(input.EngagementId != null && { EngagementId: input.EngagementId }),
|
|
1654
|
+
};
|
|
2281
1655
|
};
|
|
2282
|
-
|
|
2283
|
-
return
|
|
1656
|
+
const serializeAws_json1_1DescribePageRequest = (input, context) => {
|
|
1657
|
+
return {
|
|
1658
|
+
...(input.PageId != null && { PageId: input.PageId }),
|
|
1659
|
+
};
|
|
2284
1660
|
};
|
|
2285
|
-
|
|
2286
|
-
return
|
|
1661
|
+
const serializeAws_json1_1GetContactChannelRequest = (input, context) => {
|
|
1662
|
+
return {
|
|
1663
|
+
...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
|
|
1664
|
+
};
|
|
2287
1665
|
};
|
|
2288
|
-
|
|
2289
|
-
return
|
|
1666
|
+
const serializeAws_json1_1GetContactPolicyRequest = (input, context) => {
|
|
1667
|
+
return {
|
|
1668
|
+
...(input.ContactArn != null && { ContactArn: input.ContactArn }),
|
|
1669
|
+
};
|
|
2290
1670
|
};
|
|
2291
|
-
|
|
2292
|
-
return
|
|
1671
|
+
const serializeAws_json1_1GetContactRequest = (input, context) => {
|
|
1672
|
+
return {
|
|
1673
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
1674
|
+
};
|
|
2293
1675
|
};
|
|
2294
|
-
|
|
2295
|
-
return
|
|
1676
|
+
const serializeAws_json1_1ListContactChannelsRequest = (input, context) => {
|
|
1677
|
+
return {
|
|
1678
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
1679
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1680
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1681
|
+
};
|
|
2296
1682
|
};
|
|
2297
|
-
|
|
2298
|
-
return
|
|
1683
|
+
const serializeAws_json1_1ListContactsRequest = (input, context) => {
|
|
1684
|
+
return {
|
|
1685
|
+
...(input.AliasPrefix != null && { AliasPrefix: input.AliasPrefix }),
|
|
1686
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1687
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1688
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1689
|
+
};
|
|
2299
1690
|
};
|
|
2300
|
-
|
|
2301
|
-
return
|
|
2302
|
-
|
|
2303
|
-
|
|
1691
|
+
const serializeAws_json1_1ListEngagementsRequest = (input, context) => {
|
|
1692
|
+
return {
|
|
1693
|
+
...(input.IncidentId != null && { IncidentId: input.IncidentId }),
|
|
1694
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1695
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1696
|
+
...(input.TimeRangeValue != null && {
|
|
1697
|
+
TimeRangeValue: serializeAws_json1_1TimeRange(input.TimeRangeValue, context),
|
|
1698
|
+
}),
|
|
1699
|
+
};
|
|
2304
1700
|
};
|
|
2305
|
-
|
|
2306
|
-
return
|
|
1701
|
+
const serializeAws_json1_1ListPageReceiptsRequest = (input, context) => {
|
|
1702
|
+
return {
|
|
1703
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1704
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1705
|
+
...(input.PageId != null && { PageId: input.PageId }),
|
|
1706
|
+
};
|
|
2307
1707
|
};
|
|
2308
|
-
|
|
2309
|
-
return
|
|
1708
|
+
const serializeAws_json1_1ListPagesByContactRequest = (input, context) => {
|
|
1709
|
+
return {
|
|
1710
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
1711
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1712
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1713
|
+
};
|
|
2310
1714
|
};
|
|
2311
|
-
|
|
2312
|
-
return
|
|
1715
|
+
const serializeAws_json1_1ListPagesByEngagementRequest = (input, context) => {
|
|
1716
|
+
return {
|
|
1717
|
+
...(input.EngagementId != null && { EngagementId: input.EngagementId }),
|
|
1718
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1719
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1720
|
+
};
|
|
2313
1721
|
};
|
|
2314
|
-
|
|
2315
|
-
return
|
|
1722
|
+
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
1723
|
+
return {
|
|
1724
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1725
|
+
};
|
|
2316
1726
|
};
|
|
2317
|
-
|
|
2318
|
-
return
|
|
1727
|
+
const serializeAws_json1_1Plan = (input, context) => {
|
|
1728
|
+
return {
|
|
1729
|
+
...(input.Stages != null && { Stages: serializeAws_json1_1StagesList(input.Stages, context) }),
|
|
1730
|
+
};
|
|
2319
1731
|
};
|
|
2320
|
-
|
|
2321
|
-
return
|
|
1732
|
+
const serializeAws_json1_1PutContactPolicyRequest = (input, context) => {
|
|
1733
|
+
return {
|
|
1734
|
+
...(input.ContactArn != null && { ContactArn: input.ContactArn }),
|
|
1735
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
1736
|
+
};
|
|
2322
1737
|
};
|
|
2323
|
-
|
|
2324
|
-
return
|
|
1738
|
+
const serializeAws_json1_1SendActivationCodeRequest = (input, context) => {
|
|
1739
|
+
return {
|
|
1740
|
+
...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
|
|
1741
|
+
};
|
|
2325
1742
|
};
|
|
2326
|
-
|
|
2327
|
-
return
|
|
1743
|
+
const serializeAws_json1_1Stage = (input, context) => {
|
|
1744
|
+
return {
|
|
1745
|
+
...(input.DurationInMinutes != null && { DurationInMinutes: input.DurationInMinutes }),
|
|
1746
|
+
...(input.Targets != null && { Targets: serializeAws_json1_1TargetsList(input.Targets, context) }),
|
|
1747
|
+
};
|
|
2328
1748
|
};
|
|
2329
|
-
|
|
1749
|
+
const serializeAws_json1_1StagesList = (input, context) => {
|
|
2330
1750
|
return input
|
|
2331
|
-
.filter(
|
|
2332
|
-
.map(
|
|
1751
|
+
.filter((e) => e != null)
|
|
1752
|
+
.map((entry) => {
|
|
2333
1753
|
return serializeAws_json1_1Stage(entry, context);
|
|
2334
1754
|
});
|
|
2335
1755
|
};
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
1756
|
+
const serializeAws_json1_1StartEngagementRequest = (input, context) => {
|
|
1757
|
+
return {
|
|
1758
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
1759
|
+
...(input.Content != null && { Content: input.Content }),
|
|
1760
|
+
IdempotencyToken: input.IdempotencyToken ?? generateIdempotencyToken(),
|
|
1761
|
+
...(input.IncidentId != null && { IncidentId: input.IncidentId }),
|
|
1762
|
+
...(input.PublicContent != null && { PublicContent: input.PublicContent }),
|
|
1763
|
+
...(input.PublicSubject != null && { PublicSubject: input.PublicSubject }),
|
|
1764
|
+
...(input.Sender != null && { Sender: input.Sender }),
|
|
1765
|
+
...(input.Subject != null && { Subject: input.Subject }),
|
|
1766
|
+
};
|
|
2339
1767
|
};
|
|
2340
|
-
|
|
2341
|
-
return
|
|
1768
|
+
const serializeAws_json1_1StopEngagementRequest = (input, context) => {
|
|
1769
|
+
return {
|
|
1770
|
+
...(input.EngagementId != null && { EngagementId: input.EngagementId }),
|
|
1771
|
+
...(input.Reason != null && { Reason: input.Reason }),
|
|
1772
|
+
};
|
|
2342
1773
|
};
|
|
2343
|
-
|
|
2344
|
-
return
|
|
1774
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1775
|
+
return {
|
|
1776
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1777
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1778
|
+
};
|
|
2345
1779
|
};
|
|
2346
|
-
|
|
1780
|
+
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
2347
1781
|
return input
|
|
2348
|
-
.filter(
|
|
2349
|
-
.map(
|
|
1782
|
+
.filter((e) => e != null)
|
|
1783
|
+
.map((entry) => {
|
|
2350
1784
|
return entry;
|
|
2351
1785
|
});
|
|
2352
1786
|
};
|
|
2353
|
-
|
|
2354
|
-
return
|
|
1787
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
1788
|
+
return {
|
|
1789
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1790
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
|
|
1791
|
+
};
|
|
2355
1792
|
};
|
|
2356
|
-
|
|
1793
|
+
const serializeAws_json1_1TagsList = (input, context) => {
|
|
2357
1794
|
return input
|
|
2358
|
-
.filter(
|
|
2359
|
-
.map(
|
|
1795
|
+
.filter((e) => e != null)
|
|
1796
|
+
.map((entry) => {
|
|
2360
1797
|
return serializeAws_json1_1Tag(entry, context);
|
|
2361
1798
|
});
|
|
2362
1799
|
};
|
|
2363
|
-
|
|
2364
|
-
return
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
1800
|
+
const serializeAws_json1_1Target = (input, context) => {
|
|
1801
|
+
return {
|
|
1802
|
+
...(input.ChannelTargetInfo != null && {
|
|
1803
|
+
ChannelTargetInfo: serializeAws_json1_1ChannelTargetInfo(input.ChannelTargetInfo, context),
|
|
1804
|
+
}),
|
|
1805
|
+
...(input.ContactTargetInfo != null && {
|
|
1806
|
+
ContactTargetInfo: serializeAws_json1_1ContactTargetInfo(input.ContactTargetInfo, context),
|
|
1807
|
+
}),
|
|
1808
|
+
};
|
|
2369
1809
|
};
|
|
2370
|
-
|
|
1810
|
+
const serializeAws_json1_1TargetsList = (input, context) => {
|
|
2371
1811
|
return input
|
|
2372
|
-
.filter(
|
|
2373
|
-
.map(
|
|
1812
|
+
.filter((e) => e != null)
|
|
1813
|
+
.map((entry) => {
|
|
2374
1814
|
return serializeAws_json1_1Target(entry, context);
|
|
2375
1815
|
});
|
|
2376
1816
|
};
|
|
2377
|
-
|
|
2378
|
-
return
|
|
1817
|
+
const serializeAws_json1_1TimeRange = (input, context) => {
|
|
1818
|
+
return {
|
|
1819
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1820
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1821
|
+
};
|
|
2379
1822
|
};
|
|
2380
|
-
|
|
2381
|
-
return
|
|
1823
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1824
|
+
return {
|
|
1825
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1826
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1827
|
+
};
|
|
2382
1828
|
};
|
|
2383
|
-
|
|
2384
|
-
return
|
|
2385
|
-
|
|
2386
|
-
|
|
1829
|
+
const serializeAws_json1_1UpdateContactChannelRequest = (input, context) => {
|
|
1830
|
+
return {
|
|
1831
|
+
...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
|
|
1832
|
+
...(input.DeliveryAddress != null && {
|
|
1833
|
+
DeliveryAddress: serializeAws_json1_1ContactChannelAddress(input.DeliveryAddress, context),
|
|
1834
|
+
}),
|
|
1835
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1836
|
+
};
|
|
2387
1837
|
};
|
|
2388
|
-
|
|
2389
|
-
return
|
|
1838
|
+
const serializeAws_json1_1UpdateContactRequest = (input, context) => {
|
|
1839
|
+
return {
|
|
1840
|
+
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
1841
|
+
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
1842
|
+
...(input.Plan != null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }),
|
|
1843
|
+
};
|
|
2390
1844
|
};
|
|
2391
|
-
|
|
1845
|
+
const deserializeAws_json1_1AcceptPageResult = (output, context) => {
|
|
2392
1846
|
return {};
|
|
2393
1847
|
};
|
|
2394
|
-
|
|
1848
|
+
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
2395
1849
|
return {
|
|
2396
1850
|
Message: __expectString(output.Message),
|
|
2397
1851
|
};
|
|
2398
1852
|
};
|
|
2399
|
-
|
|
1853
|
+
const deserializeAws_json1_1ActivateContactChannelResult = (output, context) => {
|
|
2400
1854
|
return {};
|
|
2401
1855
|
};
|
|
2402
|
-
|
|
1856
|
+
const deserializeAws_json1_1ChannelTargetInfo = (output, context) => {
|
|
2403
1857
|
return {
|
|
2404
1858
|
ContactChannelId: __expectString(output.ContactChannelId),
|
|
2405
1859
|
RetryIntervalInMinutes: __expectInt32(output.RetryIntervalInMinutes),
|
|
2406
1860
|
};
|
|
2407
1861
|
};
|
|
2408
|
-
|
|
1862
|
+
const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
2409
1863
|
return {
|
|
2410
1864
|
Message: __expectString(output.Message),
|
|
2411
1865
|
ResourceId: __expectString(output.ResourceId),
|
|
2412
1866
|
ResourceType: __expectString(output.ResourceType),
|
|
2413
1867
|
};
|
|
2414
1868
|
};
|
|
2415
|
-
|
|
1869
|
+
const deserializeAws_json1_1Contact = (output, context) => {
|
|
2416
1870
|
return {
|
|
2417
1871
|
Alias: __expectString(output.Alias),
|
|
2418
1872
|
ContactArn: __expectString(output.ContactArn),
|
|
@@ -2420,7 +1874,7 @@ var deserializeAws_json1_1Contact = function (output, context) {
|
|
|
2420
1874
|
Type: __expectString(output.Type),
|
|
2421
1875
|
};
|
|
2422
1876
|
};
|
|
2423
|
-
|
|
1877
|
+
const deserializeAws_json1_1ContactChannel = (output, context) => {
|
|
2424
1878
|
return {
|
|
2425
1879
|
ActivationStatus: __expectString(output.ActivationStatus),
|
|
2426
1880
|
ContactArn: __expectString(output.ContactArn),
|
|
@@ -2432,15 +1886,15 @@ var deserializeAws_json1_1ContactChannel = function (output, context) {
|
|
|
2432
1886
|
Type: __expectString(output.Type),
|
|
2433
1887
|
};
|
|
2434
1888
|
};
|
|
2435
|
-
|
|
1889
|
+
const deserializeAws_json1_1ContactChannelAddress = (output, context) => {
|
|
2436
1890
|
return {
|
|
2437
1891
|
SimpleAddress: __expectString(output.SimpleAddress),
|
|
2438
1892
|
};
|
|
2439
1893
|
};
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
.filter(
|
|
2443
|
-
.map(
|
|
1894
|
+
const deserializeAws_json1_1ContactChannelList = (output, context) => {
|
|
1895
|
+
const retVal = (output || [])
|
|
1896
|
+
.filter((e) => e != null)
|
|
1897
|
+
.map((entry) => {
|
|
2444
1898
|
if (entry === null) {
|
|
2445
1899
|
return null;
|
|
2446
1900
|
}
|
|
@@ -2448,10 +1902,10 @@ var deserializeAws_json1_1ContactChannelList = function (output, context) {
|
|
|
2448
1902
|
});
|
|
2449
1903
|
return retVal;
|
|
2450
1904
|
};
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
.filter(
|
|
2454
|
-
.map(
|
|
1905
|
+
const deserializeAws_json1_1ContactsList = (output, context) => {
|
|
1906
|
+
const retVal = (output || [])
|
|
1907
|
+
.filter((e) => e != null)
|
|
1908
|
+
.map((entry) => {
|
|
2455
1909
|
if (entry === null) {
|
|
2456
1910
|
return null;
|
|
2457
1911
|
}
|
|
@@ -2459,37 +1913,37 @@ var deserializeAws_json1_1ContactsList = function (output, context) {
|
|
|
2459
1913
|
});
|
|
2460
1914
|
return retVal;
|
|
2461
1915
|
};
|
|
2462
|
-
|
|
1916
|
+
const deserializeAws_json1_1ContactTargetInfo = (output, context) => {
|
|
2463
1917
|
return {
|
|
2464
1918
|
ContactId: __expectString(output.ContactId),
|
|
2465
1919
|
IsEssential: __expectBoolean(output.IsEssential),
|
|
2466
1920
|
};
|
|
2467
1921
|
};
|
|
2468
|
-
|
|
1922
|
+
const deserializeAws_json1_1CreateContactChannelResult = (output, context) => {
|
|
2469
1923
|
return {
|
|
2470
1924
|
ContactChannelArn: __expectString(output.ContactChannelArn),
|
|
2471
1925
|
};
|
|
2472
1926
|
};
|
|
2473
|
-
|
|
1927
|
+
const deserializeAws_json1_1CreateContactResult = (output, context) => {
|
|
2474
1928
|
return {
|
|
2475
1929
|
ContactArn: __expectString(output.ContactArn),
|
|
2476
1930
|
};
|
|
2477
1931
|
};
|
|
2478
|
-
|
|
1932
|
+
const deserializeAws_json1_1DataEncryptionException = (output, context) => {
|
|
2479
1933
|
return {
|
|
2480
1934
|
Message: __expectString(output.Message),
|
|
2481
1935
|
};
|
|
2482
1936
|
};
|
|
2483
|
-
|
|
1937
|
+
const deserializeAws_json1_1DeactivateContactChannelResult = (output, context) => {
|
|
2484
1938
|
return {};
|
|
2485
1939
|
};
|
|
2486
|
-
|
|
1940
|
+
const deserializeAws_json1_1DeleteContactChannelResult = (output, context) => {
|
|
2487
1941
|
return {};
|
|
2488
1942
|
};
|
|
2489
|
-
|
|
1943
|
+
const deserializeAws_json1_1DeleteContactResult = (output, context) => {
|
|
2490
1944
|
return {};
|
|
2491
1945
|
};
|
|
2492
|
-
|
|
1946
|
+
const deserializeAws_json1_1DescribeEngagementResult = (output, context) => {
|
|
2493
1947
|
return {
|
|
2494
1948
|
ContactArn: __expectString(output.ContactArn),
|
|
2495
1949
|
Content: __expectString(output.Content),
|
|
@@ -2503,7 +1957,7 @@ var deserializeAws_json1_1DescribeEngagementResult = function (output, context)
|
|
|
2503
1957
|
Subject: __expectString(output.Subject),
|
|
2504
1958
|
};
|
|
2505
1959
|
};
|
|
2506
|
-
|
|
1960
|
+
const deserializeAws_json1_1DescribePageResult = (output, context) => {
|
|
2507
1961
|
return {
|
|
2508
1962
|
ContactArn: __expectString(output.ContactArn),
|
|
2509
1963
|
Content: __expectString(output.Content),
|
|
@@ -2521,7 +1975,7 @@ var deserializeAws_json1_1DescribePageResult = function (output, context) {
|
|
|
2521
1975
|
Subject: __expectString(output.Subject),
|
|
2522
1976
|
};
|
|
2523
1977
|
};
|
|
2524
|
-
|
|
1978
|
+
const deserializeAws_json1_1Engagement = (output, context) => {
|
|
2525
1979
|
return {
|
|
2526
1980
|
ContactArn: __expectString(output.ContactArn),
|
|
2527
1981
|
EngagementArn: __expectString(output.EngagementArn),
|
|
@@ -2531,10 +1985,10 @@ var deserializeAws_json1_1Engagement = function (output, context) {
|
|
|
2531
1985
|
StopTime: output.StopTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StopTime))) : undefined,
|
|
2532
1986
|
};
|
|
2533
1987
|
};
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
.filter(
|
|
2537
|
-
.map(
|
|
1988
|
+
const deserializeAws_json1_1EngagementsList = (output, context) => {
|
|
1989
|
+
const retVal = (output || [])
|
|
1990
|
+
.filter((e) => e != null)
|
|
1991
|
+
.map((entry) => {
|
|
2538
1992
|
if (entry === null) {
|
|
2539
1993
|
return null;
|
|
2540
1994
|
}
|
|
@@ -2542,7 +1996,7 @@ var deserializeAws_json1_1EngagementsList = function (output, context) {
|
|
|
2542
1996
|
});
|
|
2543
1997
|
return retVal;
|
|
2544
1998
|
};
|
|
2545
|
-
|
|
1999
|
+
const deserializeAws_json1_1GetContactChannelResult = (output, context) => {
|
|
2546
2000
|
return {
|
|
2547
2001
|
ActivationStatus: __expectString(output.ActivationStatus),
|
|
2548
2002
|
ContactArn: __expectString(output.ContactArn),
|
|
@@ -2554,13 +2008,13 @@ var deserializeAws_json1_1GetContactChannelResult = function (output, context) {
|
|
|
2554
2008
|
Type: __expectString(output.Type),
|
|
2555
2009
|
};
|
|
2556
2010
|
};
|
|
2557
|
-
|
|
2011
|
+
const deserializeAws_json1_1GetContactPolicyResult = (output, context) => {
|
|
2558
2012
|
return {
|
|
2559
2013
|
ContactArn: __expectString(output.ContactArn),
|
|
2560
2014
|
Policy: __expectString(output.Policy),
|
|
2561
2015
|
};
|
|
2562
2016
|
};
|
|
2563
|
-
|
|
2017
|
+
const deserializeAws_json1_1GetContactResult = (output, context) => {
|
|
2564
2018
|
return {
|
|
2565
2019
|
Alias: __expectString(output.Alias),
|
|
2566
2020
|
ContactArn: __expectString(output.ContactArn),
|
|
@@ -2569,13 +2023,13 @@ var deserializeAws_json1_1GetContactResult = function (output, context) {
|
|
|
2569
2023
|
Type: __expectString(output.Type),
|
|
2570
2024
|
};
|
|
2571
2025
|
};
|
|
2572
|
-
|
|
2026
|
+
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
2573
2027
|
return {
|
|
2574
2028
|
Message: __expectString(output.Message),
|
|
2575
2029
|
RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
|
|
2576
2030
|
};
|
|
2577
2031
|
};
|
|
2578
|
-
|
|
2032
|
+
const deserializeAws_json1_1ListContactChannelsResult = (output, context) => {
|
|
2579
2033
|
return {
|
|
2580
2034
|
ContactChannels: output.ContactChannels != null
|
|
2581
2035
|
? deserializeAws_json1_1ContactChannelList(output.ContactChannels, context)
|
|
@@ -2583,42 +2037,42 @@ var deserializeAws_json1_1ListContactChannelsResult = function (output, context)
|
|
|
2583
2037
|
NextToken: __expectString(output.NextToken),
|
|
2584
2038
|
};
|
|
2585
2039
|
};
|
|
2586
|
-
|
|
2040
|
+
const deserializeAws_json1_1ListContactsResult = (output, context) => {
|
|
2587
2041
|
return {
|
|
2588
2042
|
Contacts: output.Contacts != null ? deserializeAws_json1_1ContactsList(output.Contacts, context) : undefined,
|
|
2589
2043
|
NextToken: __expectString(output.NextToken),
|
|
2590
2044
|
};
|
|
2591
2045
|
};
|
|
2592
|
-
|
|
2046
|
+
const deserializeAws_json1_1ListEngagementsResult = (output, context) => {
|
|
2593
2047
|
return {
|
|
2594
2048
|
Engagements: output.Engagements != null ? deserializeAws_json1_1EngagementsList(output.Engagements, context) : undefined,
|
|
2595
2049
|
NextToken: __expectString(output.NextToken),
|
|
2596
2050
|
};
|
|
2597
2051
|
};
|
|
2598
|
-
|
|
2052
|
+
const deserializeAws_json1_1ListPageReceiptsResult = (output, context) => {
|
|
2599
2053
|
return {
|
|
2600
2054
|
NextToken: __expectString(output.NextToken),
|
|
2601
2055
|
Receipts: output.Receipts != null ? deserializeAws_json1_1ReceiptsList(output.Receipts, context) : undefined,
|
|
2602
2056
|
};
|
|
2603
2057
|
};
|
|
2604
|
-
|
|
2058
|
+
const deserializeAws_json1_1ListPagesByContactResult = (output, context) => {
|
|
2605
2059
|
return {
|
|
2606
2060
|
NextToken: __expectString(output.NextToken),
|
|
2607
2061
|
Pages: output.Pages != null ? deserializeAws_json1_1PagesList(output.Pages, context) : undefined,
|
|
2608
2062
|
};
|
|
2609
2063
|
};
|
|
2610
|
-
|
|
2064
|
+
const deserializeAws_json1_1ListPagesByEngagementResult = (output, context) => {
|
|
2611
2065
|
return {
|
|
2612
2066
|
NextToken: __expectString(output.NextToken),
|
|
2613
2067
|
Pages: output.Pages != null ? deserializeAws_json1_1PagesList(output.Pages, context) : undefined,
|
|
2614
2068
|
};
|
|
2615
2069
|
};
|
|
2616
|
-
|
|
2070
|
+
const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => {
|
|
2617
2071
|
return {
|
|
2618
2072
|
Tags: output.Tags != null ? deserializeAws_json1_1TagsList(output.Tags, context) : undefined,
|
|
2619
2073
|
};
|
|
2620
2074
|
};
|
|
2621
|
-
|
|
2075
|
+
const deserializeAws_json1_1Page = (output, context) => {
|
|
2622
2076
|
return {
|
|
2623
2077
|
ContactArn: __expectString(output.ContactArn),
|
|
2624
2078
|
DeliveryTime: output.DeliveryTime != null
|
|
@@ -2632,10 +2086,10 @@ var deserializeAws_json1_1Page = function (output, context) {
|
|
|
2632
2086
|
SentTime: output.SentTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SentTime))) : undefined,
|
|
2633
2087
|
};
|
|
2634
2088
|
};
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
.filter(
|
|
2638
|
-
.map(
|
|
2089
|
+
const deserializeAws_json1_1PagesList = (output, context) => {
|
|
2090
|
+
const retVal = (output || [])
|
|
2091
|
+
.filter((e) => e != null)
|
|
2092
|
+
.map((entry) => {
|
|
2639
2093
|
if (entry === null) {
|
|
2640
2094
|
return null;
|
|
2641
2095
|
}
|
|
@@ -2643,15 +2097,15 @@ var deserializeAws_json1_1PagesList = function (output, context) {
|
|
|
2643
2097
|
});
|
|
2644
2098
|
return retVal;
|
|
2645
2099
|
};
|
|
2646
|
-
|
|
2100
|
+
const deserializeAws_json1_1Plan = (output, context) => {
|
|
2647
2101
|
return {
|
|
2648
2102
|
Stages: output.Stages != null ? deserializeAws_json1_1StagesList(output.Stages, context) : undefined,
|
|
2649
2103
|
};
|
|
2650
2104
|
};
|
|
2651
|
-
|
|
2105
|
+
const deserializeAws_json1_1PutContactPolicyResult = (output, context) => {
|
|
2652
2106
|
return {};
|
|
2653
2107
|
};
|
|
2654
|
-
|
|
2108
|
+
const deserializeAws_json1_1Receipt = (output, context) => {
|
|
2655
2109
|
return {
|
|
2656
2110
|
ContactChannelArn: __expectString(output.ContactChannelArn),
|
|
2657
2111
|
ReceiptInfo: __expectString(output.ReceiptInfo),
|
|
@@ -2661,10 +2115,10 @@ var deserializeAws_json1_1Receipt = function (output, context) {
|
|
|
2661
2115
|
ReceiptType: __expectString(output.ReceiptType),
|
|
2662
2116
|
};
|
|
2663
2117
|
};
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
.filter(
|
|
2667
|
-
.map(
|
|
2118
|
+
const deserializeAws_json1_1ReceiptsList = (output, context) => {
|
|
2119
|
+
const retVal = (output || [])
|
|
2120
|
+
.filter((e) => e != null)
|
|
2121
|
+
.map((entry) => {
|
|
2668
2122
|
if (entry === null) {
|
|
2669
2123
|
return null;
|
|
2670
2124
|
}
|
|
@@ -2672,17 +2126,17 @@ var deserializeAws_json1_1ReceiptsList = function (output, context) {
|
|
|
2672
2126
|
});
|
|
2673
2127
|
return retVal;
|
|
2674
2128
|
};
|
|
2675
|
-
|
|
2129
|
+
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
2676
2130
|
return {
|
|
2677
2131
|
Message: __expectString(output.Message),
|
|
2678
2132
|
ResourceId: __expectString(output.ResourceId),
|
|
2679
2133
|
ResourceType: __expectString(output.ResourceType),
|
|
2680
2134
|
};
|
|
2681
2135
|
};
|
|
2682
|
-
|
|
2136
|
+
const deserializeAws_json1_1SendActivationCodeResult = (output, context) => {
|
|
2683
2137
|
return {};
|
|
2684
2138
|
};
|
|
2685
|
-
|
|
2139
|
+
const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) => {
|
|
2686
2140
|
return {
|
|
2687
2141
|
Message: __expectString(output.Message),
|
|
2688
2142
|
QuotaCode: __expectString(output.QuotaCode),
|
|
@@ -2691,16 +2145,16 @@ var deserializeAws_json1_1ServiceQuotaExceededException = function (output, cont
|
|
|
2691
2145
|
ServiceCode: __expectString(output.ServiceCode),
|
|
2692
2146
|
};
|
|
2693
2147
|
};
|
|
2694
|
-
|
|
2148
|
+
const deserializeAws_json1_1Stage = (output, context) => {
|
|
2695
2149
|
return {
|
|
2696
2150
|
DurationInMinutes: __expectInt32(output.DurationInMinutes),
|
|
2697
2151
|
Targets: output.Targets != null ? deserializeAws_json1_1TargetsList(output.Targets, context) : undefined,
|
|
2698
2152
|
};
|
|
2699
2153
|
};
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
.filter(
|
|
2703
|
-
.map(
|
|
2154
|
+
const deserializeAws_json1_1StagesList = (output, context) => {
|
|
2155
|
+
const retVal = (output || [])
|
|
2156
|
+
.filter((e) => e != null)
|
|
2157
|
+
.map((entry) => {
|
|
2704
2158
|
if (entry === null) {
|
|
2705
2159
|
return null;
|
|
2706
2160
|
}
|
|
@@ -2708,27 +2162,27 @@ var deserializeAws_json1_1StagesList = function (output, context) {
|
|
|
2708
2162
|
});
|
|
2709
2163
|
return retVal;
|
|
2710
2164
|
};
|
|
2711
|
-
|
|
2165
|
+
const deserializeAws_json1_1StartEngagementResult = (output, context) => {
|
|
2712
2166
|
return {
|
|
2713
2167
|
EngagementArn: __expectString(output.EngagementArn),
|
|
2714
2168
|
};
|
|
2715
2169
|
};
|
|
2716
|
-
|
|
2170
|
+
const deserializeAws_json1_1StopEngagementResult = (output, context) => {
|
|
2717
2171
|
return {};
|
|
2718
2172
|
};
|
|
2719
|
-
|
|
2173
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
2720
2174
|
return {
|
|
2721
2175
|
Key: __expectString(output.Key),
|
|
2722
2176
|
Value: __expectString(output.Value),
|
|
2723
2177
|
};
|
|
2724
2178
|
};
|
|
2725
|
-
|
|
2179
|
+
const deserializeAws_json1_1TagResourceResult = (output, context) => {
|
|
2726
2180
|
return {};
|
|
2727
2181
|
};
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
.filter(
|
|
2731
|
-
.map(
|
|
2182
|
+
const deserializeAws_json1_1TagsList = (output, context) => {
|
|
2183
|
+
const retVal = (output || [])
|
|
2184
|
+
.filter((e) => e != null)
|
|
2185
|
+
.map((entry) => {
|
|
2732
2186
|
if (entry === null) {
|
|
2733
2187
|
return null;
|
|
2734
2188
|
}
|
|
@@ -2736,7 +2190,7 @@ var deserializeAws_json1_1TagsList = function (output, context) {
|
|
|
2736
2190
|
});
|
|
2737
2191
|
return retVal;
|
|
2738
2192
|
};
|
|
2739
|
-
|
|
2193
|
+
const deserializeAws_json1_1Target = (output, context) => {
|
|
2740
2194
|
return {
|
|
2741
2195
|
ChannelTargetInfo: output.ChannelTargetInfo != null
|
|
2742
2196
|
? deserializeAws_json1_1ChannelTargetInfo(output.ChannelTargetInfo, context)
|
|
@@ -2746,10 +2200,10 @@ var deserializeAws_json1_1Target = function (output, context) {
|
|
|
2746
2200
|
: undefined,
|
|
2747
2201
|
};
|
|
2748
2202
|
};
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
.filter(
|
|
2752
|
-
.map(
|
|
2203
|
+
const deserializeAws_json1_1TargetsList = (output, context) => {
|
|
2204
|
+
const retVal = (output || [])
|
|
2205
|
+
.filter((e) => e != null)
|
|
2206
|
+
.map((entry) => {
|
|
2753
2207
|
if (entry === null) {
|
|
2754
2208
|
return null;
|
|
2755
2209
|
}
|
|
@@ -2757,7 +2211,7 @@ var deserializeAws_json1_1TargetsList = function (output, context) {
|
|
|
2757
2211
|
});
|
|
2758
2212
|
return retVal;
|
|
2759
2213
|
};
|
|
2760
|
-
|
|
2214
|
+
const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
2761
2215
|
return {
|
|
2762
2216
|
Message: __expectString(output.Message),
|
|
2763
2217
|
QuotaCode: __expectString(output.QuotaCode),
|
|
@@ -2765,32 +2219,32 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
|
2765
2219
|
ServiceCode: __expectString(output.ServiceCode),
|
|
2766
2220
|
};
|
|
2767
2221
|
};
|
|
2768
|
-
|
|
2222
|
+
const deserializeAws_json1_1UntagResourceResult = (output, context) => {
|
|
2769
2223
|
return {};
|
|
2770
2224
|
};
|
|
2771
|
-
|
|
2225
|
+
const deserializeAws_json1_1UpdateContactChannelResult = (output, context) => {
|
|
2772
2226
|
return {};
|
|
2773
2227
|
};
|
|
2774
|
-
|
|
2228
|
+
const deserializeAws_json1_1UpdateContactResult = (output, context) => {
|
|
2775
2229
|
return {};
|
|
2776
2230
|
};
|
|
2777
|
-
|
|
2231
|
+
const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
2778
2232
|
return {
|
|
2779
2233
|
Fields: output.Fields != null ? deserializeAws_json1_1ValidationExceptionFieldList(output.Fields, context) : undefined,
|
|
2780
2234
|
Message: __expectString(output.Message),
|
|
2781
2235
|
Reason: __expectString(output.Reason),
|
|
2782
2236
|
};
|
|
2783
2237
|
};
|
|
2784
|
-
|
|
2238
|
+
const deserializeAws_json1_1ValidationExceptionField = (output, context) => {
|
|
2785
2239
|
return {
|
|
2786
2240
|
Message: __expectString(output.Message),
|
|
2787
2241
|
Name: __expectString(output.Name),
|
|
2788
2242
|
};
|
|
2789
2243
|
};
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
.filter(
|
|
2793
|
-
.map(
|
|
2244
|
+
const deserializeAws_json1_1ValidationExceptionFieldList = (output, context) => {
|
|
2245
|
+
const retVal = (output || [])
|
|
2246
|
+
.filter((e) => e != null)
|
|
2247
|
+
.map((entry) => {
|
|
2794
2248
|
if (entry === null) {
|
|
2795
2249
|
return null;
|
|
2796
2250
|
}
|
|
@@ -2798,75 +2252,52 @@ var deserializeAws_json1_1ValidationExceptionFieldList = function (output, conte
|
|
|
2798
2252
|
});
|
|
2799
2253
|
return retVal;
|
|
2800
2254
|
};
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
});
|
|
2809
|
-
};
|
|
2810
|
-
var collectBody = function (streamBody, context) {
|
|
2811
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2255
|
+
const deserializeMetadata = (output) => ({
|
|
2256
|
+
httpStatusCode: output.statusCode,
|
|
2257
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2258
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2259
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2260
|
+
});
|
|
2261
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2812
2262
|
if (streamBody instanceof Uint8Array) {
|
|
2813
2263
|
return Promise.resolve(streamBody);
|
|
2814
2264
|
}
|
|
2815
2265
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2816
2266
|
};
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
};
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
if (resolvedHostname !== undefined) {
|
|
2836
|
-
contents.hostname = resolvedHostname;
|
|
2837
|
-
}
|
|
2838
|
-
if (body !== undefined) {
|
|
2839
|
-
contents.body = body;
|
|
2840
|
-
}
|
|
2841
|
-
return [2, new __HttpRequest(contents)];
|
|
2842
|
-
}
|
|
2843
|
-
});
|
|
2844
|
-
}); };
|
|
2845
|
-
var parseBody = function (streamBody, context) {
|
|
2846
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2847
|
-
if (encoded.length) {
|
|
2848
|
-
return JSON.parse(encoded);
|
|
2849
|
-
}
|
|
2850
|
-
return {};
|
|
2851
|
-
});
|
|
2267
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2268
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2269
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2270
|
+
const contents = {
|
|
2271
|
+
protocol,
|
|
2272
|
+
hostname,
|
|
2273
|
+
port,
|
|
2274
|
+
method: "POST",
|
|
2275
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2276
|
+
headers,
|
|
2277
|
+
};
|
|
2278
|
+
if (resolvedHostname !== undefined) {
|
|
2279
|
+
contents.hostname = resolvedHostname;
|
|
2280
|
+
}
|
|
2281
|
+
if (body !== undefined) {
|
|
2282
|
+
contents.body = body;
|
|
2283
|
+
}
|
|
2284
|
+
return new __HttpRequest(contents);
|
|
2852
2285
|
};
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
2869
|
-
var cleanValue = rawValue;
|
|
2286
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2287
|
+
if (encoded.length) {
|
|
2288
|
+
return JSON.parse(encoded);
|
|
2289
|
+
}
|
|
2290
|
+
return {};
|
|
2291
|
+
});
|
|
2292
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2293
|
+
const value = await parseBody(errorBody, context);
|
|
2294
|
+
value.message = value.message ?? value.Message;
|
|
2295
|
+
return value;
|
|
2296
|
+
};
|
|
2297
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2298
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2299
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2300
|
+
let cleanValue = rawValue;
|
|
2870
2301
|
if (typeof cleanValue === "number") {
|
|
2871
2302
|
cleanValue = cleanValue.toString();
|
|
2872
2303
|
}
|
|
@@ -2881,7 +2312,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2881
2312
|
}
|
|
2882
2313
|
return cleanValue;
|
|
2883
2314
|
};
|
|
2884
|
-
|
|
2315
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2885
2316
|
if (headerKey !== undefined) {
|
|
2886
2317
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2887
2318
|
}
|