@aws-sdk/client-acm-pca 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +115 -211
- package/dist-es/protocols/Aws_json1_1.js +185 -212
- package/package.json +6 -6
|
@@ -254,7 +254,6 @@ const deserializeAws_json1_1CreateCertificateAuthorityCommandError = async (outp
|
|
|
254
254
|
...output,
|
|
255
255
|
body: await parseBody(output.body, context),
|
|
256
256
|
};
|
|
257
|
-
let response;
|
|
258
257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
259
258
|
switch (errorCode) {
|
|
260
259
|
case "InvalidArgsException":
|
|
@@ -271,14 +270,12 @@ const deserializeAws_json1_1CreateCertificateAuthorityCommandError = async (outp
|
|
|
271
270
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
272
271
|
default:
|
|
273
272
|
const parsedBody = parsedOutput.body;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
$metadata,
|
|
273
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
274
|
+
output,
|
|
275
|
+
parsedBody,
|
|
276
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
277
|
+
errorCode,
|
|
280
278
|
});
|
|
281
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
282
279
|
}
|
|
283
280
|
};
|
|
284
281
|
const deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommand = async (output, context) => {
|
|
@@ -300,7 +297,6 @@ const deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError =
|
|
|
300
297
|
...output,
|
|
301
298
|
body: await parseBody(output.body, context),
|
|
302
299
|
};
|
|
303
|
-
let response;
|
|
304
300
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
305
301
|
switch (errorCode) {
|
|
306
302
|
case "InvalidArgsException":
|
|
@@ -323,14 +319,12 @@ const deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError =
|
|
|
323
319
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
324
320
|
default:
|
|
325
321
|
const parsedBody = parsedOutput.body;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
$metadata,
|
|
322
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
323
|
+
output,
|
|
324
|
+
parsedBody,
|
|
325
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
326
|
+
errorCode,
|
|
332
327
|
});
|
|
333
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
334
328
|
}
|
|
335
329
|
};
|
|
336
330
|
const deserializeAws_json1_1CreatePermissionCommand = async (output, context) => {
|
|
@@ -349,7 +343,6 @@ const deserializeAws_json1_1CreatePermissionCommandError = async (output, contex
|
|
|
349
343
|
...output,
|
|
350
344
|
body: await parseBody(output.body, context),
|
|
351
345
|
};
|
|
352
|
-
let response;
|
|
353
346
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
354
347
|
switch (errorCode) {
|
|
355
348
|
case "InvalidArnException":
|
|
@@ -372,14 +365,12 @@ const deserializeAws_json1_1CreatePermissionCommandError = async (output, contex
|
|
|
372
365
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
373
366
|
default:
|
|
374
367
|
const parsedBody = parsedOutput.body;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
$metadata,
|
|
368
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
369
|
+
output,
|
|
370
|
+
parsedBody,
|
|
371
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
372
|
+
errorCode,
|
|
381
373
|
});
|
|
382
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
383
374
|
}
|
|
384
375
|
};
|
|
385
376
|
const deserializeAws_json1_1DeleteCertificateAuthorityCommand = async (output, context) => {
|
|
@@ -398,7 +389,6 @@ const deserializeAws_json1_1DeleteCertificateAuthorityCommandError = async (outp
|
|
|
398
389
|
...output,
|
|
399
390
|
body: await parseBody(output.body, context),
|
|
400
391
|
};
|
|
401
|
-
let response;
|
|
402
392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
403
393
|
switch (errorCode) {
|
|
404
394
|
case "ConcurrentModificationException":
|
|
@@ -415,14 +405,12 @@ const deserializeAws_json1_1DeleteCertificateAuthorityCommandError = async (outp
|
|
|
415
405
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
416
406
|
default:
|
|
417
407
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
$metadata,
|
|
408
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
409
|
+
output,
|
|
410
|
+
parsedBody,
|
|
411
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
412
|
+
errorCode,
|
|
424
413
|
});
|
|
425
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
426
414
|
}
|
|
427
415
|
};
|
|
428
416
|
const deserializeAws_json1_1DeletePermissionCommand = async (output, context) => {
|
|
@@ -441,7 +429,6 @@ const deserializeAws_json1_1DeletePermissionCommandError = async (output, contex
|
|
|
441
429
|
...output,
|
|
442
430
|
body: await parseBody(output.body, context),
|
|
443
431
|
};
|
|
444
|
-
let response;
|
|
445
432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
433
|
switch (errorCode) {
|
|
447
434
|
case "InvalidArnException":
|
|
@@ -458,14 +445,12 @@ const deserializeAws_json1_1DeletePermissionCommandError = async (output, contex
|
|
|
458
445
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
459
446
|
default:
|
|
460
447
|
const parsedBody = parsedOutput.body;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
$metadata,
|
|
448
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
449
|
+
output,
|
|
450
|
+
parsedBody,
|
|
451
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
452
|
+
errorCode,
|
|
467
453
|
});
|
|
468
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
469
454
|
}
|
|
470
455
|
};
|
|
471
456
|
const deserializeAws_json1_1DeletePolicyCommand = async (output, context) => {
|
|
@@ -484,7 +469,6 @@ const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) =
|
|
|
484
469
|
...output,
|
|
485
470
|
body: await parseBody(output.body, context),
|
|
486
471
|
};
|
|
487
|
-
let response;
|
|
488
472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
473
|
switch (errorCode) {
|
|
490
474
|
case "ConcurrentModificationException":
|
|
@@ -507,14 +491,12 @@ const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) =
|
|
|
507
491
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
508
492
|
default:
|
|
509
493
|
const parsedBody = parsedOutput.body;
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
$metadata,
|
|
494
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
495
|
+
output,
|
|
496
|
+
parsedBody,
|
|
497
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
498
|
+
errorCode,
|
|
516
499
|
});
|
|
517
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
518
500
|
}
|
|
519
501
|
};
|
|
520
502
|
const deserializeAws_json1_1DescribeCertificateAuthorityCommand = async (output, context) => {
|
|
@@ -536,7 +518,6 @@ const deserializeAws_json1_1DescribeCertificateAuthorityCommandError = async (ou
|
|
|
536
518
|
...output,
|
|
537
519
|
body: await parseBody(output.body, context),
|
|
538
520
|
};
|
|
539
|
-
let response;
|
|
540
521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
522
|
switch (errorCode) {
|
|
542
523
|
case "InvalidArnException":
|
|
@@ -547,14 +528,12 @@ const deserializeAws_json1_1DescribeCertificateAuthorityCommandError = async (ou
|
|
|
547
528
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
548
529
|
default:
|
|
549
530
|
const parsedBody = parsedOutput.body;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
$metadata,
|
|
531
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
532
|
+
output,
|
|
533
|
+
parsedBody,
|
|
534
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
535
|
+
errorCode,
|
|
556
536
|
});
|
|
557
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
558
537
|
}
|
|
559
538
|
};
|
|
560
539
|
const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand = async (output, context) => {
|
|
@@ -576,7 +555,6 @@ const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError
|
|
|
576
555
|
...output,
|
|
577
556
|
body: await parseBody(output.body, context),
|
|
578
557
|
};
|
|
579
|
-
let response;
|
|
580
558
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
581
559
|
switch (errorCode) {
|
|
582
560
|
case "InvalidArgsException":
|
|
@@ -590,14 +568,12 @@ const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError
|
|
|
590
568
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
591
569
|
default:
|
|
592
570
|
const parsedBody = parsedOutput.body;
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
$metadata,
|
|
571
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
572
|
+
output,
|
|
573
|
+
parsedBody,
|
|
574
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
575
|
+
errorCode,
|
|
599
576
|
});
|
|
600
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
601
577
|
}
|
|
602
578
|
};
|
|
603
579
|
const deserializeAws_json1_1GetCertificateCommand = async (output, context) => {
|
|
@@ -619,7 +595,6 @@ const deserializeAws_json1_1GetCertificateCommandError = async (output, context)
|
|
|
619
595
|
...output,
|
|
620
596
|
body: await parseBody(output.body, context),
|
|
621
597
|
};
|
|
622
|
-
let response;
|
|
623
598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
624
599
|
switch (errorCode) {
|
|
625
600
|
case "InvalidArnException":
|
|
@@ -639,14 +614,12 @@ const deserializeAws_json1_1GetCertificateCommandError = async (output, context)
|
|
|
639
614
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
640
615
|
default:
|
|
641
616
|
const parsedBody = parsedOutput.body;
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
$metadata,
|
|
617
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
618
|
+
output,
|
|
619
|
+
parsedBody,
|
|
620
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
621
|
+
errorCode,
|
|
648
622
|
});
|
|
649
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
650
623
|
}
|
|
651
624
|
};
|
|
652
625
|
const deserializeAws_json1_1GetCertificateAuthorityCertificateCommand = async (output, context) => {
|
|
@@ -668,7 +641,6 @@ const deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError = asy
|
|
|
668
641
|
...output,
|
|
669
642
|
body: await parseBody(output.body, context),
|
|
670
643
|
};
|
|
671
|
-
let response;
|
|
672
644
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
645
|
switch (errorCode) {
|
|
674
646
|
case "InvalidArnException":
|
|
@@ -682,14 +654,12 @@ const deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError = asy
|
|
|
682
654
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
683
655
|
default:
|
|
684
656
|
const parsedBody = parsedOutput.body;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
$metadata,
|
|
657
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
658
|
+
output,
|
|
659
|
+
parsedBody,
|
|
660
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
661
|
+
errorCode,
|
|
691
662
|
});
|
|
692
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
693
663
|
}
|
|
694
664
|
};
|
|
695
665
|
const deserializeAws_json1_1GetCertificateAuthorityCsrCommand = async (output, context) => {
|
|
@@ -711,7 +681,6 @@ const deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = async (outp
|
|
|
711
681
|
...output,
|
|
712
682
|
body: await parseBody(output.body, context),
|
|
713
683
|
};
|
|
714
|
-
let response;
|
|
715
684
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
685
|
switch (errorCode) {
|
|
717
686
|
case "InvalidArnException":
|
|
@@ -731,14 +700,12 @@ const deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = async (outp
|
|
|
731
700
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
732
701
|
default:
|
|
733
702
|
const parsedBody = parsedOutput.body;
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
$metadata,
|
|
703
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
704
|
+
output,
|
|
705
|
+
parsedBody,
|
|
706
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
707
|
+
errorCode,
|
|
740
708
|
});
|
|
741
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
742
709
|
}
|
|
743
710
|
};
|
|
744
711
|
const deserializeAws_json1_1GetPolicyCommand = async (output, context) => {
|
|
@@ -760,7 +727,6 @@ const deserializeAws_json1_1GetPolicyCommandError = async (output, context) => {
|
|
|
760
727
|
...output,
|
|
761
728
|
body: await parseBody(output.body, context),
|
|
762
729
|
};
|
|
763
|
-
let response;
|
|
764
730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
731
|
switch (errorCode) {
|
|
766
732
|
case "InvalidArnException":
|
|
@@ -777,14 +743,12 @@ const deserializeAws_json1_1GetPolicyCommandError = async (output, context) => {
|
|
|
777
743
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
778
744
|
default:
|
|
779
745
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
$metadata,
|
|
746
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
747
|
+
output,
|
|
748
|
+
parsedBody,
|
|
749
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
750
|
+
errorCode,
|
|
786
751
|
});
|
|
787
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
788
752
|
}
|
|
789
753
|
};
|
|
790
754
|
const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand = async (output, context) => {
|
|
@@ -803,7 +767,6 @@ const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError =
|
|
|
803
767
|
...output,
|
|
804
768
|
body: await parseBody(output.body, context),
|
|
805
769
|
};
|
|
806
|
-
let response;
|
|
807
770
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
771
|
switch (errorCode) {
|
|
809
772
|
case "CertificateMismatchException":
|
|
@@ -835,14 +798,12 @@ const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError =
|
|
|
835
798
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
836
799
|
default:
|
|
837
800
|
const parsedBody = parsedOutput.body;
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
$metadata,
|
|
801
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
802
|
+
output,
|
|
803
|
+
parsedBody,
|
|
804
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
805
|
+
errorCode,
|
|
844
806
|
});
|
|
845
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
846
807
|
}
|
|
847
808
|
};
|
|
848
809
|
const deserializeAws_json1_1IssueCertificateCommand = async (output, context) => {
|
|
@@ -864,7 +825,6 @@ const deserializeAws_json1_1IssueCertificateCommandError = async (output, contex
|
|
|
864
825
|
...output,
|
|
865
826
|
body: await parseBody(output.body, context),
|
|
866
827
|
};
|
|
867
|
-
let response;
|
|
868
828
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
829
|
switch (errorCode) {
|
|
870
830
|
case "InvalidArgsException":
|
|
@@ -887,14 +847,12 @@ const deserializeAws_json1_1IssueCertificateCommandError = async (output, contex
|
|
|
887
847
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
888
848
|
default:
|
|
889
849
|
const parsedBody = parsedOutput.body;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
$metadata,
|
|
850
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
851
|
+
output,
|
|
852
|
+
parsedBody,
|
|
853
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
854
|
+
errorCode,
|
|
896
855
|
});
|
|
897
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
898
856
|
}
|
|
899
857
|
};
|
|
900
858
|
const deserializeAws_json1_1ListCertificateAuthoritiesCommand = async (output, context) => {
|
|
@@ -916,7 +874,6 @@ const deserializeAws_json1_1ListCertificateAuthoritiesCommandError = async (outp
|
|
|
916
874
|
...output,
|
|
917
875
|
body: await parseBody(output.body, context),
|
|
918
876
|
};
|
|
919
|
-
let response;
|
|
920
877
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
878
|
switch (errorCode) {
|
|
922
879
|
case "InvalidNextTokenException":
|
|
@@ -924,14 +881,12 @@ const deserializeAws_json1_1ListCertificateAuthoritiesCommandError = async (outp
|
|
|
924
881
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
925
882
|
default:
|
|
926
883
|
const parsedBody = parsedOutput.body;
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
$metadata,
|
|
884
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
885
|
+
output,
|
|
886
|
+
parsedBody,
|
|
887
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
888
|
+
errorCode,
|
|
933
889
|
});
|
|
934
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
935
890
|
}
|
|
936
891
|
};
|
|
937
892
|
const deserializeAws_json1_1ListPermissionsCommand = async (output, context) => {
|
|
@@ -953,7 +908,6 @@ const deserializeAws_json1_1ListPermissionsCommandError = async (output, context
|
|
|
953
908
|
...output,
|
|
954
909
|
body: await parseBody(output.body, context),
|
|
955
910
|
};
|
|
956
|
-
let response;
|
|
957
911
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
912
|
switch (errorCode) {
|
|
959
913
|
case "InvalidArnException":
|
|
@@ -973,14 +927,12 @@ const deserializeAws_json1_1ListPermissionsCommandError = async (output, context
|
|
|
973
927
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
974
928
|
default:
|
|
975
929
|
const parsedBody = parsedOutput.body;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
$metadata,
|
|
930
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
931
|
+
output,
|
|
932
|
+
parsedBody,
|
|
933
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
934
|
+
errorCode,
|
|
982
935
|
});
|
|
983
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
984
936
|
}
|
|
985
937
|
};
|
|
986
938
|
const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
|
|
@@ -1002,7 +954,6 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1002
954
|
...output,
|
|
1003
955
|
body: await parseBody(output.body, context),
|
|
1004
956
|
};
|
|
1005
|
-
let response;
|
|
1006
957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
958
|
switch (errorCode) {
|
|
1008
959
|
case "InvalidArnException":
|
|
@@ -1016,14 +967,12 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1016
967
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1017
968
|
default:
|
|
1018
969
|
const parsedBody = parsedOutput.body;
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
$metadata,
|
|
970
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
971
|
+
output,
|
|
972
|
+
parsedBody,
|
|
973
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
974
|
+
errorCode,
|
|
1025
975
|
});
|
|
1026
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1027
976
|
}
|
|
1028
977
|
};
|
|
1029
978
|
const deserializeAws_json1_1PutPolicyCommand = async (output, context) => {
|
|
@@ -1042,7 +991,6 @@ const deserializeAws_json1_1PutPolicyCommandError = async (output, context) => {
|
|
|
1042
991
|
...output,
|
|
1043
992
|
body: await parseBody(output.body, context),
|
|
1044
993
|
};
|
|
1045
|
-
let response;
|
|
1046
994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
995
|
switch (errorCode) {
|
|
1048
996
|
case "ConcurrentModificationException":
|
|
@@ -1068,14 +1016,12 @@ const deserializeAws_json1_1PutPolicyCommandError = async (output, context) => {
|
|
|
1068
1016
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1069
1017
|
default:
|
|
1070
1018
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
$metadata,
|
|
1019
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1020
|
+
output,
|
|
1021
|
+
parsedBody,
|
|
1022
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1023
|
+
errorCode,
|
|
1077
1024
|
});
|
|
1078
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1079
1025
|
}
|
|
1080
1026
|
};
|
|
1081
1027
|
const deserializeAws_json1_1RestoreCertificateAuthorityCommand = async (output, context) => {
|
|
@@ -1094,7 +1040,6 @@ const deserializeAws_json1_1RestoreCertificateAuthorityCommandError = async (out
|
|
|
1094
1040
|
...output,
|
|
1095
1041
|
body: await parseBody(output.body, context),
|
|
1096
1042
|
};
|
|
1097
|
-
let response;
|
|
1098
1043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
1044
|
switch (errorCode) {
|
|
1100
1045
|
case "InvalidArnException":
|
|
@@ -1108,14 +1053,12 @@ const deserializeAws_json1_1RestoreCertificateAuthorityCommandError = async (out
|
|
|
1108
1053
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1109
1054
|
default:
|
|
1110
1055
|
const parsedBody = parsedOutput.body;
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
$metadata,
|
|
1056
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1057
|
+
output,
|
|
1058
|
+
parsedBody,
|
|
1059
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1060
|
+
errorCode,
|
|
1117
1061
|
});
|
|
1118
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1119
1062
|
}
|
|
1120
1063
|
};
|
|
1121
1064
|
const deserializeAws_json1_1RevokeCertificateCommand = async (output, context) => {
|
|
@@ -1134,7 +1077,6 @@ const deserializeAws_json1_1RevokeCertificateCommandError = async (output, conte
|
|
|
1134
1077
|
...output,
|
|
1135
1078
|
body: await parseBody(output.body, context),
|
|
1136
1079
|
};
|
|
1137
|
-
let response;
|
|
1138
1080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
1081
|
switch (errorCode) {
|
|
1140
1082
|
case "ConcurrentModificationException":
|
|
@@ -1166,14 +1108,12 @@ const deserializeAws_json1_1RevokeCertificateCommandError = async (output, conte
|
|
|
1166
1108
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1167
1109
|
default:
|
|
1168
1110
|
const parsedBody = parsedOutput.body;
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
$metadata,
|
|
1111
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1112
|
+
output,
|
|
1113
|
+
parsedBody,
|
|
1114
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1115
|
+
errorCode,
|
|
1175
1116
|
});
|
|
1176
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1177
1117
|
}
|
|
1178
1118
|
};
|
|
1179
1119
|
const deserializeAws_json1_1TagCertificateAuthorityCommand = async (output, context) => {
|
|
@@ -1192,7 +1132,6 @@ const deserializeAws_json1_1TagCertificateAuthorityCommandError = async (output,
|
|
|
1192
1132
|
...output,
|
|
1193
1133
|
body: await parseBody(output.body, context),
|
|
1194
1134
|
};
|
|
1195
|
-
let response;
|
|
1196
1135
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1136
|
switch (errorCode) {
|
|
1198
1137
|
case "InvalidArnException":
|
|
@@ -1212,14 +1151,12 @@ const deserializeAws_json1_1TagCertificateAuthorityCommandError = async (output,
|
|
|
1212
1151
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1213
1152
|
default:
|
|
1214
1153
|
const parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
$metadata,
|
|
1154
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1155
|
+
output,
|
|
1156
|
+
parsedBody,
|
|
1157
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1158
|
+
errorCode,
|
|
1221
1159
|
});
|
|
1222
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1223
1160
|
}
|
|
1224
1161
|
};
|
|
1225
1162
|
const deserializeAws_json1_1UntagCertificateAuthorityCommand = async (output, context) => {
|
|
@@ -1238,7 +1175,6 @@ const deserializeAws_json1_1UntagCertificateAuthorityCommandError = async (outpu
|
|
|
1238
1175
|
...output,
|
|
1239
1176
|
body: await parseBody(output.body, context),
|
|
1240
1177
|
};
|
|
1241
|
-
let response;
|
|
1242
1178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1179
|
switch (errorCode) {
|
|
1244
1180
|
case "InvalidArnException":
|
|
@@ -1255,14 +1191,12 @@ const deserializeAws_json1_1UntagCertificateAuthorityCommandError = async (outpu
|
|
|
1255
1191
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1256
1192
|
default:
|
|
1257
1193
|
const parsedBody = parsedOutput.body;
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
$metadata,
|
|
1194
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1195
|
+
output,
|
|
1196
|
+
parsedBody,
|
|
1197
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1198
|
+
errorCode,
|
|
1264
1199
|
});
|
|
1265
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1266
1200
|
}
|
|
1267
1201
|
};
|
|
1268
1202
|
const deserializeAws_json1_1UpdateCertificateAuthorityCommand = async (output, context) => {
|
|
@@ -1281,7 +1215,6 @@ const deserializeAws_json1_1UpdateCertificateAuthorityCommandError = async (outp
|
|
|
1281
1215
|
...output,
|
|
1282
1216
|
body: await parseBody(output.body, context),
|
|
1283
1217
|
};
|
|
1284
|
-
let response;
|
|
1285
1218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1219
|
switch (errorCode) {
|
|
1287
1220
|
case "ConcurrentModificationException":
|
|
@@ -1304,14 +1237,12 @@ const deserializeAws_json1_1UpdateCertificateAuthorityCommandError = async (outp
|
|
|
1304
1237
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1305
1238
|
default:
|
|
1306
1239
|
const parsedBody = parsedOutput.body;
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
$metadata,
|
|
1240
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1241
|
+
output,
|
|
1242
|
+
parsedBody,
|
|
1243
|
+
exceptionCtor: ACMPCAServiceException_1.ACMPCAServiceException,
|
|
1244
|
+
errorCode,
|
|
1313
1245
|
});
|
|
1314
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1315
1246
|
}
|
|
1316
1247
|
};
|
|
1317
1248
|
const deserializeAws_json1_1CertificateMismatchExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1497,9 +1428,6 @@ const serializeAws_json1_1AccessDescriptionList = (input, context) => {
|
|
|
1497
1428
|
return input
|
|
1498
1429
|
.filter((e) => e != null)
|
|
1499
1430
|
.map((entry) => {
|
|
1500
|
-
if (entry === null) {
|
|
1501
|
-
return null;
|
|
1502
|
-
}
|
|
1503
1431
|
return serializeAws_json1_1AccessDescription(entry, context);
|
|
1504
1432
|
});
|
|
1505
1433
|
};
|
|
@@ -1513,9 +1441,6 @@ const serializeAws_json1_1ActionList = (input, context) => {
|
|
|
1513
1441
|
return input
|
|
1514
1442
|
.filter((e) => e != null)
|
|
1515
1443
|
.map((entry) => {
|
|
1516
|
-
if (entry === null) {
|
|
1517
|
-
return null;
|
|
1518
|
-
}
|
|
1519
1444
|
return entry;
|
|
1520
1445
|
});
|
|
1521
1446
|
};
|
|
@@ -1560,9 +1485,6 @@ const serializeAws_json1_1CertificatePolicyList = (input, context) => {
|
|
|
1560
1485
|
return input
|
|
1561
1486
|
.filter((e) => e != null)
|
|
1562
1487
|
.map((entry) => {
|
|
1563
|
-
if (entry === null) {
|
|
1564
|
-
return null;
|
|
1565
|
-
}
|
|
1566
1488
|
return serializeAws_json1_1PolicyInformation(entry, context);
|
|
1567
1489
|
});
|
|
1568
1490
|
};
|
|
@@ -1622,9 +1544,6 @@ const serializeAws_json1_1CustomAttributeList = (input, context) => {
|
|
|
1622
1544
|
return input
|
|
1623
1545
|
.filter((e) => e != null)
|
|
1624
1546
|
.map((entry) => {
|
|
1625
|
-
if (entry === null) {
|
|
1626
|
-
return null;
|
|
1627
|
-
}
|
|
1628
1547
|
return serializeAws_json1_1CustomAttribute(entry, context);
|
|
1629
1548
|
});
|
|
1630
1549
|
};
|
|
@@ -1639,9 +1558,6 @@ const serializeAws_json1_1CustomExtensionList = (input, context) => {
|
|
|
1639
1558
|
return input
|
|
1640
1559
|
.filter((e) => e != null)
|
|
1641
1560
|
.map((entry) => {
|
|
1642
|
-
if (entry === null) {
|
|
1643
|
-
return null;
|
|
1644
|
-
}
|
|
1645
1561
|
return serializeAws_json1_1CustomExtension(entry, context);
|
|
1646
1562
|
});
|
|
1647
1563
|
};
|
|
@@ -1694,9 +1610,6 @@ const serializeAws_json1_1ExtendedKeyUsageList = (input, context) => {
|
|
|
1694
1610
|
return input
|
|
1695
1611
|
.filter((e) => e != null)
|
|
1696
1612
|
.map((entry) => {
|
|
1697
|
-
if (entry === null) {
|
|
1698
|
-
return null;
|
|
1699
|
-
}
|
|
1700
1613
|
return serializeAws_json1_1ExtendedKeyUsage(entry, context);
|
|
1701
1614
|
});
|
|
1702
1615
|
};
|
|
@@ -1735,9 +1648,6 @@ const serializeAws_json1_1GeneralNameList = (input, context) => {
|
|
|
1735
1648
|
return input
|
|
1736
1649
|
.filter((e) => e != null)
|
|
1737
1650
|
.map((entry) => {
|
|
1738
|
-
if (entry === null) {
|
|
1739
|
-
return null;
|
|
1740
|
-
}
|
|
1741
1651
|
return serializeAws_json1_1GeneralName(entry, context);
|
|
1742
1652
|
});
|
|
1743
1653
|
};
|
|
@@ -1849,9 +1759,6 @@ const serializeAws_json1_1PolicyQualifierInfoList = (input, context) => {
|
|
|
1849
1759
|
return input
|
|
1850
1760
|
.filter((e) => e != null)
|
|
1851
1761
|
.map((entry) => {
|
|
1852
|
-
if (entry === null) {
|
|
1853
|
-
return null;
|
|
1854
|
-
}
|
|
1855
1762
|
return serializeAws_json1_1PolicyQualifierInfo(entry, context);
|
|
1856
1763
|
});
|
|
1857
1764
|
};
|
|
@@ -1904,9 +1811,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
1904
1811
|
return input
|
|
1905
1812
|
.filter((e) => e != null)
|
|
1906
1813
|
.map((entry) => {
|
|
1907
|
-
if (entry === null) {
|
|
1908
|
-
return null;
|
|
1909
|
-
}
|
|
1910
1814
|
return serializeAws_json1_1Tag(entry, context);
|
|
1911
1815
|
});
|
|
1912
1816
|
};
|