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