@aws-sdk/client-acm-pca 3.185.0 → 3.188.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist-es/ACMPCA.js +94 -101
- package/dist-es/ACMPCAClient.js +22 -28
- package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +21 -28
- package/dist-es/commands/CreateCertificateAuthorityCommand.js +21 -28
- package/dist-es/commands/CreatePermissionCommand.js +22 -29
- package/dist-es/commands/DeleteCertificateAuthorityCommand.js +22 -29
- package/dist-es/commands/DeletePermissionCommand.js +22 -29
- package/dist-es/commands/DeletePolicyCommand.js +22 -29
- package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +21 -28
- package/dist-es/commands/DescribeCertificateAuthorityCommand.js +21 -28
- package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +21 -28
- package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +21 -28
- package/dist-es/commands/GetCertificateCommand.js +21 -28
- package/dist-es/commands/GetPolicyCommand.js +21 -28
- package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +22 -29
- package/dist-es/commands/IssueCertificateCommand.js +21 -28
- package/dist-es/commands/ListCertificateAuthoritiesCommand.js +21 -28
- package/dist-es/commands/ListPermissionsCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/PutPolicyCommand.js +22 -29
- package/dist-es/commands/RestoreCertificateAuthorityCommand.js +22 -29
- package/dist-es/commands/RevokeCertificateCommand.js +22 -29
- package/dist-es/commands/TagCertificateAuthorityCommand.js +22 -29
- package/dist-es/commands/UntagCertificateAuthorityCommand.js +22 -29
- package/dist-es/commands/UpdateCertificateAuthorityCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ACMPCAServiceException.js +5 -10
- package/dist-es/models/models_0.js +386 -269
- package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js +25 -68
- package/dist-es/pagination/ListPermissionsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1817 -2238
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForAuditReportCreated.js +36 -56
- package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js +23 -42
- package/dist-es/waiters/waitForCertificateIssued.js +23 -42
- package/package.json +34 -34
|
@@ -1,2199 +1,1801 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ACMPCAServiceException as __BaseException } from "../models/ACMPCAServiceException";
|
|
5
4
|
import { CertificateMismatchException, ConcurrentModificationException, InvalidArgsException, InvalidArnException, InvalidNextTokenException, InvalidPolicyException, InvalidRequestException, InvalidStateException, InvalidTagException, LimitExceededException, LockoutPreventedException, MalformedCertificateException, MalformedCSRException, PermissionAlreadyExistsException, RequestAlreadyProcessedException, RequestFailedException, RequestInProgressException, ResourceNotFoundException, TooManyTagsException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
export
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
parsedBody
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
return
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
errorCode
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
return
|
|
864
|
-
switch (_d.label) {
|
|
865
|
-
case 0:
|
|
866
|
-
_a = [__assign({}, output)];
|
|
867
|
-
_c = {};
|
|
868
|
-
return [4, parseErrorBody(output.body, context)];
|
|
869
|
-
case 1:
|
|
870
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
871
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
-
_b = errorCode;
|
|
873
|
-
switch (_b) {
|
|
874
|
-
case "InvalidArnException": return [3, 2];
|
|
875
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
876
|
-
case "InvalidStateException": return [3, 4];
|
|
877
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
878
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
879
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 6];
|
|
880
|
-
}
|
|
881
|
-
return [3, 8];
|
|
882
|
-
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
883
|
-
case 3: throw _d.sent();
|
|
884
|
-
case 4: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
885
|
-
case 5: throw _d.sent();
|
|
886
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
887
|
-
case 7: throw _d.sent();
|
|
888
|
-
case 8:
|
|
889
|
-
parsedBody = parsedOutput.body;
|
|
890
|
-
throwDefaultError({
|
|
891
|
-
output: output,
|
|
892
|
-
parsedBody: parsedBody,
|
|
893
|
-
exceptionCtor: __BaseException,
|
|
894
|
-
errorCode: errorCode,
|
|
895
|
-
});
|
|
896
|
-
_d.label = 9;
|
|
897
|
-
case 9: return [2];
|
|
898
|
-
}
|
|
899
|
-
});
|
|
900
|
-
}); };
|
|
901
|
-
export var deserializeAws_json1_1GetCertificateAuthorityCsrCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
902
|
-
var data, contents, response;
|
|
903
|
-
return __generator(this, function (_a) {
|
|
904
|
-
switch (_a.label) {
|
|
905
|
-
case 0:
|
|
906
|
-
if (output.statusCode >= 300) {
|
|
907
|
-
return [2, deserializeAws_json1_1GetCertificateAuthorityCsrCommandError(output, context)];
|
|
908
|
-
}
|
|
909
|
-
return [4, parseBody(output.body, context)];
|
|
910
|
-
case 1:
|
|
911
|
-
data = _a.sent();
|
|
912
|
-
contents = {};
|
|
913
|
-
contents = deserializeAws_json1_1GetCertificateAuthorityCsrResponse(data, context);
|
|
914
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
915
|
-
return [2, Promise.resolve(response)];
|
|
916
|
-
}
|
|
917
|
-
});
|
|
918
|
-
}); };
|
|
919
|
-
var deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
920
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
921
|
-
var _c;
|
|
922
|
-
return __generator(this, function (_d) {
|
|
923
|
-
switch (_d.label) {
|
|
924
|
-
case 0:
|
|
925
|
-
_a = [__assign({}, output)];
|
|
926
|
-
_c = {};
|
|
927
|
-
return [4, parseErrorBody(output.body, context)];
|
|
928
|
-
case 1:
|
|
929
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
930
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
-
_b = errorCode;
|
|
932
|
-
switch (_b) {
|
|
933
|
-
case "InvalidArnException": return [3, 2];
|
|
934
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
935
|
-
case "InvalidStateException": return [3, 4];
|
|
936
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
937
|
-
case "RequestFailedException": return [3, 6];
|
|
938
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3, 6];
|
|
939
|
-
case "RequestInProgressException": return [3, 8];
|
|
940
|
-
case "com.amazonaws.acmpca#RequestInProgressException": return [3, 8];
|
|
941
|
-
case "ResourceNotFoundException": return [3, 10];
|
|
942
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 10];
|
|
943
|
-
}
|
|
944
|
-
return [3, 12];
|
|
945
|
-
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
946
|
-
case 3: throw _d.sent();
|
|
947
|
-
case 4: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
948
|
-
case 5: throw _d.sent();
|
|
949
|
-
case 6: return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
950
|
-
case 7: throw _d.sent();
|
|
951
|
-
case 8: return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
952
|
-
case 9: throw _d.sent();
|
|
953
|
-
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
954
|
-
case 11: throw _d.sent();
|
|
955
|
-
case 12:
|
|
956
|
-
parsedBody = parsedOutput.body;
|
|
957
|
-
throwDefaultError({
|
|
958
|
-
output: output,
|
|
959
|
-
parsedBody: parsedBody,
|
|
960
|
-
exceptionCtor: __BaseException,
|
|
961
|
-
errorCode: errorCode,
|
|
962
|
-
});
|
|
963
|
-
_d.label = 13;
|
|
964
|
-
case 13: return [2];
|
|
965
|
-
}
|
|
966
|
-
});
|
|
967
|
-
}); };
|
|
968
|
-
export var deserializeAws_json1_1GetPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
969
|
-
var data, contents, response;
|
|
970
|
-
return __generator(this, function (_a) {
|
|
971
|
-
switch (_a.label) {
|
|
972
|
-
case 0:
|
|
973
|
-
if (output.statusCode >= 300) {
|
|
974
|
-
return [2, deserializeAws_json1_1GetPolicyCommandError(output, context)];
|
|
975
|
-
}
|
|
976
|
-
return [4, parseBody(output.body, context)];
|
|
977
|
-
case 1:
|
|
978
|
-
data = _a.sent();
|
|
979
|
-
contents = {};
|
|
980
|
-
contents = deserializeAws_json1_1GetPolicyResponse(data, context);
|
|
981
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
982
|
-
return [2, Promise.resolve(response)];
|
|
983
|
-
}
|
|
984
|
-
});
|
|
985
|
-
}); };
|
|
986
|
-
var deserializeAws_json1_1GetPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
987
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
988
|
-
var _c;
|
|
989
|
-
return __generator(this, function (_d) {
|
|
990
|
-
switch (_d.label) {
|
|
991
|
-
case 0:
|
|
992
|
-
_a = [__assign({}, output)];
|
|
993
|
-
_c = {};
|
|
994
|
-
return [4, parseErrorBody(output.body, context)];
|
|
995
|
-
case 1:
|
|
996
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
997
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
|
-
_b = errorCode;
|
|
999
|
-
switch (_b) {
|
|
1000
|
-
case "InvalidArnException": return [3, 2];
|
|
1001
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1002
|
-
case "InvalidStateException": return [3, 4];
|
|
1003
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1004
|
-
case "RequestFailedException": return [3, 6];
|
|
1005
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3, 6];
|
|
1006
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1007
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 8];
|
|
1008
|
-
}
|
|
1009
|
-
return [3, 10];
|
|
1010
|
-
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1011
|
-
case 3: throw _d.sent();
|
|
1012
|
-
case 4: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1013
|
-
case 5: throw _d.sent();
|
|
1014
|
-
case 6: return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1015
|
-
case 7: throw _d.sent();
|
|
1016
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1017
|
-
case 9: throw _d.sent();
|
|
1018
|
-
case 10:
|
|
1019
|
-
parsedBody = parsedOutput.body;
|
|
1020
|
-
throwDefaultError({
|
|
1021
|
-
output: output,
|
|
1022
|
-
parsedBody: parsedBody,
|
|
1023
|
-
exceptionCtor: __BaseException,
|
|
1024
|
-
errorCode: errorCode,
|
|
1025
|
-
});
|
|
1026
|
-
_d.label = 11;
|
|
1027
|
-
case 11: return [2];
|
|
1028
|
-
}
|
|
1029
|
-
});
|
|
1030
|
-
}); };
|
|
1031
|
-
export var deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1032
|
-
var response;
|
|
1033
|
-
return __generator(this, function (_a) {
|
|
1034
|
-
switch (_a.label) {
|
|
1035
|
-
case 0:
|
|
1036
|
-
if (output.statusCode >= 300) {
|
|
1037
|
-
return [2, deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError(output, context)];
|
|
1038
|
-
}
|
|
1039
|
-
return [4, collectBody(output.body, context)];
|
|
1040
|
-
case 1:
|
|
1041
|
-
_a.sent();
|
|
1042
|
-
response = {
|
|
1043
|
-
$metadata: deserializeMetadata(output),
|
|
1044
|
-
};
|
|
1045
|
-
return [2, Promise.resolve(response)];
|
|
1046
|
-
}
|
|
1047
|
-
});
|
|
1048
|
-
}); };
|
|
1049
|
-
var deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1050
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1051
|
-
var _c;
|
|
1052
|
-
return __generator(this, function (_d) {
|
|
1053
|
-
switch (_d.label) {
|
|
1054
|
-
case 0:
|
|
1055
|
-
_a = [__assign({}, output)];
|
|
1056
|
-
_c = {};
|
|
1057
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1058
|
-
case 1:
|
|
1059
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1060
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
-
_b = errorCode;
|
|
1062
|
-
switch (_b) {
|
|
1063
|
-
case "CertificateMismatchException": return [3, 2];
|
|
1064
|
-
case "com.amazonaws.acmpca#CertificateMismatchException": return [3, 2];
|
|
1065
|
-
case "ConcurrentModificationException": return [3, 4];
|
|
1066
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 4];
|
|
1067
|
-
case "InvalidArnException": return [3, 6];
|
|
1068
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 6];
|
|
1069
|
-
case "InvalidRequestException": return [3, 8];
|
|
1070
|
-
case "com.amazonaws.acmpca#InvalidRequestException": return [3, 8];
|
|
1071
|
-
case "InvalidStateException": return [3, 10];
|
|
1072
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 10];
|
|
1073
|
-
case "MalformedCertificateException": return [3, 12];
|
|
1074
|
-
case "com.amazonaws.acmpca#MalformedCertificateException": return [3, 12];
|
|
1075
|
-
case "RequestFailedException": return [3, 14];
|
|
1076
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3, 14];
|
|
1077
|
-
case "RequestInProgressException": return [3, 16];
|
|
1078
|
-
case "com.amazonaws.acmpca#RequestInProgressException": return [3, 16];
|
|
1079
|
-
case "ResourceNotFoundException": return [3, 18];
|
|
1080
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 18];
|
|
1081
|
-
}
|
|
1082
|
-
return [3, 20];
|
|
1083
|
-
case 2: return [4, deserializeAws_json1_1CertificateMismatchExceptionResponse(parsedOutput, context)];
|
|
1084
|
-
case 3: throw _d.sent();
|
|
1085
|
-
case 4: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1086
|
-
case 5: throw _d.sent();
|
|
1087
|
-
case 6: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1088
|
-
case 7: throw _d.sent();
|
|
1089
|
-
case 8: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1090
|
-
case 9: throw _d.sent();
|
|
1091
|
-
case 10: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1092
|
-
case 11: throw _d.sent();
|
|
1093
|
-
case 12: return [4, deserializeAws_json1_1MalformedCertificateExceptionResponse(parsedOutput, context)];
|
|
1094
|
-
case 13: throw _d.sent();
|
|
1095
|
-
case 14: return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1096
|
-
case 15: throw _d.sent();
|
|
1097
|
-
case 16: return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
1098
|
-
case 17: throw _d.sent();
|
|
1099
|
-
case 18: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1100
|
-
case 19: throw _d.sent();
|
|
1101
|
-
case 20:
|
|
1102
|
-
parsedBody = parsedOutput.body;
|
|
1103
|
-
throwDefaultError({
|
|
1104
|
-
output: output,
|
|
1105
|
-
parsedBody: parsedBody,
|
|
1106
|
-
exceptionCtor: __BaseException,
|
|
1107
|
-
errorCode: errorCode,
|
|
1108
|
-
});
|
|
1109
|
-
_d.label = 21;
|
|
1110
|
-
case 21: return [2];
|
|
1111
|
-
}
|
|
1112
|
-
});
|
|
1113
|
-
}); };
|
|
1114
|
-
export var deserializeAws_json1_1IssueCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1115
|
-
var data, contents, response;
|
|
1116
|
-
return __generator(this, function (_a) {
|
|
1117
|
-
switch (_a.label) {
|
|
1118
|
-
case 0:
|
|
1119
|
-
if (output.statusCode >= 300) {
|
|
1120
|
-
return [2, deserializeAws_json1_1IssueCertificateCommandError(output, context)];
|
|
1121
|
-
}
|
|
1122
|
-
return [4, parseBody(output.body, context)];
|
|
1123
|
-
case 1:
|
|
1124
|
-
data = _a.sent();
|
|
1125
|
-
contents = {};
|
|
1126
|
-
contents = deserializeAws_json1_1IssueCertificateResponse(data, context);
|
|
1127
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1128
|
-
return [2, Promise.resolve(response)];
|
|
1129
|
-
}
|
|
1130
|
-
});
|
|
1131
|
-
}); };
|
|
1132
|
-
var deserializeAws_json1_1IssueCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1133
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1134
|
-
var _c;
|
|
1135
|
-
return __generator(this, function (_d) {
|
|
1136
|
-
switch (_d.label) {
|
|
1137
|
-
case 0:
|
|
1138
|
-
_a = [__assign({}, output)];
|
|
1139
|
-
_c = {};
|
|
1140
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1141
|
-
case 1:
|
|
1142
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1143
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
-
_b = errorCode;
|
|
1145
|
-
switch (_b) {
|
|
1146
|
-
case "InvalidArgsException": return [3, 2];
|
|
1147
|
-
case "com.amazonaws.acmpca#InvalidArgsException": return [3, 2];
|
|
1148
|
-
case "InvalidArnException": return [3, 4];
|
|
1149
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
1150
|
-
case "InvalidStateException": return [3, 6];
|
|
1151
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 6];
|
|
1152
|
-
case "LimitExceededException": return [3, 8];
|
|
1153
|
-
case "com.amazonaws.acmpca#LimitExceededException": return [3, 8];
|
|
1154
|
-
case "MalformedCSRException": return [3, 10];
|
|
1155
|
-
case "com.amazonaws.acmpca#MalformedCSRException": return [3, 10];
|
|
1156
|
-
case "ResourceNotFoundException": return [3, 12];
|
|
1157
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 12];
|
|
1158
|
-
}
|
|
1159
|
-
return [3, 14];
|
|
1160
|
-
case 2: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
1161
|
-
case 3: throw _d.sent();
|
|
1162
|
-
case 4: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1163
|
-
case 5: throw _d.sent();
|
|
1164
|
-
case 6: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1165
|
-
case 7: throw _d.sent();
|
|
1166
|
-
case 8: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1167
|
-
case 9: throw _d.sent();
|
|
1168
|
-
case 10: return [4, deserializeAws_json1_1MalformedCSRExceptionResponse(parsedOutput, context)];
|
|
1169
|
-
case 11: throw _d.sent();
|
|
1170
|
-
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1171
|
-
case 13: throw _d.sent();
|
|
1172
|
-
case 14:
|
|
1173
|
-
parsedBody = parsedOutput.body;
|
|
1174
|
-
throwDefaultError({
|
|
1175
|
-
output: output,
|
|
1176
|
-
parsedBody: parsedBody,
|
|
1177
|
-
exceptionCtor: __BaseException,
|
|
1178
|
-
errorCode: errorCode,
|
|
1179
|
-
});
|
|
1180
|
-
_d.label = 15;
|
|
1181
|
-
case 15: return [2];
|
|
1182
|
-
}
|
|
1183
|
-
});
|
|
1184
|
-
}); };
|
|
1185
|
-
export var deserializeAws_json1_1ListCertificateAuthoritiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1186
|
-
var data, contents, response;
|
|
1187
|
-
return __generator(this, function (_a) {
|
|
1188
|
-
switch (_a.label) {
|
|
1189
|
-
case 0:
|
|
1190
|
-
if (output.statusCode >= 300) {
|
|
1191
|
-
return [2, deserializeAws_json1_1ListCertificateAuthoritiesCommandError(output, context)];
|
|
1192
|
-
}
|
|
1193
|
-
return [4, parseBody(output.body, context)];
|
|
1194
|
-
case 1:
|
|
1195
|
-
data = _a.sent();
|
|
1196
|
-
contents = {};
|
|
1197
|
-
contents = deserializeAws_json1_1ListCertificateAuthoritiesResponse(data, context);
|
|
1198
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1199
|
-
return [2, Promise.resolve(response)];
|
|
1200
|
-
}
|
|
1201
|
-
});
|
|
1202
|
-
}); };
|
|
1203
|
-
var deserializeAws_json1_1ListCertificateAuthoritiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1204
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1205
|
-
var _c;
|
|
1206
|
-
return __generator(this, function (_d) {
|
|
1207
|
-
switch (_d.label) {
|
|
1208
|
-
case 0:
|
|
1209
|
-
_a = [__assign({}, output)];
|
|
1210
|
-
_c = {};
|
|
1211
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1212
|
-
case 1:
|
|
1213
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1214
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
|
-
_b = errorCode;
|
|
1216
|
-
switch (_b) {
|
|
1217
|
-
case "InvalidNextTokenException": return [3, 2];
|
|
1218
|
-
case "com.amazonaws.acmpca#InvalidNextTokenException": return [3, 2];
|
|
1219
|
-
}
|
|
1220
|
-
return [3, 4];
|
|
1221
|
-
case 2: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1222
|
-
case 3: throw _d.sent();
|
|
1223
|
-
case 4:
|
|
1224
|
-
parsedBody = parsedOutput.body;
|
|
1225
|
-
throwDefaultError({
|
|
1226
|
-
output: output,
|
|
1227
|
-
parsedBody: parsedBody,
|
|
1228
|
-
exceptionCtor: __BaseException,
|
|
1229
|
-
errorCode: errorCode,
|
|
1230
|
-
});
|
|
1231
|
-
_d.label = 5;
|
|
1232
|
-
case 5: return [2];
|
|
1233
|
-
}
|
|
1234
|
-
});
|
|
1235
|
-
}); };
|
|
1236
|
-
export var deserializeAws_json1_1ListPermissionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1237
|
-
var data, contents, response;
|
|
1238
|
-
return __generator(this, function (_a) {
|
|
1239
|
-
switch (_a.label) {
|
|
1240
|
-
case 0:
|
|
1241
|
-
if (output.statusCode >= 300) {
|
|
1242
|
-
return [2, deserializeAws_json1_1ListPermissionsCommandError(output, context)];
|
|
1243
|
-
}
|
|
1244
|
-
return [4, parseBody(output.body, context)];
|
|
1245
|
-
case 1:
|
|
1246
|
-
data = _a.sent();
|
|
1247
|
-
contents = {};
|
|
1248
|
-
contents = deserializeAws_json1_1ListPermissionsResponse(data, context);
|
|
1249
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1250
|
-
return [2, Promise.resolve(response)];
|
|
1251
|
-
}
|
|
1252
|
-
});
|
|
1253
|
-
}); };
|
|
1254
|
-
var deserializeAws_json1_1ListPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1255
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1256
|
-
var _c;
|
|
1257
|
-
return __generator(this, function (_d) {
|
|
1258
|
-
switch (_d.label) {
|
|
1259
|
-
case 0:
|
|
1260
|
-
_a = [__assign({}, output)];
|
|
1261
|
-
_c = {};
|
|
1262
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1263
|
-
case 1:
|
|
1264
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1265
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
|
-
_b = errorCode;
|
|
1267
|
-
switch (_b) {
|
|
1268
|
-
case "InvalidArnException": return [3, 2];
|
|
1269
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1270
|
-
case "InvalidNextTokenException": return [3, 4];
|
|
1271
|
-
case "com.amazonaws.acmpca#InvalidNextTokenException": return [3, 4];
|
|
1272
|
-
case "InvalidStateException": return [3, 6];
|
|
1273
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 6];
|
|
1274
|
-
case "RequestFailedException": return [3, 8];
|
|
1275
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3, 8];
|
|
1276
|
-
case "ResourceNotFoundException": return [3, 10];
|
|
1277
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 10];
|
|
1278
|
-
}
|
|
1279
|
-
return [3, 12];
|
|
1280
|
-
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1281
|
-
case 3: throw _d.sent();
|
|
1282
|
-
case 4: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1283
|
-
case 5: throw _d.sent();
|
|
1284
|
-
case 6: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1285
|
-
case 7: throw _d.sent();
|
|
1286
|
-
case 8: return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1287
|
-
case 9: throw _d.sent();
|
|
1288
|
-
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1289
|
-
case 11: throw _d.sent();
|
|
1290
|
-
case 12:
|
|
1291
|
-
parsedBody = parsedOutput.body;
|
|
1292
|
-
throwDefaultError({
|
|
1293
|
-
output: output,
|
|
1294
|
-
parsedBody: parsedBody,
|
|
1295
|
-
exceptionCtor: __BaseException,
|
|
1296
|
-
errorCode: errorCode,
|
|
1297
|
-
});
|
|
1298
|
-
_d.label = 13;
|
|
1299
|
-
case 13: return [2];
|
|
1300
|
-
}
|
|
1301
|
-
});
|
|
1302
|
-
}); };
|
|
1303
|
-
export var deserializeAws_json1_1ListTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1304
|
-
var data, contents, response;
|
|
1305
|
-
return __generator(this, function (_a) {
|
|
1306
|
-
switch (_a.label) {
|
|
1307
|
-
case 0:
|
|
1308
|
-
if (output.statusCode >= 300) {
|
|
1309
|
-
return [2, deserializeAws_json1_1ListTagsCommandError(output, context)];
|
|
1310
|
-
}
|
|
1311
|
-
return [4, parseBody(output.body, context)];
|
|
1312
|
-
case 1:
|
|
1313
|
-
data = _a.sent();
|
|
1314
|
-
contents = {};
|
|
1315
|
-
contents = deserializeAws_json1_1ListTagsResponse(data, context);
|
|
1316
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1317
|
-
return [2, Promise.resolve(response)];
|
|
1318
|
-
}
|
|
1319
|
-
});
|
|
1320
|
-
}); };
|
|
1321
|
-
var deserializeAws_json1_1ListTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1322
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1323
|
-
var _c;
|
|
1324
|
-
return __generator(this, function (_d) {
|
|
1325
|
-
switch (_d.label) {
|
|
1326
|
-
case 0:
|
|
1327
|
-
_a = [__assign({}, output)];
|
|
1328
|
-
_c = {};
|
|
1329
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1330
|
-
case 1:
|
|
1331
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
_b = errorCode;
|
|
1334
|
-
switch (_b) {
|
|
1335
|
-
case "InvalidArnException": return [3, 2];
|
|
1336
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1337
|
-
case "InvalidStateException": return [3, 4];
|
|
1338
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1339
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1340
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 6];
|
|
1341
|
-
}
|
|
1342
|
-
return [3, 8];
|
|
1343
|
-
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1344
|
-
case 3: throw _d.sent();
|
|
1345
|
-
case 4: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1346
|
-
case 5: throw _d.sent();
|
|
1347
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1348
|
-
case 7: throw _d.sent();
|
|
1349
|
-
case 8:
|
|
1350
|
-
parsedBody = parsedOutput.body;
|
|
1351
|
-
throwDefaultError({
|
|
1352
|
-
output: output,
|
|
1353
|
-
parsedBody: parsedBody,
|
|
1354
|
-
exceptionCtor: __BaseException,
|
|
1355
|
-
errorCode: errorCode,
|
|
1356
|
-
});
|
|
1357
|
-
_d.label = 9;
|
|
1358
|
-
case 9: return [2];
|
|
1359
|
-
}
|
|
1360
|
-
});
|
|
1361
|
-
}); };
|
|
1362
|
-
export var deserializeAws_json1_1PutPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1363
|
-
var response;
|
|
1364
|
-
return __generator(this, function (_a) {
|
|
1365
|
-
switch (_a.label) {
|
|
1366
|
-
case 0:
|
|
1367
|
-
if (output.statusCode >= 300) {
|
|
1368
|
-
return [2, deserializeAws_json1_1PutPolicyCommandError(output, context)];
|
|
1369
|
-
}
|
|
1370
|
-
return [4, collectBody(output.body, context)];
|
|
1371
|
-
case 1:
|
|
1372
|
-
_a.sent();
|
|
1373
|
-
response = {
|
|
1374
|
-
$metadata: deserializeMetadata(output),
|
|
1375
|
-
};
|
|
1376
|
-
return [2, Promise.resolve(response)];
|
|
1377
|
-
}
|
|
1378
|
-
});
|
|
1379
|
-
}); };
|
|
1380
|
-
var deserializeAws_json1_1PutPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1381
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1382
|
-
var _c;
|
|
1383
|
-
return __generator(this, function (_d) {
|
|
1384
|
-
switch (_d.label) {
|
|
1385
|
-
case 0:
|
|
1386
|
-
_a = [__assign({}, output)];
|
|
1387
|
-
_c = {};
|
|
1388
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1389
|
-
case 1:
|
|
1390
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1391
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
|
-
_b = errorCode;
|
|
1393
|
-
switch (_b) {
|
|
1394
|
-
case "ConcurrentModificationException": return [3, 2];
|
|
1395
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 2];
|
|
1396
|
-
case "InvalidArnException": return [3, 4];
|
|
1397
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
1398
|
-
case "InvalidPolicyException": return [3, 6];
|
|
1399
|
-
case "com.amazonaws.acmpca#InvalidPolicyException": return [3, 6];
|
|
1400
|
-
case "InvalidStateException": return [3, 8];
|
|
1401
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 8];
|
|
1402
|
-
case "LockoutPreventedException": return [3, 10];
|
|
1403
|
-
case "com.amazonaws.acmpca#LockoutPreventedException": return [3, 10];
|
|
1404
|
-
case "RequestFailedException": return [3, 12];
|
|
1405
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3, 12];
|
|
1406
|
-
case "ResourceNotFoundException": return [3, 14];
|
|
1407
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 14];
|
|
1408
|
-
}
|
|
1409
|
-
return [3, 16];
|
|
1410
|
-
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1411
|
-
case 3: throw _d.sent();
|
|
1412
|
-
case 4: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1413
|
-
case 5: throw _d.sent();
|
|
1414
|
-
case 6: return [4, deserializeAws_json1_1InvalidPolicyExceptionResponse(parsedOutput, context)];
|
|
1415
|
-
case 7: throw _d.sent();
|
|
1416
|
-
case 8: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1417
|
-
case 9: throw _d.sent();
|
|
1418
|
-
case 10: return [4, deserializeAws_json1_1LockoutPreventedExceptionResponse(parsedOutput, context)];
|
|
1419
|
-
case 11: throw _d.sent();
|
|
1420
|
-
case 12: return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1421
|
-
case 13: throw _d.sent();
|
|
1422
|
-
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1423
|
-
case 15: throw _d.sent();
|
|
1424
|
-
case 16:
|
|
1425
|
-
parsedBody = parsedOutput.body;
|
|
1426
|
-
throwDefaultError({
|
|
1427
|
-
output: output,
|
|
1428
|
-
parsedBody: parsedBody,
|
|
1429
|
-
exceptionCtor: __BaseException,
|
|
1430
|
-
errorCode: errorCode,
|
|
1431
|
-
});
|
|
1432
|
-
_d.label = 17;
|
|
1433
|
-
case 17: return [2];
|
|
1434
|
-
}
|
|
1435
|
-
});
|
|
1436
|
-
}); };
|
|
1437
|
-
export var deserializeAws_json1_1RestoreCertificateAuthorityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1438
|
-
var response;
|
|
1439
|
-
return __generator(this, function (_a) {
|
|
1440
|
-
switch (_a.label) {
|
|
1441
|
-
case 0:
|
|
1442
|
-
if (output.statusCode >= 300) {
|
|
1443
|
-
return [2, deserializeAws_json1_1RestoreCertificateAuthorityCommandError(output, context)];
|
|
1444
|
-
}
|
|
1445
|
-
return [4, collectBody(output.body, context)];
|
|
1446
|
-
case 1:
|
|
1447
|
-
_a.sent();
|
|
1448
|
-
response = {
|
|
1449
|
-
$metadata: deserializeMetadata(output),
|
|
1450
|
-
};
|
|
1451
|
-
return [2, Promise.resolve(response)];
|
|
1452
|
-
}
|
|
1453
|
-
});
|
|
1454
|
-
}); };
|
|
1455
|
-
var deserializeAws_json1_1RestoreCertificateAuthorityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1456
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1457
|
-
var _c;
|
|
1458
|
-
return __generator(this, function (_d) {
|
|
1459
|
-
switch (_d.label) {
|
|
1460
|
-
case 0:
|
|
1461
|
-
_a = [__assign({}, output)];
|
|
1462
|
-
_c = {};
|
|
1463
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1464
|
-
case 1:
|
|
1465
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1466
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
-
_b = errorCode;
|
|
1468
|
-
switch (_b) {
|
|
1469
|
-
case "InvalidArnException": return [3, 2];
|
|
1470
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1471
|
-
case "InvalidStateException": return [3, 4];
|
|
1472
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1473
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1474
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 6];
|
|
1475
|
-
}
|
|
1476
|
-
return [3, 8];
|
|
1477
|
-
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1478
|
-
case 3: throw _d.sent();
|
|
1479
|
-
case 4: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1480
|
-
case 5: throw _d.sent();
|
|
1481
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1482
|
-
case 7: throw _d.sent();
|
|
1483
|
-
case 8:
|
|
1484
|
-
parsedBody = parsedOutput.body;
|
|
1485
|
-
throwDefaultError({
|
|
1486
|
-
output: output,
|
|
1487
|
-
parsedBody: parsedBody,
|
|
1488
|
-
exceptionCtor: __BaseException,
|
|
1489
|
-
errorCode: errorCode,
|
|
1490
|
-
});
|
|
1491
|
-
_d.label = 9;
|
|
1492
|
-
case 9: return [2];
|
|
1493
|
-
}
|
|
1494
|
-
});
|
|
1495
|
-
}); };
|
|
1496
|
-
export var deserializeAws_json1_1RevokeCertificateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1497
|
-
var response;
|
|
1498
|
-
return __generator(this, function (_a) {
|
|
1499
|
-
switch (_a.label) {
|
|
1500
|
-
case 0:
|
|
1501
|
-
if (output.statusCode >= 300) {
|
|
1502
|
-
return [2, deserializeAws_json1_1RevokeCertificateCommandError(output, context)];
|
|
1503
|
-
}
|
|
1504
|
-
return [4, collectBody(output.body, context)];
|
|
1505
|
-
case 1:
|
|
1506
|
-
_a.sent();
|
|
1507
|
-
response = {
|
|
1508
|
-
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1510
|
-
return [2, Promise.resolve(response)];
|
|
1511
|
-
}
|
|
1512
|
-
});
|
|
1513
|
-
}); };
|
|
1514
|
-
var deserializeAws_json1_1RevokeCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1515
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1516
|
-
var _c;
|
|
1517
|
-
return __generator(this, function (_d) {
|
|
1518
|
-
switch (_d.label) {
|
|
1519
|
-
case 0:
|
|
1520
|
-
_a = [__assign({}, output)];
|
|
1521
|
-
_c = {};
|
|
1522
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1523
|
-
case 1:
|
|
1524
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
-
_b = errorCode;
|
|
1527
|
-
switch (_b) {
|
|
1528
|
-
case "ConcurrentModificationException": return [3, 2];
|
|
1529
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 2];
|
|
1530
|
-
case "InvalidArnException": return [3, 4];
|
|
1531
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 4];
|
|
1532
|
-
case "InvalidRequestException": return [3, 6];
|
|
1533
|
-
case "com.amazonaws.acmpca#InvalidRequestException": return [3, 6];
|
|
1534
|
-
case "InvalidStateException": return [3, 8];
|
|
1535
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 8];
|
|
1536
|
-
case "LimitExceededException": return [3, 10];
|
|
1537
|
-
case "com.amazonaws.acmpca#LimitExceededException": return [3, 10];
|
|
1538
|
-
case "RequestAlreadyProcessedException": return [3, 12];
|
|
1539
|
-
case "com.amazonaws.acmpca#RequestAlreadyProcessedException": return [3, 12];
|
|
1540
|
-
case "RequestFailedException": return [3, 14];
|
|
1541
|
-
case "com.amazonaws.acmpca#RequestFailedException": return [3, 14];
|
|
1542
|
-
case "RequestInProgressException": return [3, 16];
|
|
1543
|
-
case "com.amazonaws.acmpca#RequestInProgressException": return [3, 16];
|
|
1544
|
-
case "ResourceNotFoundException": return [3, 18];
|
|
1545
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 18];
|
|
1546
|
-
}
|
|
1547
|
-
return [3, 20];
|
|
1548
|
-
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1549
|
-
case 3: throw _d.sent();
|
|
1550
|
-
case 4: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1551
|
-
case 5: throw _d.sent();
|
|
1552
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1553
|
-
case 7: throw _d.sent();
|
|
1554
|
-
case 8: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1555
|
-
case 9: throw _d.sent();
|
|
1556
|
-
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1557
|
-
case 11: throw _d.sent();
|
|
1558
|
-
case 12: return [4, deserializeAws_json1_1RequestAlreadyProcessedExceptionResponse(parsedOutput, context)];
|
|
1559
|
-
case 13: throw _d.sent();
|
|
1560
|
-
case 14: return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1561
|
-
case 15: throw _d.sent();
|
|
1562
|
-
case 16: return [4, deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context)];
|
|
1563
|
-
case 17: throw _d.sent();
|
|
1564
|
-
case 18: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1565
|
-
case 19: throw _d.sent();
|
|
1566
|
-
case 20:
|
|
1567
|
-
parsedBody = parsedOutput.body;
|
|
1568
|
-
throwDefaultError({
|
|
1569
|
-
output: output,
|
|
1570
|
-
parsedBody: parsedBody,
|
|
1571
|
-
exceptionCtor: __BaseException,
|
|
1572
|
-
errorCode: errorCode,
|
|
1573
|
-
});
|
|
1574
|
-
_d.label = 21;
|
|
1575
|
-
case 21: return [2];
|
|
1576
|
-
}
|
|
1577
|
-
});
|
|
1578
|
-
}); };
|
|
1579
|
-
export var deserializeAws_json1_1TagCertificateAuthorityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1580
|
-
var response;
|
|
1581
|
-
return __generator(this, function (_a) {
|
|
1582
|
-
switch (_a.label) {
|
|
1583
|
-
case 0:
|
|
1584
|
-
if (output.statusCode >= 300) {
|
|
1585
|
-
return [2, deserializeAws_json1_1TagCertificateAuthorityCommandError(output, context)];
|
|
1586
|
-
}
|
|
1587
|
-
return [4, collectBody(output.body, context)];
|
|
1588
|
-
case 1:
|
|
1589
|
-
_a.sent();
|
|
1590
|
-
response = {
|
|
1591
|
-
$metadata: deserializeMetadata(output),
|
|
1592
|
-
};
|
|
1593
|
-
return [2, Promise.resolve(response)];
|
|
1594
|
-
}
|
|
1595
|
-
});
|
|
1596
|
-
}); };
|
|
1597
|
-
var deserializeAws_json1_1TagCertificateAuthorityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1598
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1599
|
-
var _c;
|
|
1600
|
-
return __generator(this, function (_d) {
|
|
1601
|
-
switch (_d.label) {
|
|
1602
|
-
case 0:
|
|
1603
|
-
_a = [__assign({}, output)];
|
|
1604
|
-
_c = {};
|
|
1605
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1606
|
-
case 1:
|
|
1607
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1608
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
-
_b = errorCode;
|
|
1610
|
-
switch (_b) {
|
|
1611
|
-
case "InvalidArnException": return [3, 2];
|
|
1612
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1613
|
-
case "InvalidStateException": return [3, 4];
|
|
1614
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1615
|
-
case "InvalidTagException": return [3, 6];
|
|
1616
|
-
case "com.amazonaws.acmpca#InvalidTagException": return [3, 6];
|
|
1617
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1618
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 8];
|
|
1619
|
-
case "TooManyTagsException": return [3, 10];
|
|
1620
|
-
case "com.amazonaws.acmpca#TooManyTagsException": return [3, 10];
|
|
1621
|
-
}
|
|
1622
|
-
return [3, 12];
|
|
1623
|
-
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1624
|
-
case 3: throw _d.sent();
|
|
1625
|
-
case 4: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1626
|
-
case 5: throw _d.sent();
|
|
1627
|
-
case 6: return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
1628
|
-
case 7: throw _d.sent();
|
|
1629
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1630
|
-
case 9: throw _d.sent();
|
|
1631
|
-
case 10: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1632
|
-
case 11: throw _d.sent();
|
|
1633
|
-
case 12:
|
|
1634
|
-
parsedBody = parsedOutput.body;
|
|
1635
|
-
throwDefaultError({
|
|
1636
|
-
output: output,
|
|
1637
|
-
parsedBody: parsedBody,
|
|
1638
|
-
exceptionCtor: __BaseException,
|
|
1639
|
-
errorCode: errorCode,
|
|
1640
|
-
});
|
|
1641
|
-
_d.label = 13;
|
|
1642
|
-
case 13: return [2];
|
|
1643
|
-
}
|
|
1644
|
-
});
|
|
1645
|
-
}); };
|
|
1646
|
-
export var deserializeAws_json1_1UntagCertificateAuthorityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1647
|
-
var response;
|
|
1648
|
-
return __generator(this, function (_a) {
|
|
1649
|
-
switch (_a.label) {
|
|
1650
|
-
case 0:
|
|
1651
|
-
if (output.statusCode >= 300) {
|
|
1652
|
-
return [2, deserializeAws_json1_1UntagCertificateAuthorityCommandError(output, context)];
|
|
1653
|
-
}
|
|
1654
|
-
return [4, collectBody(output.body, context)];
|
|
1655
|
-
case 1:
|
|
1656
|
-
_a.sent();
|
|
1657
|
-
response = {
|
|
1658
|
-
$metadata: deserializeMetadata(output),
|
|
1659
|
-
};
|
|
1660
|
-
return [2, Promise.resolve(response)];
|
|
1661
|
-
}
|
|
1662
|
-
});
|
|
1663
|
-
}); };
|
|
1664
|
-
var deserializeAws_json1_1UntagCertificateAuthorityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1665
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1666
|
-
var _c;
|
|
1667
|
-
return __generator(this, function (_d) {
|
|
1668
|
-
switch (_d.label) {
|
|
1669
|
-
case 0:
|
|
1670
|
-
_a = [__assign({}, output)];
|
|
1671
|
-
_c = {};
|
|
1672
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1673
|
-
case 1:
|
|
1674
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1675
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
|
-
_b = errorCode;
|
|
1677
|
-
switch (_b) {
|
|
1678
|
-
case "InvalidArnException": return [3, 2];
|
|
1679
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 2];
|
|
1680
|
-
case "InvalidStateException": return [3, 4];
|
|
1681
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 4];
|
|
1682
|
-
case "InvalidTagException": return [3, 6];
|
|
1683
|
-
case "com.amazonaws.acmpca#InvalidTagException": return [3, 6];
|
|
1684
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1685
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 8];
|
|
1686
|
-
}
|
|
1687
|
-
return [3, 10];
|
|
1688
|
-
case 2: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1689
|
-
case 3: throw _d.sent();
|
|
1690
|
-
case 4: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1691
|
-
case 5: throw _d.sent();
|
|
1692
|
-
case 6: return [4, deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context)];
|
|
1693
|
-
case 7: throw _d.sent();
|
|
1694
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1695
|
-
case 9: throw _d.sent();
|
|
1696
|
-
case 10:
|
|
1697
|
-
parsedBody = parsedOutput.body;
|
|
1698
|
-
throwDefaultError({
|
|
1699
|
-
output: output,
|
|
1700
|
-
parsedBody: parsedBody,
|
|
1701
|
-
exceptionCtor: __BaseException,
|
|
1702
|
-
errorCode: errorCode,
|
|
1703
|
-
});
|
|
1704
|
-
_d.label = 11;
|
|
1705
|
-
case 11: return [2];
|
|
1706
|
-
}
|
|
1707
|
-
});
|
|
1708
|
-
}); };
|
|
1709
|
-
export var deserializeAws_json1_1UpdateCertificateAuthorityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1710
|
-
var response;
|
|
1711
|
-
return __generator(this, function (_a) {
|
|
1712
|
-
switch (_a.label) {
|
|
1713
|
-
case 0:
|
|
1714
|
-
if (output.statusCode >= 300) {
|
|
1715
|
-
return [2, deserializeAws_json1_1UpdateCertificateAuthorityCommandError(output, context)];
|
|
1716
|
-
}
|
|
1717
|
-
return [4, collectBody(output.body, context)];
|
|
1718
|
-
case 1:
|
|
1719
|
-
_a.sent();
|
|
1720
|
-
response = {
|
|
1721
|
-
$metadata: deserializeMetadata(output),
|
|
1722
|
-
};
|
|
1723
|
-
return [2, Promise.resolve(response)];
|
|
1724
|
-
}
|
|
1725
|
-
});
|
|
1726
|
-
}); };
|
|
1727
|
-
var deserializeAws_json1_1UpdateCertificateAuthorityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1728
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1729
|
-
var _c;
|
|
1730
|
-
return __generator(this, function (_d) {
|
|
1731
|
-
switch (_d.label) {
|
|
1732
|
-
case 0:
|
|
1733
|
-
_a = [__assign({}, output)];
|
|
1734
|
-
_c = {};
|
|
1735
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1736
|
-
case 1:
|
|
1737
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1738
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
|
-
_b = errorCode;
|
|
1740
|
-
switch (_b) {
|
|
1741
|
-
case "ConcurrentModificationException": return [3, 2];
|
|
1742
|
-
case "com.amazonaws.acmpca#ConcurrentModificationException": return [3, 2];
|
|
1743
|
-
case "InvalidArgsException": return [3, 4];
|
|
1744
|
-
case "com.amazonaws.acmpca#InvalidArgsException": return [3, 4];
|
|
1745
|
-
case "InvalidArnException": return [3, 6];
|
|
1746
|
-
case "com.amazonaws.acmpca#InvalidArnException": return [3, 6];
|
|
1747
|
-
case "InvalidPolicyException": return [3, 8];
|
|
1748
|
-
case "com.amazonaws.acmpca#InvalidPolicyException": return [3, 8];
|
|
1749
|
-
case "InvalidStateException": return [3, 10];
|
|
1750
|
-
case "com.amazonaws.acmpca#InvalidStateException": return [3, 10];
|
|
1751
|
-
case "ResourceNotFoundException": return [3, 12];
|
|
1752
|
-
case "com.amazonaws.acmpca#ResourceNotFoundException": return [3, 12];
|
|
1753
|
-
}
|
|
1754
|
-
return [3, 14];
|
|
1755
|
-
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1756
|
-
case 3: throw _d.sent();
|
|
1757
|
-
case 4: return [4, deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context)];
|
|
1758
|
-
case 5: throw _d.sent();
|
|
1759
|
-
case 6: return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1760
|
-
case 7: throw _d.sent();
|
|
1761
|
-
case 8: return [4, deserializeAws_json1_1InvalidPolicyExceptionResponse(parsedOutput, context)];
|
|
1762
|
-
case 9: throw _d.sent();
|
|
1763
|
-
case 10: return [4, deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1764
|
-
case 11: throw _d.sent();
|
|
1765
|
-
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1766
|
-
case 13: throw _d.sent();
|
|
1767
|
-
case 14:
|
|
1768
|
-
parsedBody = parsedOutput.body;
|
|
1769
|
-
throwDefaultError({
|
|
1770
|
-
output: output,
|
|
1771
|
-
parsedBody: parsedBody,
|
|
1772
|
-
exceptionCtor: __BaseException,
|
|
1773
|
-
errorCode: errorCode,
|
|
1774
|
-
});
|
|
1775
|
-
_d.label = 15;
|
|
1776
|
-
case 15: return [2];
|
|
1777
|
-
}
|
|
1778
|
-
});
|
|
1779
|
-
}); };
|
|
1780
|
-
var deserializeAws_json1_1CertificateMismatchExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1781
|
-
var body, deserialized, exception;
|
|
1782
|
-
return __generator(this, function (_a) {
|
|
1783
|
-
body = parsedOutput.body;
|
|
1784
|
-
deserialized = deserializeAws_json1_1CertificateMismatchException(body, context);
|
|
1785
|
-
exception = new CertificateMismatchException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1786
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1787
|
-
});
|
|
1788
|
-
}); };
|
|
1789
|
-
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1790
|
-
var body, deserialized, exception;
|
|
1791
|
-
return __generator(this, function (_a) {
|
|
1792
|
-
body = parsedOutput.body;
|
|
1793
|
-
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
1794
|
-
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1795
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1796
|
-
});
|
|
1797
|
-
}); };
|
|
1798
|
-
var deserializeAws_json1_1InvalidArgsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1799
|
-
var body, deserialized, exception;
|
|
1800
|
-
return __generator(this, function (_a) {
|
|
1801
|
-
body = parsedOutput.body;
|
|
1802
|
-
deserialized = deserializeAws_json1_1InvalidArgsException(body, context);
|
|
1803
|
-
exception = new InvalidArgsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1804
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1805
|
-
});
|
|
1806
|
-
}); };
|
|
1807
|
-
var deserializeAws_json1_1InvalidArnExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1808
|
-
var body, deserialized, exception;
|
|
1809
|
-
return __generator(this, function (_a) {
|
|
1810
|
-
body = parsedOutput.body;
|
|
1811
|
-
deserialized = deserializeAws_json1_1InvalidArnException(body, context);
|
|
1812
|
-
exception = new InvalidArnException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1813
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1814
|
-
});
|
|
1815
|
-
}); };
|
|
1816
|
-
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1817
|
-
var body, deserialized, exception;
|
|
1818
|
-
return __generator(this, function (_a) {
|
|
1819
|
-
body = parsedOutput.body;
|
|
1820
|
-
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
1821
|
-
exception = new InvalidNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1822
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1823
|
-
});
|
|
1824
|
-
}); };
|
|
1825
|
-
var deserializeAws_json1_1InvalidPolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1826
|
-
var body, deserialized, exception;
|
|
1827
|
-
return __generator(this, function (_a) {
|
|
1828
|
-
body = parsedOutput.body;
|
|
1829
|
-
deserialized = deserializeAws_json1_1InvalidPolicyException(body, context);
|
|
1830
|
-
exception = new InvalidPolicyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1831
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1832
|
-
});
|
|
1833
|
-
}); };
|
|
1834
|
-
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1835
|
-
var body, deserialized, exception;
|
|
1836
|
-
return __generator(this, function (_a) {
|
|
1837
|
-
body = parsedOutput.body;
|
|
1838
|
-
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1839
|
-
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1840
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1841
|
-
});
|
|
1842
|
-
}); };
|
|
1843
|
-
var deserializeAws_json1_1InvalidStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1844
|
-
var body, deserialized, exception;
|
|
1845
|
-
return __generator(this, function (_a) {
|
|
1846
|
-
body = parsedOutput.body;
|
|
1847
|
-
deserialized = deserializeAws_json1_1InvalidStateException(body, context);
|
|
1848
|
-
exception = new InvalidStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1849
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1850
|
-
});
|
|
1851
|
-
}); };
|
|
1852
|
-
var deserializeAws_json1_1InvalidTagExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1853
|
-
var body, deserialized, exception;
|
|
1854
|
-
return __generator(this, function (_a) {
|
|
1855
|
-
body = parsedOutput.body;
|
|
1856
|
-
deserialized = deserializeAws_json1_1InvalidTagException(body, context);
|
|
1857
|
-
exception = new InvalidTagException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1858
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1859
|
-
});
|
|
1860
|
-
}); };
|
|
1861
|
-
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1862
|
-
var body, deserialized, exception;
|
|
1863
|
-
return __generator(this, function (_a) {
|
|
1864
|
-
body = parsedOutput.body;
|
|
1865
|
-
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1866
|
-
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1867
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1868
|
-
});
|
|
1869
|
-
}); };
|
|
1870
|
-
var deserializeAws_json1_1LockoutPreventedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1871
|
-
var body, deserialized, exception;
|
|
1872
|
-
return __generator(this, function (_a) {
|
|
1873
|
-
body = parsedOutput.body;
|
|
1874
|
-
deserialized = deserializeAws_json1_1LockoutPreventedException(body, context);
|
|
1875
|
-
exception = new LockoutPreventedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1876
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1877
|
-
});
|
|
1878
|
-
}); };
|
|
1879
|
-
var deserializeAws_json1_1MalformedCertificateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1880
|
-
var body, deserialized, exception;
|
|
1881
|
-
return __generator(this, function (_a) {
|
|
1882
|
-
body = parsedOutput.body;
|
|
1883
|
-
deserialized = deserializeAws_json1_1MalformedCertificateException(body, context);
|
|
1884
|
-
exception = new MalformedCertificateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1885
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1886
|
-
});
|
|
1887
|
-
}); };
|
|
1888
|
-
var deserializeAws_json1_1MalformedCSRExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1889
|
-
var body, deserialized, exception;
|
|
1890
|
-
return __generator(this, function (_a) {
|
|
1891
|
-
body = parsedOutput.body;
|
|
1892
|
-
deserialized = deserializeAws_json1_1MalformedCSRException(body, context);
|
|
1893
|
-
exception = new MalformedCSRException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1894
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1895
|
-
});
|
|
1896
|
-
}); };
|
|
1897
|
-
var deserializeAws_json1_1PermissionAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1898
|
-
var body, deserialized, exception;
|
|
1899
|
-
return __generator(this, function (_a) {
|
|
1900
|
-
body = parsedOutput.body;
|
|
1901
|
-
deserialized = deserializeAws_json1_1PermissionAlreadyExistsException(body, context);
|
|
1902
|
-
exception = new PermissionAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1903
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1904
|
-
});
|
|
1905
|
-
}); };
|
|
1906
|
-
var deserializeAws_json1_1RequestAlreadyProcessedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1907
|
-
var body, deserialized, exception;
|
|
1908
|
-
return __generator(this, function (_a) {
|
|
1909
|
-
body = parsedOutput.body;
|
|
1910
|
-
deserialized = deserializeAws_json1_1RequestAlreadyProcessedException(body, context);
|
|
1911
|
-
exception = new RequestAlreadyProcessedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1912
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1913
|
-
});
|
|
1914
|
-
}); };
|
|
1915
|
-
var deserializeAws_json1_1RequestFailedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1916
|
-
var body, deserialized, exception;
|
|
1917
|
-
return __generator(this, function (_a) {
|
|
1918
|
-
body = parsedOutput.body;
|
|
1919
|
-
deserialized = deserializeAws_json1_1RequestFailedException(body, context);
|
|
1920
|
-
exception = new RequestFailedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1921
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1922
|
-
});
|
|
1923
|
-
}); };
|
|
1924
|
-
var deserializeAws_json1_1RequestInProgressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1925
|
-
var body, deserialized, exception;
|
|
1926
|
-
return __generator(this, function (_a) {
|
|
1927
|
-
body = parsedOutput.body;
|
|
1928
|
-
deserialized = deserializeAws_json1_1RequestInProgressException(body, context);
|
|
1929
|
-
exception = new RequestInProgressException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1930
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1931
|
-
});
|
|
1932
|
-
}); };
|
|
1933
|
-
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1934
|
-
var body, deserialized, exception;
|
|
1935
|
-
return __generator(this, function (_a) {
|
|
1936
|
-
body = parsedOutput.body;
|
|
1937
|
-
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1938
|
-
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1939
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1940
|
-
});
|
|
1941
|
-
}); };
|
|
1942
|
-
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1943
|
-
var body, deserialized, exception;
|
|
1944
|
-
return __generator(this, function (_a) {
|
|
1945
|
-
body = parsedOutput.body;
|
|
1946
|
-
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1947
|
-
exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1948
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1949
|
-
});
|
|
1950
|
-
}); };
|
|
1951
|
-
var serializeAws_json1_1AccessDescription = function (input, context) {
|
|
1952
|
-
return __assign(__assign({}, (input.AccessLocation != null && {
|
|
1953
|
-
AccessLocation: serializeAws_json1_1GeneralName(input.AccessLocation, context),
|
|
1954
|
-
})), (input.AccessMethod != null && { AccessMethod: serializeAws_json1_1AccessMethod(input.AccessMethod, context) }));
|
|
5
|
+
export const serializeAws_json1_1CreateCertificateAuthorityCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "ACMPrivateCA.CreateCertificateAuthority",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1CreateCertificateAuthorityRequest(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_1CreateCertificateAuthorityAuditReportCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.1",
|
|
17
|
+
"x-amz-target": "ACMPrivateCA.CreateCertificateAuthorityAuditReport",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_1CreateCertificateAuthorityAuditReportRequest(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_1CreatePermissionCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "ACMPrivateCA.CreatePermission",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1CreatePermissionRequest(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_1DeleteCertificateAuthorityCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.1",
|
|
35
|
+
"x-amz-target": "ACMPrivateCA.DeleteCertificateAuthority",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_1DeleteCertificateAuthorityRequest(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_1DeletePermissionCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "ACMPrivateCA.DeletePermission",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_1DeletePermissionRequest(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_1DeletePolicyCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "ACMPrivateCA.DeletePolicy",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1DeletePolicyRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_1DescribeCertificateAuthorityCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "ACMPrivateCA.DescribeCertificateAuthority",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1DescribeCertificateAuthorityRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "ACMPrivateCA.DescribeCertificateAuthorityAuditReport",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1DescribeCertificateAuthorityAuditReportRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_1GetCertificateCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.1",
|
|
80
|
+
"x-amz-target": "ACMPrivateCA.GetCertificate",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_1GetCertificateRequest(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_1GetCertificateAuthorityCertificateCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.1",
|
|
89
|
+
"x-amz-target": "ACMPrivateCA.GetCertificateAuthorityCertificate",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_1GetCertificateAuthorityCertificateRequest(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_1GetCertificateAuthorityCsrCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.1",
|
|
98
|
+
"x-amz-target": "ACMPrivateCA.GetCertificateAuthorityCsr",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1GetCertificateAuthorityCsrRequest(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_1GetPolicyCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.1",
|
|
107
|
+
"x-amz-target": "ACMPrivateCA.GetPolicy",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1GetPolicyRequest(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_1ImportCertificateAuthorityCertificateCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.1",
|
|
116
|
+
"x-amz-target": "ACMPrivateCA.ImportCertificateAuthorityCertificate",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_1ImportCertificateAuthorityCertificateRequest(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
export const serializeAws_json1_1IssueCertificateCommand = async (input, context) => {
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/x-amz-json-1.1",
|
|
125
|
+
"x-amz-target": "ACMPrivateCA.IssueCertificate",
|
|
126
|
+
};
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(serializeAws_json1_1IssueCertificateRequest(input, context));
|
|
129
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
|
+
};
|
|
131
|
+
export const serializeAws_json1_1ListCertificateAuthoritiesCommand = async (input, context) => {
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/x-amz-json-1.1",
|
|
134
|
+
"x-amz-target": "ACMPrivateCA.ListCertificateAuthorities",
|
|
135
|
+
};
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify(serializeAws_json1_1ListCertificateAuthoritiesRequest(input, context));
|
|
138
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
+
};
|
|
140
|
+
export const serializeAws_json1_1ListPermissionsCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "ACMPrivateCA.ListPermissions",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_1ListPermissionsRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
export const serializeAws_json1_1ListTagsCommand = async (input, context) => {
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.1",
|
|
152
|
+
"x-amz-target": "ACMPrivateCA.ListTags",
|
|
153
|
+
};
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsRequest(input, context));
|
|
156
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
+
};
|
|
158
|
+
export const serializeAws_json1_1PutPolicyCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.1",
|
|
161
|
+
"x-amz-target": "ACMPrivateCA.PutPolicy",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_1PutPolicyRequest(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
export const serializeAws_json1_1RestoreCertificateAuthorityCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "ACMPrivateCA.RestoreCertificateAuthority",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1RestoreCertificateAuthorityRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
export const serializeAws_json1_1RevokeCertificateCommand = async (input, context) => {
|
|
177
|
+
const headers = {
|
|
178
|
+
"content-type": "application/x-amz-json-1.1",
|
|
179
|
+
"x-amz-target": "ACMPrivateCA.RevokeCertificate",
|
|
180
|
+
};
|
|
181
|
+
let body;
|
|
182
|
+
body = JSON.stringify(serializeAws_json1_1RevokeCertificateRequest(input, context));
|
|
183
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
+
};
|
|
185
|
+
export const serializeAws_json1_1TagCertificateAuthorityCommand = async (input, context) => {
|
|
186
|
+
const headers = {
|
|
187
|
+
"content-type": "application/x-amz-json-1.1",
|
|
188
|
+
"x-amz-target": "ACMPrivateCA.TagCertificateAuthority",
|
|
189
|
+
};
|
|
190
|
+
let body;
|
|
191
|
+
body = JSON.stringify(serializeAws_json1_1TagCertificateAuthorityRequest(input, context));
|
|
192
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
+
};
|
|
194
|
+
export const serializeAws_json1_1UntagCertificateAuthorityCommand = async (input, context) => {
|
|
195
|
+
const headers = {
|
|
196
|
+
"content-type": "application/x-amz-json-1.1",
|
|
197
|
+
"x-amz-target": "ACMPrivateCA.UntagCertificateAuthority",
|
|
198
|
+
};
|
|
199
|
+
let body;
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_1UntagCertificateAuthorityRequest(input, context));
|
|
201
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
|
+
};
|
|
203
|
+
export const serializeAws_json1_1UpdateCertificateAuthorityCommand = async (input, context) => {
|
|
204
|
+
const headers = {
|
|
205
|
+
"content-type": "application/x-amz-json-1.1",
|
|
206
|
+
"x-amz-target": "ACMPrivateCA.UpdateCertificateAuthority",
|
|
207
|
+
};
|
|
208
|
+
let body;
|
|
209
|
+
body = JSON.stringify(serializeAws_json1_1UpdateCertificateAuthorityRequest(input, context));
|
|
210
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
+
};
|
|
212
|
+
export const deserializeAws_json1_1CreateCertificateAuthorityCommand = async (output, context) => {
|
|
213
|
+
if (output.statusCode >= 300) {
|
|
214
|
+
return deserializeAws_json1_1CreateCertificateAuthorityCommandError(output, context);
|
|
215
|
+
}
|
|
216
|
+
const data = await parseBody(output.body, context);
|
|
217
|
+
let contents = {};
|
|
218
|
+
contents = deserializeAws_json1_1CreateCertificateAuthorityResponse(data, context);
|
|
219
|
+
const response = {
|
|
220
|
+
$metadata: deserializeMetadata(output),
|
|
221
|
+
...contents,
|
|
222
|
+
};
|
|
223
|
+
return Promise.resolve(response);
|
|
224
|
+
};
|
|
225
|
+
const deserializeAws_json1_1CreateCertificateAuthorityCommandError = async (output, context) => {
|
|
226
|
+
const parsedOutput = {
|
|
227
|
+
...output,
|
|
228
|
+
body: await parseErrorBody(output.body, context),
|
|
229
|
+
};
|
|
230
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
231
|
+
switch (errorCode) {
|
|
232
|
+
case "InvalidArgsException":
|
|
233
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
234
|
+
throw await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context);
|
|
235
|
+
case "InvalidPolicyException":
|
|
236
|
+
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
237
|
+
throw await deserializeAws_json1_1InvalidPolicyExceptionResponse(parsedOutput, context);
|
|
238
|
+
case "InvalidTagException":
|
|
239
|
+
case "com.amazonaws.acmpca#InvalidTagException":
|
|
240
|
+
throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context);
|
|
241
|
+
case "LimitExceededException":
|
|
242
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
243
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
244
|
+
default:
|
|
245
|
+
const parsedBody = parsedOutput.body;
|
|
246
|
+
throwDefaultError({
|
|
247
|
+
output,
|
|
248
|
+
parsedBody,
|
|
249
|
+
exceptionCtor: __BaseException,
|
|
250
|
+
errorCode,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
export const deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommand = async (output, context) => {
|
|
255
|
+
if (output.statusCode >= 300) {
|
|
256
|
+
return deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError(output, context);
|
|
257
|
+
}
|
|
258
|
+
const data = await parseBody(output.body, context);
|
|
259
|
+
let contents = {};
|
|
260
|
+
contents = deserializeAws_json1_1CreateCertificateAuthorityAuditReportResponse(data, context);
|
|
261
|
+
const response = {
|
|
262
|
+
$metadata: deserializeMetadata(output),
|
|
263
|
+
...contents,
|
|
264
|
+
};
|
|
265
|
+
return Promise.resolve(response);
|
|
266
|
+
};
|
|
267
|
+
const deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
268
|
+
const parsedOutput = {
|
|
269
|
+
...output,
|
|
270
|
+
body: await parseErrorBody(output.body, context),
|
|
271
|
+
};
|
|
272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
273
|
+
switch (errorCode) {
|
|
274
|
+
case "InvalidArgsException":
|
|
275
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
276
|
+
throw await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context);
|
|
277
|
+
case "InvalidArnException":
|
|
278
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
279
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
280
|
+
case "InvalidStateException":
|
|
281
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
282
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
283
|
+
case "RequestFailedException":
|
|
284
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
285
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
286
|
+
case "RequestInProgressException":
|
|
287
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
288
|
+
throw await deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context);
|
|
289
|
+
case "ResourceNotFoundException":
|
|
290
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
291
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
292
|
+
default:
|
|
293
|
+
const parsedBody = parsedOutput.body;
|
|
294
|
+
throwDefaultError({
|
|
295
|
+
output,
|
|
296
|
+
parsedBody,
|
|
297
|
+
exceptionCtor: __BaseException,
|
|
298
|
+
errorCode,
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
export const deserializeAws_json1_1CreatePermissionCommand = async (output, context) => {
|
|
303
|
+
if (output.statusCode >= 300) {
|
|
304
|
+
return deserializeAws_json1_1CreatePermissionCommandError(output, context);
|
|
305
|
+
}
|
|
306
|
+
await collectBody(output.body, context);
|
|
307
|
+
const response = {
|
|
308
|
+
$metadata: deserializeMetadata(output),
|
|
309
|
+
};
|
|
310
|
+
return Promise.resolve(response);
|
|
311
|
+
};
|
|
312
|
+
const deserializeAws_json1_1CreatePermissionCommandError = async (output, context) => {
|
|
313
|
+
const parsedOutput = {
|
|
314
|
+
...output,
|
|
315
|
+
body: await parseErrorBody(output.body, context),
|
|
316
|
+
};
|
|
317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
318
|
+
switch (errorCode) {
|
|
319
|
+
case "InvalidArnException":
|
|
320
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
321
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
322
|
+
case "InvalidStateException":
|
|
323
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
324
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
325
|
+
case "LimitExceededException":
|
|
326
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
327
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
328
|
+
case "PermissionAlreadyExistsException":
|
|
329
|
+
case "com.amazonaws.acmpca#PermissionAlreadyExistsException":
|
|
330
|
+
throw await deserializeAws_json1_1PermissionAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
331
|
+
case "RequestFailedException":
|
|
332
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
333
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
334
|
+
case "ResourceNotFoundException":
|
|
335
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
336
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
337
|
+
default:
|
|
338
|
+
const parsedBody = parsedOutput.body;
|
|
339
|
+
throwDefaultError({
|
|
340
|
+
output,
|
|
341
|
+
parsedBody,
|
|
342
|
+
exceptionCtor: __BaseException,
|
|
343
|
+
errorCode,
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
export const deserializeAws_json1_1DeleteCertificateAuthorityCommand = async (output, context) => {
|
|
348
|
+
if (output.statusCode >= 300) {
|
|
349
|
+
return deserializeAws_json1_1DeleteCertificateAuthorityCommandError(output, context);
|
|
350
|
+
}
|
|
351
|
+
await collectBody(output.body, context);
|
|
352
|
+
const response = {
|
|
353
|
+
$metadata: deserializeMetadata(output),
|
|
354
|
+
};
|
|
355
|
+
return Promise.resolve(response);
|
|
356
|
+
};
|
|
357
|
+
const deserializeAws_json1_1DeleteCertificateAuthorityCommandError = async (output, context) => {
|
|
358
|
+
const parsedOutput = {
|
|
359
|
+
...output,
|
|
360
|
+
body: await parseErrorBody(output.body, context),
|
|
361
|
+
};
|
|
362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
363
|
+
switch (errorCode) {
|
|
364
|
+
case "ConcurrentModificationException":
|
|
365
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
366
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
367
|
+
case "InvalidArnException":
|
|
368
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
369
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
370
|
+
case "InvalidStateException":
|
|
371
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
372
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
373
|
+
case "ResourceNotFoundException":
|
|
374
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
375
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
376
|
+
default:
|
|
377
|
+
const parsedBody = parsedOutput.body;
|
|
378
|
+
throwDefaultError({
|
|
379
|
+
output,
|
|
380
|
+
parsedBody,
|
|
381
|
+
exceptionCtor: __BaseException,
|
|
382
|
+
errorCode,
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
export const deserializeAws_json1_1DeletePermissionCommand = async (output, context) => {
|
|
387
|
+
if (output.statusCode >= 300) {
|
|
388
|
+
return deserializeAws_json1_1DeletePermissionCommandError(output, context);
|
|
389
|
+
}
|
|
390
|
+
await collectBody(output.body, context);
|
|
391
|
+
const response = {
|
|
392
|
+
$metadata: deserializeMetadata(output),
|
|
393
|
+
};
|
|
394
|
+
return Promise.resolve(response);
|
|
395
|
+
};
|
|
396
|
+
const deserializeAws_json1_1DeletePermissionCommandError = async (output, context) => {
|
|
397
|
+
const parsedOutput = {
|
|
398
|
+
...output,
|
|
399
|
+
body: await parseErrorBody(output.body, context),
|
|
400
|
+
};
|
|
401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
402
|
+
switch (errorCode) {
|
|
403
|
+
case "InvalidArnException":
|
|
404
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
405
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
406
|
+
case "InvalidStateException":
|
|
407
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
408
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
409
|
+
case "RequestFailedException":
|
|
410
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
411
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
412
|
+
case "ResourceNotFoundException":
|
|
413
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
414
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
415
|
+
default:
|
|
416
|
+
const parsedBody = parsedOutput.body;
|
|
417
|
+
throwDefaultError({
|
|
418
|
+
output,
|
|
419
|
+
parsedBody,
|
|
420
|
+
exceptionCtor: __BaseException,
|
|
421
|
+
errorCode,
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
export const deserializeAws_json1_1DeletePolicyCommand = async (output, context) => {
|
|
426
|
+
if (output.statusCode >= 300) {
|
|
427
|
+
return deserializeAws_json1_1DeletePolicyCommandError(output, context);
|
|
428
|
+
}
|
|
429
|
+
await collectBody(output.body, context);
|
|
430
|
+
const response = {
|
|
431
|
+
$metadata: deserializeMetadata(output),
|
|
432
|
+
};
|
|
433
|
+
return Promise.resolve(response);
|
|
434
|
+
};
|
|
435
|
+
const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) => {
|
|
436
|
+
const parsedOutput = {
|
|
437
|
+
...output,
|
|
438
|
+
body: await parseErrorBody(output.body, context),
|
|
439
|
+
};
|
|
440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
+
switch (errorCode) {
|
|
442
|
+
case "ConcurrentModificationException":
|
|
443
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
444
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
445
|
+
case "InvalidArnException":
|
|
446
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
447
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
448
|
+
case "InvalidStateException":
|
|
449
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
450
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
451
|
+
case "LockoutPreventedException":
|
|
452
|
+
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
453
|
+
throw await deserializeAws_json1_1LockoutPreventedExceptionResponse(parsedOutput, context);
|
|
454
|
+
case "RequestFailedException":
|
|
455
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
456
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
457
|
+
case "ResourceNotFoundException":
|
|
458
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
459
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
460
|
+
default:
|
|
461
|
+
const parsedBody = parsedOutput.body;
|
|
462
|
+
throwDefaultError({
|
|
463
|
+
output,
|
|
464
|
+
parsedBody,
|
|
465
|
+
exceptionCtor: __BaseException,
|
|
466
|
+
errorCode,
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
export const deserializeAws_json1_1DescribeCertificateAuthorityCommand = async (output, context) => {
|
|
471
|
+
if (output.statusCode >= 300) {
|
|
472
|
+
return deserializeAws_json1_1DescribeCertificateAuthorityCommandError(output, context);
|
|
473
|
+
}
|
|
474
|
+
const data = await parseBody(output.body, context);
|
|
475
|
+
let contents = {};
|
|
476
|
+
contents = deserializeAws_json1_1DescribeCertificateAuthorityResponse(data, context);
|
|
477
|
+
const response = {
|
|
478
|
+
$metadata: deserializeMetadata(output),
|
|
479
|
+
...contents,
|
|
480
|
+
};
|
|
481
|
+
return Promise.resolve(response);
|
|
482
|
+
};
|
|
483
|
+
const deserializeAws_json1_1DescribeCertificateAuthorityCommandError = async (output, context) => {
|
|
484
|
+
const parsedOutput = {
|
|
485
|
+
...output,
|
|
486
|
+
body: await parseErrorBody(output.body, context),
|
|
487
|
+
};
|
|
488
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
|
+
switch (errorCode) {
|
|
490
|
+
case "InvalidArnException":
|
|
491
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
492
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
493
|
+
case "ResourceNotFoundException":
|
|
494
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
495
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
496
|
+
default:
|
|
497
|
+
const parsedBody = parsedOutput.body;
|
|
498
|
+
throwDefaultError({
|
|
499
|
+
output,
|
|
500
|
+
parsedBody,
|
|
501
|
+
exceptionCtor: __BaseException,
|
|
502
|
+
errorCode,
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
export const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand = async (output, context) => {
|
|
507
|
+
if (output.statusCode >= 300) {
|
|
508
|
+
return deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError(output, context);
|
|
509
|
+
}
|
|
510
|
+
const data = await parseBody(output.body, context);
|
|
511
|
+
let contents = {};
|
|
512
|
+
contents = deserializeAws_json1_1DescribeCertificateAuthorityAuditReportResponse(data, context);
|
|
513
|
+
const response = {
|
|
514
|
+
$metadata: deserializeMetadata(output),
|
|
515
|
+
...contents,
|
|
516
|
+
};
|
|
517
|
+
return Promise.resolve(response);
|
|
518
|
+
};
|
|
519
|
+
const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
520
|
+
const parsedOutput = {
|
|
521
|
+
...output,
|
|
522
|
+
body: await parseErrorBody(output.body, context),
|
|
523
|
+
};
|
|
524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
|
+
switch (errorCode) {
|
|
526
|
+
case "InvalidArgsException":
|
|
527
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
528
|
+
throw await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context);
|
|
529
|
+
case "InvalidArnException":
|
|
530
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
531
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
532
|
+
case "ResourceNotFoundException":
|
|
533
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
534
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
535
|
+
default:
|
|
536
|
+
const parsedBody = parsedOutput.body;
|
|
537
|
+
throwDefaultError({
|
|
538
|
+
output,
|
|
539
|
+
parsedBody,
|
|
540
|
+
exceptionCtor: __BaseException,
|
|
541
|
+
errorCode,
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
export const deserializeAws_json1_1GetCertificateCommand = async (output, context) => {
|
|
546
|
+
if (output.statusCode >= 300) {
|
|
547
|
+
return deserializeAws_json1_1GetCertificateCommandError(output, context);
|
|
548
|
+
}
|
|
549
|
+
const data = await parseBody(output.body, context);
|
|
550
|
+
let contents = {};
|
|
551
|
+
contents = deserializeAws_json1_1GetCertificateResponse(data, context);
|
|
552
|
+
const response = {
|
|
553
|
+
$metadata: deserializeMetadata(output),
|
|
554
|
+
...contents,
|
|
555
|
+
};
|
|
556
|
+
return Promise.resolve(response);
|
|
557
|
+
};
|
|
558
|
+
const deserializeAws_json1_1GetCertificateCommandError = async (output, context) => {
|
|
559
|
+
const parsedOutput = {
|
|
560
|
+
...output,
|
|
561
|
+
body: await parseErrorBody(output.body, context),
|
|
562
|
+
};
|
|
563
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
+
switch (errorCode) {
|
|
565
|
+
case "InvalidArnException":
|
|
566
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
567
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
568
|
+
case "InvalidStateException":
|
|
569
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
570
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
571
|
+
case "RequestFailedException":
|
|
572
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
573
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
574
|
+
case "RequestInProgressException":
|
|
575
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
576
|
+
throw await deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context);
|
|
577
|
+
case "ResourceNotFoundException":
|
|
578
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
579
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
580
|
+
default:
|
|
581
|
+
const parsedBody = parsedOutput.body;
|
|
582
|
+
throwDefaultError({
|
|
583
|
+
output,
|
|
584
|
+
parsedBody,
|
|
585
|
+
exceptionCtor: __BaseException,
|
|
586
|
+
errorCode,
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
export const deserializeAws_json1_1GetCertificateAuthorityCertificateCommand = async (output, context) => {
|
|
591
|
+
if (output.statusCode >= 300) {
|
|
592
|
+
return deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError(output, context);
|
|
593
|
+
}
|
|
594
|
+
const data = await parseBody(output.body, context);
|
|
595
|
+
let contents = {};
|
|
596
|
+
contents = deserializeAws_json1_1GetCertificateAuthorityCertificateResponse(data, context);
|
|
597
|
+
const response = {
|
|
598
|
+
$metadata: deserializeMetadata(output),
|
|
599
|
+
...contents,
|
|
600
|
+
};
|
|
601
|
+
return Promise.resolve(response);
|
|
602
|
+
};
|
|
603
|
+
const deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
604
|
+
const parsedOutput = {
|
|
605
|
+
...output,
|
|
606
|
+
body: await parseErrorBody(output.body, context),
|
|
607
|
+
};
|
|
608
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
+
switch (errorCode) {
|
|
610
|
+
case "InvalidArnException":
|
|
611
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
612
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
613
|
+
case "InvalidStateException":
|
|
614
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
615
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
616
|
+
case "ResourceNotFoundException":
|
|
617
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
618
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
619
|
+
default:
|
|
620
|
+
const parsedBody = parsedOutput.body;
|
|
621
|
+
throwDefaultError({
|
|
622
|
+
output,
|
|
623
|
+
parsedBody,
|
|
624
|
+
exceptionCtor: __BaseException,
|
|
625
|
+
errorCode,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
export const deserializeAws_json1_1GetCertificateAuthorityCsrCommand = async (output, context) => {
|
|
630
|
+
if (output.statusCode >= 300) {
|
|
631
|
+
return deserializeAws_json1_1GetCertificateAuthorityCsrCommandError(output, context);
|
|
632
|
+
}
|
|
633
|
+
const data = await parseBody(output.body, context);
|
|
634
|
+
let contents = {};
|
|
635
|
+
contents = deserializeAws_json1_1GetCertificateAuthorityCsrResponse(data, context);
|
|
636
|
+
const response = {
|
|
637
|
+
$metadata: deserializeMetadata(output),
|
|
638
|
+
...contents,
|
|
639
|
+
};
|
|
640
|
+
return Promise.resolve(response);
|
|
641
|
+
};
|
|
642
|
+
const deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = async (output, context) => {
|
|
643
|
+
const parsedOutput = {
|
|
644
|
+
...output,
|
|
645
|
+
body: await parseErrorBody(output.body, context),
|
|
646
|
+
};
|
|
647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
+
switch (errorCode) {
|
|
649
|
+
case "InvalidArnException":
|
|
650
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
651
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
652
|
+
case "InvalidStateException":
|
|
653
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
654
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
655
|
+
case "RequestFailedException":
|
|
656
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
657
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
658
|
+
case "RequestInProgressException":
|
|
659
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
660
|
+
throw await deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context);
|
|
661
|
+
case "ResourceNotFoundException":
|
|
662
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
663
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
664
|
+
default:
|
|
665
|
+
const parsedBody = parsedOutput.body;
|
|
666
|
+
throwDefaultError({
|
|
667
|
+
output,
|
|
668
|
+
parsedBody,
|
|
669
|
+
exceptionCtor: __BaseException,
|
|
670
|
+
errorCode,
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
export const deserializeAws_json1_1GetPolicyCommand = async (output, context) => {
|
|
675
|
+
if (output.statusCode >= 300) {
|
|
676
|
+
return deserializeAws_json1_1GetPolicyCommandError(output, context);
|
|
677
|
+
}
|
|
678
|
+
const data = await parseBody(output.body, context);
|
|
679
|
+
let contents = {};
|
|
680
|
+
contents = deserializeAws_json1_1GetPolicyResponse(data, context);
|
|
681
|
+
const response = {
|
|
682
|
+
$metadata: deserializeMetadata(output),
|
|
683
|
+
...contents,
|
|
684
|
+
};
|
|
685
|
+
return Promise.resolve(response);
|
|
686
|
+
};
|
|
687
|
+
const deserializeAws_json1_1GetPolicyCommandError = async (output, context) => {
|
|
688
|
+
const parsedOutput = {
|
|
689
|
+
...output,
|
|
690
|
+
body: await parseErrorBody(output.body, context),
|
|
691
|
+
};
|
|
692
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
|
+
switch (errorCode) {
|
|
694
|
+
case "InvalidArnException":
|
|
695
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
696
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
697
|
+
case "InvalidStateException":
|
|
698
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
699
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
700
|
+
case "RequestFailedException":
|
|
701
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
702
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
703
|
+
case "ResourceNotFoundException":
|
|
704
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
705
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
706
|
+
default:
|
|
707
|
+
const parsedBody = parsedOutput.body;
|
|
708
|
+
throwDefaultError({
|
|
709
|
+
output,
|
|
710
|
+
parsedBody,
|
|
711
|
+
exceptionCtor: __BaseException,
|
|
712
|
+
errorCode,
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
export const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand = async (output, context) => {
|
|
717
|
+
if (output.statusCode >= 300) {
|
|
718
|
+
return deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError(output, context);
|
|
719
|
+
}
|
|
720
|
+
await collectBody(output.body, context);
|
|
721
|
+
const response = {
|
|
722
|
+
$metadata: deserializeMetadata(output),
|
|
723
|
+
};
|
|
724
|
+
return Promise.resolve(response);
|
|
725
|
+
};
|
|
726
|
+
const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
727
|
+
const parsedOutput = {
|
|
728
|
+
...output,
|
|
729
|
+
body: await parseErrorBody(output.body, context),
|
|
730
|
+
};
|
|
731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
|
+
switch (errorCode) {
|
|
733
|
+
case "CertificateMismatchException":
|
|
734
|
+
case "com.amazonaws.acmpca#CertificateMismatchException":
|
|
735
|
+
throw await deserializeAws_json1_1CertificateMismatchExceptionResponse(parsedOutput, context);
|
|
736
|
+
case "ConcurrentModificationException":
|
|
737
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
738
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
739
|
+
case "InvalidArnException":
|
|
740
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
741
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
742
|
+
case "InvalidRequestException":
|
|
743
|
+
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
744
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
745
|
+
case "InvalidStateException":
|
|
746
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
747
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
748
|
+
case "MalformedCertificateException":
|
|
749
|
+
case "com.amazonaws.acmpca#MalformedCertificateException":
|
|
750
|
+
throw await deserializeAws_json1_1MalformedCertificateExceptionResponse(parsedOutput, context);
|
|
751
|
+
case "RequestFailedException":
|
|
752
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
753
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
754
|
+
case "RequestInProgressException":
|
|
755
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
756
|
+
throw await deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context);
|
|
757
|
+
case "ResourceNotFoundException":
|
|
758
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
759
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
760
|
+
default:
|
|
761
|
+
const parsedBody = parsedOutput.body;
|
|
762
|
+
throwDefaultError({
|
|
763
|
+
output,
|
|
764
|
+
parsedBody,
|
|
765
|
+
exceptionCtor: __BaseException,
|
|
766
|
+
errorCode,
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
export const deserializeAws_json1_1IssueCertificateCommand = async (output, context) => {
|
|
771
|
+
if (output.statusCode >= 300) {
|
|
772
|
+
return deserializeAws_json1_1IssueCertificateCommandError(output, context);
|
|
773
|
+
}
|
|
774
|
+
const data = await parseBody(output.body, context);
|
|
775
|
+
let contents = {};
|
|
776
|
+
contents = deserializeAws_json1_1IssueCertificateResponse(data, context);
|
|
777
|
+
const response = {
|
|
778
|
+
$metadata: deserializeMetadata(output),
|
|
779
|
+
...contents,
|
|
780
|
+
};
|
|
781
|
+
return Promise.resolve(response);
|
|
782
|
+
};
|
|
783
|
+
const deserializeAws_json1_1IssueCertificateCommandError = async (output, context) => {
|
|
784
|
+
const parsedOutput = {
|
|
785
|
+
...output,
|
|
786
|
+
body: await parseErrorBody(output.body, context),
|
|
787
|
+
};
|
|
788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
+
switch (errorCode) {
|
|
790
|
+
case "InvalidArgsException":
|
|
791
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
792
|
+
throw await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context);
|
|
793
|
+
case "InvalidArnException":
|
|
794
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
795
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
796
|
+
case "InvalidStateException":
|
|
797
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
798
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
799
|
+
case "LimitExceededException":
|
|
800
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
801
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
802
|
+
case "MalformedCSRException":
|
|
803
|
+
case "com.amazonaws.acmpca#MalformedCSRException":
|
|
804
|
+
throw await deserializeAws_json1_1MalformedCSRExceptionResponse(parsedOutput, context);
|
|
805
|
+
case "ResourceNotFoundException":
|
|
806
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
807
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
808
|
+
default:
|
|
809
|
+
const parsedBody = parsedOutput.body;
|
|
810
|
+
throwDefaultError({
|
|
811
|
+
output,
|
|
812
|
+
parsedBody,
|
|
813
|
+
exceptionCtor: __BaseException,
|
|
814
|
+
errorCode,
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
export const deserializeAws_json1_1ListCertificateAuthoritiesCommand = async (output, context) => {
|
|
819
|
+
if (output.statusCode >= 300) {
|
|
820
|
+
return deserializeAws_json1_1ListCertificateAuthoritiesCommandError(output, context);
|
|
821
|
+
}
|
|
822
|
+
const data = await parseBody(output.body, context);
|
|
823
|
+
let contents = {};
|
|
824
|
+
contents = deserializeAws_json1_1ListCertificateAuthoritiesResponse(data, context);
|
|
825
|
+
const response = {
|
|
826
|
+
$metadata: deserializeMetadata(output),
|
|
827
|
+
...contents,
|
|
828
|
+
};
|
|
829
|
+
return Promise.resolve(response);
|
|
830
|
+
};
|
|
831
|
+
const deserializeAws_json1_1ListCertificateAuthoritiesCommandError = async (output, context) => {
|
|
832
|
+
const parsedOutput = {
|
|
833
|
+
...output,
|
|
834
|
+
body: await parseErrorBody(output.body, context),
|
|
835
|
+
};
|
|
836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
+
switch (errorCode) {
|
|
838
|
+
case "InvalidNextTokenException":
|
|
839
|
+
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
840
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
841
|
+
default:
|
|
842
|
+
const parsedBody = parsedOutput.body;
|
|
843
|
+
throwDefaultError({
|
|
844
|
+
output,
|
|
845
|
+
parsedBody,
|
|
846
|
+
exceptionCtor: __BaseException,
|
|
847
|
+
errorCode,
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
export const deserializeAws_json1_1ListPermissionsCommand = async (output, context) => {
|
|
852
|
+
if (output.statusCode >= 300) {
|
|
853
|
+
return deserializeAws_json1_1ListPermissionsCommandError(output, context);
|
|
854
|
+
}
|
|
855
|
+
const data = await parseBody(output.body, context);
|
|
856
|
+
let contents = {};
|
|
857
|
+
contents = deserializeAws_json1_1ListPermissionsResponse(data, context);
|
|
858
|
+
const response = {
|
|
859
|
+
$metadata: deserializeMetadata(output),
|
|
860
|
+
...contents,
|
|
861
|
+
};
|
|
862
|
+
return Promise.resolve(response);
|
|
1955
863
|
};
|
|
1956
|
-
|
|
864
|
+
const deserializeAws_json1_1ListPermissionsCommandError = async (output, context) => {
|
|
865
|
+
const parsedOutput = {
|
|
866
|
+
...output,
|
|
867
|
+
body: await parseErrorBody(output.body, context),
|
|
868
|
+
};
|
|
869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
+
switch (errorCode) {
|
|
871
|
+
case "InvalidArnException":
|
|
872
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
873
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
874
|
+
case "InvalidNextTokenException":
|
|
875
|
+
case "com.amazonaws.acmpca#InvalidNextTokenException":
|
|
876
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
877
|
+
case "InvalidStateException":
|
|
878
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
879
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
880
|
+
case "RequestFailedException":
|
|
881
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
882
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
883
|
+
case "ResourceNotFoundException":
|
|
884
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
885
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
886
|
+
default:
|
|
887
|
+
const parsedBody = parsedOutput.body;
|
|
888
|
+
throwDefaultError({
|
|
889
|
+
output,
|
|
890
|
+
parsedBody,
|
|
891
|
+
exceptionCtor: __BaseException,
|
|
892
|
+
errorCode,
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
export const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
|
|
897
|
+
if (output.statusCode >= 300) {
|
|
898
|
+
return deserializeAws_json1_1ListTagsCommandError(output, context);
|
|
899
|
+
}
|
|
900
|
+
const data = await parseBody(output.body, context);
|
|
901
|
+
let contents = {};
|
|
902
|
+
contents = deserializeAws_json1_1ListTagsResponse(data, context);
|
|
903
|
+
const response = {
|
|
904
|
+
$metadata: deserializeMetadata(output),
|
|
905
|
+
...contents,
|
|
906
|
+
};
|
|
907
|
+
return Promise.resolve(response);
|
|
908
|
+
};
|
|
909
|
+
const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
910
|
+
const parsedOutput = {
|
|
911
|
+
...output,
|
|
912
|
+
body: await parseErrorBody(output.body, context),
|
|
913
|
+
};
|
|
914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
915
|
+
switch (errorCode) {
|
|
916
|
+
case "InvalidArnException":
|
|
917
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
918
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
919
|
+
case "InvalidStateException":
|
|
920
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
921
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
922
|
+
case "ResourceNotFoundException":
|
|
923
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
924
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
925
|
+
default:
|
|
926
|
+
const parsedBody = parsedOutput.body;
|
|
927
|
+
throwDefaultError({
|
|
928
|
+
output,
|
|
929
|
+
parsedBody,
|
|
930
|
+
exceptionCtor: __BaseException,
|
|
931
|
+
errorCode,
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
export const deserializeAws_json1_1PutPolicyCommand = async (output, context) => {
|
|
936
|
+
if (output.statusCode >= 300) {
|
|
937
|
+
return deserializeAws_json1_1PutPolicyCommandError(output, context);
|
|
938
|
+
}
|
|
939
|
+
await collectBody(output.body, context);
|
|
940
|
+
const response = {
|
|
941
|
+
$metadata: deserializeMetadata(output),
|
|
942
|
+
};
|
|
943
|
+
return Promise.resolve(response);
|
|
944
|
+
};
|
|
945
|
+
const deserializeAws_json1_1PutPolicyCommandError = async (output, context) => {
|
|
946
|
+
const parsedOutput = {
|
|
947
|
+
...output,
|
|
948
|
+
body: await parseErrorBody(output.body, context),
|
|
949
|
+
};
|
|
950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
+
switch (errorCode) {
|
|
952
|
+
case "ConcurrentModificationException":
|
|
953
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
954
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
955
|
+
case "InvalidArnException":
|
|
956
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
957
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
958
|
+
case "InvalidPolicyException":
|
|
959
|
+
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
960
|
+
throw await deserializeAws_json1_1InvalidPolicyExceptionResponse(parsedOutput, context);
|
|
961
|
+
case "InvalidStateException":
|
|
962
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
963
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
964
|
+
case "LockoutPreventedException":
|
|
965
|
+
case "com.amazonaws.acmpca#LockoutPreventedException":
|
|
966
|
+
throw await deserializeAws_json1_1LockoutPreventedExceptionResponse(parsedOutput, context);
|
|
967
|
+
case "RequestFailedException":
|
|
968
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
969
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
970
|
+
case "ResourceNotFoundException":
|
|
971
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
972
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
973
|
+
default:
|
|
974
|
+
const parsedBody = parsedOutput.body;
|
|
975
|
+
throwDefaultError({
|
|
976
|
+
output,
|
|
977
|
+
parsedBody,
|
|
978
|
+
exceptionCtor: __BaseException,
|
|
979
|
+
errorCode,
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
export const deserializeAws_json1_1RestoreCertificateAuthorityCommand = async (output, context) => {
|
|
984
|
+
if (output.statusCode >= 300) {
|
|
985
|
+
return deserializeAws_json1_1RestoreCertificateAuthorityCommandError(output, context);
|
|
986
|
+
}
|
|
987
|
+
await collectBody(output.body, context);
|
|
988
|
+
const response = {
|
|
989
|
+
$metadata: deserializeMetadata(output),
|
|
990
|
+
};
|
|
991
|
+
return Promise.resolve(response);
|
|
992
|
+
};
|
|
993
|
+
const deserializeAws_json1_1RestoreCertificateAuthorityCommandError = async (output, context) => {
|
|
994
|
+
const parsedOutput = {
|
|
995
|
+
...output,
|
|
996
|
+
body: await parseErrorBody(output.body, context),
|
|
997
|
+
};
|
|
998
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
+
switch (errorCode) {
|
|
1000
|
+
case "InvalidArnException":
|
|
1001
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1002
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
1003
|
+
case "InvalidStateException":
|
|
1004
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1005
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
1006
|
+
case "ResourceNotFoundException":
|
|
1007
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1008
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1009
|
+
default:
|
|
1010
|
+
const parsedBody = parsedOutput.body;
|
|
1011
|
+
throwDefaultError({
|
|
1012
|
+
output,
|
|
1013
|
+
parsedBody,
|
|
1014
|
+
exceptionCtor: __BaseException,
|
|
1015
|
+
errorCode,
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
export const deserializeAws_json1_1RevokeCertificateCommand = async (output, context) => {
|
|
1020
|
+
if (output.statusCode >= 300) {
|
|
1021
|
+
return deserializeAws_json1_1RevokeCertificateCommandError(output, context);
|
|
1022
|
+
}
|
|
1023
|
+
await collectBody(output.body, context);
|
|
1024
|
+
const response = {
|
|
1025
|
+
$metadata: deserializeMetadata(output),
|
|
1026
|
+
};
|
|
1027
|
+
return Promise.resolve(response);
|
|
1028
|
+
};
|
|
1029
|
+
const deserializeAws_json1_1RevokeCertificateCommandError = async (output, context) => {
|
|
1030
|
+
const parsedOutput = {
|
|
1031
|
+
...output,
|
|
1032
|
+
body: await parseErrorBody(output.body, context),
|
|
1033
|
+
};
|
|
1034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
+
switch (errorCode) {
|
|
1036
|
+
case "ConcurrentModificationException":
|
|
1037
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1038
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1039
|
+
case "InvalidArnException":
|
|
1040
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1041
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
1042
|
+
case "InvalidRequestException":
|
|
1043
|
+
case "com.amazonaws.acmpca#InvalidRequestException":
|
|
1044
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1045
|
+
case "InvalidStateException":
|
|
1046
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1047
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
1048
|
+
case "LimitExceededException":
|
|
1049
|
+
case "com.amazonaws.acmpca#LimitExceededException":
|
|
1050
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1051
|
+
case "RequestAlreadyProcessedException":
|
|
1052
|
+
case "com.amazonaws.acmpca#RequestAlreadyProcessedException":
|
|
1053
|
+
throw await deserializeAws_json1_1RequestAlreadyProcessedExceptionResponse(parsedOutput, context);
|
|
1054
|
+
case "RequestFailedException":
|
|
1055
|
+
case "com.amazonaws.acmpca#RequestFailedException":
|
|
1056
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
1057
|
+
case "RequestInProgressException":
|
|
1058
|
+
case "com.amazonaws.acmpca#RequestInProgressException":
|
|
1059
|
+
throw await deserializeAws_json1_1RequestInProgressExceptionResponse(parsedOutput, context);
|
|
1060
|
+
case "ResourceNotFoundException":
|
|
1061
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1062
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1063
|
+
default:
|
|
1064
|
+
const parsedBody = parsedOutput.body;
|
|
1065
|
+
throwDefaultError({
|
|
1066
|
+
output,
|
|
1067
|
+
parsedBody,
|
|
1068
|
+
exceptionCtor: __BaseException,
|
|
1069
|
+
errorCode,
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
};
|
|
1073
|
+
export const deserializeAws_json1_1TagCertificateAuthorityCommand = async (output, context) => {
|
|
1074
|
+
if (output.statusCode >= 300) {
|
|
1075
|
+
return deserializeAws_json1_1TagCertificateAuthorityCommandError(output, context);
|
|
1076
|
+
}
|
|
1077
|
+
await collectBody(output.body, context);
|
|
1078
|
+
const response = {
|
|
1079
|
+
$metadata: deserializeMetadata(output),
|
|
1080
|
+
};
|
|
1081
|
+
return Promise.resolve(response);
|
|
1082
|
+
};
|
|
1083
|
+
const deserializeAws_json1_1TagCertificateAuthorityCommandError = async (output, context) => {
|
|
1084
|
+
const parsedOutput = {
|
|
1085
|
+
...output,
|
|
1086
|
+
body: await parseErrorBody(output.body, context),
|
|
1087
|
+
};
|
|
1088
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
|
+
switch (errorCode) {
|
|
1090
|
+
case "InvalidArnException":
|
|
1091
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1092
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
1093
|
+
case "InvalidStateException":
|
|
1094
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1095
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
1096
|
+
case "InvalidTagException":
|
|
1097
|
+
case "com.amazonaws.acmpca#InvalidTagException":
|
|
1098
|
+
throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context);
|
|
1099
|
+
case "ResourceNotFoundException":
|
|
1100
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1101
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1102
|
+
case "TooManyTagsException":
|
|
1103
|
+
case "com.amazonaws.acmpca#TooManyTagsException":
|
|
1104
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1105
|
+
default:
|
|
1106
|
+
const parsedBody = parsedOutput.body;
|
|
1107
|
+
throwDefaultError({
|
|
1108
|
+
output,
|
|
1109
|
+
parsedBody,
|
|
1110
|
+
exceptionCtor: __BaseException,
|
|
1111
|
+
errorCode,
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
export const deserializeAws_json1_1UntagCertificateAuthorityCommand = async (output, context) => {
|
|
1116
|
+
if (output.statusCode >= 300) {
|
|
1117
|
+
return deserializeAws_json1_1UntagCertificateAuthorityCommandError(output, context);
|
|
1118
|
+
}
|
|
1119
|
+
await collectBody(output.body, context);
|
|
1120
|
+
const response = {
|
|
1121
|
+
$metadata: deserializeMetadata(output),
|
|
1122
|
+
};
|
|
1123
|
+
return Promise.resolve(response);
|
|
1124
|
+
};
|
|
1125
|
+
const deserializeAws_json1_1UntagCertificateAuthorityCommandError = async (output, context) => {
|
|
1126
|
+
const parsedOutput = {
|
|
1127
|
+
...output,
|
|
1128
|
+
body: await parseErrorBody(output.body, context),
|
|
1129
|
+
};
|
|
1130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
+
switch (errorCode) {
|
|
1132
|
+
case "InvalidArnException":
|
|
1133
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1134
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
1135
|
+
case "InvalidStateException":
|
|
1136
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1137
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
1138
|
+
case "InvalidTagException":
|
|
1139
|
+
case "com.amazonaws.acmpca#InvalidTagException":
|
|
1140
|
+
throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context);
|
|
1141
|
+
case "ResourceNotFoundException":
|
|
1142
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1143
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1144
|
+
default:
|
|
1145
|
+
const parsedBody = parsedOutput.body;
|
|
1146
|
+
throwDefaultError({
|
|
1147
|
+
output,
|
|
1148
|
+
parsedBody,
|
|
1149
|
+
exceptionCtor: __BaseException,
|
|
1150
|
+
errorCode,
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
};
|
|
1154
|
+
export const deserializeAws_json1_1UpdateCertificateAuthorityCommand = async (output, context) => {
|
|
1155
|
+
if (output.statusCode >= 300) {
|
|
1156
|
+
return deserializeAws_json1_1UpdateCertificateAuthorityCommandError(output, context);
|
|
1157
|
+
}
|
|
1158
|
+
await collectBody(output.body, context);
|
|
1159
|
+
const response = {
|
|
1160
|
+
$metadata: deserializeMetadata(output),
|
|
1161
|
+
};
|
|
1162
|
+
return Promise.resolve(response);
|
|
1163
|
+
};
|
|
1164
|
+
const deserializeAws_json1_1UpdateCertificateAuthorityCommandError = async (output, context) => {
|
|
1165
|
+
const parsedOutput = {
|
|
1166
|
+
...output,
|
|
1167
|
+
body: await parseErrorBody(output.body, context),
|
|
1168
|
+
};
|
|
1169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
|
+
switch (errorCode) {
|
|
1171
|
+
case "ConcurrentModificationException":
|
|
1172
|
+
case "com.amazonaws.acmpca#ConcurrentModificationException":
|
|
1173
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1174
|
+
case "InvalidArgsException":
|
|
1175
|
+
case "com.amazonaws.acmpca#InvalidArgsException":
|
|
1176
|
+
throw await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context);
|
|
1177
|
+
case "InvalidArnException":
|
|
1178
|
+
case "com.amazonaws.acmpca#InvalidArnException":
|
|
1179
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
1180
|
+
case "InvalidPolicyException":
|
|
1181
|
+
case "com.amazonaws.acmpca#InvalidPolicyException":
|
|
1182
|
+
throw await deserializeAws_json1_1InvalidPolicyExceptionResponse(parsedOutput, context);
|
|
1183
|
+
case "InvalidStateException":
|
|
1184
|
+
case "com.amazonaws.acmpca#InvalidStateException":
|
|
1185
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
1186
|
+
case "ResourceNotFoundException":
|
|
1187
|
+
case "com.amazonaws.acmpca#ResourceNotFoundException":
|
|
1188
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1189
|
+
default:
|
|
1190
|
+
const parsedBody = parsedOutput.body;
|
|
1191
|
+
throwDefaultError({
|
|
1192
|
+
output,
|
|
1193
|
+
parsedBody,
|
|
1194
|
+
exceptionCtor: __BaseException,
|
|
1195
|
+
errorCode,
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
const deserializeAws_json1_1CertificateMismatchExceptionResponse = async (parsedOutput, context) => {
|
|
1200
|
+
const body = parsedOutput.body;
|
|
1201
|
+
const deserialized = deserializeAws_json1_1CertificateMismatchException(body, context);
|
|
1202
|
+
const exception = new CertificateMismatchException({
|
|
1203
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1204
|
+
...deserialized,
|
|
1205
|
+
});
|
|
1206
|
+
return __decorateServiceException(exception, body);
|
|
1207
|
+
};
|
|
1208
|
+
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
1209
|
+
const body = parsedOutput.body;
|
|
1210
|
+
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
1211
|
+
const exception = new ConcurrentModificationException({
|
|
1212
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1213
|
+
...deserialized,
|
|
1214
|
+
});
|
|
1215
|
+
return __decorateServiceException(exception, body);
|
|
1216
|
+
};
|
|
1217
|
+
const deserializeAws_json1_1InvalidArgsExceptionResponse = async (parsedOutput, context) => {
|
|
1218
|
+
const body = parsedOutput.body;
|
|
1219
|
+
const deserialized = deserializeAws_json1_1InvalidArgsException(body, context);
|
|
1220
|
+
const exception = new InvalidArgsException({
|
|
1221
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1222
|
+
...deserialized,
|
|
1223
|
+
});
|
|
1224
|
+
return __decorateServiceException(exception, body);
|
|
1225
|
+
};
|
|
1226
|
+
const deserializeAws_json1_1InvalidArnExceptionResponse = async (parsedOutput, context) => {
|
|
1227
|
+
const body = parsedOutput.body;
|
|
1228
|
+
const deserialized = deserializeAws_json1_1InvalidArnException(body, context);
|
|
1229
|
+
const exception = new InvalidArnException({
|
|
1230
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1231
|
+
...deserialized,
|
|
1232
|
+
});
|
|
1233
|
+
return __decorateServiceException(exception, body);
|
|
1234
|
+
};
|
|
1235
|
+
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
1236
|
+
const body = parsedOutput.body;
|
|
1237
|
+
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
1238
|
+
const exception = new InvalidNextTokenException({
|
|
1239
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1240
|
+
...deserialized,
|
|
1241
|
+
});
|
|
1242
|
+
return __decorateServiceException(exception, body);
|
|
1243
|
+
};
|
|
1244
|
+
const deserializeAws_json1_1InvalidPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
1245
|
+
const body = parsedOutput.body;
|
|
1246
|
+
const deserialized = deserializeAws_json1_1InvalidPolicyException(body, context);
|
|
1247
|
+
const exception = new InvalidPolicyException({
|
|
1248
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1249
|
+
...deserialized,
|
|
1250
|
+
});
|
|
1251
|
+
return __decorateServiceException(exception, body);
|
|
1252
|
+
};
|
|
1253
|
+
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1254
|
+
const body = parsedOutput.body;
|
|
1255
|
+
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1256
|
+
const exception = new InvalidRequestException({
|
|
1257
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1258
|
+
...deserialized,
|
|
1259
|
+
});
|
|
1260
|
+
return __decorateServiceException(exception, body);
|
|
1261
|
+
};
|
|
1262
|
+
const deserializeAws_json1_1InvalidStateExceptionResponse = async (parsedOutput, context) => {
|
|
1263
|
+
const body = parsedOutput.body;
|
|
1264
|
+
const deserialized = deserializeAws_json1_1InvalidStateException(body, context);
|
|
1265
|
+
const exception = new InvalidStateException({
|
|
1266
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1267
|
+
...deserialized,
|
|
1268
|
+
});
|
|
1269
|
+
return __decorateServiceException(exception, body);
|
|
1270
|
+
};
|
|
1271
|
+
const deserializeAws_json1_1InvalidTagExceptionResponse = async (parsedOutput, context) => {
|
|
1272
|
+
const body = parsedOutput.body;
|
|
1273
|
+
const deserialized = deserializeAws_json1_1InvalidTagException(body, context);
|
|
1274
|
+
const exception = new InvalidTagException({
|
|
1275
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1276
|
+
...deserialized,
|
|
1277
|
+
});
|
|
1278
|
+
return __decorateServiceException(exception, body);
|
|
1279
|
+
};
|
|
1280
|
+
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1281
|
+
const body = parsedOutput.body;
|
|
1282
|
+
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1283
|
+
const exception = new LimitExceededException({
|
|
1284
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1285
|
+
...deserialized,
|
|
1286
|
+
});
|
|
1287
|
+
return __decorateServiceException(exception, body);
|
|
1288
|
+
};
|
|
1289
|
+
const deserializeAws_json1_1LockoutPreventedExceptionResponse = async (parsedOutput, context) => {
|
|
1290
|
+
const body = parsedOutput.body;
|
|
1291
|
+
const deserialized = deserializeAws_json1_1LockoutPreventedException(body, context);
|
|
1292
|
+
const exception = new LockoutPreventedException({
|
|
1293
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1294
|
+
...deserialized,
|
|
1295
|
+
});
|
|
1296
|
+
return __decorateServiceException(exception, body);
|
|
1297
|
+
};
|
|
1298
|
+
const deserializeAws_json1_1MalformedCertificateExceptionResponse = async (parsedOutput, context) => {
|
|
1299
|
+
const body = parsedOutput.body;
|
|
1300
|
+
const deserialized = deserializeAws_json1_1MalformedCertificateException(body, context);
|
|
1301
|
+
const exception = new MalformedCertificateException({
|
|
1302
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1303
|
+
...deserialized,
|
|
1304
|
+
});
|
|
1305
|
+
return __decorateServiceException(exception, body);
|
|
1306
|
+
};
|
|
1307
|
+
const deserializeAws_json1_1MalformedCSRExceptionResponse = async (parsedOutput, context) => {
|
|
1308
|
+
const body = parsedOutput.body;
|
|
1309
|
+
const deserialized = deserializeAws_json1_1MalformedCSRException(body, context);
|
|
1310
|
+
const exception = new MalformedCSRException({
|
|
1311
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1312
|
+
...deserialized,
|
|
1313
|
+
});
|
|
1314
|
+
return __decorateServiceException(exception, body);
|
|
1315
|
+
};
|
|
1316
|
+
const deserializeAws_json1_1PermissionAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1317
|
+
const body = parsedOutput.body;
|
|
1318
|
+
const deserialized = deserializeAws_json1_1PermissionAlreadyExistsException(body, context);
|
|
1319
|
+
const exception = new PermissionAlreadyExistsException({
|
|
1320
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1321
|
+
...deserialized,
|
|
1322
|
+
});
|
|
1323
|
+
return __decorateServiceException(exception, body);
|
|
1324
|
+
};
|
|
1325
|
+
const deserializeAws_json1_1RequestAlreadyProcessedExceptionResponse = async (parsedOutput, context) => {
|
|
1326
|
+
const body = parsedOutput.body;
|
|
1327
|
+
const deserialized = deserializeAws_json1_1RequestAlreadyProcessedException(body, context);
|
|
1328
|
+
const exception = new RequestAlreadyProcessedException({
|
|
1329
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1330
|
+
...deserialized,
|
|
1331
|
+
});
|
|
1332
|
+
return __decorateServiceException(exception, body);
|
|
1333
|
+
};
|
|
1334
|
+
const deserializeAws_json1_1RequestFailedExceptionResponse = async (parsedOutput, context) => {
|
|
1335
|
+
const body = parsedOutput.body;
|
|
1336
|
+
const deserialized = deserializeAws_json1_1RequestFailedException(body, context);
|
|
1337
|
+
const exception = new RequestFailedException({
|
|
1338
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1339
|
+
...deserialized,
|
|
1340
|
+
});
|
|
1341
|
+
return __decorateServiceException(exception, body);
|
|
1342
|
+
};
|
|
1343
|
+
const deserializeAws_json1_1RequestInProgressExceptionResponse = async (parsedOutput, context) => {
|
|
1344
|
+
const body = parsedOutput.body;
|
|
1345
|
+
const deserialized = deserializeAws_json1_1RequestInProgressException(body, context);
|
|
1346
|
+
const exception = new RequestInProgressException({
|
|
1347
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1348
|
+
...deserialized,
|
|
1349
|
+
});
|
|
1350
|
+
return __decorateServiceException(exception, body);
|
|
1351
|
+
};
|
|
1352
|
+
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1353
|
+
const body = parsedOutput.body;
|
|
1354
|
+
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1355
|
+
const exception = new ResourceNotFoundException({
|
|
1356
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1357
|
+
...deserialized,
|
|
1358
|
+
});
|
|
1359
|
+
return __decorateServiceException(exception, body);
|
|
1360
|
+
};
|
|
1361
|
+
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
1362
|
+
const body = parsedOutput.body;
|
|
1363
|
+
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1364
|
+
const exception = new TooManyTagsException({
|
|
1365
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
|
+
...deserialized,
|
|
1367
|
+
});
|
|
1368
|
+
return __decorateServiceException(exception, body);
|
|
1369
|
+
};
|
|
1370
|
+
const serializeAws_json1_1AccessDescription = (input, context) => {
|
|
1371
|
+
return {
|
|
1372
|
+
...(input.AccessLocation != null && {
|
|
1373
|
+
AccessLocation: serializeAws_json1_1GeneralName(input.AccessLocation, context),
|
|
1374
|
+
}),
|
|
1375
|
+
...(input.AccessMethod != null && { AccessMethod: serializeAws_json1_1AccessMethod(input.AccessMethod, context) }),
|
|
1376
|
+
};
|
|
1377
|
+
};
|
|
1378
|
+
const serializeAws_json1_1AccessDescriptionList = (input, context) => {
|
|
1957
1379
|
return input
|
|
1958
|
-
.filter(
|
|
1959
|
-
.map(
|
|
1380
|
+
.filter((e) => e != null)
|
|
1381
|
+
.map((entry) => {
|
|
1960
1382
|
return serializeAws_json1_1AccessDescription(entry, context);
|
|
1961
1383
|
});
|
|
1962
1384
|
};
|
|
1963
|
-
|
|
1964
|
-
return
|
|
1385
|
+
const serializeAws_json1_1AccessMethod = (input, context) => {
|
|
1386
|
+
return {
|
|
1387
|
+
...(input.AccessMethodType != null && { AccessMethodType: input.AccessMethodType }),
|
|
1388
|
+
...(input.CustomObjectIdentifier != null && { CustomObjectIdentifier: input.CustomObjectIdentifier }),
|
|
1389
|
+
};
|
|
1965
1390
|
};
|
|
1966
|
-
|
|
1391
|
+
const serializeAws_json1_1ActionList = (input, context) => {
|
|
1967
1392
|
return input
|
|
1968
|
-
.filter(
|
|
1969
|
-
.map(
|
|
1393
|
+
.filter((e) => e != null)
|
|
1394
|
+
.map((entry) => {
|
|
1970
1395
|
return entry;
|
|
1971
1396
|
});
|
|
1972
1397
|
};
|
|
1973
|
-
|
|
1974
|
-
return
|
|
1398
|
+
const serializeAws_json1_1ApiPassthrough = (input, context) => {
|
|
1399
|
+
return {
|
|
1400
|
+
...(input.Extensions != null && { Extensions: serializeAws_json1_1Extensions(input.Extensions, context) }),
|
|
1401
|
+
...(input.Subject != null && { Subject: serializeAws_json1_1ASN1Subject(input.Subject, context) }),
|
|
1402
|
+
};
|
|
1975
1403
|
};
|
|
1976
|
-
|
|
1977
|
-
return
|
|
1978
|
-
|
|
1979
|
-
|
|
1404
|
+
const serializeAws_json1_1ASN1Subject = (input, context) => {
|
|
1405
|
+
return {
|
|
1406
|
+
...(input.CommonName != null && { CommonName: input.CommonName }),
|
|
1407
|
+
...(input.Country != null && { Country: input.Country }),
|
|
1408
|
+
...(input.CustomAttributes != null && {
|
|
1409
|
+
CustomAttributes: serializeAws_json1_1CustomAttributeList(input.CustomAttributes, context),
|
|
1410
|
+
}),
|
|
1411
|
+
...(input.DistinguishedNameQualifier != null && { DistinguishedNameQualifier: input.DistinguishedNameQualifier }),
|
|
1412
|
+
...(input.GenerationQualifier != null && { GenerationQualifier: input.GenerationQualifier }),
|
|
1413
|
+
...(input.GivenName != null && { GivenName: input.GivenName }),
|
|
1414
|
+
...(input.Initials != null && { Initials: input.Initials }),
|
|
1415
|
+
...(input.Locality != null && { Locality: input.Locality }),
|
|
1416
|
+
...(input.Organization != null && { Organization: input.Organization }),
|
|
1417
|
+
...(input.OrganizationalUnit != null && { OrganizationalUnit: input.OrganizationalUnit }),
|
|
1418
|
+
...(input.Pseudonym != null && { Pseudonym: input.Pseudonym }),
|
|
1419
|
+
...(input.SerialNumber != null && { SerialNumber: input.SerialNumber }),
|
|
1420
|
+
...(input.State != null && { State: input.State }),
|
|
1421
|
+
...(input.Surname != null && { Surname: input.Surname }),
|
|
1422
|
+
...(input.Title != null && { Title: input.Title }),
|
|
1423
|
+
};
|
|
1980
1424
|
};
|
|
1981
|
-
|
|
1982
|
-
return
|
|
1983
|
-
|
|
1984
|
-
|
|
1425
|
+
const serializeAws_json1_1CertificateAuthorityConfiguration = (input, context) => {
|
|
1426
|
+
return {
|
|
1427
|
+
...(input.CsrExtensions != null && {
|
|
1428
|
+
CsrExtensions: serializeAws_json1_1CsrExtensions(input.CsrExtensions, context),
|
|
1429
|
+
}),
|
|
1430
|
+
...(input.KeyAlgorithm != null && { KeyAlgorithm: input.KeyAlgorithm }),
|
|
1431
|
+
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
1432
|
+
...(input.Subject != null && { Subject: serializeAws_json1_1ASN1Subject(input.Subject, context) }),
|
|
1433
|
+
};
|
|
1985
1434
|
};
|
|
1986
|
-
|
|
1435
|
+
const serializeAws_json1_1CertificatePolicyList = (input, context) => {
|
|
1987
1436
|
return input
|
|
1988
|
-
.filter(
|
|
1989
|
-
.map(
|
|
1437
|
+
.filter((e) => e != null)
|
|
1438
|
+
.map((entry) => {
|
|
1990
1439
|
return serializeAws_json1_1PolicyInformation(entry, context);
|
|
1991
1440
|
});
|
|
1992
1441
|
};
|
|
1993
|
-
|
|
1994
|
-
return
|
|
1442
|
+
const serializeAws_json1_1CreateCertificateAuthorityAuditReportRequest = (input, context) => {
|
|
1443
|
+
return {
|
|
1444
|
+
...(input.AuditReportResponseFormat != null && { AuditReportResponseFormat: input.AuditReportResponseFormat }),
|
|
1445
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1446
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
1447
|
+
};
|
|
1995
1448
|
};
|
|
1996
|
-
|
|
1997
|
-
return
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1449
|
+
const serializeAws_json1_1CreateCertificateAuthorityRequest = (input, context) => {
|
|
1450
|
+
return {
|
|
1451
|
+
...(input.CertificateAuthorityConfiguration != null && {
|
|
1452
|
+
CertificateAuthorityConfiguration: serializeAws_json1_1CertificateAuthorityConfiguration(input.CertificateAuthorityConfiguration, context),
|
|
1453
|
+
}),
|
|
1454
|
+
...(input.CertificateAuthorityType != null && { CertificateAuthorityType: input.CertificateAuthorityType }),
|
|
1455
|
+
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1456
|
+
...(input.KeyStorageSecurityStandard != null && { KeyStorageSecurityStandard: input.KeyStorageSecurityStandard }),
|
|
1457
|
+
...(input.RevocationConfiguration != null && {
|
|
1458
|
+
RevocationConfiguration: serializeAws_json1_1RevocationConfiguration(input.RevocationConfiguration, context),
|
|
1459
|
+
}),
|
|
1460
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1461
|
+
};
|
|
2002
1462
|
};
|
|
2003
|
-
|
|
2004
|
-
return
|
|
1463
|
+
const serializeAws_json1_1CreatePermissionRequest = (input, context) => {
|
|
1464
|
+
return {
|
|
1465
|
+
...(input.Actions != null && { Actions: serializeAws_json1_1ActionList(input.Actions, context) }),
|
|
1466
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1467
|
+
...(input.Principal != null && { Principal: input.Principal }),
|
|
1468
|
+
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
1469
|
+
};
|
|
2005
1470
|
};
|
|
2006
|
-
|
|
2007
|
-
return
|
|
1471
|
+
const serializeAws_json1_1CrlConfiguration = (input, context) => {
|
|
1472
|
+
return {
|
|
1473
|
+
...(input.CustomCname != null && { CustomCname: input.CustomCname }),
|
|
1474
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1475
|
+
...(input.ExpirationInDays != null && { ExpirationInDays: input.ExpirationInDays }),
|
|
1476
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
1477
|
+
...(input.S3ObjectAcl != null && { S3ObjectAcl: input.S3ObjectAcl }),
|
|
1478
|
+
};
|
|
2008
1479
|
};
|
|
2009
|
-
|
|
2010
|
-
return
|
|
2011
|
-
|
|
2012
|
-
|
|
1480
|
+
const serializeAws_json1_1CsrExtensions = (input, context) => {
|
|
1481
|
+
return {
|
|
1482
|
+
...(input.KeyUsage != null && { KeyUsage: serializeAws_json1_1KeyUsage(input.KeyUsage, context) }),
|
|
1483
|
+
...(input.SubjectInformationAccess != null && {
|
|
1484
|
+
SubjectInformationAccess: serializeAws_json1_1AccessDescriptionList(input.SubjectInformationAccess, context),
|
|
1485
|
+
}),
|
|
1486
|
+
};
|
|
2013
1487
|
};
|
|
2014
|
-
|
|
2015
|
-
return
|
|
1488
|
+
const serializeAws_json1_1CustomAttribute = (input, context) => {
|
|
1489
|
+
return {
|
|
1490
|
+
...(input.ObjectIdentifier != null && { ObjectIdentifier: input.ObjectIdentifier }),
|
|
1491
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1492
|
+
};
|
|
2016
1493
|
};
|
|
2017
|
-
|
|
1494
|
+
const serializeAws_json1_1CustomAttributeList = (input, context) => {
|
|
2018
1495
|
return input
|
|
2019
|
-
.filter(
|
|
2020
|
-
.map(
|
|
1496
|
+
.filter((e) => e != null)
|
|
1497
|
+
.map((entry) => {
|
|
2021
1498
|
return serializeAws_json1_1CustomAttribute(entry, context);
|
|
2022
1499
|
});
|
|
2023
1500
|
};
|
|
2024
|
-
|
|
2025
|
-
return
|
|
1501
|
+
const serializeAws_json1_1CustomExtension = (input, context) => {
|
|
1502
|
+
return {
|
|
1503
|
+
...(input.Critical != null && { Critical: input.Critical }),
|
|
1504
|
+
...(input.ObjectIdentifier != null && { ObjectIdentifier: input.ObjectIdentifier }),
|
|
1505
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1506
|
+
};
|
|
2026
1507
|
};
|
|
2027
|
-
|
|
1508
|
+
const serializeAws_json1_1CustomExtensionList = (input, context) => {
|
|
2028
1509
|
return input
|
|
2029
|
-
.filter(
|
|
2030
|
-
.map(
|
|
1510
|
+
.filter((e) => e != null)
|
|
1511
|
+
.map((entry) => {
|
|
2031
1512
|
return serializeAws_json1_1CustomExtension(entry, context);
|
|
2032
1513
|
});
|
|
2033
1514
|
};
|
|
2034
|
-
|
|
2035
|
-
return
|
|
2036
|
-
|
|
2037
|
-
|
|
1515
|
+
const serializeAws_json1_1DeleteCertificateAuthorityRequest = (input, context) => {
|
|
1516
|
+
return {
|
|
1517
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1518
|
+
...(input.PermanentDeletionTimeInDays != null && {
|
|
1519
|
+
PermanentDeletionTimeInDays: input.PermanentDeletionTimeInDays,
|
|
1520
|
+
}),
|
|
1521
|
+
};
|
|
2038
1522
|
};
|
|
2039
|
-
|
|
2040
|
-
return
|
|
1523
|
+
const serializeAws_json1_1DeletePermissionRequest = (input, context) => {
|
|
1524
|
+
return {
|
|
1525
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1526
|
+
...(input.Principal != null && { Principal: input.Principal }),
|
|
1527
|
+
...(input.SourceAccount != null && { SourceAccount: input.SourceAccount }),
|
|
1528
|
+
};
|
|
2041
1529
|
};
|
|
2042
|
-
|
|
2043
|
-
return
|
|
1530
|
+
const serializeAws_json1_1DeletePolicyRequest = (input, context) => {
|
|
1531
|
+
return {
|
|
1532
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1533
|
+
};
|
|
2044
1534
|
};
|
|
2045
|
-
|
|
2046
|
-
return
|
|
1535
|
+
const serializeAws_json1_1DescribeCertificateAuthorityAuditReportRequest = (input, context) => {
|
|
1536
|
+
return {
|
|
1537
|
+
...(input.AuditReportId != null && { AuditReportId: input.AuditReportId }),
|
|
1538
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1539
|
+
};
|
|
2047
1540
|
};
|
|
2048
|
-
|
|
2049
|
-
return
|
|
1541
|
+
const serializeAws_json1_1DescribeCertificateAuthorityRequest = (input, context) => {
|
|
1542
|
+
return {
|
|
1543
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1544
|
+
};
|
|
2050
1545
|
};
|
|
2051
|
-
|
|
2052
|
-
return
|
|
1546
|
+
const serializeAws_json1_1EdiPartyName = (input, context) => {
|
|
1547
|
+
return {
|
|
1548
|
+
...(input.NameAssigner != null && { NameAssigner: input.NameAssigner }),
|
|
1549
|
+
...(input.PartyName != null && { PartyName: input.PartyName }),
|
|
1550
|
+
};
|
|
2053
1551
|
};
|
|
2054
|
-
|
|
2055
|
-
return
|
|
2056
|
-
|
|
2057
|
-
|
|
1552
|
+
const serializeAws_json1_1ExtendedKeyUsage = (input, context) => {
|
|
1553
|
+
return {
|
|
1554
|
+
...(input.ExtendedKeyUsageObjectIdentifier != null && {
|
|
1555
|
+
ExtendedKeyUsageObjectIdentifier: input.ExtendedKeyUsageObjectIdentifier,
|
|
1556
|
+
}),
|
|
1557
|
+
...(input.ExtendedKeyUsageType != null && { ExtendedKeyUsageType: input.ExtendedKeyUsageType }),
|
|
1558
|
+
};
|
|
2058
1559
|
};
|
|
2059
|
-
|
|
1560
|
+
const serializeAws_json1_1ExtendedKeyUsageList = (input, context) => {
|
|
2060
1561
|
return input
|
|
2061
|
-
.filter(
|
|
2062
|
-
.map(
|
|
1562
|
+
.filter((e) => e != null)
|
|
1563
|
+
.map((entry) => {
|
|
2063
1564
|
return serializeAws_json1_1ExtendedKeyUsage(entry, context);
|
|
2064
1565
|
});
|
|
2065
1566
|
};
|
|
2066
|
-
|
|
2067
|
-
return
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
};
|
|
2082
|
-
|
|
1567
|
+
const serializeAws_json1_1Extensions = (input, context) => {
|
|
1568
|
+
return {
|
|
1569
|
+
...(input.CertificatePolicies != null && {
|
|
1570
|
+
CertificatePolicies: serializeAws_json1_1CertificatePolicyList(input.CertificatePolicies, context),
|
|
1571
|
+
}),
|
|
1572
|
+
...(input.CustomExtensions != null && {
|
|
1573
|
+
CustomExtensions: serializeAws_json1_1CustomExtensionList(input.CustomExtensions, context),
|
|
1574
|
+
}),
|
|
1575
|
+
...(input.ExtendedKeyUsage != null && {
|
|
1576
|
+
ExtendedKeyUsage: serializeAws_json1_1ExtendedKeyUsageList(input.ExtendedKeyUsage, context),
|
|
1577
|
+
}),
|
|
1578
|
+
...(input.KeyUsage != null && { KeyUsage: serializeAws_json1_1KeyUsage(input.KeyUsage, context) }),
|
|
1579
|
+
...(input.SubjectAlternativeNames != null && {
|
|
1580
|
+
SubjectAlternativeNames: serializeAws_json1_1GeneralNameList(input.SubjectAlternativeNames, context),
|
|
1581
|
+
}),
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
const serializeAws_json1_1GeneralName = (input, context) => {
|
|
1585
|
+
return {
|
|
1586
|
+
...(input.DirectoryName != null && {
|
|
1587
|
+
DirectoryName: serializeAws_json1_1ASN1Subject(input.DirectoryName, context),
|
|
1588
|
+
}),
|
|
1589
|
+
...(input.DnsName != null && { DnsName: input.DnsName }),
|
|
1590
|
+
...(input.EdiPartyName != null && { EdiPartyName: serializeAws_json1_1EdiPartyName(input.EdiPartyName, context) }),
|
|
1591
|
+
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
1592
|
+
...(input.OtherName != null && { OtherName: serializeAws_json1_1OtherName(input.OtherName, context) }),
|
|
1593
|
+
...(input.RegisteredId != null && { RegisteredId: input.RegisteredId }),
|
|
1594
|
+
...(input.Rfc822Name != null && { Rfc822Name: input.Rfc822Name }),
|
|
1595
|
+
...(input.UniformResourceIdentifier != null && { UniformResourceIdentifier: input.UniformResourceIdentifier }),
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
const serializeAws_json1_1GeneralNameList = (input, context) => {
|
|
2083
1599
|
return input
|
|
2084
|
-
.filter(
|
|
2085
|
-
.map(
|
|
1600
|
+
.filter((e) => e != null)
|
|
1601
|
+
.map((entry) => {
|
|
2086
1602
|
return serializeAws_json1_1GeneralName(entry, context);
|
|
2087
1603
|
});
|
|
2088
1604
|
};
|
|
2089
|
-
|
|
2090
|
-
return
|
|
1605
|
+
const serializeAws_json1_1GetCertificateAuthorityCertificateRequest = (input, context) => {
|
|
1606
|
+
return {
|
|
1607
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1608
|
+
};
|
|
2091
1609
|
};
|
|
2092
|
-
|
|
2093
|
-
return
|
|
1610
|
+
const serializeAws_json1_1GetCertificateAuthorityCsrRequest = (input, context) => {
|
|
1611
|
+
return {
|
|
1612
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1613
|
+
};
|
|
2094
1614
|
};
|
|
2095
|
-
|
|
2096
|
-
return
|
|
1615
|
+
const serializeAws_json1_1GetCertificateRequest = (input, context) => {
|
|
1616
|
+
return {
|
|
1617
|
+
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
1618
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1619
|
+
};
|
|
2097
1620
|
};
|
|
2098
|
-
|
|
2099
|
-
return
|
|
1621
|
+
const serializeAws_json1_1GetPolicyRequest = (input, context) => {
|
|
1622
|
+
return {
|
|
1623
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1624
|
+
};
|
|
2100
1625
|
};
|
|
2101
|
-
|
|
2102
|
-
return
|
|
1626
|
+
const serializeAws_json1_1ImportCertificateAuthorityCertificateRequest = (input, context) => {
|
|
1627
|
+
return {
|
|
1628
|
+
...(input.Certificate != null && { Certificate: context.base64Encoder(input.Certificate) }),
|
|
1629
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1630
|
+
...(input.CertificateChain != null && { CertificateChain: context.base64Encoder(input.CertificateChain) }),
|
|
1631
|
+
};
|
|
2103
1632
|
};
|
|
2104
|
-
|
|
2105
|
-
return
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
1633
|
+
const serializeAws_json1_1IssueCertificateRequest = (input, context) => {
|
|
1634
|
+
return {
|
|
1635
|
+
...(input.ApiPassthrough != null && {
|
|
1636
|
+
ApiPassthrough: serializeAws_json1_1ApiPassthrough(input.ApiPassthrough, context),
|
|
1637
|
+
}),
|
|
1638
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1639
|
+
...(input.Csr != null && { Csr: context.base64Encoder(input.Csr) }),
|
|
1640
|
+
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1641
|
+
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
1642
|
+
...(input.TemplateArn != null && { TemplateArn: input.TemplateArn }),
|
|
1643
|
+
...(input.Validity != null && { Validity: serializeAws_json1_1Validity(input.Validity, context) }),
|
|
1644
|
+
...(input.ValidityNotBefore != null && {
|
|
1645
|
+
ValidityNotBefore: serializeAws_json1_1Validity(input.ValidityNotBefore, context),
|
|
1646
|
+
}),
|
|
1647
|
+
};
|
|
2110
1648
|
};
|
|
2111
|
-
|
|
2112
|
-
return
|
|
1649
|
+
const serializeAws_json1_1KeyUsage = (input, context) => {
|
|
1650
|
+
return {
|
|
1651
|
+
...(input.CRLSign != null && { CRLSign: input.CRLSign }),
|
|
1652
|
+
...(input.DataEncipherment != null && { DataEncipherment: input.DataEncipherment }),
|
|
1653
|
+
...(input.DecipherOnly != null && { DecipherOnly: input.DecipherOnly }),
|
|
1654
|
+
...(input.DigitalSignature != null && { DigitalSignature: input.DigitalSignature }),
|
|
1655
|
+
...(input.EncipherOnly != null && { EncipherOnly: input.EncipherOnly }),
|
|
1656
|
+
...(input.KeyAgreement != null && { KeyAgreement: input.KeyAgreement }),
|
|
1657
|
+
...(input.KeyCertSign != null && { KeyCertSign: input.KeyCertSign }),
|
|
1658
|
+
...(input.KeyEncipherment != null && { KeyEncipherment: input.KeyEncipherment }),
|
|
1659
|
+
...(input.NonRepudiation != null && { NonRepudiation: input.NonRepudiation }),
|
|
1660
|
+
};
|
|
2113
1661
|
};
|
|
2114
|
-
|
|
2115
|
-
return
|
|
1662
|
+
const serializeAws_json1_1ListCertificateAuthoritiesRequest = (input, context) => {
|
|
1663
|
+
return {
|
|
1664
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1665
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1666
|
+
...(input.ResourceOwner != null && { ResourceOwner: input.ResourceOwner }),
|
|
1667
|
+
};
|
|
2116
1668
|
};
|
|
2117
|
-
|
|
2118
|
-
return
|
|
1669
|
+
const serializeAws_json1_1ListPermissionsRequest = (input, context) => {
|
|
1670
|
+
return {
|
|
1671
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1672
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1673
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1674
|
+
};
|
|
2119
1675
|
};
|
|
2120
|
-
|
|
2121
|
-
return
|
|
1676
|
+
const serializeAws_json1_1ListTagsRequest = (input, context) => {
|
|
1677
|
+
return {
|
|
1678
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1679
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1680
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1681
|
+
};
|
|
2122
1682
|
};
|
|
2123
|
-
|
|
2124
|
-
return
|
|
1683
|
+
const serializeAws_json1_1OcspConfiguration = (input, context) => {
|
|
1684
|
+
return {
|
|
1685
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1686
|
+
...(input.OcspCustomCname != null && { OcspCustomCname: input.OcspCustomCname }),
|
|
1687
|
+
};
|
|
2125
1688
|
};
|
|
2126
|
-
|
|
2127
|
-
return
|
|
1689
|
+
const serializeAws_json1_1OtherName = (input, context) => {
|
|
1690
|
+
return {
|
|
1691
|
+
...(input.TypeId != null && { TypeId: input.TypeId }),
|
|
1692
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1693
|
+
};
|
|
2128
1694
|
};
|
|
2129
|
-
|
|
2130
|
-
return
|
|
2131
|
-
|
|
2132
|
-
|
|
1695
|
+
const serializeAws_json1_1PolicyInformation = (input, context) => {
|
|
1696
|
+
return {
|
|
1697
|
+
...(input.CertPolicyId != null && { CertPolicyId: input.CertPolicyId }),
|
|
1698
|
+
...(input.PolicyQualifiers != null && {
|
|
1699
|
+
PolicyQualifiers: serializeAws_json1_1PolicyQualifierInfoList(input.PolicyQualifiers, context),
|
|
1700
|
+
}),
|
|
1701
|
+
};
|
|
2133
1702
|
};
|
|
2134
|
-
|
|
2135
|
-
return
|
|
1703
|
+
const serializeAws_json1_1PolicyQualifierInfo = (input, context) => {
|
|
1704
|
+
return {
|
|
1705
|
+
...(input.PolicyQualifierId != null && { PolicyQualifierId: input.PolicyQualifierId }),
|
|
1706
|
+
...(input.Qualifier != null && { Qualifier: serializeAws_json1_1Qualifier(input.Qualifier, context) }),
|
|
1707
|
+
};
|
|
2136
1708
|
};
|
|
2137
|
-
|
|
1709
|
+
const serializeAws_json1_1PolicyQualifierInfoList = (input, context) => {
|
|
2138
1710
|
return input
|
|
2139
|
-
.filter(
|
|
2140
|
-
.map(
|
|
1711
|
+
.filter((e) => e != null)
|
|
1712
|
+
.map((entry) => {
|
|
2141
1713
|
return serializeAws_json1_1PolicyQualifierInfo(entry, context);
|
|
2142
1714
|
});
|
|
2143
1715
|
};
|
|
2144
|
-
|
|
2145
|
-
return
|
|
1716
|
+
const serializeAws_json1_1PutPolicyRequest = (input, context) => {
|
|
1717
|
+
return {
|
|
1718
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
1719
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1720
|
+
};
|
|
2146
1721
|
};
|
|
2147
|
-
|
|
2148
|
-
return
|
|
1722
|
+
const serializeAws_json1_1Qualifier = (input, context) => {
|
|
1723
|
+
return {
|
|
1724
|
+
...(input.CpsUri != null && { CpsUri: input.CpsUri }),
|
|
1725
|
+
};
|
|
2149
1726
|
};
|
|
2150
|
-
|
|
2151
|
-
return
|
|
1727
|
+
const serializeAws_json1_1RestoreCertificateAuthorityRequest = (input, context) => {
|
|
1728
|
+
return {
|
|
1729
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1730
|
+
};
|
|
2152
1731
|
};
|
|
2153
|
-
|
|
2154
|
-
return
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
1732
|
+
const serializeAws_json1_1RevocationConfiguration = (input, context) => {
|
|
1733
|
+
return {
|
|
1734
|
+
...(input.CrlConfiguration != null && {
|
|
1735
|
+
CrlConfiguration: serializeAws_json1_1CrlConfiguration(input.CrlConfiguration, context),
|
|
1736
|
+
}),
|
|
1737
|
+
...(input.OcspConfiguration != null && {
|
|
1738
|
+
OcspConfiguration: serializeAws_json1_1OcspConfiguration(input.OcspConfiguration, context),
|
|
1739
|
+
}),
|
|
1740
|
+
};
|
|
2159
1741
|
};
|
|
2160
|
-
|
|
2161
|
-
return
|
|
1742
|
+
const serializeAws_json1_1RevokeCertificateRequest = (input, context) => {
|
|
1743
|
+
return {
|
|
1744
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1745
|
+
...(input.CertificateSerial != null && { CertificateSerial: input.CertificateSerial }),
|
|
1746
|
+
...(input.RevocationReason != null && { RevocationReason: input.RevocationReason }),
|
|
1747
|
+
};
|
|
2162
1748
|
};
|
|
2163
|
-
|
|
2164
|
-
return
|
|
1749
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1750
|
+
return {
|
|
1751
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1752
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1753
|
+
};
|
|
2165
1754
|
};
|
|
2166
|
-
|
|
2167
|
-
return
|
|
1755
|
+
const serializeAws_json1_1TagCertificateAuthorityRequest = (input, context) => {
|
|
1756
|
+
return {
|
|
1757
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1758
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1759
|
+
};
|
|
2168
1760
|
};
|
|
2169
|
-
|
|
1761
|
+
const serializeAws_json1_1TagList = (input, context) => {
|
|
2170
1762
|
return input
|
|
2171
|
-
.filter(
|
|
2172
|
-
.map(
|
|
1763
|
+
.filter((e) => e != null)
|
|
1764
|
+
.map((entry) => {
|
|
2173
1765
|
return serializeAws_json1_1Tag(entry, context);
|
|
2174
1766
|
});
|
|
2175
1767
|
};
|
|
2176
|
-
|
|
2177
|
-
return
|
|
1768
|
+
const serializeAws_json1_1UntagCertificateAuthorityRequest = (input, context) => {
|
|
1769
|
+
return {
|
|
1770
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1771
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1772
|
+
};
|
|
2178
1773
|
};
|
|
2179
|
-
|
|
2180
|
-
return
|
|
2181
|
-
|
|
2182
|
-
|
|
1774
|
+
const serializeAws_json1_1UpdateCertificateAuthorityRequest = (input, context) => {
|
|
1775
|
+
return {
|
|
1776
|
+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
|
|
1777
|
+
...(input.RevocationConfiguration != null && {
|
|
1778
|
+
RevocationConfiguration: serializeAws_json1_1RevocationConfiguration(input.RevocationConfiguration, context),
|
|
1779
|
+
}),
|
|
1780
|
+
...(input.Status != null && { Status: input.Status }),
|
|
1781
|
+
};
|
|
2183
1782
|
};
|
|
2184
|
-
|
|
2185
|
-
return
|
|
1783
|
+
const serializeAws_json1_1Validity = (input, context) => {
|
|
1784
|
+
return {
|
|
1785
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1786
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1787
|
+
};
|
|
2186
1788
|
};
|
|
2187
|
-
|
|
1789
|
+
const deserializeAws_json1_1AccessDescription = (output, context) => {
|
|
2188
1790
|
return {
|
|
2189
1791
|
AccessLocation: output.AccessLocation != null ? deserializeAws_json1_1GeneralName(output.AccessLocation, context) : undefined,
|
|
2190
1792
|
AccessMethod: output.AccessMethod != null ? deserializeAws_json1_1AccessMethod(output.AccessMethod, context) : undefined,
|
|
2191
1793
|
};
|
|
2192
1794
|
};
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
.filter(
|
|
2196
|
-
.map(
|
|
1795
|
+
const deserializeAws_json1_1AccessDescriptionList = (output, context) => {
|
|
1796
|
+
const retVal = (output || [])
|
|
1797
|
+
.filter((e) => e != null)
|
|
1798
|
+
.map((entry) => {
|
|
2197
1799
|
if (entry === null) {
|
|
2198
1800
|
return null;
|
|
2199
1801
|
}
|
|
@@ -2201,16 +1803,16 @@ var deserializeAws_json1_1AccessDescriptionList = function (output, context) {
|
|
|
2201
1803
|
});
|
|
2202
1804
|
return retVal;
|
|
2203
1805
|
};
|
|
2204
|
-
|
|
1806
|
+
const deserializeAws_json1_1AccessMethod = (output, context) => {
|
|
2205
1807
|
return {
|
|
2206
1808
|
AccessMethodType: __expectString(output.AccessMethodType),
|
|
2207
1809
|
CustomObjectIdentifier: __expectString(output.CustomObjectIdentifier),
|
|
2208
1810
|
};
|
|
2209
1811
|
};
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
.filter(
|
|
2213
|
-
.map(
|
|
1812
|
+
const deserializeAws_json1_1ActionList = (output, context) => {
|
|
1813
|
+
const retVal = (output || [])
|
|
1814
|
+
.filter((e) => e != null)
|
|
1815
|
+
.map((entry) => {
|
|
2214
1816
|
if (entry === null) {
|
|
2215
1817
|
return null;
|
|
2216
1818
|
}
|
|
@@ -2218,7 +1820,7 @@ var deserializeAws_json1_1ActionList = function (output, context) {
|
|
|
2218
1820
|
});
|
|
2219
1821
|
return retVal;
|
|
2220
1822
|
};
|
|
2221
|
-
|
|
1823
|
+
const deserializeAws_json1_1ASN1Subject = (output, context) => {
|
|
2222
1824
|
return {
|
|
2223
1825
|
CommonName: __expectString(output.CommonName),
|
|
2224
1826
|
Country: __expectString(output.Country),
|
|
@@ -2239,10 +1841,10 @@ var deserializeAws_json1_1ASN1Subject = function (output, context) {
|
|
|
2239
1841
|
Title: __expectString(output.Title),
|
|
2240
1842
|
};
|
|
2241
1843
|
};
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
.filter(
|
|
2245
|
-
.map(
|
|
1844
|
+
const deserializeAws_json1_1CertificateAuthorities = (output, context) => {
|
|
1845
|
+
const retVal = (output || [])
|
|
1846
|
+
.filter((e) => e != null)
|
|
1847
|
+
.map((entry) => {
|
|
2246
1848
|
if (entry === null) {
|
|
2247
1849
|
return null;
|
|
2248
1850
|
}
|
|
@@ -2250,7 +1852,7 @@ var deserializeAws_json1_1CertificateAuthorities = function (output, context) {
|
|
|
2250
1852
|
});
|
|
2251
1853
|
return retVal;
|
|
2252
1854
|
};
|
|
2253
|
-
|
|
1855
|
+
const deserializeAws_json1_1CertificateAuthority = (output, context) => {
|
|
2254
1856
|
return {
|
|
2255
1857
|
Arn: __expectString(output.Arn),
|
|
2256
1858
|
CertificateAuthorityConfiguration: output.CertificateAuthorityConfiguration != null
|
|
@@ -2276,7 +1878,7 @@ var deserializeAws_json1_1CertificateAuthority = function (output, context) {
|
|
|
2276
1878
|
Type: __expectString(output.Type),
|
|
2277
1879
|
};
|
|
2278
1880
|
};
|
|
2279
|
-
|
|
1881
|
+
const deserializeAws_json1_1CertificateAuthorityConfiguration = (output, context) => {
|
|
2280
1882
|
return {
|
|
2281
1883
|
CsrExtensions: output.CsrExtensions != null ? deserializeAws_json1_1CsrExtensions(output.CsrExtensions, context) : undefined,
|
|
2282
1884
|
KeyAlgorithm: __expectString(output.KeyAlgorithm),
|
|
@@ -2284,28 +1886,28 @@ var deserializeAws_json1_1CertificateAuthorityConfiguration = function (output,
|
|
|
2284
1886
|
Subject: output.Subject != null ? deserializeAws_json1_1ASN1Subject(output.Subject, context) : undefined,
|
|
2285
1887
|
};
|
|
2286
1888
|
};
|
|
2287
|
-
|
|
1889
|
+
const deserializeAws_json1_1CertificateMismatchException = (output, context) => {
|
|
2288
1890
|
return {
|
|
2289
1891
|
message: __expectString(output.message),
|
|
2290
1892
|
};
|
|
2291
1893
|
};
|
|
2292
|
-
|
|
1894
|
+
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
2293
1895
|
return {
|
|
2294
1896
|
message: __expectString(output.message),
|
|
2295
1897
|
};
|
|
2296
1898
|
};
|
|
2297
|
-
|
|
1899
|
+
const deserializeAws_json1_1CreateCertificateAuthorityAuditReportResponse = (output, context) => {
|
|
2298
1900
|
return {
|
|
2299
1901
|
AuditReportId: __expectString(output.AuditReportId),
|
|
2300
1902
|
S3Key: __expectString(output.S3Key),
|
|
2301
1903
|
};
|
|
2302
1904
|
};
|
|
2303
|
-
|
|
1905
|
+
const deserializeAws_json1_1CreateCertificateAuthorityResponse = (output, context) => {
|
|
2304
1906
|
return {
|
|
2305
1907
|
CertificateAuthorityArn: __expectString(output.CertificateAuthorityArn),
|
|
2306
1908
|
};
|
|
2307
1909
|
};
|
|
2308
|
-
|
|
1910
|
+
const deserializeAws_json1_1CrlConfiguration = (output, context) => {
|
|
2309
1911
|
return {
|
|
2310
1912
|
CustomCname: __expectString(output.CustomCname),
|
|
2311
1913
|
Enabled: __expectBoolean(output.Enabled),
|
|
@@ -2314,7 +1916,7 @@ var deserializeAws_json1_1CrlConfiguration = function (output, context) {
|
|
|
2314
1916
|
S3ObjectAcl: __expectString(output.S3ObjectAcl),
|
|
2315
1917
|
};
|
|
2316
1918
|
};
|
|
2317
|
-
|
|
1919
|
+
const deserializeAws_json1_1CsrExtensions = (output, context) => {
|
|
2318
1920
|
return {
|
|
2319
1921
|
KeyUsage: output.KeyUsage != null ? deserializeAws_json1_1KeyUsage(output.KeyUsage, context) : undefined,
|
|
2320
1922
|
SubjectInformationAccess: output.SubjectInformationAccess != null
|
|
@@ -2322,16 +1924,16 @@ var deserializeAws_json1_1CsrExtensions = function (output, context) {
|
|
|
2322
1924
|
: undefined,
|
|
2323
1925
|
};
|
|
2324
1926
|
};
|
|
2325
|
-
|
|
1927
|
+
const deserializeAws_json1_1CustomAttribute = (output, context) => {
|
|
2326
1928
|
return {
|
|
2327
1929
|
ObjectIdentifier: __expectString(output.ObjectIdentifier),
|
|
2328
1930
|
Value: __expectString(output.Value),
|
|
2329
1931
|
};
|
|
2330
1932
|
};
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
.filter(
|
|
2334
|
-
.map(
|
|
1933
|
+
const deserializeAws_json1_1CustomAttributeList = (output, context) => {
|
|
1934
|
+
const retVal = (output || [])
|
|
1935
|
+
.filter((e) => e != null)
|
|
1936
|
+
.map((entry) => {
|
|
2335
1937
|
if (entry === null) {
|
|
2336
1938
|
return null;
|
|
2337
1939
|
}
|
|
@@ -2339,7 +1941,7 @@ var deserializeAws_json1_1CustomAttributeList = function (output, context) {
|
|
|
2339
1941
|
});
|
|
2340
1942
|
return retVal;
|
|
2341
1943
|
};
|
|
2342
|
-
|
|
1944
|
+
const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportResponse = (output, context) => {
|
|
2343
1945
|
return {
|
|
2344
1946
|
AuditReportStatus: __expectString(output.AuditReportStatus),
|
|
2345
1947
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -2347,20 +1949,20 @@ var deserializeAws_json1_1DescribeCertificateAuthorityAuditReportResponse = func
|
|
|
2347
1949
|
S3Key: __expectString(output.S3Key),
|
|
2348
1950
|
};
|
|
2349
1951
|
};
|
|
2350
|
-
|
|
1952
|
+
const deserializeAws_json1_1DescribeCertificateAuthorityResponse = (output, context) => {
|
|
2351
1953
|
return {
|
|
2352
1954
|
CertificateAuthority: output.CertificateAuthority != null
|
|
2353
1955
|
? deserializeAws_json1_1CertificateAuthority(output.CertificateAuthority, context)
|
|
2354
1956
|
: undefined,
|
|
2355
1957
|
};
|
|
2356
1958
|
};
|
|
2357
|
-
|
|
1959
|
+
const deserializeAws_json1_1EdiPartyName = (output, context) => {
|
|
2358
1960
|
return {
|
|
2359
1961
|
NameAssigner: __expectString(output.NameAssigner),
|
|
2360
1962
|
PartyName: __expectString(output.PartyName),
|
|
2361
1963
|
};
|
|
2362
1964
|
};
|
|
2363
|
-
|
|
1965
|
+
const deserializeAws_json1_1GeneralName = (output, context) => {
|
|
2364
1966
|
return {
|
|
2365
1967
|
DirectoryName: output.DirectoryName != null ? deserializeAws_json1_1ASN1Subject(output.DirectoryName, context) : undefined,
|
|
2366
1968
|
DnsName: __expectString(output.DnsName),
|
|
@@ -2372,69 +1974,69 @@ var deserializeAws_json1_1GeneralName = function (output, context) {
|
|
|
2372
1974
|
UniformResourceIdentifier: __expectString(output.UniformResourceIdentifier),
|
|
2373
1975
|
};
|
|
2374
1976
|
};
|
|
2375
|
-
|
|
1977
|
+
const deserializeAws_json1_1GetCertificateAuthorityCertificateResponse = (output, context) => {
|
|
2376
1978
|
return {
|
|
2377
1979
|
Certificate: __expectString(output.Certificate),
|
|
2378
1980
|
CertificateChain: __expectString(output.CertificateChain),
|
|
2379
1981
|
};
|
|
2380
1982
|
};
|
|
2381
|
-
|
|
1983
|
+
const deserializeAws_json1_1GetCertificateAuthorityCsrResponse = (output, context) => {
|
|
2382
1984
|
return {
|
|
2383
1985
|
Csr: __expectString(output.Csr),
|
|
2384
1986
|
};
|
|
2385
1987
|
};
|
|
2386
|
-
|
|
1988
|
+
const deserializeAws_json1_1GetCertificateResponse = (output, context) => {
|
|
2387
1989
|
return {
|
|
2388
1990
|
Certificate: __expectString(output.Certificate),
|
|
2389
1991
|
CertificateChain: __expectString(output.CertificateChain),
|
|
2390
1992
|
};
|
|
2391
1993
|
};
|
|
2392
|
-
|
|
1994
|
+
const deserializeAws_json1_1GetPolicyResponse = (output, context) => {
|
|
2393
1995
|
return {
|
|
2394
1996
|
Policy: __expectString(output.Policy),
|
|
2395
1997
|
};
|
|
2396
1998
|
};
|
|
2397
|
-
|
|
1999
|
+
const deserializeAws_json1_1InvalidArgsException = (output, context) => {
|
|
2398
2000
|
return {
|
|
2399
2001
|
message: __expectString(output.message),
|
|
2400
2002
|
};
|
|
2401
2003
|
};
|
|
2402
|
-
|
|
2004
|
+
const deserializeAws_json1_1InvalidArnException = (output, context) => {
|
|
2403
2005
|
return {
|
|
2404
2006
|
message: __expectString(output.message),
|
|
2405
2007
|
};
|
|
2406
2008
|
};
|
|
2407
|
-
|
|
2009
|
+
const deserializeAws_json1_1InvalidNextTokenException = (output, context) => {
|
|
2408
2010
|
return {
|
|
2409
2011
|
message: __expectString(output.message),
|
|
2410
2012
|
};
|
|
2411
2013
|
};
|
|
2412
|
-
|
|
2014
|
+
const deserializeAws_json1_1InvalidPolicyException = (output, context) => {
|
|
2413
2015
|
return {
|
|
2414
2016
|
message: __expectString(output.message),
|
|
2415
2017
|
};
|
|
2416
2018
|
};
|
|
2417
|
-
|
|
2019
|
+
const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
2418
2020
|
return {
|
|
2419
2021
|
message: __expectString(output.message),
|
|
2420
2022
|
};
|
|
2421
2023
|
};
|
|
2422
|
-
|
|
2024
|
+
const deserializeAws_json1_1InvalidStateException = (output, context) => {
|
|
2423
2025
|
return {
|
|
2424
2026
|
message: __expectString(output.message),
|
|
2425
2027
|
};
|
|
2426
2028
|
};
|
|
2427
|
-
|
|
2029
|
+
const deserializeAws_json1_1InvalidTagException = (output, context) => {
|
|
2428
2030
|
return {
|
|
2429
2031
|
message: __expectString(output.message),
|
|
2430
2032
|
};
|
|
2431
2033
|
};
|
|
2432
|
-
|
|
2034
|
+
const deserializeAws_json1_1IssueCertificateResponse = (output, context) => {
|
|
2433
2035
|
return {
|
|
2434
2036
|
CertificateArn: __expectString(output.CertificateArn),
|
|
2435
2037
|
};
|
|
2436
2038
|
};
|
|
2437
|
-
|
|
2039
|
+
const deserializeAws_json1_1KeyUsage = (output, context) => {
|
|
2438
2040
|
return {
|
|
2439
2041
|
CRLSign: __expectBoolean(output.CRLSign),
|
|
2440
2042
|
DataEncipherment: __expectBoolean(output.DataEncipherment),
|
|
@@ -2447,12 +2049,12 @@ var deserializeAws_json1_1KeyUsage = function (output, context) {
|
|
|
2447
2049
|
NonRepudiation: __expectBoolean(output.NonRepudiation),
|
|
2448
2050
|
};
|
|
2449
2051
|
};
|
|
2450
|
-
|
|
2052
|
+
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
2451
2053
|
return {
|
|
2452
2054
|
message: __expectString(output.message),
|
|
2453
2055
|
};
|
|
2454
2056
|
};
|
|
2455
|
-
|
|
2057
|
+
const deserializeAws_json1_1ListCertificateAuthoritiesResponse = (output, context) => {
|
|
2456
2058
|
return {
|
|
2457
2059
|
CertificateAuthorities: output.CertificateAuthorities != null
|
|
2458
2060
|
? deserializeAws_json1_1CertificateAuthorities(output.CertificateAuthorities, context)
|
|
@@ -2460,46 +2062,46 @@ var deserializeAws_json1_1ListCertificateAuthoritiesResponse = function (output,
|
|
|
2460
2062
|
NextToken: __expectString(output.NextToken),
|
|
2461
2063
|
};
|
|
2462
2064
|
};
|
|
2463
|
-
|
|
2065
|
+
const deserializeAws_json1_1ListPermissionsResponse = (output, context) => {
|
|
2464
2066
|
return {
|
|
2465
2067
|
NextToken: __expectString(output.NextToken),
|
|
2466
2068
|
Permissions: output.Permissions != null ? deserializeAws_json1_1PermissionList(output.Permissions, context) : undefined,
|
|
2467
2069
|
};
|
|
2468
2070
|
};
|
|
2469
|
-
|
|
2071
|
+
const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
2470
2072
|
return {
|
|
2471
2073
|
NextToken: __expectString(output.NextToken),
|
|
2472
2074
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2473
2075
|
};
|
|
2474
2076
|
};
|
|
2475
|
-
|
|
2077
|
+
const deserializeAws_json1_1LockoutPreventedException = (output, context) => {
|
|
2476
2078
|
return {
|
|
2477
2079
|
message: __expectString(output.message),
|
|
2478
2080
|
};
|
|
2479
2081
|
};
|
|
2480
|
-
|
|
2082
|
+
const deserializeAws_json1_1MalformedCertificateException = (output, context) => {
|
|
2481
2083
|
return {
|
|
2482
2084
|
message: __expectString(output.message),
|
|
2483
2085
|
};
|
|
2484
2086
|
};
|
|
2485
|
-
|
|
2087
|
+
const deserializeAws_json1_1MalformedCSRException = (output, context) => {
|
|
2486
2088
|
return {
|
|
2487
2089
|
message: __expectString(output.message),
|
|
2488
2090
|
};
|
|
2489
2091
|
};
|
|
2490
|
-
|
|
2092
|
+
const deserializeAws_json1_1OcspConfiguration = (output, context) => {
|
|
2491
2093
|
return {
|
|
2492
2094
|
Enabled: __expectBoolean(output.Enabled),
|
|
2493
2095
|
OcspCustomCname: __expectString(output.OcspCustomCname),
|
|
2494
2096
|
};
|
|
2495
2097
|
};
|
|
2496
|
-
|
|
2098
|
+
const deserializeAws_json1_1OtherName = (output, context) => {
|
|
2497
2099
|
return {
|
|
2498
2100
|
TypeId: __expectString(output.TypeId),
|
|
2499
2101
|
Value: __expectString(output.Value),
|
|
2500
2102
|
};
|
|
2501
2103
|
};
|
|
2502
|
-
|
|
2104
|
+
const deserializeAws_json1_1Permission = (output, context) => {
|
|
2503
2105
|
return {
|
|
2504
2106
|
Actions: output.Actions != null ? deserializeAws_json1_1ActionList(output.Actions, context) : undefined,
|
|
2505
2107
|
CertificateAuthorityArn: __expectString(output.CertificateAuthorityArn),
|
|
@@ -2509,15 +2111,15 @@ var deserializeAws_json1_1Permission = function (output, context) {
|
|
|
2509
2111
|
SourceAccount: __expectString(output.SourceAccount),
|
|
2510
2112
|
};
|
|
2511
2113
|
};
|
|
2512
|
-
|
|
2114
|
+
const deserializeAws_json1_1PermissionAlreadyExistsException = (output, context) => {
|
|
2513
2115
|
return {
|
|
2514
2116
|
message: __expectString(output.message),
|
|
2515
2117
|
};
|
|
2516
2118
|
};
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
.filter(
|
|
2520
|
-
.map(
|
|
2119
|
+
const deserializeAws_json1_1PermissionList = (output, context) => {
|
|
2120
|
+
const retVal = (output || [])
|
|
2121
|
+
.filter((e) => e != null)
|
|
2122
|
+
.map((entry) => {
|
|
2521
2123
|
if (entry === null) {
|
|
2522
2124
|
return null;
|
|
2523
2125
|
}
|
|
@@ -2525,27 +2127,27 @@ var deserializeAws_json1_1PermissionList = function (output, context) {
|
|
|
2525
2127
|
});
|
|
2526
2128
|
return retVal;
|
|
2527
2129
|
};
|
|
2528
|
-
|
|
2130
|
+
const deserializeAws_json1_1RequestAlreadyProcessedException = (output, context) => {
|
|
2529
2131
|
return {
|
|
2530
2132
|
message: __expectString(output.message),
|
|
2531
2133
|
};
|
|
2532
2134
|
};
|
|
2533
|
-
|
|
2135
|
+
const deserializeAws_json1_1RequestFailedException = (output, context) => {
|
|
2534
2136
|
return {
|
|
2535
2137
|
message: __expectString(output.message),
|
|
2536
2138
|
};
|
|
2537
2139
|
};
|
|
2538
|
-
|
|
2140
|
+
const deserializeAws_json1_1RequestInProgressException = (output, context) => {
|
|
2539
2141
|
return {
|
|
2540
2142
|
message: __expectString(output.message),
|
|
2541
2143
|
};
|
|
2542
2144
|
};
|
|
2543
|
-
|
|
2145
|
+
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
2544
2146
|
return {
|
|
2545
2147
|
message: __expectString(output.message),
|
|
2546
2148
|
};
|
|
2547
2149
|
};
|
|
2548
|
-
|
|
2150
|
+
const deserializeAws_json1_1RevocationConfiguration = (output, context) => {
|
|
2549
2151
|
return {
|
|
2550
2152
|
CrlConfiguration: output.CrlConfiguration != null
|
|
2551
2153
|
? deserializeAws_json1_1CrlConfiguration(output.CrlConfiguration, context)
|
|
@@ -2555,16 +2157,16 @@ var deserializeAws_json1_1RevocationConfiguration = function (output, context) {
|
|
|
2555
2157
|
: undefined,
|
|
2556
2158
|
};
|
|
2557
2159
|
};
|
|
2558
|
-
|
|
2160
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
2559
2161
|
return {
|
|
2560
2162
|
Key: __expectString(output.Key),
|
|
2561
2163
|
Value: __expectString(output.Value),
|
|
2562
2164
|
};
|
|
2563
2165
|
};
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
.filter(
|
|
2567
|
-
.map(
|
|
2166
|
+
const deserializeAws_json1_1TagList = (output, context) => {
|
|
2167
|
+
const retVal = (output || [])
|
|
2168
|
+
.filter((e) => e != null)
|
|
2169
|
+
.map((entry) => {
|
|
2568
2170
|
if (entry === null) {
|
|
2569
2171
|
return null;
|
|
2570
2172
|
}
|
|
@@ -2572,80 +2174,57 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
2572
2174
|
});
|
|
2573
2175
|
return retVal;
|
|
2574
2176
|
};
|
|
2575
|
-
|
|
2177
|
+
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
2576
2178
|
return {
|
|
2577
2179
|
message: __expectString(output.message),
|
|
2578
2180
|
};
|
|
2579
2181
|
};
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
});
|
|
2588
|
-
};
|
|
2589
|
-
var collectBody = function (streamBody, context) {
|
|
2590
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2182
|
+
const deserializeMetadata = (output) => ({
|
|
2183
|
+
httpStatusCode: output.statusCode,
|
|
2184
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2185
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2186
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2187
|
+
});
|
|
2188
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2591
2189
|
if (streamBody instanceof Uint8Array) {
|
|
2592
2190
|
return Promise.resolve(streamBody);
|
|
2593
2191
|
}
|
|
2594
2192
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2595
2193
|
};
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
};
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
if (resolvedHostname !== undefined) {
|
|
2615
|
-
contents.hostname = resolvedHostname;
|
|
2616
|
-
}
|
|
2617
|
-
if (body !== undefined) {
|
|
2618
|
-
contents.body = body;
|
|
2619
|
-
}
|
|
2620
|
-
return [2, new __HttpRequest(contents)];
|
|
2621
|
-
}
|
|
2622
|
-
});
|
|
2623
|
-
}); };
|
|
2624
|
-
var parseBody = function (streamBody, context) {
|
|
2625
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2626
|
-
if (encoded.length) {
|
|
2627
|
-
return JSON.parse(encoded);
|
|
2628
|
-
}
|
|
2629
|
-
return {};
|
|
2630
|
-
});
|
|
2194
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2195
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2196
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2197
|
+
const contents = {
|
|
2198
|
+
protocol,
|
|
2199
|
+
hostname,
|
|
2200
|
+
port,
|
|
2201
|
+
method: "POST",
|
|
2202
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2203
|
+
headers,
|
|
2204
|
+
};
|
|
2205
|
+
if (resolvedHostname !== undefined) {
|
|
2206
|
+
contents.hostname = resolvedHostname;
|
|
2207
|
+
}
|
|
2208
|
+
if (body !== undefined) {
|
|
2209
|
+
contents.body = body;
|
|
2210
|
+
}
|
|
2211
|
+
return new __HttpRequest(contents);
|
|
2631
2212
|
};
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
2648
|
-
var cleanValue = rawValue;
|
|
2213
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2214
|
+
if (encoded.length) {
|
|
2215
|
+
return JSON.parse(encoded);
|
|
2216
|
+
}
|
|
2217
|
+
return {};
|
|
2218
|
+
});
|
|
2219
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2220
|
+
const value = await parseBody(errorBody, context);
|
|
2221
|
+
value.message = value.message ?? value.Message;
|
|
2222
|
+
return value;
|
|
2223
|
+
};
|
|
2224
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2225
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2226
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2227
|
+
let cleanValue = rawValue;
|
|
2649
2228
|
if (typeof cleanValue === "number") {
|
|
2650
2229
|
cleanValue = cleanValue.toString();
|
|
2651
2230
|
}
|
|
@@ -2660,7 +2239,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2660
2239
|
}
|
|
2661
2240
|
return cleanValue;
|
|
2662
2241
|
};
|
|
2663
|
-
|
|
2242
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2664
2243
|
if (headerKey !== undefined) {
|
|
2665
2244
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2666
2245
|
}
|