@aws-sdk/client-guardduty 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +521 -586
- package/dist-es/protocols/Aws_restJson1.js +470 -535
- package/package.json +26 -26
|
@@ -26,9 +26,8 @@ const serializeAws_restJson1AcceptAdministratorInvitationCommand = async (input,
|
|
|
26
26
|
}
|
|
27
27
|
let body;
|
|
28
28
|
body = JSON.stringify({
|
|
29
|
-
...(input.AdministratorId
|
|
30
|
-
|
|
31
|
-
...(input.InvitationId !== undefined && input.InvitationId !== null && { invitationId: input.InvitationId }),
|
|
29
|
+
...(input.AdministratorId != null && { administratorId: input.AdministratorId }),
|
|
30
|
+
...(input.InvitationId != null && { invitationId: input.InvitationId }),
|
|
32
31
|
});
|
|
33
32
|
return new protocol_http_1.HttpRequest({
|
|
34
33
|
protocol,
|
|
@@ -59,8 +58,8 @@ const serializeAws_restJson1AcceptInvitationCommand = async (input, context) =>
|
|
|
59
58
|
}
|
|
60
59
|
let body;
|
|
61
60
|
body = JSON.stringify({
|
|
62
|
-
...(input.InvitationId
|
|
63
|
-
...(input.MasterId
|
|
61
|
+
...(input.InvitationId != null && { invitationId: input.InvitationId }),
|
|
62
|
+
...(input.MasterId != null && { masterId: input.MasterId }),
|
|
64
63
|
});
|
|
65
64
|
return new protocol_http_1.HttpRequest({
|
|
66
65
|
protocol,
|
|
@@ -91,8 +90,7 @@ const serializeAws_restJson1ArchiveFindingsCommand = async (input, context) => {
|
|
|
91
90
|
}
|
|
92
91
|
let body;
|
|
93
92
|
body = JSON.stringify({
|
|
94
|
-
...(input.FindingIds
|
|
95
|
-
input.FindingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) }),
|
|
93
|
+
...(input.FindingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) }),
|
|
96
94
|
});
|
|
97
95
|
return new protocol_http_1.HttpRequest({
|
|
98
96
|
protocol,
|
|
@@ -115,14 +113,12 @@ const serializeAws_restJson1CreateDetectorCommand = async (input, context) => {
|
|
|
115
113
|
let body;
|
|
116
114
|
body = JSON.stringify({
|
|
117
115
|
clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
118
|
-
...(input.DataSources
|
|
119
|
-
input.DataSources !== null && {
|
|
116
|
+
...(input.DataSources != null && {
|
|
120
117
|
dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
|
|
121
118
|
}),
|
|
122
|
-
...(input.Enable
|
|
123
|
-
...(input.FindingPublishingFrequency
|
|
124
|
-
|
|
125
|
-
...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
119
|
+
...(input.Enable != null && { enable: input.Enable }),
|
|
120
|
+
...(input.FindingPublishingFrequency != null && { findingPublishingFrequency: input.FindingPublishingFrequency }),
|
|
121
|
+
...(input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
126
122
|
});
|
|
127
123
|
return new protocol_http_1.HttpRequest({
|
|
128
124
|
protocol,
|
|
@@ -154,16 +150,15 @@ const serializeAws_restJson1CreateFilterCommand = async (input, context) => {
|
|
|
154
150
|
}
|
|
155
151
|
let body;
|
|
156
152
|
body = JSON.stringify({
|
|
157
|
-
...(input.Action
|
|
153
|
+
...(input.Action != null && { action: input.Action }),
|
|
158
154
|
clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
159
|
-
...(input.Description
|
|
160
|
-
...(input.FindingCriteria
|
|
161
|
-
input.FindingCriteria !== null && {
|
|
155
|
+
...(input.Description != null && { description: input.Description }),
|
|
156
|
+
...(input.FindingCriteria != null && {
|
|
162
157
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
|
|
163
158
|
}),
|
|
164
|
-
...(input.Name
|
|
165
|
-
...(input.Rank
|
|
166
|
-
...(input.Tags
|
|
159
|
+
...(input.Name != null && { name: input.Name }),
|
|
160
|
+
...(input.Rank != null && { rank: input.Rank }),
|
|
161
|
+
...(input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
167
162
|
});
|
|
168
163
|
return new protocol_http_1.HttpRequest({
|
|
169
164
|
protocol,
|
|
@@ -195,12 +190,12 @@ const serializeAws_restJson1CreateIPSetCommand = async (input, context) => {
|
|
|
195
190
|
}
|
|
196
191
|
let body;
|
|
197
192
|
body = JSON.stringify({
|
|
198
|
-
...(input.Activate
|
|
193
|
+
...(input.Activate != null && { activate: input.Activate }),
|
|
199
194
|
clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
200
|
-
...(input.Format
|
|
201
|
-
...(input.Location
|
|
202
|
-
...(input.Name
|
|
203
|
-
...(input.Tags
|
|
195
|
+
...(input.Format != null && { format: input.Format }),
|
|
196
|
+
...(input.Location != null && { location: input.Location }),
|
|
197
|
+
...(input.Name != null && { name: input.Name }),
|
|
198
|
+
...(input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
204
199
|
});
|
|
205
200
|
return new protocol_http_1.HttpRequest({
|
|
206
201
|
protocol,
|
|
@@ -231,8 +226,7 @@ const serializeAws_restJson1CreateMembersCommand = async (input, context) => {
|
|
|
231
226
|
}
|
|
232
227
|
let body;
|
|
233
228
|
body = JSON.stringify({
|
|
234
|
-
...(input.AccountDetails
|
|
235
|
-
input.AccountDetails !== null && {
|
|
229
|
+
...(input.AccountDetails != null && {
|
|
236
230
|
accountDetails: serializeAws_restJson1AccountDetails(input.AccountDetails, context),
|
|
237
231
|
}),
|
|
238
232
|
});
|
|
@@ -268,12 +262,10 @@ const serializeAws_restJson1CreatePublishingDestinationCommand = async (input, c
|
|
|
268
262
|
let body;
|
|
269
263
|
body = JSON.stringify({
|
|
270
264
|
clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
271
|
-
...(input.DestinationProperties
|
|
272
|
-
input.DestinationProperties !== null && {
|
|
265
|
+
...(input.DestinationProperties != null && {
|
|
273
266
|
destinationProperties: serializeAws_restJson1DestinationProperties(input.DestinationProperties, context),
|
|
274
267
|
}),
|
|
275
|
-
...(input.DestinationType
|
|
276
|
-
input.DestinationType !== null && { destinationType: input.DestinationType }),
|
|
268
|
+
...(input.DestinationType != null && { destinationType: input.DestinationType }),
|
|
277
269
|
});
|
|
278
270
|
return new protocol_http_1.HttpRequest({
|
|
279
271
|
protocol,
|
|
@@ -304,8 +296,9 @@ const serializeAws_restJson1CreateSampleFindingsCommand = async (input, context)
|
|
|
304
296
|
}
|
|
305
297
|
let body;
|
|
306
298
|
body = JSON.stringify({
|
|
307
|
-
...(input.FindingTypes
|
|
308
|
-
|
|
299
|
+
...(input.FindingTypes != null && {
|
|
300
|
+
findingTypes: serializeAws_restJson1FindingTypes(input.FindingTypes, context),
|
|
301
|
+
}),
|
|
309
302
|
});
|
|
310
303
|
return new protocol_http_1.HttpRequest({
|
|
311
304
|
protocol,
|
|
@@ -337,12 +330,12 @@ const serializeAws_restJson1CreateThreatIntelSetCommand = async (input, context)
|
|
|
337
330
|
}
|
|
338
331
|
let body;
|
|
339
332
|
body = JSON.stringify({
|
|
340
|
-
...(input.Activate
|
|
333
|
+
...(input.Activate != null && { activate: input.Activate }),
|
|
341
334
|
clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
342
|
-
...(input.Format
|
|
343
|
-
...(input.Location
|
|
344
|
-
...(input.Name
|
|
345
|
-
...(input.Tags
|
|
335
|
+
...(input.Format != null && { format: input.Format }),
|
|
336
|
+
...(input.Location != null && { location: input.Location }),
|
|
337
|
+
...(input.Name != null && { name: input.Name }),
|
|
338
|
+
...(input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
346
339
|
});
|
|
347
340
|
return new protocol_http_1.HttpRequest({
|
|
348
341
|
protocol,
|
|
@@ -363,8 +356,7 @@ const serializeAws_restJson1DeclineInvitationsCommand = async (input, context) =
|
|
|
363
356
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/decline";
|
|
364
357
|
let body;
|
|
365
358
|
body = JSON.stringify({
|
|
366
|
-
...(input.AccountIds
|
|
367
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
359
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
368
360
|
});
|
|
369
361
|
return new protocol_http_1.HttpRequest({
|
|
370
362
|
protocol,
|
|
@@ -448,8 +440,7 @@ const serializeAws_restJson1DeleteInvitationsCommand = async (input, context) =>
|
|
|
448
440
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/delete";
|
|
449
441
|
let body;
|
|
450
442
|
body = JSON.stringify({
|
|
451
|
-
...(input.AccountIds
|
|
452
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
443
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
453
444
|
});
|
|
454
445
|
return new protocol_http_1.HttpRequest({
|
|
455
446
|
protocol,
|
|
@@ -516,8 +507,7 @@ const serializeAws_restJson1DeleteMembersCommand = async (input, context) => {
|
|
|
516
507
|
}
|
|
517
508
|
let body;
|
|
518
509
|
body = JSON.stringify({
|
|
519
|
-
...(input.AccountIds
|
|
520
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
510
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
521
511
|
});
|
|
522
512
|
return new protocol_http_1.HttpRequest({
|
|
523
513
|
protocol,
|
|
@@ -675,8 +665,7 @@ const serializeAws_restJson1DisableOrganizationAdminAccountCommand = async (inpu
|
|
|
675
665
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin/disable";
|
|
676
666
|
let body;
|
|
677
667
|
body = JSON.stringify({
|
|
678
|
-
...(input.AdminAccountId
|
|
679
|
-
input.AdminAccountId !== null && { adminAccountId: input.AdminAccountId }),
|
|
668
|
+
...(input.AdminAccountId != null && { adminAccountId: input.AdminAccountId }),
|
|
680
669
|
});
|
|
681
670
|
return new protocol_http_1.HttpRequest({
|
|
682
671
|
protocol,
|
|
@@ -762,8 +751,7 @@ const serializeAws_restJson1DisassociateMembersCommand = async (input, context)
|
|
|
762
751
|
}
|
|
763
752
|
let body;
|
|
764
753
|
body = JSON.stringify({
|
|
765
|
-
...(input.AccountIds
|
|
766
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
754
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
767
755
|
});
|
|
768
756
|
return new protocol_http_1.HttpRequest({
|
|
769
757
|
protocol,
|
|
@@ -784,8 +772,7 @@ const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async (input
|
|
|
784
772
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin/enable";
|
|
785
773
|
let body;
|
|
786
774
|
body = JSON.stringify({
|
|
787
|
-
...(input.AdminAccountId
|
|
788
|
-
input.AdminAccountId !== null && { adminAccountId: input.AdminAccountId }),
|
|
775
|
+
...(input.AdminAccountId != null && { adminAccountId: input.AdminAccountId }),
|
|
789
776
|
});
|
|
790
777
|
return new protocol_http_1.HttpRequest({
|
|
791
778
|
protocol,
|
|
@@ -905,10 +892,10 @@ const serializeAws_restJson1GetFindingsCommand = async (input, context) => {
|
|
|
905
892
|
}
|
|
906
893
|
let body;
|
|
907
894
|
body = JSON.stringify({
|
|
908
|
-
...(input.FindingIds
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
895
|
+
...(input.FindingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) }),
|
|
896
|
+
...(input.SortCriteria != null && {
|
|
897
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context),
|
|
898
|
+
}),
|
|
912
899
|
});
|
|
913
900
|
return new protocol_http_1.HttpRequest({
|
|
914
901
|
protocol,
|
|
@@ -940,12 +927,10 @@ const serializeAws_restJson1GetFindingsStatisticsCommand = async (input, context
|
|
|
940
927
|
}
|
|
941
928
|
let body;
|
|
942
929
|
body = JSON.stringify({
|
|
943
|
-
...(input.FindingCriteria
|
|
944
|
-
input.FindingCriteria !== null && {
|
|
930
|
+
...(input.FindingCriteria != null && {
|
|
945
931
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
|
|
946
932
|
}),
|
|
947
|
-
...(input.FindingStatisticTypes
|
|
948
|
-
input.FindingStatisticTypes !== null && {
|
|
933
|
+
...(input.FindingStatisticTypes != null && {
|
|
949
934
|
findingStatisticTypes: serializeAws_restJson1FindingStatisticTypes(input.FindingStatisticTypes, context),
|
|
950
935
|
}),
|
|
951
936
|
});
|
|
@@ -1060,8 +1045,7 @@ const serializeAws_restJson1GetMemberDetectorsCommand = async (input, context) =
|
|
|
1060
1045
|
}
|
|
1061
1046
|
let body;
|
|
1062
1047
|
body = JSON.stringify({
|
|
1063
|
-
...(input.AccountIds
|
|
1064
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1048
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1065
1049
|
});
|
|
1066
1050
|
return new protocol_http_1.HttpRequest({
|
|
1067
1051
|
protocol,
|
|
@@ -1092,8 +1076,7 @@ const serializeAws_restJson1GetMembersCommand = async (input, context) => {
|
|
|
1092
1076
|
}
|
|
1093
1077
|
let body;
|
|
1094
1078
|
body = JSON.stringify({
|
|
1095
|
-
...(input.AccountIds
|
|
1096
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1079
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1097
1080
|
});
|
|
1098
1081
|
return new protocol_http_1.HttpRequest({
|
|
1099
1082
|
protocol,
|
|
@@ -1125,8 +1108,7 @@ const serializeAws_restJson1GetRemainingFreeTrialDaysCommand = async (input, con
|
|
|
1125
1108
|
}
|
|
1126
1109
|
let body;
|
|
1127
1110
|
body = JSON.stringify({
|
|
1128
|
-
...(input.AccountIds
|
|
1129
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1111
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1130
1112
|
});
|
|
1131
1113
|
return new protocol_http_1.HttpRequest({
|
|
1132
1114
|
protocol,
|
|
@@ -1194,15 +1176,13 @@ const serializeAws_restJson1GetUsageStatisticsCommand = async (input, context) =
|
|
|
1194
1176
|
}
|
|
1195
1177
|
let body;
|
|
1196
1178
|
body = JSON.stringify({
|
|
1197
|
-
...(input.MaxResults
|
|
1198
|
-
...(input.NextToken
|
|
1199
|
-
...(input.Unit
|
|
1200
|
-
...(input.UsageCriteria
|
|
1201
|
-
input.UsageCriteria !== null && {
|
|
1179
|
+
...(input.MaxResults != null && { maxResults: input.MaxResults }),
|
|
1180
|
+
...(input.NextToken != null && { nextToken: input.NextToken }),
|
|
1181
|
+
...(input.Unit != null && { unit: input.Unit }),
|
|
1182
|
+
...(input.UsageCriteria != null && {
|
|
1202
1183
|
usageCriteria: serializeAws_restJson1UsageCriteria(input.UsageCriteria, context),
|
|
1203
1184
|
}),
|
|
1204
|
-
...(input.UsageStatisticType
|
|
1205
|
-
input.UsageStatisticType !== null && { usageStatisticsType: input.UsageStatisticType }),
|
|
1185
|
+
...(input.UsageStatisticType != null && { usageStatisticsType: input.UsageStatisticType }),
|
|
1206
1186
|
});
|
|
1207
1187
|
return new protocol_http_1.HttpRequest({
|
|
1208
1188
|
protocol,
|
|
@@ -1233,11 +1213,9 @@ const serializeAws_restJson1InviteMembersCommand = async (input, context) => {
|
|
|
1233
1213
|
}
|
|
1234
1214
|
let body;
|
|
1235
1215
|
body = JSON.stringify({
|
|
1236
|
-
...(input.AccountIds
|
|
1237
|
-
|
|
1238
|
-
...(input.
|
|
1239
|
-
input.DisableEmailNotification !== null && { disableEmailNotification: input.DisableEmailNotification }),
|
|
1240
|
-
...(input.Message !== undefined && input.Message !== null && { message: input.Message }),
|
|
1216
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1217
|
+
...(input.DisableEmailNotification != null && { disableEmailNotification: input.DisableEmailNotification }),
|
|
1218
|
+
...(input.Message != null && { message: input.Message }),
|
|
1241
1219
|
});
|
|
1242
1220
|
return new protocol_http_1.HttpRequest({
|
|
1243
1221
|
protocol,
|
|
@@ -1320,14 +1298,14 @@ const serializeAws_restJson1ListFindingsCommand = async (input, context) => {
|
|
|
1320
1298
|
}
|
|
1321
1299
|
let body;
|
|
1322
1300
|
body = JSON.stringify({
|
|
1323
|
-
...(input.FindingCriteria
|
|
1324
|
-
input.FindingCriteria !== null && {
|
|
1301
|
+
...(input.FindingCriteria != null && {
|
|
1325
1302
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
|
|
1326
1303
|
}),
|
|
1327
|
-
...(input.MaxResults
|
|
1328
|
-
...(input.NextToken
|
|
1329
|
-
...(input.SortCriteria
|
|
1330
|
-
|
|
1304
|
+
...(input.MaxResults != null && { maxResults: input.MaxResults }),
|
|
1305
|
+
...(input.NextToken != null && { nextToken: input.NextToken }),
|
|
1306
|
+
...(input.SortCriteria != null && {
|
|
1307
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context),
|
|
1308
|
+
}),
|
|
1331
1309
|
});
|
|
1332
1310
|
return new protocol_http_1.HttpRequest({
|
|
1333
1311
|
protocol,
|
|
@@ -1552,8 +1530,7 @@ const serializeAws_restJson1StartMonitoringMembersCommand = async (input, contex
|
|
|
1552
1530
|
}
|
|
1553
1531
|
let body;
|
|
1554
1532
|
body = JSON.stringify({
|
|
1555
|
-
...(input.AccountIds
|
|
1556
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1533
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1557
1534
|
});
|
|
1558
1535
|
return new protocol_http_1.HttpRequest({
|
|
1559
1536
|
protocol,
|
|
@@ -1584,8 +1561,7 @@ const serializeAws_restJson1StopMonitoringMembersCommand = async (input, context
|
|
|
1584
1561
|
}
|
|
1585
1562
|
let body;
|
|
1586
1563
|
body = JSON.stringify({
|
|
1587
|
-
...(input.AccountIds
|
|
1588
|
-
input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1564
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1589
1565
|
});
|
|
1590
1566
|
return new protocol_http_1.HttpRequest({
|
|
1591
1567
|
protocol,
|
|
@@ -1616,7 +1592,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1616
1592
|
}
|
|
1617
1593
|
let body;
|
|
1618
1594
|
body = JSON.stringify({
|
|
1619
|
-
...(input.Tags
|
|
1595
|
+
...(input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
1620
1596
|
});
|
|
1621
1597
|
return new protocol_http_1.HttpRequest({
|
|
1622
1598
|
protocol,
|
|
@@ -1647,8 +1623,7 @@ const serializeAws_restJson1UnarchiveFindingsCommand = async (input, context) =>
|
|
|
1647
1623
|
}
|
|
1648
1624
|
let body;
|
|
1649
1625
|
body = JSON.stringify({
|
|
1650
|
-
...(input.FindingIds
|
|
1651
|
-
input.FindingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) }),
|
|
1626
|
+
...(input.FindingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) }),
|
|
1652
1627
|
});
|
|
1653
1628
|
return new protocol_http_1.HttpRequest({
|
|
1654
1629
|
protocol,
|
|
@@ -1709,13 +1684,11 @@ const serializeAws_restJson1UpdateDetectorCommand = async (input, context) => {
|
|
|
1709
1684
|
}
|
|
1710
1685
|
let body;
|
|
1711
1686
|
body = JSON.stringify({
|
|
1712
|
-
...(input.DataSources
|
|
1713
|
-
input.DataSources !== null && {
|
|
1687
|
+
...(input.DataSources != null && {
|
|
1714
1688
|
dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
|
|
1715
1689
|
}),
|
|
1716
|
-
...(input.Enable
|
|
1717
|
-
...(input.FindingPublishingFrequency
|
|
1718
|
-
input.FindingPublishingFrequency !== null && { findingPublishingFrequency: input.FindingPublishingFrequency }),
|
|
1690
|
+
...(input.Enable != null && { enable: input.Enable }),
|
|
1691
|
+
...(input.FindingPublishingFrequency != null && { findingPublishingFrequency: input.FindingPublishingFrequency }),
|
|
1719
1692
|
});
|
|
1720
1693
|
return new protocol_http_1.HttpRequest({
|
|
1721
1694
|
protocol,
|
|
@@ -1757,13 +1730,12 @@ const serializeAws_restJson1UpdateFilterCommand = async (input, context) => {
|
|
|
1757
1730
|
}
|
|
1758
1731
|
let body;
|
|
1759
1732
|
body = JSON.stringify({
|
|
1760
|
-
...(input.Action
|
|
1761
|
-
...(input.Description
|
|
1762
|
-
...(input.FindingCriteria
|
|
1763
|
-
input.FindingCriteria !== null && {
|
|
1733
|
+
...(input.Action != null && { action: input.Action }),
|
|
1734
|
+
...(input.Description != null && { description: input.Description }),
|
|
1735
|
+
...(input.FindingCriteria != null && {
|
|
1764
1736
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
|
|
1765
1737
|
}),
|
|
1766
|
-
...(input.Rank
|
|
1738
|
+
...(input.Rank != null && { rank: input.Rank }),
|
|
1767
1739
|
});
|
|
1768
1740
|
return new protocol_http_1.HttpRequest({
|
|
1769
1741
|
protocol,
|
|
@@ -1794,10 +1766,9 @@ const serializeAws_restJson1UpdateFindingsFeedbackCommand = async (input, contex
|
|
|
1794
1766
|
}
|
|
1795
1767
|
let body;
|
|
1796
1768
|
body = JSON.stringify({
|
|
1797
|
-
...(input.Comments
|
|
1798
|
-
...(input.Feedback
|
|
1799
|
-
...(input.FindingIds
|
|
1800
|
-
input.FindingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) }),
|
|
1769
|
+
...(input.Comments != null && { comments: input.Comments }),
|
|
1770
|
+
...(input.Feedback != null && { feedback: input.Feedback }),
|
|
1771
|
+
...(input.FindingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) }),
|
|
1801
1772
|
});
|
|
1802
1773
|
return new protocol_http_1.HttpRequest({
|
|
1803
1774
|
protocol,
|
|
@@ -1838,9 +1809,9 @@ const serializeAws_restJson1UpdateIPSetCommand = async (input, context) => {
|
|
|
1838
1809
|
}
|
|
1839
1810
|
let body;
|
|
1840
1811
|
body = JSON.stringify({
|
|
1841
|
-
...(input.Activate
|
|
1842
|
-
...(input.Location
|
|
1843
|
-
...(input.Name
|
|
1812
|
+
...(input.Activate != null && { activate: input.Activate }),
|
|
1813
|
+
...(input.Location != null && { location: input.Location }),
|
|
1814
|
+
...(input.Name != null && { name: input.Name }),
|
|
1844
1815
|
});
|
|
1845
1816
|
return new protocol_http_1.HttpRequest({
|
|
1846
1817
|
protocol,
|
|
@@ -1872,10 +1843,8 @@ const serializeAws_restJson1UpdateMemberDetectorsCommand = async (input, context
|
|
|
1872
1843
|
}
|
|
1873
1844
|
let body;
|
|
1874
1845
|
body = JSON.stringify({
|
|
1875
|
-
...(input.AccountIds
|
|
1876
|
-
|
|
1877
|
-
...(input.DataSources !== undefined &&
|
|
1878
|
-
input.DataSources !== null && {
|
|
1846
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
1847
|
+
...(input.DataSources != null && {
|
|
1879
1848
|
dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
|
|
1880
1849
|
}),
|
|
1881
1850
|
});
|
|
@@ -1908,9 +1877,8 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
1908
1877
|
}
|
|
1909
1878
|
let body;
|
|
1910
1879
|
body = JSON.stringify({
|
|
1911
|
-
...(input.AutoEnable
|
|
1912
|
-
...(input.DataSources
|
|
1913
|
-
input.DataSources !== null && {
|
|
1880
|
+
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
1881
|
+
...(input.DataSources != null && {
|
|
1914
1882
|
dataSources: serializeAws_restJson1OrganizationDataSourceConfigurations(input.DataSources, context),
|
|
1915
1883
|
}),
|
|
1916
1884
|
});
|
|
@@ -1954,8 +1922,7 @@ const serializeAws_restJson1UpdatePublishingDestinationCommand = async (input, c
|
|
|
1954
1922
|
}
|
|
1955
1923
|
let body;
|
|
1956
1924
|
body = JSON.stringify({
|
|
1957
|
-
...(input.DestinationProperties
|
|
1958
|
-
input.DestinationProperties !== null && {
|
|
1925
|
+
...(input.DestinationProperties != null && {
|
|
1959
1926
|
destinationProperties: serializeAws_restJson1DestinationProperties(input.DestinationProperties, context),
|
|
1960
1927
|
}),
|
|
1961
1928
|
});
|
|
@@ -1999,9 +1966,9 @@ const serializeAws_restJson1UpdateThreatIntelSetCommand = async (input, context)
|
|
|
1999
1966
|
}
|
|
2000
1967
|
let body;
|
|
2001
1968
|
body = JSON.stringify({
|
|
2002
|
-
...(input.Activate
|
|
2003
|
-
...(input.Location
|
|
2004
|
-
...(input.Name
|
|
1969
|
+
...(input.Activate != null && { activate: input.Activate }),
|
|
1970
|
+
...(input.Location != null && { location: input.Location }),
|
|
1971
|
+
...(input.Name != null && { name: input.Name }),
|
|
2005
1972
|
});
|
|
2006
1973
|
return new protocol_http_1.HttpRequest({
|
|
2007
1974
|
protocol,
|
|
@@ -2031,8 +1998,7 @@ const deserializeAws_restJson1AcceptAdministratorInvitationCommandError = async
|
|
|
2031
1998
|
body: await parseBody(output.body, context),
|
|
2032
1999
|
};
|
|
2033
2000
|
let response;
|
|
2034
|
-
|
|
2035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
2002
|
switch (errorCode) {
|
|
2037
2003
|
case "BadRequestException":
|
|
2038
2004
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2042,10 +2008,12 @@ const deserializeAws_restJson1AcceptAdministratorInvitationCommandError = async
|
|
|
2042
2008
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2043
2009
|
default:
|
|
2044
2010
|
const parsedBody = parsedOutput.body;
|
|
2011
|
+
const $metadata = deserializeMetadata(output);
|
|
2012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2045
2013
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2047
2015
|
$fault: "client",
|
|
2048
|
-
$metadata
|
|
2016
|
+
$metadata,
|
|
2049
2017
|
});
|
|
2050
2018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2051
2019
|
}
|
|
@@ -2067,8 +2035,7 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
2067
2035
|
body: await parseBody(output.body, context),
|
|
2068
2036
|
};
|
|
2069
2037
|
let response;
|
|
2070
|
-
|
|
2071
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
2039
|
switch (errorCode) {
|
|
2073
2040
|
case "BadRequestException":
|
|
2074
2041
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2078,10 +2045,12 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
2078
2045
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2079
2046
|
default:
|
|
2080
2047
|
const parsedBody = parsedOutput.body;
|
|
2048
|
+
const $metadata = deserializeMetadata(output);
|
|
2049
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2081
2050
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2082
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2051
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2083
2052
|
$fault: "client",
|
|
2084
|
-
$metadata
|
|
2053
|
+
$metadata,
|
|
2085
2054
|
});
|
|
2086
2055
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2087
2056
|
}
|
|
@@ -2103,8 +2072,7 @@ const deserializeAws_restJson1ArchiveFindingsCommandError = async (output, conte
|
|
|
2103
2072
|
body: await parseBody(output.body, context),
|
|
2104
2073
|
};
|
|
2105
2074
|
let response;
|
|
2106
|
-
|
|
2107
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2075
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
2076
|
switch (errorCode) {
|
|
2109
2077
|
case "BadRequestException":
|
|
2110
2078
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2114,10 +2082,12 @@ const deserializeAws_restJson1ArchiveFindingsCommandError = async (output, conte
|
|
|
2114
2082
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2115
2083
|
default:
|
|
2116
2084
|
const parsedBody = parsedOutput.body;
|
|
2085
|
+
const $metadata = deserializeMetadata(output);
|
|
2086
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2117
2087
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2118
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2088
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2119
2089
|
$fault: "client",
|
|
2120
|
-
$metadata
|
|
2090
|
+
$metadata,
|
|
2121
2091
|
});
|
|
2122
2092
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2123
2093
|
}
|
|
@@ -2143,8 +2113,7 @@ const deserializeAws_restJson1CreateDetectorCommandError = async (output, contex
|
|
|
2143
2113
|
body: await parseBody(output.body, context),
|
|
2144
2114
|
};
|
|
2145
2115
|
let response;
|
|
2146
|
-
|
|
2147
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
2117
|
switch (errorCode) {
|
|
2149
2118
|
case "BadRequestException":
|
|
2150
2119
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2154,10 +2123,12 @@ const deserializeAws_restJson1CreateDetectorCommandError = async (output, contex
|
|
|
2154
2123
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2155
2124
|
default:
|
|
2156
2125
|
const parsedBody = parsedOutput.body;
|
|
2126
|
+
const $metadata = deserializeMetadata(output);
|
|
2127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2157
2128
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2158
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2129
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2159
2130
|
$fault: "client",
|
|
2160
|
-
$metadata
|
|
2131
|
+
$metadata,
|
|
2161
2132
|
});
|
|
2162
2133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2163
2134
|
}
|
|
@@ -2183,8 +2154,7 @@ const deserializeAws_restJson1CreateFilterCommandError = async (output, context)
|
|
|
2183
2154
|
body: await parseBody(output.body, context),
|
|
2184
2155
|
};
|
|
2185
2156
|
let response;
|
|
2186
|
-
|
|
2187
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2188
2158
|
switch (errorCode) {
|
|
2189
2159
|
case "BadRequestException":
|
|
2190
2160
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2194,10 +2164,12 @@ const deserializeAws_restJson1CreateFilterCommandError = async (output, context)
|
|
|
2194
2164
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2195
2165
|
default:
|
|
2196
2166
|
const parsedBody = parsedOutput.body;
|
|
2167
|
+
const $metadata = deserializeMetadata(output);
|
|
2168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2197
2169
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2198
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2199
2171
|
$fault: "client",
|
|
2200
|
-
$metadata
|
|
2172
|
+
$metadata,
|
|
2201
2173
|
});
|
|
2202
2174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2203
2175
|
}
|
|
@@ -2223,8 +2195,7 @@ const deserializeAws_restJson1CreateIPSetCommandError = async (output, context)
|
|
|
2223
2195
|
body: await parseBody(output.body, context),
|
|
2224
2196
|
};
|
|
2225
2197
|
let response;
|
|
2226
|
-
|
|
2227
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
2199
|
switch (errorCode) {
|
|
2229
2200
|
case "BadRequestException":
|
|
2230
2201
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2234,10 +2205,12 @@ const deserializeAws_restJson1CreateIPSetCommandError = async (output, context)
|
|
|
2234
2205
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2235
2206
|
default:
|
|
2236
2207
|
const parsedBody = parsedOutput.body;
|
|
2208
|
+
const $metadata = deserializeMetadata(output);
|
|
2209
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2237
2210
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2211
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2239
2212
|
$fault: "client",
|
|
2240
|
-
$metadata
|
|
2213
|
+
$metadata,
|
|
2241
2214
|
});
|
|
2242
2215
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2243
2216
|
}
|
|
@@ -2263,8 +2236,7 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
2263
2236
|
body: await parseBody(output.body, context),
|
|
2264
2237
|
};
|
|
2265
2238
|
let response;
|
|
2266
|
-
|
|
2267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2268
2240
|
switch (errorCode) {
|
|
2269
2241
|
case "BadRequestException":
|
|
2270
2242
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2274,10 +2246,12 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
2274
2246
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2275
2247
|
default:
|
|
2276
2248
|
const parsedBody = parsedOutput.body;
|
|
2249
|
+
const $metadata = deserializeMetadata(output);
|
|
2250
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2277
2251
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2252
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2279
2253
|
$fault: "client",
|
|
2280
|
-
$metadata
|
|
2254
|
+
$metadata,
|
|
2281
2255
|
});
|
|
2282
2256
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2283
2257
|
}
|
|
@@ -2303,8 +2277,7 @@ const deserializeAws_restJson1CreatePublishingDestinationCommandError = async (o
|
|
|
2303
2277
|
body: await parseBody(output.body, context),
|
|
2304
2278
|
};
|
|
2305
2279
|
let response;
|
|
2306
|
-
|
|
2307
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
2281
|
switch (errorCode) {
|
|
2309
2282
|
case "BadRequestException":
|
|
2310
2283
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2314,10 +2287,12 @@ const deserializeAws_restJson1CreatePublishingDestinationCommandError = async (o
|
|
|
2314
2287
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2315
2288
|
default:
|
|
2316
2289
|
const parsedBody = parsedOutput.body;
|
|
2290
|
+
const $metadata = deserializeMetadata(output);
|
|
2291
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2317
2292
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2293
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2319
2294
|
$fault: "client",
|
|
2320
|
-
$metadata
|
|
2295
|
+
$metadata,
|
|
2321
2296
|
});
|
|
2322
2297
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2323
2298
|
}
|
|
@@ -2339,8 +2314,7 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
2339
2314
|
body: await parseBody(output.body, context),
|
|
2340
2315
|
};
|
|
2341
2316
|
let response;
|
|
2342
|
-
|
|
2343
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
2318
|
switch (errorCode) {
|
|
2345
2319
|
case "BadRequestException":
|
|
2346
2320
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2350,10 +2324,12 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
2350
2324
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2351
2325
|
default:
|
|
2352
2326
|
const parsedBody = parsedOutput.body;
|
|
2327
|
+
const $metadata = deserializeMetadata(output);
|
|
2328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2353
2329
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2354
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2355
2331
|
$fault: "client",
|
|
2356
|
-
$metadata
|
|
2332
|
+
$metadata,
|
|
2357
2333
|
});
|
|
2358
2334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2359
2335
|
}
|
|
@@ -2379,8 +2355,7 @@ const deserializeAws_restJson1CreateThreatIntelSetCommandError = async (output,
|
|
|
2379
2355
|
body: await parseBody(output.body, context),
|
|
2380
2356
|
};
|
|
2381
2357
|
let response;
|
|
2382
|
-
|
|
2383
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
2359
|
switch (errorCode) {
|
|
2385
2360
|
case "BadRequestException":
|
|
2386
2361
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2390,10 +2365,12 @@ const deserializeAws_restJson1CreateThreatIntelSetCommandError = async (output,
|
|
|
2390
2365
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2391
2366
|
default:
|
|
2392
2367
|
const parsedBody = parsedOutput.body;
|
|
2368
|
+
const $metadata = deserializeMetadata(output);
|
|
2369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2393
2370
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2394
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2395
2372
|
$fault: "client",
|
|
2396
|
-
$metadata
|
|
2373
|
+
$metadata,
|
|
2397
2374
|
});
|
|
2398
2375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2399
2376
|
}
|
|
@@ -2419,8 +2396,7 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
2419
2396
|
body: await parseBody(output.body, context),
|
|
2420
2397
|
};
|
|
2421
2398
|
let response;
|
|
2422
|
-
|
|
2423
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2400
|
switch (errorCode) {
|
|
2425
2401
|
case "BadRequestException":
|
|
2426
2402
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2430,10 +2406,12 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
2430
2406
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2431
2407
|
default:
|
|
2432
2408
|
const parsedBody = parsedOutput.body;
|
|
2409
|
+
const $metadata = deserializeMetadata(output);
|
|
2410
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2433
2411
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2434
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2412
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2435
2413
|
$fault: "client",
|
|
2436
|
-
$metadata
|
|
2414
|
+
$metadata,
|
|
2437
2415
|
});
|
|
2438
2416
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2439
2417
|
}
|
|
@@ -2455,8 +2433,7 @@ const deserializeAws_restJson1DeleteDetectorCommandError = async (output, contex
|
|
|
2455
2433
|
body: await parseBody(output.body, context),
|
|
2456
2434
|
};
|
|
2457
2435
|
let response;
|
|
2458
|
-
|
|
2459
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2460
2437
|
switch (errorCode) {
|
|
2461
2438
|
case "BadRequestException":
|
|
2462
2439
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2466,10 +2443,12 @@ const deserializeAws_restJson1DeleteDetectorCommandError = async (output, contex
|
|
|
2466
2443
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2467
2444
|
default:
|
|
2468
2445
|
const parsedBody = parsedOutput.body;
|
|
2446
|
+
const $metadata = deserializeMetadata(output);
|
|
2447
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2469
2448
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2470
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2449
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2471
2450
|
$fault: "client",
|
|
2472
|
-
$metadata
|
|
2451
|
+
$metadata,
|
|
2473
2452
|
});
|
|
2474
2453
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2475
2454
|
}
|
|
@@ -2491,8 +2470,7 @@ const deserializeAws_restJson1DeleteFilterCommandError = async (output, context)
|
|
|
2491
2470
|
body: await parseBody(output.body, context),
|
|
2492
2471
|
};
|
|
2493
2472
|
let response;
|
|
2494
|
-
|
|
2495
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2496
2474
|
switch (errorCode) {
|
|
2497
2475
|
case "BadRequestException":
|
|
2498
2476
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2502,10 +2480,12 @@ const deserializeAws_restJson1DeleteFilterCommandError = async (output, context)
|
|
|
2502
2480
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2503
2481
|
default:
|
|
2504
2482
|
const parsedBody = parsedOutput.body;
|
|
2483
|
+
const $metadata = deserializeMetadata(output);
|
|
2484
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2505
2485
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2506
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2486
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2507
2487
|
$fault: "client",
|
|
2508
|
-
$metadata
|
|
2488
|
+
$metadata,
|
|
2509
2489
|
});
|
|
2510
2490
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2511
2491
|
}
|
|
@@ -2531,8 +2511,7 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2531
2511
|
body: await parseBody(output.body, context),
|
|
2532
2512
|
};
|
|
2533
2513
|
let response;
|
|
2534
|
-
|
|
2535
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2514
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
2515
|
switch (errorCode) {
|
|
2537
2516
|
case "BadRequestException":
|
|
2538
2517
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2542,10 +2521,12 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2542
2521
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2543
2522
|
default:
|
|
2544
2523
|
const parsedBody = parsedOutput.body;
|
|
2524
|
+
const $metadata = deserializeMetadata(output);
|
|
2525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2545
2526
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2546
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2547
2528
|
$fault: "client",
|
|
2548
|
-
$metadata
|
|
2529
|
+
$metadata,
|
|
2549
2530
|
});
|
|
2550
2531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2551
2532
|
}
|
|
@@ -2567,8 +2548,7 @@ const deserializeAws_restJson1DeleteIPSetCommandError = async (output, context)
|
|
|
2567
2548
|
body: await parseBody(output.body, context),
|
|
2568
2549
|
};
|
|
2569
2550
|
let response;
|
|
2570
|
-
|
|
2571
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
2552
|
switch (errorCode) {
|
|
2573
2553
|
case "BadRequestException":
|
|
2574
2554
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2578,10 +2558,12 @@ const deserializeAws_restJson1DeleteIPSetCommandError = async (output, context)
|
|
|
2578
2558
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2579
2559
|
default:
|
|
2580
2560
|
const parsedBody = parsedOutput.body;
|
|
2561
|
+
const $metadata = deserializeMetadata(output);
|
|
2562
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2581
2563
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2564
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2583
2565
|
$fault: "client",
|
|
2584
|
-
$metadata
|
|
2566
|
+
$metadata,
|
|
2585
2567
|
});
|
|
2586
2568
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2587
2569
|
}
|
|
@@ -2607,8 +2589,7 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
2607
2589
|
body: await parseBody(output.body, context),
|
|
2608
2590
|
};
|
|
2609
2591
|
let response;
|
|
2610
|
-
|
|
2611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
2593
|
switch (errorCode) {
|
|
2613
2594
|
case "BadRequestException":
|
|
2614
2595
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2618,10 +2599,12 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
2618
2599
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2619
2600
|
default:
|
|
2620
2601
|
const parsedBody = parsedOutput.body;
|
|
2602
|
+
const $metadata = deserializeMetadata(output);
|
|
2603
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2621
2604
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2605
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2623
2606
|
$fault: "client",
|
|
2624
|
-
$metadata
|
|
2607
|
+
$metadata,
|
|
2625
2608
|
});
|
|
2626
2609
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2627
2610
|
}
|
|
@@ -2643,8 +2626,7 @@ const deserializeAws_restJson1DeletePublishingDestinationCommandError = async (o
|
|
|
2643
2626
|
body: await parseBody(output.body, context),
|
|
2644
2627
|
};
|
|
2645
2628
|
let response;
|
|
2646
|
-
|
|
2647
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
2630
|
switch (errorCode) {
|
|
2649
2631
|
case "BadRequestException":
|
|
2650
2632
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2654,10 +2636,12 @@ const deserializeAws_restJson1DeletePublishingDestinationCommandError = async (o
|
|
|
2654
2636
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2655
2637
|
default:
|
|
2656
2638
|
const parsedBody = parsedOutput.body;
|
|
2639
|
+
const $metadata = deserializeMetadata(output);
|
|
2640
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2657
2641
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2658
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2659
2643
|
$fault: "client",
|
|
2660
|
-
$metadata
|
|
2644
|
+
$metadata,
|
|
2661
2645
|
});
|
|
2662
2646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2663
2647
|
}
|
|
@@ -2679,8 +2663,7 @@ const deserializeAws_restJson1DeleteThreatIntelSetCommandError = async (output,
|
|
|
2679
2663
|
body: await parseBody(output.body, context),
|
|
2680
2664
|
};
|
|
2681
2665
|
let response;
|
|
2682
|
-
|
|
2683
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2684
2667
|
switch (errorCode) {
|
|
2685
2668
|
case "BadRequestException":
|
|
2686
2669
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2690,10 +2673,12 @@ const deserializeAws_restJson1DeleteThreatIntelSetCommandError = async (output,
|
|
|
2690
2673
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2691
2674
|
default:
|
|
2692
2675
|
const parsedBody = parsedOutput.body;
|
|
2676
|
+
const $metadata = deserializeMetadata(output);
|
|
2677
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2693
2678
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2695
2680
|
$fault: "client",
|
|
2696
|
-
$metadata
|
|
2681
|
+
$metadata,
|
|
2697
2682
|
});
|
|
2698
2683
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2699
2684
|
}
|
|
@@ -2727,8 +2712,7 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2727
2712
|
body: await parseBody(output.body, context),
|
|
2728
2713
|
};
|
|
2729
2714
|
let response;
|
|
2730
|
-
|
|
2731
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2732
2716
|
switch (errorCode) {
|
|
2733
2717
|
case "BadRequestException":
|
|
2734
2718
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2738,10 +2722,12 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2738
2722
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2739
2723
|
default:
|
|
2740
2724
|
const parsedBody = parsedOutput.body;
|
|
2725
|
+
const $metadata = deserializeMetadata(output);
|
|
2726
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2741
2727
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2728
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2743
2729
|
$fault: "client",
|
|
2744
|
-
$metadata
|
|
2730
|
+
$metadata,
|
|
2745
2731
|
});
|
|
2746
2732
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2747
2733
|
}
|
|
@@ -2783,8 +2769,7 @@ const deserializeAws_restJson1DescribePublishingDestinationCommandError = async
|
|
|
2783
2769
|
body: await parseBody(output.body, context),
|
|
2784
2770
|
};
|
|
2785
2771
|
let response;
|
|
2786
|
-
|
|
2787
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2772
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
2773
|
switch (errorCode) {
|
|
2789
2774
|
case "BadRequestException":
|
|
2790
2775
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2794,10 +2779,12 @@ const deserializeAws_restJson1DescribePublishingDestinationCommandError = async
|
|
|
2794
2779
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2795
2780
|
default:
|
|
2796
2781
|
const parsedBody = parsedOutput.body;
|
|
2782
|
+
const $metadata = deserializeMetadata(output);
|
|
2783
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2797
2784
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2798
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2785
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2799
2786
|
$fault: "client",
|
|
2800
|
-
$metadata
|
|
2787
|
+
$metadata,
|
|
2801
2788
|
});
|
|
2802
2789
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2803
2790
|
}
|
|
@@ -2819,8 +2806,7 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2819
2806
|
body: await parseBody(output.body, context),
|
|
2820
2807
|
};
|
|
2821
2808
|
let response;
|
|
2822
|
-
|
|
2823
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2809
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2824
2810
|
switch (errorCode) {
|
|
2825
2811
|
case "BadRequestException":
|
|
2826
2812
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2830,10 +2816,12 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2830
2816
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2831
2817
|
default:
|
|
2832
2818
|
const parsedBody = parsedOutput.body;
|
|
2819
|
+
const $metadata = deserializeMetadata(output);
|
|
2820
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2833
2821
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2834
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2822
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2835
2823
|
$fault: "client",
|
|
2836
|
-
$metadata
|
|
2824
|
+
$metadata,
|
|
2837
2825
|
});
|
|
2838
2826
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2839
2827
|
}
|
|
@@ -2855,8 +2843,7 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2855
2843
|
body: await parseBody(output.body, context),
|
|
2856
2844
|
};
|
|
2857
2845
|
let response;
|
|
2858
|
-
|
|
2859
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2846
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2860
2847
|
switch (errorCode) {
|
|
2861
2848
|
case "BadRequestException":
|
|
2862
2849
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2866,10 +2853,12 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2866
2853
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2867
2854
|
default:
|
|
2868
2855
|
const parsedBody = parsedOutput.body;
|
|
2856
|
+
const $metadata = deserializeMetadata(output);
|
|
2857
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2869
2858
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2870
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2859
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2871
2860
|
$fault: "client",
|
|
2872
|
-
$metadata
|
|
2861
|
+
$metadata,
|
|
2873
2862
|
});
|
|
2874
2863
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2875
2864
|
}
|
|
@@ -2891,8 +2880,7 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2891
2880
|
body: await parseBody(output.body, context),
|
|
2892
2881
|
};
|
|
2893
2882
|
let response;
|
|
2894
|
-
|
|
2895
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2896
2884
|
switch (errorCode) {
|
|
2897
2885
|
case "BadRequestException":
|
|
2898
2886
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2902,10 +2890,12 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2902
2890
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2903
2891
|
default:
|
|
2904
2892
|
const parsedBody = parsedOutput.body;
|
|
2893
|
+
const $metadata = deserializeMetadata(output);
|
|
2894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2905
2895
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2906
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2907
2897
|
$fault: "client",
|
|
2908
|
-
$metadata
|
|
2898
|
+
$metadata,
|
|
2909
2899
|
});
|
|
2910
2900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2911
2901
|
}
|
|
@@ -2931,8 +2921,7 @@ const deserializeAws_restJson1DisassociateMembersCommandError = async (output, c
|
|
|
2931
2921
|
body: await parseBody(output.body, context),
|
|
2932
2922
|
};
|
|
2933
2923
|
let response;
|
|
2934
|
-
|
|
2935
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2924
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2936
2925
|
switch (errorCode) {
|
|
2937
2926
|
case "BadRequestException":
|
|
2938
2927
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2942,10 +2931,12 @@ const deserializeAws_restJson1DisassociateMembersCommandError = async (output, c
|
|
|
2942
2931
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2943
2932
|
default:
|
|
2944
2933
|
const parsedBody = parsedOutput.body;
|
|
2934
|
+
const $metadata = deserializeMetadata(output);
|
|
2935
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2945
2936
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2946
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2937
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2947
2938
|
$fault: "client",
|
|
2948
|
-
$metadata
|
|
2939
|
+
$metadata,
|
|
2949
2940
|
});
|
|
2950
2941
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2951
2942
|
}
|
|
@@ -2967,8 +2958,7 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2967
2958
|
body: await parseBody(output.body, context),
|
|
2968
2959
|
};
|
|
2969
2960
|
let response;
|
|
2970
|
-
|
|
2971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
2962
|
switch (errorCode) {
|
|
2973
2963
|
case "BadRequestException":
|
|
2974
2964
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -2978,10 +2968,12 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2978
2968
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2979
2969
|
default:
|
|
2980
2970
|
const parsedBody = parsedOutput.body;
|
|
2971
|
+
const $metadata = deserializeMetadata(output);
|
|
2972
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2981
2973
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2982
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2974
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2983
2975
|
$fault: "client",
|
|
2984
|
-
$metadata
|
|
2976
|
+
$metadata,
|
|
2985
2977
|
});
|
|
2986
2978
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2987
2979
|
}
|
|
@@ -3007,8 +2999,7 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
3007
2999
|
body: await parseBody(output.body, context),
|
|
3008
3000
|
};
|
|
3009
3001
|
let response;
|
|
3010
|
-
|
|
3011
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3012
3003
|
switch (errorCode) {
|
|
3013
3004
|
case "BadRequestException":
|
|
3014
3005
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3018,10 +3009,12 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
3018
3009
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3019
3010
|
default:
|
|
3020
3011
|
const parsedBody = parsedOutput.body;
|
|
3012
|
+
const $metadata = deserializeMetadata(output);
|
|
3013
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3021
3014
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3022
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3015
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3023
3016
|
$fault: "client",
|
|
3024
|
-
$metadata
|
|
3017
|
+
$metadata,
|
|
3025
3018
|
});
|
|
3026
3019
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3027
3020
|
}
|
|
@@ -3071,8 +3064,7 @@ const deserializeAws_restJson1GetDetectorCommandError = async (output, context)
|
|
|
3071
3064
|
body: await parseBody(output.body, context),
|
|
3072
3065
|
};
|
|
3073
3066
|
let response;
|
|
3074
|
-
|
|
3075
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3076
3068
|
switch (errorCode) {
|
|
3077
3069
|
case "BadRequestException":
|
|
3078
3070
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3082,10 +3074,12 @@ const deserializeAws_restJson1GetDetectorCommandError = async (output, context)
|
|
|
3082
3074
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3083
3075
|
default:
|
|
3084
3076
|
const parsedBody = parsedOutput.body;
|
|
3077
|
+
const $metadata = deserializeMetadata(output);
|
|
3078
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3085
3079
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3086
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3080
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3087
3081
|
$fault: "client",
|
|
3088
|
-
$metadata
|
|
3082
|
+
$metadata,
|
|
3089
3083
|
});
|
|
3090
3084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3091
3085
|
}
|
|
@@ -3131,8 +3125,7 @@ const deserializeAws_restJson1GetFilterCommandError = async (output, context) =>
|
|
|
3131
3125
|
body: await parseBody(output.body, context),
|
|
3132
3126
|
};
|
|
3133
3127
|
let response;
|
|
3134
|
-
|
|
3135
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3136
3129
|
switch (errorCode) {
|
|
3137
3130
|
case "BadRequestException":
|
|
3138
3131
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3142,10 +3135,12 @@ const deserializeAws_restJson1GetFilterCommandError = async (output, context) =>
|
|
|
3142
3135
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3143
3136
|
default:
|
|
3144
3137
|
const parsedBody = parsedOutput.body;
|
|
3138
|
+
const $metadata = deserializeMetadata(output);
|
|
3139
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3145
3140
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3141
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3147
3142
|
$fault: "client",
|
|
3148
|
-
$metadata
|
|
3143
|
+
$metadata,
|
|
3149
3144
|
});
|
|
3150
3145
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3151
3146
|
}
|
|
@@ -3171,8 +3166,7 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3171
3166
|
body: await parseBody(output.body, context),
|
|
3172
3167
|
};
|
|
3173
3168
|
let response;
|
|
3174
|
-
|
|
3175
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3176
3170
|
switch (errorCode) {
|
|
3177
3171
|
case "BadRequestException":
|
|
3178
3172
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3182,10 +3176,12 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3182
3176
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3183
3177
|
default:
|
|
3184
3178
|
const parsedBody = parsedOutput.body;
|
|
3179
|
+
const $metadata = deserializeMetadata(output);
|
|
3180
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3185
3181
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3182
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3187
3183
|
$fault: "client",
|
|
3188
|
-
$metadata
|
|
3184
|
+
$metadata,
|
|
3189
3185
|
});
|
|
3190
3186
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3191
3187
|
}
|
|
@@ -3211,8 +3207,7 @@ const deserializeAws_restJson1GetFindingsStatisticsCommandError = async (output,
|
|
|
3211
3207
|
body: await parseBody(output.body, context),
|
|
3212
3208
|
};
|
|
3213
3209
|
let response;
|
|
3214
|
-
|
|
3215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3216
3211
|
switch (errorCode) {
|
|
3217
3212
|
case "BadRequestException":
|
|
3218
3213
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3222,10 +3217,12 @@ const deserializeAws_restJson1GetFindingsStatisticsCommandError = async (output,
|
|
|
3222
3217
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3223
3218
|
default:
|
|
3224
3219
|
const parsedBody = parsedOutput.body;
|
|
3220
|
+
const $metadata = deserializeMetadata(output);
|
|
3221
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3225
3222
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3226
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3227
3224
|
$fault: "client",
|
|
3228
|
-
$metadata
|
|
3225
|
+
$metadata,
|
|
3229
3226
|
});
|
|
3230
3227
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3231
3228
|
}
|
|
@@ -3251,8 +3248,7 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3251
3248
|
body: await parseBody(output.body, context),
|
|
3252
3249
|
};
|
|
3253
3250
|
let response;
|
|
3254
|
-
|
|
3255
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3256
3252
|
switch (errorCode) {
|
|
3257
3253
|
case "BadRequestException":
|
|
3258
3254
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3262,10 +3258,12 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3262
3258
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3263
3259
|
default:
|
|
3264
3260
|
const parsedBody = parsedOutput.body;
|
|
3261
|
+
const $metadata = deserializeMetadata(output);
|
|
3262
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3265
3263
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3266
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3264
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3267
3265
|
$fault: "client",
|
|
3268
|
-
$metadata
|
|
3266
|
+
$metadata,
|
|
3269
3267
|
});
|
|
3270
3268
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3271
3269
|
}
|
|
@@ -3307,8 +3305,7 @@ const deserializeAws_restJson1GetIPSetCommandError = async (output, context) =>
|
|
|
3307
3305
|
body: await parseBody(output.body, context),
|
|
3308
3306
|
};
|
|
3309
3307
|
let response;
|
|
3310
|
-
|
|
3311
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3312
3309
|
switch (errorCode) {
|
|
3313
3310
|
case "BadRequestException":
|
|
3314
3311
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3318,10 +3315,12 @@ const deserializeAws_restJson1GetIPSetCommandError = async (output, context) =>
|
|
|
3318
3315
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3319
3316
|
default:
|
|
3320
3317
|
const parsedBody = parsedOutput.body;
|
|
3318
|
+
const $metadata = deserializeMetadata(output);
|
|
3319
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3321
3320
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3322
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3321
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3323
3322
|
$fault: "client",
|
|
3324
|
-
$metadata
|
|
3323
|
+
$metadata,
|
|
3325
3324
|
});
|
|
3326
3325
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3327
3326
|
}
|
|
@@ -3347,8 +3346,7 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3347
3346
|
body: await parseBody(output.body, context),
|
|
3348
3347
|
};
|
|
3349
3348
|
let response;
|
|
3350
|
-
|
|
3351
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3352
3350
|
switch (errorCode) {
|
|
3353
3351
|
case "BadRequestException":
|
|
3354
3352
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3358,10 +3356,12 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3358
3356
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3359
3357
|
default:
|
|
3360
3358
|
const parsedBody = parsedOutput.body;
|
|
3359
|
+
const $metadata = deserializeMetadata(output);
|
|
3360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3361
3361
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3363
3363
|
$fault: "client",
|
|
3364
|
-
$metadata
|
|
3364
|
+
$metadata,
|
|
3365
3365
|
});
|
|
3366
3366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3367
3367
|
}
|
|
@@ -3391,8 +3391,7 @@ const deserializeAws_restJson1GetMemberDetectorsCommandError = async (output, co
|
|
|
3391
3391
|
body: await parseBody(output.body, context),
|
|
3392
3392
|
};
|
|
3393
3393
|
let response;
|
|
3394
|
-
|
|
3395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3394
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
3395
|
switch (errorCode) {
|
|
3397
3396
|
case "BadRequestException":
|
|
3398
3397
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3402,10 +3401,12 @@ const deserializeAws_restJson1GetMemberDetectorsCommandError = async (output, co
|
|
|
3402
3401
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3403
3402
|
default:
|
|
3404
3403
|
const parsedBody = parsedOutput.body;
|
|
3404
|
+
const $metadata = deserializeMetadata(output);
|
|
3405
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3405
3406
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3407
3408
|
$fault: "client",
|
|
3408
|
-
$metadata
|
|
3409
|
+
$metadata,
|
|
3409
3410
|
});
|
|
3410
3411
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3411
3412
|
}
|
|
@@ -3435,8 +3436,7 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
3435
3436
|
body: await parseBody(output.body, context),
|
|
3436
3437
|
};
|
|
3437
3438
|
let response;
|
|
3438
|
-
|
|
3439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3440
3440
|
switch (errorCode) {
|
|
3441
3441
|
case "BadRequestException":
|
|
3442
3442
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3446,10 +3446,12 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
3446
3446
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3447
3447
|
default:
|
|
3448
3448
|
const parsedBody = parsedOutput.body;
|
|
3449
|
+
const $metadata = deserializeMetadata(output);
|
|
3450
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3449
3451
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3450
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3452
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3451
3453
|
$fault: "client",
|
|
3452
|
-
$metadata
|
|
3454
|
+
$metadata,
|
|
3453
3455
|
});
|
|
3454
3456
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3455
3457
|
}
|
|
@@ -3479,8 +3481,7 @@ const deserializeAws_restJson1GetRemainingFreeTrialDaysCommandError = async (out
|
|
|
3479
3481
|
body: await parseBody(output.body, context),
|
|
3480
3482
|
};
|
|
3481
3483
|
let response;
|
|
3482
|
-
|
|
3483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3484
3485
|
switch (errorCode) {
|
|
3485
3486
|
case "BadRequestException":
|
|
3486
3487
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3490,10 +3491,12 @@ const deserializeAws_restJson1GetRemainingFreeTrialDaysCommandError = async (out
|
|
|
3490
3491
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3491
3492
|
default:
|
|
3492
3493
|
const parsedBody = parsedOutput.body;
|
|
3494
|
+
const $metadata = deserializeMetadata(output);
|
|
3495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3493
3496
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3495
3498
|
$fault: "client",
|
|
3496
|
-
$metadata
|
|
3499
|
+
$metadata,
|
|
3497
3500
|
});
|
|
3498
3501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3499
3502
|
}
|
|
@@ -3535,8 +3538,7 @@ const deserializeAws_restJson1GetThreatIntelSetCommandError = async (output, con
|
|
|
3535
3538
|
body: await parseBody(output.body, context),
|
|
3536
3539
|
};
|
|
3537
3540
|
let response;
|
|
3538
|
-
|
|
3539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
3542
|
switch (errorCode) {
|
|
3541
3543
|
case "BadRequestException":
|
|
3542
3544
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3546,10 +3548,12 @@ const deserializeAws_restJson1GetThreatIntelSetCommandError = async (output, con
|
|
|
3546
3548
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3547
3549
|
default:
|
|
3548
3550
|
const parsedBody = parsedOutput.body;
|
|
3551
|
+
const $metadata = deserializeMetadata(output);
|
|
3552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3549
3553
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3550
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3551
3555
|
$fault: "client",
|
|
3552
|
-
$metadata
|
|
3556
|
+
$metadata,
|
|
3553
3557
|
});
|
|
3554
3558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3555
3559
|
}
|
|
@@ -3579,8 +3583,7 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3579
3583
|
body: await parseBody(output.body, context),
|
|
3580
3584
|
};
|
|
3581
3585
|
let response;
|
|
3582
|
-
|
|
3583
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3584
3587
|
switch (errorCode) {
|
|
3585
3588
|
case "BadRequestException":
|
|
3586
3589
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3590,10 +3593,12 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3590
3593
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3591
3594
|
default:
|
|
3592
3595
|
const parsedBody = parsedOutput.body;
|
|
3596
|
+
const $metadata = deserializeMetadata(output);
|
|
3597
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3593
3598
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3595
3600
|
$fault: "client",
|
|
3596
|
-
$metadata
|
|
3601
|
+
$metadata,
|
|
3597
3602
|
});
|
|
3598
3603
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3599
3604
|
}
|
|
@@ -3619,8 +3624,7 @@ const deserializeAws_restJson1InviteMembersCommandError = async (output, context
|
|
|
3619
3624
|
body: await parseBody(output.body, context),
|
|
3620
3625
|
};
|
|
3621
3626
|
let response;
|
|
3622
|
-
|
|
3623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3624
3628
|
switch (errorCode) {
|
|
3625
3629
|
case "BadRequestException":
|
|
3626
3630
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3630,10 +3634,12 @@ const deserializeAws_restJson1InviteMembersCommandError = async (output, context
|
|
|
3630
3634
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3631
3635
|
default:
|
|
3632
3636
|
const parsedBody = parsedOutput.body;
|
|
3637
|
+
const $metadata = deserializeMetadata(output);
|
|
3638
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3633
3639
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3634
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3640
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3635
3641
|
$fault: "client",
|
|
3636
|
-
$metadata
|
|
3642
|
+
$metadata,
|
|
3637
3643
|
});
|
|
3638
3644
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3639
3645
|
}
|
|
@@ -3663,8 +3669,7 @@ const deserializeAws_restJson1ListDetectorsCommandError = async (output, context
|
|
|
3663
3669
|
body: await parseBody(output.body, context),
|
|
3664
3670
|
};
|
|
3665
3671
|
let response;
|
|
3666
|
-
|
|
3667
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3668
3673
|
switch (errorCode) {
|
|
3669
3674
|
case "BadRequestException":
|
|
3670
3675
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3674,10 +3679,12 @@ const deserializeAws_restJson1ListDetectorsCommandError = async (output, context
|
|
|
3674
3679
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3675
3680
|
default:
|
|
3676
3681
|
const parsedBody = parsedOutput.body;
|
|
3682
|
+
const $metadata = deserializeMetadata(output);
|
|
3683
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3677
3684
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3678
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3685
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3679
3686
|
$fault: "client",
|
|
3680
|
-
$metadata
|
|
3687
|
+
$metadata,
|
|
3681
3688
|
});
|
|
3682
3689
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3683
3690
|
}
|
|
@@ -3707,8 +3714,7 @@ const deserializeAws_restJson1ListFiltersCommandError = async (output, context)
|
|
|
3707
3714
|
body: await parseBody(output.body, context),
|
|
3708
3715
|
};
|
|
3709
3716
|
let response;
|
|
3710
|
-
|
|
3711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3712
3718
|
switch (errorCode) {
|
|
3713
3719
|
case "BadRequestException":
|
|
3714
3720
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3718,10 +3724,12 @@ const deserializeAws_restJson1ListFiltersCommandError = async (output, context)
|
|
|
3718
3724
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3719
3725
|
default:
|
|
3720
3726
|
const parsedBody = parsedOutput.body;
|
|
3727
|
+
const $metadata = deserializeMetadata(output);
|
|
3728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3721
3729
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3722
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3723
3731
|
$fault: "client",
|
|
3724
|
-
$metadata
|
|
3732
|
+
$metadata,
|
|
3725
3733
|
});
|
|
3726
3734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3727
3735
|
}
|
|
@@ -3751,8 +3759,7 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3751
3759
|
body: await parseBody(output.body, context),
|
|
3752
3760
|
};
|
|
3753
3761
|
let response;
|
|
3754
|
-
|
|
3755
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3756
3763
|
switch (errorCode) {
|
|
3757
3764
|
case "BadRequestException":
|
|
3758
3765
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3762,10 +3769,12 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3762
3769
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3763
3770
|
default:
|
|
3764
3771
|
const parsedBody = parsedOutput.body;
|
|
3772
|
+
const $metadata = deserializeMetadata(output);
|
|
3773
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3765
3774
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3775
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3767
3776
|
$fault: "client",
|
|
3768
|
-
$metadata
|
|
3777
|
+
$metadata,
|
|
3769
3778
|
});
|
|
3770
3779
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3771
3780
|
}
|
|
@@ -3795,8 +3804,7 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3795
3804
|
body: await parseBody(output.body, context),
|
|
3796
3805
|
};
|
|
3797
3806
|
let response;
|
|
3798
|
-
|
|
3799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3807
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3800
3808
|
switch (errorCode) {
|
|
3801
3809
|
case "BadRequestException":
|
|
3802
3810
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3806,10 +3814,12 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3806
3814
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3807
3815
|
default:
|
|
3808
3816
|
const parsedBody = parsedOutput.body;
|
|
3817
|
+
const $metadata = deserializeMetadata(output);
|
|
3818
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3809
3819
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3820
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3811
3821
|
$fault: "client",
|
|
3812
|
-
$metadata
|
|
3822
|
+
$metadata,
|
|
3813
3823
|
});
|
|
3814
3824
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3815
3825
|
}
|
|
@@ -3839,8 +3849,7 @@ const deserializeAws_restJson1ListIPSetsCommandError = async (output, context) =
|
|
|
3839
3849
|
body: await parseBody(output.body, context),
|
|
3840
3850
|
};
|
|
3841
3851
|
let response;
|
|
3842
|
-
|
|
3843
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3844
3853
|
switch (errorCode) {
|
|
3845
3854
|
case "BadRequestException":
|
|
3846
3855
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3850,10 +3859,12 @@ const deserializeAws_restJson1ListIPSetsCommandError = async (output, context) =
|
|
|
3850
3859
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3851
3860
|
default:
|
|
3852
3861
|
const parsedBody = parsedOutput.body;
|
|
3862
|
+
const $metadata = deserializeMetadata(output);
|
|
3863
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3853
3864
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3854
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3865
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3855
3866
|
$fault: "client",
|
|
3856
|
-
$metadata
|
|
3867
|
+
$metadata,
|
|
3857
3868
|
});
|
|
3858
3869
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3859
3870
|
}
|
|
@@ -3883,8 +3894,7 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
3883
3894
|
body: await parseBody(output.body, context),
|
|
3884
3895
|
};
|
|
3885
3896
|
let response;
|
|
3886
|
-
|
|
3887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3897
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3888
3898
|
switch (errorCode) {
|
|
3889
3899
|
case "BadRequestException":
|
|
3890
3900
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3894,10 +3904,12 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
3894
3904
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3895
3905
|
default:
|
|
3896
3906
|
const parsedBody = parsedOutput.body;
|
|
3907
|
+
const $metadata = deserializeMetadata(output);
|
|
3908
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3897
3909
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3898
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3910
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3899
3911
|
$fault: "client",
|
|
3900
|
-
$metadata
|
|
3912
|
+
$metadata,
|
|
3901
3913
|
});
|
|
3902
3914
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3903
3915
|
}
|
|
@@ -3927,8 +3939,7 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
3927
3939
|
body: await parseBody(output.body, context),
|
|
3928
3940
|
};
|
|
3929
3941
|
let response;
|
|
3930
|
-
|
|
3931
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3942
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3932
3943
|
switch (errorCode) {
|
|
3933
3944
|
case "BadRequestException":
|
|
3934
3945
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3938,10 +3949,12 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
3938
3949
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3939
3950
|
default:
|
|
3940
3951
|
const parsedBody = parsedOutput.body;
|
|
3952
|
+
const $metadata = deserializeMetadata(output);
|
|
3953
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3941
3954
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3942
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3955
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3943
3956
|
$fault: "client",
|
|
3944
|
-
$metadata
|
|
3957
|
+
$metadata,
|
|
3945
3958
|
});
|
|
3946
3959
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3947
3960
|
}
|
|
@@ -3971,8 +3984,7 @@ const deserializeAws_restJson1ListPublishingDestinationsCommandError = async (ou
|
|
|
3971
3984
|
body: await parseBody(output.body, context),
|
|
3972
3985
|
};
|
|
3973
3986
|
let response;
|
|
3974
|
-
|
|
3975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3987
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3976
3988
|
switch (errorCode) {
|
|
3977
3989
|
case "BadRequestException":
|
|
3978
3990
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -3982,10 +3994,12 @@ const deserializeAws_restJson1ListPublishingDestinationsCommandError = async (ou
|
|
|
3982
3994
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3983
3995
|
default:
|
|
3984
3996
|
const parsedBody = parsedOutput.body;
|
|
3997
|
+
const $metadata = deserializeMetadata(output);
|
|
3998
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3985
3999
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4000
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3987
4001
|
$fault: "client",
|
|
3988
|
-
$metadata
|
|
4002
|
+
$metadata,
|
|
3989
4003
|
});
|
|
3990
4004
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3991
4005
|
}
|
|
@@ -4011,8 +4025,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4011
4025
|
body: await parseBody(output.body, context),
|
|
4012
4026
|
};
|
|
4013
4027
|
let response;
|
|
4014
|
-
|
|
4015
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4016
4029
|
switch (errorCode) {
|
|
4017
4030
|
case "BadRequestException":
|
|
4018
4031
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4022,10 +4035,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4022
4035
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4023
4036
|
default:
|
|
4024
4037
|
const parsedBody = parsedOutput.body;
|
|
4038
|
+
const $metadata = deserializeMetadata(output);
|
|
4039
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4025
4040
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4026
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4041
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4027
4042
|
$fault: "client",
|
|
4028
|
-
$metadata
|
|
4043
|
+
$metadata,
|
|
4029
4044
|
});
|
|
4030
4045
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4031
4046
|
}
|
|
@@ -4055,8 +4070,7 @@ const deserializeAws_restJson1ListThreatIntelSetsCommandError = async (output, c
|
|
|
4055
4070
|
body: await parseBody(output.body, context),
|
|
4056
4071
|
};
|
|
4057
4072
|
let response;
|
|
4058
|
-
|
|
4059
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4073
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4060
4074
|
switch (errorCode) {
|
|
4061
4075
|
case "BadRequestException":
|
|
4062
4076
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4066,10 +4080,12 @@ const deserializeAws_restJson1ListThreatIntelSetsCommandError = async (output, c
|
|
|
4066
4080
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4067
4081
|
default:
|
|
4068
4082
|
const parsedBody = parsedOutput.body;
|
|
4083
|
+
const $metadata = deserializeMetadata(output);
|
|
4084
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4069
4085
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4070
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4071
4087
|
$fault: "client",
|
|
4072
|
-
$metadata
|
|
4088
|
+
$metadata,
|
|
4073
4089
|
});
|
|
4074
4090
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4075
4091
|
}
|
|
@@ -4095,8 +4111,7 @@ const deserializeAws_restJson1StartMonitoringMembersCommandError = async (output
|
|
|
4095
4111
|
body: await parseBody(output.body, context),
|
|
4096
4112
|
};
|
|
4097
4113
|
let response;
|
|
4098
|
-
|
|
4099
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4114
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4100
4115
|
switch (errorCode) {
|
|
4101
4116
|
case "BadRequestException":
|
|
4102
4117
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4106,10 +4121,12 @@ const deserializeAws_restJson1StartMonitoringMembersCommandError = async (output
|
|
|
4106
4121
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4107
4122
|
default:
|
|
4108
4123
|
const parsedBody = parsedOutput.body;
|
|
4124
|
+
const $metadata = deserializeMetadata(output);
|
|
4125
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4109
4126
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4110
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4127
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4111
4128
|
$fault: "client",
|
|
4112
|
-
$metadata
|
|
4129
|
+
$metadata,
|
|
4113
4130
|
});
|
|
4114
4131
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4115
4132
|
}
|
|
@@ -4135,8 +4152,7 @@ const deserializeAws_restJson1StopMonitoringMembersCommandError = async (output,
|
|
|
4135
4152
|
body: await parseBody(output.body, context),
|
|
4136
4153
|
};
|
|
4137
4154
|
let response;
|
|
4138
|
-
|
|
4139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4155
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4140
4156
|
switch (errorCode) {
|
|
4141
4157
|
case "BadRequestException":
|
|
4142
4158
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4146,10 +4162,12 @@ const deserializeAws_restJson1StopMonitoringMembersCommandError = async (output,
|
|
|
4146
4162
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4147
4163
|
default:
|
|
4148
4164
|
const parsedBody = parsedOutput.body;
|
|
4165
|
+
const $metadata = deserializeMetadata(output);
|
|
4166
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4149
4167
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4150
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4168
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4151
4169
|
$fault: "client",
|
|
4152
|
-
$metadata
|
|
4170
|
+
$metadata,
|
|
4153
4171
|
});
|
|
4154
4172
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4155
4173
|
}
|
|
@@ -4171,8 +4189,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4171
4189
|
body: await parseBody(output.body, context),
|
|
4172
4190
|
};
|
|
4173
4191
|
let response;
|
|
4174
|
-
|
|
4175
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4176
4193
|
switch (errorCode) {
|
|
4177
4194
|
case "BadRequestException":
|
|
4178
4195
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4182,10 +4199,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4182
4199
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4183
4200
|
default:
|
|
4184
4201
|
const parsedBody = parsedOutput.body;
|
|
4202
|
+
const $metadata = deserializeMetadata(output);
|
|
4203
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4185
4204
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4187
4206
|
$fault: "client",
|
|
4188
|
-
$metadata
|
|
4207
|
+
$metadata,
|
|
4189
4208
|
});
|
|
4190
4209
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4191
4210
|
}
|
|
@@ -4207,8 +4226,7 @@ const deserializeAws_restJson1UnarchiveFindingsCommandError = async (output, con
|
|
|
4207
4226
|
body: await parseBody(output.body, context),
|
|
4208
4227
|
};
|
|
4209
4228
|
let response;
|
|
4210
|
-
|
|
4211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4212
4230
|
switch (errorCode) {
|
|
4213
4231
|
case "BadRequestException":
|
|
4214
4232
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4218,10 +4236,12 @@ const deserializeAws_restJson1UnarchiveFindingsCommandError = async (output, con
|
|
|
4218
4236
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4219
4237
|
default:
|
|
4220
4238
|
const parsedBody = parsedOutput.body;
|
|
4239
|
+
const $metadata = deserializeMetadata(output);
|
|
4240
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4221
4241
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4222
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4242
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4223
4243
|
$fault: "client",
|
|
4224
|
-
$metadata
|
|
4244
|
+
$metadata,
|
|
4225
4245
|
});
|
|
4226
4246
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4227
4247
|
}
|
|
@@ -4243,8 +4263,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4243
4263
|
body: await parseBody(output.body, context),
|
|
4244
4264
|
};
|
|
4245
4265
|
let response;
|
|
4246
|
-
|
|
4247
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4266
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4248
4267
|
switch (errorCode) {
|
|
4249
4268
|
case "BadRequestException":
|
|
4250
4269
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4254,10 +4273,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4254
4273
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4255
4274
|
default:
|
|
4256
4275
|
const parsedBody = parsedOutput.body;
|
|
4276
|
+
const $metadata = deserializeMetadata(output);
|
|
4277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4257
4278
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4259
4280
|
$fault: "client",
|
|
4260
|
-
$metadata
|
|
4281
|
+
$metadata,
|
|
4261
4282
|
});
|
|
4262
4283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4263
4284
|
}
|
|
@@ -4279,8 +4300,7 @@ const deserializeAws_restJson1UpdateDetectorCommandError = async (output, contex
|
|
|
4279
4300
|
body: await parseBody(output.body, context),
|
|
4280
4301
|
};
|
|
4281
4302
|
let response;
|
|
4282
|
-
|
|
4283
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4284
4304
|
switch (errorCode) {
|
|
4285
4305
|
case "BadRequestException":
|
|
4286
4306
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4290,10 +4310,12 @@ const deserializeAws_restJson1UpdateDetectorCommandError = async (output, contex
|
|
|
4290
4310
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4291
4311
|
default:
|
|
4292
4312
|
const parsedBody = parsedOutput.body;
|
|
4313
|
+
const $metadata = deserializeMetadata(output);
|
|
4314
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4293
4315
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4294
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4316
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4295
4317
|
$fault: "client",
|
|
4296
|
-
$metadata
|
|
4318
|
+
$metadata,
|
|
4297
4319
|
});
|
|
4298
4320
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4299
4321
|
}
|
|
@@ -4319,8 +4341,7 @@ const deserializeAws_restJson1UpdateFilterCommandError = async (output, context)
|
|
|
4319
4341
|
body: await parseBody(output.body, context),
|
|
4320
4342
|
};
|
|
4321
4343
|
let response;
|
|
4322
|
-
|
|
4323
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4324
4345
|
switch (errorCode) {
|
|
4325
4346
|
case "BadRequestException":
|
|
4326
4347
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4330,10 +4351,12 @@ const deserializeAws_restJson1UpdateFilterCommandError = async (output, context)
|
|
|
4330
4351
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4331
4352
|
default:
|
|
4332
4353
|
const parsedBody = parsedOutput.body;
|
|
4354
|
+
const $metadata = deserializeMetadata(output);
|
|
4355
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4333
4356
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4334
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4357
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4335
4358
|
$fault: "client",
|
|
4336
|
-
$metadata
|
|
4359
|
+
$metadata,
|
|
4337
4360
|
});
|
|
4338
4361
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4339
4362
|
}
|
|
@@ -4355,8 +4378,7 @@ const deserializeAws_restJson1UpdateFindingsFeedbackCommandError = async (output
|
|
|
4355
4378
|
body: await parseBody(output.body, context),
|
|
4356
4379
|
};
|
|
4357
4380
|
let response;
|
|
4358
|
-
|
|
4359
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4360
4382
|
switch (errorCode) {
|
|
4361
4383
|
case "BadRequestException":
|
|
4362
4384
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4366,10 +4388,12 @@ const deserializeAws_restJson1UpdateFindingsFeedbackCommandError = async (output
|
|
|
4366
4388
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4367
4389
|
default:
|
|
4368
4390
|
const parsedBody = parsedOutput.body;
|
|
4391
|
+
const $metadata = deserializeMetadata(output);
|
|
4392
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4369
4393
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4370
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4394
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4371
4395
|
$fault: "client",
|
|
4372
|
-
$metadata
|
|
4396
|
+
$metadata,
|
|
4373
4397
|
});
|
|
4374
4398
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4375
4399
|
}
|
|
@@ -4391,8 +4415,7 @@ const deserializeAws_restJson1UpdateIPSetCommandError = async (output, context)
|
|
|
4391
4415
|
body: await parseBody(output.body, context),
|
|
4392
4416
|
};
|
|
4393
4417
|
let response;
|
|
4394
|
-
|
|
4395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4396
4419
|
switch (errorCode) {
|
|
4397
4420
|
case "BadRequestException":
|
|
4398
4421
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4402,10 +4425,12 @@ const deserializeAws_restJson1UpdateIPSetCommandError = async (output, context)
|
|
|
4402
4425
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4403
4426
|
default:
|
|
4404
4427
|
const parsedBody = parsedOutput.body;
|
|
4428
|
+
const $metadata = deserializeMetadata(output);
|
|
4429
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4405
4430
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4431
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4407
4432
|
$fault: "client",
|
|
4408
|
-
$metadata
|
|
4433
|
+
$metadata,
|
|
4409
4434
|
});
|
|
4410
4435
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4411
4436
|
}
|
|
@@ -4431,8 +4456,7 @@ const deserializeAws_restJson1UpdateMemberDetectorsCommandError = async (output,
|
|
|
4431
4456
|
body: await parseBody(output.body, context),
|
|
4432
4457
|
};
|
|
4433
4458
|
let response;
|
|
4434
|
-
|
|
4435
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4459
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4436
4460
|
switch (errorCode) {
|
|
4437
4461
|
case "BadRequestException":
|
|
4438
4462
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4442,10 +4466,12 @@ const deserializeAws_restJson1UpdateMemberDetectorsCommandError = async (output,
|
|
|
4442
4466
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4443
4467
|
default:
|
|
4444
4468
|
const parsedBody = parsedOutput.body;
|
|
4469
|
+
const $metadata = deserializeMetadata(output);
|
|
4470
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4445
4471
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4446
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4472
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4447
4473
|
$fault: "client",
|
|
4448
|
-
$metadata
|
|
4474
|
+
$metadata,
|
|
4449
4475
|
});
|
|
4450
4476
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4451
4477
|
}
|
|
@@ -4467,8 +4493,7 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4467
4493
|
body: await parseBody(output.body, context),
|
|
4468
4494
|
};
|
|
4469
4495
|
let response;
|
|
4470
|
-
|
|
4471
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4496
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4472
4497
|
switch (errorCode) {
|
|
4473
4498
|
case "BadRequestException":
|
|
4474
4499
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4478,10 +4503,12 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4478
4503
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4479
4504
|
default:
|
|
4480
4505
|
const parsedBody = parsedOutput.body;
|
|
4506
|
+
const $metadata = deserializeMetadata(output);
|
|
4507
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4481
4508
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4482
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4509
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4483
4510
|
$fault: "client",
|
|
4484
|
-
$metadata
|
|
4511
|
+
$metadata,
|
|
4485
4512
|
});
|
|
4486
4513
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4487
4514
|
}
|
|
@@ -4503,8 +4530,7 @@ const deserializeAws_restJson1UpdatePublishingDestinationCommandError = async (o
|
|
|
4503
4530
|
body: await parseBody(output.body, context),
|
|
4504
4531
|
};
|
|
4505
4532
|
let response;
|
|
4506
|
-
|
|
4507
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4508
4534
|
switch (errorCode) {
|
|
4509
4535
|
case "BadRequestException":
|
|
4510
4536
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4514,10 +4540,12 @@ const deserializeAws_restJson1UpdatePublishingDestinationCommandError = async (o
|
|
|
4514
4540
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4515
4541
|
default:
|
|
4516
4542
|
const parsedBody = parsedOutput.body;
|
|
4543
|
+
const $metadata = deserializeMetadata(output);
|
|
4544
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4517
4545
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4546
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4519
4547
|
$fault: "client",
|
|
4520
|
-
$metadata
|
|
4548
|
+
$metadata,
|
|
4521
4549
|
});
|
|
4522
4550
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4523
4551
|
}
|
|
@@ -4539,8 +4567,7 @@ const deserializeAws_restJson1UpdateThreatIntelSetCommandError = async (output,
|
|
|
4539
4567
|
body: await parseBody(output.body, context),
|
|
4540
4568
|
};
|
|
4541
4569
|
let response;
|
|
4542
|
-
|
|
4543
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4544
4571
|
switch (errorCode) {
|
|
4545
4572
|
case "BadRequestException":
|
|
4546
4573
|
case "com.amazonaws.guardduty#BadRequestException":
|
|
@@ -4550,10 +4577,12 @@ const deserializeAws_restJson1UpdateThreatIntelSetCommandError = async (output,
|
|
|
4550
4577
|
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4551
4578
|
default:
|
|
4552
4579
|
const parsedBody = parsedOutput.body;
|
|
4580
|
+
const $metadata = deserializeMetadata(output);
|
|
4581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4553
4582
|
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4554
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4555
4584
|
$fault: "client",
|
|
4556
|
-
$metadata
|
|
4585
|
+
$metadata,
|
|
4557
4586
|
});
|
|
4558
4587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4559
4588
|
}
|
|
@@ -4590,8 +4619,8 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
4590
4619
|
};
|
|
4591
4620
|
const serializeAws_restJson1AccountDetail = (input, context) => {
|
|
4592
4621
|
return {
|
|
4593
|
-
...(input.AccountId
|
|
4594
|
-
...(input.Email
|
|
4622
|
+
...(input.AccountId != null && { accountId: input.AccountId }),
|
|
4623
|
+
...(input.Email != null && { email: input.Email }),
|
|
4595
4624
|
};
|
|
4596
4625
|
};
|
|
4597
4626
|
const serializeAws_restJson1AccountDetails = (input, context) => {
|
|
@@ -4616,22 +4645,18 @@ const serializeAws_restJson1AccountIds = (input, context) => {
|
|
|
4616
4645
|
};
|
|
4617
4646
|
const serializeAws_restJson1Condition = (input, context) => {
|
|
4618
4647
|
return {
|
|
4619
|
-
...(input.Eq
|
|
4620
|
-
...(input.Equals
|
|
4621
|
-
|
|
4622
|
-
...(input.
|
|
4623
|
-
...(input.
|
|
4624
|
-
|
|
4625
|
-
...(input.
|
|
4626
|
-
...(input.
|
|
4627
|
-
...(input.
|
|
4628
|
-
...(input.
|
|
4629
|
-
|
|
4630
|
-
...(input.
|
|
4631
|
-
...(input.Lte !== undefined && input.Lte !== null && { lte: input.Lte }),
|
|
4632
|
-
...(input.Neq !== undefined && input.Neq !== null && { neq: serializeAws_restJson1Neq(input.Neq, context) }),
|
|
4633
|
-
...(input.NotEquals !== undefined &&
|
|
4634
|
-
input.NotEquals !== null && { notEquals: serializeAws_restJson1NotEquals(input.NotEquals, context) }),
|
|
4648
|
+
...(input.Eq != null && { eq: serializeAws_restJson1Eq(input.Eq, context) }),
|
|
4649
|
+
...(input.Equals != null && { equals: serializeAws_restJson1Equals(input.Equals, context) }),
|
|
4650
|
+
...(input.GreaterThan != null && { greaterThan: input.GreaterThan }),
|
|
4651
|
+
...(input.GreaterThanOrEqual != null && { greaterThanOrEqual: input.GreaterThanOrEqual }),
|
|
4652
|
+
...(input.Gt != null && { gt: input.Gt }),
|
|
4653
|
+
...(input.Gte != null && { gte: input.Gte }),
|
|
4654
|
+
...(input.LessThan != null && { lessThan: input.LessThan }),
|
|
4655
|
+
...(input.LessThanOrEqual != null && { lessThanOrEqual: input.LessThanOrEqual }),
|
|
4656
|
+
...(input.Lt != null && { lt: input.Lt }),
|
|
4657
|
+
...(input.Lte != null && { lte: input.Lte }),
|
|
4658
|
+
...(input.Neq != null && { neq: serializeAws_restJson1Neq(input.Neq, context) }),
|
|
4659
|
+
...(input.NotEquals != null && { notEquals: serializeAws_restJson1NotEquals(input.NotEquals, context) }),
|
|
4635
4660
|
};
|
|
4636
4661
|
};
|
|
4637
4662
|
const serializeAws_restJson1Criterion = (input, context) => {
|
|
@@ -4647,12 +4672,10 @@ const serializeAws_restJson1Criterion = (input, context) => {
|
|
|
4647
4672
|
};
|
|
4648
4673
|
const serializeAws_restJson1DataSourceConfigurations = (input, context) => {
|
|
4649
4674
|
return {
|
|
4650
|
-
...(input.Kubernetes
|
|
4651
|
-
input.Kubernetes !== null && {
|
|
4675
|
+
...(input.Kubernetes != null && {
|
|
4652
4676
|
kubernetes: serializeAws_restJson1KubernetesConfiguration(input.Kubernetes, context),
|
|
4653
4677
|
}),
|
|
4654
|
-
...(input.S3Logs
|
|
4655
|
-
input.S3Logs !== null && { s3Logs: serializeAws_restJson1S3LogsConfiguration(input.S3Logs, context) }),
|
|
4678
|
+
...(input.S3Logs != null && { s3Logs: serializeAws_restJson1S3LogsConfiguration(input.S3Logs, context) }),
|
|
4656
4679
|
};
|
|
4657
4680
|
};
|
|
4658
4681
|
const serializeAws_restJson1DataSourceList = (input, context) => {
|
|
@@ -4667,9 +4690,8 @@ const serializeAws_restJson1DataSourceList = (input, context) => {
|
|
|
4667
4690
|
};
|
|
4668
4691
|
const serializeAws_restJson1DestinationProperties = (input, context) => {
|
|
4669
4692
|
return {
|
|
4670
|
-
...(input.DestinationArn
|
|
4671
|
-
|
|
4672
|
-
...(input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { kmsKeyArn: input.KmsKeyArn }),
|
|
4693
|
+
...(input.DestinationArn != null && { destinationArn: input.DestinationArn }),
|
|
4694
|
+
...(input.KmsKeyArn != null && { kmsKeyArn: input.KmsKeyArn }),
|
|
4673
4695
|
};
|
|
4674
4696
|
};
|
|
4675
4697
|
const serializeAws_restJson1Eq = (input, context) => {
|
|
@@ -4694,8 +4716,7 @@ const serializeAws_restJson1Equals = (input, context) => {
|
|
|
4694
4716
|
};
|
|
4695
4717
|
const serializeAws_restJson1FindingCriteria = (input, context) => {
|
|
4696
4718
|
return {
|
|
4697
|
-
...(input.Criterion
|
|
4698
|
-
input.Criterion !== null && { criterion: serializeAws_restJson1Criterion(input.Criterion, context) }),
|
|
4719
|
+
...(input.Criterion != null && { criterion: serializeAws_restJson1Criterion(input.Criterion, context) }),
|
|
4699
4720
|
};
|
|
4700
4721
|
};
|
|
4701
4722
|
const serializeAws_restJson1FindingIds = (input, context) => {
|
|
@@ -4730,13 +4751,12 @@ const serializeAws_restJson1FindingTypes = (input, context) => {
|
|
|
4730
4751
|
};
|
|
4731
4752
|
const serializeAws_restJson1KubernetesAuditLogsConfiguration = (input, context) => {
|
|
4732
4753
|
return {
|
|
4733
|
-
...(input.Enable
|
|
4754
|
+
...(input.Enable != null && { enable: input.Enable }),
|
|
4734
4755
|
};
|
|
4735
4756
|
};
|
|
4736
4757
|
const serializeAws_restJson1KubernetesConfiguration = (input, context) => {
|
|
4737
4758
|
return {
|
|
4738
|
-
...(input.AuditLogs
|
|
4739
|
-
input.AuditLogs !== null && {
|
|
4759
|
+
...(input.AuditLogs != null && {
|
|
4740
4760
|
auditLogs: serializeAws_restJson1KubernetesAuditLogsConfiguration(input.AuditLogs, context),
|
|
4741
4761
|
}),
|
|
4742
4762
|
};
|
|
@@ -4763,32 +4783,29 @@ const serializeAws_restJson1NotEquals = (input, context) => {
|
|
|
4763
4783
|
};
|
|
4764
4784
|
const serializeAws_restJson1OrganizationDataSourceConfigurations = (input, context) => {
|
|
4765
4785
|
return {
|
|
4766
|
-
...(input.Kubernetes
|
|
4767
|
-
input.Kubernetes !== null && {
|
|
4786
|
+
...(input.Kubernetes != null && {
|
|
4768
4787
|
kubernetes: serializeAws_restJson1OrganizationKubernetesConfiguration(input.Kubernetes, context),
|
|
4769
4788
|
}),
|
|
4770
|
-
...(input.S3Logs
|
|
4771
|
-
input.S3Logs !== null && {
|
|
4789
|
+
...(input.S3Logs != null && {
|
|
4772
4790
|
s3Logs: serializeAws_restJson1OrganizationS3LogsConfiguration(input.S3Logs, context),
|
|
4773
4791
|
}),
|
|
4774
4792
|
};
|
|
4775
4793
|
};
|
|
4776
4794
|
const serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration = (input, context) => {
|
|
4777
4795
|
return {
|
|
4778
|
-
...(input.AutoEnable
|
|
4796
|
+
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4779
4797
|
};
|
|
4780
4798
|
};
|
|
4781
4799
|
const serializeAws_restJson1OrganizationKubernetesConfiguration = (input, context) => {
|
|
4782
4800
|
return {
|
|
4783
|
-
...(input.AuditLogs
|
|
4784
|
-
input.AuditLogs !== null && {
|
|
4801
|
+
...(input.AuditLogs != null && {
|
|
4785
4802
|
auditLogs: serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration(input.AuditLogs, context),
|
|
4786
4803
|
}),
|
|
4787
4804
|
};
|
|
4788
4805
|
};
|
|
4789
4806
|
const serializeAws_restJson1OrganizationS3LogsConfiguration = (input, context) => {
|
|
4790
4807
|
return {
|
|
4791
|
-
...(input.AutoEnable
|
|
4808
|
+
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4792
4809
|
};
|
|
4793
4810
|
};
|
|
4794
4811
|
const serializeAws_restJson1ResourceList = (input, context) => {
|
|
@@ -4803,13 +4820,13 @@ const serializeAws_restJson1ResourceList = (input, context) => {
|
|
|
4803
4820
|
};
|
|
4804
4821
|
const serializeAws_restJson1S3LogsConfiguration = (input, context) => {
|
|
4805
4822
|
return {
|
|
4806
|
-
...(input.Enable
|
|
4823
|
+
...(input.Enable != null && { enable: input.Enable }),
|
|
4807
4824
|
};
|
|
4808
4825
|
};
|
|
4809
4826
|
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
4810
4827
|
return {
|
|
4811
|
-
...(input.AttributeName
|
|
4812
|
-
...(input.OrderBy
|
|
4828
|
+
...(input.AttributeName != null && { attributeName: input.AttributeName }),
|
|
4829
|
+
...(input.OrderBy != null && { orderBy: input.OrderBy }),
|
|
4813
4830
|
};
|
|
4814
4831
|
};
|
|
4815
4832
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -4825,12 +4842,9 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
4825
4842
|
};
|
|
4826
4843
|
const serializeAws_restJson1UsageCriteria = (input, context) => {
|
|
4827
4844
|
return {
|
|
4828
|
-
...(input.AccountIds
|
|
4829
|
-
|
|
4830
|
-
...(input.
|
|
4831
|
-
input.DataSources !== null && { dataSources: serializeAws_restJson1DataSourceList(input.DataSources, context) }),
|
|
4832
|
-
...(input.Resources !== undefined &&
|
|
4833
|
-
input.Resources !== null && { resources: serializeAws_restJson1ResourceList(input.Resources, context) }),
|
|
4845
|
+
...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
|
|
4846
|
+
...(input.DataSources != null && { dataSources: serializeAws_restJson1DataSourceList(input.DataSources, context) }),
|
|
4847
|
+
...(input.Resources != null && { resources: serializeAws_restJson1ResourceList(input.Resources, context) }),
|
|
4834
4848
|
};
|
|
4835
4849
|
};
|
|
4836
4850
|
const deserializeAws_restJson1AccessControlList = (output, context) => {
|
|
@@ -4850,7 +4864,7 @@ const deserializeAws_restJson1AccessKeyDetails = (output, context) => {
|
|
|
4850
4864
|
const deserializeAws_restJson1AccountFreeTrialInfo = (output, context) => {
|
|
4851
4865
|
return {
|
|
4852
4866
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
4853
|
-
DataSources: output.dataSources
|
|
4867
|
+
DataSources: output.dataSources != null
|
|
4854
4868
|
? deserializeAws_restJson1DataSourcesFreeTrial(output.dataSources, context)
|
|
4855
4869
|
: undefined,
|
|
4856
4870
|
};
|
|
@@ -4868,7 +4882,7 @@ const deserializeAws_restJson1AccountFreeTrialInfos = (output, context) => {
|
|
|
4868
4882
|
};
|
|
4869
4883
|
const deserializeAws_restJson1AccountLevelPermissions = (output, context) => {
|
|
4870
4884
|
return {
|
|
4871
|
-
BlockPublicAccess: output.blockPublicAccess
|
|
4885
|
+
BlockPublicAccess: output.blockPublicAccess != null
|
|
4872
4886
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
4873
4887
|
: undefined,
|
|
4874
4888
|
};
|
|
@@ -4876,19 +4890,19 @@ const deserializeAws_restJson1AccountLevelPermissions = (output, context) => {
|
|
|
4876
4890
|
const deserializeAws_restJson1Action = (output, context) => {
|
|
4877
4891
|
return {
|
|
4878
4892
|
ActionType: (0, smithy_client_1.expectString)(output.actionType),
|
|
4879
|
-
AwsApiCallAction: output.awsApiCallAction
|
|
4893
|
+
AwsApiCallAction: output.awsApiCallAction != null
|
|
4880
4894
|
? deserializeAws_restJson1AwsApiCallAction(output.awsApiCallAction, context)
|
|
4881
4895
|
: undefined,
|
|
4882
|
-
DnsRequestAction: output.dnsRequestAction
|
|
4896
|
+
DnsRequestAction: output.dnsRequestAction != null
|
|
4883
4897
|
? deserializeAws_restJson1DnsRequestAction(output.dnsRequestAction, context)
|
|
4884
4898
|
: undefined,
|
|
4885
|
-
KubernetesApiCallAction: output.kubernetesApiCallAction
|
|
4899
|
+
KubernetesApiCallAction: output.kubernetesApiCallAction != null
|
|
4886
4900
|
? deserializeAws_restJson1KubernetesApiCallAction(output.kubernetesApiCallAction, context)
|
|
4887
4901
|
: undefined,
|
|
4888
|
-
NetworkConnectionAction: output.networkConnectionAction
|
|
4902
|
+
NetworkConnectionAction: output.networkConnectionAction != null
|
|
4889
4903
|
? deserializeAws_restJson1NetworkConnectionAction(output.networkConnectionAction, context)
|
|
4890
4904
|
: undefined,
|
|
4891
|
-
PortProbeAction: output.portProbeAction
|
|
4905
|
+
PortProbeAction: output.portProbeAction != null
|
|
4892
4906
|
? deserializeAws_restJson1PortProbeAction(output.portProbeAction, context)
|
|
4893
4907
|
: undefined,
|
|
4894
4908
|
};
|
|
@@ -4931,19 +4945,17 @@ const deserializeAws_restJson1AffectedResources = (output, context) => {
|
|
|
4931
4945
|
};
|
|
4932
4946
|
const deserializeAws_restJson1AwsApiCallAction = (output, context) => {
|
|
4933
4947
|
return {
|
|
4934
|
-
AffectedResources: output.affectedResources
|
|
4948
|
+
AffectedResources: output.affectedResources != null
|
|
4935
4949
|
? deserializeAws_restJson1AffectedResources(output.affectedResources, context)
|
|
4936
4950
|
: undefined,
|
|
4937
4951
|
Api: (0, smithy_client_1.expectString)(output.api),
|
|
4938
4952
|
CallerType: (0, smithy_client_1.expectString)(output.callerType),
|
|
4939
|
-
DomainDetails: output.domainDetails
|
|
4940
|
-
? deserializeAws_restJson1DomainDetails(output.domainDetails, context)
|
|
4941
|
-
: undefined,
|
|
4953
|
+
DomainDetails: output.domainDetails != null ? deserializeAws_restJson1DomainDetails(output.domainDetails, context) : undefined,
|
|
4942
4954
|
ErrorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
4943
|
-
RemoteAccountDetails: output.remoteAccountDetails
|
|
4955
|
+
RemoteAccountDetails: output.remoteAccountDetails != null
|
|
4944
4956
|
? deserializeAws_restJson1RemoteAccountDetails(output.remoteAccountDetails, context)
|
|
4945
4957
|
: undefined,
|
|
4946
|
-
RemoteIpDetails: output.remoteIpDetails
|
|
4958
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
4947
4959
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
4948
4960
|
: undefined,
|
|
4949
4961
|
ServiceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
@@ -4960,15 +4972,13 @@ const deserializeAws_restJson1BlockPublicAccess = (output, context) => {
|
|
|
4960
4972
|
};
|
|
4961
4973
|
const deserializeAws_restJson1BucketLevelPermissions = (output, context) => {
|
|
4962
4974
|
return {
|
|
4963
|
-
AccessControlList: output.accessControlList
|
|
4975
|
+
AccessControlList: output.accessControlList != null
|
|
4964
4976
|
? deserializeAws_restJson1AccessControlList(output.accessControlList, context)
|
|
4965
4977
|
: undefined,
|
|
4966
|
-
BlockPublicAccess: output.blockPublicAccess
|
|
4978
|
+
BlockPublicAccess: output.blockPublicAccess != null
|
|
4967
4979
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
4968
4980
|
: undefined,
|
|
4969
|
-
BucketPolicy: output.bucketPolicy
|
|
4970
|
-
? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context)
|
|
4971
|
-
: undefined,
|
|
4981
|
+
BucketPolicy: output.bucketPolicy != null ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context) : undefined,
|
|
4972
4982
|
};
|
|
4973
4983
|
};
|
|
4974
4984
|
const deserializeAws_restJson1BucketPolicy = (output, context) => {
|
|
@@ -4989,10 +4999,8 @@ const deserializeAws_restJson1CloudTrailConfigurationResult = (output, context)
|
|
|
4989
4999
|
};
|
|
4990
5000
|
const deserializeAws_restJson1Condition = (output, context) => {
|
|
4991
5001
|
return {
|
|
4992
|
-
Eq: output.eq
|
|
4993
|
-
Equals: output.equals
|
|
4994
|
-
? deserializeAws_restJson1Equals(output.equals, context)
|
|
4995
|
-
: undefined,
|
|
5002
|
+
Eq: output.eq != null ? deserializeAws_restJson1Eq(output.eq, context) : undefined,
|
|
5003
|
+
Equals: output.equals != null ? deserializeAws_restJson1Equals(output.equals, context) : undefined,
|
|
4996
5004
|
GreaterThan: (0, smithy_client_1.expectLong)(output.greaterThan),
|
|
4997
5005
|
GreaterThanOrEqual: (0, smithy_client_1.expectLong)(output.greaterThanOrEqual),
|
|
4998
5006
|
Gt: (0, smithy_client_1.expectInt32)(output.gt),
|
|
@@ -5001,10 +5009,8 @@ const deserializeAws_restJson1Condition = (output, context) => {
|
|
|
5001
5009
|
LessThanOrEqual: (0, smithy_client_1.expectLong)(output.lessThanOrEqual),
|
|
5002
5010
|
Lt: (0, smithy_client_1.expectInt32)(output.lt),
|
|
5003
5011
|
Lte: (0, smithy_client_1.expectInt32)(output.lte),
|
|
5004
|
-
Neq: output.neq
|
|
5005
|
-
NotEquals: output.notEquals
|
|
5006
|
-
? deserializeAws_restJson1NotEquals(output.notEquals, context)
|
|
5007
|
-
: undefined,
|
|
5012
|
+
Neq: output.neq != null ? deserializeAws_restJson1Neq(output.neq, context) : undefined,
|
|
5013
|
+
NotEquals: output.notEquals != null ? deserializeAws_restJson1NotEquals(output.notEquals, context) : undefined,
|
|
5008
5014
|
};
|
|
5009
5015
|
};
|
|
5010
5016
|
const deserializeAws_restJson1Container = (output, context) => {
|
|
@@ -5014,12 +5020,10 @@ const deserializeAws_restJson1Container = (output, context) => {
|
|
|
5014
5020
|
Image: (0, smithy_client_1.expectString)(output.image),
|
|
5015
5021
|
ImagePrefix: (0, smithy_client_1.expectString)(output.imagePrefix),
|
|
5016
5022
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5017
|
-
SecurityContext: output.securityContext
|
|
5023
|
+
SecurityContext: output.securityContext != null
|
|
5018
5024
|
? deserializeAws_restJson1SecurityContext(output.securityContext, context)
|
|
5019
5025
|
: undefined,
|
|
5020
|
-
VolumeMounts: output.volumeMounts
|
|
5021
|
-
? deserializeAws_restJson1VolumeMounts(output.volumeMounts, context)
|
|
5022
|
-
: undefined,
|
|
5026
|
+
VolumeMounts: output.volumeMounts != null ? deserializeAws_restJson1VolumeMounts(output.volumeMounts, context) : undefined,
|
|
5023
5027
|
};
|
|
5024
5028
|
};
|
|
5025
5029
|
const deserializeAws_restJson1Containers = (output, context) => {
|
|
@@ -5063,21 +5067,17 @@ const deserializeAws_restJson1Criterion = (output, context) => {
|
|
|
5063
5067
|
};
|
|
5064
5068
|
const deserializeAws_restJson1DataSourceConfigurationsResult = (output, context) => {
|
|
5065
5069
|
return {
|
|
5066
|
-
CloudTrail: output.cloudTrail
|
|
5070
|
+
CloudTrail: output.cloudTrail != null
|
|
5067
5071
|
? deserializeAws_restJson1CloudTrailConfigurationResult(output.cloudTrail, context)
|
|
5068
5072
|
: undefined,
|
|
5069
|
-
DNSLogs: output.dnsLogs
|
|
5070
|
-
|
|
5071
|
-
: undefined,
|
|
5072
|
-
FlowLogs: output.flowLogs !== undefined && output.flowLogs !== null
|
|
5073
|
+
DNSLogs: output.dnsLogs != null ? deserializeAws_restJson1DNSLogsConfigurationResult(output.dnsLogs, context) : undefined,
|
|
5074
|
+
FlowLogs: output.flowLogs != null
|
|
5073
5075
|
? deserializeAws_restJson1FlowLogsConfigurationResult(output.flowLogs, context)
|
|
5074
5076
|
: undefined,
|
|
5075
|
-
Kubernetes: output.kubernetes
|
|
5077
|
+
Kubernetes: output.kubernetes != null
|
|
5076
5078
|
? deserializeAws_restJson1KubernetesConfigurationResult(output.kubernetes, context)
|
|
5077
5079
|
: undefined,
|
|
5078
|
-
S3Logs: output.s3Logs
|
|
5079
|
-
? deserializeAws_restJson1S3LogsConfigurationResult(output.s3Logs, context)
|
|
5080
|
-
: undefined,
|
|
5080
|
+
S3Logs: output.s3Logs != null ? deserializeAws_restJson1S3LogsConfigurationResult(output.s3Logs, context) : undefined,
|
|
5081
5081
|
};
|
|
5082
5082
|
};
|
|
5083
5083
|
const deserializeAws_restJson1DataSourceFreeTrial = (output, context) => {
|
|
@@ -5087,21 +5087,13 @@ const deserializeAws_restJson1DataSourceFreeTrial = (output, context) => {
|
|
|
5087
5087
|
};
|
|
5088
5088
|
const deserializeAws_restJson1DataSourcesFreeTrial = (output, context) => {
|
|
5089
5089
|
return {
|
|
5090
|
-
CloudTrail: output.cloudTrail
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
? deserializeAws_restJson1DataSourceFreeTrial(output.dnsLogs, context)
|
|
5095
|
-
: undefined,
|
|
5096
|
-
FlowLogs: output.flowLogs !== undefined && output.flowLogs !== null
|
|
5097
|
-
? deserializeAws_restJson1DataSourceFreeTrial(output.flowLogs, context)
|
|
5098
|
-
: undefined,
|
|
5099
|
-
Kubernetes: output.kubernetes !== undefined && output.kubernetes !== null
|
|
5090
|
+
CloudTrail: output.cloudTrail != null ? deserializeAws_restJson1DataSourceFreeTrial(output.cloudTrail, context) : undefined,
|
|
5091
|
+
DnsLogs: output.dnsLogs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.dnsLogs, context) : undefined,
|
|
5092
|
+
FlowLogs: output.flowLogs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.flowLogs, context) : undefined,
|
|
5093
|
+
Kubernetes: output.kubernetes != null
|
|
5100
5094
|
? deserializeAws_restJson1KubernetesDataSourceFreeTrial(output.kubernetes, context)
|
|
5101
5095
|
: undefined,
|
|
5102
|
-
S3Logs: output.s3Logs
|
|
5103
|
-
? deserializeAws_restJson1DataSourceFreeTrial(output.s3Logs, context)
|
|
5104
|
-
: undefined,
|
|
5096
|
+
S3Logs: output.s3Logs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.s3Logs, context) : undefined,
|
|
5105
5097
|
};
|
|
5106
5098
|
};
|
|
5107
5099
|
const deserializeAws_restJson1DefaultServerSideEncryption = (output, context) => {
|
|
@@ -5165,14 +5157,10 @@ const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
|
5165
5157
|
const deserializeAws_restJson1EksClusterDetails = (output, context) => {
|
|
5166
5158
|
return {
|
|
5167
5159
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5168
|
-
CreatedAt: output.createdAt
|
|
5169
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5170
|
-
: undefined,
|
|
5160
|
+
CreatedAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5171
5161
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5172
5162
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
5173
|
-
Tags: output.tags
|
|
5174
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
5175
|
-
: undefined,
|
|
5163
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
5176
5164
|
VpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
5177
5165
|
};
|
|
5178
5166
|
};
|
|
@@ -5200,7 +5188,7 @@ const deserializeAws_restJson1Equals = (output, context) => {
|
|
|
5200
5188
|
};
|
|
5201
5189
|
const deserializeAws_restJson1Evidence = (output, context) => {
|
|
5202
5190
|
return {
|
|
5203
|
-
ThreatIntelligenceDetails: output.threatIntelligenceDetails
|
|
5191
|
+
ThreatIntelligenceDetails: output.threatIntelligenceDetails != null
|
|
5204
5192
|
? deserializeAws_restJson1ThreatIntelligenceDetails(output.threatIntelligenceDetails, context)
|
|
5205
5193
|
: undefined,
|
|
5206
5194
|
};
|
|
@@ -5226,13 +5214,9 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
5226
5214
|
Id: (0, smithy_client_1.expectString)(output.id),
|
|
5227
5215
|
Partition: (0, smithy_client_1.expectString)(output.partition),
|
|
5228
5216
|
Region: (0, smithy_client_1.expectString)(output.region),
|
|
5229
|
-
Resource: output.resource
|
|
5230
|
-
? deserializeAws_restJson1Resource(output.resource, context)
|
|
5231
|
-
: undefined,
|
|
5217
|
+
Resource: output.resource != null ? deserializeAws_restJson1Resource(output.resource, context) : undefined,
|
|
5232
5218
|
SchemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
|
|
5233
|
-
Service: output.service
|
|
5234
|
-
? deserializeAws_restJson1Service(output.service, context)
|
|
5235
|
-
: undefined,
|
|
5219
|
+
Service: output.service != null ? deserializeAws_restJson1Service(output.service, context) : undefined,
|
|
5236
5220
|
Severity: (0, smithy_client_1.limitedParseDouble)(output.severity),
|
|
5237
5221
|
Title: (0, smithy_client_1.expectString)(output.title),
|
|
5238
5222
|
Type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -5241,9 +5225,7 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
5241
5225
|
};
|
|
5242
5226
|
const deserializeAws_restJson1FindingCriteria = (output, context) => {
|
|
5243
5227
|
return {
|
|
5244
|
-
Criterion: output.criterion
|
|
5245
|
-
? deserializeAws_restJson1Criterion(output.criterion, context)
|
|
5246
|
-
: undefined,
|
|
5228
|
+
Criterion: output.criterion != null ? deserializeAws_restJson1Criterion(output.criterion, context) : undefined,
|
|
5247
5229
|
};
|
|
5248
5230
|
};
|
|
5249
5231
|
const deserializeAws_restJson1FindingIds = (output, context) => {
|
|
@@ -5270,7 +5252,7 @@ const deserializeAws_restJson1Findings = (output, context) => {
|
|
|
5270
5252
|
};
|
|
5271
5253
|
const deserializeAws_restJson1FindingStatistics = (output, context) => {
|
|
5272
5254
|
return {
|
|
5273
|
-
CountBySeverity: output.countBySeverity
|
|
5255
|
+
CountBySeverity: output.countBySeverity != null
|
|
5274
5256
|
? deserializeAws_restJson1CountBySeverity(output.countBySeverity, context)
|
|
5275
5257
|
: undefined,
|
|
5276
5258
|
};
|
|
@@ -5311,7 +5293,7 @@ const deserializeAws_restJson1IamInstanceProfile = (output, context) => {
|
|
|
5311
5293
|
const deserializeAws_restJson1InstanceDetails = (output, context) => {
|
|
5312
5294
|
return {
|
|
5313
5295
|
AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
|
|
5314
|
-
IamInstanceProfile: output.iamInstanceProfile
|
|
5296
|
+
IamInstanceProfile: output.iamInstanceProfile != null
|
|
5315
5297
|
? deserializeAws_restJson1IamInstanceProfile(output.iamInstanceProfile, context)
|
|
5316
5298
|
: undefined,
|
|
5317
5299
|
ImageDescription: (0, smithy_client_1.expectString)(output.imageDescription),
|
|
@@ -5320,17 +5302,13 @@ const deserializeAws_restJson1InstanceDetails = (output, context) => {
|
|
|
5320
5302
|
InstanceState: (0, smithy_client_1.expectString)(output.instanceState),
|
|
5321
5303
|
InstanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
5322
5304
|
LaunchTime: (0, smithy_client_1.expectString)(output.launchTime),
|
|
5323
|
-
NetworkInterfaces: output.networkInterfaces
|
|
5305
|
+
NetworkInterfaces: output.networkInterfaces != null
|
|
5324
5306
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
5325
5307
|
: undefined,
|
|
5326
5308
|
OutpostArn: (0, smithy_client_1.expectString)(output.outpostArn),
|
|
5327
5309
|
Platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5328
|
-
ProductCodes: output.productCodes
|
|
5329
|
-
|
|
5330
|
-
: undefined,
|
|
5331
|
-
Tags: output.tags !== undefined && output.tags !== null
|
|
5332
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
5333
|
-
: undefined,
|
|
5310
|
+
ProductCodes: output.productCodes != null ? deserializeAws_restJson1ProductCodes(output.productCodes, context) : undefined,
|
|
5311
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
5334
5312
|
};
|
|
5335
5313
|
};
|
|
5336
5314
|
const deserializeAws_restJson1Invitation = (output, context) => {
|
|
@@ -5377,13 +5355,11 @@ const deserializeAws_restJson1Ipv6Addresses = (output, context) => {
|
|
|
5377
5355
|
const deserializeAws_restJson1KubernetesApiCallAction = (output, context) => {
|
|
5378
5356
|
return {
|
|
5379
5357
|
Parameters: (0, smithy_client_1.expectString)(output.parameters),
|
|
5380
|
-
RemoteIpDetails: output.remoteIpDetails
|
|
5358
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
5381
5359
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5382
5360
|
: undefined,
|
|
5383
5361
|
RequestUri: (0, smithy_client_1.expectString)(output.requestUri),
|
|
5384
|
-
SourceIps: output.sourceIps
|
|
5385
|
-
? deserializeAws_restJson1SourceIps(output.sourceIps, context)
|
|
5386
|
-
: undefined,
|
|
5362
|
+
SourceIps: output.sourceIps != null ? deserializeAws_restJson1SourceIps(output.sourceIps, context) : undefined,
|
|
5387
5363
|
StatusCode: (0, smithy_client_1.expectInt32)(output.statusCode),
|
|
5388
5364
|
UserAgent: (0, smithy_client_1.expectString)(output.userAgent),
|
|
5389
5365
|
Verb: (0, smithy_client_1.expectString)(output.verb),
|
|
@@ -5396,50 +5372,42 @@ const deserializeAws_restJson1KubernetesAuditLogsConfigurationResult = (output,
|
|
|
5396
5372
|
};
|
|
5397
5373
|
const deserializeAws_restJson1KubernetesConfigurationResult = (output, context) => {
|
|
5398
5374
|
return {
|
|
5399
|
-
AuditLogs: output.auditLogs
|
|
5375
|
+
AuditLogs: output.auditLogs != null
|
|
5400
5376
|
? deserializeAws_restJson1KubernetesAuditLogsConfigurationResult(output.auditLogs, context)
|
|
5401
5377
|
: undefined,
|
|
5402
5378
|
};
|
|
5403
5379
|
};
|
|
5404
5380
|
const deserializeAws_restJson1KubernetesDataSourceFreeTrial = (output, context) => {
|
|
5405
5381
|
return {
|
|
5406
|
-
AuditLogs: output.auditLogs
|
|
5407
|
-
? deserializeAws_restJson1DataSourceFreeTrial(output.auditLogs, context)
|
|
5408
|
-
: undefined,
|
|
5382
|
+
AuditLogs: output.auditLogs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.auditLogs, context) : undefined,
|
|
5409
5383
|
};
|
|
5410
5384
|
};
|
|
5411
5385
|
const deserializeAws_restJson1KubernetesDetails = (output, context) => {
|
|
5412
5386
|
return {
|
|
5413
|
-
KubernetesUserDetails: output.kubernetesUserDetails
|
|
5387
|
+
KubernetesUserDetails: output.kubernetesUserDetails != null
|
|
5414
5388
|
? deserializeAws_restJson1KubernetesUserDetails(output.kubernetesUserDetails, context)
|
|
5415
5389
|
: undefined,
|
|
5416
|
-
KubernetesWorkloadDetails: output.kubernetesWorkloadDetails
|
|
5390
|
+
KubernetesWorkloadDetails: output.kubernetesWorkloadDetails != null
|
|
5417
5391
|
? deserializeAws_restJson1KubernetesWorkloadDetails(output.kubernetesWorkloadDetails, context)
|
|
5418
5392
|
: undefined,
|
|
5419
5393
|
};
|
|
5420
5394
|
};
|
|
5421
5395
|
const deserializeAws_restJson1KubernetesUserDetails = (output, context) => {
|
|
5422
5396
|
return {
|
|
5423
|
-
Groups: output.groups
|
|
5424
|
-
? deserializeAws_restJson1Groups(output.groups, context)
|
|
5425
|
-
: undefined,
|
|
5397
|
+
Groups: output.groups != null ? deserializeAws_restJson1Groups(output.groups, context) : undefined,
|
|
5426
5398
|
Uid: (0, smithy_client_1.expectString)(output.uid),
|
|
5427
5399
|
Username: (0, smithy_client_1.expectString)(output.username),
|
|
5428
5400
|
};
|
|
5429
5401
|
};
|
|
5430
5402
|
const deserializeAws_restJson1KubernetesWorkloadDetails = (output, context) => {
|
|
5431
5403
|
return {
|
|
5432
|
-
Containers: output.containers
|
|
5433
|
-
? deserializeAws_restJson1Containers(output.containers, context)
|
|
5434
|
-
: undefined,
|
|
5404
|
+
Containers: output.containers != null ? deserializeAws_restJson1Containers(output.containers, context) : undefined,
|
|
5435
5405
|
HostNetwork: (0, smithy_client_1.expectBoolean)(output.hostNetwork),
|
|
5436
5406
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5437
5407
|
Namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
5438
5408
|
Type: (0, smithy_client_1.expectString)(output.type),
|
|
5439
5409
|
Uid: (0, smithy_client_1.expectString)(output.uid),
|
|
5440
|
-
Volumes: output.volumes
|
|
5441
|
-
? deserializeAws_restJson1Volumes(output.volumes, context)
|
|
5442
|
-
: undefined,
|
|
5410
|
+
Volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
5443
5411
|
};
|
|
5444
5412
|
};
|
|
5445
5413
|
const deserializeAws_restJson1LocalIpDetails = (output, context) => {
|
|
@@ -5476,7 +5444,7 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
5476
5444
|
const deserializeAws_restJson1MemberDataSourceConfiguration = (output, context) => {
|
|
5477
5445
|
return {
|
|
5478
5446
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5479
|
-
DataSources: output.dataSources
|
|
5447
|
+
DataSources: output.dataSources != null
|
|
5480
5448
|
? deserializeAws_restJson1DataSourceConfigurationsResult(output.dataSources, context)
|
|
5481
5449
|
: undefined,
|
|
5482
5450
|
};
|
|
@@ -5518,35 +5486,33 @@ const deserializeAws_restJson1NetworkConnectionAction = (output, context) => {
|
|
|
5518
5486
|
return {
|
|
5519
5487
|
Blocked: (0, smithy_client_1.expectBoolean)(output.blocked),
|
|
5520
5488
|
ConnectionDirection: (0, smithy_client_1.expectString)(output.connectionDirection),
|
|
5521
|
-
LocalIpDetails: output.localIpDetails
|
|
5489
|
+
LocalIpDetails: output.localIpDetails != null
|
|
5522
5490
|
? deserializeAws_restJson1LocalIpDetails(output.localIpDetails, context)
|
|
5523
5491
|
: undefined,
|
|
5524
|
-
LocalPortDetails: output.localPortDetails
|
|
5492
|
+
LocalPortDetails: output.localPortDetails != null
|
|
5525
5493
|
? deserializeAws_restJson1LocalPortDetails(output.localPortDetails, context)
|
|
5526
5494
|
: undefined,
|
|
5527
5495
|
Protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
5528
|
-
RemoteIpDetails: output.remoteIpDetails
|
|
5496
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
5529
5497
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5530
5498
|
: undefined,
|
|
5531
|
-
RemotePortDetails: output.remotePortDetails
|
|
5499
|
+
RemotePortDetails: output.remotePortDetails != null
|
|
5532
5500
|
? deserializeAws_restJson1RemotePortDetails(output.remotePortDetails, context)
|
|
5533
5501
|
: undefined,
|
|
5534
5502
|
};
|
|
5535
5503
|
};
|
|
5536
5504
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
5537
5505
|
return {
|
|
5538
|
-
Ipv6Addresses: output.ipv6Addresses
|
|
5539
|
-
? deserializeAws_restJson1Ipv6Addresses(output.ipv6Addresses, context)
|
|
5540
|
-
: undefined,
|
|
5506
|
+
Ipv6Addresses: output.ipv6Addresses != null ? deserializeAws_restJson1Ipv6Addresses(output.ipv6Addresses, context) : undefined,
|
|
5541
5507
|
NetworkInterfaceId: (0, smithy_client_1.expectString)(output.networkInterfaceId),
|
|
5542
5508
|
PrivateDnsName: (0, smithy_client_1.expectString)(output.privateDnsName),
|
|
5543
5509
|
PrivateIpAddress: (0, smithy_client_1.expectString)(output.privateIpAddress),
|
|
5544
|
-
PrivateIpAddresses: output.privateIpAddresses
|
|
5510
|
+
PrivateIpAddresses: output.privateIpAddresses != null
|
|
5545
5511
|
? deserializeAws_restJson1PrivateIpAddresses(output.privateIpAddresses, context)
|
|
5546
5512
|
: undefined,
|
|
5547
5513
|
PublicDnsName: (0, smithy_client_1.expectString)(output.publicDnsName),
|
|
5548
5514
|
PublicIp: (0, smithy_client_1.expectString)(output.publicIp),
|
|
5549
|
-
SecurityGroups: output.securityGroups
|
|
5515
|
+
SecurityGroups: output.securityGroups != null
|
|
5550
5516
|
? deserializeAws_restJson1SecurityGroups(output.securityGroups, context)
|
|
5551
5517
|
: undefined,
|
|
5552
5518
|
SubnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
@@ -5585,10 +5551,10 @@ const deserializeAws_restJson1Organization = (output, context) => {
|
|
|
5585
5551
|
};
|
|
5586
5552
|
const deserializeAws_restJson1OrganizationDataSourceConfigurationsResult = (output, context) => {
|
|
5587
5553
|
return {
|
|
5588
|
-
Kubernetes: output.kubernetes
|
|
5554
|
+
Kubernetes: output.kubernetes != null
|
|
5589
5555
|
? deserializeAws_restJson1OrganizationKubernetesConfigurationResult(output.kubernetes, context)
|
|
5590
5556
|
: undefined,
|
|
5591
|
-
S3Logs: output.s3Logs
|
|
5557
|
+
S3Logs: output.s3Logs != null
|
|
5592
5558
|
? deserializeAws_restJson1OrganizationS3LogsConfigurationResult(output.s3Logs, context)
|
|
5593
5559
|
: undefined,
|
|
5594
5560
|
};
|
|
@@ -5600,7 +5566,7 @@ const deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult
|
|
|
5600
5566
|
};
|
|
5601
5567
|
const deserializeAws_restJson1OrganizationKubernetesConfigurationResult = (output, context) => {
|
|
5602
5568
|
return {
|
|
5603
|
-
AuditLogs: output.auditLogs
|
|
5569
|
+
AuditLogs: output.auditLogs != null
|
|
5604
5570
|
? deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult(output.auditLogs, context)
|
|
5605
5571
|
: undefined,
|
|
5606
5572
|
};
|
|
@@ -5617,10 +5583,10 @@ const deserializeAws_restJson1Owner = (output, context) => {
|
|
|
5617
5583
|
};
|
|
5618
5584
|
const deserializeAws_restJson1PermissionConfiguration = (output, context) => {
|
|
5619
5585
|
return {
|
|
5620
|
-
AccountLevelPermissions: output.accountLevelPermissions
|
|
5586
|
+
AccountLevelPermissions: output.accountLevelPermissions != null
|
|
5621
5587
|
? deserializeAws_restJson1AccountLevelPermissions(output.accountLevelPermissions, context)
|
|
5622
5588
|
: undefined,
|
|
5623
|
-
BucketLevelPermissions: output.bucketLevelPermissions
|
|
5589
|
+
BucketLevelPermissions: output.bucketLevelPermissions != null
|
|
5624
5590
|
? deserializeAws_restJson1BucketLevelPermissions(output.bucketLevelPermissions, context)
|
|
5625
5591
|
: undefined,
|
|
5626
5592
|
};
|
|
@@ -5628,20 +5594,20 @@ const deserializeAws_restJson1PermissionConfiguration = (output, context) => {
|
|
|
5628
5594
|
const deserializeAws_restJson1PortProbeAction = (output, context) => {
|
|
5629
5595
|
return {
|
|
5630
5596
|
Blocked: (0, smithy_client_1.expectBoolean)(output.blocked),
|
|
5631
|
-
PortProbeDetails: output.portProbeDetails
|
|
5597
|
+
PortProbeDetails: output.portProbeDetails != null
|
|
5632
5598
|
? deserializeAws_restJson1PortProbeDetails(output.portProbeDetails, context)
|
|
5633
5599
|
: undefined,
|
|
5634
5600
|
};
|
|
5635
5601
|
};
|
|
5636
5602
|
const deserializeAws_restJson1PortProbeDetail = (output, context) => {
|
|
5637
5603
|
return {
|
|
5638
|
-
LocalIpDetails: output.localIpDetails
|
|
5604
|
+
LocalIpDetails: output.localIpDetails != null
|
|
5639
5605
|
? deserializeAws_restJson1LocalIpDetails(output.localIpDetails, context)
|
|
5640
5606
|
: undefined,
|
|
5641
|
-
LocalPortDetails: output.localPortDetails
|
|
5607
|
+
LocalPortDetails: output.localPortDetails != null
|
|
5642
5608
|
? deserializeAws_restJson1LocalPortDetails(output.localPortDetails, context)
|
|
5643
5609
|
: undefined,
|
|
5644
|
-
RemoteIpDetails: output.remoteIpDetails
|
|
5610
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
5645
5611
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5646
5612
|
: undefined,
|
|
5647
5613
|
};
|
|
@@ -5694,7 +5660,7 @@ const deserializeAws_restJson1ProductCodes = (output, context) => {
|
|
|
5694
5660
|
const deserializeAws_restJson1PublicAccess = (output, context) => {
|
|
5695
5661
|
return {
|
|
5696
5662
|
EffectivePermission: (0, smithy_client_1.expectString)(output.effectivePermission),
|
|
5697
|
-
PermissionConfiguration: output.permissionConfiguration
|
|
5663
|
+
PermissionConfiguration: output.permissionConfiguration != null
|
|
5698
5664
|
? deserializeAws_restJson1PermissionConfiguration(output.permissionConfiguration, context)
|
|
5699
5665
|
: undefined,
|
|
5700
5666
|
};
|
|
@@ -5707,19 +5673,11 @@ const deserializeAws_restJson1RemoteAccountDetails = (output, context) => {
|
|
|
5707
5673
|
};
|
|
5708
5674
|
const deserializeAws_restJson1RemoteIpDetails = (output, context) => {
|
|
5709
5675
|
return {
|
|
5710
|
-
City: output.city
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
Country: output.country !== undefined && output.country !== null
|
|
5714
|
-
? deserializeAws_restJson1Country(output.country, context)
|
|
5715
|
-
: undefined,
|
|
5716
|
-
GeoLocation: output.geoLocation !== undefined && output.geoLocation !== null
|
|
5717
|
-
? deserializeAws_restJson1GeoLocation(output.geoLocation, context)
|
|
5718
|
-
: undefined,
|
|
5676
|
+
City: output.city != null ? deserializeAws_restJson1City(output.city, context) : undefined,
|
|
5677
|
+
Country: output.country != null ? deserializeAws_restJson1Country(output.country, context) : undefined,
|
|
5678
|
+
GeoLocation: output.geoLocation != null ? deserializeAws_restJson1GeoLocation(output.geoLocation, context) : undefined,
|
|
5719
5679
|
IpAddressV4: (0, smithy_client_1.expectString)(output.ipAddressV4),
|
|
5720
|
-
Organization: output.organization
|
|
5721
|
-
? deserializeAws_restJson1Organization(output.organization, context)
|
|
5722
|
-
: undefined,
|
|
5680
|
+
Organization: output.organization != null ? deserializeAws_restJson1Organization(output.organization, context) : undefined,
|
|
5723
5681
|
};
|
|
5724
5682
|
};
|
|
5725
5683
|
const deserializeAws_restJson1RemotePortDetails = (output, context) => {
|
|
@@ -5730,20 +5688,20 @@ const deserializeAws_restJson1RemotePortDetails = (output, context) => {
|
|
|
5730
5688
|
};
|
|
5731
5689
|
const deserializeAws_restJson1Resource = (output, context) => {
|
|
5732
5690
|
return {
|
|
5733
|
-
AccessKeyDetails: output.accessKeyDetails
|
|
5691
|
+
AccessKeyDetails: output.accessKeyDetails != null
|
|
5734
5692
|
? deserializeAws_restJson1AccessKeyDetails(output.accessKeyDetails, context)
|
|
5735
5693
|
: undefined,
|
|
5736
|
-
EksClusterDetails: output.eksClusterDetails
|
|
5694
|
+
EksClusterDetails: output.eksClusterDetails != null
|
|
5737
5695
|
? deserializeAws_restJson1EksClusterDetails(output.eksClusterDetails, context)
|
|
5738
5696
|
: undefined,
|
|
5739
|
-
InstanceDetails: output.instanceDetails
|
|
5697
|
+
InstanceDetails: output.instanceDetails != null
|
|
5740
5698
|
? deserializeAws_restJson1InstanceDetails(output.instanceDetails, context)
|
|
5741
5699
|
: undefined,
|
|
5742
|
-
KubernetesDetails: output.kubernetesDetails
|
|
5700
|
+
KubernetesDetails: output.kubernetesDetails != null
|
|
5743
5701
|
? deserializeAws_restJson1KubernetesDetails(output.kubernetesDetails, context)
|
|
5744
5702
|
: undefined,
|
|
5745
5703
|
ResourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
5746
|
-
S3BucketDetails: output.s3BucketDetails
|
|
5704
|
+
S3BucketDetails: output.s3BucketDetails != null
|
|
5747
5705
|
? deserializeAws_restJson1S3BucketDetails(output.s3BucketDetails, context)
|
|
5748
5706
|
: undefined,
|
|
5749
5707
|
};
|
|
@@ -5751,22 +5709,14 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
5751
5709
|
const deserializeAws_restJson1S3BucketDetail = (output, context) => {
|
|
5752
5710
|
return {
|
|
5753
5711
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5754
|
-
CreatedAt: output.createdAt
|
|
5755
|
-
|
|
5756
|
-
: undefined,
|
|
5757
|
-
DefaultServerSideEncryption: output.defaultServerSideEncryption !== undefined && output.defaultServerSideEncryption !== null
|
|
5712
|
+
CreatedAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5713
|
+
DefaultServerSideEncryption: output.defaultServerSideEncryption != null
|
|
5758
5714
|
? deserializeAws_restJson1DefaultServerSideEncryption(output.defaultServerSideEncryption, context)
|
|
5759
5715
|
: undefined,
|
|
5760
5716
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5761
|
-
Owner: output.owner
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
5765
|
-
? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
|
|
5766
|
-
: undefined,
|
|
5767
|
-
Tags: output.tags !== undefined && output.tags !== null
|
|
5768
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
5769
|
-
: undefined,
|
|
5717
|
+
Owner: output.owner != null ? deserializeAws_restJson1Owner(output.owner, context) : undefined,
|
|
5718
|
+
PublicAccess: output.publicAccess != null ? deserializeAws_restJson1PublicAccess(output.publicAccess, context) : undefined,
|
|
5719
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
5770
5720
|
Type: (0, smithy_client_1.expectString)(output.type),
|
|
5771
5721
|
};
|
|
5772
5722
|
};
|
|
@@ -5810,10 +5760,8 @@ const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
|
5810
5760
|
};
|
|
5811
5761
|
const deserializeAws_restJson1Service = (output, context) => {
|
|
5812
5762
|
return {
|
|
5813
|
-
Action: output.action
|
|
5814
|
-
|
|
5815
|
-
: undefined,
|
|
5816
|
-
AdditionalInfo: output.additionalInfo !== undefined && output.additionalInfo !== null
|
|
5763
|
+
Action: output.action != null ? deserializeAws_restJson1Action(output.action, context) : undefined,
|
|
5764
|
+
AdditionalInfo: output.additionalInfo != null
|
|
5817
5765
|
? deserializeAws_restJson1ServiceAdditionalInfo(output.additionalInfo, context)
|
|
5818
5766
|
: undefined,
|
|
5819
5767
|
Archived: (0, smithy_client_1.expectBoolean)(output.archived),
|
|
@@ -5821,9 +5769,7 @@ const deserializeAws_restJson1Service = (output, context) => {
|
|
|
5821
5769
|
DetectorId: (0, smithy_client_1.expectString)(output.detectorId),
|
|
5822
5770
|
EventFirstSeen: (0, smithy_client_1.expectString)(output.eventFirstSeen),
|
|
5823
5771
|
EventLastSeen: (0, smithy_client_1.expectString)(output.eventLastSeen),
|
|
5824
|
-
Evidence: output.evidence
|
|
5825
|
-
? deserializeAws_restJson1Evidence(output.evidence, context)
|
|
5826
|
-
: undefined,
|
|
5772
|
+
Evidence: output.evidence != null ? deserializeAws_restJson1Evidence(output.evidence, context) : undefined,
|
|
5827
5773
|
ResourceRole: (0, smithy_client_1.expectString)(output.resourceRole),
|
|
5828
5774
|
ServiceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
5829
5775
|
UserFeedback: (0, smithy_client_1.expectString)(output.userFeedback),
|
|
@@ -5877,9 +5823,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
5877
5823
|
const deserializeAws_restJson1ThreatIntelligenceDetail = (output, context) => {
|
|
5878
5824
|
return {
|
|
5879
5825
|
ThreatListName: (0, smithy_client_1.expectString)(output.threatListName),
|
|
5880
|
-
ThreatNames: output.threatNames
|
|
5881
|
-
? deserializeAws_restJson1ThreatNames(output.threatNames, context)
|
|
5882
|
-
: undefined,
|
|
5826
|
+
ThreatNames: output.threatNames != null ? deserializeAws_restJson1ThreatNames(output.threatNames, context) : undefined,
|
|
5883
5827
|
};
|
|
5884
5828
|
};
|
|
5885
5829
|
const deserializeAws_restJson1ThreatIntelligenceDetails = (output, context) => {
|
|
@@ -5941,9 +5885,7 @@ const deserializeAws_restJson1UnprocessedAccounts = (output, context) => {
|
|
|
5941
5885
|
const deserializeAws_restJson1UsageAccountResult = (output, context) => {
|
|
5942
5886
|
return {
|
|
5943
5887
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5944
|
-
Total: output.total
|
|
5945
|
-
? deserializeAws_restJson1Total(output.total, context)
|
|
5946
|
-
: undefined,
|
|
5888
|
+
Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
|
|
5947
5889
|
};
|
|
5948
5890
|
};
|
|
5949
5891
|
const deserializeAws_restJson1UsageAccountResultList = (output, context) => {
|
|
@@ -5960,9 +5902,7 @@ const deserializeAws_restJson1UsageAccountResultList = (output, context) => {
|
|
|
5960
5902
|
const deserializeAws_restJson1UsageDataSourceResult = (output, context) => {
|
|
5961
5903
|
return {
|
|
5962
5904
|
DataSource: (0, smithy_client_1.expectString)(output.dataSource),
|
|
5963
|
-
Total: output.total
|
|
5964
|
-
? deserializeAws_restJson1Total(output.total, context)
|
|
5965
|
-
: undefined,
|
|
5905
|
+
Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
|
|
5966
5906
|
};
|
|
5967
5907
|
};
|
|
5968
5908
|
const deserializeAws_restJson1UsageDataSourceResultList = (output, context) => {
|
|
@@ -5979,9 +5919,7 @@ const deserializeAws_restJson1UsageDataSourceResultList = (output, context) => {
|
|
|
5979
5919
|
const deserializeAws_restJson1UsageResourceResult = (output, context) => {
|
|
5980
5920
|
return {
|
|
5981
5921
|
Resource: (0, smithy_client_1.expectString)(output.resource),
|
|
5982
|
-
Total: output.total
|
|
5983
|
-
? deserializeAws_restJson1Total(output.total, context)
|
|
5984
|
-
: undefined,
|
|
5922
|
+
Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
|
|
5985
5923
|
};
|
|
5986
5924
|
};
|
|
5987
5925
|
const deserializeAws_restJson1UsageResourceResultList = (output, context) => {
|
|
@@ -5997,25 +5935,23 @@ const deserializeAws_restJson1UsageResourceResultList = (output, context) => {
|
|
|
5997
5935
|
};
|
|
5998
5936
|
const deserializeAws_restJson1UsageStatistics = (output, context) => {
|
|
5999
5937
|
return {
|
|
6000
|
-
SumByAccount: output.sumByAccount
|
|
5938
|
+
SumByAccount: output.sumByAccount != null
|
|
6001
5939
|
? deserializeAws_restJson1UsageAccountResultList(output.sumByAccount, context)
|
|
6002
5940
|
: undefined,
|
|
6003
|
-
SumByDataSource: output.sumByDataSource
|
|
5941
|
+
SumByDataSource: output.sumByDataSource != null
|
|
6004
5942
|
? deserializeAws_restJson1UsageDataSourceResultList(output.sumByDataSource, context)
|
|
6005
5943
|
: undefined,
|
|
6006
|
-
SumByResource: output.sumByResource
|
|
5944
|
+
SumByResource: output.sumByResource != null
|
|
6007
5945
|
? deserializeAws_restJson1UsageResourceResultList(output.sumByResource, context)
|
|
6008
5946
|
: undefined,
|
|
6009
|
-
TopResources: output.topResources
|
|
5947
|
+
TopResources: output.topResources != null
|
|
6010
5948
|
? deserializeAws_restJson1UsageResourceResultList(output.topResources, context)
|
|
6011
5949
|
: undefined,
|
|
6012
5950
|
};
|
|
6013
5951
|
};
|
|
6014
5952
|
const deserializeAws_restJson1Volume = (output, context) => {
|
|
6015
5953
|
return {
|
|
6016
|
-
HostPath: output.hostPath
|
|
6017
|
-
? deserializeAws_restJson1HostPath(output.hostPath, context)
|
|
6018
|
-
: undefined,
|
|
5954
|
+
HostPath: output.hostPath != null ? deserializeAws_restJson1HostPath(output.hostPath, context) : undefined,
|
|
6019
5955
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
6020
5956
|
};
|
|
6021
5957
|
};
|
|
@@ -6096,5 +6032,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6096
6032
|
if (data["__type"] !== undefined) {
|
|
6097
6033
|
return sanitizeErrorCode(data["__type"]);
|
|
6098
6034
|
}
|
|
6099
|
-
return "";
|
|
6100
6035
|
};
|