@aws-sdk/client-inspector2 3.141.0 → 3.150.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_restJson1.js +348 -560
- package/dist-es/protocols/Aws_restJson1.js +448 -562
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { Inspector2ServiceException as __BaseException } from "../models/Inspector2ServiceException";
|
|
6
6
|
import { AccessDeniedException, AggregationRequest, BadRequestException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -629,7 +629,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
|
|
|
629
629
|
});
|
|
630
630
|
}); };
|
|
631
631
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
632
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
632
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
633
633
|
return __generator(this, function (_c) {
|
|
634
634
|
switch (_c.label) {
|
|
635
635
|
case 0: return [4, context.endpoint()];
|
|
@@ -637,16 +637,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
637
637
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
638
638
|
headers = {};
|
|
639
639
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
640
|
-
|
|
641
|
-
labelValue = input.resourceArn;
|
|
642
|
-
if (labelValue.length <= 0) {
|
|
643
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
644
|
-
}
|
|
645
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
646
|
-
}
|
|
647
|
-
else {
|
|
648
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
649
|
-
}
|
|
640
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
650
641
|
return [2, new __HttpRequest({
|
|
651
642
|
protocol: protocol,
|
|
652
643
|
hostname: hostname,
|
|
@@ -686,7 +677,7 @@ export var serializeAws_restJson1ListUsageTotalsCommand = function (input, conte
|
|
|
686
677
|
});
|
|
687
678
|
}); };
|
|
688
679
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
689
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
680
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
690
681
|
return __generator(this, function (_c) {
|
|
691
682
|
switch (_c.label) {
|
|
692
683
|
case 0: return [4, context.endpoint()];
|
|
@@ -696,16 +687,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
696
687
|
"content-type": "application/json",
|
|
697
688
|
};
|
|
698
689
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
699
|
-
|
|
700
|
-
labelValue = input.resourceArn;
|
|
701
|
-
if (labelValue.length <= 0) {
|
|
702
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
703
|
-
}
|
|
704
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
705
|
-
}
|
|
706
|
-
else {
|
|
707
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
708
|
-
}
|
|
690
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
709
691
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
710
692
|
return [2, new __HttpRequest({
|
|
711
693
|
protocol: protocol,
|
|
@@ -720,7 +702,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
720
702
|
});
|
|
721
703
|
}); };
|
|
722
704
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
723
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
705
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
724
706
|
return __generator(this, function (_c) {
|
|
725
707
|
switch (_c.label) {
|
|
726
708
|
case 0: return [4, context.endpoint()];
|
|
@@ -728,17 +710,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
728
710
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
729
711
|
headers = {};
|
|
730
712
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
}
|
|
736
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
737
|
-
}
|
|
738
|
-
else {
|
|
739
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
740
|
-
}
|
|
741
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
713
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
714
|
+
query = map({
|
|
715
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
716
|
+
});
|
|
742
717
|
return [2, new __HttpRequest({
|
|
743
718
|
protocol: protocol,
|
|
744
719
|
hostname: hostname,
|
|
@@ -836,24 +811,23 @@ export var deserializeAws_restJson1AssociateMemberCommand = function (output, co
|
|
|
836
811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
812
|
return [2, deserializeAws_restJson1AssociateMemberCommandError(output, context)];
|
|
838
813
|
}
|
|
839
|
-
contents = {
|
|
814
|
+
contents = map({
|
|
840
815
|
$metadata: deserializeMetadata(output),
|
|
841
|
-
|
|
842
|
-
};
|
|
816
|
+
});
|
|
843
817
|
_a = __expectNonNull;
|
|
844
818
|
_b = __expectObject;
|
|
845
819
|
return [4, parseBody(output.body, context)];
|
|
846
820
|
case 1:
|
|
847
821
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
848
|
-
if (data.accountId
|
|
822
|
+
if (data.accountId != null) {
|
|
849
823
|
contents.accountId = __expectString(data.accountId);
|
|
850
824
|
}
|
|
851
|
-
return [2,
|
|
825
|
+
return [2, contents];
|
|
852
826
|
}
|
|
853
827
|
});
|
|
854
828
|
}); };
|
|
855
829
|
var deserializeAws_restJson1AssociateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
856
|
-
var parsedOutput, _a,
|
|
830
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
857
831
|
var _c;
|
|
858
832
|
return __generator(this, function (_d) {
|
|
859
833
|
switch (_d.label) {
|
|
@@ -886,14 +860,14 @@ var deserializeAws_restJson1AssociateMemberCommandError = function (output, cont
|
|
|
886
860
|
case 9: throw _d.sent();
|
|
887
861
|
case 10:
|
|
888
862
|
parsedBody = parsedOutput.body;
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
$metadata: $metadata,
|
|
863
|
+
throwDefaultError({
|
|
864
|
+
output: output,
|
|
865
|
+
parsedBody: parsedBody,
|
|
866
|
+
exceptionCtor: __BaseException,
|
|
867
|
+
errorCode: errorCode,
|
|
895
868
|
});
|
|
896
|
-
|
|
869
|
+
_d.label = 11;
|
|
870
|
+
case 11: return [2];
|
|
897
871
|
}
|
|
898
872
|
});
|
|
899
873
|
}); };
|
|
@@ -905,28 +879,26 @@ export var deserializeAws_restJson1BatchGetAccountStatusCommand = function (outp
|
|
|
905
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
880
|
return [2, deserializeAws_restJson1BatchGetAccountStatusCommandError(output, context)];
|
|
907
881
|
}
|
|
908
|
-
contents = {
|
|
882
|
+
contents = map({
|
|
909
883
|
$metadata: deserializeMetadata(output),
|
|
910
|
-
|
|
911
|
-
failedAccounts: undefined,
|
|
912
|
-
};
|
|
884
|
+
});
|
|
913
885
|
_a = __expectNonNull;
|
|
914
886
|
_b = __expectObject;
|
|
915
887
|
return [4, parseBody(output.body, context)];
|
|
916
888
|
case 1:
|
|
917
889
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
918
|
-
if (data.accounts
|
|
890
|
+
if (data.accounts != null) {
|
|
919
891
|
contents.accounts = deserializeAws_restJson1AccountStateList(data.accounts, context);
|
|
920
892
|
}
|
|
921
|
-
if (data.failedAccounts
|
|
893
|
+
if (data.failedAccounts != null) {
|
|
922
894
|
contents.failedAccounts = deserializeAws_restJson1FailedAccountList(data.failedAccounts, context);
|
|
923
895
|
}
|
|
924
|
-
return [2,
|
|
896
|
+
return [2, contents];
|
|
925
897
|
}
|
|
926
898
|
});
|
|
927
899
|
}); };
|
|
928
900
|
var deserializeAws_restJson1BatchGetAccountStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
929
|
-
var parsedOutput, _a,
|
|
901
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
930
902
|
var _c;
|
|
931
903
|
return __generator(this, function (_d) {
|
|
932
904
|
switch (_d.label) {
|
|
@@ -963,14 +935,14 @@ var deserializeAws_restJson1BatchGetAccountStatusCommandError = function (output
|
|
|
963
935
|
case 11: throw _d.sent();
|
|
964
936
|
case 12:
|
|
965
937
|
parsedBody = parsedOutput.body;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
$metadata: $metadata,
|
|
938
|
+
throwDefaultError({
|
|
939
|
+
output: output,
|
|
940
|
+
parsedBody: parsedBody,
|
|
941
|
+
exceptionCtor: __BaseException,
|
|
942
|
+
errorCode: errorCode,
|
|
972
943
|
});
|
|
973
|
-
|
|
944
|
+
_d.label = 13;
|
|
945
|
+
case 13: return [2];
|
|
974
946
|
}
|
|
975
947
|
});
|
|
976
948
|
}); };
|
|
@@ -982,28 +954,26 @@ export var deserializeAws_restJson1BatchGetFreeTrialInfoCommand = function (outp
|
|
|
982
954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
983
955
|
return [2, deserializeAws_restJson1BatchGetFreeTrialInfoCommandError(output, context)];
|
|
984
956
|
}
|
|
985
|
-
contents = {
|
|
957
|
+
contents = map({
|
|
986
958
|
$metadata: deserializeMetadata(output),
|
|
987
|
-
|
|
988
|
-
failedAccounts: undefined,
|
|
989
|
-
};
|
|
959
|
+
});
|
|
990
960
|
_a = __expectNonNull;
|
|
991
961
|
_b = __expectObject;
|
|
992
962
|
return [4, parseBody(output.body, context)];
|
|
993
963
|
case 1:
|
|
994
964
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
995
|
-
if (data.accounts
|
|
965
|
+
if (data.accounts != null) {
|
|
996
966
|
contents.accounts = deserializeAws_restJson1FreeTrialAccountInfoList(data.accounts, context);
|
|
997
967
|
}
|
|
998
|
-
if (data.failedAccounts
|
|
968
|
+
if (data.failedAccounts != null) {
|
|
999
969
|
contents.failedAccounts = deserializeAws_restJson1FreeTrialInfoErrorList(data.failedAccounts, context);
|
|
1000
970
|
}
|
|
1001
|
-
return [2,
|
|
971
|
+
return [2, contents];
|
|
1002
972
|
}
|
|
1003
973
|
});
|
|
1004
974
|
}); };
|
|
1005
975
|
var deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1006
|
-
var parsedOutput, _a,
|
|
976
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1007
977
|
var _c;
|
|
1008
978
|
return __generator(this, function (_d) {
|
|
1009
979
|
switch (_d.label) {
|
|
@@ -1036,14 +1006,14 @@ var deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = function (output
|
|
|
1036
1006
|
case 9: throw _d.sent();
|
|
1037
1007
|
case 10:
|
|
1038
1008
|
parsedBody = parsedOutput.body;
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
$metadata: $metadata,
|
|
1009
|
+
throwDefaultError({
|
|
1010
|
+
output: output,
|
|
1011
|
+
parsedBody: parsedBody,
|
|
1012
|
+
exceptionCtor: __BaseException,
|
|
1013
|
+
errorCode: errorCode,
|
|
1045
1014
|
});
|
|
1046
|
-
|
|
1015
|
+
_d.label = 11;
|
|
1016
|
+
case 11: return [2];
|
|
1047
1017
|
}
|
|
1048
1018
|
});
|
|
1049
1019
|
}); };
|
|
@@ -1055,24 +1025,23 @@ export var deserializeAws_restJson1CancelFindingsReportCommand = function (outpu
|
|
|
1055
1025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1056
1026
|
return [2, deserializeAws_restJson1CancelFindingsReportCommandError(output, context)];
|
|
1057
1027
|
}
|
|
1058
|
-
contents = {
|
|
1028
|
+
contents = map({
|
|
1059
1029
|
$metadata: deserializeMetadata(output),
|
|
1060
|
-
|
|
1061
|
-
};
|
|
1030
|
+
});
|
|
1062
1031
|
_a = __expectNonNull;
|
|
1063
1032
|
_b = __expectObject;
|
|
1064
1033
|
return [4, parseBody(output.body, context)];
|
|
1065
1034
|
case 1:
|
|
1066
1035
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1067
|
-
if (data.reportId
|
|
1036
|
+
if (data.reportId != null) {
|
|
1068
1037
|
contents.reportId = __expectString(data.reportId);
|
|
1069
1038
|
}
|
|
1070
|
-
return [2,
|
|
1039
|
+
return [2, contents];
|
|
1071
1040
|
}
|
|
1072
1041
|
});
|
|
1073
1042
|
}); };
|
|
1074
1043
|
var deserializeAws_restJson1CancelFindingsReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1075
|
-
var parsedOutput, _a,
|
|
1044
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1076
1045
|
var _c;
|
|
1077
1046
|
return __generator(this, function (_d) {
|
|
1078
1047
|
switch (_d.label) {
|
|
@@ -1109,14 +1078,14 @@ var deserializeAws_restJson1CancelFindingsReportCommandError = function (output,
|
|
|
1109
1078
|
case 11: throw _d.sent();
|
|
1110
1079
|
case 12:
|
|
1111
1080
|
parsedBody = parsedOutput.body;
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
$metadata: $metadata,
|
|
1081
|
+
throwDefaultError({
|
|
1082
|
+
output: output,
|
|
1083
|
+
parsedBody: parsedBody,
|
|
1084
|
+
exceptionCtor: __BaseException,
|
|
1085
|
+
errorCode: errorCode,
|
|
1118
1086
|
});
|
|
1119
|
-
|
|
1087
|
+
_d.label = 13;
|
|
1088
|
+
case 13: return [2];
|
|
1120
1089
|
}
|
|
1121
1090
|
});
|
|
1122
1091
|
}); };
|
|
@@ -1128,24 +1097,23 @@ export var deserializeAws_restJson1CreateFilterCommand = function (output, conte
|
|
|
1128
1097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1129
1098
|
return [2, deserializeAws_restJson1CreateFilterCommandError(output, context)];
|
|
1130
1099
|
}
|
|
1131
|
-
contents = {
|
|
1100
|
+
contents = map({
|
|
1132
1101
|
$metadata: deserializeMetadata(output),
|
|
1133
|
-
|
|
1134
|
-
};
|
|
1102
|
+
});
|
|
1135
1103
|
_a = __expectNonNull;
|
|
1136
1104
|
_b = __expectObject;
|
|
1137
1105
|
return [4, parseBody(output.body, context)];
|
|
1138
1106
|
case 1:
|
|
1139
1107
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1140
|
-
if (data.arn
|
|
1108
|
+
if (data.arn != null) {
|
|
1141
1109
|
contents.arn = __expectString(data.arn);
|
|
1142
1110
|
}
|
|
1143
|
-
return [2,
|
|
1111
|
+
return [2, contents];
|
|
1144
1112
|
}
|
|
1145
1113
|
});
|
|
1146
1114
|
}); };
|
|
1147
1115
|
var deserializeAws_restJson1CreateFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1148
|
-
var parsedOutput, _a,
|
|
1116
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1149
1117
|
var _c;
|
|
1150
1118
|
return __generator(this, function (_d) {
|
|
1151
1119
|
switch (_d.label) {
|
|
@@ -1186,14 +1154,14 @@ var deserializeAws_restJson1CreateFilterCommandError = function (output, context
|
|
|
1186
1154
|
case 13: throw _d.sent();
|
|
1187
1155
|
case 14:
|
|
1188
1156
|
parsedBody = parsedOutput.body;
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
$metadata: $metadata,
|
|
1157
|
+
throwDefaultError({
|
|
1158
|
+
output: output,
|
|
1159
|
+
parsedBody: parsedBody,
|
|
1160
|
+
exceptionCtor: __BaseException,
|
|
1161
|
+
errorCode: errorCode,
|
|
1195
1162
|
});
|
|
1196
|
-
|
|
1163
|
+
_d.label = 15;
|
|
1164
|
+
case 15: return [2];
|
|
1197
1165
|
}
|
|
1198
1166
|
});
|
|
1199
1167
|
}); };
|
|
@@ -1205,24 +1173,23 @@ export var deserializeAws_restJson1CreateFindingsReportCommand = function (outpu
|
|
|
1205
1173
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1206
1174
|
return [2, deserializeAws_restJson1CreateFindingsReportCommandError(output, context)];
|
|
1207
1175
|
}
|
|
1208
|
-
contents = {
|
|
1176
|
+
contents = map({
|
|
1209
1177
|
$metadata: deserializeMetadata(output),
|
|
1210
|
-
|
|
1211
|
-
};
|
|
1178
|
+
});
|
|
1212
1179
|
_a = __expectNonNull;
|
|
1213
1180
|
_b = __expectObject;
|
|
1214
1181
|
return [4, parseBody(output.body, context)];
|
|
1215
1182
|
case 1:
|
|
1216
1183
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1217
|
-
if (data.reportId
|
|
1184
|
+
if (data.reportId != null) {
|
|
1218
1185
|
contents.reportId = __expectString(data.reportId);
|
|
1219
1186
|
}
|
|
1220
|
-
return [2,
|
|
1187
|
+
return [2, contents];
|
|
1221
1188
|
}
|
|
1222
1189
|
});
|
|
1223
1190
|
}); };
|
|
1224
1191
|
var deserializeAws_restJson1CreateFindingsReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1225
|
-
var parsedOutput, _a,
|
|
1192
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1226
1193
|
var _c;
|
|
1227
1194
|
return __generator(this, function (_d) {
|
|
1228
1195
|
switch (_d.label) {
|
|
@@ -1259,14 +1226,14 @@ var deserializeAws_restJson1CreateFindingsReportCommandError = function (output,
|
|
|
1259
1226
|
case 11: throw _d.sent();
|
|
1260
1227
|
case 12:
|
|
1261
1228
|
parsedBody = parsedOutput.body;
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
$metadata: $metadata,
|
|
1229
|
+
throwDefaultError({
|
|
1230
|
+
output: output,
|
|
1231
|
+
parsedBody: parsedBody,
|
|
1232
|
+
exceptionCtor: __BaseException,
|
|
1233
|
+
errorCode: errorCode,
|
|
1268
1234
|
});
|
|
1269
|
-
|
|
1235
|
+
_d.label = 13;
|
|
1236
|
+
case 13: return [2];
|
|
1270
1237
|
}
|
|
1271
1238
|
});
|
|
1272
1239
|
}); };
|
|
@@ -1278,24 +1245,23 @@ export var deserializeAws_restJson1DeleteFilterCommand = function (output, conte
|
|
|
1278
1245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1279
1246
|
return [2, deserializeAws_restJson1DeleteFilterCommandError(output, context)];
|
|
1280
1247
|
}
|
|
1281
|
-
contents = {
|
|
1248
|
+
contents = map({
|
|
1282
1249
|
$metadata: deserializeMetadata(output),
|
|
1283
|
-
|
|
1284
|
-
};
|
|
1250
|
+
});
|
|
1285
1251
|
_a = __expectNonNull;
|
|
1286
1252
|
_b = __expectObject;
|
|
1287
1253
|
return [4, parseBody(output.body, context)];
|
|
1288
1254
|
case 1:
|
|
1289
1255
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1290
|
-
if (data.arn
|
|
1256
|
+
if (data.arn != null) {
|
|
1291
1257
|
contents.arn = __expectString(data.arn);
|
|
1292
1258
|
}
|
|
1293
|
-
return [2,
|
|
1259
|
+
return [2, contents];
|
|
1294
1260
|
}
|
|
1295
1261
|
});
|
|
1296
1262
|
}); };
|
|
1297
1263
|
var deserializeAws_restJson1DeleteFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1298
|
-
var parsedOutput, _a,
|
|
1264
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1299
1265
|
var _c;
|
|
1300
1266
|
return __generator(this, function (_d) {
|
|
1301
1267
|
switch (_d.label) {
|
|
@@ -1332,14 +1298,14 @@ var deserializeAws_restJson1DeleteFilterCommandError = function (output, context
|
|
|
1332
1298
|
case 11: throw _d.sent();
|
|
1333
1299
|
case 12:
|
|
1334
1300
|
parsedBody = parsedOutput.body;
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
$metadata: $metadata,
|
|
1301
|
+
throwDefaultError({
|
|
1302
|
+
output: output,
|
|
1303
|
+
parsedBody: parsedBody,
|
|
1304
|
+
exceptionCtor: __BaseException,
|
|
1305
|
+
errorCode: errorCode,
|
|
1341
1306
|
});
|
|
1342
|
-
|
|
1307
|
+
_d.label = 13;
|
|
1308
|
+
case 13: return [2];
|
|
1343
1309
|
}
|
|
1344
1310
|
});
|
|
1345
1311
|
}); };
|
|
@@ -1351,28 +1317,26 @@ export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = fu
|
|
|
1351
1317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1352
1318
|
return [2, deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context)];
|
|
1353
1319
|
}
|
|
1354
|
-
contents = {
|
|
1320
|
+
contents = map({
|
|
1355
1321
|
$metadata: deserializeMetadata(output),
|
|
1356
|
-
|
|
1357
|
-
maxAccountLimitReached: undefined,
|
|
1358
|
-
};
|
|
1322
|
+
});
|
|
1359
1323
|
_a = __expectNonNull;
|
|
1360
1324
|
_b = __expectObject;
|
|
1361
1325
|
return [4, parseBody(output.body, context)];
|
|
1362
1326
|
case 1:
|
|
1363
1327
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1364
|
-
if (data.autoEnable
|
|
1328
|
+
if (data.autoEnable != null) {
|
|
1365
1329
|
contents.autoEnable = deserializeAws_restJson1AutoEnable(data.autoEnable, context);
|
|
1366
1330
|
}
|
|
1367
|
-
if (data.maxAccountLimitReached
|
|
1331
|
+
if (data.maxAccountLimitReached != null) {
|
|
1368
1332
|
contents.maxAccountLimitReached = __expectBoolean(data.maxAccountLimitReached);
|
|
1369
1333
|
}
|
|
1370
|
-
return [2,
|
|
1334
|
+
return [2, contents];
|
|
1371
1335
|
}
|
|
1372
1336
|
});
|
|
1373
1337
|
}); };
|
|
1374
1338
|
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1375
|
-
var parsedOutput, _a,
|
|
1339
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1376
1340
|
var _c;
|
|
1377
1341
|
return __generator(this, function (_d) {
|
|
1378
1342
|
switch (_d.label) {
|
|
@@ -1405,14 +1369,14 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
1405
1369
|
case 9: throw _d.sent();
|
|
1406
1370
|
case 10:
|
|
1407
1371
|
parsedBody = parsedOutput.body;
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
$metadata: $metadata,
|
|
1372
|
+
throwDefaultError({
|
|
1373
|
+
output: output,
|
|
1374
|
+
parsedBody: parsedBody,
|
|
1375
|
+
exceptionCtor: __BaseException,
|
|
1376
|
+
errorCode: errorCode,
|
|
1414
1377
|
});
|
|
1415
|
-
|
|
1378
|
+
_d.label = 11;
|
|
1379
|
+
case 11: return [2];
|
|
1416
1380
|
}
|
|
1417
1381
|
});
|
|
1418
1382
|
}); };
|
|
@@ -1424,28 +1388,26 @@ export var deserializeAws_restJson1DisableCommand = function (output, context) {
|
|
|
1424
1388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1425
1389
|
return [2, deserializeAws_restJson1DisableCommandError(output, context)];
|
|
1426
1390
|
}
|
|
1427
|
-
contents = {
|
|
1391
|
+
contents = map({
|
|
1428
1392
|
$metadata: deserializeMetadata(output),
|
|
1429
|
-
|
|
1430
|
-
failedAccounts: undefined,
|
|
1431
|
-
};
|
|
1393
|
+
});
|
|
1432
1394
|
_a = __expectNonNull;
|
|
1433
1395
|
_b = __expectObject;
|
|
1434
1396
|
return [4, parseBody(output.body, context)];
|
|
1435
1397
|
case 1:
|
|
1436
1398
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1437
|
-
if (data.accounts
|
|
1399
|
+
if (data.accounts != null) {
|
|
1438
1400
|
contents.accounts = deserializeAws_restJson1AccountList(data.accounts, context);
|
|
1439
1401
|
}
|
|
1440
|
-
if (data.failedAccounts
|
|
1402
|
+
if (data.failedAccounts != null) {
|
|
1441
1403
|
contents.failedAccounts = deserializeAws_restJson1FailedAccountList(data.failedAccounts, context);
|
|
1442
1404
|
}
|
|
1443
|
-
return [2,
|
|
1405
|
+
return [2, contents];
|
|
1444
1406
|
}
|
|
1445
1407
|
});
|
|
1446
1408
|
}); };
|
|
1447
1409
|
var deserializeAws_restJson1DisableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1448
|
-
var parsedOutput, _a,
|
|
1410
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1449
1411
|
var _c;
|
|
1450
1412
|
return __generator(this, function (_d) {
|
|
1451
1413
|
switch (_d.label) {
|
|
@@ -1482,14 +1444,14 @@ var deserializeAws_restJson1DisableCommandError = function (output, context) { r
|
|
|
1482
1444
|
case 11: throw _d.sent();
|
|
1483
1445
|
case 12:
|
|
1484
1446
|
parsedBody = parsedOutput.body;
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
$metadata: $metadata,
|
|
1447
|
+
throwDefaultError({
|
|
1448
|
+
output: output,
|
|
1449
|
+
parsedBody: parsedBody,
|
|
1450
|
+
exceptionCtor: __BaseException,
|
|
1451
|
+
errorCode: errorCode,
|
|
1491
1452
|
});
|
|
1492
|
-
|
|
1453
|
+
_d.label = 13;
|
|
1454
|
+
case 13: return [2];
|
|
1493
1455
|
}
|
|
1494
1456
|
});
|
|
1495
1457
|
}); };
|
|
@@ -1501,24 +1463,23 @@ export var deserializeAws_restJson1DisableDelegatedAdminAccountCommand = functio
|
|
|
1501
1463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1502
1464
|
return [2, deserializeAws_restJson1DisableDelegatedAdminAccountCommandError(output, context)];
|
|
1503
1465
|
}
|
|
1504
|
-
contents = {
|
|
1466
|
+
contents = map({
|
|
1505
1467
|
$metadata: deserializeMetadata(output),
|
|
1506
|
-
|
|
1507
|
-
};
|
|
1468
|
+
});
|
|
1508
1469
|
_a = __expectNonNull;
|
|
1509
1470
|
_b = __expectObject;
|
|
1510
1471
|
return [4, parseBody(output.body, context)];
|
|
1511
1472
|
case 1:
|
|
1512
1473
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1513
|
-
if (data.delegatedAdminAccountId
|
|
1474
|
+
if (data.delegatedAdminAccountId != null) {
|
|
1514
1475
|
contents.delegatedAdminAccountId = __expectString(data.delegatedAdminAccountId);
|
|
1515
1476
|
}
|
|
1516
|
-
return [2,
|
|
1477
|
+
return [2, contents];
|
|
1517
1478
|
}
|
|
1518
1479
|
});
|
|
1519
1480
|
}); };
|
|
1520
1481
|
var deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1521
|
-
var parsedOutput, _a,
|
|
1482
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1522
1483
|
var _c;
|
|
1523
1484
|
return __generator(this, function (_d) {
|
|
1524
1485
|
switch (_d.label) {
|
|
@@ -1559,14 +1520,14 @@ var deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = function
|
|
|
1559
1520
|
case 13: throw _d.sent();
|
|
1560
1521
|
case 14:
|
|
1561
1522
|
parsedBody = parsedOutput.body;
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
$metadata: $metadata,
|
|
1523
|
+
throwDefaultError({
|
|
1524
|
+
output: output,
|
|
1525
|
+
parsedBody: parsedBody,
|
|
1526
|
+
exceptionCtor: __BaseException,
|
|
1527
|
+
errorCode: errorCode,
|
|
1568
1528
|
});
|
|
1569
|
-
|
|
1529
|
+
_d.label = 15;
|
|
1530
|
+
case 15: return [2];
|
|
1570
1531
|
}
|
|
1571
1532
|
});
|
|
1572
1533
|
}); };
|
|
@@ -1578,24 +1539,23 @@ export var deserializeAws_restJson1DisassociateMemberCommand = function (output,
|
|
|
1578
1539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1579
1540
|
return [2, deserializeAws_restJson1DisassociateMemberCommandError(output, context)];
|
|
1580
1541
|
}
|
|
1581
|
-
contents = {
|
|
1542
|
+
contents = map({
|
|
1582
1543
|
$metadata: deserializeMetadata(output),
|
|
1583
|
-
|
|
1584
|
-
};
|
|
1544
|
+
});
|
|
1585
1545
|
_a = __expectNonNull;
|
|
1586
1546
|
_b = __expectObject;
|
|
1587
1547
|
return [4, parseBody(output.body, context)];
|
|
1588
1548
|
case 1:
|
|
1589
1549
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1590
|
-
if (data.accountId
|
|
1550
|
+
if (data.accountId != null) {
|
|
1591
1551
|
contents.accountId = __expectString(data.accountId);
|
|
1592
1552
|
}
|
|
1593
|
-
return [2,
|
|
1553
|
+
return [2, contents];
|
|
1594
1554
|
}
|
|
1595
1555
|
});
|
|
1596
1556
|
}); };
|
|
1597
1557
|
var deserializeAws_restJson1DisassociateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1598
|
-
var parsedOutput, _a,
|
|
1558
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1599
1559
|
var _c;
|
|
1600
1560
|
return __generator(this, function (_d) {
|
|
1601
1561
|
switch (_d.label) {
|
|
@@ -1628,14 +1588,14 @@ var deserializeAws_restJson1DisassociateMemberCommandError = function (output, c
|
|
|
1628
1588
|
case 9: throw _d.sent();
|
|
1629
1589
|
case 10:
|
|
1630
1590
|
parsedBody = parsedOutput.body;
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
$metadata: $metadata,
|
|
1591
|
+
throwDefaultError({
|
|
1592
|
+
output: output,
|
|
1593
|
+
parsedBody: parsedBody,
|
|
1594
|
+
exceptionCtor: __BaseException,
|
|
1595
|
+
errorCode: errorCode,
|
|
1637
1596
|
});
|
|
1638
|
-
|
|
1597
|
+
_d.label = 11;
|
|
1598
|
+
case 11: return [2];
|
|
1639
1599
|
}
|
|
1640
1600
|
});
|
|
1641
1601
|
}); };
|
|
@@ -1647,28 +1607,26 @@ export var deserializeAws_restJson1EnableCommand = function (output, context) {
|
|
|
1647
1607
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1648
1608
|
return [2, deserializeAws_restJson1EnableCommandError(output, context)];
|
|
1649
1609
|
}
|
|
1650
|
-
contents = {
|
|
1610
|
+
contents = map({
|
|
1651
1611
|
$metadata: deserializeMetadata(output),
|
|
1652
|
-
|
|
1653
|
-
failedAccounts: undefined,
|
|
1654
|
-
};
|
|
1612
|
+
});
|
|
1655
1613
|
_a = __expectNonNull;
|
|
1656
1614
|
_b = __expectObject;
|
|
1657
1615
|
return [4, parseBody(output.body, context)];
|
|
1658
1616
|
case 1:
|
|
1659
1617
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1660
|
-
if (data.accounts
|
|
1618
|
+
if (data.accounts != null) {
|
|
1661
1619
|
contents.accounts = deserializeAws_restJson1AccountList(data.accounts, context);
|
|
1662
1620
|
}
|
|
1663
|
-
if (data.failedAccounts
|
|
1621
|
+
if (data.failedAccounts != null) {
|
|
1664
1622
|
contents.failedAccounts = deserializeAws_restJson1FailedAccountList(data.failedAccounts, context);
|
|
1665
1623
|
}
|
|
1666
|
-
return [2,
|
|
1624
|
+
return [2, contents];
|
|
1667
1625
|
}
|
|
1668
1626
|
});
|
|
1669
1627
|
}); };
|
|
1670
1628
|
var deserializeAws_restJson1EnableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1671
|
-
var parsedOutput, _a,
|
|
1629
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1672
1630
|
var _c;
|
|
1673
1631
|
return __generator(this, function (_d) {
|
|
1674
1632
|
switch (_d.label) {
|
|
@@ -1705,14 +1663,14 @@ var deserializeAws_restJson1EnableCommandError = function (output, context) { re
|
|
|
1705
1663
|
case 11: throw _d.sent();
|
|
1706
1664
|
case 12:
|
|
1707
1665
|
parsedBody = parsedOutput.body;
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
$metadata: $metadata,
|
|
1666
|
+
throwDefaultError({
|
|
1667
|
+
output: output,
|
|
1668
|
+
parsedBody: parsedBody,
|
|
1669
|
+
exceptionCtor: __BaseException,
|
|
1670
|
+
errorCode: errorCode,
|
|
1714
1671
|
});
|
|
1715
|
-
|
|
1672
|
+
_d.label = 13;
|
|
1673
|
+
case 13: return [2];
|
|
1716
1674
|
}
|
|
1717
1675
|
});
|
|
1718
1676
|
}); };
|
|
@@ -1724,24 +1682,23 @@ export var deserializeAws_restJson1EnableDelegatedAdminAccountCommand = function
|
|
|
1724
1682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1725
1683
|
return [2, deserializeAws_restJson1EnableDelegatedAdminAccountCommandError(output, context)];
|
|
1726
1684
|
}
|
|
1727
|
-
contents = {
|
|
1685
|
+
contents = map({
|
|
1728
1686
|
$metadata: deserializeMetadata(output),
|
|
1729
|
-
|
|
1730
|
-
};
|
|
1687
|
+
});
|
|
1731
1688
|
_a = __expectNonNull;
|
|
1732
1689
|
_b = __expectObject;
|
|
1733
1690
|
return [4, parseBody(output.body, context)];
|
|
1734
1691
|
case 1:
|
|
1735
1692
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1736
|
-
if (data.delegatedAdminAccountId
|
|
1693
|
+
if (data.delegatedAdminAccountId != null) {
|
|
1737
1694
|
contents.delegatedAdminAccountId = __expectString(data.delegatedAdminAccountId);
|
|
1738
1695
|
}
|
|
1739
|
-
return [2,
|
|
1696
|
+
return [2, contents];
|
|
1740
1697
|
}
|
|
1741
1698
|
});
|
|
1742
1699
|
}); };
|
|
1743
1700
|
var deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1744
|
-
var parsedOutput, _a,
|
|
1701
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1745
1702
|
var _c;
|
|
1746
1703
|
return __generator(this, function (_d) {
|
|
1747
1704
|
switch (_d.label) {
|
|
@@ -1782,14 +1739,14 @@ var deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = function (
|
|
|
1782
1739
|
case 13: throw _d.sent();
|
|
1783
1740
|
case 14:
|
|
1784
1741
|
parsedBody = parsedOutput.body;
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
$metadata: $metadata,
|
|
1742
|
+
throwDefaultError({
|
|
1743
|
+
output: output,
|
|
1744
|
+
parsedBody: parsedBody,
|
|
1745
|
+
exceptionCtor: __BaseException,
|
|
1746
|
+
errorCode: errorCode,
|
|
1791
1747
|
});
|
|
1792
|
-
|
|
1748
|
+
_d.label = 15;
|
|
1749
|
+
case 15: return [2];
|
|
1793
1750
|
}
|
|
1794
1751
|
});
|
|
1795
1752
|
}); };
|
|
@@ -1801,24 +1758,23 @@ export var deserializeAws_restJson1GetConfigurationCommand = function (output, c
|
|
|
1801
1758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1802
1759
|
return [2, deserializeAws_restJson1GetConfigurationCommandError(output, context)];
|
|
1803
1760
|
}
|
|
1804
|
-
contents = {
|
|
1761
|
+
contents = map({
|
|
1805
1762
|
$metadata: deserializeMetadata(output),
|
|
1806
|
-
|
|
1807
|
-
};
|
|
1763
|
+
});
|
|
1808
1764
|
_a = __expectNonNull;
|
|
1809
1765
|
_b = __expectObject;
|
|
1810
1766
|
return [4, parseBody(output.body, context)];
|
|
1811
1767
|
case 1:
|
|
1812
1768
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1813
|
-
if (data.ecrConfiguration
|
|
1769
|
+
if (data.ecrConfiguration != null) {
|
|
1814
1770
|
contents.ecrConfiguration = deserializeAws_restJson1EcrConfigurationState(data.ecrConfiguration, context);
|
|
1815
1771
|
}
|
|
1816
|
-
return [2,
|
|
1772
|
+
return [2, contents];
|
|
1817
1773
|
}
|
|
1818
1774
|
});
|
|
1819
1775
|
}); };
|
|
1820
1776
|
var deserializeAws_restJson1GetConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1821
|
-
var parsedOutput, _a,
|
|
1777
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1822
1778
|
var _c;
|
|
1823
1779
|
return __generator(this, function (_d) {
|
|
1824
1780
|
switch (_d.label) {
|
|
@@ -1847,14 +1803,14 @@ var deserializeAws_restJson1GetConfigurationCommandError = function (output, con
|
|
|
1847
1803
|
case 7: throw _d.sent();
|
|
1848
1804
|
case 8:
|
|
1849
1805
|
parsedBody = parsedOutput.body;
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
$metadata: $metadata,
|
|
1806
|
+
throwDefaultError({
|
|
1807
|
+
output: output,
|
|
1808
|
+
parsedBody: parsedBody,
|
|
1809
|
+
exceptionCtor: __BaseException,
|
|
1810
|
+
errorCode: errorCode,
|
|
1856
1811
|
});
|
|
1857
|
-
|
|
1812
|
+
_d.label = 9;
|
|
1813
|
+
case 9: return [2];
|
|
1858
1814
|
}
|
|
1859
1815
|
});
|
|
1860
1816
|
}); };
|
|
@@ -1866,24 +1822,23 @@ export var deserializeAws_restJson1GetDelegatedAdminAccountCommand = function (o
|
|
|
1866
1822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1867
1823
|
return [2, deserializeAws_restJson1GetDelegatedAdminAccountCommandError(output, context)];
|
|
1868
1824
|
}
|
|
1869
|
-
contents = {
|
|
1825
|
+
contents = map({
|
|
1870
1826
|
$metadata: deserializeMetadata(output),
|
|
1871
|
-
|
|
1872
|
-
};
|
|
1827
|
+
});
|
|
1873
1828
|
_a = __expectNonNull;
|
|
1874
1829
|
_b = __expectObject;
|
|
1875
1830
|
return [4, parseBody(output.body, context)];
|
|
1876
1831
|
case 1:
|
|
1877
1832
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1878
|
-
if (data.delegatedAdmin
|
|
1833
|
+
if (data.delegatedAdmin != null) {
|
|
1879
1834
|
contents.delegatedAdmin = deserializeAws_restJson1DelegatedAdmin(data.delegatedAdmin, context);
|
|
1880
1835
|
}
|
|
1881
|
-
return [2,
|
|
1836
|
+
return [2, contents];
|
|
1882
1837
|
}
|
|
1883
1838
|
});
|
|
1884
1839
|
}); };
|
|
1885
1840
|
var deserializeAws_restJson1GetDelegatedAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1886
|
-
var parsedOutput, _a,
|
|
1841
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1887
1842
|
var _c;
|
|
1888
1843
|
return __generator(this, function (_d) {
|
|
1889
1844
|
switch (_d.label) {
|
|
@@ -1920,14 +1875,14 @@ var deserializeAws_restJson1GetDelegatedAdminAccountCommandError = function (out
|
|
|
1920
1875
|
case 11: throw _d.sent();
|
|
1921
1876
|
case 12:
|
|
1922
1877
|
parsedBody = parsedOutput.body;
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
$metadata: $metadata,
|
|
1878
|
+
throwDefaultError({
|
|
1879
|
+
output: output,
|
|
1880
|
+
parsedBody: parsedBody,
|
|
1881
|
+
exceptionCtor: __BaseException,
|
|
1882
|
+
errorCode: errorCode,
|
|
1929
1883
|
});
|
|
1930
|
-
|
|
1884
|
+
_d.label = 13;
|
|
1885
|
+
case 13: return [2];
|
|
1931
1886
|
}
|
|
1932
1887
|
});
|
|
1933
1888
|
}); };
|
|
@@ -1939,44 +1894,38 @@ export var deserializeAws_restJson1GetFindingsReportStatusCommand = function (ou
|
|
|
1939
1894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1940
1895
|
return [2, deserializeAws_restJson1GetFindingsReportStatusCommandError(output, context)];
|
|
1941
1896
|
}
|
|
1942
|
-
contents = {
|
|
1897
|
+
contents = map({
|
|
1943
1898
|
$metadata: deserializeMetadata(output),
|
|
1944
|
-
|
|
1945
|
-
errorCode: undefined,
|
|
1946
|
-
errorMessage: undefined,
|
|
1947
|
-
filterCriteria: undefined,
|
|
1948
|
-
reportId: undefined,
|
|
1949
|
-
status: undefined,
|
|
1950
|
-
};
|
|
1899
|
+
});
|
|
1951
1900
|
_a = __expectNonNull;
|
|
1952
1901
|
_b = __expectObject;
|
|
1953
1902
|
return [4, parseBody(output.body, context)];
|
|
1954
1903
|
case 1:
|
|
1955
1904
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1956
|
-
if (data.destination
|
|
1905
|
+
if (data.destination != null) {
|
|
1957
1906
|
contents.destination = deserializeAws_restJson1Destination(data.destination, context);
|
|
1958
1907
|
}
|
|
1959
|
-
if (data.errorCode
|
|
1908
|
+
if (data.errorCode != null) {
|
|
1960
1909
|
contents.errorCode = __expectString(data.errorCode);
|
|
1961
1910
|
}
|
|
1962
|
-
if (data.errorMessage
|
|
1911
|
+
if (data.errorMessage != null) {
|
|
1963
1912
|
contents.errorMessage = __expectString(data.errorMessage);
|
|
1964
1913
|
}
|
|
1965
|
-
if (data.filterCriteria
|
|
1914
|
+
if (data.filterCriteria != null) {
|
|
1966
1915
|
contents.filterCriteria = deserializeAws_restJson1FilterCriteria(data.filterCriteria, context);
|
|
1967
1916
|
}
|
|
1968
|
-
if (data.reportId
|
|
1917
|
+
if (data.reportId != null) {
|
|
1969
1918
|
contents.reportId = __expectString(data.reportId);
|
|
1970
1919
|
}
|
|
1971
|
-
if (data.status
|
|
1920
|
+
if (data.status != null) {
|
|
1972
1921
|
contents.status = __expectString(data.status);
|
|
1973
1922
|
}
|
|
1974
|
-
return [2,
|
|
1923
|
+
return [2, contents];
|
|
1975
1924
|
}
|
|
1976
1925
|
});
|
|
1977
1926
|
}); };
|
|
1978
1927
|
var deserializeAws_restJson1GetFindingsReportStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1979
|
-
var parsedOutput, _a,
|
|
1928
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1980
1929
|
var _c;
|
|
1981
1930
|
return __generator(this, function (_d) {
|
|
1982
1931
|
switch (_d.label) {
|
|
@@ -2013,14 +1962,14 @@ var deserializeAws_restJson1GetFindingsReportStatusCommandError = function (outp
|
|
|
2013
1962
|
case 11: throw _d.sent();
|
|
2014
1963
|
case 12:
|
|
2015
1964
|
parsedBody = parsedOutput.body;
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
$metadata: $metadata,
|
|
1965
|
+
throwDefaultError({
|
|
1966
|
+
output: output,
|
|
1967
|
+
parsedBody: parsedBody,
|
|
1968
|
+
exceptionCtor: __BaseException,
|
|
1969
|
+
errorCode: errorCode,
|
|
2022
1970
|
});
|
|
2023
|
-
|
|
1971
|
+
_d.label = 13;
|
|
1972
|
+
case 13: return [2];
|
|
2024
1973
|
}
|
|
2025
1974
|
});
|
|
2026
1975
|
}); };
|
|
@@ -2032,24 +1981,23 @@ export var deserializeAws_restJson1GetMemberCommand = function (output, context)
|
|
|
2032
1981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2033
1982
|
return [2, deserializeAws_restJson1GetMemberCommandError(output, context)];
|
|
2034
1983
|
}
|
|
2035
|
-
contents = {
|
|
1984
|
+
contents = map({
|
|
2036
1985
|
$metadata: deserializeMetadata(output),
|
|
2037
|
-
|
|
2038
|
-
};
|
|
1986
|
+
});
|
|
2039
1987
|
_a = __expectNonNull;
|
|
2040
1988
|
_b = __expectObject;
|
|
2041
1989
|
return [4, parseBody(output.body, context)];
|
|
2042
1990
|
case 1:
|
|
2043
1991
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2044
|
-
if (data.member
|
|
1992
|
+
if (data.member != null) {
|
|
2045
1993
|
contents.member = deserializeAws_restJson1Member(data.member, context);
|
|
2046
1994
|
}
|
|
2047
|
-
return [2,
|
|
1995
|
+
return [2, contents];
|
|
2048
1996
|
}
|
|
2049
1997
|
});
|
|
2050
1998
|
}); };
|
|
2051
1999
|
var deserializeAws_restJson1GetMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2052
|
-
var parsedOutput, _a,
|
|
2000
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2053
2001
|
var _c;
|
|
2054
2002
|
return __generator(this, function (_d) {
|
|
2055
2003
|
switch (_d.label) {
|
|
@@ -2086,14 +2034,14 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
2086
2034
|
case 11: throw _d.sent();
|
|
2087
2035
|
case 12:
|
|
2088
2036
|
parsedBody = parsedOutput.body;
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
$metadata: $metadata,
|
|
2037
|
+
throwDefaultError({
|
|
2038
|
+
output: output,
|
|
2039
|
+
parsedBody: parsedBody,
|
|
2040
|
+
exceptionCtor: __BaseException,
|
|
2041
|
+
errorCode: errorCode,
|
|
2095
2042
|
});
|
|
2096
|
-
|
|
2043
|
+
_d.label = 13;
|
|
2044
|
+
case 13: return [2];
|
|
2097
2045
|
}
|
|
2098
2046
|
});
|
|
2099
2047
|
}); };
|
|
@@ -2105,28 +2053,26 @@ export var deserializeAws_restJson1ListAccountPermissionsCommand = function (out
|
|
|
2105
2053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2106
2054
|
return [2, deserializeAws_restJson1ListAccountPermissionsCommandError(output, context)];
|
|
2107
2055
|
}
|
|
2108
|
-
contents = {
|
|
2056
|
+
contents = map({
|
|
2109
2057
|
$metadata: deserializeMetadata(output),
|
|
2110
|
-
|
|
2111
|
-
permissions: undefined,
|
|
2112
|
-
};
|
|
2058
|
+
});
|
|
2113
2059
|
_a = __expectNonNull;
|
|
2114
2060
|
_b = __expectObject;
|
|
2115
2061
|
return [4, parseBody(output.body, context)];
|
|
2116
2062
|
case 1:
|
|
2117
2063
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2118
|
-
if (data.nextToken
|
|
2064
|
+
if (data.nextToken != null) {
|
|
2119
2065
|
contents.nextToken = __expectString(data.nextToken);
|
|
2120
2066
|
}
|
|
2121
|
-
if (data.permissions
|
|
2067
|
+
if (data.permissions != null) {
|
|
2122
2068
|
contents.permissions = deserializeAws_restJson1Permissions(data.permissions, context);
|
|
2123
2069
|
}
|
|
2124
|
-
return [2,
|
|
2070
|
+
return [2, contents];
|
|
2125
2071
|
}
|
|
2126
2072
|
});
|
|
2127
2073
|
}); };
|
|
2128
2074
|
var deserializeAws_restJson1ListAccountPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2129
|
-
var parsedOutput, _a,
|
|
2075
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2130
2076
|
var _c;
|
|
2131
2077
|
return __generator(this, function (_d) {
|
|
2132
2078
|
switch (_d.label) {
|
|
@@ -2159,14 +2105,14 @@ var deserializeAws_restJson1ListAccountPermissionsCommandError = function (outpu
|
|
|
2159
2105
|
case 9: throw _d.sent();
|
|
2160
2106
|
case 10:
|
|
2161
2107
|
parsedBody = parsedOutput.body;
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
$metadata: $metadata,
|
|
2108
|
+
throwDefaultError({
|
|
2109
|
+
output: output,
|
|
2110
|
+
parsedBody: parsedBody,
|
|
2111
|
+
exceptionCtor: __BaseException,
|
|
2112
|
+
errorCode: errorCode,
|
|
2168
2113
|
});
|
|
2169
|
-
|
|
2114
|
+
_d.label = 11;
|
|
2115
|
+
case 11: return [2];
|
|
2170
2116
|
}
|
|
2171
2117
|
});
|
|
2172
2118
|
}); };
|
|
@@ -2178,28 +2124,26 @@ export var deserializeAws_restJson1ListCoverageCommand = function (output, conte
|
|
|
2178
2124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2179
2125
|
return [2, deserializeAws_restJson1ListCoverageCommandError(output, context)];
|
|
2180
2126
|
}
|
|
2181
|
-
contents = {
|
|
2127
|
+
contents = map({
|
|
2182
2128
|
$metadata: deserializeMetadata(output),
|
|
2183
|
-
|
|
2184
|
-
nextToken: undefined,
|
|
2185
|
-
};
|
|
2129
|
+
});
|
|
2186
2130
|
_a = __expectNonNull;
|
|
2187
2131
|
_b = __expectObject;
|
|
2188
2132
|
return [4, parseBody(output.body, context)];
|
|
2189
2133
|
case 1:
|
|
2190
2134
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2191
|
-
if (data.coveredResources
|
|
2135
|
+
if (data.coveredResources != null) {
|
|
2192
2136
|
contents.coveredResources = deserializeAws_restJson1CoveredResources(data.coveredResources, context);
|
|
2193
2137
|
}
|
|
2194
|
-
if (data.nextToken
|
|
2138
|
+
if (data.nextToken != null) {
|
|
2195
2139
|
contents.nextToken = __expectString(data.nextToken);
|
|
2196
2140
|
}
|
|
2197
|
-
return [2,
|
|
2141
|
+
return [2, contents];
|
|
2198
2142
|
}
|
|
2199
2143
|
});
|
|
2200
2144
|
}); };
|
|
2201
2145
|
var deserializeAws_restJson1ListCoverageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2202
|
-
var parsedOutput, _a,
|
|
2146
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2203
2147
|
var _c;
|
|
2204
2148
|
return __generator(this, function (_d) {
|
|
2205
2149
|
switch (_d.label) {
|
|
@@ -2228,14 +2172,14 @@ var deserializeAws_restJson1ListCoverageCommandError = function (output, context
|
|
|
2228
2172
|
case 7: throw _d.sent();
|
|
2229
2173
|
case 8:
|
|
2230
2174
|
parsedBody = parsedOutput.body;
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
$metadata: $metadata,
|
|
2175
|
+
throwDefaultError({
|
|
2176
|
+
output: output,
|
|
2177
|
+
parsedBody: parsedBody,
|
|
2178
|
+
exceptionCtor: __BaseException,
|
|
2179
|
+
errorCode: errorCode,
|
|
2237
2180
|
});
|
|
2238
|
-
|
|
2181
|
+
_d.label = 9;
|
|
2182
|
+
case 9: return [2];
|
|
2239
2183
|
}
|
|
2240
2184
|
});
|
|
2241
2185
|
}); };
|
|
@@ -2247,32 +2191,29 @@ export var deserializeAws_restJson1ListCoverageStatisticsCommand = function (out
|
|
|
2247
2191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2248
2192
|
return [2, deserializeAws_restJson1ListCoverageStatisticsCommandError(output, context)];
|
|
2249
2193
|
}
|
|
2250
|
-
contents = {
|
|
2194
|
+
contents = map({
|
|
2251
2195
|
$metadata: deserializeMetadata(output),
|
|
2252
|
-
|
|
2253
|
-
nextToken: undefined,
|
|
2254
|
-
totalCounts: undefined,
|
|
2255
|
-
};
|
|
2196
|
+
});
|
|
2256
2197
|
_a = __expectNonNull;
|
|
2257
2198
|
_b = __expectObject;
|
|
2258
2199
|
return [4, parseBody(output.body, context)];
|
|
2259
2200
|
case 1:
|
|
2260
2201
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2261
|
-
if (data.countsByGroup
|
|
2202
|
+
if (data.countsByGroup != null) {
|
|
2262
2203
|
contents.countsByGroup = deserializeAws_restJson1CountsList(data.countsByGroup, context);
|
|
2263
2204
|
}
|
|
2264
|
-
if (data.nextToken
|
|
2205
|
+
if (data.nextToken != null) {
|
|
2265
2206
|
contents.nextToken = __expectString(data.nextToken);
|
|
2266
2207
|
}
|
|
2267
|
-
if (data.totalCounts
|
|
2208
|
+
if (data.totalCounts != null) {
|
|
2268
2209
|
contents.totalCounts = __expectLong(data.totalCounts);
|
|
2269
2210
|
}
|
|
2270
|
-
return [2,
|
|
2211
|
+
return [2, contents];
|
|
2271
2212
|
}
|
|
2272
2213
|
});
|
|
2273
2214
|
}); };
|
|
2274
2215
|
var deserializeAws_restJson1ListCoverageStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2275
|
-
var parsedOutput, _a,
|
|
2216
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2276
2217
|
var _c;
|
|
2277
2218
|
return __generator(this, function (_d) {
|
|
2278
2219
|
switch (_d.label) {
|
|
@@ -2301,14 +2242,14 @@ var deserializeAws_restJson1ListCoverageStatisticsCommandError = function (outpu
|
|
|
2301
2242
|
case 7: throw _d.sent();
|
|
2302
2243
|
case 8:
|
|
2303
2244
|
parsedBody = parsedOutput.body;
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
$metadata: $metadata,
|
|
2245
|
+
throwDefaultError({
|
|
2246
|
+
output: output,
|
|
2247
|
+
parsedBody: parsedBody,
|
|
2248
|
+
exceptionCtor: __BaseException,
|
|
2249
|
+
errorCode: errorCode,
|
|
2310
2250
|
});
|
|
2311
|
-
|
|
2251
|
+
_d.label = 9;
|
|
2252
|
+
case 9: return [2];
|
|
2312
2253
|
}
|
|
2313
2254
|
});
|
|
2314
2255
|
}); };
|
|
@@ -2320,28 +2261,26 @@ export var deserializeAws_restJson1ListDelegatedAdminAccountsCommand = function
|
|
|
2320
2261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2321
2262
|
return [2, deserializeAws_restJson1ListDelegatedAdminAccountsCommandError(output, context)];
|
|
2322
2263
|
}
|
|
2323
|
-
contents = {
|
|
2264
|
+
contents = map({
|
|
2324
2265
|
$metadata: deserializeMetadata(output),
|
|
2325
|
-
|
|
2326
|
-
nextToken: undefined,
|
|
2327
|
-
};
|
|
2266
|
+
});
|
|
2328
2267
|
_a = __expectNonNull;
|
|
2329
2268
|
_b = __expectObject;
|
|
2330
2269
|
return [4, parseBody(output.body, context)];
|
|
2331
2270
|
case 1:
|
|
2332
2271
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2333
|
-
if (data.delegatedAdminAccounts
|
|
2272
|
+
if (data.delegatedAdminAccounts != null) {
|
|
2334
2273
|
contents.delegatedAdminAccounts = deserializeAws_restJson1DelegatedAdminAccountList(data.delegatedAdminAccounts, context);
|
|
2335
2274
|
}
|
|
2336
|
-
if (data.nextToken
|
|
2275
|
+
if (data.nextToken != null) {
|
|
2337
2276
|
contents.nextToken = __expectString(data.nextToken);
|
|
2338
2277
|
}
|
|
2339
|
-
return [2,
|
|
2278
|
+
return [2, contents];
|
|
2340
2279
|
}
|
|
2341
2280
|
});
|
|
2342
2281
|
}); };
|
|
2343
2282
|
var deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2344
|
-
var parsedOutput, _a,
|
|
2283
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2345
2284
|
var _c;
|
|
2346
2285
|
return __generator(this, function (_d) {
|
|
2347
2286
|
switch (_d.label) {
|
|
@@ -2374,14 +2313,14 @@ var deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = function (o
|
|
|
2374
2313
|
case 9: throw _d.sent();
|
|
2375
2314
|
case 10:
|
|
2376
2315
|
parsedBody = parsedOutput.body;
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
$metadata: $metadata,
|
|
2316
|
+
throwDefaultError({
|
|
2317
|
+
output: output,
|
|
2318
|
+
parsedBody: parsedBody,
|
|
2319
|
+
exceptionCtor: __BaseException,
|
|
2320
|
+
errorCode: errorCode,
|
|
2383
2321
|
});
|
|
2384
|
-
|
|
2322
|
+
_d.label = 11;
|
|
2323
|
+
case 11: return [2];
|
|
2385
2324
|
}
|
|
2386
2325
|
});
|
|
2387
2326
|
}); };
|
|
@@ -2393,28 +2332,26 @@ export var deserializeAws_restJson1ListFiltersCommand = function (output, contex
|
|
|
2393
2332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2394
2333
|
return [2, deserializeAws_restJson1ListFiltersCommandError(output, context)];
|
|
2395
2334
|
}
|
|
2396
|
-
contents = {
|
|
2335
|
+
contents = map({
|
|
2397
2336
|
$metadata: deserializeMetadata(output),
|
|
2398
|
-
|
|
2399
|
-
nextToken: undefined,
|
|
2400
|
-
};
|
|
2337
|
+
});
|
|
2401
2338
|
_a = __expectNonNull;
|
|
2402
2339
|
_b = __expectObject;
|
|
2403
2340
|
return [4, parseBody(output.body, context)];
|
|
2404
2341
|
case 1:
|
|
2405
2342
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2406
|
-
if (data.filters
|
|
2343
|
+
if (data.filters != null) {
|
|
2407
2344
|
contents.filters = deserializeAws_restJson1FilterList(data.filters, context);
|
|
2408
2345
|
}
|
|
2409
|
-
if (data.nextToken
|
|
2346
|
+
if (data.nextToken != null) {
|
|
2410
2347
|
contents.nextToken = __expectString(data.nextToken);
|
|
2411
2348
|
}
|
|
2412
|
-
return [2,
|
|
2349
|
+
return [2, contents];
|
|
2413
2350
|
}
|
|
2414
2351
|
});
|
|
2415
2352
|
}); };
|
|
2416
2353
|
var deserializeAws_restJson1ListFiltersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2417
|
-
var parsedOutput, _a,
|
|
2354
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2418
2355
|
var _c;
|
|
2419
2356
|
return __generator(this, function (_d) {
|
|
2420
2357
|
switch (_d.label) {
|
|
@@ -2447,14 +2384,14 @@ var deserializeAws_restJson1ListFiltersCommandError = function (output, context)
|
|
|
2447
2384
|
case 9: throw _d.sent();
|
|
2448
2385
|
case 10:
|
|
2449
2386
|
parsedBody = parsedOutput.body;
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
$metadata: $metadata,
|
|
2387
|
+
throwDefaultError({
|
|
2388
|
+
output: output,
|
|
2389
|
+
parsedBody: parsedBody,
|
|
2390
|
+
exceptionCtor: __BaseException,
|
|
2391
|
+
errorCode: errorCode,
|
|
2456
2392
|
});
|
|
2457
|
-
|
|
2393
|
+
_d.label = 11;
|
|
2394
|
+
case 11: return [2];
|
|
2458
2395
|
}
|
|
2459
2396
|
});
|
|
2460
2397
|
}); };
|
|
@@ -2466,32 +2403,29 @@ export var deserializeAws_restJson1ListFindingAggregationsCommand = function (ou
|
|
|
2466
2403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2467
2404
|
return [2, deserializeAws_restJson1ListFindingAggregationsCommandError(output, context)];
|
|
2468
2405
|
}
|
|
2469
|
-
contents = {
|
|
2406
|
+
contents = map({
|
|
2470
2407
|
$metadata: deserializeMetadata(output),
|
|
2471
|
-
|
|
2472
|
-
nextToken: undefined,
|
|
2473
|
-
responses: undefined,
|
|
2474
|
-
};
|
|
2408
|
+
});
|
|
2475
2409
|
_a = __expectNonNull;
|
|
2476
2410
|
_b = __expectObject;
|
|
2477
2411
|
return [4, parseBody(output.body, context)];
|
|
2478
2412
|
case 1:
|
|
2479
2413
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2480
|
-
if (data.aggregationType
|
|
2414
|
+
if (data.aggregationType != null) {
|
|
2481
2415
|
contents.aggregationType = __expectString(data.aggregationType);
|
|
2482
2416
|
}
|
|
2483
|
-
if (data.nextToken
|
|
2417
|
+
if (data.nextToken != null) {
|
|
2484
2418
|
contents.nextToken = __expectString(data.nextToken);
|
|
2485
2419
|
}
|
|
2486
|
-
if (data.responses
|
|
2420
|
+
if (data.responses != null) {
|
|
2487
2421
|
contents.responses = deserializeAws_restJson1AggregationResponseList(data.responses, context);
|
|
2488
2422
|
}
|
|
2489
|
-
return [2,
|
|
2423
|
+
return [2, contents];
|
|
2490
2424
|
}
|
|
2491
2425
|
});
|
|
2492
2426
|
}); };
|
|
2493
2427
|
var deserializeAws_restJson1ListFindingAggregationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2494
|
-
var parsedOutput, _a,
|
|
2428
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2495
2429
|
var _c;
|
|
2496
2430
|
return __generator(this, function (_d) {
|
|
2497
2431
|
switch (_d.label) {
|
|
@@ -2520,14 +2454,14 @@ var deserializeAws_restJson1ListFindingAggregationsCommandError = function (outp
|
|
|
2520
2454
|
case 7: throw _d.sent();
|
|
2521
2455
|
case 8:
|
|
2522
2456
|
parsedBody = parsedOutput.body;
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
$metadata: $metadata,
|
|
2457
|
+
throwDefaultError({
|
|
2458
|
+
output: output,
|
|
2459
|
+
parsedBody: parsedBody,
|
|
2460
|
+
exceptionCtor: __BaseException,
|
|
2461
|
+
errorCode: errorCode,
|
|
2529
2462
|
});
|
|
2530
|
-
|
|
2463
|
+
_d.label = 9;
|
|
2464
|
+
case 9: return [2];
|
|
2531
2465
|
}
|
|
2532
2466
|
});
|
|
2533
2467
|
}); };
|
|
@@ -2539,28 +2473,26 @@ export var deserializeAws_restJson1ListFindingsCommand = function (output, conte
|
|
|
2539
2473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2540
2474
|
return [2, deserializeAws_restJson1ListFindingsCommandError(output, context)];
|
|
2541
2475
|
}
|
|
2542
|
-
contents = {
|
|
2476
|
+
contents = map({
|
|
2543
2477
|
$metadata: deserializeMetadata(output),
|
|
2544
|
-
|
|
2545
|
-
nextToken: undefined,
|
|
2546
|
-
};
|
|
2478
|
+
});
|
|
2547
2479
|
_a = __expectNonNull;
|
|
2548
2480
|
_b = __expectObject;
|
|
2549
2481
|
return [4, parseBody(output.body, context)];
|
|
2550
2482
|
case 1:
|
|
2551
2483
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2552
|
-
if (data.findings
|
|
2484
|
+
if (data.findings != null) {
|
|
2553
2485
|
contents.findings = deserializeAws_restJson1FindingList(data.findings, context);
|
|
2554
2486
|
}
|
|
2555
|
-
if (data.nextToken
|
|
2487
|
+
if (data.nextToken != null) {
|
|
2556
2488
|
contents.nextToken = __expectString(data.nextToken);
|
|
2557
2489
|
}
|
|
2558
|
-
return [2,
|
|
2490
|
+
return [2, contents];
|
|
2559
2491
|
}
|
|
2560
2492
|
});
|
|
2561
2493
|
}); };
|
|
2562
2494
|
var deserializeAws_restJson1ListFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2563
|
-
var parsedOutput, _a,
|
|
2495
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2564
2496
|
var _c;
|
|
2565
2497
|
return __generator(this, function (_d) {
|
|
2566
2498
|
switch (_d.label) {
|
|
@@ -2589,14 +2521,14 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
|
|
|
2589
2521
|
case 7: throw _d.sent();
|
|
2590
2522
|
case 8:
|
|
2591
2523
|
parsedBody = parsedOutput.body;
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
$metadata: $metadata,
|
|
2524
|
+
throwDefaultError({
|
|
2525
|
+
output: output,
|
|
2526
|
+
parsedBody: parsedBody,
|
|
2527
|
+
exceptionCtor: __BaseException,
|
|
2528
|
+
errorCode: errorCode,
|
|
2598
2529
|
});
|
|
2599
|
-
|
|
2530
|
+
_d.label = 9;
|
|
2531
|
+
case 9: return [2];
|
|
2600
2532
|
}
|
|
2601
2533
|
});
|
|
2602
2534
|
}); };
|
|
@@ -2608,28 +2540,26 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
2608
2540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2609
2541
|
return [2, deserializeAws_restJson1ListMembersCommandError(output, context)];
|
|
2610
2542
|
}
|
|
2611
|
-
contents = {
|
|
2543
|
+
contents = map({
|
|
2612
2544
|
$metadata: deserializeMetadata(output),
|
|
2613
|
-
|
|
2614
|
-
nextToken: undefined,
|
|
2615
|
-
};
|
|
2545
|
+
});
|
|
2616
2546
|
_a = __expectNonNull;
|
|
2617
2547
|
_b = __expectObject;
|
|
2618
2548
|
return [4, parseBody(output.body, context)];
|
|
2619
2549
|
case 1:
|
|
2620
2550
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2621
|
-
if (data.members
|
|
2551
|
+
if (data.members != null) {
|
|
2622
2552
|
contents.members = deserializeAws_restJson1MemberList(data.members, context);
|
|
2623
2553
|
}
|
|
2624
|
-
if (data.nextToken
|
|
2554
|
+
if (data.nextToken != null) {
|
|
2625
2555
|
contents.nextToken = __expectString(data.nextToken);
|
|
2626
2556
|
}
|
|
2627
|
-
return [2,
|
|
2557
|
+
return [2, contents];
|
|
2628
2558
|
}
|
|
2629
2559
|
});
|
|
2630
2560
|
}); };
|
|
2631
2561
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2632
|
-
var parsedOutput, _a,
|
|
2562
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2633
2563
|
var _c;
|
|
2634
2564
|
return __generator(this, function (_d) {
|
|
2635
2565
|
switch (_d.label) {
|
|
@@ -2662,14 +2592,14 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
2662
2592
|
case 9: throw _d.sent();
|
|
2663
2593
|
case 10:
|
|
2664
2594
|
parsedBody = parsedOutput.body;
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
$metadata: $metadata,
|
|
2595
|
+
throwDefaultError({
|
|
2596
|
+
output: output,
|
|
2597
|
+
parsedBody: parsedBody,
|
|
2598
|
+
exceptionCtor: __BaseException,
|
|
2599
|
+
errorCode: errorCode,
|
|
2671
2600
|
});
|
|
2672
|
-
|
|
2601
|
+
_d.label = 11;
|
|
2602
|
+
case 11: return [2];
|
|
2673
2603
|
}
|
|
2674
2604
|
});
|
|
2675
2605
|
}); };
|
|
@@ -2681,24 +2611,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2681
2611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2682
2612
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2683
2613
|
}
|
|
2684
|
-
contents = {
|
|
2614
|
+
contents = map({
|
|
2685
2615
|
$metadata: deserializeMetadata(output),
|
|
2686
|
-
|
|
2687
|
-
};
|
|
2616
|
+
});
|
|
2688
2617
|
_a = __expectNonNull;
|
|
2689
2618
|
_b = __expectObject;
|
|
2690
2619
|
return [4, parseBody(output.body, context)];
|
|
2691
2620
|
case 1:
|
|
2692
2621
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2693
|
-
if (data.tags
|
|
2622
|
+
if (data.tags != null) {
|
|
2694
2623
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2695
2624
|
}
|
|
2696
|
-
return [2,
|
|
2625
|
+
return [2, contents];
|
|
2697
2626
|
}
|
|
2698
2627
|
});
|
|
2699
2628
|
}); };
|
|
2700
2629
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2701
|
-
var parsedOutput, _a,
|
|
2630
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2702
2631
|
var _c;
|
|
2703
2632
|
return __generator(this, function (_d) {
|
|
2704
2633
|
switch (_d.label) {
|
|
@@ -2731,14 +2660,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2731
2660
|
case 9: throw _d.sent();
|
|
2732
2661
|
case 10:
|
|
2733
2662
|
parsedBody = parsedOutput.body;
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
$metadata: $metadata,
|
|
2663
|
+
throwDefaultError({
|
|
2664
|
+
output: output,
|
|
2665
|
+
parsedBody: parsedBody,
|
|
2666
|
+
exceptionCtor: __BaseException,
|
|
2667
|
+
errorCode: errorCode,
|
|
2740
2668
|
});
|
|
2741
|
-
|
|
2669
|
+
_d.label = 11;
|
|
2670
|
+
case 11: return [2];
|
|
2742
2671
|
}
|
|
2743
2672
|
});
|
|
2744
2673
|
}); };
|
|
@@ -2750,28 +2679,26 @@ export var deserializeAws_restJson1ListUsageTotalsCommand = function (output, co
|
|
|
2750
2679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2751
2680
|
return [2, deserializeAws_restJson1ListUsageTotalsCommandError(output, context)];
|
|
2752
2681
|
}
|
|
2753
|
-
contents = {
|
|
2682
|
+
contents = map({
|
|
2754
2683
|
$metadata: deserializeMetadata(output),
|
|
2755
|
-
|
|
2756
|
-
totals: undefined,
|
|
2757
|
-
};
|
|
2684
|
+
});
|
|
2758
2685
|
_a = __expectNonNull;
|
|
2759
2686
|
_b = __expectObject;
|
|
2760
2687
|
return [4, parseBody(output.body, context)];
|
|
2761
2688
|
case 1:
|
|
2762
2689
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2763
|
-
if (data.nextToken
|
|
2690
|
+
if (data.nextToken != null) {
|
|
2764
2691
|
contents.nextToken = __expectString(data.nextToken);
|
|
2765
2692
|
}
|
|
2766
|
-
if (data.totals
|
|
2693
|
+
if (data.totals != null) {
|
|
2767
2694
|
contents.totals = deserializeAws_restJson1UsageTotalList(data.totals, context);
|
|
2768
2695
|
}
|
|
2769
|
-
return [2,
|
|
2696
|
+
return [2, contents];
|
|
2770
2697
|
}
|
|
2771
2698
|
});
|
|
2772
2699
|
}); };
|
|
2773
2700
|
var deserializeAws_restJson1ListUsageTotalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2774
|
-
var parsedOutput, _a,
|
|
2701
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2775
2702
|
var _c;
|
|
2776
2703
|
return __generator(this, function (_d) {
|
|
2777
2704
|
switch (_d.label) {
|
|
@@ -2804,14 +2731,14 @@ var deserializeAws_restJson1ListUsageTotalsCommandError = function (output, cont
|
|
|
2804
2731
|
case 9: throw _d.sent();
|
|
2805
2732
|
case 10:
|
|
2806
2733
|
parsedBody = parsedOutput.body;
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
$metadata: $metadata,
|
|
2734
|
+
throwDefaultError({
|
|
2735
|
+
output: output,
|
|
2736
|
+
parsedBody: parsedBody,
|
|
2737
|
+
exceptionCtor: __BaseException,
|
|
2738
|
+
errorCode: errorCode,
|
|
2813
2739
|
});
|
|
2814
|
-
|
|
2740
|
+
_d.label = 11;
|
|
2741
|
+
case 11: return [2];
|
|
2815
2742
|
}
|
|
2816
2743
|
});
|
|
2817
2744
|
}); };
|
|
@@ -2823,18 +2750,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2823
2750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2824
2751
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2825
2752
|
}
|
|
2826
|
-
contents = {
|
|
2753
|
+
contents = map({
|
|
2827
2754
|
$metadata: deserializeMetadata(output),
|
|
2828
|
-
};
|
|
2755
|
+
});
|
|
2829
2756
|
return [4, collectBody(output.body, context)];
|
|
2830
2757
|
case 1:
|
|
2831
2758
|
_a.sent();
|
|
2832
|
-
return [2,
|
|
2759
|
+
return [2, contents];
|
|
2833
2760
|
}
|
|
2834
2761
|
});
|
|
2835
2762
|
}); };
|
|
2836
2763
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2837
|
-
var parsedOutput, _a,
|
|
2764
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2838
2765
|
var _c;
|
|
2839
2766
|
return __generator(this, function (_d) {
|
|
2840
2767
|
switch (_d.label) {
|
|
@@ -2871,14 +2798,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2871
2798
|
case 11: throw _d.sent();
|
|
2872
2799
|
case 12:
|
|
2873
2800
|
parsedBody = parsedOutput.body;
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
$metadata: $metadata,
|
|
2801
|
+
throwDefaultError({
|
|
2802
|
+
output: output,
|
|
2803
|
+
parsedBody: parsedBody,
|
|
2804
|
+
exceptionCtor: __BaseException,
|
|
2805
|
+
errorCode: errorCode,
|
|
2880
2806
|
});
|
|
2881
|
-
|
|
2807
|
+
_d.label = 13;
|
|
2808
|
+
case 13: return [2];
|
|
2882
2809
|
}
|
|
2883
2810
|
});
|
|
2884
2811
|
}); };
|
|
@@ -2890,18 +2817,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2890
2817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2891
2818
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2892
2819
|
}
|
|
2893
|
-
contents = {
|
|
2820
|
+
contents = map({
|
|
2894
2821
|
$metadata: deserializeMetadata(output),
|
|
2895
|
-
};
|
|
2822
|
+
});
|
|
2896
2823
|
return [4, collectBody(output.body, context)];
|
|
2897
2824
|
case 1:
|
|
2898
2825
|
_a.sent();
|
|
2899
|
-
return [2,
|
|
2826
|
+
return [2, contents];
|
|
2900
2827
|
}
|
|
2901
2828
|
});
|
|
2902
2829
|
}); };
|
|
2903
2830
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2904
|
-
var parsedOutput, _a,
|
|
2831
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2905
2832
|
var _c;
|
|
2906
2833
|
return __generator(this, function (_d) {
|
|
2907
2834
|
switch (_d.label) {
|
|
@@ -2934,14 +2861,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2934
2861
|
case 9: throw _d.sent();
|
|
2935
2862
|
case 10:
|
|
2936
2863
|
parsedBody = parsedOutput.body;
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
$metadata: $metadata,
|
|
2864
|
+
throwDefaultError({
|
|
2865
|
+
output: output,
|
|
2866
|
+
parsedBody: parsedBody,
|
|
2867
|
+
exceptionCtor: __BaseException,
|
|
2868
|
+
errorCode: errorCode,
|
|
2943
2869
|
});
|
|
2944
|
-
|
|
2870
|
+
_d.label = 11;
|
|
2871
|
+
case 11: return [2];
|
|
2945
2872
|
}
|
|
2946
2873
|
});
|
|
2947
2874
|
}); };
|
|
@@ -2953,18 +2880,18 @@ export var deserializeAws_restJson1UpdateConfigurationCommand = function (output
|
|
|
2953
2880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2954
2881
|
return [2, deserializeAws_restJson1UpdateConfigurationCommandError(output, context)];
|
|
2955
2882
|
}
|
|
2956
|
-
contents = {
|
|
2883
|
+
contents = map({
|
|
2957
2884
|
$metadata: deserializeMetadata(output),
|
|
2958
|
-
};
|
|
2885
|
+
});
|
|
2959
2886
|
return [4, collectBody(output.body, context)];
|
|
2960
2887
|
case 1:
|
|
2961
2888
|
_a.sent();
|
|
2962
|
-
return [2,
|
|
2889
|
+
return [2, contents];
|
|
2963
2890
|
}
|
|
2964
2891
|
});
|
|
2965
2892
|
}); };
|
|
2966
2893
|
var deserializeAws_restJson1UpdateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2967
|
-
var parsedOutput, _a,
|
|
2894
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2968
2895
|
var _c;
|
|
2969
2896
|
return __generator(this, function (_d) {
|
|
2970
2897
|
switch (_d.label) {
|
|
@@ -2997,14 +2924,14 @@ var deserializeAws_restJson1UpdateConfigurationCommandError = function (output,
|
|
|
2997
2924
|
case 9: throw _d.sent();
|
|
2998
2925
|
case 10:
|
|
2999
2926
|
parsedBody = parsedOutput.body;
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
$metadata: $metadata,
|
|
2927
|
+
throwDefaultError({
|
|
2928
|
+
output: output,
|
|
2929
|
+
parsedBody: parsedBody,
|
|
2930
|
+
exceptionCtor: __BaseException,
|
|
2931
|
+
errorCode: errorCode,
|
|
3006
2932
|
});
|
|
3007
|
-
|
|
2933
|
+
_d.label = 11;
|
|
2934
|
+
case 11: return [2];
|
|
3008
2935
|
}
|
|
3009
2936
|
});
|
|
3010
2937
|
}); };
|
|
@@ -3016,24 +2943,23 @@ export var deserializeAws_restJson1UpdateFilterCommand = function (output, conte
|
|
|
3016
2943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3017
2944
|
return [2, deserializeAws_restJson1UpdateFilterCommandError(output, context)];
|
|
3018
2945
|
}
|
|
3019
|
-
contents = {
|
|
2946
|
+
contents = map({
|
|
3020
2947
|
$metadata: deserializeMetadata(output),
|
|
3021
|
-
|
|
3022
|
-
};
|
|
2948
|
+
});
|
|
3023
2949
|
_a = __expectNonNull;
|
|
3024
2950
|
_b = __expectObject;
|
|
3025
2951
|
return [4, parseBody(output.body, context)];
|
|
3026
2952
|
case 1:
|
|
3027
2953
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3028
|
-
if (data.arn
|
|
2954
|
+
if (data.arn != null) {
|
|
3029
2955
|
contents.arn = __expectString(data.arn);
|
|
3030
2956
|
}
|
|
3031
|
-
return [2,
|
|
2957
|
+
return [2, contents];
|
|
3032
2958
|
}
|
|
3033
2959
|
});
|
|
3034
2960
|
}); };
|
|
3035
2961
|
var deserializeAws_restJson1UpdateFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3036
|
-
var parsedOutput, _a,
|
|
2962
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3037
2963
|
var _c;
|
|
3038
2964
|
return __generator(this, function (_d) {
|
|
3039
2965
|
switch (_d.label) {
|
|
@@ -3070,14 +2996,14 @@ var deserializeAws_restJson1UpdateFilterCommandError = function (output, context
|
|
|
3070
2996
|
case 11: throw _d.sent();
|
|
3071
2997
|
case 12:
|
|
3072
2998
|
parsedBody = parsedOutput.body;
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
$metadata: $metadata,
|
|
2999
|
+
throwDefaultError({
|
|
3000
|
+
output: output,
|
|
3001
|
+
parsedBody: parsedBody,
|
|
3002
|
+
exceptionCtor: __BaseException,
|
|
3003
|
+
errorCode: errorCode,
|
|
3079
3004
|
});
|
|
3080
|
-
|
|
3005
|
+
_d.label = 13;
|
|
3006
|
+
case 13: return [2];
|
|
3081
3007
|
}
|
|
3082
3008
|
});
|
|
3083
3009
|
}); };
|
|
@@ -3089,24 +3015,23 @@ export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = func
|
|
|
3089
3015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3090
3016
|
return [2, deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context)];
|
|
3091
3017
|
}
|
|
3092
|
-
contents = {
|
|
3018
|
+
contents = map({
|
|
3093
3019
|
$metadata: deserializeMetadata(output),
|
|
3094
|
-
|
|
3095
|
-
};
|
|
3020
|
+
});
|
|
3096
3021
|
_a = __expectNonNull;
|
|
3097
3022
|
_b = __expectObject;
|
|
3098
3023
|
return [4, parseBody(output.body, context)];
|
|
3099
3024
|
case 1:
|
|
3100
3025
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3101
|
-
if (data.autoEnable
|
|
3026
|
+
if (data.autoEnable != null) {
|
|
3102
3027
|
contents.autoEnable = deserializeAws_restJson1AutoEnable(data.autoEnable, context);
|
|
3103
3028
|
}
|
|
3104
|
-
return [2,
|
|
3029
|
+
return [2, contents];
|
|
3105
3030
|
}
|
|
3106
3031
|
});
|
|
3107
3032
|
}); };
|
|
3108
3033
|
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3109
|
-
var parsedOutput, _a,
|
|
3034
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3110
3035
|
var _c;
|
|
3111
3036
|
return __generator(this, function (_d) {
|
|
3112
3037
|
switch (_d.label) {
|
|
@@ -3139,23 +3064,24 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
3139
3064
|
case 9: throw _d.sent();
|
|
3140
3065
|
case 10:
|
|
3141
3066
|
parsedBody = parsedOutput.body;
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
$metadata: $metadata,
|
|
3067
|
+
throwDefaultError({
|
|
3068
|
+
output: output,
|
|
3069
|
+
parsedBody: parsedBody,
|
|
3070
|
+
exceptionCtor: __BaseException,
|
|
3071
|
+
errorCode: errorCode,
|
|
3148
3072
|
});
|
|
3149
|
-
|
|
3073
|
+
_d.label = 11;
|
|
3074
|
+
case 11: return [2];
|
|
3150
3075
|
}
|
|
3151
3076
|
});
|
|
3152
3077
|
}); };
|
|
3078
|
+
var map = __map;
|
|
3153
3079
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3154
3080
|
var contents, data, exception;
|
|
3155
3081
|
return __generator(this, function (_a) {
|
|
3156
|
-
contents = {};
|
|
3082
|
+
contents = map({});
|
|
3157
3083
|
data = parsedOutput.body;
|
|
3158
|
-
if (data.message
|
|
3084
|
+
if (data.message != null) {
|
|
3159
3085
|
contents.message = __expectString(data.message);
|
|
3160
3086
|
}
|
|
3161
3087
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3165,9 +3091,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3165
3091
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3166
3092
|
var contents, data, exception;
|
|
3167
3093
|
return __generator(this, function (_a) {
|
|
3168
|
-
contents = {};
|
|
3094
|
+
contents = map({});
|
|
3169
3095
|
data = parsedOutput.body;
|
|
3170
|
-
if (data.message
|
|
3096
|
+
if (data.message != null) {
|
|
3171
3097
|
contents.message = __expectString(data.message);
|
|
3172
3098
|
}
|
|
3173
3099
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3177,15 +3103,15 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
3177
3103
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3178
3104
|
var contents, data, exception;
|
|
3179
3105
|
return __generator(this, function (_a) {
|
|
3180
|
-
contents = {};
|
|
3106
|
+
contents = map({});
|
|
3181
3107
|
data = parsedOutput.body;
|
|
3182
|
-
if (data.message
|
|
3108
|
+
if (data.message != null) {
|
|
3183
3109
|
contents.message = __expectString(data.message);
|
|
3184
3110
|
}
|
|
3185
|
-
if (data.resourceId
|
|
3111
|
+
if (data.resourceId != null) {
|
|
3186
3112
|
contents.resourceId = __expectString(data.resourceId);
|
|
3187
3113
|
}
|
|
3188
|
-
if (data.resourceType
|
|
3114
|
+
if (data.resourceType != null) {
|
|
3189
3115
|
contents.resourceType = __expectString(data.resourceType);
|
|
3190
3116
|
}
|
|
3191
3117
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3195,12 +3121,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3195
3121
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3196
3122
|
var contents, data, exception;
|
|
3197
3123
|
return __generator(this, function (_a) {
|
|
3198
|
-
contents = {
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3124
|
+
contents = map({
|
|
3125
|
+
retryAfterSeconds: [
|
|
3126
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
3127
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
3128
|
+
],
|
|
3129
|
+
});
|
|
3202
3130
|
data = parsedOutput.body;
|
|
3203
|
-
if (data.message
|
|
3131
|
+
if (data.message != null) {
|
|
3204
3132
|
contents.message = __expectString(data.message);
|
|
3205
3133
|
}
|
|
3206
3134
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3210,9 +3138,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3210
3138
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3211
3139
|
var contents, data, exception;
|
|
3212
3140
|
return __generator(this, function (_a) {
|
|
3213
|
-
contents = {};
|
|
3141
|
+
contents = map({});
|
|
3214
3142
|
data = parsedOutput.body;
|
|
3215
|
-
if (data.message
|
|
3143
|
+
if (data.message != null) {
|
|
3216
3144
|
contents.message = __expectString(data.message);
|
|
3217
3145
|
}
|
|
3218
3146
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3222,12 +3150,12 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3222
3150
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3223
3151
|
var contents, data, exception;
|
|
3224
3152
|
return __generator(this, function (_a) {
|
|
3225
|
-
contents = {};
|
|
3153
|
+
contents = map({});
|
|
3226
3154
|
data = parsedOutput.body;
|
|
3227
|
-
if (data.message
|
|
3155
|
+
if (data.message != null) {
|
|
3228
3156
|
contents.message = __expectString(data.message);
|
|
3229
3157
|
}
|
|
3230
|
-
if (data.resourceId
|
|
3158
|
+
if (data.resourceId != null) {
|
|
3231
3159
|
contents.resourceId = __expectString(data.resourceId);
|
|
3232
3160
|
}
|
|
3233
3161
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3237,9 +3165,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3237
3165
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3238
3166
|
var contents, data, exception;
|
|
3239
3167
|
return __generator(this, function (_a) {
|
|
3240
|
-
contents = {};
|
|
3168
|
+
contents = map({});
|
|
3241
3169
|
data = parsedOutput.body;
|
|
3242
|
-
if (data.message
|
|
3170
|
+
if (data.message != null) {
|
|
3243
3171
|
contents.message = __expectString(data.message);
|
|
3244
3172
|
}
|
|
3245
3173
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3249,15 +3177,15 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3249
3177
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3250
3178
|
var contents, data, exception;
|
|
3251
3179
|
return __generator(this, function (_a) {
|
|
3252
|
-
contents = {};
|
|
3180
|
+
contents = map({});
|
|
3253
3181
|
data = parsedOutput.body;
|
|
3254
|
-
if (data.fields
|
|
3182
|
+
if (data.fields != null) {
|
|
3255
3183
|
contents.fields = deserializeAws_restJson1ValidationExceptionFields(data.fields, context);
|
|
3256
3184
|
}
|
|
3257
|
-
if (data.message
|
|
3185
|
+
if (data.message != null) {
|
|
3258
3186
|
contents.message = __expectString(data.message);
|
|
3259
3187
|
}
|
|
3260
|
-
if (data.reason
|
|
3188
|
+
if (data.reason != null) {
|
|
3261
3189
|
contents.reason = __expectString(data.reason);
|
|
3262
3190
|
}
|
|
3263
3191
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3271,9 +3199,6 @@ var serializeAws_restJson1AccountIdSet = function (input, context) {
|
|
|
3271
3199
|
return input
|
|
3272
3200
|
.filter(function (e) { return e != null; })
|
|
3273
3201
|
.map(function (entry) {
|
|
3274
|
-
if (entry === null) {
|
|
3275
|
-
return null;
|
|
3276
|
-
}
|
|
3277
3202
|
return entry;
|
|
3278
3203
|
});
|
|
3279
3204
|
};
|
|
@@ -3344,9 +3269,6 @@ var serializeAws_restJson1CoverageMapFilterList = function (input, context) {
|
|
|
3344
3269
|
return input
|
|
3345
3270
|
.filter(function (e) { return e != null; })
|
|
3346
3271
|
.map(function (entry) {
|
|
3347
|
-
if (entry === null) {
|
|
3348
|
-
return null;
|
|
3349
|
-
}
|
|
3350
3272
|
return serializeAws_restJson1CoverageMapFilter(entry, context);
|
|
3351
3273
|
});
|
|
3352
3274
|
};
|
|
@@ -3357,9 +3279,6 @@ var serializeAws_restJson1CoverageStringFilterList = function (input, context) {
|
|
|
3357
3279
|
return input
|
|
3358
3280
|
.filter(function (e) { return e != null; })
|
|
3359
3281
|
.map(function (entry) {
|
|
3360
|
-
if (entry === null) {
|
|
3361
|
-
return null;
|
|
3362
|
-
}
|
|
3363
3282
|
return serializeAws_restJson1CoverageStringFilter(entry, context);
|
|
3364
3283
|
});
|
|
3365
3284
|
};
|
|
@@ -3370,9 +3289,6 @@ var serializeAws_restJson1DateFilterList = function (input, context) {
|
|
|
3370
3289
|
return input
|
|
3371
3290
|
.filter(function (e) { return e != null; })
|
|
3372
3291
|
.map(function (entry) {
|
|
3373
|
-
if (entry === null) {
|
|
3374
|
-
return null;
|
|
3375
|
-
}
|
|
3376
3292
|
return serializeAws_restJson1DateFilter(entry, context);
|
|
3377
3293
|
});
|
|
3378
3294
|
};
|
|
@@ -3383,9 +3299,6 @@ var serializeAws_restJson1DisableResourceTypeList = function (input, context) {
|
|
|
3383
3299
|
return input
|
|
3384
3300
|
.filter(function (e) { return e != null; })
|
|
3385
3301
|
.map(function (entry) {
|
|
3386
|
-
if (entry === null) {
|
|
3387
|
-
return null;
|
|
3388
|
-
}
|
|
3389
3302
|
return entry;
|
|
3390
3303
|
});
|
|
3391
3304
|
};
|
|
@@ -3405,9 +3318,6 @@ var serializeAws_restJson1EnableResourceTypeList = function (input, context) {
|
|
|
3405
3318
|
return input
|
|
3406
3319
|
.filter(function (e) { return e != null; })
|
|
3407
3320
|
.map(function (entry) {
|
|
3408
|
-
if (entry === null) {
|
|
3409
|
-
return null;
|
|
3410
|
-
}
|
|
3411
3321
|
return entry;
|
|
3412
3322
|
});
|
|
3413
3323
|
};
|
|
@@ -3415,9 +3325,6 @@ var serializeAws_restJson1FilterArnList = function (input, context) {
|
|
|
3415
3325
|
return input
|
|
3416
3326
|
.filter(function (e) { return e != null; })
|
|
3417
3327
|
.map(function (entry) {
|
|
3418
|
-
if (entry === null) {
|
|
3419
|
-
return null;
|
|
3420
|
-
}
|
|
3421
3328
|
return entry;
|
|
3422
3329
|
});
|
|
3423
3330
|
};
|
|
@@ -3493,9 +3400,6 @@ var serializeAws_restJson1MapFilterList = function (input, context) {
|
|
|
3493
3400
|
return input
|
|
3494
3401
|
.filter(function (e) { return e != null; })
|
|
3495
3402
|
.map(function (entry) {
|
|
3496
|
-
if (entry === null) {
|
|
3497
|
-
return null;
|
|
3498
|
-
}
|
|
3499
3403
|
return serializeAws_restJson1MapFilter(entry, context);
|
|
3500
3404
|
});
|
|
3501
3405
|
};
|
|
@@ -3503,9 +3407,6 @@ var serializeAws_restJson1MeteringAccountIdList = function (input, context) {
|
|
|
3503
3407
|
return input
|
|
3504
3408
|
.filter(function (e) { return e != null; })
|
|
3505
3409
|
.map(function (entry) {
|
|
3506
|
-
if (entry === null) {
|
|
3507
|
-
return null;
|
|
3508
|
-
}
|
|
3509
3410
|
return entry;
|
|
3510
3411
|
});
|
|
3511
3412
|
};
|
|
@@ -3516,9 +3417,6 @@ var serializeAws_restJson1NumberFilterList = function (input, context) {
|
|
|
3516
3417
|
return input
|
|
3517
3418
|
.filter(function (e) { return e != null; })
|
|
3518
3419
|
.map(function (entry) {
|
|
3519
|
-
if (entry === null) {
|
|
3520
|
-
return null;
|
|
3521
|
-
}
|
|
3522
3420
|
return serializeAws_restJson1NumberFilter(entry, context);
|
|
3523
3421
|
});
|
|
3524
3422
|
};
|
|
@@ -3538,9 +3436,6 @@ var serializeAws_restJson1PackageFilterList = function (input, context) {
|
|
|
3538
3436
|
return input
|
|
3539
3437
|
.filter(function (e) { return e != null; })
|
|
3540
3438
|
.map(function (entry) {
|
|
3541
|
-
if (entry === null) {
|
|
3542
|
-
return null;
|
|
3543
|
-
}
|
|
3544
3439
|
return serializeAws_restJson1PackageFilter(entry, context);
|
|
3545
3440
|
});
|
|
3546
3441
|
};
|
|
@@ -3551,9 +3446,6 @@ var serializeAws_restJson1PortRangeFilterList = function (input, context) {
|
|
|
3551
3446
|
return input
|
|
3552
3447
|
.filter(function (e) { return e != null; })
|
|
3553
3448
|
.map(function (entry) {
|
|
3554
|
-
if (entry === null) {
|
|
3555
|
-
return null;
|
|
3556
|
-
}
|
|
3557
3449
|
return serializeAws_restJson1PortRangeFilter(entry, context);
|
|
3558
3450
|
});
|
|
3559
3451
|
};
|
|
@@ -3572,9 +3464,6 @@ var serializeAws_restJson1StringFilterList = function (input, context) {
|
|
|
3572
3464
|
return input
|
|
3573
3465
|
.filter(function (e) { return e != null; })
|
|
3574
3466
|
.map(function (entry) {
|
|
3575
|
-
if (entry === null) {
|
|
3576
|
-
return null;
|
|
3577
|
-
}
|
|
3578
3467
|
return serializeAws_restJson1StringFilter(entry, context);
|
|
3579
3468
|
});
|
|
3580
3469
|
};
|
|
@@ -3597,9 +3486,6 @@ var serializeAws_restJson1UsageAccountIdList = function (input, context) {
|
|
|
3597
3486
|
return input
|
|
3598
3487
|
.filter(function (e) { return e != null; })
|
|
3599
3488
|
.map(function (entry) {
|
|
3600
|
-
if (entry === null) {
|
|
3601
|
-
return null;
|
|
3602
|
-
}
|
|
3603
3489
|
return entry;
|
|
3604
3490
|
});
|
|
3605
3491
|
};
|
|
@@ -3650,47 +3536,47 @@ var deserializeAws_restJson1AccountStateList = function (output, context) {
|
|
|
3650
3536
|
return retVal;
|
|
3651
3537
|
};
|
|
3652
3538
|
var deserializeAws_restJson1AggregationResponse = function (output, context) {
|
|
3653
|
-
if (output.accountAggregation
|
|
3539
|
+
if (output.accountAggregation != null) {
|
|
3654
3540
|
return {
|
|
3655
3541
|
accountAggregation: deserializeAws_restJson1AccountAggregationResponse(output.accountAggregation, context),
|
|
3656
3542
|
};
|
|
3657
3543
|
}
|
|
3658
|
-
if (output.amiAggregation
|
|
3544
|
+
if (output.amiAggregation != null) {
|
|
3659
3545
|
return {
|
|
3660
3546
|
amiAggregation: deserializeAws_restJson1AmiAggregationResponse(output.amiAggregation, context),
|
|
3661
3547
|
};
|
|
3662
3548
|
}
|
|
3663
|
-
if (output.awsEcrContainerAggregation
|
|
3549
|
+
if (output.awsEcrContainerAggregation != null) {
|
|
3664
3550
|
return {
|
|
3665
3551
|
awsEcrContainerAggregation: deserializeAws_restJson1AwsEcrContainerAggregationResponse(output.awsEcrContainerAggregation, context),
|
|
3666
3552
|
};
|
|
3667
3553
|
}
|
|
3668
|
-
if (output.ec2InstanceAggregation
|
|
3554
|
+
if (output.ec2InstanceAggregation != null) {
|
|
3669
3555
|
return {
|
|
3670
3556
|
ec2InstanceAggregation: deserializeAws_restJson1Ec2InstanceAggregationResponse(output.ec2InstanceAggregation, context),
|
|
3671
3557
|
};
|
|
3672
3558
|
}
|
|
3673
|
-
if (output.findingTypeAggregation
|
|
3559
|
+
if (output.findingTypeAggregation != null) {
|
|
3674
3560
|
return {
|
|
3675
3561
|
findingTypeAggregation: deserializeAws_restJson1FindingTypeAggregationResponse(output.findingTypeAggregation, context),
|
|
3676
3562
|
};
|
|
3677
3563
|
}
|
|
3678
|
-
if (output.imageLayerAggregation
|
|
3564
|
+
if (output.imageLayerAggregation != null) {
|
|
3679
3565
|
return {
|
|
3680
3566
|
imageLayerAggregation: deserializeAws_restJson1ImageLayerAggregationResponse(output.imageLayerAggregation, context),
|
|
3681
3567
|
};
|
|
3682
3568
|
}
|
|
3683
|
-
if (output.packageAggregation
|
|
3569
|
+
if (output.packageAggregation != null) {
|
|
3684
3570
|
return {
|
|
3685
3571
|
packageAggregation: deserializeAws_restJson1PackageAggregationResponse(output.packageAggregation, context),
|
|
3686
3572
|
};
|
|
3687
3573
|
}
|
|
3688
|
-
if (output.repositoryAggregation
|
|
3574
|
+
if (output.repositoryAggregation != null) {
|
|
3689
3575
|
return {
|
|
3690
3576
|
repositoryAggregation: deserializeAws_restJson1RepositoryAggregationResponse(output.repositoryAggregation, context),
|
|
3691
3577
|
};
|
|
3692
3578
|
}
|
|
3693
|
-
if (output.titleAggregation
|
|
3579
|
+
if (output.titleAggregation != null) {
|
|
3694
3580
|
return {
|
|
3695
3581
|
titleAggregation: deserializeAws_restJson1TitleAggregationResponse(output.titleAggregation, context),
|
|
3696
3582
|
};
|