@aws-sdk/client-inspector 3.131.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AddAttributesToFindingsCommand.js +2 -2
- package/dist-cjs/commands/CreateAssessmentTargetCommand.js +2 -2
- package/dist-cjs/commands/CreateAssessmentTemplateCommand.js +2 -2
- package/dist-cjs/commands/CreateExclusionsPreviewCommand.js +2 -2
- package/dist-cjs/commands/CreateResourceGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssessmentRunCommand.js +1 -1
- package/dist-cjs/commands/DeleteAssessmentTargetCommand.js +1 -1
- package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js +1 -1
- package/dist-cjs/commands/DescribeAssessmentRunsCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js +2 -2
- package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js +1 -1
- package/dist-cjs/commands/DescribeExclusionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeFindingsCommand.js +2 -2
- package/dist-cjs/commands/DescribeResourceGroupsCommand.js +2 -2
- package/dist-cjs/commands/DescribeRulesPackagesCommand.js +2 -2
- package/dist-cjs/commands/GetAssessmentReportCommand.js +2 -2
- package/dist-cjs/commands/GetExclusionsPreviewCommand.js +2 -2
- package/dist-cjs/commands/GetTelemetryMetadataCommand.js +2 -2
- package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js +2 -2
- package/dist-cjs/commands/ListAssessmentRunsCommand.js +2 -2
- package/dist-cjs/commands/ListAssessmentTargetsCommand.js +2 -2
- package/dist-cjs/commands/ListAssessmentTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListEventSubscriptionsCommand.js +2 -2
- package/dist-cjs/commands/ListExclusionsCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsCommand.js +2 -2
- package/dist-cjs/commands/ListRulesPackagesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PreviewAgentsCommand.js +2 -2
- package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js +1 -1
- package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js +2 -2
- package/dist-cjs/commands/SetTagsForResourceCommand.js +1 -1
- package/dist-cjs/commands/StartAssessmentRunCommand.js +2 -2
- package/dist-cjs/commands/StopAssessmentRunCommand.js +1 -1
- package/dist-cjs/commands/SubscribeToEventCommand.js +1 -1
- package/dist-cjs/commands/UnsubscribeFromEventCommand.js +1 -1
- package/dist-cjs/commands/UpdateAssessmentTargetCommand.js +1 -1
- package/dist-cjs/models/models_0.js +391 -585
- package/dist-cjs/protocols/Aws_json1_1.js +185 -350
- package/dist-es/commands/AddAttributesToFindingsCommand.js +3 -3
- package/dist-es/commands/CreateAssessmentTargetCommand.js +3 -3
- package/dist-es/commands/CreateAssessmentTemplateCommand.js +3 -3
- package/dist-es/commands/CreateExclusionsPreviewCommand.js +3 -3
- package/dist-es/commands/CreateResourceGroupCommand.js +3 -3
- package/dist-es/commands/DeleteAssessmentRunCommand.js +2 -2
- package/dist-es/commands/DeleteAssessmentTargetCommand.js +2 -2
- package/dist-es/commands/DeleteAssessmentTemplateCommand.js +2 -2
- package/dist-es/commands/DescribeAssessmentRunsCommand.js +3 -3
- package/dist-es/commands/DescribeAssessmentTargetsCommand.js +3 -3
- package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +3 -3
- package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +2 -2
- package/dist-es/commands/DescribeExclusionsCommand.js +3 -3
- package/dist-es/commands/DescribeFindingsCommand.js +3 -3
- package/dist-es/commands/DescribeResourceGroupsCommand.js +3 -3
- package/dist-es/commands/DescribeRulesPackagesCommand.js +3 -3
- package/dist-es/commands/GetAssessmentReportCommand.js +3 -3
- package/dist-es/commands/GetExclusionsPreviewCommand.js +3 -3
- package/dist-es/commands/GetTelemetryMetadataCommand.js +3 -3
- package/dist-es/commands/ListAssessmentRunAgentsCommand.js +3 -3
- package/dist-es/commands/ListAssessmentRunsCommand.js +3 -3
- package/dist-es/commands/ListAssessmentTargetsCommand.js +3 -3
- package/dist-es/commands/ListAssessmentTemplatesCommand.js +3 -3
- package/dist-es/commands/ListEventSubscriptionsCommand.js +3 -3
- package/dist-es/commands/ListExclusionsCommand.js +3 -3
- package/dist-es/commands/ListFindingsCommand.js +3 -3
- package/dist-es/commands/ListRulesPackagesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PreviewAgentsCommand.js +3 -3
- package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +2 -2
- package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +3 -3
- package/dist-es/commands/SetTagsForResourceCommand.js +2 -2
- package/dist-es/commands/StartAssessmentRunCommand.js +3 -3
- package/dist-es/commands/StopAssessmentRunCommand.js +2 -2
- package/dist-es/commands/SubscribeToEventCommand.js +2 -2
- package/dist-es/commands/UnsubscribeFromEventCommand.js +2 -2
- package/dist-es/commands/UpdateAssessmentTargetCommand.js +2 -2
- package/dist-es/models/models_0.js +97 -388
- package/dist-es/protocols/Aws_json1_1.js +297 -351
- package/dist-types/models/models_0.d.ts +388 -582
- package/dist-types/ts3.4/models/models_0.d.ts +194 -388
- package/package.json +6 -6
|
@@ -394,7 +394,6 @@ const deserializeAws_json1_1AddAttributesToFindingsCommandError = async (output,
|
|
|
394
394
|
...output,
|
|
395
395
|
body: await parseBody(output.body, context),
|
|
396
396
|
};
|
|
397
|
-
let response;
|
|
398
397
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
398
|
switch (errorCode) {
|
|
400
399
|
case "AccessDeniedException":
|
|
@@ -414,14 +413,12 @@ const deserializeAws_json1_1AddAttributesToFindingsCommandError = async (output,
|
|
|
414
413
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
415
414
|
default:
|
|
416
415
|
const parsedBody = parsedOutput.body;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
$metadata,
|
|
416
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
417
|
+
output,
|
|
418
|
+
parsedBody,
|
|
419
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
420
|
+
errorCode,
|
|
423
421
|
});
|
|
424
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
425
422
|
}
|
|
426
423
|
};
|
|
427
424
|
const deserializeAws_json1_1CreateAssessmentTargetCommand = async (output, context) => {
|
|
@@ -443,7 +440,6 @@ const deserializeAws_json1_1CreateAssessmentTargetCommandError = async (output,
|
|
|
443
440
|
...output,
|
|
444
441
|
body: await parseBody(output.body, context),
|
|
445
442
|
};
|
|
446
|
-
let response;
|
|
447
443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
444
|
switch (errorCode) {
|
|
449
445
|
case "AccessDeniedException":
|
|
@@ -469,14 +465,12 @@ const deserializeAws_json1_1CreateAssessmentTargetCommandError = async (output,
|
|
|
469
465
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
470
466
|
default:
|
|
471
467
|
const parsedBody = parsedOutput.body;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
$metadata,
|
|
468
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
469
|
+
output,
|
|
470
|
+
parsedBody,
|
|
471
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
472
|
+
errorCode,
|
|
478
473
|
});
|
|
479
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
480
474
|
}
|
|
481
475
|
};
|
|
482
476
|
const deserializeAws_json1_1CreateAssessmentTemplateCommand = async (output, context) => {
|
|
@@ -498,7 +492,6 @@ const deserializeAws_json1_1CreateAssessmentTemplateCommandError = async (output
|
|
|
498
492
|
...output,
|
|
499
493
|
body: await parseBody(output.body, context),
|
|
500
494
|
};
|
|
501
|
-
let response;
|
|
502
495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
496
|
switch (errorCode) {
|
|
504
497
|
case "AccessDeniedException":
|
|
@@ -521,14 +514,12 @@ const deserializeAws_json1_1CreateAssessmentTemplateCommandError = async (output
|
|
|
521
514
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
522
515
|
default:
|
|
523
516
|
const parsedBody = parsedOutput.body;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
$metadata,
|
|
517
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
518
|
+
output,
|
|
519
|
+
parsedBody,
|
|
520
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
521
|
+
errorCode,
|
|
530
522
|
});
|
|
531
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
532
523
|
}
|
|
533
524
|
};
|
|
534
525
|
const deserializeAws_json1_1CreateExclusionsPreviewCommand = async (output, context) => {
|
|
@@ -550,7 +541,6 @@ const deserializeAws_json1_1CreateExclusionsPreviewCommandError = async (output,
|
|
|
550
541
|
...output,
|
|
551
542
|
body: await parseBody(output.body, context),
|
|
552
543
|
};
|
|
553
|
-
let response;
|
|
554
544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
545
|
switch (errorCode) {
|
|
556
546
|
case "AccessDeniedException":
|
|
@@ -573,14 +563,12 @@ const deserializeAws_json1_1CreateExclusionsPreviewCommandError = async (output,
|
|
|
573
563
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
574
564
|
default:
|
|
575
565
|
const parsedBody = parsedOutput.body;
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
$metadata,
|
|
566
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
567
|
+
output,
|
|
568
|
+
parsedBody,
|
|
569
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
570
|
+
errorCode,
|
|
582
571
|
});
|
|
583
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
584
572
|
}
|
|
585
573
|
};
|
|
586
574
|
const deserializeAws_json1_1CreateResourceGroupCommand = async (output, context) => {
|
|
@@ -602,7 +590,6 @@ const deserializeAws_json1_1CreateResourceGroupCommandError = async (output, con
|
|
|
602
590
|
...output,
|
|
603
591
|
body: await parseBody(output.body, context),
|
|
604
592
|
};
|
|
605
|
-
let response;
|
|
606
593
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
594
|
switch (errorCode) {
|
|
608
595
|
case "AccessDeniedException":
|
|
@@ -622,14 +609,12 @@ const deserializeAws_json1_1CreateResourceGroupCommandError = async (output, con
|
|
|
622
609
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
623
610
|
default:
|
|
624
611
|
const parsedBody = parsedOutput.body;
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
$metadata,
|
|
612
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
613
|
+
output,
|
|
614
|
+
parsedBody,
|
|
615
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
616
|
+
errorCode,
|
|
631
617
|
});
|
|
632
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
633
618
|
}
|
|
634
619
|
};
|
|
635
620
|
const deserializeAws_json1_1DeleteAssessmentRunCommand = async (output, context) => {
|
|
@@ -648,7 +633,6 @@ const deserializeAws_json1_1DeleteAssessmentRunCommandError = async (output, con
|
|
|
648
633
|
...output,
|
|
649
634
|
body: await parseBody(output.body, context),
|
|
650
635
|
};
|
|
651
|
-
let response;
|
|
652
636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
637
|
switch (errorCode) {
|
|
654
638
|
case "AccessDeniedException":
|
|
@@ -671,14 +655,12 @@ const deserializeAws_json1_1DeleteAssessmentRunCommandError = async (output, con
|
|
|
671
655
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
672
656
|
default:
|
|
673
657
|
const parsedBody = parsedOutput.body;
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
$metadata,
|
|
658
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
659
|
+
output,
|
|
660
|
+
parsedBody,
|
|
661
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
662
|
+
errorCode,
|
|
680
663
|
});
|
|
681
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
682
664
|
}
|
|
683
665
|
};
|
|
684
666
|
const deserializeAws_json1_1DeleteAssessmentTargetCommand = async (output, context) => {
|
|
@@ -697,7 +679,6 @@ const deserializeAws_json1_1DeleteAssessmentTargetCommandError = async (output,
|
|
|
697
679
|
...output,
|
|
698
680
|
body: await parseBody(output.body, context),
|
|
699
681
|
};
|
|
700
|
-
let response;
|
|
701
682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
683
|
switch (errorCode) {
|
|
703
684
|
case "AccessDeniedException":
|
|
@@ -720,14 +701,12 @@ const deserializeAws_json1_1DeleteAssessmentTargetCommandError = async (output,
|
|
|
720
701
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
721
702
|
default:
|
|
722
703
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
$metadata,
|
|
704
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
705
|
+
output,
|
|
706
|
+
parsedBody,
|
|
707
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
708
|
+
errorCode,
|
|
729
709
|
});
|
|
730
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
731
710
|
}
|
|
732
711
|
};
|
|
733
712
|
const deserializeAws_json1_1DeleteAssessmentTemplateCommand = async (output, context) => {
|
|
@@ -746,7 +725,6 @@ const deserializeAws_json1_1DeleteAssessmentTemplateCommandError = async (output
|
|
|
746
725
|
...output,
|
|
747
726
|
body: await parseBody(output.body, context),
|
|
748
727
|
};
|
|
749
|
-
let response;
|
|
750
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
729
|
switch (errorCode) {
|
|
752
730
|
case "AccessDeniedException":
|
|
@@ -769,14 +747,12 @@ const deserializeAws_json1_1DeleteAssessmentTemplateCommandError = async (output
|
|
|
769
747
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
770
748
|
default:
|
|
771
749
|
const parsedBody = parsedOutput.body;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
$metadata,
|
|
750
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
751
|
+
output,
|
|
752
|
+
parsedBody,
|
|
753
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
754
|
+
errorCode,
|
|
778
755
|
});
|
|
779
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
780
756
|
}
|
|
781
757
|
};
|
|
782
758
|
const deserializeAws_json1_1DescribeAssessmentRunsCommand = async (output, context) => {
|
|
@@ -798,7 +774,6 @@ const deserializeAws_json1_1DescribeAssessmentRunsCommandError = async (output,
|
|
|
798
774
|
...output,
|
|
799
775
|
body: await parseBody(output.body, context),
|
|
800
776
|
};
|
|
801
|
-
let response;
|
|
802
777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
803
778
|
switch (errorCode) {
|
|
804
779
|
case "InternalException":
|
|
@@ -809,14 +784,12 @@ const deserializeAws_json1_1DescribeAssessmentRunsCommandError = async (output,
|
|
|
809
784
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
810
785
|
default:
|
|
811
786
|
const parsedBody = parsedOutput.body;
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
$metadata,
|
|
787
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
788
|
+
output,
|
|
789
|
+
parsedBody,
|
|
790
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
791
|
+
errorCode,
|
|
818
792
|
});
|
|
819
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
820
793
|
}
|
|
821
794
|
};
|
|
822
795
|
const deserializeAws_json1_1DescribeAssessmentTargetsCommand = async (output, context) => {
|
|
@@ -838,7 +811,6 @@ const deserializeAws_json1_1DescribeAssessmentTargetsCommandError = async (outpu
|
|
|
838
811
|
...output,
|
|
839
812
|
body: await parseBody(output.body, context),
|
|
840
813
|
};
|
|
841
|
-
let response;
|
|
842
814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
815
|
switch (errorCode) {
|
|
844
816
|
case "InternalException":
|
|
@@ -849,14 +821,12 @@ const deserializeAws_json1_1DescribeAssessmentTargetsCommandError = async (outpu
|
|
|
849
821
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
850
822
|
default:
|
|
851
823
|
const parsedBody = parsedOutput.body;
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
$metadata,
|
|
824
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
825
|
+
output,
|
|
826
|
+
parsedBody,
|
|
827
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
828
|
+
errorCode,
|
|
858
829
|
});
|
|
859
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
860
830
|
}
|
|
861
831
|
};
|
|
862
832
|
const deserializeAws_json1_1DescribeAssessmentTemplatesCommand = async (output, context) => {
|
|
@@ -878,7 +848,6 @@ const deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = async (out
|
|
|
878
848
|
...output,
|
|
879
849
|
body: await parseBody(output.body, context),
|
|
880
850
|
};
|
|
881
|
-
let response;
|
|
882
851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
852
|
switch (errorCode) {
|
|
884
853
|
case "InternalException":
|
|
@@ -889,14 +858,12 @@ const deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = async (out
|
|
|
889
858
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
890
859
|
default:
|
|
891
860
|
const parsedBody = parsedOutput.body;
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
$metadata,
|
|
861
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
862
|
+
output,
|
|
863
|
+
parsedBody,
|
|
864
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
865
|
+
errorCode,
|
|
898
866
|
});
|
|
899
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
900
867
|
}
|
|
901
868
|
};
|
|
902
869
|
const deserializeAws_json1_1DescribeCrossAccountAccessRoleCommand = async (output, context) => {
|
|
@@ -918,7 +885,6 @@ const deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError = async (
|
|
|
918
885
|
...output,
|
|
919
886
|
body: await parseBody(output.body, context),
|
|
920
887
|
};
|
|
921
|
-
let response;
|
|
922
888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
889
|
switch (errorCode) {
|
|
924
890
|
case "InternalException":
|
|
@@ -926,14 +892,12 @@ const deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError = async (
|
|
|
926
892
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
927
893
|
default:
|
|
928
894
|
const parsedBody = parsedOutput.body;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
$metadata,
|
|
895
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
896
|
+
output,
|
|
897
|
+
parsedBody,
|
|
898
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
899
|
+
errorCode,
|
|
935
900
|
});
|
|
936
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
937
901
|
}
|
|
938
902
|
};
|
|
939
903
|
const deserializeAws_json1_1DescribeExclusionsCommand = async (output, context) => {
|
|
@@ -955,7 +919,6 @@ const deserializeAws_json1_1DescribeExclusionsCommandError = async (output, cont
|
|
|
955
919
|
...output,
|
|
956
920
|
body: await parseBody(output.body, context),
|
|
957
921
|
};
|
|
958
|
-
let response;
|
|
959
922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
923
|
switch (errorCode) {
|
|
961
924
|
case "InternalException":
|
|
@@ -966,14 +929,12 @@ const deserializeAws_json1_1DescribeExclusionsCommandError = async (output, cont
|
|
|
966
929
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
967
930
|
default:
|
|
968
931
|
const parsedBody = parsedOutput.body;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
$metadata,
|
|
932
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
933
|
+
output,
|
|
934
|
+
parsedBody,
|
|
935
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
936
|
+
errorCode,
|
|
975
937
|
});
|
|
976
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
977
938
|
}
|
|
978
939
|
};
|
|
979
940
|
const deserializeAws_json1_1DescribeFindingsCommand = async (output, context) => {
|
|
@@ -995,7 +956,6 @@ const deserializeAws_json1_1DescribeFindingsCommandError = async (output, contex
|
|
|
995
956
|
...output,
|
|
996
957
|
body: await parseBody(output.body, context),
|
|
997
958
|
};
|
|
998
|
-
let response;
|
|
999
959
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
960
|
switch (errorCode) {
|
|
1001
961
|
case "InternalException":
|
|
@@ -1006,14 +966,12 @@ const deserializeAws_json1_1DescribeFindingsCommandError = async (output, contex
|
|
|
1006
966
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1007
967
|
default:
|
|
1008
968
|
const parsedBody = parsedOutput.body;
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
$metadata,
|
|
969
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
970
|
+
output,
|
|
971
|
+
parsedBody,
|
|
972
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
973
|
+
errorCode,
|
|
1015
974
|
});
|
|
1016
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1017
975
|
}
|
|
1018
976
|
};
|
|
1019
977
|
const deserializeAws_json1_1DescribeResourceGroupsCommand = async (output, context) => {
|
|
@@ -1035,7 +993,6 @@ const deserializeAws_json1_1DescribeResourceGroupsCommandError = async (output,
|
|
|
1035
993
|
...output,
|
|
1036
994
|
body: await parseBody(output.body, context),
|
|
1037
995
|
};
|
|
1038
|
-
let response;
|
|
1039
996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
997
|
switch (errorCode) {
|
|
1041
998
|
case "InternalException":
|
|
@@ -1046,14 +1003,12 @@ const deserializeAws_json1_1DescribeResourceGroupsCommandError = async (output,
|
|
|
1046
1003
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1047
1004
|
default:
|
|
1048
1005
|
const parsedBody = parsedOutput.body;
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
$metadata,
|
|
1006
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1007
|
+
output,
|
|
1008
|
+
parsedBody,
|
|
1009
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1010
|
+
errorCode,
|
|
1055
1011
|
});
|
|
1056
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1057
1012
|
}
|
|
1058
1013
|
};
|
|
1059
1014
|
const deserializeAws_json1_1DescribeRulesPackagesCommand = async (output, context) => {
|
|
@@ -1075,7 +1030,6 @@ const deserializeAws_json1_1DescribeRulesPackagesCommandError = async (output, c
|
|
|
1075
1030
|
...output,
|
|
1076
1031
|
body: await parseBody(output.body, context),
|
|
1077
1032
|
};
|
|
1078
|
-
let response;
|
|
1079
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1080
1034
|
switch (errorCode) {
|
|
1081
1035
|
case "InternalException":
|
|
@@ -1086,14 +1040,12 @@ const deserializeAws_json1_1DescribeRulesPackagesCommandError = async (output, c
|
|
|
1086
1040
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1087
1041
|
default:
|
|
1088
1042
|
const parsedBody = parsedOutput.body;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
$metadata,
|
|
1043
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1044
|
+
output,
|
|
1045
|
+
parsedBody,
|
|
1046
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1047
|
+
errorCode,
|
|
1095
1048
|
});
|
|
1096
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1097
1049
|
}
|
|
1098
1050
|
};
|
|
1099
1051
|
const deserializeAws_json1_1GetAssessmentReportCommand = async (output, context) => {
|
|
@@ -1115,7 +1067,6 @@ const deserializeAws_json1_1GetAssessmentReportCommandError = async (output, con
|
|
|
1115
1067
|
...output,
|
|
1116
1068
|
body: await parseBody(output.body, context),
|
|
1117
1069
|
};
|
|
1118
|
-
let response;
|
|
1119
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1071
|
switch (errorCode) {
|
|
1121
1072
|
case "AccessDeniedException":
|
|
@@ -1141,14 +1092,12 @@ const deserializeAws_json1_1GetAssessmentReportCommandError = async (output, con
|
|
|
1141
1092
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
1142
1093
|
default:
|
|
1143
1094
|
const parsedBody = parsedOutput.body;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
$metadata,
|
|
1095
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1096
|
+
output,
|
|
1097
|
+
parsedBody,
|
|
1098
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1099
|
+
errorCode,
|
|
1150
1100
|
});
|
|
1151
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1152
1101
|
}
|
|
1153
1102
|
};
|
|
1154
1103
|
const deserializeAws_json1_1GetExclusionsPreviewCommand = async (output, context) => {
|
|
@@ -1170,7 +1119,6 @@ const deserializeAws_json1_1GetExclusionsPreviewCommandError = async (output, co
|
|
|
1170
1119
|
...output,
|
|
1171
1120
|
body: await parseBody(output.body, context),
|
|
1172
1121
|
};
|
|
1173
|
-
let response;
|
|
1174
1122
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
1123
|
switch (errorCode) {
|
|
1176
1124
|
case "AccessDeniedException":
|
|
@@ -1187,14 +1135,12 @@ const deserializeAws_json1_1GetExclusionsPreviewCommandError = async (output, co
|
|
|
1187
1135
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1188
1136
|
default:
|
|
1189
1137
|
const parsedBody = parsedOutput.body;
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
$metadata,
|
|
1138
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1139
|
+
output,
|
|
1140
|
+
parsedBody,
|
|
1141
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1142
|
+
errorCode,
|
|
1196
1143
|
});
|
|
1197
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1198
1144
|
}
|
|
1199
1145
|
};
|
|
1200
1146
|
const deserializeAws_json1_1GetTelemetryMetadataCommand = async (output, context) => {
|
|
@@ -1216,7 +1162,6 @@ const deserializeAws_json1_1GetTelemetryMetadataCommandError = async (output, co
|
|
|
1216
1162
|
...output,
|
|
1217
1163
|
body: await parseBody(output.body, context),
|
|
1218
1164
|
};
|
|
1219
|
-
let response;
|
|
1220
1165
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
1166
|
switch (errorCode) {
|
|
1222
1167
|
case "AccessDeniedException":
|
|
@@ -1233,14 +1178,12 @@ const deserializeAws_json1_1GetTelemetryMetadataCommandError = async (output, co
|
|
|
1233
1178
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1234
1179
|
default:
|
|
1235
1180
|
const parsedBody = parsedOutput.body;
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
$metadata,
|
|
1181
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1182
|
+
output,
|
|
1183
|
+
parsedBody,
|
|
1184
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1185
|
+
errorCode,
|
|
1242
1186
|
});
|
|
1243
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1244
1187
|
}
|
|
1245
1188
|
};
|
|
1246
1189
|
const deserializeAws_json1_1ListAssessmentRunAgentsCommand = async (output, context) => {
|
|
@@ -1262,7 +1205,6 @@ const deserializeAws_json1_1ListAssessmentRunAgentsCommandError = async (output,
|
|
|
1262
1205
|
...output,
|
|
1263
1206
|
body: await parseBody(output.body, context),
|
|
1264
1207
|
};
|
|
1265
|
-
let response;
|
|
1266
1208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
1209
|
switch (errorCode) {
|
|
1268
1210
|
case "AccessDeniedException":
|
|
@@ -1279,14 +1221,12 @@ const deserializeAws_json1_1ListAssessmentRunAgentsCommandError = async (output,
|
|
|
1279
1221
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1280
1222
|
default:
|
|
1281
1223
|
const parsedBody = parsedOutput.body;
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
$metadata,
|
|
1224
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1225
|
+
output,
|
|
1226
|
+
parsedBody,
|
|
1227
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1228
|
+
errorCode,
|
|
1288
1229
|
});
|
|
1289
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1290
1230
|
}
|
|
1291
1231
|
};
|
|
1292
1232
|
const deserializeAws_json1_1ListAssessmentRunsCommand = async (output, context) => {
|
|
@@ -1308,7 +1248,6 @@ const deserializeAws_json1_1ListAssessmentRunsCommandError = async (output, cont
|
|
|
1308
1248
|
...output,
|
|
1309
1249
|
body: await parseBody(output.body, context),
|
|
1310
1250
|
};
|
|
1311
|
-
let response;
|
|
1312
1251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
1252
|
switch (errorCode) {
|
|
1314
1253
|
case "AccessDeniedException":
|
|
@@ -1325,14 +1264,12 @@ const deserializeAws_json1_1ListAssessmentRunsCommandError = async (output, cont
|
|
|
1325
1264
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1326
1265
|
default:
|
|
1327
1266
|
const parsedBody = parsedOutput.body;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
$metadata,
|
|
1267
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1268
|
+
output,
|
|
1269
|
+
parsedBody,
|
|
1270
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1271
|
+
errorCode,
|
|
1334
1272
|
});
|
|
1335
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1336
1273
|
}
|
|
1337
1274
|
};
|
|
1338
1275
|
const deserializeAws_json1_1ListAssessmentTargetsCommand = async (output, context) => {
|
|
@@ -1354,7 +1291,6 @@ const deserializeAws_json1_1ListAssessmentTargetsCommandError = async (output, c
|
|
|
1354
1291
|
...output,
|
|
1355
1292
|
body: await parseBody(output.body, context),
|
|
1356
1293
|
};
|
|
1357
|
-
let response;
|
|
1358
1294
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1295
|
switch (errorCode) {
|
|
1360
1296
|
case "AccessDeniedException":
|
|
@@ -1368,14 +1304,12 @@ const deserializeAws_json1_1ListAssessmentTargetsCommandError = async (output, c
|
|
|
1368
1304
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1369
1305
|
default:
|
|
1370
1306
|
const parsedBody = parsedOutput.body;
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
$metadata,
|
|
1307
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1308
|
+
output,
|
|
1309
|
+
parsedBody,
|
|
1310
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1311
|
+
errorCode,
|
|
1377
1312
|
});
|
|
1378
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1379
1313
|
}
|
|
1380
1314
|
};
|
|
1381
1315
|
const deserializeAws_json1_1ListAssessmentTemplatesCommand = async (output, context) => {
|
|
@@ -1397,7 +1331,6 @@ const deserializeAws_json1_1ListAssessmentTemplatesCommandError = async (output,
|
|
|
1397
1331
|
...output,
|
|
1398
1332
|
body: await parseBody(output.body, context),
|
|
1399
1333
|
};
|
|
1400
|
-
let response;
|
|
1401
1334
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
1335
|
switch (errorCode) {
|
|
1403
1336
|
case "AccessDeniedException":
|
|
@@ -1414,14 +1347,12 @@ const deserializeAws_json1_1ListAssessmentTemplatesCommandError = async (output,
|
|
|
1414
1347
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1415
1348
|
default:
|
|
1416
1349
|
const parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
$metadata,
|
|
1350
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1351
|
+
output,
|
|
1352
|
+
parsedBody,
|
|
1353
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1354
|
+
errorCode,
|
|
1423
1355
|
});
|
|
1424
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1425
1356
|
}
|
|
1426
1357
|
};
|
|
1427
1358
|
const deserializeAws_json1_1ListEventSubscriptionsCommand = async (output, context) => {
|
|
@@ -1443,7 +1374,6 @@ const deserializeAws_json1_1ListEventSubscriptionsCommandError = async (output,
|
|
|
1443
1374
|
...output,
|
|
1444
1375
|
body: await parseBody(output.body, context),
|
|
1445
1376
|
};
|
|
1446
|
-
let response;
|
|
1447
1377
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
1378
|
switch (errorCode) {
|
|
1449
1379
|
case "AccessDeniedException":
|
|
@@ -1460,14 +1390,12 @@ const deserializeAws_json1_1ListEventSubscriptionsCommandError = async (output,
|
|
|
1460
1390
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1461
1391
|
default:
|
|
1462
1392
|
const parsedBody = parsedOutput.body;
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
$metadata,
|
|
1393
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1394
|
+
output,
|
|
1395
|
+
parsedBody,
|
|
1396
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1397
|
+
errorCode,
|
|
1469
1398
|
});
|
|
1470
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1471
1399
|
}
|
|
1472
1400
|
};
|
|
1473
1401
|
const deserializeAws_json1_1ListExclusionsCommand = async (output, context) => {
|
|
@@ -1489,7 +1417,6 @@ const deserializeAws_json1_1ListExclusionsCommandError = async (output, context)
|
|
|
1489
1417
|
...output,
|
|
1490
1418
|
body: await parseBody(output.body, context),
|
|
1491
1419
|
};
|
|
1492
|
-
let response;
|
|
1493
1420
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1494
1421
|
switch (errorCode) {
|
|
1495
1422
|
case "AccessDeniedException":
|
|
@@ -1506,14 +1433,12 @@ const deserializeAws_json1_1ListExclusionsCommandError = async (output, context)
|
|
|
1506
1433
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1507
1434
|
default:
|
|
1508
1435
|
const parsedBody = parsedOutput.body;
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
$metadata,
|
|
1436
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1437
|
+
output,
|
|
1438
|
+
parsedBody,
|
|
1439
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1440
|
+
errorCode,
|
|
1515
1441
|
});
|
|
1516
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1517
1442
|
}
|
|
1518
1443
|
};
|
|
1519
1444
|
const deserializeAws_json1_1ListFindingsCommand = async (output, context) => {
|
|
@@ -1535,7 +1460,6 @@ const deserializeAws_json1_1ListFindingsCommandError = async (output, context) =
|
|
|
1535
1460
|
...output,
|
|
1536
1461
|
body: await parseBody(output.body, context),
|
|
1537
1462
|
};
|
|
1538
|
-
let response;
|
|
1539
1463
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
1464
|
switch (errorCode) {
|
|
1541
1465
|
case "AccessDeniedException":
|
|
@@ -1552,14 +1476,12 @@ const deserializeAws_json1_1ListFindingsCommandError = async (output, context) =
|
|
|
1552
1476
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1553
1477
|
default:
|
|
1554
1478
|
const parsedBody = parsedOutput.body;
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
$metadata,
|
|
1479
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1480
|
+
output,
|
|
1481
|
+
parsedBody,
|
|
1482
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1483
|
+
errorCode,
|
|
1561
1484
|
});
|
|
1562
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1563
1485
|
}
|
|
1564
1486
|
};
|
|
1565
1487
|
const deserializeAws_json1_1ListRulesPackagesCommand = async (output, context) => {
|
|
@@ -1581,7 +1503,6 @@ const deserializeAws_json1_1ListRulesPackagesCommandError = async (output, conte
|
|
|
1581
1503
|
...output,
|
|
1582
1504
|
body: await parseBody(output.body, context),
|
|
1583
1505
|
};
|
|
1584
|
-
let response;
|
|
1585
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
1507
|
switch (errorCode) {
|
|
1587
1508
|
case "AccessDeniedException":
|
|
@@ -1595,14 +1516,12 @@ const deserializeAws_json1_1ListRulesPackagesCommandError = async (output, conte
|
|
|
1595
1516
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1596
1517
|
default:
|
|
1597
1518
|
const parsedBody = parsedOutput.body;
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
$metadata,
|
|
1519
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1520
|
+
output,
|
|
1521
|
+
parsedBody,
|
|
1522
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1523
|
+
errorCode,
|
|
1604
1524
|
});
|
|
1605
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1606
1525
|
}
|
|
1607
1526
|
};
|
|
1608
1527
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1624,7 +1543,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1624
1543
|
...output,
|
|
1625
1544
|
body: await parseBody(output.body, context),
|
|
1626
1545
|
};
|
|
1627
|
-
let response;
|
|
1628
1546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
1547
|
switch (errorCode) {
|
|
1630
1548
|
case "AccessDeniedException":
|
|
@@ -1641,14 +1559,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1641
1559
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1642
1560
|
default:
|
|
1643
1561
|
const parsedBody = parsedOutput.body;
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
$metadata,
|
|
1562
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1563
|
+
output,
|
|
1564
|
+
parsedBody,
|
|
1565
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1566
|
+
errorCode,
|
|
1650
1567
|
});
|
|
1651
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1652
1568
|
}
|
|
1653
1569
|
};
|
|
1654
1570
|
const deserializeAws_json1_1PreviewAgentsCommand = async (output, context) => {
|
|
@@ -1670,7 +1586,6 @@ const deserializeAws_json1_1PreviewAgentsCommandError = async (output, context)
|
|
|
1670
1586
|
...output,
|
|
1671
1587
|
body: await parseBody(output.body, context),
|
|
1672
1588
|
};
|
|
1673
|
-
let response;
|
|
1674
1589
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
1590
|
switch (errorCode) {
|
|
1676
1591
|
case "AccessDeniedException":
|
|
@@ -1690,14 +1605,12 @@ const deserializeAws_json1_1PreviewAgentsCommandError = async (output, context)
|
|
|
1690
1605
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1691
1606
|
default:
|
|
1692
1607
|
const parsedBody = parsedOutput.body;
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
$metadata,
|
|
1608
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1609
|
+
output,
|
|
1610
|
+
parsedBody,
|
|
1611
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1612
|
+
errorCode,
|
|
1699
1613
|
});
|
|
1700
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1701
1614
|
}
|
|
1702
1615
|
};
|
|
1703
1616
|
const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand = async (output, context) => {
|
|
@@ -1716,7 +1629,6 @@ const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = async (
|
|
|
1716
1629
|
...output,
|
|
1717
1630
|
body: await parseBody(output.body, context),
|
|
1718
1631
|
};
|
|
1719
|
-
let response;
|
|
1720
1632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
1633
|
switch (errorCode) {
|
|
1722
1634
|
case "AccessDeniedException":
|
|
@@ -1736,14 +1648,12 @@ const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = async (
|
|
|
1736
1648
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1737
1649
|
default:
|
|
1738
1650
|
const parsedBody = parsedOutput.body;
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
$metadata,
|
|
1651
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1652
|
+
output,
|
|
1653
|
+
parsedBody,
|
|
1654
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1655
|
+
errorCode,
|
|
1745
1656
|
});
|
|
1746
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1747
1657
|
}
|
|
1748
1658
|
};
|
|
1749
1659
|
const deserializeAws_json1_1RemoveAttributesFromFindingsCommand = async (output, context) => {
|
|
@@ -1765,7 +1675,6 @@ const deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = async (ou
|
|
|
1765
1675
|
...output,
|
|
1766
1676
|
body: await parseBody(output.body, context),
|
|
1767
1677
|
};
|
|
1768
|
-
let response;
|
|
1769
1678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
1679
|
switch (errorCode) {
|
|
1771
1680
|
case "AccessDeniedException":
|
|
@@ -1785,14 +1694,12 @@ const deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = async (ou
|
|
|
1785
1694
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1786
1695
|
default:
|
|
1787
1696
|
const parsedBody = parsedOutput.body;
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
$metadata,
|
|
1697
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1698
|
+
output,
|
|
1699
|
+
parsedBody,
|
|
1700
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1701
|
+
errorCode,
|
|
1794
1702
|
});
|
|
1795
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1796
1703
|
}
|
|
1797
1704
|
};
|
|
1798
1705
|
const deserializeAws_json1_1SetTagsForResourceCommand = async (output, context) => {
|
|
@@ -1811,7 +1718,6 @@ const deserializeAws_json1_1SetTagsForResourceCommandError = async (output, cont
|
|
|
1811
1718
|
...output,
|
|
1812
1719
|
body: await parseBody(output.body, context),
|
|
1813
1720
|
};
|
|
1814
|
-
let response;
|
|
1815
1721
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1722
|
switch (errorCode) {
|
|
1817
1723
|
case "AccessDeniedException":
|
|
@@ -1831,14 +1737,12 @@ const deserializeAws_json1_1SetTagsForResourceCommandError = async (output, cont
|
|
|
1831
1737
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1832
1738
|
default:
|
|
1833
1739
|
const parsedBody = parsedOutput.body;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
$metadata,
|
|
1740
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1741
|
+
output,
|
|
1742
|
+
parsedBody,
|
|
1743
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1744
|
+
errorCode,
|
|
1840
1745
|
});
|
|
1841
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1842
1746
|
}
|
|
1843
1747
|
};
|
|
1844
1748
|
const deserializeAws_json1_1StartAssessmentRunCommand = async (output, context) => {
|
|
@@ -1860,7 +1764,6 @@ const deserializeAws_json1_1StartAssessmentRunCommandError = async (output, cont
|
|
|
1860
1764
|
...output,
|
|
1861
1765
|
body: await parseBody(output.body, context),
|
|
1862
1766
|
};
|
|
1863
|
-
let response;
|
|
1864
1767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
1768
|
switch (errorCode) {
|
|
1866
1769
|
case "AccessDeniedException":
|
|
@@ -1889,14 +1792,12 @@ const deserializeAws_json1_1StartAssessmentRunCommandError = async (output, cont
|
|
|
1889
1792
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1890
1793
|
default:
|
|
1891
1794
|
const parsedBody = parsedOutput.body;
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
$metadata,
|
|
1795
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1796
|
+
output,
|
|
1797
|
+
parsedBody,
|
|
1798
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1799
|
+
errorCode,
|
|
1898
1800
|
});
|
|
1899
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1900
1801
|
}
|
|
1901
1802
|
};
|
|
1902
1803
|
const deserializeAws_json1_1StopAssessmentRunCommand = async (output, context) => {
|
|
@@ -1915,7 +1816,6 @@ const deserializeAws_json1_1StopAssessmentRunCommandError = async (output, conte
|
|
|
1915
1816
|
...output,
|
|
1916
1817
|
body: await parseBody(output.body, context),
|
|
1917
1818
|
};
|
|
1918
|
-
let response;
|
|
1919
1819
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
1820
|
switch (errorCode) {
|
|
1921
1821
|
case "AccessDeniedException":
|
|
@@ -1935,14 +1835,12 @@ const deserializeAws_json1_1StopAssessmentRunCommandError = async (output, conte
|
|
|
1935
1835
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1936
1836
|
default:
|
|
1937
1837
|
const parsedBody = parsedOutput.body;
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
$metadata,
|
|
1838
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1839
|
+
output,
|
|
1840
|
+
parsedBody,
|
|
1841
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1842
|
+
errorCode,
|
|
1944
1843
|
});
|
|
1945
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1946
1844
|
}
|
|
1947
1845
|
};
|
|
1948
1846
|
const deserializeAws_json1_1SubscribeToEventCommand = async (output, context) => {
|
|
@@ -1961,7 +1859,6 @@ const deserializeAws_json1_1SubscribeToEventCommandError = async (output, contex
|
|
|
1961
1859
|
...output,
|
|
1962
1860
|
body: await parseBody(output.body, context),
|
|
1963
1861
|
};
|
|
1964
|
-
let response;
|
|
1965
1862
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
1863
|
switch (errorCode) {
|
|
1967
1864
|
case "AccessDeniedException":
|
|
@@ -1984,14 +1881,12 @@ const deserializeAws_json1_1SubscribeToEventCommandError = async (output, contex
|
|
|
1984
1881
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1985
1882
|
default:
|
|
1986
1883
|
const parsedBody = parsedOutput.body;
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
$metadata,
|
|
1884
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1885
|
+
output,
|
|
1886
|
+
parsedBody,
|
|
1887
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1888
|
+
errorCode,
|
|
1993
1889
|
});
|
|
1994
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1995
1890
|
}
|
|
1996
1891
|
};
|
|
1997
1892
|
const deserializeAws_json1_1UnsubscribeFromEventCommand = async (output, context) => {
|
|
@@ -2010,7 +1905,6 @@ const deserializeAws_json1_1UnsubscribeFromEventCommandError = async (output, co
|
|
|
2010
1905
|
...output,
|
|
2011
1906
|
body: await parseBody(output.body, context),
|
|
2012
1907
|
};
|
|
2013
|
-
let response;
|
|
2014
1908
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
1909
|
switch (errorCode) {
|
|
2016
1910
|
case "AccessDeniedException":
|
|
@@ -2030,14 +1924,12 @@ const deserializeAws_json1_1UnsubscribeFromEventCommandError = async (output, co
|
|
|
2030
1924
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
2031
1925
|
default:
|
|
2032
1926
|
const parsedBody = parsedOutput.body;
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
$metadata,
|
|
1927
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1928
|
+
output,
|
|
1929
|
+
parsedBody,
|
|
1930
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1931
|
+
errorCode,
|
|
2039
1932
|
});
|
|
2040
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2041
1933
|
}
|
|
2042
1934
|
};
|
|
2043
1935
|
const deserializeAws_json1_1UpdateAssessmentTargetCommand = async (output, context) => {
|
|
@@ -2056,7 +1948,6 @@ const deserializeAws_json1_1UpdateAssessmentTargetCommandError = async (output,
|
|
|
2056
1948
|
...output,
|
|
2057
1949
|
body: await parseBody(output.body, context),
|
|
2058
1950
|
};
|
|
2059
|
-
let response;
|
|
2060
1951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
1952
|
switch (errorCode) {
|
|
2062
1953
|
case "AccessDeniedException":
|
|
@@ -2076,14 +1967,12 @@ const deserializeAws_json1_1UpdateAssessmentTargetCommandError = async (output,
|
|
|
2076
1967
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
2077
1968
|
default:
|
|
2078
1969
|
const parsedBody = parsedOutput.body;
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
$metadata,
|
|
1970
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1971
|
+
output,
|
|
1972
|
+
parsedBody,
|
|
1973
|
+
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1974
|
+
errorCode,
|
|
2085
1975
|
});
|
|
2086
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2087
1976
|
}
|
|
2088
1977
|
};
|
|
2089
1978
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2197,9 +2086,6 @@ const serializeAws_json1_1AddRemoveAttributesFindingArnList = (input, context) =
|
|
|
2197
2086
|
return input
|
|
2198
2087
|
.filter((e) => e != null)
|
|
2199
2088
|
.map((entry) => {
|
|
2200
|
-
if (entry === null) {
|
|
2201
|
-
return null;
|
|
2202
|
-
}
|
|
2203
2089
|
return entry;
|
|
2204
2090
|
});
|
|
2205
2091
|
};
|
|
@@ -2217,9 +2103,6 @@ const serializeAws_json1_1AgentHealthCodeList = (input, context) => {
|
|
|
2217
2103
|
return input
|
|
2218
2104
|
.filter((e) => e != null)
|
|
2219
2105
|
.map((entry) => {
|
|
2220
|
-
if (entry === null) {
|
|
2221
|
-
return null;
|
|
2222
|
-
}
|
|
2223
2106
|
return entry;
|
|
2224
2107
|
});
|
|
2225
2108
|
};
|
|
@@ -2227,9 +2110,6 @@ const serializeAws_json1_1AgentHealthList = (input, context) => {
|
|
|
2227
2110
|
return input
|
|
2228
2111
|
.filter((e) => e != null)
|
|
2229
2112
|
.map((entry) => {
|
|
2230
|
-
if (entry === null) {
|
|
2231
|
-
return null;
|
|
2232
|
-
}
|
|
2233
2113
|
return entry;
|
|
2234
2114
|
});
|
|
2235
2115
|
};
|
|
@@ -2237,9 +2117,6 @@ const serializeAws_json1_1AgentIdList = (input, context) => {
|
|
|
2237
2117
|
return input
|
|
2238
2118
|
.filter((e) => e != null)
|
|
2239
2119
|
.map((entry) => {
|
|
2240
|
-
if (entry === null) {
|
|
2241
|
-
return null;
|
|
2242
|
-
}
|
|
2243
2120
|
return entry;
|
|
2244
2121
|
});
|
|
2245
2122
|
};
|
|
@@ -2268,9 +2145,6 @@ const serializeAws_json1_1AssessmentRunStateList = (input, context) => {
|
|
|
2268
2145
|
return input
|
|
2269
2146
|
.filter((e) => e != null)
|
|
2270
2147
|
.map((entry) => {
|
|
2271
|
-
if (entry === null) {
|
|
2272
|
-
return null;
|
|
2273
|
-
}
|
|
2274
2148
|
return entry;
|
|
2275
2149
|
});
|
|
2276
2150
|
};
|
|
@@ -2296,9 +2170,6 @@ const serializeAws_json1_1AssessmentTemplateRulesPackageArnList = (input, contex
|
|
|
2296
2170
|
return input
|
|
2297
2171
|
.filter((e) => e != null)
|
|
2298
2172
|
.map((entry) => {
|
|
2299
|
-
if (entry === null) {
|
|
2300
|
-
return null;
|
|
2301
|
-
}
|
|
2302
2173
|
return entry;
|
|
2303
2174
|
});
|
|
2304
2175
|
};
|
|
@@ -2312,9 +2183,6 @@ const serializeAws_json1_1AttributeList = (input, context) => {
|
|
|
2312
2183
|
return input
|
|
2313
2184
|
.filter((e) => e != null)
|
|
2314
2185
|
.map((entry) => {
|
|
2315
|
-
if (entry === null) {
|
|
2316
|
-
return null;
|
|
2317
|
-
}
|
|
2318
2186
|
return serializeAws_json1_1Attribute(entry, context);
|
|
2319
2187
|
});
|
|
2320
2188
|
};
|
|
@@ -2322,9 +2190,6 @@ const serializeAws_json1_1AutoScalingGroupList = (input, context) => {
|
|
|
2322
2190
|
return input
|
|
2323
2191
|
.filter((e) => e != null)
|
|
2324
2192
|
.map((entry) => {
|
|
2325
|
-
if (entry === null) {
|
|
2326
|
-
return null;
|
|
2327
|
-
}
|
|
2328
2193
|
return entry;
|
|
2329
2194
|
});
|
|
2330
2195
|
};
|
|
@@ -2332,9 +2197,6 @@ const serializeAws_json1_1BatchDescribeArnList = (input, context) => {
|
|
|
2332
2197
|
return input
|
|
2333
2198
|
.filter((e) => e != null)
|
|
2334
2199
|
.map((entry) => {
|
|
2335
|
-
if (entry === null) {
|
|
2336
|
-
return null;
|
|
2337
|
-
}
|
|
2338
2200
|
return entry;
|
|
2339
2201
|
});
|
|
2340
2202
|
};
|
|
@@ -2342,9 +2204,6 @@ const serializeAws_json1_1BatchDescribeExclusionsArnList = (input, context) => {
|
|
|
2342
2204
|
return input
|
|
2343
2205
|
.filter((e) => e != null)
|
|
2344
2206
|
.map((entry) => {
|
|
2345
|
-
if (entry === null) {
|
|
2346
|
-
return null;
|
|
2347
|
-
}
|
|
2348
2207
|
return entry;
|
|
2349
2208
|
});
|
|
2350
2209
|
};
|
|
@@ -2456,9 +2315,6 @@ const serializeAws_json1_1FilterRulesPackageArnList = (input, context) => {
|
|
|
2456
2315
|
return input
|
|
2457
2316
|
.filter((e) => e != null)
|
|
2458
2317
|
.map((entry) => {
|
|
2459
|
-
if (entry === null) {
|
|
2460
|
-
return null;
|
|
2461
|
-
}
|
|
2462
2318
|
return entry;
|
|
2463
2319
|
});
|
|
2464
2320
|
};
|
|
@@ -2566,9 +2422,6 @@ const serializeAws_json1_1ListParentArnList = (input, context) => {
|
|
|
2566
2422
|
return input
|
|
2567
2423
|
.filter((e) => e != null)
|
|
2568
2424
|
.map((entry) => {
|
|
2569
|
-
if (entry === null) {
|
|
2570
|
-
return null;
|
|
2571
|
-
}
|
|
2572
2425
|
return entry;
|
|
2573
2426
|
});
|
|
2574
2427
|
};
|
|
@@ -2615,9 +2468,6 @@ const serializeAws_json1_1ResourceGroupTags = (input, context) => {
|
|
|
2615
2468
|
return input
|
|
2616
2469
|
.filter((e) => e != null)
|
|
2617
2470
|
.map((entry) => {
|
|
2618
|
-
if (entry === null) {
|
|
2619
|
-
return null;
|
|
2620
|
-
}
|
|
2621
2471
|
return serializeAws_json1_1ResourceGroupTag(entry, context);
|
|
2622
2472
|
});
|
|
2623
2473
|
};
|
|
@@ -2625,9 +2475,6 @@ const serializeAws_json1_1RuleNameList = (input, context) => {
|
|
|
2625
2475
|
return input
|
|
2626
2476
|
.filter((e) => e != null)
|
|
2627
2477
|
.map((entry) => {
|
|
2628
|
-
if (entry === null) {
|
|
2629
|
-
return null;
|
|
2630
|
-
}
|
|
2631
2478
|
return entry;
|
|
2632
2479
|
});
|
|
2633
2480
|
};
|
|
@@ -2641,9 +2488,6 @@ const serializeAws_json1_1SeverityList = (input, context) => {
|
|
|
2641
2488
|
return input
|
|
2642
2489
|
.filter((e) => e != null)
|
|
2643
2490
|
.map((entry) => {
|
|
2644
|
-
if (entry === null) {
|
|
2645
|
-
return null;
|
|
2646
|
-
}
|
|
2647
2491
|
return entry;
|
|
2648
2492
|
});
|
|
2649
2493
|
};
|
|
@@ -2676,9 +2520,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2676
2520
|
return input
|
|
2677
2521
|
.filter((e) => e != null)
|
|
2678
2522
|
.map((entry) => {
|
|
2679
|
-
if (entry === null) {
|
|
2680
|
-
return null;
|
|
2681
|
-
}
|
|
2682
2523
|
return serializeAws_json1_1Tag(entry, context);
|
|
2683
2524
|
});
|
|
2684
2525
|
};
|
|
@@ -2706,9 +2547,6 @@ const serializeAws_json1_1UserAttributeKeyList = (input, context) => {
|
|
|
2706
2547
|
return input
|
|
2707
2548
|
.filter((e) => e != null)
|
|
2708
2549
|
.map((entry) => {
|
|
2709
|
-
if (entry === null) {
|
|
2710
|
-
return null;
|
|
2711
|
-
}
|
|
2712
2550
|
return entry;
|
|
2713
2551
|
});
|
|
2714
2552
|
};
|
|
@@ -2716,9 +2554,6 @@ const serializeAws_json1_1UserAttributeList = (input, context) => {
|
|
|
2716
2554
|
return input
|
|
2717
2555
|
.filter((e) => e != null)
|
|
2718
2556
|
.map((entry) => {
|
|
2719
|
-
if (entry === null) {
|
|
2720
|
-
return null;
|
|
2721
|
-
}
|
|
2722
2557
|
return serializeAws_json1_1Attribute(entry, context);
|
|
2723
2558
|
});
|
|
2724
2559
|
};
|