@aws-sdk/client-inspector 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +368 -463
- package/dist-es/protocols/Aws_json1_1.js +318 -413
- package/package.json +26 -26
|
@@ -395,8 +395,7 @@ const deserializeAws_json1_1AddAttributesToFindingsCommandError = async (output,
|
|
|
395
395
|
body: await parseBody(output.body, context),
|
|
396
396
|
};
|
|
397
397
|
let response;
|
|
398
|
-
|
|
399
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
399
|
switch (errorCode) {
|
|
401
400
|
case "AccessDeniedException":
|
|
402
401
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -415,10 +414,12 @@ const deserializeAws_json1_1AddAttributesToFindingsCommandError = async (output,
|
|
|
415
414
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
416
415
|
default:
|
|
417
416
|
const parsedBody = parsedOutput.body;
|
|
417
|
+
const $metadata = deserializeMetadata(output);
|
|
418
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
418
419
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
419
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
420
421
|
$fault: "client",
|
|
421
|
-
$metadata
|
|
422
|
+
$metadata,
|
|
422
423
|
});
|
|
423
424
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
424
425
|
}
|
|
@@ -443,8 +444,7 @@ const deserializeAws_json1_1CreateAssessmentTargetCommandError = async (output,
|
|
|
443
444
|
body: await parseBody(output.body, context),
|
|
444
445
|
};
|
|
445
446
|
let response;
|
|
446
|
-
|
|
447
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
448
|
switch (errorCode) {
|
|
449
449
|
case "AccessDeniedException":
|
|
450
450
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -469,10 +469,12 @@ const deserializeAws_json1_1CreateAssessmentTargetCommandError = async (output,
|
|
|
469
469
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
470
470
|
default:
|
|
471
471
|
const parsedBody = parsedOutput.body;
|
|
472
|
+
const $metadata = deserializeMetadata(output);
|
|
473
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
472
474
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
473
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
475
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
474
476
|
$fault: "client",
|
|
475
|
-
$metadata
|
|
477
|
+
$metadata,
|
|
476
478
|
});
|
|
477
479
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
478
480
|
}
|
|
@@ -497,8 +499,7 @@ const deserializeAws_json1_1CreateAssessmentTemplateCommandError = async (output
|
|
|
497
499
|
body: await parseBody(output.body, context),
|
|
498
500
|
};
|
|
499
501
|
let response;
|
|
500
|
-
|
|
501
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
503
|
switch (errorCode) {
|
|
503
504
|
case "AccessDeniedException":
|
|
504
505
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -520,10 +521,12 @@ const deserializeAws_json1_1CreateAssessmentTemplateCommandError = async (output
|
|
|
520
521
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
521
522
|
default:
|
|
522
523
|
const parsedBody = parsedOutput.body;
|
|
524
|
+
const $metadata = deserializeMetadata(output);
|
|
525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
523
526
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
524
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
525
528
|
$fault: "client",
|
|
526
|
-
$metadata
|
|
529
|
+
$metadata,
|
|
527
530
|
});
|
|
528
531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
529
532
|
}
|
|
@@ -548,8 +551,7 @@ const deserializeAws_json1_1CreateExclusionsPreviewCommandError = async (output,
|
|
|
548
551
|
body: await parseBody(output.body, context),
|
|
549
552
|
};
|
|
550
553
|
let response;
|
|
551
|
-
|
|
552
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
555
|
switch (errorCode) {
|
|
554
556
|
case "AccessDeniedException":
|
|
555
557
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -571,10 +573,12 @@ const deserializeAws_json1_1CreateExclusionsPreviewCommandError = async (output,
|
|
|
571
573
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
572
574
|
default:
|
|
573
575
|
const parsedBody = parsedOutput.body;
|
|
576
|
+
const $metadata = deserializeMetadata(output);
|
|
577
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
574
578
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
579
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
576
580
|
$fault: "client",
|
|
577
|
-
$metadata
|
|
581
|
+
$metadata,
|
|
578
582
|
});
|
|
579
583
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
580
584
|
}
|
|
@@ -599,8 +603,7 @@ const deserializeAws_json1_1CreateResourceGroupCommandError = async (output, con
|
|
|
599
603
|
body: await parseBody(output.body, context),
|
|
600
604
|
};
|
|
601
605
|
let response;
|
|
602
|
-
|
|
603
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
607
|
switch (errorCode) {
|
|
605
608
|
case "AccessDeniedException":
|
|
606
609
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -619,10 +622,12 @@ const deserializeAws_json1_1CreateResourceGroupCommandError = async (output, con
|
|
|
619
622
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
620
623
|
default:
|
|
621
624
|
const parsedBody = parsedOutput.body;
|
|
625
|
+
const $metadata = deserializeMetadata(output);
|
|
626
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
622
627
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
628
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
624
629
|
$fault: "client",
|
|
625
|
-
$metadata
|
|
630
|
+
$metadata,
|
|
626
631
|
});
|
|
627
632
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
628
633
|
}
|
|
@@ -644,8 +649,7 @@ const deserializeAws_json1_1DeleteAssessmentRunCommandError = async (output, con
|
|
|
644
649
|
body: await parseBody(output.body, context),
|
|
645
650
|
};
|
|
646
651
|
let response;
|
|
647
|
-
|
|
648
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
653
|
switch (errorCode) {
|
|
650
654
|
case "AccessDeniedException":
|
|
651
655
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -667,10 +671,12 @@ const deserializeAws_json1_1DeleteAssessmentRunCommandError = async (output, con
|
|
|
667
671
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
668
672
|
default:
|
|
669
673
|
const parsedBody = parsedOutput.body;
|
|
674
|
+
const $metadata = deserializeMetadata(output);
|
|
675
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
670
676
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
671
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
677
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
672
678
|
$fault: "client",
|
|
673
|
-
$metadata
|
|
679
|
+
$metadata,
|
|
674
680
|
});
|
|
675
681
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
676
682
|
}
|
|
@@ -692,8 +698,7 @@ const deserializeAws_json1_1DeleteAssessmentTargetCommandError = async (output,
|
|
|
692
698
|
body: await parseBody(output.body, context),
|
|
693
699
|
};
|
|
694
700
|
let response;
|
|
695
|
-
|
|
696
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
702
|
switch (errorCode) {
|
|
698
703
|
case "AccessDeniedException":
|
|
699
704
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -715,10 +720,12 @@ const deserializeAws_json1_1DeleteAssessmentTargetCommandError = async (output,
|
|
|
715
720
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
716
721
|
default:
|
|
717
722
|
const parsedBody = parsedOutput.body;
|
|
723
|
+
const $metadata = deserializeMetadata(output);
|
|
724
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
718
725
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
719
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
720
727
|
$fault: "client",
|
|
721
|
-
$metadata
|
|
728
|
+
$metadata,
|
|
722
729
|
});
|
|
723
730
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
724
731
|
}
|
|
@@ -740,8 +747,7 @@ const deserializeAws_json1_1DeleteAssessmentTemplateCommandError = async (output
|
|
|
740
747
|
body: await parseBody(output.body, context),
|
|
741
748
|
};
|
|
742
749
|
let response;
|
|
743
|
-
|
|
744
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
751
|
switch (errorCode) {
|
|
746
752
|
case "AccessDeniedException":
|
|
747
753
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -763,10 +769,12 @@ const deserializeAws_json1_1DeleteAssessmentTemplateCommandError = async (output
|
|
|
763
769
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
764
770
|
default:
|
|
765
771
|
const parsedBody = parsedOutput.body;
|
|
772
|
+
const $metadata = deserializeMetadata(output);
|
|
773
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
766
774
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
767
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
775
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
768
776
|
$fault: "client",
|
|
769
|
-
$metadata
|
|
777
|
+
$metadata,
|
|
770
778
|
});
|
|
771
779
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
772
780
|
}
|
|
@@ -791,8 +799,7 @@ const deserializeAws_json1_1DescribeAssessmentRunsCommandError = async (output,
|
|
|
791
799
|
body: await parseBody(output.body, context),
|
|
792
800
|
};
|
|
793
801
|
let response;
|
|
794
|
-
|
|
795
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
803
|
switch (errorCode) {
|
|
797
804
|
case "InternalException":
|
|
798
805
|
case "com.amazonaws.inspector#InternalException":
|
|
@@ -802,10 +809,12 @@ const deserializeAws_json1_1DescribeAssessmentRunsCommandError = async (output,
|
|
|
802
809
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
803
810
|
default:
|
|
804
811
|
const parsedBody = parsedOutput.body;
|
|
812
|
+
const $metadata = deserializeMetadata(output);
|
|
813
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
805
814
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
806
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
815
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
807
816
|
$fault: "client",
|
|
808
|
-
$metadata
|
|
817
|
+
$metadata,
|
|
809
818
|
});
|
|
810
819
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
811
820
|
}
|
|
@@ -830,8 +839,7 @@ const deserializeAws_json1_1DescribeAssessmentTargetsCommandError = async (outpu
|
|
|
830
839
|
body: await parseBody(output.body, context),
|
|
831
840
|
};
|
|
832
841
|
let response;
|
|
833
|
-
|
|
834
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
843
|
switch (errorCode) {
|
|
836
844
|
case "InternalException":
|
|
837
845
|
case "com.amazonaws.inspector#InternalException":
|
|
@@ -841,10 +849,12 @@ const deserializeAws_json1_1DescribeAssessmentTargetsCommandError = async (outpu
|
|
|
841
849
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
842
850
|
default:
|
|
843
851
|
const parsedBody = parsedOutput.body;
|
|
852
|
+
const $metadata = deserializeMetadata(output);
|
|
853
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
844
854
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
845
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
855
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
846
856
|
$fault: "client",
|
|
847
|
-
$metadata
|
|
857
|
+
$metadata,
|
|
848
858
|
});
|
|
849
859
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
850
860
|
}
|
|
@@ -869,8 +879,7 @@ const deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = async (out
|
|
|
869
879
|
body: await parseBody(output.body, context),
|
|
870
880
|
};
|
|
871
881
|
let response;
|
|
872
|
-
|
|
873
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
883
|
switch (errorCode) {
|
|
875
884
|
case "InternalException":
|
|
876
885
|
case "com.amazonaws.inspector#InternalException":
|
|
@@ -880,10 +889,12 @@ const deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = async (out
|
|
|
880
889
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
881
890
|
default:
|
|
882
891
|
const parsedBody = parsedOutput.body;
|
|
892
|
+
const $metadata = deserializeMetadata(output);
|
|
893
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
883
894
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
895
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
885
896
|
$fault: "client",
|
|
886
|
-
$metadata
|
|
897
|
+
$metadata,
|
|
887
898
|
});
|
|
888
899
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
889
900
|
}
|
|
@@ -908,18 +919,19 @@ const deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError = async (
|
|
|
908
919
|
body: await parseBody(output.body, context),
|
|
909
920
|
};
|
|
910
921
|
let response;
|
|
911
|
-
|
|
912
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
923
|
switch (errorCode) {
|
|
914
924
|
case "InternalException":
|
|
915
925
|
case "com.amazonaws.inspector#InternalException":
|
|
916
926
|
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
917
927
|
default:
|
|
918
928
|
const parsedBody = parsedOutput.body;
|
|
929
|
+
const $metadata = deserializeMetadata(output);
|
|
930
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
919
931
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
920
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
932
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
921
933
|
$fault: "client",
|
|
922
|
-
$metadata
|
|
934
|
+
$metadata,
|
|
923
935
|
});
|
|
924
936
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
925
937
|
}
|
|
@@ -944,8 +956,7 @@ const deserializeAws_json1_1DescribeExclusionsCommandError = async (output, cont
|
|
|
944
956
|
body: await parseBody(output.body, context),
|
|
945
957
|
};
|
|
946
958
|
let response;
|
|
947
|
-
|
|
948
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
960
|
switch (errorCode) {
|
|
950
961
|
case "InternalException":
|
|
951
962
|
case "com.amazonaws.inspector#InternalException":
|
|
@@ -955,10 +966,12 @@ const deserializeAws_json1_1DescribeExclusionsCommandError = async (output, cont
|
|
|
955
966
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
956
967
|
default:
|
|
957
968
|
const parsedBody = parsedOutput.body;
|
|
969
|
+
const $metadata = deserializeMetadata(output);
|
|
970
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
958
971
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
959
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
972
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
960
973
|
$fault: "client",
|
|
961
|
-
$metadata
|
|
974
|
+
$metadata,
|
|
962
975
|
});
|
|
963
976
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
964
977
|
}
|
|
@@ -983,8 +996,7 @@ const deserializeAws_json1_1DescribeFindingsCommandError = async (output, contex
|
|
|
983
996
|
body: await parseBody(output.body, context),
|
|
984
997
|
};
|
|
985
998
|
let response;
|
|
986
|
-
|
|
987
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
1000
|
switch (errorCode) {
|
|
989
1001
|
case "InternalException":
|
|
990
1002
|
case "com.amazonaws.inspector#InternalException":
|
|
@@ -994,10 +1006,12 @@ const deserializeAws_json1_1DescribeFindingsCommandError = async (output, contex
|
|
|
994
1006
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
995
1007
|
default:
|
|
996
1008
|
const parsedBody = parsedOutput.body;
|
|
1009
|
+
const $metadata = deserializeMetadata(output);
|
|
1010
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
997
1011
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
999
1013
|
$fault: "client",
|
|
1000
|
-
$metadata
|
|
1014
|
+
$metadata,
|
|
1001
1015
|
});
|
|
1002
1016
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1003
1017
|
}
|
|
@@ -1022,8 +1036,7 @@ const deserializeAws_json1_1DescribeResourceGroupsCommandError = async (output,
|
|
|
1022
1036
|
body: await parseBody(output.body, context),
|
|
1023
1037
|
};
|
|
1024
1038
|
let response;
|
|
1025
|
-
|
|
1026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
1040
|
switch (errorCode) {
|
|
1028
1041
|
case "InternalException":
|
|
1029
1042
|
case "com.amazonaws.inspector#InternalException":
|
|
@@ -1033,10 +1046,12 @@ const deserializeAws_json1_1DescribeResourceGroupsCommandError = async (output,
|
|
|
1033
1046
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1034
1047
|
default:
|
|
1035
1048
|
const parsedBody = parsedOutput.body;
|
|
1049
|
+
const $metadata = deserializeMetadata(output);
|
|
1050
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1036
1051
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1037
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1038
1053
|
$fault: "client",
|
|
1039
|
-
$metadata
|
|
1054
|
+
$metadata,
|
|
1040
1055
|
});
|
|
1041
1056
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1042
1057
|
}
|
|
@@ -1061,8 +1076,7 @@ const deserializeAws_json1_1DescribeRulesPackagesCommandError = async (output, c
|
|
|
1061
1076
|
body: await parseBody(output.body, context),
|
|
1062
1077
|
};
|
|
1063
1078
|
let response;
|
|
1064
|
-
|
|
1065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1080
|
switch (errorCode) {
|
|
1067
1081
|
case "InternalException":
|
|
1068
1082
|
case "com.amazonaws.inspector#InternalException":
|
|
@@ -1072,10 +1086,12 @@ const deserializeAws_json1_1DescribeRulesPackagesCommandError = async (output, c
|
|
|
1072
1086
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1073
1087
|
default:
|
|
1074
1088
|
const parsedBody = parsedOutput.body;
|
|
1089
|
+
const $metadata = deserializeMetadata(output);
|
|
1090
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1075
1091
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1092
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1077
1093
|
$fault: "client",
|
|
1078
|
-
$metadata
|
|
1094
|
+
$metadata,
|
|
1079
1095
|
});
|
|
1080
1096
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1081
1097
|
}
|
|
@@ -1100,8 +1116,7 @@ const deserializeAws_json1_1GetAssessmentReportCommandError = async (output, con
|
|
|
1100
1116
|
body: await parseBody(output.body, context),
|
|
1101
1117
|
};
|
|
1102
1118
|
let response;
|
|
1103
|
-
|
|
1104
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
1120
|
switch (errorCode) {
|
|
1106
1121
|
case "AccessDeniedException":
|
|
1107
1122
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1126,10 +1141,12 @@ const deserializeAws_json1_1GetAssessmentReportCommandError = async (output, con
|
|
|
1126
1141
|
throw await deserializeAws_json1_1UnsupportedFeatureExceptionResponse(parsedOutput, context);
|
|
1127
1142
|
default:
|
|
1128
1143
|
const parsedBody = parsedOutput.body;
|
|
1144
|
+
const $metadata = deserializeMetadata(output);
|
|
1145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1129
1146
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1130
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1131
1148
|
$fault: "client",
|
|
1132
|
-
$metadata
|
|
1149
|
+
$metadata,
|
|
1133
1150
|
});
|
|
1134
1151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1135
1152
|
}
|
|
@@ -1154,8 +1171,7 @@ const deserializeAws_json1_1GetExclusionsPreviewCommandError = async (output, co
|
|
|
1154
1171
|
body: await parseBody(output.body, context),
|
|
1155
1172
|
};
|
|
1156
1173
|
let response;
|
|
1157
|
-
|
|
1158
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
1175
|
switch (errorCode) {
|
|
1160
1176
|
case "AccessDeniedException":
|
|
1161
1177
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1171,10 +1187,12 @@ const deserializeAws_json1_1GetExclusionsPreviewCommandError = async (output, co
|
|
|
1171
1187
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1172
1188
|
default:
|
|
1173
1189
|
const parsedBody = parsedOutput.body;
|
|
1190
|
+
const $metadata = deserializeMetadata(output);
|
|
1191
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1174
1192
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1175
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1193
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1176
1194
|
$fault: "client",
|
|
1177
|
-
$metadata
|
|
1195
|
+
$metadata,
|
|
1178
1196
|
});
|
|
1179
1197
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1180
1198
|
}
|
|
@@ -1199,8 +1217,7 @@ const deserializeAws_json1_1GetTelemetryMetadataCommandError = async (output, co
|
|
|
1199
1217
|
body: await parseBody(output.body, context),
|
|
1200
1218
|
};
|
|
1201
1219
|
let response;
|
|
1202
|
-
|
|
1203
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
1221
|
switch (errorCode) {
|
|
1205
1222
|
case "AccessDeniedException":
|
|
1206
1223
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1216,10 +1233,12 @@ const deserializeAws_json1_1GetTelemetryMetadataCommandError = async (output, co
|
|
|
1216
1233
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1217
1234
|
default:
|
|
1218
1235
|
const parsedBody = parsedOutput.body;
|
|
1236
|
+
const $metadata = deserializeMetadata(output);
|
|
1237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1219
1238
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1220
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1221
1240
|
$fault: "client",
|
|
1222
|
-
$metadata
|
|
1241
|
+
$metadata,
|
|
1223
1242
|
});
|
|
1224
1243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1225
1244
|
}
|
|
@@ -1244,8 +1263,7 @@ const deserializeAws_json1_1ListAssessmentRunAgentsCommandError = async (output,
|
|
|
1244
1263
|
body: await parseBody(output.body, context),
|
|
1245
1264
|
};
|
|
1246
1265
|
let response;
|
|
1247
|
-
|
|
1248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
1267
|
switch (errorCode) {
|
|
1250
1268
|
case "AccessDeniedException":
|
|
1251
1269
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1261,10 +1279,12 @@ const deserializeAws_json1_1ListAssessmentRunAgentsCommandError = async (output,
|
|
|
1261
1279
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1262
1280
|
default:
|
|
1263
1281
|
const parsedBody = parsedOutput.body;
|
|
1282
|
+
const $metadata = deserializeMetadata(output);
|
|
1283
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1264
1284
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1285
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1266
1286
|
$fault: "client",
|
|
1267
|
-
$metadata
|
|
1287
|
+
$metadata,
|
|
1268
1288
|
});
|
|
1269
1289
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1270
1290
|
}
|
|
@@ -1289,8 +1309,7 @@ const deserializeAws_json1_1ListAssessmentRunsCommandError = async (output, cont
|
|
|
1289
1309
|
body: await parseBody(output.body, context),
|
|
1290
1310
|
};
|
|
1291
1311
|
let response;
|
|
1292
|
-
|
|
1293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
1313
|
switch (errorCode) {
|
|
1295
1314
|
case "AccessDeniedException":
|
|
1296
1315
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1306,10 +1325,12 @@ const deserializeAws_json1_1ListAssessmentRunsCommandError = async (output, cont
|
|
|
1306
1325
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1307
1326
|
default:
|
|
1308
1327
|
const parsedBody = parsedOutput.body;
|
|
1328
|
+
const $metadata = deserializeMetadata(output);
|
|
1329
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1309
1330
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1310
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1331
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1311
1332
|
$fault: "client",
|
|
1312
|
-
$metadata
|
|
1333
|
+
$metadata,
|
|
1313
1334
|
});
|
|
1314
1335
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1315
1336
|
}
|
|
@@ -1334,8 +1355,7 @@ const deserializeAws_json1_1ListAssessmentTargetsCommandError = async (output, c
|
|
|
1334
1355
|
body: await parseBody(output.body, context),
|
|
1335
1356
|
};
|
|
1336
1357
|
let response;
|
|
1337
|
-
|
|
1338
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
1359
|
switch (errorCode) {
|
|
1340
1360
|
case "AccessDeniedException":
|
|
1341
1361
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1348,10 +1368,12 @@ const deserializeAws_json1_1ListAssessmentTargetsCommandError = async (output, c
|
|
|
1348
1368
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1349
1369
|
default:
|
|
1350
1370
|
const parsedBody = parsedOutput.body;
|
|
1371
|
+
const $metadata = deserializeMetadata(output);
|
|
1372
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1351
1373
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1352
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1374
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1353
1375
|
$fault: "client",
|
|
1354
|
-
$metadata
|
|
1376
|
+
$metadata,
|
|
1355
1377
|
});
|
|
1356
1378
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1357
1379
|
}
|
|
@@ -1376,8 +1398,7 @@ const deserializeAws_json1_1ListAssessmentTemplatesCommandError = async (output,
|
|
|
1376
1398
|
body: await parseBody(output.body, context),
|
|
1377
1399
|
};
|
|
1378
1400
|
let response;
|
|
1379
|
-
|
|
1380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1402
|
switch (errorCode) {
|
|
1382
1403
|
case "AccessDeniedException":
|
|
1383
1404
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1393,10 +1414,12 @@ const deserializeAws_json1_1ListAssessmentTemplatesCommandError = async (output,
|
|
|
1393
1414
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1394
1415
|
default:
|
|
1395
1416
|
const parsedBody = parsedOutput.body;
|
|
1417
|
+
const $metadata = deserializeMetadata(output);
|
|
1418
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1396
1419
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1398
1421
|
$fault: "client",
|
|
1399
|
-
$metadata
|
|
1422
|
+
$metadata,
|
|
1400
1423
|
});
|
|
1401
1424
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1402
1425
|
}
|
|
@@ -1421,8 +1444,7 @@ const deserializeAws_json1_1ListEventSubscriptionsCommandError = async (output,
|
|
|
1421
1444
|
body: await parseBody(output.body, context),
|
|
1422
1445
|
};
|
|
1423
1446
|
let response;
|
|
1424
|
-
|
|
1425
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
1448
|
switch (errorCode) {
|
|
1427
1449
|
case "AccessDeniedException":
|
|
1428
1450
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1438,10 +1460,12 @@ const deserializeAws_json1_1ListEventSubscriptionsCommandError = async (output,
|
|
|
1438
1460
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1439
1461
|
default:
|
|
1440
1462
|
const parsedBody = parsedOutput.body;
|
|
1463
|
+
const $metadata = deserializeMetadata(output);
|
|
1464
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1441
1465
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1442
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1466
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1443
1467
|
$fault: "client",
|
|
1444
|
-
$metadata
|
|
1468
|
+
$metadata,
|
|
1445
1469
|
});
|
|
1446
1470
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1447
1471
|
}
|
|
@@ -1466,8 +1490,7 @@ const deserializeAws_json1_1ListExclusionsCommandError = async (output, context)
|
|
|
1466
1490
|
body: await parseBody(output.body, context),
|
|
1467
1491
|
};
|
|
1468
1492
|
let response;
|
|
1469
|
-
|
|
1470
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
1494
|
switch (errorCode) {
|
|
1472
1495
|
case "AccessDeniedException":
|
|
1473
1496
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1483,10 +1506,12 @@ const deserializeAws_json1_1ListExclusionsCommandError = async (output, context)
|
|
|
1483
1506
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1484
1507
|
default:
|
|
1485
1508
|
const parsedBody = parsedOutput.body;
|
|
1509
|
+
const $metadata = deserializeMetadata(output);
|
|
1510
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1486
1511
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1487
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1512
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1488
1513
|
$fault: "client",
|
|
1489
|
-
$metadata
|
|
1514
|
+
$metadata,
|
|
1490
1515
|
});
|
|
1491
1516
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1492
1517
|
}
|
|
@@ -1511,8 +1536,7 @@ const deserializeAws_json1_1ListFindingsCommandError = async (output, context) =
|
|
|
1511
1536
|
body: await parseBody(output.body, context),
|
|
1512
1537
|
};
|
|
1513
1538
|
let response;
|
|
1514
|
-
|
|
1515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
1540
|
switch (errorCode) {
|
|
1517
1541
|
case "AccessDeniedException":
|
|
1518
1542
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1528,10 +1552,12 @@ const deserializeAws_json1_1ListFindingsCommandError = async (output, context) =
|
|
|
1528
1552
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1529
1553
|
default:
|
|
1530
1554
|
const parsedBody = parsedOutput.body;
|
|
1555
|
+
const $metadata = deserializeMetadata(output);
|
|
1556
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1531
1557
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1532
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1558
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1533
1559
|
$fault: "client",
|
|
1534
|
-
$metadata
|
|
1560
|
+
$metadata,
|
|
1535
1561
|
});
|
|
1536
1562
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1537
1563
|
}
|
|
@@ -1556,8 +1582,7 @@ const deserializeAws_json1_1ListRulesPackagesCommandError = async (output, conte
|
|
|
1556
1582
|
body: await parseBody(output.body, context),
|
|
1557
1583
|
};
|
|
1558
1584
|
let response;
|
|
1559
|
-
|
|
1560
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
1586
|
switch (errorCode) {
|
|
1562
1587
|
case "AccessDeniedException":
|
|
1563
1588
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1570,10 +1595,12 @@ const deserializeAws_json1_1ListRulesPackagesCommandError = async (output, conte
|
|
|
1570
1595
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1571
1596
|
default:
|
|
1572
1597
|
const parsedBody = parsedOutput.body;
|
|
1598
|
+
const $metadata = deserializeMetadata(output);
|
|
1599
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1573
1600
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1574
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1601
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1575
1602
|
$fault: "client",
|
|
1576
|
-
$metadata
|
|
1603
|
+
$metadata,
|
|
1577
1604
|
});
|
|
1578
1605
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1579
1606
|
}
|
|
@@ -1598,8 +1625,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1598
1625
|
body: await parseBody(output.body, context),
|
|
1599
1626
|
};
|
|
1600
1627
|
let response;
|
|
1601
|
-
|
|
1602
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
1629
|
switch (errorCode) {
|
|
1604
1630
|
case "AccessDeniedException":
|
|
1605
1631
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1615,10 +1641,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1615
1641
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1616
1642
|
default:
|
|
1617
1643
|
const parsedBody = parsedOutput.body;
|
|
1644
|
+
const $metadata = deserializeMetadata(output);
|
|
1645
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1618
1646
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1647
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1620
1648
|
$fault: "client",
|
|
1621
|
-
$metadata
|
|
1649
|
+
$metadata,
|
|
1622
1650
|
});
|
|
1623
1651
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1624
1652
|
}
|
|
@@ -1643,8 +1671,7 @@ const deserializeAws_json1_1PreviewAgentsCommandError = async (output, context)
|
|
|
1643
1671
|
body: await parseBody(output.body, context),
|
|
1644
1672
|
};
|
|
1645
1673
|
let response;
|
|
1646
|
-
|
|
1647
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1675
|
switch (errorCode) {
|
|
1649
1676
|
case "AccessDeniedException":
|
|
1650
1677
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1663,10 +1690,12 @@ const deserializeAws_json1_1PreviewAgentsCommandError = async (output, context)
|
|
|
1663
1690
|
throw await deserializeAws_json1_1NoSuchEntityExceptionResponse(parsedOutput, context);
|
|
1664
1691
|
default:
|
|
1665
1692
|
const parsedBody = parsedOutput.body;
|
|
1693
|
+
const $metadata = deserializeMetadata(output);
|
|
1694
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1666
1695
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1667
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1696
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1668
1697
|
$fault: "client",
|
|
1669
|
-
$metadata
|
|
1698
|
+
$metadata,
|
|
1670
1699
|
});
|
|
1671
1700
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1672
1701
|
}
|
|
@@ -1688,8 +1717,7 @@ const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = async (
|
|
|
1688
1717
|
body: await parseBody(output.body, context),
|
|
1689
1718
|
};
|
|
1690
1719
|
let response;
|
|
1691
|
-
|
|
1692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
1721
|
switch (errorCode) {
|
|
1694
1722
|
case "AccessDeniedException":
|
|
1695
1723
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1708,10 +1736,12 @@ const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = async (
|
|
|
1708
1736
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1709
1737
|
default:
|
|
1710
1738
|
const parsedBody = parsedOutput.body;
|
|
1739
|
+
const $metadata = deserializeMetadata(output);
|
|
1740
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1711
1741
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1712
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1742
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1713
1743
|
$fault: "client",
|
|
1714
|
-
$metadata
|
|
1744
|
+
$metadata,
|
|
1715
1745
|
});
|
|
1716
1746
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1717
1747
|
}
|
|
@@ -1736,8 +1766,7 @@ const deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = async (ou
|
|
|
1736
1766
|
body: await parseBody(output.body, context),
|
|
1737
1767
|
};
|
|
1738
1768
|
let response;
|
|
1739
|
-
|
|
1740
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
1770
|
switch (errorCode) {
|
|
1742
1771
|
case "AccessDeniedException":
|
|
1743
1772
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1756,10 +1785,12 @@ const deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = async (ou
|
|
|
1756
1785
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1757
1786
|
default:
|
|
1758
1787
|
const parsedBody = parsedOutput.body;
|
|
1788
|
+
const $metadata = deserializeMetadata(output);
|
|
1789
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1759
1790
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1760
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1761
1792
|
$fault: "client",
|
|
1762
|
-
$metadata
|
|
1793
|
+
$metadata,
|
|
1763
1794
|
});
|
|
1764
1795
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1765
1796
|
}
|
|
@@ -1781,8 +1812,7 @@ const deserializeAws_json1_1SetTagsForResourceCommandError = async (output, cont
|
|
|
1781
1812
|
body: await parseBody(output.body, context),
|
|
1782
1813
|
};
|
|
1783
1814
|
let response;
|
|
1784
|
-
|
|
1785
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
1816
|
switch (errorCode) {
|
|
1787
1817
|
case "AccessDeniedException":
|
|
1788
1818
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1801,10 +1831,12 @@ const deserializeAws_json1_1SetTagsForResourceCommandError = async (output, cont
|
|
|
1801
1831
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1802
1832
|
default:
|
|
1803
1833
|
const parsedBody = parsedOutput.body;
|
|
1834
|
+
const $metadata = deserializeMetadata(output);
|
|
1835
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1804
1836
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1805
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1837
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1806
1838
|
$fault: "client",
|
|
1807
|
-
$metadata
|
|
1839
|
+
$metadata,
|
|
1808
1840
|
});
|
|
1809
1841
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1810
1842
|
}
|
|
@@ -1829,8 +1861,7 @@ const deserializeAws_json1_1StartAssessmentRunCommandError = async (output, cont
|
|
|
1829
1861
|
body: await parseBody(output.body, context),
|
|
1830
1862
|
};
|
|
1831
1863
|
let response;
|
|
1832
|
-
|
|
1833
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1834
1865
|
switch (errorCode) {
|
|
1835
1866
|
case "AccessDeniedException":
|
|
1836
1867
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1858,10 +1889,12 @@ const deserializeAws_json1_1StartAssessmentRunCommandError = async (output, cont
|
|
|
1858
1889
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1859
1890
|
default:
|
|
1860
1891
|
const parsedBody = parsedOutput.body;
|
|
1892
|
+
const $metadata = deserializeMetadata(output);
|
|
1893
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1861
1894
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1895
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1863
1896
|
$fault: "client",
|
|
1864
|
-
$metadata
|
|
1897
|
+
$metadata,
|
|
1865
1898
|
});
|
|
1866
1899
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1867
1900
|
}
|
|
@@ -1883,8 +1916,7 @@ const deserializeAws_json1_1StopAssessmentRunCommandError = async (output, conte
|
|
|
1883
1916
|
body: await parseBody(output.body, context),
|
|
1884
1917
|
};
|
|
1885
1918
|
let response;
|
|
1886
|
-
|
|
1887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
1920
|
switch (errorCode) {
|
|
1889
1921
|
case "AccessDeniedException":
|
|
1890
1922
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1903,10 +1935,12 @@ const deserializeAws_json1_1StopAssessmentRunCommandError = async (output, conte
|
|
|
1903
1935
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1904
1936
|
default:
|
|
1905
1937
|
const parsedBody = parsedOutput.body;
|
|
1938
|
+
const $metadata = deserializeMetadata(output);
|
|
1939
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1906
1940
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1907
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1941
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1908
1942
|
$fault: "client",
|
|
1909
|
-
$metadata
|
|
1943
|
+
$metadata,
|
|
1910
1944
|
});
|
|
1911
1945
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1912
1946
|
}
|
|
@@ -1928,8 +1962,7 @@ const deserializeAws_json1_1SubscribeToEventCommandError = async (output, contex
|
|
|
1928
1962
|
body: await parseBody(output.body, context),
|
|
1929
1963
|
};
|
|
1930
1964
|
let response;
|
|
1931
|
-
|
|
1932
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
1966
|
switch (errorCode) {
|
|
1934
1967
|
case "AccessDeniedException":
|
|
1935
1968
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1951,10 +1984,12 @@ const deserializeAws_json1_1SubscribeToEventCommandError = async (output, contex
|
|
|
1951
1984
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1952
1985
|
default:
|
|
1953
1986
|
const parsedBody = parsedOutput.body;
|
|
1987
|
+
const $metadata = deserializeMetadata(output);
|
|
1988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1954
1989
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
1955
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1956
1991
|
$fault: "client",
|
|
1957
|
-
$metadata
|
|
1992
|
+
$metadata,
|
|
1958
1993
|
});
|
|
1959
1994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1960
1995
|
}
|
|
@@ -1976,8 +2011,7 @@ const deserializeAws_json1_1UnsubscribeFromEventCommandError = async (output, co
|
|
|
1976
2011
|
body: await parseBody(output.body, context),
|
|
1977
2012
|
};
|
|
1978
2013
|
let response;
|
|
1979
|
-
|
|
1980
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2014
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
2015
|
switch (errorCode) {
|
|
1982
2016
|
case "AccessDeniedException":
|
|
1983
2017
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -1996,10 +2030,12 @@ const deserializeAws_json1_1UnsubscribeFromEventCommandError = async (output, co
|
|
|
1996
2030
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
1997
2031
|
default:
|
|
1998
2032
|
const parsedBody = parsedOutput.body;
|
|
2033
|
+
const $metadata = deserializeMetadata(output);
|
|
2034
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1999
2035
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
2000
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2036
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2001
2037
|
$fault: "client",
|
|
2002
|
-
$metadata
|
|
2038
|
+
$metadata,
|
|
2003
2039
|
});
|
|
2004
2040
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2005
2041
|
}
|
|
@@ -2021,8 +2057,7 @@ const deserializeAws_json1_1UpdateAssessmentTargetCommandError = async (output,
|
|
|
2021
2057
|
body: await parseBody(output.body, context),
|
|
2022
2058
|
};
|
|
2023
2059
|
let response;
|
|
2024
|
-
|
|
2025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
2061
|
switch (errorCode) {
|
|
2027
2062
|
case "AccessDeniedException":
|
|
2028
2063
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
@@ -2041,10 +2076,12 @@ const deserializeAws_json1_1UpdateAssessmentTargetCommandError = async (output,
|
|
|
2041
2076
|
throw await deserializeAws_json1_1ServiceTemporarilyUnavailableExceptionResponse(parsedOutput, context);
|
|
2042
2077
|
default:
|
|
2043
2078
|
const parsedBody = parsedOutput.body;
|
|
2079
|
+
const $metadata = deserializeMetadata(output);
|
|
2080
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2044
2081
|
response = new InspectorServiceException_1.InspectorServiceException({
|
|
2045
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2082
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2046
2083
|
$fault: "client",
|
|
2047
|
-
$metadata
|
|
2084
|
+
$metadata,
|
|
2048
2085
|
});
|
|
2049
2086
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2050
2087
|
}
|
|
@@ -2150,10 +2187,8 @@ const deserializeAws_json1_1UnsupportedFeatureExceptionResponse = async (parsedO
|
|
|
2150
2187
|
};
|
|
2151
2188
|
const serializeAws_json1_1AddAttributesToFindingsRequest = (input, context) => {
|
|
2152
2189
|
return {
|
|
2153
|
-
...(input.attributes
|
|
2154
|
-
|
|
2155
|
-
...(input.findingArns !== undefined &&
|
|
2156
|
-
input.findingArns !== null && {
|
|
2190
|
+
...(input.attributes != null && { attributes: serializeAws_json1_1UserAttributeList(input.attributes, context) }),
|
|
2191
|
+
...(input.findingArns != null && {
|
|
2157
2192
|
findingArns: serializeAws_json1_1AddRemoveAttributesFindingArnList(input.findingArns, context),
|
|
2158
2193
|
}),
|
|
2159
2194
|
};
|
|
@@ -2170,12 +2205,10 @@ const serializeAws_json1_1AddRemoveAttributesFindingArnList = (input, context) =
|
|
|
2170
2205
|
};
|
|
2171
2206
|
const serializeAws_json1_1AgentFilter = (input, context) => {
|
|
2172
2207
|
return {
|
|
2173
|
-
...(input.agentHealthCodes
|
|
2174
|
-
input.agentHealthCodes !== null && {
|
|
2208
|
+
...(input.agentHealthCodes != null && {
|
|
2175
2209
|
agentHealthCodes: serializeAws_json1_1AgentHealthCodeList(input.agentHealthCodes, context),
|
|
2176
2210
|
}),
|
|
2177
|
-
...(input.agentHealths
|
|
2178
|
-
input.agentHealths !== null && {
|
|
2211
|
+
...(input.agentHealths != null && {
|
|
2179
2212
|
agentHealths: serializeAws_json1_1AgentHealthList(input.agentHealths, context),
|
|
2180
2213
|
}),
|
|
2181
2214
|
};
|
|
@@ -2212,29 +2245,23 @@ const serializeAws_json1_1AgentIdList = (input, context) => {
|
|
|
2212
2245
|
};
|
|
2213
2246
|
const serializeAws_json1_1AssessmentRunFilter = (input, context) => {
|
|
2214
2247
|
return {
|
|
2215
|
-
...(input.completionTimeRange
|
|
2216
|
-
input.completionTimeRange !== null && {
|
|
2248
|
+
...(input.completionTimeRange != null && {
|
|
2217
2249
|
completionTimeRange: serializeAws_json1_1TimestampRange(input.completionTimeRange, context),
|
|
2218
2250
|
}),
|
|
2219
|
-
...(input.durationRange
|
|
2220
|
-
input.durationRange !== null && {
|
|
2251
|
+
...(input.durationRange != null && {
|
|
2221
2252
|
durationRange: serializeAws_json1_1DurationRange(input.durationRange, context),
|
|
2222
2253
|
}),
|
|
2223
|
-
...(input.namePattern
|
|
2224
|
-
...(input.rulesPackageArns
|
|
2225
|
-
input.rulesPackageArns !== null && {
|
|
2254
|
+
...(input.namePattern != null && { namePattern: input.namePattern }),
|
|
2255
|
+
...(input.rulesPackageArns != null && {
|
|
2226
2256
|
rulesPackageArns: serializeAws_json1_1FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2227
2257
|
}),
|
|
2228
|
-
...(input.startTimeRange
|
|
2229
|
-
input.startTimeRange !== null && {
|
|
2258
|
+
...(input.startTimeRange != null && {
|
|
2230
2259
|
startTimeRange: serializeAws_json1_1TimestampRange(input.startTimeRange, context),
|
|
2231
2260
|
}),
|
|
2232
|
-
...(input.stateChangeTimeRange
|
|
2233
|
-
input.stateChangeTimeRange !== null && {
|
|
2261
|
+
...(input.stateChangeTimeRange != null && {
|
|
2234
2262
|
stateChangeTimeRange: serializeAws_json1_1TimestampRange(input.stateChangeTimeRange, context),
|
|
2235
2263
|
}),
|
|
2236
|
-
...(input.states
|
|
2237
|
-
input.states !== null && { states: serializeAws_json1_1AssessmentRunStateList(input.states, context) }),
|
|
2264
|
+
...(input.states != null && { states: serializeAws_json1_1AssessmentRunStateList(input.states, context) }),
|
|
2238
2265
|
};
|
|
2239
2266
|
};
|
|
2240
2267
|
const serializeAws_json1_1AssessmentRunStateList = (input, context) => {
|
|
@@ -2249,19 +2276,18 @@ const serializeAws_json1_1AssessmentRunStateList = (input, context) => {
|
|
|
2249
2276
|
};
|
|
2250
2277
|
const serializeAws_json1_1AssessmentTargetFilter = (input, context) => {
|
|
2251
2278
|
return {
|
|
2252
|
-
...(input.assessmentTargetNamePattern
|
|
2253
|
-
|
|
2279
|
+
...(input.assessmentTargetNamePattern != null && {
|
|
2280
|
+
assessmentTargetNamePattern: input.assessmentTargetNamePattern,
|
|
2281
|
+
}),
|
|
2254
2282
|
};
|
|
2255
2283
|
};
|
|
2256
2284
|
const serializeAws_json1_1AssessmentTemplateFilter = (input, context) => {
|
|
2257
2285
|
return {
|
|
2258
|
-
...(input.durationRange
|
|
2259
|
-
input.durationRange !== null && {
|
|
2286
|
+
...(input.durationRange != null && {
|
|
2260
2287
|
durationRange: serializeAws_json1_1DurationRange(input.durationRange, context),
|
|
2261
2288
|
}),
|
|
2262
|
-
...(input.namePattern
|
|
2263
|
-
...(input.rulesPackageArns
|
|
2264
|
-
input.rulesPackageArns !== null && {
|
|
2289
|
+
...(input.namePattern != null && { namePattern: input.namePattern }),
|
|
2290
|
+
...(input.rulesPackageArns != null && {
|
|
2265
2291
|
rulesPackageArns: serializeAws_json1_1FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2266
2292
|
}),
|
|
2267
2293
|
};
|
|
@@ -2278,8 +2304,8 @@ const serializeAws_json1_1AssessmentTemplateRulesPackageArnList = (input, contex
|
|
|
2278
2304
|
};
|
|
2279
2305
|
const serializeAws_json1_1Attribute = (input, context) => {
|
|
2280
2306
|
return {
|
|
2281
|
-
...(input.key
|
|
2282
|
-
...(input.value
|
|
2307
|
+
...(input.key != null && { key: input.key }),
|
|
2308
|
+
...(input.value != null && { value: input.value }),
|
|
2283
2309
|
};
|
|
2284
2310
|
};
|
|
2285
2311
|
const serializeAws_json1_1AttributeList = (input, context) => {
|
|
@@ -2324,125 +2350,106 @@ const serializeAws_json1_1BatchDescribeExclusionsArnList = (input, context) => {
|
|
|
2324
2350
|
};
|
|
2325
2351
|
const serializeAws_json1_1CreateAssessmentTargetRequest = (input, context) => {
|
|
2326
2352
|
return {
|
|
2327
|
-
...(input.assessmentTargetName
|
|
2328
|
-
|
|
2329
|
-
...(input.resourceGroupArn !== undefined &&
|
|
2330
|
-
input.resourceGroupArn !== null && { resourceGroupArn: input.resourceGroupArn }),
|
|
2353
|
+
...(input.assessmentTargetName != null && { assessmentTargetName: input.assessmentTargetName }),
|
|
2354
|
+
...(input.resourceGroupArn != null && { resourceGroupArn: input.resourceGroupArn }),
|
|
2331
2355
|
};
|
|
2332
2356
|
};
|
|
2333
2357
|
const serializeAws_json1_1CreateAssessmentTemplateRequest = (input, context) => {
|
|
2334
2358
|
return {
|
|
2335
|
-
...(input.assessmentTargetArn
|
|
2336
|
-
|
|
2337
|
-
...(input.
|
|
2338
|
-
|
|
2339
|
-
...(input.durationInSeconds !== undefined &&
|
|
2340
|
-
input.durationInSeconds !== null && { durationInSeconds: input.durationInSeconds }),
|
|
2341
|
-
...(input.rulesPackageArns !== undefined &&
|
|
2342
|
-
input.rulesPackageArns !== null && {
|
|
2359
|
+
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2360
|
+
...(input.assessmentTemplateName != null && { assessmentTemplateName: input.assessmentTemplateName }),
|
|
2361
|
+
...(input.durationInSeconds != null && { durationInSeconds: input.durationInSeconds }),
|
|
2362
|
+
...(input.rulesPackageArns != null && {
|
|
2343
2363
|
rulesPackageArns: serializeAws_json1_1AssessmentTemplateRulesPackageArnList(input.rulesPackageArns, context),
|
|
2344
2364
|
}),
|
|
2345
|
-
...(input.userAttributesForFindings
|
|
2346
|
-
input.userAttributesForFindings !== null && {
|
|
2365
|
+
...(input.userAttributesForFindings != null && {
|
|
2347
2366
|
userAttributesForFindings: serializeAws_json1_1UserAttributeList(input.userAttributesForFindings, context),
|
|
2348
2367
|
}),
|
|
2349
2368
|
};
|
|
2350
2369
|
};
|
|
2351
2370
|
const serializeAws_json1_1CreateExclusionsPreviewRequest = (input, context) => {
|
|
2352
2371
|
return {
|
|
2353
|
-
...(input.assessmentTemplateArn
|
|
2354
|
-
input.assessmentTemplateArn !== null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2372
|
+
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2355
2373
|
};
|
|
2356
2374
|
};
|
|
2357
2375
|
const serializeAws_json1_1CreateResourceGroupRequest = (input, context) => {
|
|
2358
2376
|
return {
|
|
2359
|
-
...(input.resourceGroupTags
|
|
2360
|
-
input.resourceGroupTags !== null && {
|
|
2377
|
+
...(input.resourceGroupTags != null && {
|
|
2361
2378
|
resourceGroupTags: serializeAws_json1_1ResourceGroupTags(input.resourceGroupTags, context),
|
|
2362
2379
|
}),
|
|
2363
2380
|
};
|
|
2364
2381
|
};
|
|
2365
2382
|
const serializeAws_json1_1DeleteAssessmentRunRequest = (input, context) => {
|
|
2366
2383
|
return {
|
|
2367
|
-
...(input.assessmentRunArn
|
|
2368
|
-
input.assessmentRunArn !== null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2384
|
+
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2369
2385
|
};
|
|
2370
2386
|
};
|
|
2371
2387
|
const serializeAws_json1_1DeleteAssessmentTargetRequest = (input, context) => {
|
|
2372
2388
|
return {
|
|
2373
|
-
...(input.assessmentTargetArn
|
|
2374
|
-
input.assessmentTargetArn !== null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2389
|
+
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2375
2390
|
};
|
|
2376
2391
|
};
|
|
2377
2392
|
const serializeAws_json1_1DeleteAssessmentTemplateRequest = (input, context) => {
|
|
2378
2393
|
return {
|
|
2379
|
-
...(input.assessmentTemplateArn
|
|
2380
|
-
input.assessmentTemplateArn !== null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2394
|
+
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2381
2395
|
};
|
|
2382
2396
|
};
|
|
2383
2397
|
const serializeAws_json1_1DescribeAssessmentRunsRequest = (input, context) => {
|
|
2384
2398
|
return {
|
|
2385
|
-
...(input.assessmentRunArns
|
|
2386
|
-
input.assessmentRunArns !== null && {
|
|
2399
|
+
...(input.assessmentRunArns != null && {
|
|
2387
2400
|
assessmentRunArns: serializeAws_json1_1BatchDescribeArnList(input.assessmentRunArns, context),
|
|
2388
2401
|
}),
|
|
2389
2402
|
};
|
|
2390
2403
|
};
|
|
2391
2404
|
const serializeAws_json1_1DescribeAssessmentTargetsRequest = (input, context) => {
|
|
2392
2405
|
return {
|
|
2393
|
-
...(input.assessmentTargetArns
|
|
2394
|
-
input.assessmentTargetArns !== null && {
|
|
2406
|
+
...(input.assessmentTargetArns != null && {
|
|
2395
2407
|
assessmentTargetArns: serializeAws_json1_1BatchDescribeArnList(input.assessmentTargetArns, context),
|
|
2396
2408
|
}),
|
|
2397
2409
|
};
|
|
2398
2410
|
};
|
|
2399
2411
|
const serializeAws_json1_1DescribeAssessmentTemplatesRequest = (input, context) => {
|
|
2400
2412
|
return {
|
|
2401
|
-
...(input.assessmentTemplateArns
|
|
2402
|
-
input.assessmentTemplateArns !== null && {
|
|
2413
|
+
...(input.assessmentTemplateArns != null && {
|
|
2403
2414
|
assessmentTemplateArns: serializeAws_json1_1BatchDescribeArnList(input.assessmentTemplateArns, context),
|
|
2404
2415
|
}),
|
|
2405
2416
|
};
|
|
2406
2417
|
};
|
|
2407
2418
|
const serializeAws_json1_1DescribeExclusionsRequest = (input, context) => {
|
|
2408
2419
|
return {
|
|
2409
|
-
...(input.exclusionArns
|
|
2410
|
-
input.exclusionArns !== null && {
|
|
2420
|
+
...(input.exclusionArns != null && {
|
|
2411
2421
|
exclusionArns: serializeAws_json1_1BatchDescribeExclusionsArnList(input.exclusionArns, context),
|
|
2412
2422
|
}),
|
|
2413
|
-
...(input.locale
|
|
2423
|
+
...(input.locale != null && { locale: input.locale }),
|
|
2414
2424
|
};
|
|
2415
2425
|
};
|
|
2416
2426
|
const serializeAws_json1_1DescribeFindingsRequest = (input, context) => {
|
|
2417
2427
|
return {
|
|
2418
|
-
...(input.findingArns
|
|
2419
|
-
input.findingArns !== null && {
|
|
2428
|
+
...(input.findingArns != null && {
|
|
2420
2429
|
findingArns: serializeAws_json1_1BatchDescribeArnList(input.findingArns, context),
|
|
2421
2430
|
}),
|
|
2422
|
-
...(input.locale
|
|
2431
|
+
...(input.locale != null && { locale: input.locale }),
|
|
2423
2432
|
};
|
|
2424
2433
|
};
|
|
2425
2434
|
const serializeAws_json1_1DescribeResourceGroupsRequest = (input, context) => {
|
|
2426
2435
|
return {
|
|
2427
|
-
...(input.resourceGroupArns
|
|
2428
|
-
input.resourceGroupArns !== null && {
|
|
2436
|
+
...(input.resourceGroupArns != null && {
|
|
2429
2437
|
resourceGroupArns: serializeAws_json1_1BatchDescribeArnList(input.resourceGroupArns, context),
|
|
2430
2438
|
}),
|
|
2431
2439
|
};
|
|
2432
2440
|
};
|
|
2433
2441
|
const serializeAws_json1_1DescribeRulesPackagesRequest = (input, context) => {
|
|
2434
2442
|
return {
|
|
2435
|
-
...(input.locale
|
|
2436
|
-
...(input.rulesPackageArns
|
|
2437
|
-
input.rulesPackageArns !== null && {
|
|
2443
|
+
...(input.locale != null && { locale: input.locale }),
|
|
2444
|
+
...(input.rulesPackageArns != null && {
|
|
2438
2445
|
rulesPackageArns: serializeAws_json1_1BatchDescribeArnList(input.rulesPackageArns, context),
|
|
2439
2446
|
}),
|
|
2440
2447
|
};
|
|
2441
2448
|
};
|
|
2442
2449
|
const serializeAws_json1_1DurationRange = (input, context) => {
|
|
2443
2450
|
return {
|
|
2444
|
-
...(input.maxSeconds
|
|
2445
|
-
...(input.minSeconds
|
|
2451
|
+
...(input.maxSeconds != null && { maxSeconds: input.maxSeconds }),
|
|
2452
|
+
...(input.minSeconds != null && { minSeconds: input.minSeconds }),
|
|
2446
2453
|
};
|
|
2447
2454
|
};
|
|
2448
2455
|
const serializeAws_json1_1FilterRulesPackageArnList = (input, context) => {
|
|
@@ -2457,124 +2464,102 @@ const serializeAws_json1_1FilterRulesPackageArnList = (input, context) => {
|
|
|
2457
2464
|
};
|
|
2458
2465
|
const serializeAws_json1_1FindingFilter = (input, context) => {
|
|
2459
2466
|
return {
|
|
2460
|
-
...(input.agentIds
|
|
2461
|
-
|
|
2462
|
-
...(input.
|
|
2463
|
-
input.attributes !== null && { attributes: serializeAws_json1_1AttributeList(input.attributes, context) }),
|
|
2464
|
-
...(input.autoScalingGroups !== undefined &&
|
|
2465
|
-
input.autoScalingGroups !== null && {
|
|
2467
|
+
...(input.agentIds != null && { agentIds: serializeAws_json1_1AgentIdList(input.agentIds, context) }),
|
|
2468
|
+
...(input.attributes != null && { attributes: serializeAws_json1_1AttributeList(input.attributes, context) }),
|
|
2469
|
+
...(input.autoScalingGroups != null && {
|
|
2466
2470
|
autoScalingGroups: serializeAws_json1_1AutoScalingGroupList(input.autoScalingGroups, context),
|
|
2467
2471
|
}),
|
|
2468
|
-
...(input.creationTimeRange
|
|
2469
|
-
input.creationTimeRange !== null && {
|
|
2472
|
+
...(input.creationTimeRange != null && {
|
|
2470
2473
|
creationTimeRange: serializeAws_json1_1TimestampRange(input.creationTimeRange, context),
|
|
2471
2474
|
}),
|
|
2472
|
-
...(input.ruleNames
|
|
2473
|
-
|
|
2474
|
-
...(input.rulesPackageArns !== undefined &&
|
|
2475
|
-
input.rulesPackageArns !== null && {
|
|
2475
|
+
...(input.ruleNames != null && { ruleNames: serializeAws_json1_1RuleNameList(input.ruleNames, context) }),
|
|
2476
|
+
...(input.rulesPackageArns != null && {
|
|
2476
2477
|
rulesPackageArns: serializeAws_json1_1FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2477
2478
|
}),
|
|
2478
|
-
...(input.severities
|
|
2479
|
-
|
|
2480
|
-
...(input.userAttributes !== undefined &&
|
|
2481
|
-
input.userAttributes !== null && {
|
|
2479
|
+
...(input.severities != null && { severities: serializeAws_json1_1SeverityList(input.severities, context) }),
|
|
2480
|
+
...(input.userAttributes != null && {
|
|
2482
2481
|
userAttributes: serializeAws_json1_1AttributeList(input.userAttributes, context),
|
|
2483
2482
|
}),
|
|
2484
2483
|
};
|
|
2485
2484
|
};
|
|
2486
2485
|
const serializeAws_json1_1GetAssessmentReportRequest = (input, context) => {
|
|
2487
2486
|
return {
|
|
2488
|
-
...(input.assessmentRunArn
|
|
2489
|
-
|
|
2490
|
-
...(input.
|
|
2491
|
-
input.reportFileFormat !== null && { reportFileFormat: input.reportFileFormat }),
|
|
2492
|
-
...(input.reportType !== undefined && input.reportType !== null && { reportType: input.reportType }),
|
|
2487
|
+
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2488
|
+
...(input.reportFileFormat != null && { reportFileFormat: input.reportFileFormat }),
|
|
2489
|
+
...(input.reportType != null && { reportType: input.reportType }),
|
|
2493
2490
|
};
|
|
2494
2491
|
};
|
|
2495
2492
|
const serializeAws_json1_1GetExclusionsPreviewRequest = (input, context) => {
|
|
2496
2493
|
return {
|
|
2497
|
-
...(input.assessmentTemplateArn
|
|
2498
|
-
|
|
2499
|
-
...(input.
|
|
2500
|
-
...(input.
|
|
2501
|
-
...(input.
|
|
2502
|
-
...(input.previewToken !== undefined && input.previewToken !== null && { previewToken: input.previewToken }),
|
|
2494
|
+
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2495
|
+
...(input.locale != null && { locale: input.locale }),
|
|
2496
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2497
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2498
|
+
...(input.previewToken != null && { previewToken: input.previewToken }),
|
|
2503
2499
|
};
|
|
2504
2500
|
};
|
|
2505
2501
|
const serializeAws_json1_1GetTelemetryMetadataRequest = (input, context) => {
|
|
2506
2502
|
return {
|
|
2507
|
-
...(input.assessmentRunArn
|
|
2508
|
-
input.assessmentRunArn !== null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2503
|
+
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2509
2504
|
};
|
|
2510
2505
|
};
|
|
2511
2506
|
const serializeAws_json1_1ListAssessmentRunAgentsRequest = (input, context) => {
|
|
2512
2507
|
return {
|
|
2513
|
-
...(input.assessmentRunArn
|
|
2514
|
-
|
|
2515
|
-
...(input.
|
|
2516
|
-
|
|
2517
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2518
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2508
|
+
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2509
|
+
...(input.filter != null && { filter: serializeAws_json1_1AgentFilter(input.filter, context) }),
|
|
2510
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2511
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2519
2512
|
};
|
|
2520
2513
|
};
|
|
2521
2514
|
const serializeAws_json1_1ListAssessmentRunsRequest = (input, context) => {
|
|
2522
2515
|
return {
|
|
2523
|
-
...(input.assessmentTemplateArns
|
|
2524
|
-
input.assessmentTemplateArns !== null && {
|
|
2516
|
+
...(input.assessmentTemplateArns != null && {
|
|
2525
2517
|
assessmentTemplateArns: serializeAws_json1_1ListParentArnList(input.assessmentTemplateArns, context),
|
|
2526
2518
|
}),
|
|
2527
|
-
...(input.filter
|
|
2528
|
-
|
|
2529
|
-
...(input.
|
|
2530
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2519
|
+
...(input.filter != null && { filter: serializeAws_json1_1AssessmentRunFilter(input.filter, context) }),
|
|
2520
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2521
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2531
2522
|
};
|
|
2532
2523
|
};
|
|
2533
2524
|
const serializeAws_json1_1ListAssessmentTargetsRequest = (input, context) => {
|
|
2534
2525
|
return {
|
|
2535
|
-
...(input.filter
|
|
2536
|
-
|
|
2537
|
-
...(input.
|
|
2538
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2526
|
+
...(input.filter != null && { filter: serializeAws_json1_1AssessmentTargetFilter(input.filter, context) }),
|
|
2527
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2528
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2539
2529
|
};
|
|
2540
2530
|
};
|
|
2541
2531
|
const serializeAws_json1_1ListAssessmentTemplatesRequest = (input, context) => {
|
|
2542
2532
|
return {
|
|
2543
|
-
...(input.assessmentTargetArns
|
|
2544
|
-
input.assessmentTargetArns !== null && {
|
|
2533
|
+
...(input.assessmentTargetArns != null && {
|
|
2545
2534
|
assessmentTargetArns: serializeAws_json1_1ListParentArnList(input.assessmentTargetArns, context),
|
|
2546
2535
|
}),
|
|
2547
|
-
...(input.filter
|
|
2548
|
-
|
|
2549
|
-
...(input.
|
|
2550
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2536
|
+
...(input.filter != null && { filter: serializeAws_json1_1AssessmentTemplateFilter(input.filter, context) }),
|
|
2537
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2538
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2551
2539
|
};
|
|
2552
2540
|
};
|
|
2553
2541
|
const serializeAws_json1_1ListEventSubscriptionsRequest = (input, context) => {
|
|
2554
2542
|
return {
|
|
2555
|
-
...(input.maxResults
|
|
2556
|
-
...(input.nextToken
|
|
2557
|
-
...(input.resourceArn
|
|
2543
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2544
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2545
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2558
2546
|
};
|
|
2559
2547
|
};
|
|
2560
2548
|
const serializeAws_json1_1ListExclusionsRequest = (input, context) => {
|
|
2561
2549
|
return {
|
|
2562
|
-
...(input.assessmentRunArn
|
|
2563
|
-
|
|
2564
|
-
...(input.
|
|
2565
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2550
|
+
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2551
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2552
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2566
2553
|
};
|
|
2567
2554
|
};
|
|
2568
2555
|
const serializeAws_json1_1ListFindingsRequest = (input, context) => {
|
|
2569
2556
|
return {
|
|
2570
|
-
...(input.assessmentRunArns
|
|
2571
|
-
input.assessmentRunArns !== null && {
|
|
2557
|
+
...(input.assessmentRunArns != null && {
|
|
2572
2558
|
assessmentRunArns: serializeAws_json1_1ListParentArnList(input.assessmentRunArns, context),
|
|
2573
2559
|
}),
|
|
2574
|
-
...(input.filter
|
|
2575
|
-
|
|
2576
|
-
...(input.
|
|
2577
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2560
|
+
...(input.filter != null && { filter: serializeAws_json1_1FindingFilter(input.filter, context) }),
|
|
2561
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2562
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2578
2563
|
};
|
|
2579
2564
|
};
|
|
2580
2565
|
const serializeAws_json1_1ListParentArnList = (input, context) => {
|
|
@@ -2589,44 +2574,41 @@ const serializeAws_json1_1ListParentArnList = (input, context) => {
|
|
|
2589
2574
|
};
|
|
2590
2575
|
const serializeAws_json1_1ListRulesPackagesRequest = (input, context) => {
|
|
2591
2576
|
return {
|
|
2592
|
-
...(input.maxResults
|
|
2593
|
-
...(input.nextToken
|
|
2577
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2578
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2594
2579
|
};
|
|
2595
2580
|
};
|
|
2596
2581
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2597
2582
|
return {
|
|
2598
|
-
...(input.resourceArn
|
|
2583
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2599
2584
|
};
|
|
2600
2585
|
};
|
|
2601
2586
|
const serializeAws_json1_1PreviewAgentsRequest = (input, context) => {
|
|
2602
2587
|
return {
|
|
2603
|
-
...(input.maxResults
|
|
2604
|
-
...(input.nextToken
|
|
2605
|
-
...(input.previewAgentsArn
|
|
2606
|
-
input.previewAgentsArn !== null && { previewAgentsArn: input.previewAgentsArn }),
|
|
2588
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2589
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2590
|
+
...(input.previewAgentsArn != null && { previewAgentsArn: input.previewAgentsArn }),
|
|
2607
2591
|
};
|
|
2608
2592
|
};
|
|
2609
2593
|
const serializeAws_json1_1RegisterCrossAccountAccessRoleRequest = (input, context) => {
|
|
2610
2594
|
return {
|
|
2611
|
-
...(input.roleArn
|
|
2595
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2612
2596
|
};
|
|
2613
2597
|
};
|
|
2614
2598
|
const serializeAws_json1_1RemoveAttributesFromFindingsRequest = (input, context) => {
|
|
2615
2599
|
return {
|
|
2616
|
-
...(input.attributeKeys
|
|
2617
|
-
input.attributeKeys !== null && {
|
|
2600
|
+
...(input.attributeKeys != null && {
|
|
2618
2601
|
attributeKeys: serializeAws_json1_1UserAttributeKeyList(input.attributeKeys, context),
|
|
2619
2602
|
}),
|
|
2620
|
-
...(input.findingArns
|
|
2621
|
-
input.findingArns !== null && {
|
|
2603
|
+
...(input.findingArns != null && {
|
|
2622
2604
|
findingArns: serializeAws_json1_1AddRemoveAttributesFindingArnList(input.findingArns, context),
|
|
2623
2605
|
}),
|
|
2624
2606
|
};
|
|
2625
2607
|
};
|
|
2626
2608
|
const serializeAws_json1_1ResourceGroupTag = (input, context) => {
|
|
2627
2609
|
return {
|
|
2628
|
-
...(input.key
|
|
2629
|
-
...(input.value
|
|
2610
|
+
...(input.key != null && { key: input.key }),
|
|
2611
|
+
...(input.value != null && { value: input.value }),
|
|
2630
2612
|
};
|
|
2631
2613
|
};
|
|
2632
2614
|
const serializeAws_json1_1ResourceGroupTags = (input, context) => {
|
|
@@ -2651,8 +2633,8 @@ const serializeAws_json1_1RuleNameList = (input, context) => {
|
|
|
2651
2633
|
};
|
|
2652
2634
|
const serializeAws_json1_1SetTagsForResourceRequest = (input, context) => {
|
|
2653
2635
|
return {
|
|
2654
|
-
...(input.resourceArn
|
|
2655
|
-
...(input.tags
|
|
2636
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2637
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2656
2638
|
};
|
|
2657
2639
|
};
|
|
2658
2640
|
const serializeAws_json1_1SeverityList = (input, context) => {
|
|
@@ -2667,30 +2649,27 @@ const serializeAws_json1_1SeverityList = (input, context) => {
|
|
|
2667
2649
|
};
|
|
2668
2650
|
const serializeAws_json1_1StartAssessmentRunRequest = (input, context) => {
|
|
2669
2651
|
return {
|
|
2670
|
-
...(input.assessmentRunName
|
|
2671
|
-
|
|
2672
|
-
...(input.assessmentTemplateArn !== undefined &&
|
|
2673
|
-
input.assessmentTemplateArn !== null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2652
|
+
...(input.assessmentRunName != null && { assessmentRunName: input.assessmentRunName }),
|
|
2653
|
+
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2674
2654
|
};
|
|
2675
2655
|
};
|
|
2676
2656
|
const serializeAws_json1_1StopAssessmentRunRequest = (input, context) => {
|
|
2677
2657
|
return {
|
|
2678
|
-
...(input.assessmentRunArn
|
|
2679
|
-
|
|
2680
|
-
...(input.stopAction !== undefined && input.stopAction !== null && { stopAction: input.stopAction }),
|
|
2658
|
+
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2659
|
+
...(input.stopAction != null && { stopAction: input.stopAction }),
|
|
2681
2660
|
};
|
|
2682
2661
|
};
|
|
2683
2662
|
const serializeAws_json1_1SubscribeToEventRequest = (input, context) => {
|
|
2684
2663
|
return {
|
|
2685
|
-
...(input.event
|
|
2686
|
-
...(input.resourceArn
|
|
2687
|
-
...(input.topicArn
|
|
2664
|
+
...(input.event != null && { event: input.event }),
|
|
2665
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2666
|
+
...(input.topicArn != null && { topicArn: input.topicArn }),
|
|
2688
2667
|
};
|
|
2689
2668
|
};
|
|
2690
2669
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2691
2670
|
return {
|
|
2692
|
-
...(input.key
|
|
2693
|
-
...(input.value
|
|
2671
|
+
...(input.key != null && { key: input.key }),
|
|
2672
|
+
...(input.value != null && { value: input.value }),
|
|
2694
2673
|
};
|
|
2695
2674
|
};
|
|
2696
2675
|
const serializeAws_json1_1TagList = (input, context) => {
|
|
@@ -2705,27 +2684,22 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2705
2684
|
};
|
|
2706
2685
|
const serializeAws_json1_1TimestampRange = (input, context) => {
|
|
2707
2686
|
return {
|
|
2708
|
-
...(input.beginDate
|
|
2709
|
-
|
|
2710
|
-
...(input.endDate !== undefined &&
|
|
2711
|
-
input.endDate !== null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
2687
|
+
...(input.beginDate != null && { beginDate: Math.round(input.beginDate.getTime() / 1000) }),
|
|
2688
|
+
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
2712
2689
|
};
|
|
2713
2690
|
};
|
|
2714
2691
|
const serializeAws_json1_1UnsubscribeFromEventRequest = (input, context) => {
|
|
2715
2692
|
return {
|
|
2716
|
-
...(input.event
|
|
2717
|
-
...(input.resourceArn
|
|
2718
|
-
...(input.topicArn
|
|
2693
|
+
...(input.event != null && { event: input.event }),
|
|
2694
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2695
|
+
...(input.topicArn != null && { topicArn: input.topicArn }),
|
|
2719
2696
|
};
|
|
2720
2697
|
};
|
|
2721
2698
|
const serializeAws_json1_1UpdateAssessmentTargetRequest = (input, context) => {
|
|
2722
2699
|
return {
|
|
2723
|
-
...(input.assessmentTargetArn
|
|
2724
|
-
|
|
2725
|
-
...(input.
|
|
2726
|
-
input.assessmentTargetName !== null && { assessmentTargetName: input.assessmentTargetName }),
|
|
2727
|
-
...(input.resourceGroupArn !== undefined &&
|
|
2728
|
-
input.resourceGroupArn !== null && { resourceGroupArn: input.resourceGroupArn }),
|
|
2700
|
+
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2701
|
+
...(input.assessmentTargetName != null && { assessmentTargetName: input.assessmentTargetName }),
|
|
2702
|
+
...(input.resourceGroupArn != null && { resourceGroupArn: input.resourceGroupArn }),
|
|
2729
2703
|
};
|
|
2730
2704
|
};
|
|
2731
2705
|
const serializeAws_json1_1UserAttributeKeyList = (input, context) => {
|
|
@@ -2757,9 +2731,7 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
|
2757
2731
|
};
|
|
2758
2732
|
const deserializeAws_json1_1AddAttributesToFindingsResponse = (output, context) => {
|
|
2759
2733
|
return {
|
|
2760
|
-
failedItems: output.failedItems
|
|
2761
|
-
? deserializeAws_json1_1FailedItems(output.failedItems, context)
|
|
2762
|
-
: undefined,
|
|
2734
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
2763
2735
|
};
|
|
2764
2736
|
};
|
|
2765
2737
|
const deserializeAws_json1_1AgentAlreadyRunningAssessment = (output, context) => {
|
|
@@ -2804,7 +2776,7 @@ const deserializeAws_json1_1AgentPreviewList = (output, context) => {
|
|
|
2804
2776
|
};
|
|
2805
2777
|
const deserializeAws_json1_1AgentsAlreadyRunningAssessmentException = (output, context) => {
|
|
2806
2778
|
return {
|
|
2807
|
-
agents: output.agents
|
|
2779
|
+
agents: output.agents != null
|
|
2808
2780
|
? deserializeAws_json1_1AgentAlreadyRunningAssessmentList(output.agents, context)
|
|
2809
2781
|
: undefined,
|
|
2810
2782
|
agentsTruncated: (0, smithy_client_1.expectBoolean)(output.agentsTruncated),
|
|
@@ -2827,35 +2799,31 @@ const deserializeAws_json1_1AssessmentRun = (output, context) => {
|
|
|
2827
2799
|
return {
|
|
2828
2800
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2829
2801
|
assessmentTemplateArn: (0, smithy_client_1.expectString)(output.assessmentTemplateArn),
|
|
2830
|
-
completedAt: output.completedAt
|
|
2802
|
+
completedAt: output.completedAt != null
|
|
2831
2803
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completedAt)))
|
|
2832
2804
|
: undefined,
|
|
2833
|
-
createdAt: output.createdAt
|
|
2834
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2835
|
-
: undefined,
|
|
2805
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2836
2806
|
dataCollected: (0, smithy_client_1.expectBoolean)(output.dataCollected),
|
|
2837
2807
|
durationInSeconds: (0, smithy_client_1.expectInt32)(output.durationInSeconds),
|
|
2838
|
-
findingCounts: output.findingCounts
|
|
2808
|
+
findingCounts: output.findingCounts != null
|
|
2839
2809
|
? deserializeAws_json1_1AssessmentRunFindingCounts(output.findingCounts, context)
|
|
2840
2810
|
: undefined,
|
|
2841
2811
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2842
|
-
notifications: output.notifications
|
|
2812
|
+
notifications: output.notifications != null
|
|
2843
2813
|
? deserializeAws_json1_1AssessmentRunNotificationList(output.notifications, context)
|
|
2844
2814
|
: undefined,
|
|
2845
|
-
rulesPackageArns: output.rulesPackageArns
|
|
2815
|
+
rulesPackageArns: output.rulesPackageArns != null
|
|
2846
2816
|
? deserializeAws_json1_1AssessmentRulesPackageArnList(output.rulesPackageArns, context)
|
|
2847
2817
|
: undefined,
|
|
2848
|
-
startedAt: output.startedAt
|
|
2849
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
|
|
2850
|
-
: undefined,
|
|
2818
|
+
startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
|
|
2851
2819
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2852
|
-
stateChangedAt: output.stateChangedAt
|
|
2820
|
+
stateChangedAt: output.stateChangedAt != null
|
|
2853
2821
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stateChangedAt)))
|
|
2854
2822
|
: undefined,
|
|
2855
|
-
stateChanges: output.stateChanges
|
|
2823
|
+
stateChanges: output.stateChanges != null
|
|
2856
2824
|
? deserializeAws_json1_1AssessmentRunStateChangeList(output.stateChanges, context)
|
|
2857
2825
|
: undefined,
|
|
2858
|
-
userAttributesForFindings: output.userAttributesForFindings
|
|
2826
|
+
userAttributesForFindings: output.userAttributesForFindings != null
|
|
2859
2827
|
? deserializeAws_json1_1UserAttributeList(output.userAttributesForFindings, context)
|
|
2860
2828
|
: undefined,
|
|
2861
2829
|
};
|
|
@@ -2868,7 +2836,7 @@ const deserializeAws_json1_1AssessmentRunAgent = (output, context) => {
|
|
|
2868
2836
|
agentId: (0, smithy_client_1.expectString)(output.agentId),
|
|
2869
2837
|
assessmentRunArn: (0, smithy_client_1.expectString)(output.assessmentRunArn),
|
|
2870
2838
|
autoScalingGroup: (0, smithy_client_1.expectString)(output.autoScalingGroup),
|
|
2871
|
-
telemetryMetadata: output.telemetryMetadata
|
|
2839
|
+
telemetryMetadata: output.telemetryMetadata != null
|
|
2872
2840
|
? deserializeAws_json1_1TelemetryMetadataList(output.telemetryMetadata, context)
|
|
2873
2841
|
: undefined,
|
|
2874
2842
|
};
|
|
@@ -2908,7 +2876,7 @@ const deserializeAws_json1_1AssessmentRunInProgressArnList = (output, context) =
|
|
|
2908
2876
|
};
|
|
2909
2877
|
const deserializeAws_json1_1AssessmentRunInProgressException = (output, context) => {
|
|
2910
2878
|
return {
|
|
2911
|
-
assessmentRunArns: output.assessmentRunArns
|
|
2879
|
+
assessmentRunArns: output.assessmentRunArns != null
|
|
2912
2880
|
? deserializeAws_json1_1AssessmentRunInProgressArnList(output.assessmentRunArns, context)
|
|
2913
2881
|
: undefined,
|
|
2914
2882
|
assessmentRunArnsTruncated: (0, smithy_client_1.expectBoolean)(output.assessmentRunArnsTruncated),
|
|
@@ -2929,9 +2897,7 @@ const deserializeAws_json1_1AssessmentRunList = (output, context) => {
|
|
|
2929
2897
|
};
|
|
2930
2898
|
const deserializeAws_json1_1AssessmentRunNotification = (output, context) => {
|
|
2931
2899
|
return {
|
|
2932
|
-
date: output.date
|
|
2933
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.date)))
|
|
2934
|
-
: undefined,
|
|
2900
|
+
date: output.date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.date))) : undefined,
|
|
2935
2901
|
error: (0, smithy_client_1.expectBoolean)(output.error),
|
|
2936
2902
|
event: (0, smithy_client_1.expectString)(output.event),
|
|
2937
2903
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
@@ -2953,7 +2919,7 @@ const deserializeAws_json1_1AssessmentRunNotificationList = (output, context) =>
|
|
|
2953
2919
|
const deserializeAws_json1_1AssessmentRunStateChange = (output, context) => {
|
|
2954
2920
|
return {
|
|
2955
2921
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2956
|
-
stateChangedAt: output.stateChangedAt
|
|
2922
|
+
stateChangedAt: output.stateChangedAt != null
|
|
2957
2923
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stateChangedAt)))
|
|
2958
2924
|
: undefined,
|
|
2959
2925
|
};
|
|
@@ -2972,14 +2938,10 @@ const deserializeAws_json1_1AssessmentRunStateChangeList = (output, context) =>
|
|
|
2972
2938
|
const deserializeAws_json1_1AssessmentTarget = (output, context) => {
|
|
2973
2939
|
return {
|
|
2974
2940
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2975
|
-
createdAt: output.createdAt
|
|
2976
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2977
|
-
: undefined,
|
|
2941
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2978
2942
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2979
2943
|
resourceGroupArn: (0, smithy_client_1.expectString)(output.resourceGroupArn),
|
|
2980
|
-
updatedAt: output.updatedAt
|
|
2981
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
2982
|
-
: undefined,
|
|
2944
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
2983
2945
|
};
|
|
2984
2946
|
};
|
|
2985
2947
|
const deserializeAws_json1_1AssessmentTargetList = (output, context) => {
|
|
@@ -2998,16 +2960,14 @@ const deserializeAws_json1_1AssessmentTemplate = (output, context) => {
|
|
|
2998
2960
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2999
2961
|
assessmentRunCount: (0, smithy_client_1.expectInt32)(output.assessmentRunCount),
|
|
3000
2962
|
assessmentTargetArn: (0, smithy_client_1.expectString)(output.assessmentTargetArn),
|
|
3001
|
-
createdAt: output.createdAt
|
|
3002
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
3003
|
-
: undefined,
|
|
2963
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3004
2964
|
durationInSeconds: (0, smithy_client_1.expectInt32)(output.durationInSeconds),
|
|
3005
2965
|
lastAssessmentRunArn: (0, smithy_client_1.expectString)(output.lastAssessmentRunArn),
|
|
3006
2966
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3007
|
-
rulesPackageArns: output.rulesPackageArns
|
|
2967
|
+
rulesPackageArns: output.rulesPackageArns != null
|
|
3008
2968
|
? deserializeAws_json1_1AssessmentTemplateRulesPackageArnList(output.rulesPackageArns, context)
|
|
3009
2969
|
: undefined,
|
|
3010
|
-
userAttributesForFindings: output.userAttributesForFindings
|
|
2970
|
+
userAttributesForFindings: output.userAttributesForFindings != null
|
|
3011
2971
|
? deserializeAws_json1_1UserAttributeList(output.userAttributesForFindings, context)
|
|
3012
2972
|
: undefined,
|
|
3013
2973
|
};
|
|
@@ -3040,14 +3000,12 @@ const deserializeAws_json1_1AssetAttributes = (output, context) => {
|
|
|
3040
3000
|
amiId: (0, smithy_client_1.expectString)(output.amiId),
|
|
3041
3001
|
autoScalingGroup: (0, smithy_client_1.expectString)(output.autoScalingGroup),
|
|
3042
3002
|
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
3043
|
-
ipv4Addresses: output.ipv4Addresses
|
|
3044
|
-
|
|
3045
|
-
: undefined,
|
|
3046
|
-
networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
|
|
3003
|
+
ipv4Addresses: output.ipv4Addresses != null ? deserializeAws_json1_1Ipv4AddressList(output.ipv4Addresses, context) : undefined,
|
|
3004
|
+
networkInterfaces: output.networkInterfaces != null
|
|
3047
3005
|
? deserializeAws_json1_1NetworkInterfaces(output.networkInterfaces, context)
|
|
3048
3006
|
: undefined,
|
|
3049
3007
|
schemaVersion: (0, smithy_client_1.expectInt32)(output.schemaVersion),
|
|
3050
|
-
tags: output.tags
|
|
3008
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
3051
3009
|
};
|
|
3052
3010
|
};
|
|
3053
3011
|
const deserializeAws_json1_1Attribute = (output, context) => {
|
|
@@ -3089,37 +3047,31 @@ const deserializeAws_json1_1CreateResourceGroupResponse = (output, context) => {
|
|
|
3089
3047
|
};
|
|
3090
3048
|
const deserializeAws_json1_1DescribeAssessmentRunsResponse = (output, context) => {
|
|
3091
3049
|
return {
|
|
3092
|
-
assessmentRuns: output.assessmentRuns
|
|
3050
|
+
assessmentRuns: output.assessmentRuns != null
|
|
3093
3051
|
? deserializeAws_json1_1AssessmentRunList(output.assessmentRuns, context)
|
|
3094
3052
|
: undefined,
|
|
3095
|
-
failedItems: output.failedItems
|
|
3096
|
-
? deserializeAws_json1_1FailedItems(output.failedItems, context)
|
|
3097
|
-
: undefined,
|
|
3053
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
3098
3054
|
};
|
|
3099
3055
|
};
|
|
3100
3056
|
const deserializeAws_json1_1DescribeAssessmentTargetsResponse = (output, context) => {
|
|
3101
3057
|
return {
|
|
3102
|
-
assessmentTargets: output.assessmentTargets
|
|
3058
|
+
assessmentTargets: output.assessmentTargets != null
|
|
3103
3059
|
? deserializeAws_json1_1AssessmentTargetList(output.assessmentTargets, context)
|
|
3104
3060
|
: undefined,
|
|
3105
|
-
failedItems: output.failedItems
|
|
3106
|
-
? deserializeAws_json1_1FailedItems(output.failedItems, context)
|
|
3107
|
-
: undefined,
|
|
3061
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
3108
3062
|
};
|
|
3109
3063
|
};
|
|
3110
3064
|
const deserializeAws_json1_1DescribeAssessmentTemplatesResponse = (output, context) => {
|
|
3111
3065
|
return {
|
|
3112
|
-
assessmentTemplates: output.assessmentTemplates
|
|
3066
|
+
assessmentTemplates: output.assessmentTemplates != null
|
|
3113
3067
|
? deserializeAws_json1_1AssessmentTemplateList(output.assessmentTemplates, context)
|
|
3114
3068
|
: undefined,
|
|
3115
|
-
failedItems: output.failedItems
|
|
3116
|
-
? deserializeAws_json1_1FailedItems(output.failedItems, context)
|
|
3117
|
-
: undefined,
|
|
3069
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
3118
3070
|
};
|
|
3119
3071
|
};
|
|
3120
3072
|
const deserializeAws_json1_1DescribeCrossAccountAccessRoleResponse = (output, context) => {
|
|
3121
3073
|
return {
|
|
3122
|
-
registeredAt: output.registeredAt
|
|
3074
|
+
registeredAt: output.registeredAt != null
|
|
3123
3075
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registeredAt)))
|
|
3124
3076
|
: undefined,
|
|
3125
3077
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
@@ -3128,48 +3080,34 @@ const deserializeAws_json1_1DescribeCrossAccountAccessRoleResponse = (output, co
|
|
|
3128
3080
|
};
|
|
3129
3081
|
const deserializeAws_json1_1DescribeExclusionsResponse = (output, context) => {
|
|
3130
3082
|
return {
|
|
3131
|
-
exclusions: output.exclusions
|
|
3132
|
-
|
|
3133
|
-
: undefined,
|
|
3134
|
-
failedItems: output.failedItems !== undefined && output.failedItems !== null
|
|
3135
|
-
? deserializeAws_json1_1FailedItems(output.failedItems, context)
|
|
3136
|
-
: undefined,
|
|
3083
|
+
exclusions: output.exclusions != null ? deserializeAws_json1_1ExclusionMap(output.exclusions, context) : undefined,
|
|
3084
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
3137
3085
|
};
|
|
3138
3086
|
};
|
|
3139
3087
|
const deserializeAws_json1_1DescribeFindingsResponse = (output, context) => {
|
|
3140
3088
|
return {
|
|
3141
|
-
failedItems: output.failedItems
|
|
3142
|
-
|
|
3143
|
-
: undefined,
|
|
3144
|
-
findings: output.findings !== undefined && output.findings !== null
|
|
3145
|
-
? deserializeAws_json1_1FindingList(output.findings, context)
|
|
3146
|
-
: undefined,
|
|
3089
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
3090
|
+
findings: output.findings != null ? deserializeAws_json1_1FindingList(output.findings, context) : undefined,
|
|
3147
3091
|
};
|
|
3148
3092
|
};
|
|
3149
3093
|
const deserializeAws_json1_1DescribeResourceGroupsResponse = (output, context) => {
|
|
3150
3094
|
return {
|
|
3151
|
-
failedItems: output.failedItems
|
|
3152
|
-
|
|
3153
|
-
: undefined,
|
|
3154
|
-
resourceGroups: output.resourceGroups !== undefined && output.resourceGroups !== null
|
|
3095
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
3096
|
+
resourceGroups: output.resourceGroups != null
|
|
3155
3097
|
? deserializeAws_json1_1ResourceGroupList(output.resourceGroups, context)
|
|
3156
3098
|
: undefined,
|
|
3157
3099
|
};
|
|
3158
3100
|
};
|
|
3159
3101
|
const deserializeAws_json1_1DescribeRulesPackagesResponse = (output, context) => {
|
|
3160
3102
|
return {
|
|
3161
|
-
failedItems: output.failedItems
|
|
3162
|
-
|
|
3163
|
-
: undefined,
|
|
3164
|
-
rulesPackages: output.rulesPackages !== undefined && output.rulesPackages !== null
|
|
3165
|
-
? deserializeAws_json1_1RulesPackageList(output.rulesPackages, context)
|
|
3166
|
-
: undefined,
|
|
3103
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
3104
|
+
rulesPackages: output.rulesPackages != null ? deserializeAws_json1_1RulesPackageList(output.rulesPackages, context) : undefined,
|
|
3167
3105
|
};
|
|
3168
3106
|
};
|
|
3169
3107
|
const deserializeAws_json1_1EventSubscription = (output, context) => {
|
|
3170
3108
|
return {
|
|
3171
3109
|
event: (0, smithy_client_1.expectString)(output.event),
|
|
3172
|
-
subscribedAt: output.subscribedAt
|
|
3110
|
+
subscribedAt: output.subscribedAt != null
|
|
3173
3111
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.subscribedAt)))
|
|
3174
3112
|
: undefined,
|
|
3175
3113
|
};
|
|
@@ -3188,14 +3126,10 @@ const deserializeAws_json1_1EventSubscriptionList = (output, context) => {
|
|
|
3188
3126
|
const deserializeAws_json1_1Exclusion = (output, context) => {
|
|
3189
3127
|
return {
|
|
3190
3128
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3191
|
-
attributes: output.attributes
|
|
3192
|
-
? deserializeAws_json1_1AttributeList(output.attributes, context)
|
|
3193
|
-
: undefined,
|
|
3129
|
+
attributes: output.attributes != null ? deserializeAws_json1_1AttributeList(output.attributes, context) : undefined,
|
|
3194
3130
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3195
3131
|
recommendation: (0, smithy_client_1.expectString)(output.recommendation),
|
|
3196
|
-
scopes: output.scopes
|
|
3197
|
-
? deserializeAws_json1_1ScopeList(output.scopes, context)
|
|
3198
|
-
: undefined,
|
|
3132
|
+
scopes: output.scopes != null ? deserializeAws_json1_1ScopeList(output.scopes, context) : undefined,
|
|
3199
3133
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
3200
3134
|
};
|
|
3201
3135
|
};
|
|
@@ -3212,14 +3146,10 @@ const deserializeAws_json1_1ExclusionMap = (output, context) => {
|
|
|
3212
3146
|
};
|
|
3213
3147
|
const deserializeAws_json1_1ExclusionPreview = (output, context) => {
|
|
3214
3148
|
return {
|
|
3215
|
-
attributes: output.attributes
|
|
3216
|
-
? deserializeAws_json1_1AttributeList(output.attributes, context)
|
|
3217
|
-
: undefined,
|
|
3149
|
+
attributes: output.attributes != null ? deserializeAws_json1_1AttributeList(output.attributes, context) : undefined,
|
|
3218
3150
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3219
3151
|
recommendation: (0, smithy_client_1.expectString)(output.recommendation),
|
|
3220
|
-
scopes: output.scopes
|
|
3221
|
-
? deserializeAws_json1_1ScopeList(output.scopes, context)
|
|
3222
|
-
: undefined,
|
|
3152
|
+
scopes: output.scopes != null ? deserializeAws_json1_1ScopeList(output.scopes, context) : undefined,
|
|
3223
3153
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
3224
3154
|
};
|
|
3225
3155
|
};
|
|
@@ -3254,17 +3184,13 @@ const deserializeAws_json1_1FailedItems = (output, context) => {
|
|
|
3254
3184
|
const deserializeAws_json1_1Finding = (output, context) => {
|
|
3255
3185
|
return {
|
|
3256
3186
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3257
|
-
assetAttributes: output.assetAttributes
|
|
3187
|
+
assetAttributes: output.assetAttributes != null
|
|
3258
3188
|
? deserializeAws_json1_1AssetAttributes(output.assetAttributes, context)
|
|
3259
3189
|
: undefined,
|
|
3260
3190
|
assetType: (0, smithy_client_1.expectString)(output.assetType),
|
|
3261
|
-
attributes: output.attributes
|
|
3262
|
-
? deserializeAws_json1_1AttributeList(output.attributes, context)
|
|
3263
|
-
: undefined,
|
|
3191
|
+
attributes: output.attributes != null ? deserializeAws_json1_1AttributeList(output.attributes, context) : undefined,
|
|
3264
3192
|
confidence: (0, smithy_client_1.expectInt32)(output.confidence),
|
|
3265
|
-
createdAt: output.createdAt
|
|
3266
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
3267
|
-
: undefined,
|
|
3193
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3268
3194
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3269
3195
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
3270
3196
|
indicatorOfCompromise: (0, smithy_client_1.expectBoolean)(output.indicatorOfCompromise),
|
|
@@ -3272,15 +3198,13 @@ const deserializeAws_json1_1Finding = (output, context) => {
|
|
|
3272
3198
|
recommendation: (0, smithy_client_1.expectString)(output.recommendation),
|
|
3273
3199
|
schemaVersion: (0, smithy_client_1.expectInt32)(output.schemaVersion),
|
|
3274
3200
|
service: (0, smithy_client_1.expectString)(output.service),
|
|
3275
|
-
serviceAttributes: output.serviceAttributes
|
|
3201
|
+
serviceAttributes: output.serviceAttributes != null
|
|
3276
3202
|
? deserializeAws_json1_1InspectorServiceAttributes(output.serviceAttributes, context)
|
|
3277
3203
|
: undefined,
|
|
3278
3204
|
severity: (0, smithy_client_1.expectString)(output.severity),
|
|
3279
3205
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
3280
|
-
updatedAt: output.updatedAt
|
|
3281
|
-
|
|
3282
|
-
: undefined,
|
|
3283
|
-
userAttributes: output.userAttributes !== undefined && output.userAttributes !== null
|
|
3206
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3207
|
+
userAttributes: output.userAttributes != null
|
|
3284
3208
|
? deserializeAws_json1_1UserAttributeList(output.userAttributes, context)
|
|
3285
3209
|
: undefined,
|
|
3286
3210
|
};
|
|
@@ -3304,7 +3228,7 @@ const deserializeAws_json1_1GetAssessmentReportResponse = (output, context) => {
|
|
|
3304
3228
|
};
|
|
3305
3229
|
const deserializeAws_json1_1GetExclusionsPreviewResponse = (output, context) => {
|
|
3306
3230
|
return {
|
|
3307
|
-
exclusionPreviews: output.exclusionPreviews
|
|
3231
|
+
exclusionPreviews: output.exclusionPreviews != null
|
|
3308
3232
|
? deserializeAws_json1_1ExclusionPreviewList(output.exclusionPreviews, context)
|
|
3309
3233
|
: undefined,
|
|
3310
3234
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -3313,7 +3237,7 @@ const deserializeAws_json1_1GetExclusionsPreviewResponse = (output, context) =>
|
|
|
3313
3237
|
};
|
|
3314
3238
|
const deserializeAws_json1_1GetTelemetryMetadataResponse = (output, context) => {
|
|
3315
3239
|
return {
|
|
3316
|
-
telemetryMetadata: output.telemetryMetadata
|
|
3240
|
+
telemetryMetadata: output.telemetryMetadata != null
|
|
3317
3241
|
? deserializeAws_json1_1TelemetryMetadataList(output.telemetryMetadata, context)
|
|
3318
3242
|
: undefined,
|
|
3319
3243
|
};
|
|
@@ -3376,7 +3300,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
3376
3300
|
};
|
|
3377
3301
|
const deserializeAws_json1_1ListAssessmentRunAgentsResponse = (output, context) => {
|
|
3378
3302
|
return {
|
|
3379
|
-
assessmentRunAgents: output.assessmentRunAgents
|
|
3303
|
+
assessmentRunAgents: output.assessmentRunAgents != null
|
|
3380
3304
|
? deserializeAws_json1_1AssessmentRunAgentList(output.assessmentRunAgents, context)
|
|
3381
3305
|
: undefined,
|
|
3382
3306
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -3384,7 +3308,7 @@ const deserializeAws_json1_1ListAssessmentRunAgentsResponse = (output, context)
|
|
|
3384
3308
|
};
|
|
3385
3309
|
const deserializeAws_json1_1ListAssessmentRunsResponse = (output, context) => {
|
|
3386
3310
|
return {
|
|
3387
|
-
assessmentRunArns: output.assessmentRunArns
|
|
3311
|
+
assessmentRunArns: output.assessmentRunArns != null
|
|
3388
3312
|
? deserializeAws_json1_1ListReturnedArnList(output.assessmentRunArns, context)
|
|
3389
3313
|
: undefined,
|
|
3390
3314
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -3392,7 +3316,7 @@ const deserializeAws_json1_1ListAssessmentRunsResponse = (output, context) => {
|
|
|
3392
3316
|
};
|
|
3393
3317
|
const deserializeAws_json1_1ListAssessmentTargetsResponse = (output, context) => {
|
|
3394
3318
|
return {
|
|
3395
|
-
assessmentTargetArns: output.assessmentTargetArns
|
|
3319
|
+
assessmentTargetArns: output.assessmentTargetArns != null
|
|
3396
3320
|
? deserializeAws_json1_1ListReturnedArnList(output.assessmentTargetArns, context)
|
|
3397
3321
|
: undefined,
|
|
3398
3322
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -3400,7 +3324,7 @@ const deserializeAws_json1_1ListAssessmentTargetsResponse = (output, context) =>
|
|
|
3400
3324
|
};
|
|
3401
3325
|
const deserializeAws_json1_1ListAssessmentTemplatesResponse = (output, context) => {
|
|
3402
3326
|
return {
|
|
3403
|
-
assessmentTemplateArns: output.assessmentTemplateArns
|
|
3327
|
+
assessmentTemplateArns: output.assessmentTemplateArns != null
|
|
3404
3328
|
? deserializeAws_json1_1ListReturnedArnList(output.assessmentTemplateArns, context)
|
|
3405
3329
|
: undefined,
|
|
3406
3330
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -3409,14 +3333,12 @@ const deserializeAws_json1_1ListAssessmentTemplatesResponse = (output, context)
|
|
|
3409
3333
|
const deserializeAws_json1_1ListEventSubscriptionsResponse = (output, context) => {
|
|
3410
3334
|
return {
|
|
3411
3335
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3412
|
-
subscriptions: output.subscriptions
|
|
3413
|
-
? deserializeAws_json1_1SubscriptionList(output.subscriptions, context)
|
|
3414
|
-
: undefined,
|
|
3336
|
+
subscriptions: output.subscriptions != null ? deserializeAws_json1_1SubscriptionList(output.subscriptions, context) : undefined,
|
|
3415
3337
|
};
|
|
3416
3338
|
};
|
|
3417
3339
|
const deserializeAws_json1_1ListExclusionsResponse = (output, context) => {
|
|
3418
3340
|
return {
|
|
3419
|
-
exclusionArns: output.exclusionArns
|
|
3341
|
+
exclusionArns: output.exclusionArns != null
|
|
3420
3342
|
? deserializeAws_json1_1ListReturnedArnList(output.exclusionArns, context)
|
|
3421
3343
|
: undefined,
|
|
3422
3344
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -3424,9 +3346,7 @@ const deserializeAws_json1_1ListExclusionsResponse = (output, context) => {
|
|
|
3424
3346
|
};
|
|
3425
3347
|
const deserializeAws_json1_1ListFindingsResponse = (output, context) => {
|
|
3426
3348
|
return {
|
|
3427
|
-
findingArns: output.findingArns
|
|
3428
|
-
? deserializeAws_json1_1ListReturnedArnList(output.findingArns, context)
|
|
3429
|
-
: undefined,
|
|
3349
|
+
findingArns: output.findingArns != null ? deserializeAws_json1_1ListReturnedArnList(output.findingArns, context) : undefined,
|
|
3430
3350
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3431
3351
|
};
|
|
3432
3352
|
};
|
|
@@ -3444,34 +3364,28 @@ const deserializeAws_json1_1ListReturnedArnList = (output, context) => {
|
|
|
3444
3364
|
const deserializeAws_json1_1ListRulesPackagesResponse = (output, context) => {
|
|
3445
3365
|
return {
|
|
3446
3366
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3447
|
-
rulesPackageArns: output.rulesPackageArns
|
|
3367
|
+
rulesPackageArns: output.rulesPackageArns != null
|
|
3448
3368
|
? deserializeAws_json1_1ListReturnedArnList(output.rulesPackageArns, context)
|
|
3449
3369
|
: undefined,
|
|
3450
3370
|
};
|
|
3451
3371
|
};
|
|
3452
3372
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3453
3373
|
return {
|
|
3454
|
-
tags: output.tags
|
|
3455
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
3456
|
-
: undefined,
|
|
3374
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
3457
3375
|
};
|
|
3458
3376
|
};
|
|
3459
3377
|
const deserializeAws_json1_1NetworkInterface = (output, context) => {
|
|
3460
3378
|
return {
|
|
3461
|
-
ipv6Addresses: output.ipv6Addresses
|
|
3462
|
-
? deserializeAws_json1_1Ipv6Addresses(output.ipv6Addresses, context)
|
|
3463
|
-
: undefined,
|
|
3379
|
+
ipv6Addresses: output.ipv6Addresses != null ? deserializeAws_json1_1Ipv6Addresses(output.ipv6Addresses, context) : undefined,
|
|
3464
3380
|
networkInterfaceId: (0, smithy_client_1.expectString)(output.networkInterfaceId),
|
|
3465
3381
|
privateDnsName: (0, smithy_client_1.expectString)(output.privateDnsName),
|
|
3466
3382
|
privateIpAddress: (0, smithy_client_1.expectString)(output.privateIpAddress),
|
|
3467
|
-
privateIpAddresses: output.privateIpAddresses
|
|
3383
|
+
privateIpAddresses: output.privateIpAddresses != null
|
|
3468
3384
|
? deserializeAws_json1_1PrivateIpAddresses(output.privateIpAddresses, context)
|
|
3469
3385
|
: undefined,
|
|
3470
3386
|
publicDnsName: (0, smithy_client_1.expectString)(output.publicDnsName),
|
|
3471
3387
|
publicIp: (0, smithy_client_1.expectString)(output.publicIp),
|
|
3472
|
-
securityGroups: output.securityGroups
|
|
3473
|
-
? deserializeAws_json1_1SecurityGroups(output.securityGroups, context)
|
|
3474
|
-
: undefined,
|
|
3388
|
+
securityGroups: output.securityGroups != null ? deserializeAws_json1_1SecurityGroups(output.securityGroups, context) : undefined,
|
|
3475
3389
|
subnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
3476
3390
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3477
3391
|
};
|
|
@@ -3496,9 +3410,7 @@ const deserializeAws_json1_1NoSuchEntityException = (output, context) => {
|
|
|
3496
3410
|
};
|
|
3497
3411
|
const deserializeAws_json1_1PreviewAgentsResponse = (output, context) => {
|
|
3498
3412
|
return {
|
|
3499
|
-
agentPreviews: output.agentPreviews
|
|
3500
|
-
? deserializeAws_json1_1AgentPreviewList(output.agentPreviews, context)
|
|
3501
|
-
: undefined,
|
|
3413
|
+
agentPreviews: output.agentPreviews != null ? deserializeAws_json1_1AgentPreviewList(output.agentPreviews, context) : undefined,
|
|
3502
3414
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3503
3415
|
};
|
|
3504
3416
|
};
|
|
@@ -3526,20 +3438,14 @@ const deserializeAws_json1_1PrivateIpAddresses = (output, context) => {
|
|
|
3526
3438
|
};
|
|
3527
3439
|
const deserializeAws_json1_1RemoveAttributesFromFindingsResponse = (output, context) => {
|
|
3528
3440
|
return {
|
|
3529
|
-
failedItems: output.failedItems
|
|
3530
|
-
? deserializeAws_json1_1FailedItems(output.failedItems, context)
|
|
3531
|
-
: undefined,
|
|
3441
|
+
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
3532
3442
|
};
|
|
3533
3443
|
};
|
|
3534
3444
|
const deserializeAws_json1_1ResourceGroup = (output, context) => {
|
|
3535
3445
|
return {
|
|
3536
3446
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3537
|
-
createdAt: output.createdAt
|
|
3538
|
-
|
|
3539
|
-
: undefined,
|
|
3540
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3541
|
-
? deserializeAws_json1_1ResourceGroupTags(output.tags, context)
|
|
3542
|
-
: undefined,
|
|
3447
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3448
|
+
tags: output.tags != null ? deserializeAws_json1_1ResourceGroupTags(output.tags, context) : undefined,
|
|
3543
3449
|
};
|
|
3544
3450
|
};
|
|
3545
3451
|
const deserializeAws_json1_1ResourceGroupList = (output, context) => {
|
|
@@ -3637,7 +3543,7 @@ const deserializeAws_json1_1StartAssessmentRunResponse = (output, context) => {
|
|
|
3637
3543
|
};
|
|
3638
3544
|
const deserializeAws_json1_1Subscription = (output, context) => {
|
|
3639
3545
|
return {
|
|
3640
|
-
eventSubscriptions: output.eventSubscriptions
|
|
3546
|
+
eventSubscriptions: output.eventSubscriptions != null
|
|
3641
3547
|
? deserializeAws_json1_1EventSubscriptionList(output.eventSubscriptions, context)
|
|
3642
3548
|
: undefined,
|
|
3643
3549
|
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
@@ -3780,5 +3686,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3780
3686
|
if (data["__type"] !== undefined) {
|
|
3781
3687
|
return sanitizeErrorCode(data["__type"]);
|
|
3782
3688
|
}
|
|
3783
|
-
return "";
|
|
3784
3689
|
};
|