@aws-sdk/client-acm 3.183.0 → 3.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/ACM.js +69 -62
- package/dist-es/ACMClient.js +28 -22
- package/dist-es/commands/AddTagsToCertificateCommand.js +29 -22
- package/dist-es/commands/DeleteCertificateCommand.js +29 -22
- package/dist-es/commands/DescribeCertificateCommand.js +28 -21
- package/dist-es/commands/ExportCertificateCommand.js +28 -21
- package/dist-es/commands/GetAccountConfigurationCommand.js +29 -22
- package/dist-es/commands/GetCertificateCommand.js +28 -21
- package/dist-es/commands/ImportCertificateCommand.js +28 -21
- package/dist-es/commands/ListCertificatesCommand.js +28 -21
- package/dist-es/commands/ListTagsForCertificateCommand.js +28 -21
- package/dist-es/commands/PutAccountConfigurationCommand.js +29 -22
- package/dist-es/commands/RemoveTagsFromCertificateCommand.js +29 -22
- package/dist-es/commands/RenewCertificateCommand.js +29 -22
- package/dist-es/commands/RequestCertificateCommand.js +28 -21
- package/dist-es/commands/ResendValidationEmailCommand.js +29 -22
- package/dist-es/commands/UpdateCertificateOptionsCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ACMServiceException.js +10 -5
- package/dist-es/models/models_0.js +212 -282
- package/dist-es/pagination/ListCertificatesPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +1452 -1129
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForCertificateValidated.js +102 -61
- package/package.json +5 -5
|
@@ -1,1074 +1,1374 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
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";
|
|
3
4
|
import { ACMServiceException as __BaseException } from "../models/ACMServiceException";
|
|
4
5
|
import { AccessDeniedException, ConflictException, InvalidArgsException, InvalidArnException, InvalidDomainValidationOptionsException, InvalidParameterException, InvalidStateException, InvalidTagException, LimitExceededException, RequestInProgressException, ResourceInUseException, ResourceNotFoundException, TagPolicyException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
export
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
parsedBody
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
throw
|
|
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
|
-
output,
|
|
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
|
-
throw
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
export
|
|
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
|
-
throw
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
};
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
};
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
};
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
};
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
6
|
+
export var serializeAws_json1_1AddTagsToCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "CertificateManager.AddTagsToCertificate",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1AddTagsToCertificateRequest(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1DeleteCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "CertificateManager.DeleteCertificate",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1DeleteCertificateRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1DescribeCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "CertificateManager.DescribeCertificate",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1DescribeCertificateRequest(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1ExportCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "CertificateManager.ExportCertificate",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1ExportCertificateRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1GetAccountConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "CertificateManager.GetAccountConfiguration",
|
|
56
|
+
};
|
|
57
|
+
body = "{}";
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1GetCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "CertificateManager.GetCertificate",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1GetCertificateRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_1ImportCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
var headers, body;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
headers = {
|
|
76
|
+
"content-type": "application/x-amz-json-1.1",
|
|
77
|
+
"x-amz-target": "CertificateManager.ImportCertificate",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_1ImportCertificateRequest(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
|
+
});
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_1ListCertificatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.1",
|
|
88
|
+
"x-amz-target": "CertificateManager.ListCertificates",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1ListCertificatesRequest(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
94
|
+
export var serializeAws_json1_1ListTagsForCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "CertificateManager.ListTagsForCertificate",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForCertificateRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
105
|
+
export var serializeAws_json1_1PutAccountConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var headers, body;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.1",
|
|
110
|
+
"x-amz-target": "CertificateManager.PutAccountConfiguration",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1PutAccountConfigurationRequest(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_1RemoveTagsFromCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "CertificateManager.RemoveTagsFromCertificate",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1RemoveTagsFromCertificateRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_1RenewCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "CertificateManager.RenewCertificate",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1RenewCertificateRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_1RequestCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "CertificateManager.RequestCertificate",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1RequestCertificateRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var serializeAws_json1_1ResendValidationEmailCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "CertificateManager.ResendValidationEmail",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1ResendValidationEmailRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
export var serializeAws_json1_1UpdateCertificateOptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
|
+
var headers, body;
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
headers = {
|
|
164
|
+
"content-type": "application/x-amz-json-1.1",
|
|
165
|
+
"x-amz-target": "CertificateManager.UpdateCertificateOptions",
|
|
166
|
+
};
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_1UpdateCertificateOptionsRequest(input, context));
|
|
168
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
|
+
});
|
|
170
|
+
}); };
|
|
171
|
+
export var deserializeAws_json1_1AddTagsToCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
+
var response;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
switch (_a.label) {
|
|
175
|
+
case 0:
|
|
176
|
+
if (output.statusCode >= 300) {
|
|
177
|
+
return [2, deserializeAws_json1_1AddTagsToCertificateCommandError(output, context)];
|
|
178
|
+
}
|
|
179
|
+
return [4, collectBody(output.body, context)];
|
|
180
|
+
case 1:
|
|
181
|
+
_a.sent();
|
|
182
|
+
response = {
|
|
183
|
+
$metadata: deserializeMetadata(output),
|
|
184
|
+
};
|
|
185
|
+
return [2, Promise.resolve(response)];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}); };
|
|
189
|
+
var deserializeAws_json1_1AddTagsToCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
190
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
191
|
+
var _c;
|
|
192
|
+
return __generator(this, function (_d) {
|
|
193
|
+
switch (_d.label) {
|
|
194
|
+
case 0:
|
|
195
|
+
_a = [__assign({}, output)];
|
|
196
|
+
_c = {};
|
|
197
|
+
return [4, parseErrorBody(output.body, context)];
|
|
198
|
+
case 1:
|
|
199
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
200
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
201
|
+
_b = errorCode;
|
|
202
|
+
switch (_b) {
|
|
203
|
+
case "InvalidArnException": return [3, 2];
|
|
204
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
205
|
+
case "InvalidParameterException": return [3, 4];
|
|
206
|
+
case "com.amazonaws.acm#InvalidParameterException": return [3, 4];
|
|
207
|
+
case "InvalidTagException": return [3, 6];
|
|
208
|
+
case "com.amazonaws.acm#InvalidTagException": return [3, 6];
|
|
209
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
210
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 8];
|
|
211
|
+
case "TagPolicyException": return [3, 10];
|
|
212
|
+
case "com.amazonaws.acm#TagPolicyException": return [3, 10];
|
|
213
|
+
case "ThrottlingException": return [3, 12];
|
|
214
|
+
case "com.amazonaws.acm#ThrottlingException": return [3, 12];
|
|
215
|
+
case "TooManyTagsException": return [3, 14];
|
|
216
|
+
case "com.amazonaws.acm#TooManyTagsException": return [3, 14];
|
|
217
|
+
}
|
|
218
|
+
return [3, 16];
|
|
219
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
220
|
+
case 3: throw _d.sent();
|
|
221
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
222
|
+
case 5: throw _d.sent();
|
|
223
|
+
case 6: return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
224
|
+
case 7: throw _d.sent();
|
|
225
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
226
|
+
case 9: throw _d.sent();
|
|
227
|
+
case 10: return [4, deserializeAws_json1_1TagPolicyExceptionResponse(parsedOutput, context)];
|
|
228
|
+
case 11: throw _d.sent();
|
|
229
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
230
|
+
case 13: throw _d.sent();
|
|
231
|
+
case 14: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
232
|
+
case 15: throw _d.sent();
|
|
233
|
+
case 16:
|
|
234
|
+
parsedBody = parsedOutput.body;
|
|
235
|
+
throwDefaultError({
|
|
236
|
+
output: output,
|
|
237
|
+
parsedBody: parsedBody,
|
|
238
|
+
exceptionCtor: __BaseException,
|
|
239
|
+
errorCode: errorCode,
|
|
240
|
+
});
|
|
241
|
+
_d.label = 17;
|
|
242
|
+
case 17: return [2];
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}); };
|
|
246
|
+
export var deserializeAws_json1_1DeleteCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
247
|
+
var response;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0:
|
|
251
|
+
if (output.statusCode >= 300) {
|
|
252
|
+
return [2, deserializeAws_json1_1DeleteCertificateCommandError(output, context)];
|
|
253
|
+
}
|
|
254
|
+
return [4, collectBody(output.body, context)];
|
|
255
|
+
case 1:
|
|
256
|
+
_a.sent();
|
|
257
|
+
response = {
|
|
258
|
+
$metadata: deserializeMetadata(output),
|
|
259
|
+
};
|
|
260
|
+
return [2, Promise.resolve(response)];
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
}); };
|
|
264
|
+
var deserializeAws_json1_1DeleteCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
265
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
266
|
+
var _c;
|
|
267
|
+
return __generator(this, function (_d) {
|
|
268
|
+
switch (_d.label) {
|
|
269
|
+
case 0:
|
|
270
|
+
_a = [__assign({}, output)];
|
|
271
|
+
_c = {};
|
|
272
|
+
return [4, parseErrorBody(output.body, context)];
|
|
273
|
+
case 1:
|
|
274
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
275
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
276
|
+
_b = errorCode;
|
|
277
|
+
switch (_b) {
|
|
278
|
+
case "InvalidArnException": return [3, 2];
|
|
279
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
280
|
+
case "ResourceInUseException": return [3, 4];
|
|
281
|
+
case "com.amazonaws.acm#ResourceInUseException": return [3, 4];
|
|
282
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
283
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 6];
|
|
284
|
+
}
|
|
285
|
+
return [3, 8];
|
|
286
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
287
|
+
case 3: throw _d.sent();
|
|
288
|
+
case 4: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
289
|
+
case 5: throw _d.sent();
|
|
290
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
291
|
+
case 7: throw _d.sent();
|
|
292
|
+
case 8:
|
|
293
|
+
parsedBody = parsedOutput.body;
|
|
294
|
+
throwDefaultError({
|
|
295
|
+
output: output,
|
|
296
|
+
parsedBody: parsedBody,
|
|
297
|
+
exceptionCtor: __BaseException,
|
|
298
|
+
errorCode: errorCode,
|
|
299
|
+
});
|
|
300
|
+
_d.label = 9;
|
|
301
|
+
case 9: return [2];
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}); };
|
|
305
|
+
export var deserializeAws_json1_1DescribeCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
306
|
+
var data, contents, response;
|
|
307
|
+
return __generator(this, function (_a) {
|
|
308
|
+
switch (_a.label) {
|
|
309
|
+
case 0:
|
|
310
|
+
if (output.statusCode >= 300) {
|
|
311
|
+
return [2, deserializeAws_json1_1DescribeCertificateCommandError(output, context)];
|
|
312
|
+
}
|
|
313
|
+
return [4, parseBody(output.body, context)];
|
|
314
|
+
case 1:
|
|
315
|
+
data = _a.sent();
|
|
316
|
+
contents = {};
|
|
317
|
+
contents = deserializeAws_json1_1DescribeCertificateResponse(data, context);
|
|
318
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
319
|
+
return [2, Promise.resolve(response)];
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
}); };
|
|
323
|
+
var deserializeAws_json1_1DescribeCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
324
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
325
|
+
var _c;
|
|
326
|
+
return __generator(this, function (_d) {
|
|
327
|
+
switch (_d.label) {
|
|
328
|
+
case 0:
|
|
329
|
+
_a = [__assign({}, output)];
|
|
330
|
+
_c = {};
|
|
331
|
+
return [4, parseErrorBody(output.body, context)];
|
|
332
|
+
case 1:
|
|
333
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
334
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
|
+
_b = errorCode;
|
|
336
|
+
switch (_b) {
|
|
337
|
+
case "InvalidArnException": return [3, 2];
|
|
338
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
339
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
340
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 4];
|
|
341
|
+
}
|
|
342
|
+
return [3, 6];
|
|
343
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
344
|
+
case 3: throw _d.sent();
|
|
345
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
346
|
+
case 5: throw _d.sent();
|
|
347
|
+
case 6:
|
|
348
|
+
parsedBody = parsedOutput.body;
|
|
349
|
+
throwDefaultError({
|
|
350
|
+
output: output,
|
|
351
|
+
parsedBody: parsedBody,
|
|
352
|
+
exceptionCtor: __BaseException,
|
|
353
|
+
errorCode: errorCode,
|
|
354
|
+
});
|
|
355
|
+
_d.label = 7;
|
|
356
|
+
case 7: return [2];
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}); };
|
|
360
|
+
export var deserializeAws_json1_1ExportCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
361
|
+
var data, contents, response;
|
|
362
|
+
return __generator(this, function (_a) {
|
|
363
|
+
switch (_a.label) {
|
|
364
|
+
case 0:
|
|
365
|
+
if (output.statusCode >= 300) {
|
|
366
|
+
return [2, deserializeAws_json1_1ExportCertificateCommandError(output, context)];
|
|
367
|
+
}
|
|
368
|
+
return [4, parseBody(output.body, context)];
|
|
369
|
+
case 1:
|
|
370
|
+
data = _a.sent();
|
|
371
|
+
contents = {};
|
|
372
|
+
contents = deserializeAws_json1_1ExportCertificateResponse(data, context);
|
|
373
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
374
|
+
return [2, Promise.resolve(response)];
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
}); };
|
|
378
|
+
var deserializeAws_json1_1ExportCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
379
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
380
|
+
var _c;
|
|
381
|
+
return __generator(this, function (_d) {
|
|
382
|
+
switch (_d.label) {
|
|
383
|
+
case 0:
|
|
384
|
+
_a = [__assign({}, output)];
|
|
385
|
+
_c = {};
|
|
386
|
+
return [4, parseErrorBody(output.body, context)];
|
|
387
|
+
case 1:
|
|
388
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
389
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
+
_b = errorCode;
|
|
391
|
+
switch (_b) {
|
|
392
|
+
case "InvalidArnException": return [3, 2];
|
|
393
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
394
|
+
case "RequestInProgressException": return [3, 4];
|
|
395
|
+
case "com.amazonaws.acm#RequestInProgressException": return [3, 4];
|
|
396
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
397
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 6];
|
|
398
|
+
}
|
|
399
|
+
return [3, 8];
|
|
400
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
401
|
+
case 3: throw _d.sent();
|
|
402
|
+
case 4: return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
403
|
+
case 5: throw _d.sent();
|
|
404
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
405
|
+
case 7: throw _d.sent();
|
|
406
|
+
case 8:
|
|
407
|
+
parsedBody = parsedOutput.body;
|
|
408
|
+
throwDefaultError({
|
|
409
|
+
output: output,
|
|
410
|
+
parsedBody: parsedBody,
|
|
411
|
+
exceptionCtor: __BaseException,
|
|
412
|
+
errorCode: errorCode,
|
|
413
|
+
});
|
|
414
|
+
_d.label = 9;
|
|
415
|
+
case 9: return [2];
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
}); };
|
|
419
|
+
export var deserializeAws_json1_1GetAccountConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
420
|
+
var data, contents, response;
|
|
421
|
+
return __generator(this, function (_a) {
|
|
422
|
+
switch (_a.label) {
|
|
423
|
+
case 0:
|
|
424
|
+
if (output.statusCode >= 300) {
|
|
425
|
+
return [2, deserializeAws_json1_1GetAccountConfigurationCommandError(output, context)];
|
|
426
|
+
}
|
|
427
|
+
return [4, parseBody(output.body, context)];
|
|
428
|
+
case 1:
|
|
429
|
+
data = _a.sent();
|
|
430
|
+
contents = {};
|
|
431
|
+
contents = deserializeAws_json1_1GetAccountConfigurationResponse(data, context);
|
|
432
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
433
|
+
return [2, Promise.resolve(response)];
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
}); };
|
|
437
|
+
var deserializeAws_json1_1GetAccountConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
438
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
439
|
+
var _c;
|
|
440
|
+
return __generator(this, function (_d) {
|
|
441
|
+
switch (_d.label) {
|
|
442
|
+
case 0:
|
|
443
|
+
_a = [__assign({}, output)];
|
|
444
|
+
_c = {};
|
|
445
|
+
return [4, parseErrorBody(output.body, context)];
|
|
446
|
+
case 1:
|
|
447
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
448
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
|
+
_b = errorCode;
|
|
450
|
+
switch (_b) {
|
|
451
|
+
case "AccessDeniedException": return [3, 2];
|
|
452
|
+
case "com.amazonaws.acm#AccessDeniedException": return [3, 2];
|
|
453
|
+
case "ThrottlingException": return [3, 4];
|
|
454
|
+
case "com.amazonaws.acm#ThrottlingException": return [3, 4];
|
|
455
|
+
}
|
|
456
|
+
return [3, 6];
|
|
457
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
458
|
+
case 3: throw _d.sent();
|
|
459
|
+
case 4: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
460
|
+
case 5: throw _d.sent();
|
|
461
|
+
case 6:
|
|
462
|
+
parsedBody = parsedOutput.body;
|
|
463
|
+
throwDefaultError({
|
|
464
|
+
output: output,
|
|
465
|
+
parsedBody: parsedBody,
|
|
466
|
+
exceptionCtor: __BaseException,
|
|
467
|
+
errorCode: errorCode,
|
|
468
|
+
});
|
|
469
|
+
_d.label = 7;
|
|
470
|
+
case 7: return [2];
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}); };
|
|
474
|
+
export var deserializeAws_json1_1GetCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
475
|
+
var data, contents, response;
|
|
476
|
+
return __generator(this, function (_a) {
|
|
477
|
+
switch (_a.label) {
|
|
478
|
+
case 0:
|
|
479
|
+
if (output.statusCode >= 300) {
|
|
480
|
+
return [2, deserializeAws_json1_1GetCertificateCommandError(output, context)];
|
|
481
|
+
}
|
|
482
|
+
return [4, parseBody(output.body, context)];
|
|
483
|
+
case 1:
|
|
484
|
+
data = _a.sent();
|
|
485
|
+
contents = {};
|
|
486
|
+
contents = deserializeAws_json1_1GetCertificateResponse(data, context);
|
|
487
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
488
|
+
return [2, Promise.resolve(response)];
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
}); };
|
|
492
|
+
var deserializeAws_json1_1GetCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
493
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
494
|
+
var _c;
|
|
495
|
+
return __generator(this, function (_d) {
|
|
496
|
+
switch (_d.label) {
|
|
497
|
+
case 0:
|
|
498
|
+
_a = [__assign({}, output)];
|
|
499
|
+
_c = {};
|
|
500
|
+
return [4, parseErrorBody(output.body, context)];
|
|
501
|
+
case 1:
|
|
502
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
503
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
504
|
+
_b = errorCode;
|
|
505
|
+
switch (_b) {
|
|
506
|
+
case "InvalidArnException": return [3, 2];
|
|
507
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
508
|
+
case "RequestInProgressException": return [3, 4];
|
|
509
|
+
case "com.amazonaws.acm#RequestInProgressException": return [3, 4];
|
|
510
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
511
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 6];
|
|
512
|
+
}
|
|
513
|
+
return [3, 8];
|
|
514
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
515
|
+
case 3: throw _d.sent();
|
|
516
|
+
case 4: return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
517
|
+
case 5: throw _d.sent();
|
|
518
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
519
|
+
case 7: throw _d.sent();
|
|
520
|
+
case 8:
|
|
521
|
+
parsedBody = parsedOutput.body;
|
|
522
|
+
throwDefaultError({
|
|
523
|
+
output: output,
|
|
524
|
+
parsedBody: parsedBody,
|
|
525
|
+
exceptionCtor: __BaseException,
|
|
526
|
+
errorCode: errorCode,
|
|
527
|
+
});
|
|
528
|
+
_d.label = 9;
|
|
529
|
+
case 9: return [2];
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
}); };
|
|
533
|
+
export var deserializeAws_json1_1ImportCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
534
|
+
var data, contents, response;
|
|
535
|
+
return __generator(this, function (_a) {
|
|
536
|
+
switch (_a.label) {
|
|
537
|
+
case 0:
|
|
538
|
+
if (output.statusCode >= 300) {
|
|
539
|
+
return [2, deserializeAws_json1_1ImportCertificateCommandError(output, context)];
|
|
540
|
+
}
|
|
541
|
+
return [4, parseBody(output.body, context)];
|
|
542
|
+
case 1:
|
|
543
|
+
data = _a.sent();
|
|
544
|
+
contents = {};
|
|
545
|
+
contents = deserializeAws_json1_1ImportCertificateResponse(data, context);
|
|
546
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
547
|
+
return [2, Promise.resolve(response)];
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}); };
|
|
551
|
+
var deserializeAws_json1_1ImportCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
552
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
553
|
+
var _c;
|
|
554
|
+
return __generator(this, function (_d) {
|
|
555
|
+
switch (_d.label) {
|
|
556
|
+
case 0:
|
|
557
|
+
_a = [__assign({}, output)];
|
|
558
|
+
_c = {};
|
|
559
|
+
return [4, parseErrorBody(output.body, context)];
|
|
560
|
+
case 1:
|
|
561
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
562
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
563
|
+
_b = errorCode;
|
|
564
|
+
switch (_b) {
|
|
565
|
+
case "InvalidArnException": return [3, 2];
|
|
566
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
567
|
+
case "InvalidParameterException": return [3, 4];
|
|
568
|
+
case "com.amazonaws.acm#InvalidParameterException": return [3, 4];
|
|
569
|
+
case "InvalidTagException": return [3, 6];
|
|
570
|
+
case "com.amazonaws.acm#InvalidTagException": return [3, 6];
|
|
571
|
+
case "LimitExceededException": return [3, 8];
|
|
572
|
+
case "com.amazonaws.acm#LimitExceededException": return [3, 8];
|
|
573
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
574
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 10];
|
|
575
|
+
case "TagPolicyException": return [3, 12];
|
|
576
|
+
case "com.amazonaws.acm#TagPolicyException": return [3, 12];
|
|
577
|
+
case "TooManyTagsException": return [3, 14];
|
|
578
|
+
case "com.amazonaws.acm#TooManyTagsException": return [3, 14];
|
|
579
|
+
}
|
|
580
|
+
return [3, 16];
|
|
581
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
582
|
+
case 3: throw _d.sent();
|
|
583
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
584
|
+
case 5: throw _d.sent();
|
|
585
|
+
case 6: return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
586
|
+
case 7: throw _d.sent();
|
|
587
|
+
case 8: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
588
|
+
case 9: throw _d.sent();
|
|
589
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
590
|
+
case 11: throw _d.sent();
|
|
591
|
+
case 12: return [4, deserializeAws_json1_1TagPolicyExceptionResponse(parsedOutput, context)];
|
|
592
|
+
case 13: throw _d.sent();
|
|
593
|
+
case 14: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
594
|
+
case 15: throw _d.sent();
|
|
595
|
+
case 16:
|
|
596
|
+
parsedBody = parsedOutput.body;
|
|
597
|
+
throwDefaultError({
|
|
598
|
+
output: output,
|
|
599
|
+
parsedBody: parsedBody,
|
|
600
|
+
exceptionCtor: __BaseException,
|
|
601
|
+
errorCode: errorCode,
|
|
602
|
+
});
|
|
603
|
+
_d.label = 17;
|
|
604
|
+
case 17: return [2];
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
}); };
|
|
608
|
+
export var deserializeAws_json1_1ListCertificatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
609
|
+
var data, contents, response;
|
|
610
|
+
return __generator(this, function (_a) {
|
|
611
|
+
switch (_a.label) {
|
|
612
|
+
case 0:
|
|
613
|
+
if (output.statusCode >= 300) {
|
|
614
|
+
return [2, deserializeAws_json1_1ListCertificatesCommandError(output, context)];
|
|
615
|
+
}
|
|
616
|
+
return [4, parseBody(output.body, context)];
|
|
617
|
+
case 1:
|
|
618
|
+
data = _a.sent();
|
|
619
|
+
contents = {};
|
|
620
|
+
contents = deserializeAws_json1_1ListCertificatesResponse(data, context);
|
|
621
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
622
|
+
return [2, Promise.resolve(response)];
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
}); };
|
|
626
|
+
var deserializeAws_json1_1ListCertificatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
627
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
628
|
+
var _c;
|
|
629
|
+
return __generator(this, function (_d) {
|
|
630
|
+
switch (_d.label) {
|
|
631
|
+
case 0:
|
|
632
|
+
_a = [__assign({}, output)];
|
|
633
|
+
_c = {};
|
|
634
|
+
return [4, parseErrorBody(output.body, context)];
|
|
635
|
+
case 1:
|
|
636
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
637
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
+
_b = errorCode;
|
|
639
|
+
switch (_b) {
|
|
640
|
+
case "InvalidArgsException": return [3, 2];
|
|
641
|
+
case "com.amazonaws.acm#InvalidArgsException": return [3, 2];
|
|
642
|
+
}
|
|
643
|
+
return [3, 4];
|
|
644
|
+
case 2: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
645
|
+
case 3: throw _d.sent();
|
|
646
|
+
case 4:
|
|
647
|
+
parsedBody = parsedOutput.body;
|
|
648
|
+
throwDefaultError({
|
|
649
|
+
output: output,
|
|
650
|
+
parsedBody: parsedBody,
|
|
651
|
+
exceptionCtor: __BaseException,
|
|
652
|
+
errorCode: errorCode,
|
|
653
|
+
});
|
|
654
|
+
_d.label = 5;
|
|
655
|
+
case 5: return [2];
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
}); };
|
|
659
|
+
export var deserializeAws_json1_1ListTagsForCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
660
|
+
var data, contents, response;
|
|
661
|
+
return __generator(this, function (_a) {
|
|
662
|
+
switch (_a.label) {
|
|
663
|
+
case 0:
|
|
664
|
+
if (output.statusCode >= 300) {
|
|
665
|
+
return [2, deserializeAws_json1_1ListTagsForCertificateCommandError(output, context)];
|
|
666
|
+
}
|
|
667
|
+
return [4, parseBody(output.body, context)];
|
|
668
|
+
case 1:
|
|
669
|
+
data = _a.sent();
|
|
670
|
+
contents = {};
|
|
671
|
+
contents = deserializeAws_json1_1ListTagsForCertificateResponse(data, context);
|
|
672
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
673
|
+
return [2, Promise.resolve(response)];
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
}); };
|
|
677
|
+
var deserializeAws_json1_1ListTagsForCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
678
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
679
|
+
var _c;
|
|
680
|
+
return __generator(this, function (_d) {
|
|
681
|
+
switch (_d.label) {
|
|
682
|
+
case 0:
|
|
683
|
+
_a = [__assign({}, output)];
|
|
684
|
+
_c = {};
|
|
685
|
+
return [4, parseErrorBody(output.body, context)];
|
|
686
|
+
case 1:
|
|
687
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
688
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
689
|
+
_b = errorCode;
|
|
690
|
+
switch (_b) {
|
|
691
|
+
case "InvalidArnException": return [3, 2];
|
|
692
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
693
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
694
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 4];
|
|
695
|
+
}
|
|
696
|
+
return [3, 6];
|
|
697
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
698
|
+
case 3: throw _d.sent();
|
|
699
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
700
|
+
case 5: throw _d.sent();
|
|
701
|
+
case 6:
|
|
702
|
+
parsedBody = parsedOutput.body;
|
|
703
|
+
throwDefaultError({
|
|
704
|
+
output: output,
|
|
705
|
+
parsedBody: parsedBody,
|
|
706
|
+
exceptionCtor: __BaseException,
|
|
707
|
+
errorCode: errorCode,
|
|
708
|
+
});
|
|
709
|
+
_d.label = 7;
|
|
710
|
+
case 7: return [2];
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
}); };
|
|
714
|
+
export var deserializeAws_json1_1PutAccountConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
715
|
+
var response;
|
|
716
|
+
return __generator(this, function (_a) {
|
|
717
|
+
switch (_a.label) {
|
|
718
|
+
case 0:
|
|
719
|
+
if (output.statusCode >= 300) {
|
|
720
|
+
return [2, deserializeAws_json1_1PutAccountConfigurationCommandError(output, context)];
|
|
721
|
+
}
|
|
722
|
+
return [4, collectBody(output.body, context)];
|
|
723
|
+
case 1:
|
|
724
|
+
_a.sent();
|
|
725
|
+
response = {
|
|
726
|
+
$metadata: deserializeMetadata(output),
|
|
727
|
+
};
|
|
728
|
+
return [2, Promise.resolve(response)];
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
}); };
|
|
732
|
+
var deserializeAws_json1_1PutAccountConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
733
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
734
|
+
var _c;
|
|
735
|
+
return __generator(this, function (_d) {
|
|
736
|
+
switch (_d.label) {
|
|
737
|
+
case 0:
|
|
738
|
+
_a = [__assign({}, output)];
|
|
739
|
+
_c = {};
|
|
740
|
+
return [4, parseErrorBody(output.body, context)];
|
|
741
|
+
case 1:
|
|
742
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
743
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
+
_b = errorCode;
|
|
745
|
+
switch (_b) {
|
|
746
|
+
case "AccessDeniedException": return [3, 2];
|
|
747
|
+
case "com.amazonaws.acm#AccessDeniedException": return [3, 2];
|
|
748
|
+
case "ConflictException": return [3, 4];
|
|
749
|
+
case "com.amazonaws.acm#ConflictException": return [3, 4];
|
|
750
|
+
case "ThrottlingException": return [3, 6];
|
|
751
|
+
case "com.amazonaws.acm#ThrottlingException": return [3, 6];
|
|
752
|
+
case "ValidationException": return [3, 8];
|
|
753
|
+
case "com.amazonaws.acm#ValidationException": return [3, 8];
|
|
754
|
+
}
|
|
755
|
+
return [3, 10];
|
|
756
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
757
|
+
case 3: throw _d.sent();
|
|
758
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
759
|
+
case 5: throw _d.sent();
|
|
760
|
+
case 6: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
761
|
+
case 7: throw _d.sent();
|
|
762
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
763
|
+
case 9: throw _d.sent();
|
|
764
|
+
case 10:
|
|
765
|
+
parsedBody = parsedOutput.body;
|
|
766
|
+
throwDefaultError({
|
|
767
|
+
output: output,
|
|
768
|
+
parsedBody: parsedBody,
|
|
769
|
+
exceptionCtor: __BaseException,
|
|
770
|
+
errorCode: errorCode,
|
|
771
|
+
});
|
|
772
|
+
_d.label = 11;
|
|
773
|
+
case 11: return [2];
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
}); };
|
|
777
|
+
export var deserializeAws_json1_1RemoveTagsFromCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
778
|
+
var response;
|
|
779
|
+
return __generator(this, function (_a) {
|
|
780
|
+
switch (_a.label) {
|
|
781
|
+
case 0:
|
|
782
|
+
if (output.statusCode >= 300) {
|
|
783
|
+
return [2, deserializeAws_json1_1RemoveTagsFromCertificateCommandError(output, context)];
|
|
784
|
+
}
|
|
785
|
+
return [4, collectBody(output.body, context)];
|
|
786
|
+
case 1:
|
|
787
|
+
_a.sent();
|
|
788
|
+
response = {
|
|
789
|
+
$metadata: deserializeMetadata(output),
|
|
790
|
+
};
|
|
791
|
+
return [2, Promise.resolve(response)];
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
}); };
|
|
795
|
+
var deserializeAws_json1_1RemoveTagsFromCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
796
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
797
|
+
var _c;
|
|
798
|
+
return __generator(this, function (_d) {
|
|
799
|
+
switch (_d.label) {
|
|
800
|
+
case 0:
|
|
801
|
+
_a = [__assign({}, output)];
|
|
802
|
+
_c = {};
|
|
803
|
+
return [4, parseErrorBody(output.body, context)];
|
|
804
|
+
case 1:
|
|
805
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
806
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
|
+
_b = errorCode;
|
|
808
|
+
switch (_b) {
|
|
809
|
+
case "InvalidArnException": return [3, 2];
|
|
810
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
811
|
+
case "InvalidParameterException": return [3, 4];
|
|
812
|
+
case "com.amazonaws.acm#InvalidParameterException": return [3, 4];
|
|
813
|
+
case "InvalidTagException": return [3, 6];
|
|
814
|
+
case "com.amazonaws.acm#InvalidTagException": return [3, 6];
|
|
815
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
816
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 8];
|
|
817
|
+
case "TagPolicyException": return [3, 10];
|
|
818
|
+
case "com.amazonaws.acm#TagPolicyException": return [3, 10];
|
|
819
|
+
case "ThrottlingException": return [3, 12];
|
|
820
|
+
case "com.amazonaws.acm#ThrottlingException": return [3, 12];
|
|
821
|
+
}
|
|
822
|
+
return [3, 14];
|
|
823
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
824
|
+
case 3: throw _d.sent();
|
|
825
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
826
|
+
case 5: throw _d.sent();
|
|
827
|
+
case 6: return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
828
|
+
case 7: throw _d.sent();
|
|
829
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
830
|
+
case 9: throw _d.sent();
|
|
831
|
+
case 10: return [4, deserializeAws_json1_1TagPolicyExceptionResponse(parsedOutput, context)];
|
|
832
|
+
case 11: throw _d.sent();
|
|
833
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
834
|
+
case 13: throw _d.sent();
|
|
835
|
+
case 14:
|
|
836
|
+
parsedBody = parsedOutput.body;
|
|
837
|
+
throwDefaultError({
|
|
838
|
+
output: output,
|
|
839
|
+
parsedBody: parsedBody,
|
|
840
|
+
exceptionCtor: __BaseException,
|
|
841
|
+
errorCode: errorCode,
|
|
842
|
+
});
|
|
843
|
+
_d.label = 15;
|
|
844
|
+
case 15: return [2];
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
}); };
|
|
848
|
+
export var deserializeAws_json1_1RenewCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
849
|
+
var response;
|
|
850
|
+
return __generator(this, function (_a) {
|
|
851
|
+
switch (_a.label) {
|
|
852
|
+
case 0:
|
|
853
|
+
if (output.statusCode >= 300) {
|
|
854
|
+
return [2, deserializeAws_json1_1RenewCertificateCommandError(output, context)];
|
|
855
|
+
}
|
|
856
|
+
return [4, collectBody(output.body, context)];
|
|
857
|
+
case 1:
|
|
858
|
+
_a.sent();
|
|
859
|
+
response = {
|
|
860
|
+
$metadata: deserializeMetadata(output),
|
|
861
|
+
};
|
|
862
|
+
return [2, Promise.resolve(response)];
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
}); };
|
|
866
|
+
var deserializeAws_json1_1RenewCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
867
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
868
|
+
var _c;
|
|
869
|
+
return __generator(this, function (_d) {
|
|
870
|
+
switch (_d.label) {
|
|
871
|
+
case 0:
|
|
872
|
+
_a = [__assign({}, output)];
|
|
873
|
+
_c = {};
|
|
874
|
+
return [4, parseErrorBody(output.body, context)];
|
|
875
|
+
case 1:
|
|
876
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
877
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
+
_b = errorCode;
|
|
879
|
+
switch (_b) {
|
|
880
|
+
case "InvalidArnException": return [3, 2];
|
|
881
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
882
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
883
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 4];
|
|
884
|
+
}
|
|
885
|
+
return [3, 6];
|
|
886
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
887
|
+
case 3: throw _d.sent();
|
|
888
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
889
|
+
case 5: throw _d.sent();
|
|
890
|
+
case 6:
|
|
891
|
+
parsedBody = parsedOutput.body;
|
|
892
|
+
throwDefaultError({
|
|
893
|
+
output: output,
|
|
894
|
+
parsedBody: parsedBody,
|
|
895
|
+
exceptionCtor: __BaseException,
|
|
896
|
+
errorCode: errorCode,
|
|
897
|
+
});
|
|
898
|
+
_d.label = 7;
|
|
899
|
+
case 7: return [2];
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
}); };
|
|
903
|
+
export var deserializeAws_json1_1RequestCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
904
|
+
var data, contents, response;
|
|
905
|
+
return __generator(this, function (_a) {
|
|
906
|
+
switch (_a.label) {
|
|
907
|
+
case 0:
|
|
908
|
+
if (output.statusCode >= 300) {
|
|
909
|
+
return [2, deserializeAws_json1_1RequestCertificateCommandError(output, context)];
|
|
910
|
+
}
|
|
911
|
+
return [4, parseBody(output.body, context)];
|
|
912
|
+
case 1:
|
|
913
|
+
data = _a.sent();
|
|
914
|
+
contents = {};
|
|
915
|
+
contents = deserializeAws_json1_1RequestCertificateResponse(data, context);
|
|
916
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
917
|
+
return [2, Promise.resolve(response)];
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
}); };
|
|
921
|
+
var deserializeAws_json1_1RequestCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
922
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
923
|
+
var _c;
|
|
924
|
+
return __generator(this, function (_d) {
|
|
925
|
+
switch (_d.label) {
|
|
926
|
+
case 0:
|
|
927
|
+
_a = [__assign({}, output)];
|
|
928
|
+
_c = {};
|
|
929
|
+
return [4, parseErrorBody(output.body, context)];
|
|
930
|
+
case 1:
|
|
931
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
932
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
+
_b = errorCode;
|
|
934
|
+
switch (_b) {
|
|
935
|
+
case "InvalidArnException": return [3, 2];
|
|
936
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
937
|
+
case "InvalidDomainValidationOptionsException": return [3, 4];
|
|
938
|
+
case "com.amazonaws.acm#InvalidDomainValidationOptionsException": return [3, 4];
|
|
939
|
+
case "InvalidParameterException": return [3, 6];
|
|
940
|
+
case "com.amazonaws.acm#InvalidParameterException": return [3, 6];
|
|
941
|
+
case "InvalidTagException": return [3, 8];
|
|
942
|
+
case "com.amazonaws.acm#InvalidTagException": return [3, 8];
|
|
943
|
+
case "LimitExceededException": return [3, 10];
|
|
944
|
+
case "com.amazonaws.acm#LimitExceededException": return [3, 10];
|
|
945
|
+
case "TagPolicyException": return [3, 12];
|
|
946
|
+
case "com.amazonaws.acm#TagPolicyException": return [3, 12];
|
|
947
|
+
case "TooManyTagsException": return [3, 14];
|
|
948
|
+
case "com.amazonaws.acm#TooManyTagsException": return [3, 14];
|
|
949
|
+
}
|
|
950
|
+
return [3, 16];
|
|
951
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
952
|
+
case 3: throw _d.sent();
|
|
953
|
+
case 4: return [4, deserializeAws_json1_1InvalidDomainValidationOptionsExceptionResponse(parsedOutput, context)];
|
|
954
|
+
case 5: throw _d.sent();
|
|
955
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
956
|
+
case 7: throw _d.sent();
|
|
957
|
+
case 8: return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
958
|
+
case 9: throw _d.sent();
|
|
959
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
960
|
+
case 11: throw _d.sent();
|
|
961
|
+
case 12: return [4, deserializeAws_json1_1TagPolicyExceptionResponse(parsedOutput, context)];
|
|
962
|
+
case 13: throw _d.sent();
|
|
963
|
+
case 14: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
964
|
+
case 15: throw _d.sent();
|
|
965
|
+
case 16:
|
|
966
|
+
parsedBody = parsedOutput.body;
|
|
967
|
+
throwDefaultError({
|
|
968
|
+
output: output,
|
|
969
|
+
parsedBody: parsedBody,
|
|
970
|
+
exceptionCtor: __BaseException,
|
|
971
|
+
errorCode: errorCode,
|
|
972
|
+
});
|
|
973
|
+
_d.label = 17;
|
|
974
|
+
case 17: return [2];
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
}); };
|
|
978
|
+
export var deserializeAws_json1_1ResendValidationEmailCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
979
|
+
var response;
|
|
980
|
+
return __generator(this, function (_a) {
|
|
981
|
+
switch (_a.label) {
|
|
982
|
+
case 0:
|
|
983
|
+
if (output.statusCode >= 300) {
|
|
984
|
+
return [2, deserializeAws_json1_1ResendValidationEmailCommandError(output, context)];
|
|
985
|
+
}
|
|
986
|
+
return [4, collectBody(output.body, context)];
|
|
987
|
+
case 1:
|
|
988
|
+
_a.sent();
|
|
989
|
+
response = {
|
|
990
|
+
$metadata: deserializeMetadata(output),
|
|
991
|
+
};
|
|
992
|
+
return [2, Promise.resolve(response)];
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
}); };
|
|
996
|
+
var deserializeAws_json1_1ResendValidationEmailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
997
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
998
|
+
var _c;
|
|
999
|
+
return __generator(this, function (_d) {
|
|
1000
|
+
switch (_d.label) {
|
|
1001
|
+
case 0:
|
|
1002
|
+
_a = [__assign({}, output)];
|
|
1003
|
+
_c = {};
|
|
1004
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1005
|
+
case 1:
|
|
1006
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1007
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
+
_b = errorCode;
|
|
1009
|
+
switch (_b) {
|
|
1010
|
+
case "InvalidArnException": return [3, 2];
|
|
1011
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
1012
|
+
case "InvalidDomainValidationOptionsException": return [3, 4];
|
|
1013
|
+
case "com.amazonaws.acm#InvalidDomainValidationOptionsException": return [3, 4];
|
|
1014
|
+
case "InvalidStateException": return [3, 6];
|
|
1015
|
+
case "com.amazonaws.acm#InvalidStateException": return [3, 6];
|
|
1016
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1017
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 8];
|
|
1018
|
+
}
|
|
1019
|
+
return [3, 10];
|
|
1020
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1021
|
+
case 3: throw _d.sent();
|
|
1022
|
+
case 4: return [4, deserializeAws_json1_1InvalidDomainValidationOptionsExceptionResponse(parsedOutput, context)];
|
|
1023
|
+
case 5: throw _d.sent();
|
|
1024
|
+
case 6: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1025
|
+
case 7: throw _d.sent();
|
|
1026
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1027
|
+
case 9: throw _d.sent();
|
|
1028
|
+
case 10:
|
|
1029
|
+
parsedBody = parsedOutput.body;
|
|
1030
|
+
throwDefaultError({
|
|
1031
|
+
output: output,
|
|
1032
|
+
parsedBody: parsedBody,
|
|
1033
|
+
exceptionCtor: __BaseException,
|
|
1034
|
+
errorCode: errorCode,
|
|
1035
|
+
});
|
|
1036
|
+
_d.label = 11;
|
|
1037
|
+
case 11: return [2];
|
|
1038
|
+
}
|
|
1039
|
+
});
|
|
1040
|
+
}); };
|
|
1041
|
+
export var deserializeAws_json1_1UpdateCertificateOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1042
|
+
var response;
|
|
1043
|
+
return __generator(this, function (_a) {
|
|
1044
|
+
switch (_a.label) {
|
|
1045
|
+
case 0:
|
|
1046
|
+
if (output.statusCode >= 300) {
|
|
1047
|
+
return [2, deserializeAws_json1_1UpdateCertificateOptionsCommandError(output, context)];
|
|
1048
|
+
}
|
|
1049
|
+
return [4, collectBody(output.body, context)];
|
|
1050
|
+
case 1:
|
|
1051
|
+
_a.sent();
|
|
1052
|
+
response = {
|
|
1053
|
+
$metadata: deserializeMetadata(output),
|
|
1054
|
+
};
|
|
1055
|
+
return [2, Promise.resolve(response)];
|
|
1056
|
+
}
|
|
1057
|
+
});
|
|
1058
|
+
}); };
|
|
1059
|
+
var deserializeAws_json1_1UpdateCertificateOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1060
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1061
|
+
var _c;
|
|
1062
|
+
return __generator(this, function (_d) {
|
|
1063
|
+
switch (_d.label) {
|
|
1064
|
+
case 0:
|
|
1065
|
+
_a = [__assign({}, output)];
|
|
1066
|
+
_c = {};
|
|
1067
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1068
|
+
case 1:
|
|
1069
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1070
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
|
+
_b = errorCode;
|
|
1072
|
+
switch (_b) {
|
|
1073
|
+
case "InvalidArnException": return [3, 2];
|
|
1074
|
+
case "com.amazonaws.acm#InvalidArnException": return [3, 2];
|
|
1075
|
+
case "InvalidStateException": return [3, 4];
|
|
1076
|
+
case "com.amazonaws.acm#InvalidStateException": return [3, 4];
|
|
1077
|
+
case "LimitExceededException": return [3, 6];
|
|
1078
|
+
case "com.amazonaws.acm#LimitExceededException": return [3, 6];
|
|
1079
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1080
|
+
case "com.amazonaws.acm#ResourceNotFoundException": return [3, 8];
|
|
1081
|
+
}
|
|
1082
|
+
return [3, 10];
|
|
1083
|
+
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1084
|
+
case 3: throw _d.sent();
|
|
1085
|
+
case 4: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1086
|
+
case 5: throw _d.sent();
|
|
1087
|
+
case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1088
|
+
case 7: throw _d.sent();
|
|
1089
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1090
|
+
case 9: throw _d.sent();
|
|
1091
|
+
case 10:
|
|
1092
|
+
parsedBody = parsedOutput.body;
|
|
1093
|
+
throwDefaultError({
|
|
1094
|
+
output: output,
|
|
1095
|
+
parsedBody: parsedBody,
|
|
1096
|
+
exceptionCtor: __BaseException,
|
|
1097
|
+
errorCode: errorCode,
|
|
1098
|
+
});
|
|
1099
|
+
_d.label = 11;
|
|
1100
|
+
case 11: return [2];
|
|
1101
|
+
}
|
|
1102
|
+
});
|
|
1103
|
+
}); };
|
|
1104
|
+
var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1105
|
+
var body, deserialized, exception;
|
|
1106
|
+
return __generator(this, function (_a) {
|
|
1107
|
+
body = parsedOutput.body;
|
|
1108
|
+
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1109
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1110
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1111
|
+
});
|
|
1112
|
+
}); };
|
|
1113
|
+
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1114
|
+
var body, deserialized, exception;
|
|
1115
|
+
return __generator(this, function (_a) {
|
|
1116
|
+
body = parsedOutput.body;
|
|
1117
|
+
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
1118
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1119
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1120
|
+
});
|
|
1121
|
+
}); };
|
|
1122
|
+
var deserializeAws_json1_1InvalidArgsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1123
|
+
var body, deserialized, exception;
|
|
1124
|
+
return __generator(this, function (_a) {
|
|
1125
|
+
body = parsedOutput.body;
|
|
1126
|
+
deserialized = deserializeAws_json1_1InvalidArgsException(body, context);
|
|
1127
|
+
exception = new InvalidArgsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1128
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1129
|
+
});
|
|
1130
|
+
}); };
|
|
1131
|
+
var deserializeAws_json1_1InvalidArnExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1132
|
+
var body, deserialized, exception;
|
|
1133
|
+
return __generator(this, function (_a) {
|
|
1134
|
+
body = parsedOutput.body;
|
|
1135
|
+
deserialized = deserializeAws_json1_1InvalidArnException(body, context);
|
|
1136
|
+
exception = new InvalidArnException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1137
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1138
|
+
});
|
|
1139
|
+
}); };
|
|
1140
|
+
var deserializeAws_json1_1InvalidDomainValidationOptionsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1141
|
+
var body, deserialized, exception;
|
|
1142
|
+
return __generator(this, function (_a) {
|
|
1143
|
+
body = parsedOutput.body;
|
|
1144
|
+
deserialized = deserializeAws_json1_1InvalidDomainValidationOptionsException(body, context);
|
|
1145
|
+
exception = new InvalidDomainValidationOptionsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1146
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1147
|
+
});
|
|
1148
|
+
}); };
|
|
1149
|
+
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1150
|
+
var body, deserialized, exception;
|
|
1151
|
+
return __generator(this, function (_a) {
|
|
1152
|
+
body = parsedOutput.body;
|
|
1153
|
+
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
1154
|
+
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1155
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1156
|
+
});
|
|
1157
|
+
}); };
|
|
1158
|
+
var deserializeAws_json1_1InvalidStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1159
|
+
var body, deserialized, exception;
|
|
1160
|
+
return __generator(this, function (_a) {
|
|
1161
|
+
body = parsedOutput.body;
|
|
1162
|
+
deserialized = deserializeAws_json1_1InvalidStateException(body, context);
|
|
1163
|
+
exception = new InvalidStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1164
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1165
|
+
});
|
|
1166
|
+
}); };
|
|
1167
|
+
var deserializeAws_json1_1InvalidTagExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1168
|
+
var body, deserialized, exception;
|
|
1169
|
+
return __generator(this, function (_a) {
|
|
1170
|
+
body = parsedOutput.body;
|
|
1171
|
+
deserialized = deserializeAws_json1_1InvalidTagException(body, context);
|
|
1172
|
+
exception = new InvalidTagException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1173
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1174
|
+
});
|
|
1175
|
+
}); };
|
|
1176
|
+
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1177
|
+
var body, deserialized, exception;
|
|
1178
|
+
return __generator(this, function (_a) {
|
|
1179
|
+
body = parsedOutput.body;
|
|
1180
|
+
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1181
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1182
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1183
|
+
});
|
|
1184
|
+
}); };
|
|
1185
|
+
var deserializeAws_json1_1RequestInProgressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1186
|
+
var body, deserialized, exception;
|
|
1187
|
+
return __generator(this, function (_a) {
|
|
1188
|
+
body = parsedOutput.body;
|
|
1189
|
+
deserialized = deserializeAws_json1_1RequestInProgressException(body, context);
|
|
1190
|
+
exception = new RequestInProgressException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1191
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1192
|
+
});
|
|
1193
|
+
}); };
|
|
1194
|
+
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1195
|
+
var body, deserialized, exception;
|
|
1196
|
+
return __generator(this, function (_a) {
|
|
1197
|
+
body = parsedOutput.body;
|
|
1198
|
+
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
1199
|
+
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1200
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1201
|
+
});
|
|
1202
|
+
}); };
|
|
1203
|
+
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1204
|
+
var body, deserialized, exception;
|
|
1205
|
+
return __generator(this, function (_a) {
|
|
1206
|
+
body = parsedOutput.body;
|
|
1207
|
+
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1208
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1209
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1210
|
+
});
|
|
1211
|
+
}); };
|
|
1212
|
+
var deserializeAws_json1_1TagPolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1213
|
+
var body, deserialized, exception;
|
|
1214
|
+
return __generator(this, function (_a) {
|
|
1215
|
+
body = parsedOutput.body;
|
|
1216
|
+
deserialized = deserializeAws_json1_1TagPolicyException(body, context);
|
|
1217
|
+
exception = new TagPolicyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1218
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1219
|
+
});
|
|
1220
|
+
}); };
|
|
1221
|
+
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1222
|
+
var body, deserialized, exception;
|
|
1223
|
+
return __generator(this, function (_a) {
|
|
1224
|
+
body = parsedOutput.body;
|
|
1225
|
+
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
1226
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1227
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1228
|
+
});
|
|
1229
|
+
}); };
|
|
1230
|
+
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1231
|
+
var body, deserialized, exception;
|
|
1232
|
+
return __generator(this, function (_a) {
|
|
1233
|
+
body = parsedOutput.body;
|
|
1234
|
+
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1235
|
+
exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1236
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1237
|
+
});
|
|
1238
|
+
}); };
|
|
1239
|
+
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1240
|
+
var body, deserialized, exception;
|
|
1241
|
+
return __generator(this, function (_a) {
|
|
1242
|
+
body = parsedOutput.body;
|
|
1243
|
+
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
1244
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1245
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1246
|
+
});
|
|
1247
|
+
}); };
|
|
1248
|
+
var serializeAws_json1_1AddTagsToCertificateRequest = function (input, context) {
|
|
1249
|
+
return __assign(__assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
888
1250
|
};
|
|
889
|
-
|
|
890
|
-
return {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
}),
|
|
894
|
-
};
|
|
1251
|
+
var serializeAws_json1_1CertificateOptions = function (input, context) {
|
|
1252
|
+
return __assign({}, (input.CertificateTransparencyLoggingPreference != null && {
|
|
1253
|
+
CertificateTransparencyLoggingPreference: input.CertificateTransparencyLoggingPreference,
|
|
1254
|
+
}));
|
|
895
1255
|
};
|
|
896
|
-
|
|
1256
|
+
var serializeAws_json1_1CertificateStatuses = function (input, context) {
|
|
897
1257
|
return input
|
|
898
|
-
.filter((e)
|
|
899
|
-
.map((entry)
|
|
1258
|
+
.filter(function (e) { return e != null; })
|
|
1259
|
+
.map(function (entry) {
|
|
900
1260
|
return entry;
|
|
901
1261
|
});
|
|
902
1262
|
};
|
|
903
|
-
|
|
904
|
-
return {
|
|
905
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
906
|
-
};
|
|
1263
|
+
var serializeAws_json1_1DeleteCertificateRequest = function (input, context) {
|
|
1264
|
+
return __assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn }));
|
|
907
1265
|
};
|
|
908
|
-
|
|
909
|
-
return {
|
|
910
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
911
|
-
};
|
|
1266
|
+
var serializeAws_json1_1DescribeCertificateRequest = function (input, context) {
|
|
1267
|
+
return __assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn }));
|
|
912
1268
|
};
|
|
913
|
-
|
|
1269
|
+
var serializeAws_json1_1DomainList = function (input, context) {
|
|
914
1270
|
return input
|
|
915
|
-
.filter((e)
|
|
916
|
-
.map((entry)
|
|
1271
|
+
.filter(function (e) { return e != null; })
|
|
1272
|
+
.map(function (entry) {
|
|
917
1273
|
return entry;
|
|
918
1274
|
});
|
|
919
1275
|
};
|
|
920
|
-
|
|
921
|
-
return {
|
|
922
|
-
...(input.DomainName != null && { DomainName: input.DomainName }),
|
|
923
|
-
...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
|
|
924
|
-
};
|
|
1276
|
+
var serializeAws_json1_1DomainValidationOption = function (input, context) {
|
|
1277
|
+
return __assign(__assign({}, (input.DomainName != null && { DomainName: input.DomainName })), (input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }));
|
|
925
1278
|
};
|
|
926
|
-
|
|
1279
|
+
var serializeAws_json1_1DomainValidationOptionList = function (input, context) {
|
|
927
1280
|
return input
|
|
928
|
-
.filter((e)
|
|
929
|
-
.map((entry)
|
|
1281
|
+
.filter(function (e) { return e != null; })
|
|
1282
|
+
.map(function (entry) {
|
|
930
1283
|
return serializeAws_json1_1DomainValidationOption(entry, context);
|
|
931
1284
|
});
|
|
932
1285
|
};
|
|
933
|
-
|
|
934
|
-
return {
|
|
935
|
-
...(input.DaysBeforeExpiry != null && { DaysBeforeExpiry: input.DaysBeforeExpiry }),
|
|
936
|
-
};
|
|
1286
|
+
var serializeAws_json1_1ExpiryEventsConfiguration = function (input, context) {
|
|
1287
|
+
return __assign({}, (input.DaysBeforeExpiry != null && { DaysBeforeExpiry: input.DaysBeforeExpiry }));
|
|
937
1288
|
};
|
|
938
|
-
|
|
939
|
-
return {
|
|
940
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
941
|
-
...(input.Passphrase != null && { Passphrase: context.base64Encoder(input.Passphrase) }),
|
|
942
|
-
};
|
|
1289
|
+
var serializeAws_json1_1ExportCertificateRequest = function (input, context) {
|
|
1290
|
+
return __assign(__assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn })), (input.Passphrase != null && { Passphrase: context.base64Encoder(input.Passphrase) }));
|
|
943
1291
|
};
|
|
944
|
-
|
|
1292
|
+
var serializeAws_json1_1ExtendedKeyUsageFilterList = function (input, context) {
|
|
945
1293
|
return input
|
|
946
|
-
.filter((e)
|
|
947
|
-
.map((entry)
|
|
1294
|
+
.filter(function (e) { return e != null; })
|
|
1295
|
+
.map(function (entry) {
|
|
948
1296
|
return entry;
|
|
949
1297
|
});
|
|
950
1298
|
};
|
|
951
|
-
|
|
952
|
-
return {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
}),
|
|
956
|
-
...(input.keyTypes != null && { keyTypes: serializeAws_json1_1KeyAlgorithmList(input.keyTypes, context) }),
|
|
957
|
-
...(input.keyUsage != null && { keyUsage: serializeAws_json1_1KeyUsageFilterList(input.keyUsage, context) }),
|
|
958
|
-
};
|
|
1299
|
+
var serializeAws_json1_1Filters = function (input, context) {
|
|
1300
|
+
return __assign(__assign(__assign({}, (input.extendedKeyUsage != null && {
|
|
1301
|
+
extendedKeyUsage: serializeAws_json1_1ExtendedKeyUsageFilterList(input.extendedKeyUsage, context),
|
|
1302
|
+
})), (input.keyTypes != null && { keyTypes: serializeAws_json1_1KeyAlgorithmList(input.keyTypes, context) })), (input.keyUsage != null && { keyUsage: serializeAws_json1_1KeyUsageFilterList(input.keyUsage, context) }));
|
|
959
1303
|
};
|
|
960
|
-
|
|
961
|
-
return {
|
|
962
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
963
|
-
};
|
|
1304
|
+
var serializeAws_json1_1GetCertificateRequest = function (input, context) {
|
|
1305
|
+
return __assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn }));
|
|
964
1306
|
};
|
|
965
|
-
|
|
966
|
-
return {
|
|
967
|
-
...(input.Certificate != null && { Certificate: context.base64Encoder(input.Certificate) }),
|
|
968
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
969
|
-
...(input.CertificateChain != null && { CertificateChain: context.base64Encoder(input.CertificateChain) }),
|
|
970
|
-
...(input.PrivateKey != null && { PrivateKey: context.base64Encoder(input.PrivateKey) }),
|
|
971
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
972
|
-
};
|
|
1307
|
+
var serializeAws_json1_1ImportCertificateRequest = function (input, context) {
|
|
1308
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Certificate != null && { Certificate: context.base64Encoder(input.Certificate) })), (input.CertificateArn != null && { CertificateArn: input.CertificateArn })), (input.CertificateChain != null && { CertificateChain: context.base64Encoder(input.CertificateChain) })), (input.PrivateKey != null && { PrivateKey: context.base64Encoder(input.PrivateKey) })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
973
1309
|
};
|
|
974
|
-
|
|
1310
|
+
var serializeAws_json1_1KeyAlgorithmList = function (input, context) {
|
|
975
1311
|
return input
|
|
976
|
-
.filter((e)
|
|
977
|
-
.map((entry)
|
|
1312
|
+
.filter(function (e) { return e != null; })
|
|
1313
|
+
.map(function (entry) {
|
|
978
1314
|
return entry;
|
|
979
1315
|
});
|
|
980
1316
|
};
|
|
981
|
-
|
|
1317
|
+
var serializeAws_json1_1KeyUsageFilterList = function (input, context) {
|
|
982
1318
|
return input
|
|
983
|
-
.filter((e)
|
|
984
|
-
.map((entry)
|
|
1319
|
+
.filter(function (e) { return e != null; })
|
|
1320
|
+
.map(function (entry) {
|
|
985
1321
|
return entry;
|
|
986
1322
|
});
|
|
987
1323
|
};
|
|
988
|
-
|
|
989
|
-
return {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
}),
|
|
993
|
-
...(input.Includes != null && { Includes: serializeAws_json1_1Filters(input.Includes, context) }),
|
|
994
|
-
...(input.MaxItems != null && { MaxItems: input.MaxItems }),
|
|
995
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
996
|
-
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
997
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
998
|
-
};
|
|
1324
|
+
var serializeAws_json1_1ListCertificatesRequest = function (input, context) {
|
|
1325
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CertificateStatuses != null && {
|
|
1326
|
+
CertificateStatuses: serializeAws_json1_1CertificateStatuses(input.CertificateStatuses, context),
|
|
1327
|
+
})), (input.Includes != null && { Includes: serializeAws_json1_1Filters(input.Includes, context) })), (input.MaxItems != null && { MaxItems: input.MaxItems })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy })), (input.SortOrder != null && { SortOrder: input.SortOrder }));
|
|
999
1328
|
};
|
|
1000
|
-
|
|
1001
|
-
return {
|
|
1002
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1003
|
-
};
|
|
1329
|
+
var serializeAws_json1_1ListTagsForCertificateRequest = function (input, context) {
|
|
1330
|
+
return __assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn }));
|
|
1004
1331
|
};
|
|
1005
|
-
|
|
1006
|
-
return {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
}),
|
|
1010
|
-
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1011
|
-
};
|
|
1332
|
+
var serializeAws_json1_1PutAccountConfigurationRequest = function (input, context) {
|
|
1333
|
+
return __assign(__assign({}, (input.ExpiryEvents != null && {
|
|
1334
|
+
ExpiryEvents: serializeAws_json1_1ExpiryEventsConfiguration(input.ExpiryEvents, context),
|
|
1335
|
+
})), (input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }));
|
|
1012
1336
|
};
|
|
1013
|
-
|
|
1014
|
-
return {
|
|
1015
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1016
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1017
|
-
};
|
|
1337
|
+
var serializeAws_json1_1RemoveTagsFromCertificateRequest = function (input, context) {
|
|
1338
|
+
return __assign(__assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
1018
1339
|
};
|
|
1019
|
-
|
|
1020
|
-
return {
|
|
1021
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1022
|
-
};
|
|
1340
|
+
var serializeAws_json1_1RenewCertificateRequest = function (input, context) {
|
|
1341
|
+
return __assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn }));
|
|
1023
1342
|
};
|
|
1024
|
-
|
|
1025
|
-
return {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}),
|
|
1031
|
-
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1032
|
-
...(input.Options != null && { Options: serializeAws_json1_1CertificateOptions(input.Options, context) }),
|
|
1033
|
-
...(input.SubjectAlternativeNames != null && {
|
|
1034
|
-
SubjectAlternativeNames: serializeAws_json1_1DomainList(input.SubjectAlternativeNames, context),
|
|
1035
|
-
}),
|
|
1036
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1037
|
-
...(input.ValidationMethod != null && { ValidationMethod: input.ValidationMethod }),
|
|
1038
|
-
};
|
|
1343
|
+
var serializeAws_json1_1RequestCertificateRequest = function (input, context) {
|
|
1344
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn })), (input.DomainName != null && { DomainName: input.DomainName })), (input.DomainValidationOptions != null && {
|
|
1345
|
+
DomainValidationOptions: serializeAws_json1_1DomainValidationOptionList(input.DomainValidationOptions, context),
|
|
1346
|
+
})), (input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken })), (input.Options != null && { Options: serializeAws_json1_1CertificateOptions(input.Options, context) })), (input.SubjectAlternativeNames != null && {
|
|
1347
|
+
SubjectAlternativeNames: serializeAws_json1_1DomainList(input.SubjectAlternativeNames, context),
|
|
1348
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.ValidationMethod != null && { ValidationMethod: input.ValidationMethod }));
|
|
1039
1349
|
};
|
|
1040
|
-
|
|
1041
|
-
return {
|
|
1042
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1043
|
-
...(input.Domain != null && { Domain: input.Domain }),
|
|
1044
|
-
...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
|
|
1045
|
-
};
|
|
1350
|
+
var serializeAws_json1_1ResendValidationEmailRequest = function (input, context) {
|
|
1351
|
+
return __assign(__assign(__assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn })), (input.Domain != null && { Domain: input.Domain })), (input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }));
|
|
1046
1352
|
};
|
|
1047
|
-
|
|
1048
|
-
return {
|
|
1049
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1050
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1051
|
-
};
|
|
1353
|
+
var serializeAws_json1_1Tag = function (input, context) {
|
|
1354
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1052
1355
|
};
|
|
1053
|
-
|
|
1356
|
+
var serializeAws_json1_1TagList = function (input, context) {
|
|
1054
1357
|
return input
|
|
1055
|
-
.filter((e)
|
|
1056
|
-
.map((entry)
|
|
1358
|
+
.filter(function (e) { return e != null; })
|
|
1359
|
+
.map(function (entry) {
|
|
1057
1360
|
return serializeAws_json1_1Tag(entry, context);
|
|
1058
1361
|
});
|
|
1059
1362
|
};
|
|
1060
|
-
|
|
1061
|
-
return {
|
|
1062
|
-
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1063
|
-
...(input.Options != null && { Options: serializeAws_json1_1CertificateOptions(input.Options, context) }),
|
|
1064
|
-
};
|
|
1363
|
+
var serializeAws_json1_1UpdateCertificateOptionsRequest = function (input, context) {
|
|
1364
|
+
return __assign(__assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn })), (input.Options != null && { Options: serializeAws_json1_1CertificateOptions(input.Options, context) }));
|
|
1065
1365
|
};
|
|
1066
|
-
|
|
1366
|
+
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
1067
1367
|
return {
|
|
1068
1368
|
Message: __expectString(output.Message),
|
|
1069
1369
|
};
|
|
1070
1370
|
};
|
|
1071
|
-
|
|
1371
|
+
var deserializeAws_json1_1CertificateDetail = function (output, context) {
|
|
1072
1372
|
return {
|
|
1073
1373
|
CertificateArn: __expectString(output.CertificateArn),
|
|
1074
1374
|
CertificateAuthorityArn: __expectString(output.CertificateAuthorityArn),
|
|
@@ -1104,12 +1404,12 @@ const deserializeAws_json1_1CertificateDetail = (output, context) => {
|
|
|
1104
1404
|
Type: __expectString(output.Type),
|
|
1105
1405
|
};
|
|
1106
1406
|
};
|
|
1107
|
-
|
|
1407
|
+
var deserializeAws_json1_1CertificateOptions = function (output, context) {
|
|
1108
1408
|
return {
|
|
1109
1409
|
CertificateTransparencyLoggingPreference: __expectString(output.CertificateTransparencyLoggingPreference),
|
|
1110
1410
|
};
|
|
1111
1411
|
};
|
|
1112
|
-
|
|
1412
|
+
var deserializeAws_json1_1CertificateSummary = function (output, context) {
|
|
1113
1413
|
return {
|
|
1114
1414
|
CertificateArn: __expectString(output.CertificateArn),
|
|
1115
1415
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -1135,10 +1435,10 @@ const deserializeAws_json1_1CertificateSummary = (output, context) => {
|
|
|
1135
1435
|
Type: __expectString(output.Type),
|
|
1136
1436
|
};
|
|
1137
1437
|
};
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
.filter((e)
|
|
1141
|
-
.map((entry)
|
|
1438
|
+
var deserializeAws_json1_1CertificateSummaryList = function (output, context) {
|
|
1439
|
+
var retVal = (output || [])
|
|
1440
|
+
.filter(function (e) { return e != null; })
|
|
1441
|
+
.map(function (entry) {
|
|
1142
1442
|
if (entry === null) {
|
|
1143
1443
|
return null;
|
|
1144
1444
|
}
|
|
@@ -1146,20 +1446,20 @@ const deserializeAws_json1_1CertificateSummaryList = (output, context) => {
|
|
|
1146
1446
|
});
|
|
1147
1447
|
return retVal;
|
|
1148
1448
|
};
|
|
1149
|
-
|
|
1449
|
+
var deserializeAws_json1_1ConflictException = function (output, context) {
|
|
1150
1450
|
return {
|
|
1151
1451
|
message: __expectString(output.message),
|
|
1152
1452
|
};
|
|
1153
1453
|
};
|
|
1154
|
-
|
|
1454
|
+
var deserializeAws_json1_1DescribeCertificateResponse = function (output, context) {
|
|
1155
1455
|
return {
|
|
1156
1456
|
Certificate: output.Certificate != null ? deserializeAws_json1_1CertificateDetail(output.Certificate, context) : undefined,
|
|
1157
1457
|
};
|
|
1158
1458
|
};
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
.filter((e)
|
|
1162
|
-
.map((entry)
|
|
1459
|
+
var deserializeAws_json1_1DomainList = function (output, context) {
|
|
1460
|
+
var retVal = (output || [])
|
|
1461
|
+
.filter(function (e) { return e != null; })
|
|
1462
|
+
.map(function (entry) {
|
|
1163
1463
|
if (entry === null) {
|
|
1164
1464
|
return null;
|
|
1165
1465
|
}
|
|
@@ -1167,7 +1467,7 @@ const deserializeAws_json1_1DomainList = (output, context) => {
|
|
|
1167
1467
|
});
|
|
1168
1468
|
return retVal;
|
|
1169
1469
|
};
|
|
1170
|
-
|
|
1470
|
+
var deserializeAws_json1_1DomainValidation = function (output, context) {
|
|
1171
1471
|
return {
|
|
1172
1472
|
DomainName: __expectString(output.DomainName),
|
|
1173
1473
|
ResourceRecord: output.ResourceRecord != null ? deserializeAws_json1_1ResourceRecord(output.ResourceRecord, context) : undefined,
|
|
@@ -1179,10 +1479,10 @@ const deserializeAws_json1_1DomainValidation = (output, context) => {
|
|
|
1179
1479
|
ValidationStatus: __expectString(output.ValidationStatus),
|
|
1180
1480
|
};
|
|
1181
1481
|
};
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
.filter((e)
|
|
1185
|
-
.map((entry)
|
|
1482
|
+
var deserializeAws_json1_1DomainValidationList = function (output, context) {
|
|
1483
|
+
var retVal = (output || [])
|
|
1484
|
+
.filter(function (e) { return e != null; })
|
|
1485
|
+
.map(function (entry) {
|
|
1186
1486
|
if (entry === null) {
|
|
1187
1487
|
return null;
|
|
1188
1488
|
}
|
|
@@ -1190,28 +1490,28 @@ const deserializeAws_json1_1DomainValidationList = (output, context) => {
|
|
|
1190
1490
|
});
|
|
1191
1491
|
return retVal;
|
|
1192
1492
|
};
|
|
1193
|
-
|
|
1493
|
+
var deserializeAws_json1_1ExpiryEventsConfiguration = function (output, context) {
|
|
1194
1494
|
return {
|
|
1195
1495
|
DaysBeforeExpiry: __expectInt32(output.DaysBeforeExpiry),
|
|
1196
1496
|
};
|
|
1197
1497
|
};
|
|
1198
|
-
|
|
1498
|
+
var deserializeAws_json1_1ExportCertificateResponse = function (output, context) {
|
|
1199
1499
|
return {
|
|
1200
1500
|
Certificate: __expectString(output.Certificate),
|
|
1201
1501
|
CertificateChain: __expectString(output.CertificateChain),
|
|
1202
1502
|
PrivateKey: __expectString(output.PrivateKey),
|
|
1203
1503
|
};
|
|
1204
1504
|
};
|
|
1205
|
-
|
|
1505
|
+
var deserializeAws_json1_1ExtendedKeyUsage = function (output, context) {
|
|
1206
1506
|
return {
|
|
1207
1507
|
Name: __expectString(output.Name),
|
|
1208
1508
|
OID: __expectString(output.OID),
|
|
1209
1509
|
};
|
|
1210
1510
|
};
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
.filter((e)
|
|
1214
|
-
.map((entry)
|
|
1511
|
+
var deserializeAws_json1_1ExtendedKeyUsageList = function (output, context) {
|
|
1512
|
+
var retVal = (output || [])
|
|
1513
|
+
.filter(function (e) { return e != null; })
|
|
1514
|
+
.map(function (entry) {
|
|
1215
1515
|
if (entry === null) {
|
|
1216
1516
|
return null;
|
|
1217
1517
|
}
|
|
@@ -1219,10 +1519,10 @@ const deserializeAws_json1_1ExtendedKeyUsageList = (output, context) => {
|
|
|
1219
1519
|
});
|
|
1220
1520
|
return retVal;
|
|
1221
1521
|
};
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
.filter((e)
|
|
1225
|
-
.map((entry)
|
|
1522
|
+
var deserializeAws_json1_1ExtendedKeyUsageNames = function (output, context) {
|
|
1523
|
+
var retVal = (output || [])
|
|
1524
|
+
.filter(function (e) { return e != null; })
|
|
1525
|
+
.map(function (entry) {
|
|
1226
1526
|
if (entry === null) {
|
|
1227
1527
|
return null;
|
|
1228
1528
|
}
|
|
@@ -1230,28 +1530,28 @@ const deserializeAws_json1_1ExtendedKeyUsageNames = (output, context) => {
|
|
|
1230
1530
|
});
|
|
1231
1531
|
return retVal;
|
|
1232
1532
|
};
|
|
1233
|
-
|
|
1533
|
+
var deserializeAws_json1_1GetAccountConfigurationResponse = function (output, context) {
|
|
1234
1534
|
return {
|
|
1235
1535
|
ExpiryEvents: output.ExpiryEvents != null
|
|
1236
1536
|
? deserializeAws_json1_1ExpiryEventsConfiguration(output.ExpiryEvents, context)
|
|
1237
1537
|
: undefined,
|
|
1238
1538
|
};
|
|
1239
1539
|
};
|
|
1240
|
-
|
|
1540
|
+
var deserializeAws_json1_1GetCertificateResponse = function (output, context) {
|
|
1241
1541
|
return {
|
|
1242
1542
|
Certificate: __expectString(output.Certificate),
|
|
1243
1543
|
CertificateChain: __expectString(output.CertificateChain),
|
|
1244
1544
|
};
|
|
1245
1545
|
};
|
|
1246
|
-
|
|
1546
|
+
var deserializeAws_json1_1ImportCertificateResponse = function (output, context) {
|
|
1247
1547
|
return {
|
|
1248
1548
|
CertificateArn: __expectString(output.CertificateArn),
|
|
1249
1549
|
};
|
|
1250
1550
|
};
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
.filter((e)
|
|
1254
|
-
.map((entry)
|
|
1551
|
+
var deserializeAws_json1_1InUseList = function (output, context) {
|
|
1552
|
+
var retVal = (output || [])
|
|
1553
|
+
.filter(function (e) { return e != null; })
|
|
1554
|
+
.map(function (entry) {
|
|
1255
1555
|
if (entry === null) {
|
|
1256
1556
|
return null;
|
|
1257
1557
|
}
|
|
@@ -1259,45 +1559,45 @@ const deserializeAws_json1_1InUseList = (output, context) => {
|
|
|
1259
1559
|
});
|
|
1260
1560
|
return retVal;
|
|
1261
1561
|
};
|
|
1262
|
-
|
|
1562
|
+
var deserializeAws_json1_1InvalidArgsException = function (output, context) {
|
|
1263
1563
|
return {
|
|
1264
1564
|
message: __expectString(output.message),
|
|
1265
1565
|
};
|
|
1266
1566
|
};
|
|
1267
|
-
|
|
1567
|
+
var deserializeAws_json1_1InvalidArnException = function (output, context) {
|
|
1268
1568
|
return {
|
|
1269
1569
|
message: __expectString(output.message),
|
|
1270
1570
|
};
|
|
1271
1571
|
};
|
|
1272
|
-
|
|
1572
|
+
var deserializeAws_json1_1InvalidDomainValidationOptionsException = function (output, context) {
|
|
1273
1573
|
return {
|
|
1274
1574
|
message: __expectString(output.message),
|
|
1275
1575
|
};
|
|
1276
1576
|
};
|
|
1277
|
-
|
|
1577
|
+
var deserializeAws_json1_1InvalidParameterException = function (output, context) {
|
|
1278
1578
|
return {
|
|
1279
1579
|
message: __expectString(output.message),
|
|
1280
1580
|
};
|
|
1281
1581
|
};
|
|
1282
|
-
|
|
1582
|
+
var deserializeAws_json1_1InvalidStateException = function (output, context) {
|
|
1283
1583
|
return {
|
|
1284
1584
|
message: __expectString(output.message),
|
|
1285
1585
|
};
|
|
1286
1586
|
};
|
|
1287
|
-
|
|
1587
|
+
var deserializeAws_json1_1InvalidTagException = function (output, context) {
|
|
1288
1588
|
return {
|
|
1289
1589
|
message: __expectString(output.message),
|
|
1290
1590
|
};
|
|
1291
1591
|
};
|
|
1292
|
-
|
|
1592
|
+
var deserializeAws_json1_1KeyUsage = function (output, context) {
|
|
1293
1593
|
return {
|
|
1294
1594
|
Name: __expectString(output.Name),
|
|
1295
1595
|
};
|
|
1296
1596
|
};
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
.filter((e)
|
|
1300
|
-
.map((entry)
|
|
1597
|
+
var deserializeAws_json1_1KeyUsageList = function (output, context) {
|
|
1598
|
+
var retVal = (output || [])
|
|
1599
|
+
.filter(function (e) { return e != null; })
|
|
1600
|
+
.map(function (entry) {
|
|
1301
1601
|
if (entry === null) {
|
|
1302
1602
|
return null;
|
|
1303
1603
|
}
|
|
@@ -1305,10 +1605,10 @@ const deserializeAws_json1_1KeyUsageList = (output, context) => {
|
|
|
1305
1605
|
});
|
|
1306
1606
|
return retVal;
|
|
1307
1607
|
};
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
.filter((e)
|
|
1311
|
-
.map((entry)
|
|
1608
|
+
var deserializeAws_json1_1KeyUsageNames = function (output, context) {
|
|
1609
|
+
var retVal = (output || [])
|
|
1610
|
+
.filter(function (e) { return e != null; })
|
|
1611
|
+
.map(function (entry) {
|
|
1312
1612
|
if (entry === null) {
|
|
1313
1613
|
return null;
|
|
1314
1614
|
}
|
|
@@ -1316,12 +1616,12 @@ const deserializeAws_json1_1KeyUsageNames = (output, context) => {
|
|
|
1316
1616
|
});
|
|
1317
1617
|
return retVal;
|
|
1318
1618
|
};
|
|
1319
|
-
|
|
1619
|
+
var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
1320
1620
|
return {
|
|
1321
1621
|
message: __expectString(output.message),
|
|
1322
1622
|
};
|
|
1323
1623
|
};
|
|
1324
|
-
|
|
1624
|
+
var deserializeAws_json1_1ListCertificatesResponse = function (output, context) {
|
|
1325
1625
|
return {
|
|
1326
1626
|
CertificateSummaryList: output.CertificateSummaryList != null
|
|
1327
1627
|
? deserializeAws_json1_1CertificateSummaryList(output.CertificateSummaryList, context)
|
|
@@ -1329,12 +1629,12 @@ const deserializeAws_json1_1ListCertificatesResponse = (output, context) => {
|
|
|
1329
1629
|
NextToken: __expectString(output.NextToken),
|
|
1330
1630
|
};
|
|
1331
1631
|
};
|
|
1332
|
-
|
|
1632
|
+
var deserializeAws_json1_1ListTagsForCertificateResponse = function (output, context) {
|
|
1333
1633
|
return {
|
|
1334
1634
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
1335
1635
|
};
|
|
1336
1636
|
};
|
|
1337
|
-
|
|
1637
|
+
var deserializeAws_json1_1RenewalSummary = function (output, context) {
|
|
1338
1638
|
return {
|
|
1339
1639
|
DomainValidationOptions: output.DomainValidationOptions != null
|
|
1340
1640
|
? deserializeAws_json1_1DomainValidationList(output.DomainValidationOptions, context)
|
|
@@ -1344,43 +1644,43 @@ const deserializeAws_json1_1RenewalSummary = (output, context) => {
|
|
|
1344
1644
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
1345
1645
|
};
|
|
1346
1646
|
};
|
|
1347
|
-
|
|
1647
|
+
var deserializeAws_json1_1RequestCertificateResponse = function (output, context) {
|
|
1348
1648
|
return {
|
|
1349
1649
|
CertificateArn: __expectString(output.CertificateArn),
|
|
1350
1650
|
};
|
|
1351
1651
|
};
|
|
1352
|
-
|
|
1652
|
+
var deserializeAws_json1_1RequestInProgressException = function (output, context) {
|
|
1353
1653
|
return {
|
|
1354
1654
|
message: __expectString(output.message),
|
|
1355
1655
|
};
|
|
1356
1656
|
};
|
|
1357
|
-
|
|
1657
|
+
var deserializeAws_json1_1ResourceInUseException = function (output, context) {
|
|
1358
1658
|
return {
|
|
1359
1659
|
message: __expectString(output.message),
|
|
1360
1660
|
};
|
|
1361
1661
|
};
|
|
1362
|
-
|
|
1662
|
+
var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
|
|
1363
1663
|
return {
|
|
1364
1664
|
message: __expectString(output.message),
|
|
1365
1665
|
};
|
|
1366
1666
|
};
|
|
1367
|
-
|
|
1667
|
+
var deserializeAws_json1_1ResourceRecord = function (output, context) {
|
|
1368
1668
|
return {
|
|
1369
1669
|
Name: __expectString(output.Name),
|
|
1370
1670
|
Type: __expectString(output.Type),
|
|
1371
1671
|
Value: __expectString(output.Value),
|
|
1372
1672
|
};
|
|
1373
1673
|
};
|
|
1374
|
-
|
|
1674
|
+
var deserializeAws_json1_1Tag = function (output, context) {
|
|
1375
1675
|
return {
|
|
1376
1676
|
Key: __expectString(output.Key),
|
|
1377
1677
|
Value: __expectString(output.Value),
|
|
1378
1678
|
};
|
|
1379
1679
|
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
.filter((e)
|
|
1383
|
-
.map((entry)
|
|
1680
|
+
var deserializeAws_json1_1TagList = function (output, context) {
|
|
1681
|
+
var retVal = (output || [])
|
|
1682
|
+
.filter(function (e) { return e != null; })
|
|
1683
|
+
.map(function (entry) {
|
|
1384
1684
|
if (entry === null) {
|
|
1385
1685
|
return null;
|
|
1386
1686
|
}
|
|
@@ -1388,25 +1688,25 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
1388
1688
|
});
|
|
1389
1689
|
return retVal;
|
|
1390
1690
|
};
|
|
1391
|
-
|
|
1691
|
+
var deserializeAws_json1_1TagPolicyException = function (output, context) {
|
|
1392
1692
|
return {
|
|
1393
1693
|
message: __expectString(output.message),
|
|
1394
1694
|
};
|
|
1395
1695
|
};
|
|
1396
|
-
|
|
1696
|
+
var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
1397
1697
|
return {
|
|
1398
1698
|
message: __expectString(output.message),
|
|
1399
1699
|
};
|
|
1400
1700
|
};
|
|
1401
|
-
|
|
1701
|
+
var deserializeAws_json1_1TooManyTagsException = function (output, context) {
|
|
1402
1702
|
return {
|
|
1403
1703
|
message: __expectString(output.message),
|
|
1404
1704
|
};
|
|
1405
1705
|
};
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
.filter((e)
|
|
1409
|
-
.map((entry)
|
|
1706
|
+
var deserializeAws_json1_1ValidationEmailList = function (output, context) {
|
|
1707
|
+
var retVal = (output || [])
|
|
1708
|
+
.filter(function (e) { return e != null; })
|
|
1709
|
+
.map(function (entry) {
|
|
1410
1710
|
if (entry === null) {
|
|
1411
1711
|
return null;
|
|
1412
1712
|
}
|
|
@@ -1414,57 +1714,80 @@ const deserializeAws_json1_1ValidationEmailList = (output, context) => {
|
|
|
1414
1714
|
});
|
|
1415
1715
|
return retVal;
|
|
1416
1716
|
};
|
|
1417
|
-
|
|
1717
|
+
var deserializeAws_json1_1ValidationException = function (output, context) {
|
|
1418
1718
|
return {
|
|
1419
1719
|
message: __expectString(output.message),
|
|
1420
1720
|
};
|
|
1421
1721
|
};
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1722
|
+
var deserializeMetadata = function (output) {
|
|
1723
|
+
var _a, _b;
|
|
1724
|
+
return ({
|
|
1725
|
+
httpStatusCode: output.statusCode,
|
|
1726
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1727
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1728
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1729
|
+
});
|
|
1730
|
+
};
|
|
1731
|
+
var collectBody = function (streamBody, context) {
|
|
1732
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1429
1733
|
if (streamBody instanceof Uint8Array) {
|
|
1430
1734
|
return Promise.resolve(streamBody);
|
|
1431
1735
|
}
|
|
1432
1736
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1433
1737
|
};
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1738
|
+
var collectBodyString = function (streamBody, context) {
|
|
1739
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1740
|
+
};
|
|
1741
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1742
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
1743
|
+
return __generator(this, function (_c) {
|
|
1744
|
+
switch (_c.label) {
|
|
1745
|
+
case 0: return [4, context.endpoint()];
|
|
1746
|
+
case 1:
|
|
1747
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1748
|
+
contents = {
|
|
1749
|
+
protocol: protocol,
|
|
1750
|
+
hostname: hostname,
|
|
1751
|
+
port: port,
|
|
1752
|
+
method: "POST",
|
|
1753
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1754
|
+
headers: headers,
|
|
1755
|
+
};
|
|
1756
|
+
if (resolvedHostname !== undefined) {
|
|
1757
|
+
contents.hostname = resolvedHostname;
|
|
1758
|
+
}
|
|
1759
|
+
if (body !== undefined) {
|
|
1760
|
+
contents.body = body;
|
|
1761
|
+
}
|
|
1762
|
+
return [2, new __HttpRequest(contents)];
|
|
1763
|
+
}
|
|
1764
|
+
});
|
|
1765
|
+
}); };
|
|
1766
|
+
var parseBody = function (streamBody, context) {
|
|
1767
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1768
|
+
if (encoded.length) {
|
|
1769
|
+
return JSON.parse(encoded);
|
|
1770
|
+
}
|
|
1771
|
+
return {};
|
|
1772
|
+
});
|
|
1452
1773
|
};
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1774
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1775
|
+
var value;
|
|
1776
|
+
var _a;
|
|
1777
|
+
return __generator(this, function (_b) {
|
|
1778
|
+
switch (_b.label) {
|
|
1779
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
1780
|
+
case 1:
|
|
1781
|
+
value = _b.sent();
|
|
1782
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1783
|
+
return [2, value];
|
|
1784
|
+
}
|
|
1785
|
+
});
|
|
1786
|
+
}); };
|
|
1787
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
1788
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1789
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
1790
|
+
var cleanValue = rawValue;
|
|
1468
1791
|
if (typeof cleanValue === "number") {
|
|
1469
1792
|
cleanValue = cleanValue.toString();
|
|
1470
1793
|
}
|
|
@@ -1479,7 +1802,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1479
1802
|
}
|
|
1480
1803
|
return cleanValue;
|
|
1481
1804
|
};
|
|
1482
|
-
|
|
1805
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1483
1806
|
if (headerKey !== undefined) {
|
|
1484
1807
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1485
1808
|
}
|