@aws-sdk/client-guardduty 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +211 -337
- package/dist-es/protocols/Aws_restJson1.js +160 -286
- 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,
|
|
@@ -4652,8 +4619,8 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
4652
4619
|
};
|
|
4653
4620
|
const serializeAws_restJson1AccountDetail = (input, context) => {
|
|
4654
4621
|
return {
|
|
4655
|
-
...(input.AccountId
|
|
4656
|
-
...(input.Email
|
|
4622
|
+
...(input.AccountId != null && { accountId: input.AccountId }),
|
|
4623
|
+
...(input.Email != null && { email: input.Email }),
|
|
4657
4624
|
};
|
|
4658
4625
|
};
|
|
4659
4626
|
const serializeAws_restJson1AccountDetails = (input, context) => {
|
|
@@ -4678,22 +4645,18 @@ const serializeAws_restJson1AccountIds = (input, context) => {
|
|
|
4678
4645
|
};
|
|
4679
4646
|
const serializeAws_restJson1Condition = (input, context) => {
|
|
4680
4647
|
return {
|
|
4681
|
-
...(input.Eq
|
|
4682
|
-
...(input.Equals
|
|
4683
|
-
|
|
4684
|
-
...(input.
|
|
4685
|
-
...(input.
|
|
4686
|
-
|
|
4687
|
-
...(input.
|
|
4688
|
-
...(input.
|
|
4689
|
-
...(input.
|
|
4690
|
-
...(input.
|
|
4691
|
-
|
|
4692
|
-
...(input.
|
|
4693
|
-
...(input.Lte !== undefined && input.Lte !== null && { lte: input.Lte }),
|
|
4694
|
-
...(input.Neq !== undefined && input.Neq !== null && { neq: serializeAws_restJson1Neq(input.Neq, context) }),
|
|
4695
|
-
...(input.NotEquals !== undefined &&
|
|
4696
|
-
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) }),
|
|
4697
4660
|
};
|
|
4698
4661
|
};
|
|
4699
4662
|
const serializeAws_restJson1Criterion = (input, context) => {
|
|
@@ -4709,12 +4672,10 @@ const serializeAws_restJson1Criterion = (input, context) => {
|
|
|
4709
4672
|
};
|
|
4710
4673
|
const serializeAws_restJson1DataSourceConfigurations = (input, context) => {
|
|
4711
4674
|
return {
|
|
4712
|
-
...(input.Kubernetes
|
|
4713
|
-
input.Kubernetes !== null && {
|
|
4675
|
+
...(input.Kubernetes != null && {
|
|
4714
4676
|
kubernetes: serializeAws_restJson1KubernetesConfiguration(input.Kubernetes, context),
|
|
4715
4677
|
}),
|
|
4716
|
-
...(input.S3Logs
|
|
4717
|
-
input.S3Logs !== null && { s3Logs: serializeAws_restJson1S3LogsConfiguration(input.S3Logs, context) }),
|
|
4678
|
+
...(input.S3Logs != null && { s3Logs: serializeAws_restJson1S3LogsConfiguration(input.S3Logs, context) }),
|
|
4718
4679
|
};
|
|
4719
4680
|
};
|
|
4720
4681
|
const serializeAws_restJson1DataSourceList = (input, context) => {
|
|
@@ -4729,9 +4690,8 @@ const serializeAws_restJson1DataSourceList = (input, context) => {
|
|
|
4729
4690
|
};
|
|
4730
4691
|
const serializeAws_restJson1DestinationProperties = (input, context) => {
|
|
4731
4692
|
return {
|
|
4732
|
-
...(input.DestinationArn
|
|
4733
|
-
|
|
4734
|
-
...(input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { kmsKeyArn: input.KmsKeyArn }),
|
|
4693
|
+
...(input.DestinationArn != null && { destinationArn: input.DestinationArn }),
|
|
4694
|
+
...(input.KmsKeyArn != null && { kmsKeyArn: input.KmsKeyArn }),
|
|
4735
4695
|
};
|
|
4736
4696
|
};
|
|
4737
4697
|
const serializeAws_restJson1Eq = (input, context) => {
|
|
@@ -4756,8 +4716,7 @@ const serializeAws_restJson1Equals = (input, context) => {
|
|
|
4756
4716
|
};
|
|
4757
4717
|
const serializeAws_restJson1FindingCriteria = (input, context) => {
|
|
4758
4718
|
return {
|
|
4759
|
-
...(input.Criterion
|
|
4760
|
-
input.Criterion !== null && { criterion: serializeAws_restJson1Criterion(input.Criterion, context) }),
|
|
4719
|
+
...(input.Criterion != null && { criterion: serializeAws_restJson1Criterion(input.Criterion, context) }),
|
|
4761
4720
|
};
|
|
4762
4721
|
};
|
|
4763
4722
|
const serializeAws_restJson1FindingIds = (input, context) => {
|
|
@@ -4792,13 +4751,12 @@ const serializeAws_restJson1FindingTypes = (input, context) => {
|
|
|
4792
4751
|
};
|
|
4793
4752
|
const serializeAws_restJson1KubernetesAuditLogsConfiguration = (input, context) => {
|
|
4794
4753
|
return {
|
|
4795
|
-
...(input.Enable
|
|
4754
|
+
...(input.Enable != null && { enable: input.Enable }),
|
|
4796
4755
|
};
|
|
4797
4756
|
};
|
|
4798
4757
|
const serializeAws_restJson1KubernetesConfiguration = (input, context) => {
|
|
4799
4758
|
return {
|
|
4800
|
-
...(input.AuditLogs
|
|
4801
|
-
input.AuditLogs !== null && {
|
|
4759
|
+
...(input.AuditLogs != null && {
|
|
4802
4760
|
auditLogs: serializeAws_restJson1KubernetesAuditLogsConfiguration(input.AuditLogs, context),
|
|
4803
4761
|
}),
|
|
4804
4762
|
};
|
|
@@ -4825,32 +4783,29 @@ const serializeAws_restJson1NotEquals = (input, context) => {
|
|
|
4825
4783
|
};
|
|
4826
4784
|
const serializeAws_restJson1OrganizationDataSourceConfigurations = (input, context) => {
|
|
4827
4785
|
return {
|
|
4828
|
-
...(input.Kubernetes
|
|
4829
|
-
input.Kubernetes !== null && {
|
|
4786
|
+
...(input.Kubernetes != null && {
|
|
4830
4787
|
kubernetes: serializeAws_restJson1OrganizationKubernetesConfiguration(input.Kubernetes, context),
|
|
4831
4788
|
}),
|
|
4832
|
-
...(input.S3Logs
|
|
4833
|
-
input.S3Logs !== null && {
|
|
4789
|
+
...(input.S3Logs != null && {
|
|
4834
4790
|
s3Logs: serializeAws_restJson1OrganizationS3LogsConfiguration(input.S3Logs, context),
|
|
4835
4791
|
}),
|
|
4836
4792
|
};
|
|
4837
4793
|
};
|
|
4838
4794
|
const serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration = (input, context) => {
|
|
4839
4795
|
return {
|
|
4840
|
-
...(input.AutoEnable
|
|
4796
|
+
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4841
4797
|
};
|
|
4842
4798
|
};
|
|
4843
4799
|
const serializeAws_restJson1OrganizationKubernetesConfiguration = (input, context) => {
|
|
4844
4800
|
return {
|
|
4845
|
-
...(input.AuditLogs
|
|
4846
|
-
input.AuditLogs !== null && {
|
|
4801
|
+
...(input.AuditLogs != null && {
|
|
4847
4802
|
auditLogs: serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration(input.AuditLogs, context),
|
|
4848
4803
|
}),
|
|
4849
4804
|
};
|
|
4850
4805
|
};
|
|
4851
4806
|
const serializeAws_restJson1OrganizationS3LogsConfiguration = (input, context) => {
|
|
4852
4807
|
return {
|
|
4853
|
-
...(input.AutoEnable
|
|
4808
|
+
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4854
4809
|
};
|
|
4855
4810
|
};
|
|
4856
4811
|
const serializeAws_restJson1ResourceList = (input, context) => {
|
|
@@ -4865,13 +4820,13 @@ const serializeAws_restJson1ResourceList = (input, context) => {
|
|
|
4865
4820
|
};
|
|
4866
4821
|
const serializeAws_restJson1S3LogsConfiguration = (input, context) => {
|
|
4867
4822
|
return {
|
|
4868
|
-
...(input.Enable
|
|
4823
|
+
...(input.Enable != null && { enable: input.Enable }),
|
|
4869
4824
|
};
|
|
4870
4825
|
};
|
|
4871
4826
|
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
4872
4827
|
return {
|
|
4873
|
-
...(input.AttributeName
|
|
4874
|
-
...(input.OrderBy
|
|
4828
|
+
...(input.AttributeName != null && { attributeName: input.AttributeName }),
|
|
4829
|
+
...(input.OrderBy != null && { orderBy: input.OrderBy }),
|
|
4875
4830
|
};
|
|
4876
4831
|
};
|
|
4877
4832
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -4887,12 +4842,9 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
4887
4842
|
};
|
|
4888
4843
|
const serializeAws_restJson1UsageCriteria = (input, context) => {
|
|
4889
4844
|
return {
|
|
4890
|
-
...(input.AccountIds
|
|
4891
|
-
|
|
4892
|
-
...(input.
|
|
4893
|
-
input.DataSources !== null && { dataSources: serializeAws_restJson1DataSourceList(input.DataSources, context) }),
|
|
4894
|
-
...(input.Resources !== undefined &&
|
|
4895
|
-
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) }),
|
|
4896
4848
|
};
|
|
4897
4849
|
};
|
|
4898
4850
|
const deserializeAws_restJson1AccessControlList = (output, context) => {
|
|
@@ -4912,7 +4864,7 @@ const deserializeAws_restJson1AccessKeyDetails = (output, context) => {
|
|
|
4912
4864
|
const deserializeAws_restJson1AccountFreeTrialInfo = (output, context) => {
|
|
4913
4865
|
return {
|
|
4914
4866
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
4915
|
-
DataSources: output.dataSources
|
|
4867
|
+
DataSources: output.dataSources != null
|
|
4916
4868
|
? deserializeAws_restJson1DataSourcesFreeTrial(output.dataSources, context)
|
|
4917
4869
|
: undefined,
|
|
4918
4870
|
};
|
|
@@ -4930,7 +4882,7 @@ const deserializeAws_restJson1AccountFreeTrialInfos = (output, context) => {
|
|
|
4930
4882
|
};
|
|
4931
4883
|
const deserializeAws_restJson1AccountLevelPermissions = (output, context) => {
|
|
4932
4884
|
return {
|
|
4933
|
-
BlockPublicAccess: output.blockPublicAccess
|
|
4885
|
+
BlockPublicAccess: output.blockPublicAccess != null
|
|
4934
4886
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
4935
4887
|
: undefined,
|
|
4936
4888
|
};
|
|
@@ -4938,19 +4890,19 @@ const deserializeAws_restJson1AccountLevelPermissions = (output, context) => {
|
|
|
4938
4890
|
const deserializeAws_restJson1Action = (output, context) => {
|
|
4939
4891
|
return {
|
|
4940
4892
|
ActionType: (0, smithy_client_1.expectString)(output.actionType),
|
|
4941
|
-
AwsApiCallAction: output.awsApiCallAction
|
|
4893
|
+
AwsApiCallAction: output.awsApiCallAction != null
|
|
4942
4894
|
? deserializeAws_restJson1AwsApiCallAction(output.awsApiCallAction, context)
|
|
4943
4895
|
: undefined,
|
|
4944
|
-
DnsRequestAction: output.dnsRequestAction
|
|
4896
|
+
DnsRequestAction: output.dnsRequestAction != null
|
|
4945
4897
|
? deserializeAws_restJson1DnsRequestAction(output.dnsRequestAction, context)
|
|
4946
4898
|
: undefined,
|
|
4947
|
-
KubernetesApiCallAction: output.kubernetesApiCallAction
|
|
4899
|
+
KubernetesApiCallAction: output.kubernetesApiCallAction != null
|
|
4948
4900
|
? deserializeAws_restJson1KubernetesApiCallAction(output.kubernetesApiCallAction, context)
|
|
4949
4901
|
: undefined,
|
|
4950
|
-
NetworkConnectionAction: output.networkConnectionAction
|
|
4902
|
+
NetworkConnectionAction: output.networkConnectionAction != null
|
|
4951
4903
|
? deserializeAws_restJson1NetworkConnectionAction(output.networkConnectionAction, context)
|
|
4952
4904
|
: undefined,
|
|
4953
|
-
PortProbeAction: output.portProbeAction
|
|
4905
|
+
PortProbeAction: output.portProbeAction != null
|
|
4954
4906
|
? deserializeAws_restJson1PortProbeAction(output.portProbeAction, context)
|
|
4955
4907
|
: undefined,
|
|
4956
4908
|
};
|
|
@@ -4993,19 +4945,17 @@ const deserializeAws_restJson1AffectedResources = (output, context) => {
|
|
|
4993
4945
|
};
|
|
4994
4946
|
const deserializeAws_restJson1AwsApiCallAction = (output, context) => {
|
|
4995
4947
|
return {
|
|
4996
|
-
AffectedResources: output.affectedResources
|
|
4948
|
+
AffectedResources: output.affectedResources != null
|
|
4997
4949
|
? deserializeAws_restJson1AffectedResources(output.affectedResources, context)
|
|
4998
4950
|
: undefined,
|
|
4999
4951
|
Api: (0, smithy_client_1.expectString)(output.api),
|
|
5000
4952
|
CallerType: (0, smithy_client_1.expectString)(output.callerType),
|
|
5001
|
-
DomainDetails: output.domainDetails
|
|
5002
|
-
? deserializeAws_restJson1DomainDetails(output.domainDetails, context)
|
|
5003
|
-
: undefined,
|
|
4953
|
+
DomainDetails: output.domainDetails != null ? deserializeAws_restJson1DomainDetails(output.domainDetails, context) : undefined,
|
|
5004
4954
|
ErrorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
5005
|
-
RemoteAccountDetails: output.remoteAccountDetails
|
|
4955
|
+
RemoteAccountDetails: output.remoteAccountDetails != null
|
|
5006
4956
|
? deserializeAws_restJson1RemoteAccountDetails(output.remoteAccountDetails, context)
|
|
5007
4957
|
: undefined,
|
|
5008
|
-
RemoteIpDetails: output.remoteIpDetails
|
|
4958
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
5009
4959
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5010
4960
|
: undefined,
|
|
5011
4961
|
ServiceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
@@ -5022,15 +4972,13 @@ const deserializeAws_restJson1BlockPublicAccess = (output, context) => {
|
|
|
5022
4972
|
};
|
|
5023
4973
|
const deserializeAws_restJson1BucketLevelPermissions = (output, context) => {
|
|
5024
4974
|
return {
|
|
5025
|
-
AccessControlList: output.accessControlList
|
|
4975
|
+
AccessControlList: output.accessControlList != null
|
|
5026
4976
|
? deserializeAws_restJson1AccessControlList(output.accessControlList, context)
|
|
5027
4977
|
: undefined,
|
|
5028
|
-
BlockPublicAccess: output.blockPublicAccess
|
|
4978
|
+
BlockPublicAccess: output.blockPublicAccess != null
|
|
5029
4979
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
5030
4980
|
: undefined,
|
|
5031
|
-
BucketPolicy: output.bucketPolicy
|
|
5032
|
-
? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context)
|
|
5033
|
-
: undefined,
|
|
4981
|
+
BucketPolicy: output.bucketPolicy != null ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context) : undefined,
|
|
5034
4982
|
};
|
|
5035
4983
|
};
|
|
5036
4984
|
const deserializeAws_restJson1BucketPolicy = (output, context) => {
|
|
@@ -5051,10 +4999,8 @@ const deserializeAws_restJson1CloudTrailConfigurationResult = (output, context)
|
|
|
5051
4999
|
};
|
|
5052
5000
|
const deserializeAws_restJson1Condition = (output, context) => {
|
|
5053
5001
|
return {
|
|
5054
|
-
Eq: output.eq
|
|
5055
|
-
Equals: output.equals
|
|
5056
|
-
? deserializeAws_restJson1Equals(output.equals, context)
|
|
5057
|
-
: undefined,
|
|
5002
|
+
Eq: output.eq != null ? deserializeAws_restJson1Eq(output.eq, context) : undefined,
|
|
5003
|
+
Equals: output.equals != null ? deserializeAws_restJson1Equals(output.equals, context) : undefined,
|
|
5058
5004
|
GreaterThan: (0, smithy_client_1.expectLong)(output.greaterThan),
|
|
5059
5005
|
GreaterThanOrEqual: (0, smithy_client_1.expectLong)(output.greaterThanOrEqual),
|
|
5060
5006
|
Gt: (0, smithy_client_1.expectInt32)(output.gt),
|
|
@@ -5063,10 +5009,8 @@ const deserializeAws_restJson1Condition = (output, context) => {
|
|
|
5063
5009
|
LessThanOrEqual: (0, smithy_client_1.expectLong)(output.lessThanOrEqual),
|
|
5064
5010
|
Lt: (0, smithy_client_1.expectInt32)(output.lt),
|
|
5065
5011
|
Lte: (0, smithy_client_1.expectInt32)(output.lte),
|
|
5066
|
-
Neq: output.neq
|
|
5067
|
-
NotEquals: output.notEquals
|
|
5068
|
-
? deserializeAws_restJson1NotEquals(output.notEquals, context)
|
|
5069
|
-
: undefined,
|
|
5012
|
+
Neq: output.neq != null ? deserializeAws_restJson1Neq(output.neq, context) : undefined,
|
|
5013
|
+
NotEquals: output.notEquals != null ? deserializeAws_restJson1NotEquals(output.notEquals, context) : undefined,
|
|
5070
5014
|
};
|
|
5071
5015
|
};
|
|
5072
5016
|
const deserializeAws_restJson1Container = (output, context) => {
|
|
@@ -5076,12 +5020,10 @@ const deserializeAws_restJson1Container = (output, context) => {
|
|
|
5076
5020
|
Image: (0, smithy_client_1.expectString)(output.image),
|
|
5077
5021
|
ImagePrefix: (0, smithy_client_1.expectString)(output.imagePrefix),
|
|
5078
5022
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5079
|
-
SecurityContext: output.securityContext
|
|
5023
|
+
SecurityContext: output.securityContext != null
|
|
5080
5024
|
? deserializeAws_restJson1SecurityContext(output.securityContext, context)
|
|
5081
5025
|
: undefined,
|
|
5082
|
-
VolumeMounts: output.volumeMounts
|
|
5083
|
-
? deserializeAws_restJson1VolumeMounts(output.volumeMounts, context)
|
|
5084
|
-
: undefined,
|
|
5026
|
+
VolumeMounts: output.volumeMounts != null ? deserializeAws_restJson1VolumeMounts(output.volumeMounts, context) : undefined,
|
|
5085
5027
|
};
|
|
5086
5028
|
};
|
|
5087
5029
|
const deserializeAws_restJson1Containers = (output, context) => {
|
|
@@ -5125,21 +5067,17 @@ const deserializeAws_restJson1Criterion = (output, context) => {
|
|
|
5125
5067
|
};
|
|
5126
5068
|
const deserializeAws_restJson1DataSourceConfigurationsResult = (output, context) => {
|
|
5127
5069
|
return {
|
|
5128
|
-
CloudTrail: output.cloudTrail
|
|
5070
|
+
CloudTrail: output.cloudTrail != null
|
|
5129
5071
|
? deserializeAws_restJson1CloudTrailConfigurationResult(output.cloudTrail, context)
|
|
5130
5072
|
: undefined,
|
|
5131
|
-
DNSLogs: output.dnsLogs
|
|
5132
|
-
|
|
5133
|
-
: undefined,
|
|
5134
|
-
FlowLogs: output.flowLogs !== undefined && output.flowLogs !== null
|
|
5073
|
+
DNSLogs: output.dnsLogs != null ? deserializeAws_restJson1DNSLogsConfigurationResult(output.dnsLogs, context) : undefined,
|
|
5074
|
+
FlowLogs: output.flowLogs != null
|
|
5135
5075
|
? deserializeAws_restJson1FlowLogsConfigurationResult(output.flowLogs, context)
|
|
5136
5076
|
: undefined,
|
|
5137
|
-
Kubernetes: output.kubernetes
|
|
5077
|
+
Kubernetes: output.kubernetes != null
|
|
5138
5078
|
? deserializeAws_restJson1KubernetesConfigurationResult(output.kubernetes, context)
|
|
5139
5079
|
: undefined,
|
|
5140
|
-
S3Logs: output.s3Logs
|
|
5141
|
-
? deserializeAws_restJson1S3LogsConfigurationResult(output.s3Logs, context)
|
|
5142
|
-
: undefined,
|
|
5080
|
+
S3Logs: output.s3Logs != null ? deserializeAws_restJson1S3LogsConfigurationResult(output.s3Logs, context) : undefined,
|
|
5143
5081
|
};
|
|
5144
5082
|
};
|
|
5145
5083
|
const deserializeAws_restJson1DataSourceFreeTrial = (output, context) => {
|
|
@@ -5149,21 +5087,13 @@ const deserializeAws_restJson1DataSourceFreeTrial = (output, context) => {
|
|
|
5149
5087
|
};
|
|
5150
5088
|
const deserializeAws_restJson1DataSourcesFreeTrial = (output, context) => {
|
|
5151
5089
|
return {
|
|
5152
|
-
CloudTrail: output.cloudTrail
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
? deserializeAws_restJson1DataSourceFreeTrial(output.dnsLogs, context)
|
|
5157
|
-
: undefined,
|
|
5158
|
-
FlowLogs: output.flowLogs !== undefined && output.flowLogs !== null
|
|
5159
|
-
? deserializeAws_restJson1DataSourceFreeTrial(output.flowLogs, context)
|
|
5160
|
-
: undefined,
|
|
5161
|
-
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
|
|
5162
5094
|
? deserializeAws_restJson1KubernetesDataSourceFreeTrial(output.kubernetes, context)
|
|
5163
5095
|
: undefined,
|
|
5164
|
-
S3Logs: output.s3Logs
|
|
5165
|
-
? deserializeAws_restJson1DataSourceFreeTrial(output.s3Logs, context)
|
|
5166
|
-
: undefined,
|
|
5096
|
+
S3Logs: output.s3Logs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.s3Logs, context) : undefined,
|
|
5167
5097
|
};
|
|
5168
5098
|
};
|
|
5169
5099
|
const deserializeAws_restJson1DefaultServerSideEncryption = (output, context) => {
|
|
@@ -5227,14 +5157,10 @@ const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
|
5227
5157
|
const deserializeAws_restJson1EksClusterDetails = (output, context) => {
|
|
5228
5158
|
return {
|
|
5229
5159
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5230
|
-
CreatedAt: output.createdAt
|
|
5231
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5232
|
-
: undefined,
|
|
5160
|
+
CreatedAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5233
5161
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5234
5162
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
5235
|
-
Tags: output.tags
|
|
5236
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
5237
|
-
: undefined,
|
|
5163
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
5238
5164
|
VpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
5239
5165
|
};
|
|
5240
5166
|
};
|
|
@@ -5262,7 +5188,7 @@ const deserializeAws_restJson1Equals = (output, context) => {
|
|
|
5262
5188
|
};
|
|
5263
5189
|
const deserializeAws_restJson1Evidence = (output, context) => {
|
|
5264
5190
|
return {
|
|
5265
|
-
ThreatIntelligenceDetails: output.threatIntelligenceDetails
|
|
5191
|
+
ThreatIntelligenceDetails: output.threatIntelligenceDetails != null
|
|
5266
5192
|
? deserializeAws_restJson1ThreatIntelligenceDetails(output.threatIntelligenceDetails, context)
|
|
5267
5193
|
: undefined,
|
|
5268
5194
|
};
|
|
@@ -5288,13 +5214,9 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
5288
5214
|
Id: (0, smithy_client_1.expectString)(output.id),
|
|
5289
5215
|
Partition: (0, smithy_client_1.expectString)(output.partition),
|
|
5290
5216
|
Region: (0, smithy_client_1.expectString)(output.region),
|
|
5291
|
-
Resource: output.resource
|
|
5292
|
-
? deserializeAws_restJson1Resource(output.resource, context)
|
|
5293
|
-
: undefined,
|
|
5217
|
+
Resource: output.resource != null ? deserializeAws_restJson1Resource(output.resource, context) : undefined,
|
|
5294
5218
|
SchemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
|
|
5295
|
-
Service: output.service
|
|
5296
|
-
? deserializeAws_restJson1Service(output.service, context)
|
|
5297
|
-
: undefined,
|
|
5219
|
+
Service: output.service != null ? deserializeAws_restJson1Service(output.service, context) : undefined,
|
|
5298
5220
|
Severity: (0, smithy_client_1.limitedParseDouble)(output.severity),
|
|
5299
5221
|
Title: (0, smithy_client_1.expectString)(output.title),
|
|
5300
5222
|
Type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -5303,9 +5225,7 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
5303
5225
|
};
|
|
5304
5226
|
const deserializeAws_restJson1FindingCriteria = (output, context) => {
|
|
5305
5227
|
return {
|
|
5306
|
-
Criterion: output.criterion
|
|
5307
|
-
? deserializeAws_restJson1Criterion(output.criterion, context)
|
|
5308
|
-
: undefined,
|
|
5228
|
+
Criterion: output.criterion != null ? deserializeAws_restJson1Criterion(output.criterion, context) : undefined,
|
|
5309
5229
|
};
|
|
5310
5230
|
};
|
|
5311
5231
|
const deserializeAws_restJson1FindingIds = (output, context) => {
|
|
@@ -5332,7 +5252,7 @@ const deserializeAws_restJson1Findings = (output, context) => {
|
|
|
5332
5252
|
};
|
|
5333
5253
|
const deserializeAws_restJson1FindingStatistics = (output, context) => {
|
|
5334
5254
|
return {
|
|
5335
|
-
CountBySeverity: output.countBySeverity
|
|
5255
|
+
CountBySeverity: output.countBySeverity != null
|
|
5336
5256
|
? deserializeAws_restJson1CountBySeverity(output.countBySeverity, context)
|
|
5337
5257
|
: undefined,
|
|
5338
5258
|
};
|
|
@@ -5373,7 +5293,7 @@ const deserializeAws_restJson1IamInstanceProfile = (output, context) => {
|
|
|
5373
5293
|
const deserializeAws_restJson1InstanceDetails = (output, context) => {
|
|
5374
5294
|
return {
|
|
5375
5295
|
AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
|
|
5376
|
-
IamInstanceProfile: output.iamInstanceProfile
|
|
5296
|
+
IamInstanceProfile: output.iamInstanceProfile != null
|
|
5377
5297
|
? deserializeAws_restJson1IamInstanceProfile(output.iamInstanceProfile, context)
|
|
5378
5298
|
: undefined,
|
|
5379
5299
|
ImageDescription: (0, smithy_client_1.expectString)(output.imageDescription),
|
|
@@ -5382,17 +5302,13 @@ const deserializeAws_restJson1InstanceDetails = (output, context) => {
|
|
|
5382
5302
|
InstanceState: (0, smithy_client_1.expectString)(output.instanceState),
|
|
5383
5303
|
InstanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
5384
5304
|
LaunchTime: (0, smithy_client_1.expectString)(output.launchTime),
|
|
5385
|
-
NetworkInterfaces: output.networkInterfaces
|
|
5305
|
+
NetworkInterfaces: output.networkInterfaces != null
|
|
5386
5306
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
5387
5307
|
: undefined,
|
|
5388
5308
|
OutpostArn: (0, smithy_client_1.expectString)(output.outpostArn),
|
|
5389
5309
|
Platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5390
|
-
ProductCodes: output.productCodes
|
|
5391
|
-
|
|
5392
|
-
: undefined,
|
|
5393
|
-
Tags: output.tags !== undefined && output.tags !== null
|
|
5394
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
5395
|
-
: undefined,
|
|
5310
|
+
ProductCodes: output.productCodes != null ? deserializeAws_restJson1ProductCodes(output.productCodes, context) : undefined,
|
|
5311
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
5396
5312
|
};
|
|
5397
5313
|
};
|
|
5398
5314
|
const deserializeAws_restJson1Invitation = (output, context) => {
|
|
@@ -5439,13 +5355,11 @@ const deserializeAws_restJson1Ipv6Addresses = (output, context) => {
|
|
|
5439
5355
|
const deserializeAws_restJson1KubernetesApiCallAction = (output, context) => {
|
|
5440
5356
|
return {
|
|
5441
5357
|
Parameters: (0, smithy_client_1.expectString)(output.parameters),
|
|
5442
|
-
RemoteIpDetails: output.remoteIpDetails
|
|
5358
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
5443
5359
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5444
5360
|
: undefined,
|
|
5445
5361
|
RequestUri: (0, smithy_client_1.expectString)(output.requestUri),
|
|
5446
|
-
SourceIps: output.sourceIps
|
|
5447
|
-
? deserializeAws_restJson1SourceIps(output.sourceIps, context)
|
|
5448
|
-
: undefined,
|
|
5362
|
+
SourceIps: output.sourceIps != null ? deserializeAws_restJson1SourceIps(output.sourceIps, context) : undefined,
|
|
5449
5363
|
StatusCode: (0, smithy_client_1.expectInt32)(output.statusCode),
|
|
5450
5364
|
UserAgent: (0, smithy_client_1.expectString)(output.userAgent),
|
|
5451
5365
|
Verb: (0, smithy_client_1.expectString)(output.verb),
|
|
@@ -5458,50 +5372,42 @@ const deserializeAws_restJson1KubernetesAuditLogsConfigurationResult = (output,
|
|
|
5458
5372
|
};
|
|
5459
5373
|
const deserializeAws_restJson1KubernetesConfigurationResult = (output, context) => {
|
|
5460
5374
|
return {
|
|
5461
|
-
AuditLogs: output.auditLogs
|
|
5375
|
+
AuditLogs: output.auditLogs != null
|
|
5462
5376
|
? deserializeAws_restJson1KubernetesAuditLogsConfigurationResult(output.auditLogs, context)
|
|
5463
5377
|
: undefined,
|
|
5464
5378
|
};
|
|
5465
5379
|
};
|
|
5466
5380
|
const deserializeAws_restJson1KubernetesDataSourceFreeTrial = (output, context) => {
|
|
5467
5381
|
return {
|
|
5468
|
-
AuditLogs: output.auditLogs
|
|
5469
|
-
? deserializeAws_restJson1DataSourceFreeTrial(output.auditLogs, context)
|
|
5470
|
-
: undefined,
|
|
5382
|
+
AuditLogs: output.auditLogs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.auditLogs, context) : undefined,
|
|
5471
5383
|
};
|
|
5472
5384
|
};
|
|
5473
5385
|
const deserializeAws_restJson1KubernetesDetails = (output, context) => {
|
|
5474
5386
|
return {
|
|
5475
|
-
KubernetesUserDetails: output.kubernetesUserDetails
|
|
5387
|
+
KubernetesUserDetails: output.kubernetesUserDetails != null
|
|
5476
5388
|
? deserializeAws_restJson1KubernetesUserDetails(output.kubernetesUserDetails, context)
|
|
5477
5389
|
: undefined,
|
|
5478
|
-
KubernetesWorkloadDetails: output.kubernetesWorkloadDetails
|
|
5390
|
+
KubernetesWorkloadDetails: output.kubernetesWorkloadDetails != null
|
|
5479
5391
|
? deserializeAws_restJson1KubernetesWorkloadDetails(output.kubernetesWorkloadDetails, context)
|
|
5480
5392
|
: undefined,
|
|
5481
5393
|
};
|
|
5482
5394
|
};
|
|
5483
5395
|
const deserializeAws_restJson1KubernetesUserDetails = (output, context) => {
|
|
5484
5396
|
return {
|
|
5485
|
-
Groups: output.groups
|
|
5486
|
-
? deserializeAws_restJson1Groups(output.groups, context)
|
|
5487
|
-
: undefined,
|
|
5397
|
+
Groups: output.groups != null ? deserializeAws_restJson1Groups(output.groups, context) : undefined,
|
|
5488
5398
|
Uid: (0, smithy_client_1.expectString)(output.uid),
|
|
5489
5399
|
Username: (0, smithy_client_1.expectString)(output.username),
|
|
5490
5400
|
};
|
|
5491
5401
|
};
|
|
5492
5402
|
const deserializeAws_restJson1KubernetesWorkloadDetails = (output, context) => {
|
|
5493
5403
|
return {
|
|
5494
|
-
Containers: output.containers
|
|
5495
|
-
? deserializeAws_restJson1Containers(output.containers, context)
|
|
5496
|
-
: undefined,
|
|
5404
|
+
Containers: output.containers != null ? deserializeAws_restJson1Containers(output.containers, context) : undefined,
|
|
5497
5405
|
HostNetwork: (0, smithy_client_1.expectBoolean)(output.hostNetwork),
|
|
5498
5406
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5499
5407
|
Namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
5500
5408
|
Type: (0, smithy_client_1.expectString)(output.type),
|
|
5501
5409
|
Uid: (0, smithy_client_1.expectString)(output.uid),
|
|
5502
|
-
Volumes: output.volumes
|
|
5503
|
-
? deserializeAws_restJson1Volumes(output.volumes, context)
|
|
5504
|
-
: undefined,
|
|
5410
|
+
Volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
5505
5411
|
};
|
|
5506
5412
|
};
|
|
5507
5413
|
const deserializeAws_restJson1LocalIpDetails = (output, context) => {
|
|
@@ -5538,7 +5444,7 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
5538
5444
|
const deserializeAws_restJson1MemberDataSourceConfiguration = (output, context) => {
|
|
5539
5445
|
return {
|
|
5540
5446
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5541
|
-
DataSources: output.dataSources
|
|
5447
|
+
DataSources: output.dataSources != null
|
|
5542
5448
|
? deserializeAws_restJson1DataSourceConfigurationsResult(output.dataSources, context)
|
|
5543
5449
|
: undefined,
|
|
5544
5450
|
};
|
|
@@ -5580,35 +5486,33 @@ const deserializeAws_restJson1NetworkConnectionAction = (output, context) => {
|
|
|
5580
5486
|
return {
|
|
5581
5487
|
Blocked: (0, smithy_client_1.expectBoolean)(output.blocked),
|
|
5582
5488
|
ConnectionDirection: (0, smithy_client_1.expectString)(output.connectionDirection),
|
|
5583
|
-
LocalIpDetails: output.localIpDetails
|
|
5489
|
+
LocalIpDetails: output.localIpDetails != null
|
|
5584
5490
|
? deserializeAws_restJson1LocalIpDetails(output.localIpDetails, context)
|
|
5585
5491
|
: undefined,
|
|
5586
|
-
LocalPortDetails: output.localPortDetails
|
|
5492
|
+
LocalPortDetails: output.localPortDetails != null
|
|
5587
5493
|
? deserializeAws_restJson1LocalPortDetails(output.localPortDetails, context)
|
|
5588
5494
|
: undefined,
|
|
5589
5495
|
Protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
5590
|
-
RemoteIpDetails: output.remoteIpDetails
|
|
5496
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
5591
5497
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5592
5498
|
: undefined,
|
|
5593
|
-
RemotePortDetails: output.remotePortDetails
|
|
5499
|
+
RemotePortDetails: output.remotePortDetails != null
|
|
5594
5500
|
? deserializeAws_restJson1RemotePortDetails(output.remotePortDetails, context)
|
|
5595
5501
|
: undefined,
|
|
5596
5502
|
};
|
|
5597
5503
|
};
|
|
5598
5504
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
5599
5505
|
return {
|
|
5600
|
-
Ipv6Addresses: output.ipv6Addresses
|
|
5601
|
-
? deserializeAws_restJson1Ipv6Addresses(output.ipv6Addresses, context)
|
|
5602
|
-
: undefined,
|
|
5506
|
+
Ipv6Addresses: output.ipv6Addresses != null ? deserializeAws_restJson1Ipv6Addresses(output.ipv6Addresses, context) : undefined,
|
|
5603
5507
|
NetworkInterfaceId: (0, smithy_client_1.expectString)(output.networkInterfaceId),
|
|
5604
5508
|
PrivateDnsName: (0, smithy_client_1.expectString)(output.privateDnsName),
|
|
5605
5509
|
PrivateIpAddress: (0, smithy_client_1.expectString)(output.privateIpAddress),
|
|
5606
|
-
PrivateIpAddresses: output.privateIpAddresses
|
|
5510
|
+
PrivateIpAddresses: output.privateIpAddresses != null
|
|
5607
5511
|
? deserializeAws_restJson1PrivateIpAddresses(output.privateIpAddresses, context)
|
|
5608
5512
|
: undefined,
|
|
5609
5513
|
PublicDnsName: (0, smithy_client_1.expectString)(output.publicDnsName),
|
|
5610
5514
|
PublicIp: (0, smithy_client_1.expectString)(output.publicIp),
|
|
5611
|
-
SecurityGroups: output.securityGroups
|
|
5515
|
+
SecurityGroups: output.securityGroups != null
|
|
5612
5516
|
? deserializeAws_restJson1SecurityGroups(output.securityGroups, context)
|
|
5613
5517
|
: undefined,
|
|
5614
5518
|
SubnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
@@ -5647,10 +5551,10 @@ const deserializeAws_restJson1Organization = (output, context) => {
|
|
|
5647
5551
|
};
|
|
5648
5552
|
const deserializeAws_restJson1OrganizationDataSourceConfigurationsResult = (output, context) => {
|
|
5649
5553
|
return {
|
|
5650
|
-
Kubernetes: output.kubernetes
|
|
5554
|
+
Kubernetes: output.kubernetes != null
|
|
5651
5555
|
? deserializeAws_restJson1OrganizationKubernetesConfigurationResult(output.kubernetes, context)
|
|
5652
5556
|
: undefined,
|
|
5653
|
-
S3Logs: output.s3Logs
|
|
5557
|
+
S3Logs: output.s3Logs != null
|
|
5654
5558
|
? deserializeAws_restJson1OrganizationS3LogsConfigurationResult(output.s3Logs, context)
|
|
5655
5559
|
: undefined,
|
|
5656
5560
|
};
|
|
@@ -5662,7 +5566,7 @@ const deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult
|
|
|
5662
5566
|
};
|
|
5663
5567
|
const deserializeAws_restJson1OrganizationKubernetesConfigurationResult = (output, context) => {
|
|
5664
5568
|
return {
|
|
5665
|
-
AuditLogs: output.auditLogs
|
|
5569
|
+
AuditLogs: output.auditLogs != null
|
|
5666
5570
|
? deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult(output.auditLogs, context)
|
|
5667
5571
|
: undefined,
|
|
5668
5572
|
};
|
|
@@ -5679,10 +5583,10 @@ const deserializeAws_restJson1Owner = (output, context) => {
|
|
|
5679
5583
|
};
|
|
5680
5584
|
const deserializeAws_restJson1PermissionConfiguration = (output, context) => {
|
|
5681
5585
|
return {
|
|
5682
|
-
AccountLevelPermissions: output.accountLevelPermissions
|
|
5586
|
+
AccountLevelPermissions: output.accountLevelPermissions != null
|
|
5683
5587
|
? deserializeAws_restJson1AccountLevelPermissions(output.accountLevelPermissions, context)
|
|
5684
5588
|
: undefined,
|
|
5685
|
-
BucketLevelPermissions: output.bucketLevelPermissions
|
|
5589
|
+
BucketLevelPermissions: output.bucketLevelPermissions != null
|
|
5686
5590
|
? deserializeAws_restJson1BucketLevelPermissions(output.bucketLevelPermissions, context)
|
|
5687
5591
|
: undefined,
|
|
5688
5592
|
};
|
|
@@ -5690,20 +5594,20 @@ const deserializeAws_restJson1PermissionConfiguration = (output, context) => {
|
|
|
5690
5594
|
const deserializeAws_restJson1PortProbeAction = (output, context) => {
|
|
5691
5595
|
return {
|
|
5692
5596
|
Blocked: (0, smithy_client_1.expectBoolean)(output.blocked),
|
|
5693
|
-
PortProbeDetails: output.portProbeDetails
|
|
5597
|
+
PortProbeDetails: output.portProbeDetails != null
|
|
5694
5598
|
? deserializeAws_restJson1PortProbeDetails(output.portProbeDetails, context)
|
|
5695
5599
|
: undefined,
|
|
5696
5600
|
};
|
|
5697
5601
|
};
|
|
5698
5602
|
const deserializeAws_restJson1PortProbeDetail = (output, context) => {
|
|
5699
5603
|
return {
|
|
5700
|
-
LocalIpDetails: output.localIpDetails
|
|
5604
|
+
LocalIpDetails: output.localIpDetails != null
|
|
5701
5605
|
? deserializeAws_restJson1LocalIpDetails(output.localIpDetails, context)
|
|
5702
5606
|
: undefined,
|
|
5703
|
-
LocalPortDetails: output.localPortDetails
|
|
5607
|
+
LocalPortDetails: output.localPortDetails != null
|
|
5704
5608
|
? deserializeAws_restJson1LocalPortDetails(output.localPortDetails, context)
|
|
5705
5609
|
: undefined,
|
|
5706
|
-
RemoteIpDetails: output.remoteIpDetails
|
|
5610
|
+
RemoteIpDetails: output.remoteIpDetails != null
|
|
5707
5611
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5708
5612
|
: undefined,
|
|
5709
5613
|
};
|
|
@@ -5756,7 +5660,7 @@ const deserializeAws_restJson1ProductCodes = (output, context) => {
|
|
|
5756
5660
|
const deserializeAws_restJson1PublicAccess = (output, context) => {
|
|
5757
5661
|
return {
|
|
5758
5662
|
EffectivePermission: (0, smithy_client_1.expectString)(output.effectivePermission),
|
|
5759
|
-
PermissionConfiguration: output.permissionConfiguration
|
|
5663
|
+
PermissionConfiguration: output.permissionConfiguration != null
|
|
5760
5664
|
? deserializeAws_restJson1PermissionConfiguration(output.permissionConfiguration, context)
|
|
5761
5665
|
: undefined,
|
|
5762
5666
|
};
|
|
@@ -5769,19 +5673,11 @@ const deserializeAws_restJson1RemoteAccountDetails = (output, context) => {
|
|
|
5769
5673
|
};
|
|
5770
5674
|
const deserializeAws_restJson1RemoteIpDetails = (output, context) => {
|
|
5771
5675
|
return {
|
|
5772
|
-
City: output.city
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
Country: output.country !== undefined && output.country !== null
|
|
5776
|
-
? deserializeAws_restJson1Country(output.country, context)
|
|
5777
|
-
: undefined,
|
|
5778
|
-
GeoLocation: output.geoLocation !== undefined && output.geoLocation !== null
|
|
5779
|
-
? deserializeAws_restJson1GeoLocation(output.geoLocation, context)
|
|
5780
|
-
: 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,
|
|
5781
5679
|
IpAddressV4: (0, smithy_client_1.expectString)(output.ipAddressV4),
|
|
5782
|
-
Organization: output.organization
|
|
5783
|
-
? deserializeAws_restJson1Organization(output.organization, context)
|
|
5784
|
-
: undefined,
|
|
5680
|
+
Organization: output.organization != null ? deserializeAws_restJson1Organization(output.organization, context) : undefined,
|
|
5785
5681
|
};
|
|
5786
5682
|
};
|
|
5787
5683
|
const deserializeAws_restJson1RemotePortDetails = (output, context) => {
|
|
@@ -5792,20 +5688,20 @@ const deserializeAws_restJson1RemotePortDetails = (output, context) => {
|
|
|
5792
5688
|
};
|
|
5793
5689
|
const deserializeAws_restJson1Resource = (output, context) => {
|
|
5794
5690
|
return {
|
|
5795
|
-
AccessKeyDetails: output.accessKeyDetails
|
|
5691
|
+
AccessKeyDetails: output.accessKeyDetails != null
|
|
5796
5692
|
? deserializeAws_restJson1AccessKeyDetails(output.accessKeyDetails, context)
|
|
5797
5693
|
: undefined,
|
|
5798
|
-
EksClusterDetails: output.eksClusterDetails
|
|
5694
|
+
EksClusterDetails: output.eksClusterDetails != null
|
|
5799
5695
|
? deserializeAws_restJson1EksClusterDetails(output.eksClusterDetails, context)
|
|
5800
5696
|
: undefined,
|
|
5801
|
-
InstanceDetails: output.instanceDetails
|
|
5697
|
+
InstanceDetails: output.instanceDetails != null
|
|
5802
5698
|
? deserializeAws_restJson1InstanceDetails(output.instanceDetails, context)
|
|
5803
5699
|
: undefined,
|
|
5804
|
-
KubernetesDetails: output.kubernetesDetails
|
|
5700
|
+
KubernetesDetails: output.kubernetesDetails != null
|
|
5805
5701
|
? deserializeAws_restJson1KubernetesDetails(output.kubernetesDetails, context)
|
|
5806
5702
|
: undefined,
|
|
5807
5703
|
ResourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
5808
|
-
S3BucketDetails: output.s3BucketDetails
|
|
5704
|
+
S3BucketDetails: output.s3BucketDetails != null
|
|
5809
5705
|
? deserializeAws_restJson1S3BucketDetails(output.s3BucketDetails, context)
|
|
5810
5706
|
: undefined,
|
|
5811
5707
|
};
|
|
@@ -5813,22 +5709,14 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
5813
5709
|
const deserializeAws_restJson1S3BucketDetail = (output, context) => {
|
|
5814
5710
|
return {
|
|
5815
5711
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5816
|
-
CreatedAt: output.createdAt
|
|
5817
|
-
|
|
5818
|
-
: undefined,
|
|
5819
|
-
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
|
|
5820
5714
|
? deserializeAws_restJson1DefaultServerSideEncryption(output.defaultServerSideEncryption, context)
|
|
5821
5715
|
: undefined,
|
|
5822
5716
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5823
|
-
Owner: output.owner
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
5827
|
-
? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
|
|
5828
|
-
: undefined,
|
|
5829
|
-
Tags: output.tags !== undefined && output.tags !== null
|
|
5830
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
5831
|
-
: 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,
|
|
5832
5720
|
Type: (0, smithy_client_1.expectString)(output.type),
|
|
5833
5721
|
};
|
|
5834
5722
|
};
|
|
@@ -5872,10 +5760,8 @@ const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
|
5872
5760
|
};
|
|
5873
5761
|
const deserializeAws_restJson1Service = (output, context) => {
|
|
5874
5762
|
return {
|
|
5875
|
-
Action: output.action
|
|
5876
|
-
|
|
5877
|
-
: undefined,
|
|
5878
|
-
AdditionalInfo: output.additionalInfo !== undefined && output.additionalInfo !== null
|
|
5763
|
+
Action: output.action != null ? deserializeAws_restJson1Action(output.action, context) : undefined,
|
|
5764
|
+
AdditionalInfo: output.additionalInfo != null
|
|
5879
5765
|
? deserializeAws_restJson1ServiceAdditionalInfo(output.additionalInfo, context)
|
|
5880
5766
|
: undefined,
|
|
5881
5767
|
Archived: (0, smithy_client_1.expectBoolean)(output.archived),
|
|
@@ -5883,9 +5769,7 @@ const deserializeAws_restJson1Service = (output, context) => {
|
|
|
5883
5769
|
DetectorId: (0, smithy_client_1.expectString)(output.detectorId),
|
|
5884
5770
|
EventFirstSeen: (0, smithy_client_1.expectString)(output.eventFirstSeen),
|
|
5885
5771
|
EventLastSeen: (0, smithy_client_1.expectString)(output.eventLastSeen),
|
|
5886
|
-
Evidence: output.evidence
|
|
5887
|
-
? deserializeAws_restJson1Evidence(output.evidence, context)
|
|
5888
|
-
: undefined,
|
|
5772
|
+
Evidence: output.evidence != null ? deserializeAws_restJson1Evidence(output.evidence, context) : undefined,
|
|
5889
5773
|
ResourceRole: (0, smithy_client_1.expectString)(output.resourceRole),
|
|
5890
5774
|
ServiceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
5891
5775
|
UserFeedback: (0, smithy_client_1.expectString)(output.userFeedback),
|
|
@@ -5939,9 +5823,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
5939
5823
|
const deserializeAws_restJson1ThreatIntelligenceDetail = (output, context) => {
|
|
5940
5824
|
return {
|
|
5941
5825
|
ThreatListName: (0, smithy_client_1.expectString)(output.threatListName),
|
|
5942
|
-
ThreatNames: output.threatNames
|
|
5943
|
-
? deserializeAws_restJson1ThreatNames(output.threatNames, context)
|
|
5944
|
-
: undefined,
|
|
5826
|
+
ThreatNames: output.threatNames != null ? deserializeAws_restJson1ThreatNames(output.threatNames, context) : undefined,
|
|
5945
5827
|
};
|
|
5946
5828
|
};
|
|
5947
5829
|
const deserializeAws_restJson1ThreatIntelligenceDetails = (output, context) => {
|
|
@@ -6003,9 +5885,7 @@ const deserializeAws_restJson1UnprocessedAccounts = (output, context) => {
|
|
|
6003
5885
|
const deserializeAws_restJson1UsageAccountResult = (output, context) => {
|
|
6004
5886
|
return {
|
|
6005
5887
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
6006
|
-
Total: output.total
|
|
6007
|
-
? deserializeAws_restJson1Total(output.total, context)
|
|
6008
|
-
: undefined,
|
|
5888
|
+
Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
|
|
6009
5889
|
};
|
|
6010
5890
|
};
|
|
6011
5891
|
const deserializeAws_restJson1UsageAccountResultList = (output, context) => {
|
|
@@ -6022,9 +5902,7 @@ const deserializeAws_restJson1UsageAccountResultList = (output, context) => {
|
|
|
6022
5902
|
const deserializeAws_restJson1UsageDataSourceResult = (output, context) => {
|
|
6023
5903
|
return {
|
|
6024
5904
|
DataSource: (0, smithy_client_1.expectString)(output.dataSource),
|
|
6025
|
-
Total: output.total
|
|
6026
|
-
? deserializeAws_restJson1Total(output.total, context)
|
|
6027
|
-
: undefined,
|
|
5905
|
+
Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
|
|
6028
5906
|
};
|
|
6029
5907
|
};
|
|
6030
5908
|
const deserializeAws_restJson1UsageDataSourceResultList = (output, context) => {
|
|
@@ -6041,9 +5919,7 @@ const deserializeAws_restJson1UsageDataSourceResultList = (output, context) => {
|
|
|
6041
5919
|
const deserializeAws_restJson1UsageResourceResult = (output, context) => {
|
|
6042
5920
|
return {
|
|
6043
5921
|
Resource: (0, smithy_client_1.expectString)(output.resource),
|
|
6044
|
-
Total: output.total
|
|
6045
|
-
? deserializeAws_restJson1Total(output.total, context)
|
|
6046
|
-
: undefined,
|
|
5922
|
+
Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
|
|
6047
5923
|
};
|
|
6048
5924
|
};
|
|
6049
5925
|
const deserializeAws_restJson1UsageResourceResultList = (output, context) => {
|
|
@@ -6059,25 +5935,23 @@ const deserializeAws_restJson1UsageResourceResultList = (output, context) => {
|
|
|
6059
5935
|
};
|
|
6060
5936
|
const deserializeAws_restJson1UsageStatistics = (output, context) => {
|
|
6061
5937
|
return {
|
|
6062
|
-
SumByAccount: output.sumByAccount
|
|
5938
|
+
SumByAccount: output.sumByAccount != null
|
|
6063
5939
|
? deserializeAws_restJson1UsageAccountResultList(output.sumByAccount, context)
|
|
6064
5940
|
: undefined,
|
|
6065
|
-
SumByDataSource: output.sumByDataSource
|
|
5941
|
+
SumByDataSource: output.sumByDataSource != null
|
|
6066
5942
|
? deserializeAws_restJson1UsageDataSourceResultList(output.sumByDataSource, context)
|
|
6067
5943
|
: undefined,
|
|
6068
|
-
SumByResource: output.sumByResource
|
|
5944
|
+
SumByResource: output.sumByResource != null
|
|
6069
5945
|
? deserializeAws_restJson1UsageResourceResultList(output.sumByResource, context)
|
|
6070
5946
|
: undefined,
|
|
6071
|
-
TopResources: output.topResources
|
|
5947
|
+
TopResources: output.topResources != null
|
|
6072
5948
|
? deserializeAws_restJson1UsageResourceResultList(output.topResources, context)
|
|
6073
5949
|
: undefined,
|
|
6074
5950
|
};
|
|
6075
5951
|
};
|
|
6076
5952
|
const deserializeAws_restJson1Volume = (output, context) => {
|
|
6077
5953
|
return {
|
|
6078
|
-
HostPath: output.hostPath
|
|
6079
|
-
? deserializeAws_restJson1HostPath(output.hostPath, context)
|
|
6080
|
-
: undefined,
|
|
5954
|
+
HostPath: output.hostPath != null ? deserializeAws_restJson1HostPath(output.hostPath, context) : undefined,
|
|
6081
5955
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
6082
5956
|
};
|
|
6083
5957
|
};
|