@aws-sdk/client-guardduty 3.121.0 → 3.130.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.
@@ -25,8 +25,7 @@ export var serializeAws_restJson1AcceptAdministratorInvitationCommand = function
25
25
  else {
26
26
  throw new Error("No value provided for input HTTP label: DetectorId.");
27
27
  }
28
- body = JSON.stringify(__assign(__assign({}, (input.AdministratorId !== undefined &&
29
- input.AdministratorId !== null && { administratorId: input.AdministratorId })), (input.InvitationId !== undefined && input.InvitationId !== null && { invitationId: input.InvitationId })));
28
+ body = JSON.stringify(__assign(__assign({}, (input.AdministratorId != null && { administratorId: input.AdministratorId })), (input.InvitationId != null && { invitationId: input.InvitationId })));
30
29
  return [2, new __HttpRequest({
31
30
  protocol: protocol,
32
31
  hostname: hostname,
@@ -60,7 +59,7 @@ export var serializeAws_restJson1AcceptInvitationCommand = function (input, cont
60
59
  else {
61
60
  throw new Error("No value provided for input HTTP label: DetectorId.");
62
61
  }
63
- body = JSON.stringify(__assign(__assign({}, (input.InvitationId !== undefined && input.InvitationId !== null && { invitationId: input.InvitationId })), (input.MasterId !== undefined && input.MasterId !== null && { masterId: input.MasterId })));
62
+ body = JSON.stringify(__assign(__assign({}, (input.InvitationId != null && { invitationId: input.InvitationId })), (input.MasterId != null && { masterId: input.MasterId })));
64
63
  return [2, new __HttpRequest({
65
64
  protocol: protocol,
66
65
  hostname: hostname,
@@ -94,8 +93,7 @@ export var serializeAws_restJson1ArchiveFindingsCommand = function (input, conte
94
93
  else {
95
94
  throw new Error("No value provided for input HTTP label: DetectorId.");
96
95
  }
97
- body = JSON.stringify(__assign({}, (input.FindingIds !== undefined &&
98
- input.FindingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) })));
96
+ body = JSON.stringify(__assign({}, (input.FindingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) })));
99
97
  return [2, new __HttpRequest({
100
98
  protocol: protocol,
101
99
  hostname: hostname,
@@ -120,11 +118,9 @@ export var serializeAws_restJson1CreateDetectorCommand = function (input, contex
120
118
  "content-type": "application/json",
121
119
  };
122
120
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detector";
123
- body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.DataSources !== undefined &&
124
- input.DataSources !== null && {
121
+ body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.DataSources != null && {
125
122
  dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
126
- })), (input.Enable !== undefined && input.Enable !== null && { enable: input.Enable })), (input.FindingPublishingFrequency !== undefined &&
127
- input.FindingPublishingFrequency !== null && { findingPublishingFrequency: input.FindingPublishingFrequency })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
123
+ })), (input.Enable != null && { enable: input.Enable })), (input.FindingPublishingFrequency != null && { findingPublishingFrequency: input.FindingPublishingFrequency })), (input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
128
124
  return [2, new __HttpRequest({
129
125
  protocol: protocol,
130
126
  hostname: hostname,
@@ -159,10 +155,9 @@ export var serializeAws_restJson1CreateFilterCommand = function (input, context)
159
155
  else {
160
156
  throw new Error("No value provided for input HTTP label: DetectorId.");
161
157
  }
162
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action !== undefined && input.Action !== null && { action: input.Action })), { clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.FindingCriteria !== undefined &&
163
- input.FindingCriteria !== null && {
158
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action != null && { action: input.Action })), { clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Description != null && { description: input.Description })), (input.FindingCriteria != null && {
164
159
  findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
165
- })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Rank !== undefined && input.Rank !== null && { rank: input.Rank })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
160
+ })), (input.Name != null && { name: input.Name })), (input.Rank != null && { rank: input.Rank })), (input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
166
161
  return [2, new __HttpRequest({
167
162
  protocol: protocol,
168
163
  hostname: hostname,
@@ -197,7 +192,7 @@ export var serializeAws_restJson1CreateIPSetCommand = function (input, context)
197
192
  else {
198
193
  throw new Error("No value provided for input HTTP label: DetectorId.");
199
194
  }
200
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Activate !== undefined && input.Activate !== null && { activate: input.Activate })), { clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Format !== undefined && input.Format !== null && { format: input.Format })), (input.Location !== undefined && input.Location !== null && { location: input.Location })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
195
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Activate != null && { activate: input.Activate })), { clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Format != null && { format: input.Format })), (input.Location != null && { location: input.Location })), (input.Name != null && { name: input.Name })), (input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
201
196
  return [2, new __HttpRequest({
202
197
  protocol: protocol,
203
198
  hostname: hostname,
@@ -231,8 +226,7 @@ export var serializeAws_restJson1CreateMembersCommand = function (input, context
231
226
  else {
232
227
  throw new Error("No value provided for input HTTP label: DetectorId.");
233
228
  }
234
- body = JSON.stringify(__assign({}, (input.AccountDetails !== undefined &&
235
- input.AccountDetails !== null && {
229
+ body = JSON.stringify(__assign({}, (input.AccountDetails != null && {
236
230
  accountDetails: serializeAws_restJson1AccountDetails(input.AccountDetails, context),
237
231
  })));
238
232
  return [2, new __HttpRequest({
@@ -270,11 +264,9 @@ export var serializeAws_restJson1CreatePublishingDestinationCommand = function (
270
264
  else {
271
265
  throw new Error("No value provided for input HTTP label: DetectorId.");
272
266
  }
273
- body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.DestinationProperties !== undefined &&
274
- input.DestinationProperties !== null && {
267
+ body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.DestinationProperties != null && {
275
268
  destinationProperties: serializeAws_restJson1DestinationProperties(input.DestinationProperties, context),
276
- })), (input.DestinationType !== undefined &&
277
- input.DestinationType !== null && { destinationType: input.DestinationType })));
269
+ })), (input.DestinationType != null && { destinationType: input.DestinationType })));
278
270
  return [2, new __HttpRequest({
279
271
  protocol: protocol,
280
272
  hostname: hostname,
@@ -308,8 +300,9 @@ export var serializeAws_restJson1CreateSampleFindingsCommand = function (input,
308
300
  else {
309
301
  throw new Error("No value provided for input HTTP label: DetectorId.");
310
302
  }
311
- body = JSON.stringify(__assign({}, (input.FindingTypes !== undefined &&
312
- input.FindingTypes !== null && { findingTypes: serializeAws_restJson1FindingTypes(input.FindingTypes, context) })));
303
+ body = JSON.stringify(__assign({}, (input.FindingTypes != null && {
304
+ findingTypes: serializeAws_restJson1FindingTypes(input.FindingTypes, context),
305
+ })));
313
306
  return [2, new __HttpRequest({
314
307
  protocol: protocol,
315
308
  hostname: hostname,
@@ -344,7 +337,7 @@ export var serializeAws_restJson1CreateThreatIntelSetCommand = function (input,
344
337
  else {
345
338
  throw new Error("No value provided for input HTTP label: DetectorId.");
346
339
  }
347
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Activate !== undefined && input.Activate !== null && { activate: input.Activate })), { clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Format !== undefined && input.Format !== null && { format: input.Format })), (input.Location !== undefined && input.Location !== null && { location: input.Location })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
340
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Activate != null && { activate: input.Activate })), { clientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Format != null && { format: input.Format })), (input.Location != null && { location: input.Location })), (input.Name != null && { name: input.Name })), (input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
348
341
  return [2, new __HttpRequest({
349
342
  protocol: protocol,
350
343
  hostname: hostname,
@@ -368,8 +361,7 @@ export var serializeAws_restJson1DeclineInvitationsCommand = function (input, co
368
361
  "content-type": "application/json",
369
362
  };
370
363
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation/decline";
371
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
372
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
364
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
373
365
  return [2, new __HttpRequest({
374
366
  protocol: protocol,
375
367
  hostname: hostname,
@@ -466,8 +458,7 @@ export var serializeAws_restJson1DeleteInvitationsCommand = function (input, con
466
458
  "content-type": "application/json",
467
459
  };
468
460
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation/delete";
469
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
470
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
461
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
471
462
  return [2, new __HttpRequest({
472
463
  protocol: protocol,
473
464
  hostname: hostname,
@@ -542,8 +533,7 @@ export var serializeAws_restJson1DeleteMembersCommand = function (input, context
542
533
  else {
543
534
  throw new Error("No value provided for input HTTP label: DetectorId.");
544
535
  }
545
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
546
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
536
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
547
537
  return [2, new __HttpRequest({
548
538
  protocol: protocol,
549
539
  hostname: hostname,
@@ -724,8 +714,7 @@ export var serializeAws_restJson1DisableOrganizationAdminAccountCommand = functi
724
714
  "content-type": "application/json",
725
715
  };
726
716
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/admin/disable";
727
- body = JSON.stringify(__assign({}, (input.AdminAccountId !== undefined &&
728
- input.AdminAccountId !== null && { adminAccountId: input.AdminAccountId })));
717
+ body = JSON.stringify(__assign({}, (input.AdminAccountId != null && { adminAccountId: input.AdminAccountId })));
729
718
  return [2, new __HttpRequest({
730
719
  protocol: protocol,
731
720
  hostname: hostname,
@@ -824,8 +813,7 @@ export var serializeAws_restJson1DisassociateMembersCommand = function (input, c
824
813
  else {
825
814
  throw new Error("No value provided for input HTTP label: DetectorId.");
826
815
  }
827
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
828
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
816
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
829
817
  return [2, new __HttpRequest({
830
818
  protocol: protocol,
831
819
  hostname: hostname,
@@ -849,8 +837,7 @@ export var serializeAws_restJson1EnableOrganizationAdminAccountCommand = functio
849
837
  "content-type": "application/json",
850
838
  };
851
839
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/admin/enable";
852
- body = JSON.stringify(__assign({}, (input.AdminAccountId !== undefined &&
853
- input.AdminAccountId !== null && { adminAccountId: input.AdminAccountId })));
840
+ body = JSON.stringify(__assign({}, (input.AdminAccountId != null && { adminAccountId: input.AdminAccountId })));
854
841
  return [2, new __HttpRequest({
855
842
  protocol: protocol,
856
843
  hostname: hostname,
@@ -988,9 +975,9 @@ export var serializeAws_restJson1GetFindingsCommand = function (input, context)
988
975
  else {
989
976
  throw new Error("No value provided for input HTTP label: DetectorId.");
990
977
  }
991
- body = JSON.stringify(__assign(__assign({}, (input.FindingIds !== undefined &&
992
- input.FindingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) })), (input.SortCriteria !== undefined &&
993
- input.SortCriteria !== null && { sortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context) })));
978
+ body = JSON.stringify(__assign(__assign({}, (input.FindingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) })), (input.SortCriteria != null && {
979
+ sortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context),
980
+ })));
994
981
  return [2, new __HttpRequest({
995
982
  protocol: protocol,
996
983
  hostname: hostname,
@@ -1025,11 +1012,9 @@ export var serializeAws_restJson1GetFindingsStatisticsCommand = function (input,
1025
1012
  else {
1026
1013
  throw new Error("No value provided for input HTTP label: DetectorId.");
1027
1014
  }
1028
- body = JSON.stringify(__assign(__assign({}, (input.FindingCriteria !== undefined &&
1029
- input.FindingCriteria !== null && {
1015
+ body = JSON.stringify(__assign(__assign({}, (input.FindingCriteria != null && {
1030
1016
  findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
1031
- })), (input.FindingStatisticTypes !== undefined &&
1032
- input.FindingStatisticTypes !== null && {
1017
+ })), (input.FindingStatisticTypes != null && {
1033
1018
  findingStatisticTypes: serializeAws_restJson1FindingStatisticTypes(input.FindingStatisticTypes, context),
1034
1019
  })));
1035
1020
  return [2, new __HttpRequest({
@@ -1162,8 +1147,7 @@ export var serializeAws_restJson1GetMemberDetectorsCommand = function (input, co
1162
1147
  else {
1163
1148
  throw new Error("No value provided for input HTTP label: DetectorId.");
1164
1149
  }
1165
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
1166
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1150
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1167
1151
  return [2, new __HttpRequest({
1168
1152
  protocol: protocol,
1169
1153
  hostname: hostname,
@@ -1197,8 +1181,7 @@ export var serializeAws_restJson1GetMembersCommand = function (input, context) {
1197
1181
  else {
1198
1182
  throw new Error("No value provided for input HTTP label: DetectorId.");
1199
1183
  }
1200
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
1201
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1184
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1202
1185
  return [2, new __HttpRequest({
1203
1186
  protocol: protocol,
1204
1187
  hostname: hostname,
@@ -1233,8 +1216,7 @@ export var serializeAws_restJson1GetRemainingFreeTrialDaysCommand = function (in
1233
1216
  else {
1234
1217
  throw new Error("No value provided for input HTTP label: DetectorId.");
1235
1218
  }
1236
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
1237
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1219
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1238
1220
  return [2, new __HttpRequest({
1239
1221
  protocol: protocol,
1240
1222
  hostname: hostname,
@@ -1310,11 +1292,9 @@ export var serializeAws_restJson1GetUsageStatisticsCommand = function (input, co
1310
1292
  else {
1311
1293
  throw new Error("No value provided for input HTTP label: DetectorId.");
1312
1294
  }
1313
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { maxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { nextToken: input.NextToken })), (input.Unit !== undefined && input.Unit !== null && { unit: input.Unit })), (input.UsageCriteria !== undefined &&
1314
- input.UsageCriteria !== null && {
1295
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { maxResults: input.MaxResults })), (input.NextToken != null && { nextToken: input.NextToken })), (input.Unit != null && { unit: input.Unit })), (input.UsageCriteria != null && {
1315
1296
  usageCriteria: serializeAws_restJson1UsageCriteria(input.UsageCriteria, context),
1316
- })), (input.UsageStatisticType !== undefined &&
1317
- input.UsageStatisticType !== null && { usageStatisticsType: input.UsageStatisticType })));
1297
+ })), (input.UsageStatisticType != null && { usageStatisticsType: input.UsageStatisticType })));
1318
1298
  return [2, new __HttpRequest({
1319
1299
  protocol: protocol,
1320
1300
  hostname: hostname,
@@ -1348,9 +1328,7 @@ export var serializeAws_restJson1InviteMembersCommand = function (input, context
1348
1328
  else {
1349
1329
  throw new Error("No value provided for input HTTP label: DetectorId.");
1350
1330
  }
1351
- body = JSON.stringify(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
1352
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })), (input.DisableEmailNotification !== undefined &&
1353
- input.DisableEmailNotification !== null && { disableEmailNotification: input.DisableEmailNotification })), (input.Message !== undefined && input.Message !== null && { message: input.Message })));
1331
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })), (input.DisableEmailNotification != null && { disableEmailNotification: input.DisableEmailNotification })), (input.Message != null && { message: input.Message })));
1354
1332
  return [2, new __HttpRequest({
1355
1333
  protocol: protocol,
1356
1334
  hostname: hostname,
@@ -1440,11 +1418,11 @@ export var serializeAws_restJson1ListFindingsCommand = function (input, context)
1440
1418
  else {
1441
1419
  throw new Error("No value provided for input HTTP label: DetectorId.");
1442
1420
  }
1443
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FindingCriteria !== undefined &&
1444
- input.FindingCriteria !== null && {
1421
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FindingCriteria != null && {
1445
1422
  findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
1446
- })), (input.MaxResults !== undefined && input.MaxResults !== null && { maxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { nextToken: input.NextToken })), (input.SortCriteria !== undefined &&
1447
- input.SortCriteria !== null && { sortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context) })));
1423
+ })), (input.MaxResults != null && { maxResults: input.MaxResults })), (input.NextToken != null && { nextToken: input.NextToken })), (input.SortCriteria != null && {
1424
+ sortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context),
1425
+ })));
1448
1426
  return [2, new __HttpRequest({
1449
1427
  protocol: protocol,
1450
1428
  hostname: hostname,
@@ -1688,8 +1666,7 @@ export var serializeAws_restJson1StartMonitoringMembersCommand = function (input
1688
1666
  else {
1689
1667
  throw new Error("No value provided for input HTTP label: DetectorId.");
1690
1668
  }
1691
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
1692
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1669
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1693
1670
  return [2, new __HttpRequest({
1694
1671
  protocol: protocol,
1695
1672
  hostname: hostname,
@@ -1723,8 +1700,7 @@ export var serializeAws_restJson1StopMonitoringMembersCommand = function (input,
1723
1700
  else {
1724
1701
  throw new Error("No value provided for input HTTP label: DetectorId.");
1725
1702
  }
1726
- body = JSON.stringify(__assign({}, (input.AccountIds !== undefined &&
1727
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1703
+ body = JSON.stringify(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })));
1728
1704
  return [2, new __HttpRequest({
1729
1705
  protocol: protocol,
1730
1706
  hostname: hostname,
@@ -1758,7 +1734,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1758
1734
  else {
1759
1735
  throw new Error("No value provided for input HTTP label: ResourceArn.");
1760
1736
  }
1761
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
1737
+ body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1TagMap(input.Tags, context) })));
1762
1738
  return [2, new __HttpRequest({
1763
1739
  protocol: protocol,
1764
1740
  hostname: hostname,
@@ -1792,8 +1768,7 @@ export var serializeAws_restJson1UnarchiveFindingsCommand = function (input, con
1792
1768
  else {
1793
1769
  throw new Error("No value provided for input HTTP label: DetectorId.");
1794
1770
  }
1795
- body = JSON.stringify(__assign({}, (input.FindingIds !== undefined &&
1796
- input.FindingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) })));
1771
+ body = JSON.stringify(__assign({}, (input.FindingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) })));
1797
1772
  return [2, new __HttpRequest({
1798
1773
  protocol: protocol,
1799
1774
  hostname: hostname,
@@ -1860,11 +1835,9 @@ export var serializeAws_restJson1UpdateDetectorCommand = function (input, contex
1860
1835
  else {
1861
1836
  throw new Error("No value provided for input HTTP label: DetectorId.");
1862
1837
  }
1863
- body = JSON.stringify(__assign(__assign(__assign({}, (input.DataSources !== undefined &&
1864
- input.DataSources !== null && {
1838
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.DataSources != null && {
1865
1839
  dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
1866
- })), (input.Enable !== undefined && input.Enable !== null && { enable: input.Enable })), (input.FindingPublishingFrequency !== undefined &&
1867
- input.FindingPublishingFrequency !== null && { findingPublishingFrequency: input.FindingPublishingFrequency })));
1840
+ })), (input.Enable != null && { enable: input.Enable })), (input.FindingPublishingFrequency != null && { findingPublishingFrequency: input.FindingPublishingFrequency })));
1868
1841
  return [2, new __HttpRequest({
1869
1842
  protocol: protocol,
1870
1843
  hostname: hostname,
@@ -1909,10 +1882,9 @@ export var serializeAws_restJson1UpdateFilterCommand = function (input, context)
1909
1882
  else {
1910
1883
  throw new Error("No value provided for input HTTP label: FilterName.");
1911
1884
  }
1912
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Action !== undefined && input.Action !== null && { action: input.Action })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.FindingCriteria !== undefined &&
1913
- input.FindingCriteria !== null && {
1885
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Action != null && { action: input.Action })), (input.Description != null && { description: input.Description })), (input.FindingCriteria != null && {
1914
1886
  findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
1915
- })), (input.Rank !== undefined && input.Rank !== null && { rank: input.Rank })));
1887
+ })), (input.Rank != null && { rank: input.Rank })));
1916
1888
  return [2, new __HttpRequest({
1917
1889
  protocol: protocol,
1918
1890
  hostname: hostname,
@@ -1946,8 +1918,7 @@ export var serializeAws_restJson1UpdateFindingsFeedbackCommand = function (input
1946
1918
  else {
1947
1919
  throw new Error("No value provided for input HTTP label: DetectorId.");
1948
1920
  }
1949
- body = JSON.stringify(__assign(__assign(__assign({}, (input.Comments !== undefined && input.Comments !== null && { comments: input.Comments })), (input.Feedback !== undefined && input.Feedback !== null && { feedback: input.Feedback })), (input.FindingIds !== undefined &&
1950
- input.FindingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) })));
1921
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.Comments != null && { comments: input.Comments })), (input.Feedback != null && { feedback: input.Feedback })), (input.FindingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.FindingIds, context) })));
1951
1922
  return [2, new __HttpRequest({
1952
1923
  protocol: protocol,
1953
1924
  hostname: hostname,
@@ -1991,7 +1962,7 @@ export var serializeAws_restJson1UpdateIPSetCommand = function (input, context)
1991
1962
  else {
1992
1963
  throw new Error("No value provided for input HTTP label: IpSetId.");
1993
1964
  }
1994
- body = JSON.stringify(__assign(__assign(__assign({}, (input.Activate !== undefined && input.Activate !== null && { activate: input.Activate })), (input.Location !== undefined && input.Location !== null && { location: input.Location })), (input.Name !== undefined && input.Name !== null && { name: input.Name })));
1965
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.Activate != null && { activate: input.Activate })), (input.Location != null && { location: input.Location })), (input.Name != null && { name: input.Name })));
1995
1966
  return [2, new __HttpRequest({
1996
1967
  protocol: protocol,
1997
1968
  hostname: hostname,
@@ -2026,9 +1997,7 @@ export var serializeAws_restJson1UpdateMemberDetectorsCommand = function (input,
2026
1997
  else {
2027
1998
  throw new Error("No value provided for input HTTP label: DetectorId.");
2028
1999
  }
2029
- body = JSON.stringify(__assign(__assign({}, (input.AccountIds !== undefined &&
2030
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })), (input.DataSources !== undefined &&
2031
- input.DataSources !== null && {
2000
+ body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })), (input.DataSources != null && {
2032
2001
  dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
2033
2002
  })));
2034
2003
  return [2, new __HttpRequest({
@@ -2064,8 +2033,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
2064
2033
  else {
2065
2034
  throw new Error("No value provided for input HTTP label: DetectorId.");
2066
2035
  }
2067
- body = JSON.stringify(__assign(__assign({}, (input.AutoEnable !== undefined && input.AutoEnable !== null && { autoEnable: input.AutoEnable })), (input.DataSources !== undefined &&
2068
- input.DataSources !== null && {
2036
+ body = JSON.stringify(__assign(__assign({}, (input.AutoEnable != null && { autoEnable: input.AutoEnable })), (input.DataSources != null && {
2069
2037
  dataSources: serializeAws_restJson1OrganizationDataSourceConfigurations(input.DataSources, context),
2070
2038
  })));
2071
2039
  return [2, new __HttpRequest({
@@ -2112,8 +2080,7 @@ export var serializeAws_restJson1UpdatePublishingDestinationCommand = function (
2112
2080
  else {
2113
2081
  throw new Error("No value provided for input HTTP label: DestinationId.");
2114
2082
  }
2115
- body = JSON.stringify(__assign({}, (input.DestinationProperties !== undefined &&
2116
- input.DestinationProperties !== null && {
2083
+ body = JSON.stringify(__assign({}, (input.DestinationProperties != null && {
2117
2084
  destinationProperties: serializeAws_restJson1DestinationProperties(input.DestinationProperties, context),
2118
2085
  })));
2119
2086
  return [2, new __HttpRequest({
@@ -2160,7 +2127,7 @@ export var serializeAws_restJson1UpdateThreatIntelSetCommand = function (input,
2160
2127
  else {
2161
2128
  throw new Error("No value provided for input HTTP label: ThreatIntelSetId.");
2162
2129
  }
2163
- body = JSON.stringify(__assign(__assign(__assign({}, (input.Activate !== undefined && input.Activate !== null && { activate: input.Activate })), (input.Location !== undefined && input.Location !== null && { location: input.Location })), (input.Name !== undefined && input.Name !== null && { name: input.Name })));
2130
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.Activate != null && { activate: input.Activate })), (input.Location != null && { location: input.Location })), (input.Name != null && { name: input.Name })));
2164
2131
  return [2, new __HttpRequest({
2165
2132
  protocol: protocol,
2166
2133
  hostname: hostname,
@@ -6006,7 +5973,7 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
6006
5973
  });
6007
5974
  }); };
6008
5975
  var serializeAws_restJson1AccountDetail = function (input, context) {
6009
- return __assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { accountId: input.AccountId })), (input.Email !== undefined && input.Email !== null && { email: input.Email }));
5976
+ return __assign(__assign({}, (input.AccountId != null && { accountId: input.AccountId })), (input.Email != null && { email: input.Email }));
6010
5977
  };
6011
5978
  var serializeAws_restJson1AccountDetails = function (input, context) {
6012
5979
  return input
@@ -6029,11 +5996,7 @@ var serializeAws_restJson1AccountIds = function (input, context) {
6029
5996
  });
6030
5997
  };
6031
5998
  var serializeAws_restJson1Condition = function (input, context) {
6032
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Eq !== undefined && input.Eq !== null && { eq: serializeAws_restJson1Eq(input.Eq, context) })), (input.Equals !== undefined &&
6033
- input.Equals !== null && { equals: serializeAws_restJson1Equals(input.Equals, context) })), (input.GreaterThan !== undefined && input.GreaterThan !== null && { greaterThan: input.GreaterThan })), (input.GreaterThanOrEqual !== undefined &&
6034
- input.GreaterThanOrEqual !== null && { greaterThanOrEqual: input.GreaterThanOrEqual })), (input.Gt !== undefined && input.Gt !== null && { gt: input.Gt })), (input.Gte !== undefined && input.Gte !== null && { gte: input.Gte })), (input.LessThan !== undefined && input.LessThan !== null && { lessThan: input.LessThan })), (input.LessThanOrEqual !== undefined &&
6035
- input.LessThanOrEqual !== null && { lessThanOrEqual: input.LessThanOrEqual })), (input.Lt !== undefined && input.Lt !== null && { lt: input.Lt })), (input.Lte !== undefined && input.Lte !== null && { lte: input.Lte })), (input.Neq !== undefined && input.Neq !== null && { neq: serializeAws_restJson1Neq(input.Neq, context) })), (input.NotEquals !== undefined &&
6036
- input.NotEquals !== null && { notEquals: serializeAws_restJson1NotEquals(input.NotEquals, context) }));
5999
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Eq != null && { eq: serializeAws_restJson1Eq(input.Eq, context) })), (input.Equals != null && { equals: serializeAws_restJson1Equals(input.Equals, context) })), (input.GreaterThan != null && { greaterThan: input.GreaterThan })), (input.GreaterThanOrEqual != null && { greaterThanOrEqual: input.GreaterThanOrEqual })), (input.Gt != null && { gt: input.Gt })), (input.Gte != null && { gte: input.Gte })), (input.LessThan != null && { lessThan: input.LessThan })), (input.LessThanOrEqual != null && { lessThanOrEqual: input.LessThanOrEqual })), (input.Lt != null && { lt: input.Lt })), (input.Lte != null && { lte: input.Lte })), (input.Neq != null && { neq: serializeAws_restJson1Neq(input.Neq, context) })), (input.NotEquals != null && { notEquals: serializeAws_restJson1NotEquals(input.NotEquals, context) }));
6037
6000
  };
6038
6001
  var serializeAws_restJson1Criterion = function (input, context) {
6039
6002
  return Object.entries(input).reduce(function (acc, _a) {
@@ -6046,11 +6009,9 @@ var serializeAws_restJson1Criterion = function (input, context) {
6046
6009
  }, {});
6047
6010
  };
6048
6011
  var serializeAws_restJson1DataSourceConfigurations = function (input, context) {
6049
- return __assign(__assign({}, (input.Kubernetes !== undefined &&
6050
- input.Kubernetes !== null && {
6012
+ return __assign(__assign({}, (input.Kubernetes != null && {
6051
6013
  kubernetes: serializeAws_restJson1KubernetesConfiguration(input.Kubernetes, context),
6052
- })), (input.S3Logs !== undefined &&
6053
- input.S3Logs !== null && { s3Logs: serializeAws_restJson1S3LogsConfiguration(input.S3Logs, context) }));
6014
+ })), (input.S3Logs != null && { s3Logs: serializeAws_restJson1S3LogsConfiguration(input.S3Logs, context) }));
6054
6015
  };
6055
6016
  var serializeAws_restJson1DataSourceList = function (input, context) {
6056
6017
  return input
@@ -6063,8 +6024,7 @@ var serializeAws_restJson1DataSourceList = function (input, context) {
6063
6024
  });
6064
6025
  };
6065
6026
  var serializeAws_restJson1DestinationProperties = function (input, context) {
6066
- return __assign(__assign({}, (input.DestinationArn !== undefined &&
6067
- input.DestinationArn !== null && { destinationArn: input.DestinationArn })), (input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { kmsKeyArn: input.KmsKeyArn }));
6027
+ return __assign(__assign({}, (input.DestinationArn != null && { destinationArn: input.DestinationArn })), (input.KmsKeyArn != null && { kmsKeyArn: input.KmsKeyArn }));
6068
6028
  };
6069
6029
  var serializeAws_restJson1Eq = function (input, context) {
6070
6030
  return input
@@ -6087,8 +6047,7 @@ var serializeAws_restJson1Equals = function (input, context) {
6087
6047
  });
6088
6048
  };
6089
6049
  var serializeAws_restJson1FindingCriteria = function (input, context) {
6090
- return __assign({}, (input.Criterion !== undefined &&
6091
- input.Criterion !== null && { criterion: serializeAws_restJson1Criterion(input.Criterion, context) }));
6050
+ return __assign({}, (input.Criterion != null && { criterion: serializeAws_restJson1Criterion(input.Criterion, context) }));
6092
6051
  };
6093
6052
  var serializeAws_restJson1FindingIds = function (input, context) {
6094
6053
  return input
@@ -6121,11 +6080,10 @@ var serializeAws_restJson1FindingTypes = function (input, context) {
6121
6080
  });
6122
6081
  };
6123
6082
  var serializeAws_restJson1KubernetesAuditLogsConfiguration = function (input, context) {
6124
- return __assign({}, (input.Enable !== undefined && input.Enable !== null && { enable: input.Enable }));
6083
+ return __assign({}, (input.Enable != null && { enable: input.Enable }));
6125
6084
  };
6126
6085
  var serializeAws_restJson1KubernetesConfiguration = function (input, context) {
6127
- return __assign({}, (input.AuditLogs !== undefined &&
6128
- input.AuditLogs !== null && {
6086
+ return __assign({}, (input.AuditLogs != null && {
6129
6087
  auditLogs: serializeAws_restJson1KubernetesAuditLogsConfiguration(input.AuditLogs, context),
6130
6088
  }));
6131
6089
  };
@@ -6150,25 +6108,22 @@ var serializeAws_restJson1NotEquals = function (input, context) {
6150
6108
  });
6151
6109
  };
6152
6110
  var serializeAws_restJson1OrganizationDataSourceConfigurations = function (input, context) {
6153
- return __assign(__assign({}, (input.Kubernetes !== undefined &&
6154
- input.Kubernetes !== null && {
6111
+ return __assign(__assign({}, (input.Kubernetes != null && {
6155
6112
  kubernetes: serializeAws_restJson1OrganizationKubernetesConfiguration(input.Kubernetes, context),
6156
- })), (input.S3Logs !== undefined &&
6157
- input.S3Logs !== null && {
6113
+ })), (input.S3Logs != null && {
6158
6114
  s3Logs: serializeAws_restJson1OrganizationS3LogsConfiguration(input.S3Logs, context),
6159
6115
  }));
6160
6116
  };
6161
6117
  var serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration = function (input, context) {
6162
- return __assign({}, (input.AutoEnable !== undefined && input.AutoEnable !== null && { autoEnable: input.AutoEnable }));
6118
+ return __assign({}, (input.AutoEnable != null && { autoEnable: input.AutoEnable }));
6163
6119
  };
6164
6120
  var serializeAws_restJson1OrganizationKubernetesConfiguration = function (input, context) {
6165
- return __assign({}, (input.AuditLogs !== undefined &&
6166
- input.AuditLogs !== null && {
6121
+ return __assign({}, (input.AuditLogs != null && {
6167
6122
  auditLogs: serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration(input.AuditLogs, context),
6168
6123
  }));
6169
6124
  };
6170
6125
  var serializeAws_restJson1OrganizationS3LogsConfiguration = function (input, context) {
6171
- return __assign({}, (input.AutoEnable !== undefined && input.AutoEnable !== null && { autoEnable: input.AutoEnable }));
6126
+ return __assign({}, (input.AutoEnable != null && { autoEnable: input.AutoEnable }));
6172
6127
  };
6173
6128
  var serializeAws_restJson1ResourceList = function (input, context) {
6174
6129
  return input
@@ -6181,10 +6136,10 @@ var serializeAws_restJson1ResourceList = function (input, context) {
6181
6136
  });
6182
6137
  };
6183
6138
  var serializeAws_restJson1S3LogsConfiguration = function (input, context) {
6184
- return __assign({}, (input.Enable !== undefined && input.Enable !== null && { enable: input.Enable }));
6139
+ return __assign({}, (input.Enable != null && { enable: input.Enable }));
6185
6140
  };
6186
6141
  var serializeAws_restJson1SortCriteria = function (input, context) {
6187
- return __assign(__assign({}, (input.AttributeName !== undefined && input.AttributeName !== null && { attributeName: input.AttributeName })), (input.OrderBy !== undefined && input.OrderBy !== null && { orderBy: input.OrderBy }));
6142
+ return __assign(__assign({}, (input.AttributeName != null && { attributeName: input.AttributeName })), (input.OrderBy != null && { orderBy: input.OrderBy }));
6188
6143
  };
6189
6144
  var serializeAws_restJson1TagMap = function (input, context) {
6190
6145
  return Object.entries(input).reduce(function (acc, _a) {
@@ -6197,10 +6152,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
6197
6152
  }, {});
6198
6153
  };
6199
6154
  var serializeAws_restJson1UsageCriteria = function (input, context) {
6200
- return __assign(__assign(__assign({}, (input.AccountIds !== undefined &&
6201
- input.AccountIds !== null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })), (input.DataSources !== undefined &&
6202
- input.DataSources !== null && { dataSources: serializeAws_restJson1DataSourceList(input.DataSources, context) })), (input.Resources !== undefined &&
6203
- input.Resources !== null && { resources: serializeAws_restJson1ResourceList(input.Resources, context) }));
6155
+ return __assign(__assign(__assign({}, (input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) })), (input.DataSources != null && { dataSources: serializeAws_restJson1DataSourceList(input.DataSources, context) })), (input.Resources != null && { resources: serializeAws_restJson1ResourceList(input.Resources, context) }));
6204
6156
  };
6205
6157
  var deserializeAws_restJson1AccessControlList = function (output, context) {
6206
6158
  return {
@@ -6219,7 +6171,7 @@ var deserializeAws_restJson1AccessKeyDetails = function (output, context) {
6219
6171
  var deserializeAws_restJson1AccountFreeTrialInfo = function (output, context) {
6220
6172
  return {
6221
6173
  AccountId: __expectString(output.accountId),
6222
- DataSources: output.dataSources !== undefined && output.dataSources !== null
6174
+ DataSources: output.dataSources != null
6223
6175
  ? deserializeAws_restJson1DataSourcesFreeTrial(output.dataSources, context)
6224
6176
  : undefined,
6225
6177
  };
@@ -6237,7 +6189,7 @@ var deserializeAws_restJson1AccountFreeTrialInfos = function (output, context) {
6237
6189
  };
6238
6190
  var deserializeAws_restJson1AccountLevelPermissions = function (output, context) {
6239
6191
  return {
6240
- BlockPublicAccess: output.blockPublicAccess !== undefined && output.blockPublicAccess !== null
6192
+ BlockPublicAccess: output.blockPublicAccess != null
6241
6193
  ? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
6242
6194
  : undefined,
6243
6195
  };
@@ -6245,19 +6197,19 @@ var deserializeAws_restJson1AccountLevelPermissions = function (output, context)
6245
6197
  var deserializeAws_restJson1Action = function (output, context) {
6246
6198
  return {
6247
6199
  ActionType: __expectString(output.actionType),
6248
- AwsApiCallAction: output.awsApiCallAction !== undefined && output.awsApiCallAction !== null
6200
+ AwsApiCallAction: output.awsApiCallAction != null
6249
6201
  ? deserializeAws_restJson1AwsApiCallAction(output.awsApiCallAction, context)
6250
6202
  : undefined,
6251
- DnsRequestAction: output.dnsRequestAction !== undefined && output.dnsRequestAction !== null
6203
+ DnsRequestAction: output.dnsRequestAction != null
6252
6204
  ? deserializeAws_restJson1DnsRequestAction(output.dnsRequestAction, context)
6253
6205
  : undefined,
6254
- KubernetesApiCallAction: output.kubernetesApiCallAction !== undefined && output.kubernetesApiCallAction !== null
6206
+ KubernetesApiCallAction: output.kubernetesApiCallAction != null
6255
6207
  ? deserializeAws_restJson1KubernetesApiCallAction(output.kubernetesApiCallAction, context)
6256
6208
  : undefined,
6257
- NetworkConnectionAction: output.networkConnectionAction !== undefined && output.networkConnectionAction !== null
6209
+ NetworkConnectionAction: output.networkConnectionAction != null
6258
6210
  ? deserializeAws_restJson1NetworkConnectionAction(output.networkConnectionAction, context)
6259
6211
  : undefined,
6260
- PortProbeAction: output.portProbeAction !== undefined && output.portProbeAction !== null
6212
+ PortProbeAction: output.portProbeAction != null
6261
6213
  ? deserializeAws_restJson1PortProbeAction(output.portProbeAction, context)
6262
6214
  : undefined,
6263
6215
  };
@@ -6299,19 +6251,17 @@ var deserializeAws_restJson1AffectedResources = function (output, context) {
6299
6251
  };
6300
6252
  var deserializeAws_restJson1AwsApiCallAction = function (output, context) {
6301
6253
  return {
6302
- AffectedResources: output.affectedResources !== undefined && output.affectedResources !== null
6254
+ AffectedResources: output.affectedResources != null
6303
6255
  ? deserializeAws_restJson1AffectedResources(output.affectedResources, context)
6304
6256
  : undefined,
6305
6257
  Api: __expectString(output.api),
6306
6258
  CallerType: __expectString(output.callerType),
6307
- DomainDetails: output.domainDetails !== undefined && output.domainDetails !== null
6308
- ? deserializeAws_restJson1DomainDetails(output.domainDetails, context)
6309
- : undefined,
6259
+ DomainDetails: output.domainDetails != null ? deserializeAws_restJson1DomainDetails(output.domainDetails, context) : undefined,
6310
6260
  ErrorCode: __expectString(output.errorCode),
6311
- RemoteAccountDetails: output.remoteAccountDetails !== undefined && output.remoteAccountDetails !== null
6261
+ RemoteAccountDetails: output.remoteAccountDetails != null
6312
6262
  ? deserializeAws_restJson1RemoteAccountDetails(output.remoteAccountDetails, context)
6313
6263
  : undefined,
6314
- RemoteIpDetails: output.remoteIpDetails !== undefined && output.remoteIpDetails !== null
6264
+ RemoteIpDetails: output.remoteIpDetails != null
6315
6265
  ? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
6316
6266
  : undefined,
6317
6267
  ServiceName: __expectString(output.serviceName),
@@ -6328,15 +6278,13 @@ var deserializeAws_restJson1BlockPublicAccess = function (output, context) {
6328
6278
  };
6329
6279
  var deserializeAws_restJson1BucketLevelPermissions = function (output, context) {
6330
6280
  return {
6331
- AccessControlList: output.accessControlList !== undefined && output.accessControlList !== null
6281
+ AccessControlList: output.accessControlList != null
6332
6282
  ? deserializeAws_restJson1AccessControlList(output.accessControlList, context)
6333
6283
  : undefined,
6334
- BlockPublicAccess: output.blockPublicAccess !== undefined && output.blockPublicAccess !== null
6284
+ BlockPublicAccess: output.blockPublicAccess != null
6335
6285
  ? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
6336
6286
  : undefined,
6337
- BucketPolicy: output.bucketPolicy !== undefined && output.bucketPolicy !== null
6338
- ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context)
6339
- : undefined,
6287
+ BucketPolicy: output.bucketPolicy != null ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context) : undefined,
6340
6288
  };
6341
6289
  };
6342
6290
  var deserializeAws_restJson1BucketPolicy = function (output, context) {
@@ -6357,10 +6305,8 @@ var deserializeAws_restJson1CloudTrailConfigurationResult = function (output, co
6357
6305
  };
6358
6306
  var deserializeAws_restJson1Condition = function (output, context) {
6359
6307
  return {
6360
- Eq: output.eq !== undefined && output.eq !== null ? deserializeAws_restJson1Eq(output.eq, context) : undefined,
6361
- Equals: output.equals !== undefined && output.equals !== null
6362
- ? deserializeAws_restJson1Equals(output.equals, context)
6363
- : undefined,
6308
+ Eq: output.eq != null ? deserializeAws_restJson1Eq(output.eq, context) : undefined,
6309
+ Equals: output.equals != null ? deserializeAws_restJson1Equals(output.equals, context) : undefined,
6364
6310
  GreaterThan: __expectLong(output.greaterThan),
6365
6311
  GreaterThanOrEqual: __expectLong(output.greaterThanOrEqual),
6366
6312
  Gt: __expectInt32(output.gt),
@@ -6369,10 +6315,8 @@ var deserializeAws_restJson1Condition = function (output, context) {
6369
6315
  LessThanOrEqual: __expectLong(output.lessThanOrEqual),
6370
6316
  Lt: __expectInt32(output.lt),
6371
6317
  Lte: __expectInt32(output.lte),
6372
- Neq: output.neq !== undefined && output.neq !== null ? deserializeAws_restJson1Neq(output.neq, context) : undefined,
6373
- NotEquals: output.notEquals !== undefined && output.notEquals !== null
6374
- ? deserializeAws_restJson1NotEquals(output.notEquals, context)
6375
- : undefined,
6318
+ Neq: output.neq != null ? deserializeAws_restJson1Neq(output.neq, context) : undefined,
6319
+ NotEquals: output.notEquals != null ? deserializeAws_restJson1NotEquals(output.notEquals, context) : undefined,
6376
6320
  };
6377
6321
  };
6378
6322
  var deserializeAws_restJson1Container = function (output, context) {
@@ -6382,12 +6326,10 @@ var deserializeAws_restJson1Container = function (output, context) {
6382
6326
  Image: __expectString(output.image),
6383
6327
  ImagePrefix: __expectString(output.imagePrefix),
6384
6328
  Name: __expectString(output.name),
6385
- SecurityContext: output.securityContext !== undefined && output.securityContext !== null
6329
+ SecurityContext: output.securityContext != null
6386
6330
  ? deserializeAws_restJson1SecurityContext(output.securityContext, context)
6387
6331
  : undefined,
6388
- VolumeMounts: output.volumeMounts !== undefined && output.volumeMounts !== null
6389
- ? deserializeAws_restJson1VolumeMounts(output.volumeMounts, context)
6390
- : undefined,
6332
+ VolumeMounts: output.volumeMounts != null ? deserializeAws_restJson1VolumeMounts(output.volumeMounts, context) : undefined,
6391
6333
  };
6392
6334
  };
6393
6335
  var deserializeAws_restJson1Containers = function (output, context) {
@@ -6429,21 +6371,17 @@ var deserializeAws_restJson1Criterion = function (output, context) {
6429
6371
  };
6430
6372
  var deserializeAws_restJson1DataSourceConfigurationsResult = function (output, context) {
6431
6373
  return {
6432
- CloudTrail: output.cloudTrail !== undefined && output.cloudTrail !== null
6374
+ CloudTrail: output.cloudTrail != null
6433
6375
  ? deserializeAws_restJson1CloudTrailConfigurationResult(output.cloudTrail, context)
6434
6376
  : undefined,
6435
- DNSLogs: output.dnsLogs !== undefined && output.dnsLogs !== null
6436
- ? deserializeAws_restJson1DNSLogsConfigurationResult(output.dnsLogs, context)
6437
- : undefined,
6438
- FlowLogs: output.flowLogs !== undefined && output.flowLogs !== null
6377
+ DNSLogs: output.dnsLogs != null ? deserializeAws_restJson1DNSLogsConfigurationResult(output.dnsLogs, context) : undefined,
6378
+ FlowLogs: output.flowLogs != null
6439
6379
  ? deserializeAws_restJson1FlowLogsConfigurationResult(output.flowLogs, context)
6440
6380
  : undefined,
6441
- Kubernetes: output.kubernetes !== undefined && output.kubernetes !== null
6381
+ Kubernetes: output.kubernetes != null
6442
6382
  ? deserializeAws_restJson1KubernetesConfigurationResult(output.kubernetes, context)
6443
6383
  : undefined,
6444
- S3Logs: output.s3Logs !== undefined && output.s3Logs !== null
6445
- ? deserializeAws_restJson1S3LogsConfigurationResult(output.s3Logs, context)
6446
- : undefined,
6384
+ S3Logs: output.s3Logs != null ? deserializeAws_restJson1S3LogsConfigurationResult(output.s3Logs, context) : undefined,
6447
6385
  };
6448
6386
  };
6449
6387
  var deserializeAws_restJson1DataSourceFreeTrial = function (output, context) {
@@ -6453,21 +6391,13 @@ var deserializeAws_restJson1DataSourceFreeTrial = function (output, context) {
6453
6391
  };
6454
6392
  var deserializeAws_restJson1DataSourcesFreeTrial = function (output, context) {
6455
6393
  return {
6456
- CloudTrail: output.cloudTrail !== undefined && output.cloudTrail !== null
6457
- ? deserializeAws_restJson1DataSourceFreeTrial(output.cloudTrail, context)
6458
- : undefined,
6459
- DnsLogs: output.dnsLogs !== undefined && output.dnsLogs !== null
6460
- ? deserializeAws_restJson1DataSourceFreeTrial(output.dnsLogs, context)
6461
- : undefined,
6462
- FlowLogs: output.flowLogs !== undefined && output.flowLogs !== null
6463
- ? deserializeAws_restJson1DataSourceFreeTrial(output.flowLogs, context)
6464
- : undefined,
6465
- Kubernetes: output.kubernetes !== undefined && output.kubernetes !== null
6394
+ CloudTrail: output.cloudTrail != null ? deserializeAws_restJson1DataSourceFreeTrial(output.cloudTrail, context) : undefined,
6395
+ DnsLogs: output.dnsLogs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.dnsLogs, context) : undefined,
6396
+ FlowLogs: output.flowLogs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.flowLogs, context) : undefined,
6397
+ Kubernetes: output.kubernetes != null
6466
6398
  ? deserializeAws_restJson1KubernetesDataSourceFreeTrial(output.kubernetes, context)
6467
6399
  : undefined,
6468
- S3Logs: output.s3Logs !== undefined && output.s3Logs !== null
6469
- ? deserializeAws_restJson1DataSourceFreeTrial(output.s3Logs, context)
6470
- : undefined,
6400
+ S3Logs: output.s3Logs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.s3Logs, context) : undefined,
6471
6401
  };
6472
6402
  };
6473
6403
  var deserializeAws_restJson1DefaultServerSideEncryption = function (output, context) {
@@ -6531,14 +6461,10 @@ var deserializeAws_restJson1DomainDetails = function (output, context) {
6531
6461
  var deserializeAws_restJson1EksClusterDetails = function (output, context) {
6532
6462
  return {
6533
6463
  Arn: __expectString(output.arn),
6534
- CreatedAt: output.createdAt !== undefined && output.createdAt !== null
6535
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
6536
- : undefined,
6464
+ CreatedAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
6537
6465
  Name: __expectString(output.name),
6538
6466
  Status: __expectString(output.status),
6539
- Tags: output.tags !== undefined && output.tags !== null
6540
- ? deserializeAws_restJson1Tags(output.tags, context)
6541
- : undefined,
6467
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
6542
6468
  VpcId: __expectString(output.vpcId),
6543
6469
  };
6544
6470
  };
@@ -6566,7 +6492,7 @@ var deserializeAws_restJson1Equals = function (output, context) {
6566
6492
  };
6567
6493
  var deserializeAws_restJson1Evidence = function (output, context) {
6568
6494
  return {
6569
- ThreatIntelligenceDetails: output.threatIntelligenceDetails !== undefined && output.threatIntelligenceDetails !== null
6495
+ ThreatIntelligenceDetails: output.threatIntelligenceDetails != null
6570
6496
  ? deserializeAws_restJson1ThreatIntelligenceDetails(output.threatIntelligenceDetails, context)
6571
6497
  : undefined,
6572
6498
  };
@@ -6592,13 +6518,9 @@ var deserializeAws_restJson1Finding = function (output, context) {
6592
6518
  Id: __expectString(output.id),
6593
6519
  Partition: __expectString(output.partition),
6594
6520
  Region: __expectString(output.region),
6595
- Resource: output.resource !== undefined && output.resource !== null
6596
- ? deserializeAws_restJson1Resource(output.resource, context)
6597
- : undefined,
6521
+ Resource: output.resource != null ? deserializeAws_restJson1Resource(output.resource, context) : undefined,
6598
6522
  SchemaVersion: __expectString(output.schemaVersion),
6599
- Service: output.service !== undefined && output.service !== null
6600
- ? deserializeAws_restJson1Service(output.service, context)
6601
- : undefined,
6523
+ Service: output.service != null ? deserializeAws_restJson1Service(output.service, context) : undefined,
6602
6524
  Severity: __limitedParseDouble(output.severity),
6603
6525
  Title: __expectString(output.title),
6604
6526
  Type: __expectString(output.type),
@@ -6607,9 +6529,7 @@ var deserializeAws_restJson1Finding = function (output, context) {
6607
6529
  };
6608
6530
  var deserializeAws_restJson1FindingCriteria = function (output, context) {
6609
6531
  return {
6610
- Criterion: output.criterion !== undefined && output.criterion !== null
6611
- ? deserializeAws_restJson1Criterion(output.criterion, context)
6612
- : undefined,
6532
+ Criterion: output.criterion != null ? deserializeAws_restJson1Criterion(output.criterion, context) : undefined,
6613
6533
  };
6614
6534
  };
6615
6535
  var deserializeAws_restJson1FindingIds = function (output, context) {
@@ -6636,7 +6556,7 @@ var deserializeAws_restJson1Findings = function (output, context) {
6636
6556
  };
6637
6557
  var deserializeAws_restJson1FindingStatistics = function (output, context) {
6638
6558
  return {
6639
- CountBySeverity: output.countBySeverity !== undefined && output.countBySeverity !== null
6559
+ CountBySeverity: output.countBySeverity != null
6640
6560
  ? deserializeAws_restJson1CountBySeverity(output.countBySeverity, context)
6641
6561
  : undefined,
6642
6562
  };
@@ -6677,7 +6597,7 @@ var deserializeAws_restJson1IamInstanceProfile = function (output, context) {
6677
6597
  var deserializeAws_restJson1InstanceDetails = function (output, context) {
6678
6598
  return {
6679
6599
  AvailabilityZone: __expectString(output.availabilityZone),
6680
- IamInstanceProfile: output.iamInstanceProfile !== undefined && output.iamInstanceProfile !== null
6600
+ IamInstanceProfile: output.iamInstanceProfile != null
6681
6601
  ? deserializeAws_restJson1IamInstanceProfile(output.iamInstanceProfile, context)
6682
6602
  : undefined,
6683
6603
  ImageDescription: __expectString(output.imageDescription),
@@ -6686,17 +6606,13 @@ var deserializeAws_restJson1InstanceDetails = function (output, context) {
6686
6606
  InstanceState: __expectString(output.instanceState),
6687
6607
  InstanceType: __expectString(output.instanceType),
6688
6608
  LaunchTime: __expectString(output.launchTime),
6689
- NetworkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
6609
+ NetworkInterfaces: output.networkInterfaces != null
6690
6610
  ? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
6691
6611
  : undefined,
6692
6612
  OutpostArn: __expectString(output.outpostArn),
6693
6613
  Platform: __expectString(output.platform),
6694
- ProductCodes: output.productCodes !== undefined && output.productCodes !== null
6695
- ? deserializeAws_restJson1ProductCodes(output.productCodes, context)
6696
- : undefined,
6697
- Tags: output.tags !== undefined && output.tags !== null
6698
- ? deserializeAws_restJson1Tags(output.tags, context)
6699
- : undefined,
6614
+ ProductCodes: output.productCodes != null ? deserializeAws_restJson1ProductCodes(output.productCodes, context) : undefined,
6615
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
6700
6616
  };
6701
6617
  };
6702
6618
  var deserializeAws_restJson1Invitation = function (output, context) {
@@ -6743,13 +6659,11 @@ var deserializeAws_restJson1Ipv6Addresses = function (output, context) {
6743
6659
  var deserializeAws_restJson1KubernetesApiCallAction = function (output, context) {
6744
6660
  return {
6745
6661
  Parameters: __expectString(output.parameters),
6746
- RemoteIpDetails: output.remoteIpDetails !== undefined && output.remoteIpDetails !== null
6662
+ RemoteIpDetails: output.remoteIpDetails != null
6747
6663
  ? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
6748
6664
  : undefined,
6749
6665
  RequestUri: __expectString(output.requestUri),
6750
- SourceIps: output.sourceIps !== undefined && output.sourceIps !== null
6751
- ? deserializeAws_restJson1SourceIps(output.sourceIps, context)
6752
- : undefined,
6666
+ SourceIps: output.sourceIps != null ? deserializeAws_restJson1SourceIps(output.sourceIps, context) : undefined,
6753
6667
  StatusCode: __expectInt32(output.statusCode),
6754
6668
  UserAgent: __expectString(output.userAgent),
6755
6669
  Verb: __expectString(output.verb),
@@ -6762,50 +6676,42 @@ var deserializeAws_restJson1KubernetesAuditLogsConfigurationResult = function (o
6762
6676
  };
6763
6677
  var deserializeAws_restJson1KubernetesConfigurationResult = function (output, context) {
6764
6678
  return {
6765
- AuditLogs: output.auditLogs !== undefined && output.auditLogs !== null
6679
+ AuditLogs: output.auditLogs != null
6766
6680
  ? deserializeAws_restJson1KubernetesAuditLogsConfigurationResult(output.auditLogs, context)
6767
6681
  : undefined,
6768
6682
  };
6769
6683
  };
6770
6684
  var deserializeAws_restJson1KubernetesDataSourceFreeTrial = function (output, context) {
6771
6685
  return {
6772
- AuditLogs: output.auditLogs !== undefined && output.auditLogs !== null
6773
- ? deserializeAws_restJson1DataSourceFreeTrial(output.auditLogs, context)
6774
- : undefined,
6686
+ AuditLogs: output.auditLogs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.auditLogs, context) : undefined,
6775
6687
  };
6776
6688
  };
6777
6689
  var deserializeAws_restJson1KubernetesDetails = function (output, context) {
6778
6690
  return {
6779
- KubernetesUserDetails: output.kubernetesUserDetails !== undefined && output.kubernetesUserDetails !== null
6691
+ KubernetesUserDetails: output.kubernetesUserDetails != null
6780
6692
  ? deserializeAws_restJson1KubernetesUserDetails(output.kubernetesUserDetails, context)
6781
6693
  : undefined,
6782
- KubernetesWorkloadDetails: output.kubernetesWorkloadDetails !== undefined && output.kubernetesWorkloadDetails !== null
6694
+ KubernetesWorkloadDetails: output.kubernetesWorkloadDetails != null
6783
6695
  ? deserializeAws_restJson1KubernetesWorkloadDetails(output.kubernetesWorkloadDetails, context)
6784
6696
  : undefined,
6785
6697
  };
6786
6698
  };
6787
6699
  var deserializeAws_restJson1KubernetesUserDetails = function (output, context) {
6788
6700
  return {
6789
- Groups: output.groups !== undefined && output.groups !== null
6790
- ? deserializeAws_restJson1Groups(output.groups, context)
6791
- : undefined,
6701
+ Groups: output.groups != null ? deserializeAws_restJson1Groups(output.groups, context) : undefined,
6792
6702
  Uid: __expectString(output.uid),
6793
6703
  Username: __expectString(output.username),
6794
6704
  };
6795
6705
  };
6796
6706
  var deserializeAws_restJson1KubernetesWorkloadDetails = function (output, context) {
6797
6707
  return {
6798
- Containers: output.containers !== undefined && output.containers !== null
6799
- ? deserializeAws_restJson1Containers(output.containers, context)
6800
- : undefined,
6708
+ Containers: output.containers != null ? deserializeAws_restJson1Containers(output.containers, context) : undefined,
6801
6709
  HostNetwork: __expectBoolean(output.hostNetwork),
6802
6710
  Name: __expectString(output.name),
6803
6711
  Namespace: __expectString(output.namespace),
6804
6712
  Type: __expectString(output.type),
6805
6713
  Uid: __expectString(output.uid),
6806
- Volumes: output.volumes !== undefined && output.volumes !== null
6807
- ? deserializeAws_restJson1Volumes(output.volumes, context)
6808
- : undefined,
6714
+ Volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
6809
6715
  };
6810
6716
  };
6811
6717
  var deserializeAws_restJson1LocalIpDetails = function (output, context) {
@@ -6842,7 +6748,7 @@ var deserializeAws_restJson1Member = function (output, context) {
6842
6748
  var deserializeAws_restJson1MemberDataSourceConfiguration = function (output, context) {
6843
6749
  return {
6844
6750
  AccountId: __expectString(output.accountId),
6845
- DataSources: output.dataSources !== undefined && output.dataSources !== null
6751
+ DataSources: output.dataSources != null
6846
6752
  ? deserializeAws_restJson1DataSourceConfigurationsResult(output.dataSources, context)
6847
6753
  : undefined,
6848
6754
  };
@@ -6884,35 +6790,33 @@ var deserializeAws_restJson1NetworkConnectionAction = function (output, context)
6884
6790
  return {
6885
6791
  Blocked: __expectBoolean(output.blocked),
6886
6792
  ConnectionDirection: __expectString(output.connectionDirection),
6887
- LocalIpDetails: output.localIpDetails !== undefined && output.localIpDetails !== null
6793
+ LocalIpDetails: output.localIpDetails != null
6888
6794
  ? deserializeAws_restJson1LocalIpDetails(output.localIpDetails, context)
6889
6795
  : undefined,
6890
- LocalPortDetails: output.localPortDetails !== undefined && output.localPortDetails !== null
6796
+ LocalPortDetails: output.localPortDetails != null
6891
6797
  ? deserializeAws_restJson1LocalPortDetails(output.localPortDetails, context)
6892
6798
  : undefined,
6893
6799
  Protocol: __expectString(output.protocol),
6894
- RemoteIpDetails: output.remoteIpDetails !== undefined && output.remoteIpDetails !== null
6800
+ RemoteIpDetails: output.remoteIpDetails != null
6895
6801
  ? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
6896
6802
  : undefined,
6897
- RemotePortDetails: output.remotePortDetails !== undefined && output.remotePortDetails !== null
6803
+ RemotePortDetails: output.remotePortDetails != null
6898
6804
  ? deserializeAws_restJson1RemotePortDetails(output.remotePortDetails, context)
6899
6805
  : undefined,
6900
6806
  };
6901
6807
  };
6902
6808
  var deserializeAws_restJson1NetworkInterface = function (output, context) {
6903
6809
  return {
6904
- Ipv6Addresses: output.ipv6Addresses !== undefined && output.ipv6Addresses !== null
6905
- ? deserializeAws_restJson1Ipv6Addresses(output.ipv6Addresses, context)
6906
- : undefined,
6810
+ Ipv6Addresses: output.ipv6Addresses != null ? deserializeAws_restJson1Ipv6Addresses(output.ipv6Addresses, context) : undefined,
6907
6811
  NetworkInterfaceId: __expectString(output.networkInterfaceId),
6908
6812
  PrivateDnsName: __expectString(output.privateDnsName),
6909
6813
  PrivateIpAddress: __expectString(output.privateIpAddress),
6910
- PrivateIpAddresses: output.privateIpAddresses !== undefined && output.privateIpAddresses !== null
6814
+ PrivateIpAddresses: output.privateIpAddresses != null
6911
6815
  ? deserializeAws_restJson1PrivateIpAddresses(output.privateIpAddresses, context)
6912
6816
  : undefined,
6913
6817
  PublicDnsName: __expectString(output.publicDnsName),
6914
6818
  PublicIp: __expectString(output.publicIp),
6915
- SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
6819
+ SecurityGroups: output.securityGroups != null
6916
6820
  ? deserializeAws_restJson1SecurityGroups(output.securityGroups, context)
6917
6821
  : undefined,
6918
6822
  SubnetId: __expectString(output.subnetId),
@@ -6951,10 +6855,10 @@ var deserializeAws_restJson1Organization = function (output, context) {
6951
6855
  };
6952
6856
  var deserializeAws_restJson1OrganizationDataSourceConfigurationsResult = function (output, context) {
6953
6857
  return {
6954
- Kubernetes: output.kubernetes !== undefined && output.kubernetes !== null
6858
+ Kubernetes: output.kubernetes != null
6955
6859
  ? deserializeAws_restJson1OrganizationKubernetesConfigurationResult(output.kubernetes, context)
6956
6860
  : undefined,
6957
- S3Logs: output.s3Logs !== undefined && output.s3Logs !== null
6861
+ S3Logs: output.s3Logs != null
6958
6862
  ? deserializeAws_restJson1OrganizationS3LogsConfigurationResult(output.s3Logs, context)
6959
6863
  : undefined,
6960
6864
  };
@@ -6966,7 +6870,7 @@ var deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult =
6966
6870
  };
6967
6871
  var deserializeAws_restJson1OrganizationKubernetesConfigurationResult = function (output, context) {
6968
6872
  return {
6969
- AuditLogs: output.auditLogs !== undefined && output.auditLogs !== null
6873
+ AuditLogs: output.auditLogs != null
6970
6874
  ? deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult(output.auditLogs, context)
6971
6875
  : undefined,
6972
6876
  };
@@ -6983,10 +6887,10 @@ var deserializeAws_restJson1Owner = function (output, context) {
6983
6887
  };
6984
6888
  var deserializeAws_restJson1PermissionConfiguration = function (output, context) {
6985
6889
  return {
6986
- AccountLevelPermissions: output.accountLevelPermissions !== undefined && output.accountLevelPermissions !== null
6890
+ AccountLevelPermissions: output.accountLevelPermissions != null
6987
6891
  ? deserializeAws_restJson1AccountLevelPermissions(output.accountLevelPermissions, context)
6988
6892
  : undefined,
6989
- BucketLevelPermissions: output.bucketLevelPermissions !== undefined && output.bucketLevelPermissions !== null
6893
+ BucketLevelPermissions: output.bucketLevelPermissions != null
6990
6894
  ? deserializeAws_restJson1BucketLevelPermissions(output.bucketLevelPermissions, context)
6991
6895
  : undefined,
6992
6896
  };
@@ -6994,20 +6898,20 @@ var deserializeAws_restJson1PermissionConfiguration = function (output, context)
6994
6898
  var deserializeAws_restJson1PortProbeAction = function (output, context) {
6995
6899
  return {
6996
6900
  Blocked: __expectBoolean(output.blocked),
6997
- PortProbeDetails: output.portProbeDetails !== undefined && output.portProbeDetails !== null
6901
+ PortProbeDetails: output.portProbeDetails != null
6998
6902
  ? deserializeAws_restJson1PortProbeDetails(output.portProbeDetails, context)
6999
6903
  : undefined,
7000
6904
  };
7001
6905
  };
7002
6906
  var deserializeAws_restJson1PortProbeDetail = function (output, context) {
7003
6907
  return {
7004
- LocalIpDetails: output.localIpDetails !== undefined && output.localIpDetails !== null
6908
+ LocalIpDetails: output.localIpDetails != null
7005
6909
  ? deserializeAws_restJson1LocalIpDetails(output.localIpDetails, context)
7006
6910
  : undefined,
7007
- LocalPortDetails: output.localPortDetails !== undefined && output.localPortDetails !== null
6911
+ LocalPortDetails: output.localPortDetails != null
7008
6912
  ? deserializeAws_restJson1LocalPortDetails(output.localPortDetails, context)
7009
6913
  : undefined,
7010
- RemoteIpDetails: output.remoteIpDetails !== undefined && output.remoteIpDetails !== null
6914
+ RemoteIpDetails: output.remoteIpDetails != null
7011
6915
  ? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
7012
6916
  : undefined,
7013
6917
  };
@@ -7060,7 +6964,7 @@ var deserializeAws_restJson1ProductCodes = function (output, context) {
7060
6964
  var deserializeAws_restJson1PublicAccess = function (output, context) {
7061
6965
  return {
7062
6966
  EffectivePermission: __expectString(output.effectivePermission),
7063
- PermissionConfiguration: output.permissionConfiguration !== undefined && output.permissionConfiguration !== null
6967
+ PermissionConfiguration: output.permissionConfiguration != null
7064
6968
  ? deserializeAws_restJson1PermissionConfiguration(output.permissionConfiguration, context)
7065
6969
  : undefined,
7066
6970
  };
@@ -7073,19 +6977,11 @@ var deserializeAws_restJson1RemoteAccountDetails = function (output, context) {
7073
6977
  };
7074
6978
  var deserializeAws_restJson1RemoteIpDetails = function (output, context) {
7075
6979
  return {
7076
- City: output.city !== undefined && output.city !== null
7077
- ? deserializeAws_restJson1City(output.city, context)
7078
- : undefined,
7079
- Country: output.country !== undefined && output.country !== null
7080
- ? deserializeAws_restJson1Country(output.country, context)
7081
- : undefined,
7082
- GeoLocation: output.geoLocation !== undefined && output.geoLocation !== null
7083
- ? deserializeAws_restJson1GeoLocation(output.geoLocation, context)
7084
- : undefined,
6980
+ City: output.city != null ? deserializeAws_restJson1City(output.city, context) : undefined,
6981
+ Country: output.country != null ? deserializeAws_restJson1Country(output.country, context) : undefined,
6982
+ GeoLocation: output.geoLocation != null ? deserializeAws_restJson1GeoLocation(output.geoLocation, context) : undefined,
7085
6983
  IpAddressV4: __expectString(output.ipAddressV4),
7086
- Organization: output.organization !== undefined && output.organization !== null
7087
- ? deserializeAws_restJson1Organization(output.organization, context)
7088
- : undefined,
6984
+ Organization: output.organization != null ? deserializeAws_restJson1Organization(output.organization, context) : undefined,
7089
6985
  };
7090
6986
  };
7091
6987
  var deserializeAws_restJson1RemotePortDetails = function (output, context) {
@@ -7096,20 +6992,20 @@ var deserializeAws_restJson1RemotePortDetails = function (output, context) {
7096
6992
  };
7097
6993
  var deserializeAws_restJson1Resource = function (output, context) {
7098
6994
  return {
7099
- AccessKeyDetails: output.accessKeyDetails !== undefined && output.accessKeyDetails !== null
6995
+ AccessKeyDetails: output.accessKeyDetails != null
7100
6996
  ? deserializeAws_restJson1AccessKeyDetails(output.accessKeyDetails, context)
7101
6997
  : undefined,
7102
- EksClusterDetails: output.eksClusterDetails !== undefined && output.eksClusterDetails !== null
6998
+ EksClusterDetails: output.eksClusterDetails != null
7103
6999
  ? deserializeAws_restJson1EksClusterDetails(output.eksClusterDetails, context)
7104
7000
  : undefined,
7105
- InstanceDetails: output.instanceDetails !== undefined && output.instanceDetails !== null
7001
+ InstanceDetails: output.instanceDetails != null
7106
7002
  ? deserializeAws_restJson1InstanceDetails(output.instanceDetails, context)
7107
7003
  : undefined,
7108
- KubernetesDetails: output.kubernetesDetails !== undefined && output.kubernetesDetails !== null
7004
+ KubernetesDetails: output.kubernetesDetails != null
7109
7005
  ? deserializeAws_restJson1KubernetesDetails(output.kubernetesDetails, context)
7110
7006
  : undefined,
7111
7007
  ResourceType: __expectString(output.resourceType),
7112
- S3BucketDetails: output.s3BucketDetails !== undefined && output.s3BucketDetails !== null
7008
+ S3BucketDetails: output.s3BucketDetails != null
7113
7009
  ? deserializeAws_restJson1S3BucketDetails(output.s3BucketDetails, context)
7114
7010
  : undefined,
7115
7011
  };
@@ -7117,22 +7013,14 @@ var deserializeAws_restJson1Resource = function (output, context) {
7117
7013
  var deserializeAws_restJson1S3BucketDetail = function (output, context) {
7118
7014
  return {
7119
7015
  Arn: __expectString(output.arn),
7120
- CreatedAt: output.createdAt !== undefined && output.createdAt !== null
7121
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
7122
- : undefined,
7123
- DefaultServerSideEncryption: output.defaultServerSideEncryption !== undefined && output.defaultServerSideEncryption !== null
7016
+ CreatedAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
7017
+ DefaultServerSideEncryption: output.defaultServerSideEncryption != null
7124
7018
  ? deserializeAws_restJson1DefaultServerSideEncryption(output.defaultServerSideEncryption, context)
7125
7019
  : undefined,
7126
7020
  Name: __expectString(output.name),
7127
- Owner: output.owner !== undefined && output.owner !== null
7128
- ? deserializeAws_restJson1Owner(output.owner, context)
7129
- : undefined,
7130
- PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
7131
- ? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
7132
- : undefined,
7133
- Tags: output.tags !== undefined && output.tags !== null
7134
- ? deserializeAws_restJson1Tags(output.tags, context)
7135
- : undefined,
7021
+ Owner: output.owner != null ? deserializeAws_restJson1Owner(output.owner, context) : undefined,
7022
+ PublicAccess: output.publicAccess != null ? deserializeAws_restJson1PublicAccess(output.publicAccess, context) : undefined,
7023
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
7136
7024
  Type: __expectString(output.type),
7137
7025
  };
7138
7026
  };
@@ -7176,10 +7064,8 @@ var deserializeAws_restJson1SecurityGroups = function (output, context) {
7176
7064
  };
7177
7065
  var deserializeAws_restJson1Service = function (output, context) {
7178
7066
  return {
7179
- Action: output.action !== undefined && output.action !== null
7180
- ? deserializeAws_restJson1Action(output.action, context)
7181
- : undefined,
7182
- AdditionalInfo: output.additionalInfo !== undefined && output.additionalInfo !== null
7067
+ Action: output.action != null ? deserializeAws_restJson1Action(output.action, context) : undefined,
7068
+ AdditionalInfo: output.additionalInfo != null
7183
7069
  ? deserializeAws_restJson1ServiceAdditionalInfo(output.additionalInfo, context)
7184
7070
  : undefined,
7185
7071
  Archived: __expectBoolean(output.archived),
@@ -7187,9 +7073,7 @@ var deserializeAws_restJson1Service = function (output, context) {
7187
7073
  DetectorId: __expectString(output.detectorId),
7188
7074
  EventFirstSeen: __expectString(output.eventFirstSeen),
7189
7075
  EventLastSeen: __expectString(output.eventLastSeen),
7190
- Evidence: output.evidence !== undefined && output.evidence !== null
7191
- ? deserializeAws_restJson1Evidence(output.evidence, context)
7192
- : undefined,
7076
+ Evidence: output.evidence != null ? deserializeAws_restJson1Evidence(output.evidence, context) : undefined,
7193
7077
  ResourceRole: __expectString(output.resourceRole),
7194
7078
  ServiceName: __expectString(output.serviceName),
7195
7079
  UserFeedback: __expectString(output.userFeedback),
@@ -7242,9 +7126,7 @@ var deserializeAws_restJson1Tags = function (output, context) {
7242
7126
  var deserializeAws_restJson1ThreatIntelligenceDetail = function (output, context) {
7243
7127
  return {
7244
7128
  ThreatListName: __expectString(output.threatListName),
7245
- ThreatNames: output.threatNames !== undefined && output.threatNames !== null
7246
- ? deserializeAws_restJson1ThreatNames(output.threatNames, context)
7247
- : undefined,
7129
+ ThreatNames: output.threatNames != null ? deserializeAws_restJson1ThreatNames(output.threatNames, context) : undefined,
7248
7130
  };
7249
7131
  };
7250
7132
  var deserializeAws_restJson1ThreatIntelligenceDetails = function (output, context) {
@@ -7306,9 +7188,7 @@ var deserializeAws_restJson1UnprocessedAccounts = function (output, context) {
7306
7188
  var deserializeAws_restJson1UsageAccountResult = function (output, context) {
7307
7189
  return {
7308
7190
  AccountId: __expectString(output.accountId),
7309
- Total: output.total !== undefined && output.total !== null
7310
- ? deserializeAws_restJson1Total(output.total, context)
7311
- : undefined,
7191
+ Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
7312
7192
  };
7313
7193
  };
7314
7194
  var deserializeAws_restJson1UsageAccountResultList = function (output, context) {
@@ -7325,9 +7205,7 @@ var deserializeAws_restJson1UsageAccountResultList = function (output, context)
7325
7205
  var deserializeAws_restJson1UsageDataSourceResult = function (output, context) {
7326
7206
  return {
7327
7207
  DataSource: __expectString(output.dataSource),
7328
- Total: output.total !== undefined && output.total !== null
7329
- ? deserializeAws_restJson1Total(output.total, context)
7330
- : undefined,
7208
+ Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
7331
7209
  };
7332
7210
  };
7333
7211
  var deserializeAws_restJson1UsageDataSourceResultList = function (output, context) {
@@ -7344,9 +7222,7 @@ var deserializeAws_restJson1UsageDataSourceResultList = function (output, contex
7344
7222
  var deserializeAws_restJson1UsageResourceResult = function (output, context) {
7345
7223
  return {
7346
7224
  Resource: __expectString(output.resource),
7347
- Total: output.total !== undefined && output.total !== null
7348
- ? deserializeAws_restJson1Total(output.total, context)
7349
- : undefined,
7225
+ Total: output.total != null ? deserializeAws_restJson1Total(output.total, context) : undefined,
7350
7226
  };
7351
7227
  };
7352
7228
  var deserializeAws_restJson1UsageResourceResultList = function (output, context) {
@@ -7362,25 +7238,23 @@ var deserializeAws_restJson1UsageResourceResultList = function (output, context)
7362
7238
  };
7363
7239
  var deserializeAws_restJson1UsageStatistics = function (output, context) {
7364
7240
  return {
7365
- SumByAccount: output.sumByAccount !== undefined && output.sumByAccount !== null
7241
+ SumByAccount: output.sumByAccount != null
7366
7242
  ? deserializeAws_restJson1UsageAccountResultList(output.sumByAccount, context)
7367
7243
  : undefined,
7368
- SumByDataSource: output.sumByDataSource !== undefined && output.sumByDataSource !== null
7244
+ SumByDataSource: output.sumByDataSource != null
7369
7245
  ? deserializeAws_restJson1UsageDataSourceResultList(output.sumByDataSource, context)
7370
7246
  : undefined,
7371
- SumByResource: output.sumByResource !== undefined && output.sumByResource !== null
7247
+ SumByResource: output.sumByResource != null
7372
7248
  ? deserializeAws_restJson1UsageResourceResultList(output.sumByResource, context)
7373
7249
  : undefined,
7374
- TopResources: output.topResources !== undefined && output.topResources !== null
7250
+ TopResources: output.topResources != null
7375
7251
  ? deserializeAws_restJson1UsageResourceResultList(output.topResources, context)
7376
7252
  : undefined,
7377
7253
  };
7378
7254
  };
7379
7255
  var deserializeAws_restJson1Volume = function (output, context) {
7380
7256
  return {
7381
- HostPath: output.hostPath !== undefined && output.hostPath !== null
7382
- ? deserializeAws_restJson1HostPath(output.hostPath, context)
7383
- : undefined,
7257
+ HostPath: output.hostPath != null ? deserializeAws_restJson1HostPath(output.hostPath, context) : undefined,
7384
7258
  Name: __expectString(output.name),
7385
7259
  };
7386
7260
  };
@@ -7450,6 +7324,9 @@ var loadRestJsonErrorCode = function (output, data) {
7450
7324
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
7451
7325
  var sanitizeErrorCode = function (rawValue) {
7452
7326
  var cleanValue = rawValue;
7327
+ if (typeof cleanValue === "number") {
7328
+ cleanValue = cleanValue.toString();
7329
+ }
7453
7330
  if (cleanValue.indexOf(":") >= 0) {
7454
7331
  cleanValue = cleanValue.split(":")[0];
7455
7332
  }