@aws-sdk/client-inspector2 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.
@@ -15,7 +15,7 @@ const serializeAws_restJson1AssociateMemberCommand = async (input, context) => {
15
15
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/associate";
16
16
  let body;
17
17
  body = JSON.stringify({
18
- ...(input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId }),
18
+ ...(input.accountId != null && { accountId: input.accountId }),
19
19
  });
20
20
  return new protocol_http_1.HttpRequest({
21
21
  protocol,
@@ -36,8 +36,7 @@ const serializeAws_restJson1BatchGetAccountStatusCommand = async (input, context
36
36
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/status/batch/get";
37
37
  let body;
38
38
  body = JSON.stringify({
39
- ...(input.accountIds !== undefined &&
40
- input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
39
+ ...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
41
40
  });
42
41
  return new protocol_http_1.HttpRequest({
43
42
  protocol,
@@ -58,8 +57,7 @@ const serializeAws_restJson1BatchGetFreeTrialInfoCommand = async (input, context
58
57
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/freetrialinfo/batchget";
59
58
  let body;
60
59
  body = JSON.stringify({
61
- ...(input.accountIds !== undefined &&
62
- input.accountIds !== null && {
60
+ ...(input.accountIds != null && {
63
61
  accountIds: serializeAws_restJson1MeteringAccountIdList(input.accountIds, context),
64
62
  }),
65
63
  });
@@ -82,7 +80,7 @@ const serializeAws_restJson1CancelFindingsReportCommand = async (input, context)
82
80
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/cancel";
83
81
  let body;
84
82
  body = JSON.stringify({
85
- ...(input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId }),
83
+ ...(input.reportId != null && { reportId: input.reportId }),
86
84
  });
87
85
  return new protocol_http_1.HttpRequest({
88
86
  protocol,
@@ -103,14 +101,13 @@ const serializeAws_restJson1CreateFilterCommand = async (input, context) => {
103
101
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/create";
104
102
  let body;
105
103
  body = JSON.stringify({
106
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
107
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
108
- ...(input.filterCriteria !== undefined &&
109
- input.filterCriteria !== null && {
104
+ ...(input.action != null && { action: input.action }),
105
+ ...(input.description != null && { description: input.description }),
106
+ ...(input.filterCriteria != null && {
110
107
  filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
111
108
  }),
112
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
113
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
109
+ ...(input.name != null && { name: input.name }),
110
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
114
111
  });
115
112
  return new protocol_http_1.HttpRequest({
116
113
  protocol,
@@ -131,13 +128,11 @@ const serializeAws_restJson1CreateFindingsReportCommand = async (input, context)
131
128
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/create";
132
129
  let body;
133
130
  body = JSON.stringify({
134
- ...(input.filterCriteria !== undefined &&
135
- input.filterCriteria !== null && {
131
+ ...(input.filterCriteria != null && {
136
132
  filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
137
133
  }),
138
- ...(input.reportFormat !== undefined && input.reportFormat !== null && { reportFormat: input.reportFormat }),
139
- ...(input.s3Destination !== undefined &&
140
- input.s3Destination !== null && {
134
+ ...(input.reportFormat != null && { reportFormat: input.reportFormat }),
135
+ ...(input.s3Destination != null && {
141
136
  s3Destination: serializeAws_restJson1Destination(input.s3Destination, context),
142
137
  }),
143
138
  });
@@ -160,7 +155,7 @@ const serializeAws_restJson1DeleteFilterCommand = async (input, context) => {
160
155
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/delete";
161
156
  let body;
162
157
  body = JSON.stringify({
163
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
158
+ ...(input.arn != null && { arn: input.arn }),
164
159
  });
165
160
  return new protocol_http_1.HttpRequest({
166
161
  protocol,
@@ -200,10 +195,8 @@ const serializeAws_restJson1DisableCommand = async (input, context) => {
200
195
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/disable";
201
196
  let body;
202
197
  body = JSON.stringify({
203
- ...(input.accountIds !== undefined &&
204
- input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
205
- ...(input.resourceTypes !== undefined &&
206
- input.resourceTypes !== null && {
198
+ ...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
199
+ ...(input.resourceTypes != null && {
207
200
  resourceTypes: serializeAws_restJson1DisableResourceTypeList(input.resourceTypes, context),
208
201
  }),
209
202
  });
@@ -226,8 +219,7 @@ const serializeAws_restJson1DisableDelegatedAdminAccountCommand = async (input,
226
219
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/disable";
227
220
  let body;
228
221
  body = JSON.stringify({
229
- ...(input.delegatedAdminAccountId !== undefined &&
230
- input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
222
+ ...(input.delegatedAdminAccountId != null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
231
223
  });
232
224
  return new protocol_http_1.HttpRequest({
233
225
  protocol,
@@ -248,7 +240,7 @@ const serializeAws_restJson1DisassociateMemberCommand = async (input, context) =
248
240
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate";
249
241
  let body;
250
242
  body = JSON.stringify({
251
- ...(input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId }),
243
+ ...(input.accountId != null && { accountId: input.accountId }),
252
244
  });
253
245
  return new protocol_http_1.HttpRequest({
254
246
  protocol,
@@ -270,11 +262,9 @@ const serializeAws_restJson1EnableCommand = async (input, context) => {
270
262
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/enable";
271
263
  let body;
272
264
  body = JSON.stringify({
273
- ...(input.accountIds !== undefined &&
274
- input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
265
+ ...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
275
266
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
276
- ...(input.resourceTypes !== undefined &&
277
- input.resourceTypes !== null && {
267
+ ...(input.resourceTypes != null && {
278
268
  resourceTypes: serializeAws_restJson1EnableResourceTypeList(input.resourceTypes, context),
279
269
  }),
280
270
  });
@@ -299,8 +289,7 @@ const serializeAws_restJson1EnableDelegatedAdminAccountCommand = async (input, c
299
289
  let body;
300
290
  body = JSON.stringify({
301
291
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
302
- ...(input.delegatedAdminAccountId !== undefined &&
303
- input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
292
+ ...(input.delegatedAdminAccountId != null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
304
293
  });
305
294
  return new protocol_http_1.HttpRequest({
306
295
  protocol,
@@ -340,7 +329,7 @@ const serializeAws_restJson1GetFindingsReportStatusCommand = async (input, conte
340
329
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/status/get";
341
330
  let body;
342
331
  body = JSON.stringify({
343
- ...(input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId }),
332
+ ...(input.reportId != null && { reportId: input.reportId }),
344
333
  });
345
334
  return new protocol_http_1.HttpRequest({
346
335
  protocol,
@@ -361,7 +350,7 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
361
350
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/get";
362
351
  let body;
363
352
  body = JSON.stringify({
364
- ...(input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId }),
353
+ ...(input.accountId != null && { accountId: input.accountId }),
365
354
  });
366
355
  return new protocol_http_1.HttpRequest({
367
356
  protocol,
@@ -382,9 +371,9 @@ const serializeAws_restJson1ListAccountPermissionsCommand = async (input, contex
382
371
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accountpermissions/list";
383
372
  let body;
384
373
  body = JSON.stringify({
385
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
386
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
387
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
374
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
375
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
376
+ ...(input.service != null && { service: input.service }),
388
377
  });
389
378
  return new protocol_http_1.HttpRequest({
390
379
  protocol,
@@ -405,12 +394,11 @@ const serializeAws_restJson1ListCoverageCommand = async (input, context) => {
405
394
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/list";
406
395
  let body;
407
396
  body = JSON.stringify({
408
- ...(input.filterCriteria !== undefined &&
409
- input.filterCriteria !== null && {
397
+ ...(input.filterCriteria != null && {
410
398
  filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
411
399
  }),
412
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
413
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
400
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
401
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
414
402
  });
415
403
  return new protocol_http_1.HttpRequest({
416
404
  protocol,
@@ -431,12 +419,11 @@ const serializeAws_restJson1ListCoverageStatisticsCommand = async (input, contex
431
419
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/statistics/list";
432
420
  let body;
433
421
  body = JSON.stringify({
434
- ...(input.filterCriteria !== undefined &&
435
- input.filterCriteria !== null && {
422
+ ...(input.filterCriteria != null && {
436
423
  filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
437
424
  }),
438
- ...(input.groupBy !== undefined && input.groupBy !== null && { groupBy: input.groupBy }),
439
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
425
+ ...(input.groupBy != null && { groupBy: input.groupBy }),
426
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
440
427
  });
441
428
  return new protocol_http_1.HttpRequest({
442
429
  protocol,
@@ -457,8 +444,8 @@ const serializeAws_restJson1ListDelegatedAdminAccountsCommand = async (input, co
457
444
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/list";
458
445
  let body;
459
446
  body = JSON.stringify({
460
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
461
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
447
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
448
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
462
449
  });
463
450
  return new protocol_http_1.HttpRequest({
464
451
  protocol,
@@ -479,11 +466,10 @@ const serializeAws_restJson1ListFiltersCommand = async (input, context) => {
479
466
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/list";
480
467
  let body;
481
468
  body = JSON.stringify({
482
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
483
- ...(input.arns !== undefined &&
484
- input.arns !== null && { arns: serializeAws_restJson1FilterArnList(input.arns, context) }),
485
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
486
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
469
+ ...(input.action != null && { action: input.action }),
470
+ ...(input.arns != null && { arns: serializeAws_restJson1FilterArnList(input.arns, context) }),
471
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
472
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
487
473
  });
488
474
  return new protocol_http_1.HttpRequest({
489
475
  protocol,
@@ -504,16 +490,13 @@ const serializeAws_restJson1ListFindingAggregationsCommand = async (input, conte
504
490
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/aggregation/list";
505
491
  let body;
506
492
  body = JSON.stringify({
507
- ...(input.accountIds !== undefined &&
508
- input.accountIds !== null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) }),
509
- ...(input.aggregationRequest !== undefined &&
510
- input.aggregationRequest !== null && {
493
+ ...(input.accountIds != null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) }),
494
+ ...(input.aggregationRequest != null && {
511
495
  aggregationRequest: serializeAws_restJson1AggregationRequest(input.aggregationRequest, context),
512
496
  }),
513
- ...(input.aggregationType !== undefined &&
514
- input.aggregationType !== null && { aggregationType: input.aggregationType }),
515
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
516
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
497
+ ...(input.aggregationType != null && { aggregationType: input.aggregationType }),
498
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
499
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
517
500
  });
518
501
  return new protocol_http_1.HttpRequest({
519
502
  protocol,
@@ -534,14 +517,14 @@ const serializeAws_restJson1ListFindingsCommand = async (input, context) => {
534
517
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/list";
535
518
  let body;
536
519
  body = JSON.stringify({
537
- ...(input.filterCriteria !== undefined &&
538
- input.filterCriteria !== null && {
520
+ ...(input.filterCriteria != null && {
539
521
  filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
540
522
  }),
541
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
542
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
543
- ...(input.sortCriteria !== undefined &&
544
- input.sortCriteria !== null && { sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context) }),
523
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
524
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
525
+ ...(input.sortCriteria != null && {
526
+ sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
527
+ }),
545
528
  });
546
529
  return new protocol_http_1.HttpRequest({
547
530
  protocol,
@@ -562,10 +545,9 @@ const serializeAws_restJson1ListMembersCommand = async (input, context) => {
562
545
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/list";
563
546
  let body;
564
547
  body = JSON.stringify({
565
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
566
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
567
- ...(input.onlyAssociated !== undefined &&
568
- input.onlyAssociated !== null && { onlyAssociated: input.onlyAssociated }),
548
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
549
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
550
+ ...(input.onlyAssociated != null && { onlyAssociated: input.onlyAssociated }),
569
551
  });
570
552
  return new protocol_http_1.HttpRequest({
571
553
  protocol,
@@ -612,10 +594,11 @@ const serializeAws_restJson1ListUsageTotalsCommand = async (input, context) => {
612
594
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/usage/list";
613
595
  let body;
614
596
  body = JSON.stringify({
615
- ...(input.accountIds !== undefined &&
616
- input.accountIds !== null && { accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context) }),
617
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
618
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
597
+ ...(input.accountIds != null && {
598
+ accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context),
599
+ }),
600
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
601
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
619
602
  });
620
603
  return new protocol_http_1.HttpRequest({
621
604
  protocol,
@@ -646,7 +629,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
646
629
  }
647
630
  let body;
648
631
  body = JSON.stringify({
649
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
632
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
650
633
  });
651
634
  return new protocol_http_1.HttpRequest({
652
635
  protocol,
@@ -697,14 +680,13 @@ const serializeAws_restJson1UpdateFilterCommand = async (input, context) => {
697
680
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/update";
698
681
  let body;
699
682
  body = JSON.stringify({
700
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
701
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
702
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
703
- ...(input.filterCriteria !== undefined &&
704
- input.filterCriteria !== null && {
683
+ ...(input.action != null && { action: input.action }),
684
+ ...(input.description != null && { description: input.description }),
685
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
686
+ ...(input.filterCriteria != null && {
705
687
  filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
706
688
  }),
707
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
689
+ ...(input.name != null && { name: input.name }),
708
690
  });
709
691
  return new protocol_http_1.HttpRequest({
710
692
  protocol,
@@ -725,8 +707,7 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
725
707
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organizationconfiguration/update";
726
708
  let body;
727
709
  body = JSON.stringify({
728
- ...(input.autoEnable !== undefined &&
729
- input.autoEnable !== null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) }),
710
+ ...(input.autoEnable != null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) }),
730
711
  });
731
712
  return new protocol_http_1.HttpRequest({
732
713
  protocol,
@@ -2380,10 +2361,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2380
2361
  };
2381
2362
  const serializeAws_restJson1AccountAggregation = (input, context) => {
2382
2363
  return {
2383
- ...(input.findingType !== undefined && input.findingType !== null && { findingType: input.findingType }),
2384
- ...(input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType }),
2385
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2386
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2364
+ ...(input.findingType != null && { findingType: input.findingType }),
2365
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
2366
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2367
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2387
2368
  };
2388
2369
  };
2389
2370
  const serializeAws_restJson1AccountIdSet = (input, context) => {
@@ -2422,83 +2403,70 @@ const serializeAws_restJson1AggregationRequest = (input, context) => {
2422
2403
  };
2423
2404
  const serializeAws_restJson1AmiAggregation = (input, context) => {
2424
2405
  return {
2425
- ...(input.amis !== undefined &&
2426
- input.amis !== null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) }),
2427
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2428
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2406
+ ...(input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) }),
2407
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2408
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2429
2409
  };
2430
2410
  };
2431
2411
  const serializeAws_restJson1AutoEnable = (input, context) => {
2432
2412
  return {
2433
- ...(input.ec2 !== undefined && input.ec2 !== null && { ec2: input.ec2 }),
2434
- ...(input.ecr !== undefined && input.ecr !== null && { ecr: input.ecr }),
2413
+ ...(input.ec2 != null && { ec2: input.ec2 }),
2414
+ ...(input.ecr != null && { ecr: input.ecr }),
2435
2415
  };
2436
2416
  };
2437
2417
  const serializeAws_restJson1AwsEcrContainerAggregation = (input, context) => {
2438
2418
  return {
2439
- ...(input.architectures !== undefined &&
2440
- input.architectures !== null && {
2419
+ ...(input.architectures != null && {
2441
2420
  architectures: serializeAws_restJson1StringFilterList(input.architectures, context),
2442
2421
  }),
2443
- ...(input.imageShas !== undefined &&
2444
- input.imageShas !== null && { imageShas: serializeAws_restJson1StringFilterList(input.imageShas, context) }),
2445
- ...(input.imageTags !== undefined &&
2446
- input.imageTags !== null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) }),
2447
- ...(input.repositories !== undefined &&
2448
- input.repositories !== null && {
2422
+ ...(input.imageShas != null && { imageShas: serializeAws_restJson1StringFilterList(input.imageShas, context) }),
2423
+ ...(input.imageTags != null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) }),
2424
+ ...(input.repositories != null && {
2449
2425
  repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
2450
2426
  }),
2451
- ...(input.resourceIds !== undefined &&
2452
- input.resourceIds !== null && {
2427
+ ...(input.resourceIds != null && {
2453
2428
  resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
2454
2429
  }),
2455
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2456
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2430
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2431
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2457
2432
  };
2458
2433
  };
2459
2434
  const serializeAws_restJson1CoverageFilterCriteria = (input, context) => {
2460
2435
  return {
2461
- ...(input.accountId !== undefined &&
2462
- input.accountId !== null && {
2436
+ ...(input.accountId != null && {
2463
2437
  accountId: serializeAws_restJson1CoverageStringFilterList(input.accountId, context),
2464
2438
  }),
2465
- ...(input.ec2InstanceTags !== undefined &&
2466
- input.ec2InstanceTags !== null && {
2439
+ ...(input.ec2InstanceTags != null && {
2467
2440
  ec2InstanceTags: serializeAws_restJson1CoverageMapFilterList(input.ec2InstanceTags, context),
2468
2441
  }),
2469
- ...(input.ecrImageTags !== undefined &&
2470
- input.ecrImageTags !== null && {
2442
+ ...(input.ecrImageTags != null && {
2471
2443
  ecrImageTags: serializeAws_restJson1CoverageStringFilterList(input.ecrImageTags, context),
2472
2444
  }),
2473
- ...(input.ecrRepositoryName !== undefined &&
2474
- input.ecrRepositoryName !== null && {
2445
+ ...(input.ecrRepositoryName != null && {
2475
2446
  ecrRepositoryName: serializeAws_restJson1CoverageStringFilterList(input.ecrRepositoryName, context),
2476
2447
  }),
2477
- ...(input.resourceId !== undefined &&
2478
- input.resourceId !== null && {
2448
+ ...(input.resourceId != null && {
2479
2449
  resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
2480
2450
  }),
2481
- ...(input.resourceType !== undefined &&
2482
- input.resourceType !== null && {
2451
+ ...(input.resourceType != null && {
2483
2452
  resourceType: serializeAws_restJson1CoverageStringFilterList(input.resourceType, context),
2484
2453
  }),
2485
- ...(input.scanStatusCode !== undefined &&
2486
- input.scanStatusCode !== null && {
2454
+ ...(input.scanStatusCode != null && {
2487
2455
  scanStatusCode: serializeAws_restJson1CoverageStringFilterList(input.scanStatusCode, context),
2488
2456
  }),
2489
- ...(input.scanStatusReason !== undefined &&
2490
- input.scanStatusReason !== null && {
2457
+ ...(input.scanStatusReason != null && {
2491
2458
  scanStatusReason: serializeAws_restJson1CoverageStringFilterList(input.scanStatusReason, context),
2492
2459
  }),
2493
- ...(input.scanType !== undefined &&
2494
- input.scanType !== null && { scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context) }),
2460
+ ...(input.scanType != null && {
2461
+ scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context),
2462
+ }),
2495
2463
  };
2496
2464
  };
2497
2465
  const serializeAws_restJson1CoverageMapFilter = (input, context) => {
2498
2466
  return {
2499
- ...(input.comparison !== undefined && input.comparison !== null && { comparison: input.comparison }),
2500
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
2501
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
2467
+ ...(input.comparison != null && { comparison: input.comparison }),
2468
+ ...(input.key != null && { key: input.key }),
2469
+ ...(input.value != null && { value: input.value }),
2502
2470
  };
2503
2471
  };
2504
2472
  const serializeAws_restJson1CoverageMapFilterList = (input, context) => {
@@ -2513,8 +2481,8 @@ const serializeAws_restJson1CoverageMapFilterList = (input, context) => {
2513
2481
  };
2514
2482
  const serializeAws_restJson1CoverageStringFilter = (input, context) => {
2515
2483
  return {
2516
- ...(input.comparison !== undefined && input.comparison !== null && { comparison: input.comparison }),
2517
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
2484
+ ...(input.comparison != null && { comparison: input.comparison }),
2485
+ ...(input.value != null && { value: input.value }),
2518
2486
  };
2519
2487
  };
2520
2488
  const serializeAws_restJson1CoverageStringFilterList = (input, context) => {
@@ -2529,10 +2497,8 @@ const serializeAws_restJson1CoverageStringFilterList = (input, context) => {
2529
2497
  };
2530
2498
  const serializeAws_restJson1DateFilter = (input, context) => {
2531
2499
  return {
2532
- ...(input.endInclusive !== undefined &&
2533
- input.endInclusive !== null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) }),
2534
- ...(input.startInclusive !== undefined &&
2535
- input.startInclusive !== null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }),
2500
+ ...(input.endInclusive != null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) }),
2501
+ ...(input.startInclusive != null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }),
2536
2502
  };
2537
2503
  };
2538
2504
  const serializeAws_restJson1DateFilterList = (input, context) => {
@@ -2547,9 +2513,9 @@ const serializeAws_restJson1DateFilterList = (input, context) => {
2547
2513
  };
2548
2514
  const serializeAws_restJson1Destination = (input, context) => {
2549
2515
  return {
2550
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2551
- ...(input.keyPrefix !== undefined && input.keyPrefix !== null && { keyPrefix: input.keyPrefix }),
2552
- ...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
2516
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2517
+ ...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
2518
+ ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
2553
2519
  };
2554
2520
  };
2555
2521
  const serializeAws_restJson1DisableResourceTypeList = (input, context) => {
@@ -2564,22 +2530,18 @@ const serializeAws_restJson1DisableResourceTypeList = (input, context) => {
2564
2530
  };
2565
2531
  const serializeAws_restJson1Ec2InstanceAggregation = (input, context) => {
2566
2532
  return {
2567
- ...(input.amis !== undefined &&
2568
- input.amis !== null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) }),
2569
- ...(input.instanceIds !== undefined &&
2570
- input.instanceIds !== null && {
2533
+ ...(input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) }),
2534
+ ...(input.instanceIds != null && {
2571
2535
  instanceIds: serializeAws_restJson1StringFilterList(input.instanceIds, context),
2572
2536
  }),
2573
- ...(input.instanceTags !== undefined &&
2574
- input.instanceTags !== null && {
2537
+ ...(input.instanceTags != null && {
2575
2538
  instanceTags: serializeAws_restJson1MapFilterList(input.instanceTags, context),
2576
2539
  }),
2577
- ...(input.operatingSystems !== undefined &&
2578
- input.operatingSystems !== null && {
2540
+ ...(input.operatingSystems != null && {
2579
2541
  operatingSystems: serializeAws_restJson1StringFilterList(input.operatingSystems, context),
2580
2542
  }),
2581
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2582
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2543
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2544
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2583
2545
  };
2584
2546
  };
2585
2547
  const serializeAws_restJson1EnableResourceTypeList = (input, context) => {
@@ -2604,151 +2566,117 @@ const serializeAws_restJson1FilterArnList = (input, context) => {
2604
2566
  };
2605
2567
  const serializeAws_restJson1FilterCriteria = (input, context) => {
2606
2568
  return {
2607
- ...(input.awsAccountId !== undefined &&
2608
- input.awsAccountId !== null && {
2569
+ ...(input.awsAccountId != null && {
2609
2570
  awsAccountId: serializeAws_restJson1StringFilterList(input.awsAccountId, context),
2610
2571
  }),
2611
- ...(input.componentId !== undefined &&
2612
- input.componentId !== null && {
2572
+ ...(input.componentId != null && {
2613
2573
  componentId: serializeAws_restJson1StringFilterList(input.componentId, context),
2614
2574
  }),
2615
- ...(input.componentType !== undefined &&
2616
- input.componentType !== null && {
2575
+ ...(input.componentType != null && {
2617
2576
  componentType: serializeAws_restJson1StringFilterList(input.componentType, context),
2618
2577
  }),
2619
- ...(input.ec2InstanceImageId !== undefined &&
2620
- input.ec2InstanceImageId !== null && {
2578
+ ...(input.ec2InstanceImageId != null && {
2621
2579
  ec2InstanceImageId: serializeAws_restJson1StringFilterList(input.ec2InstanceImageId, context),
2622
2580
  }),
2623
- ...(input.ec2InstanceSubnetId !== undefined &&
2624
- input.ec2InstanceSubnetId !== null && {
2581
+ ...(input.ec2InstanceSubnetId != null && {
2625
2582
  ec2InstanceSubnetId: serializeAws_restJson1StringFilterList(input.ec2InstanceSubnetId, context),
2626
2583
  }),
2627
- ...(input.ec2InstanceVpcId !== undefined &&
2628
- input.ec2InstanceVpcId !== null && {
2584
+ ...(input.ec2InstanceVpcId != null && {
2629
2585
  ec2InstanceVpcId: serializeAws_restJson1StringFilterList(input.ec2InstanceVpcId, context),
2630
2586
  }),
2631
- ...(input.ecrImageArchitecture !== undefined &&
2632
- input.ecrImageArchitecture !== null && {
2587
+ ...(input.ecrImageArchitecture != null && {
2633
2588
  ecrImageArchitecture: serializeAws_restJson1StringFilterList(input.ecrImageArchitecture, context),
2634
2589
  }),
2635
- ...(input.ecrImageHash !== undefined &&
2636
- input.ecrImageHash !== null && {
2590
+ ...(input.ecrImageHash != null && {
2637
2591
  ecrImageHash: serializeAws_restJson1StringFilterList(input.ecrImageHash, context),
2638
2592
  }),
2639
- ...(input.ecrImagePushedAt !== undefined &&
2640
- input.ecrImagePushedAt !== null && {
2593
+ ...(input.ecrImagePushedAt != null && {
2641
2594
  ecrImagePushedAt: serializeAws_restJson1DateFilterList(input.ecrImagePushedAt, context),
2642
2595
  }),
2643
- ...(input.ecrImageRegistry !== undefined &&
2644
- input.ecrImageRegistry !== null && {
2596
+ ...(input.ecrImageRegistry != null && {
2645
2597
  ecrImageRegistry: serializeAws_restJson1StringFilterList(input.ecrImageRegistry, context),
2646
2598
  }),
2647
- ...(input.ecrImageRepositoryName !== undefined &&
2648
- input.ecrImageRepositoryName !== null && {
2599
+ ...(input.ecrImageRepositoryName != null && {
2649
2600
  ecrImageRepositoryName: serializeAws_restJson1StringFilterList(input.ecrImageRepositoryName, context),
2650
2601
  }),
2651
- ...(input.ecrImageTags !== undefined &&
2652
- input.ecrImageTags !== null && {
2602
+ ...(input.ecrImageTags != null && {
2653
2603
  ecrImageTags: serializeAws_restJson1StringFilterList(input.ecrImageTags, context),
2654
2604
  }),
2655
- ...(input.findingArn !== undefined &&
2656
- input.findingArn !== null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) }),
2657
- ...(input.findingStatus !== undefined &&
2658
- input.findingStatus !== null && {
2605
+ ...(input.findingArn != null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) }),
2606
+ ...(input.findingStatus != null && {
2659
2607
  findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
2660
2608
  }),
2661
- ...(input.findingType !== undefined &&
2662
- input.findingType !== null && {
2609
+ ...(input.findingType != null && {
2663
2610
  findingType: serializeAws_restJson1StringFilterList(input.findingType, context),
2664
2611
  }),
2665
- ...(input.firstObservedAt !== undefined &&
2666
- input.firstObservedAt !== null && {
2612
+ ...(input.firstObservedAt != null && {
2667
2613
  firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
2668
2614
  }),
2669
- ...(input.inspectorScore !== undefined &&
2670
- input.inspectorScore !== null && {
2615
+ ...(input.inspectorScore != null && {
2671
2616
  inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
2672
2617
  }),
2673
- ...(input.lastObservedAt !== undefined &&
2674
- input.lastObservedAt !== null && {
2618
+ ...(input.lastObservedAt != null && {
2675
2619
  lastObservedAt: serializeAws_restJson1DateFilterList(input.lastObservedAt, context),
2676
2620
  }),
2677
- ...(input.networkProtocol !== undefined &&
2678
- input.networkProtocol !== null && {
2621
+ ...(input.networkProtocol != null && {
2679
2622
  networkProtocol: serializeAws_restJson1StringFilterList(input.networkProtocol, context),
2680
2623
  }),
2681
- ...(input.portRange !== undefined &&
2682
- input.portRange !== null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) }),
2683
- ...(input.relatedVulnerabilities !== undefined &&
2684
- input.relatedVulnerabilities !== null && {
2624
+ ...(input.portRange != null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) }),
2625
+ ...(input.relatedVulnerabilities != null && {
2685
2626
  relatedVulnerabilities: serializeAws_restJson1StringFilterList(input.relatedVulnerabilities, context),
2686
2627
  }),
2687
- ...(input.resourceId !== undefined &&
2688
- input.resourceId !== null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) }),
2689
- ...(input.resourceTags !== undefined &&
2690
- input.resourceTags !== null && {
2628
+ ...(input.resourceId != null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) }),
2629
+ ...(input.resourceTags != null && {
2691
2630
  resourceTags: serializeAws_restJson1MapFilterList(input.resourceTags, context),
2692
2631
  }),
2693
- ...(input.resourceType !== undefined &&
2694
- input.resourceType !== null && {
2632
+ ...(input.resourceType != null && {
2695
2633
  resourceType: serializeAws_restJson1StringFilterList(input.resourceType, context),
2696
2634
  }),
2697
- ...(input.severity !== undefined &&
2698
- input.severity !== null && { severity: serializeAws_restJson1StringFilterList(input.severity, context) }),
2699
- ...(input.title !== undefined &&
2700
- input.title !== null && { title: serializeAws_restJson1StringFilterList(input.title, context) }),
2701
- ...(input.updatedAt !== undefined &&
2702
- input.updatedAt !== null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) }),
2703
- ...(input.vendorSeverity !== undefined &&
2704
- input.vendorSeverity !== null && {
2635
+ ...(input.severity != null && { severity: serializeAws_restJson1StringFilterList(input.severity, context) }),
2636
+ ...(input.title != null && { title: serializeAws_restJson1StringFilterList(input.title, context) }),
2637
+ ...(input.updatedAt != null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) }),
2638
+ ...(input.vendorSeverity != null && {
2705
2639
  vendorSeverity: serializeAws_restJson1StringFilterList(input.vendorSeverity, context),
2706
2640
  }),
2707
- ...(input.vulnerabilityId !== undefined &&
2708
- input.vulnerabilityId !== null && {
2641
+ ...(input.vulnerabilityId != null && {
2709
2642
  vulnerabilityId: serializeAws_restJson1StringFilterList(input.vulnerabilityId, context),
2710
2643
  }),
2711
- ...(input.vulnerabilitySource !== undefined &&
2712
- input.vulnerabilitySource !== null && {
2644
+ ...(input.vulnerabilitySource != null && {
2713
2645
  vulnerabilitySource: serializeAws_restJson1StringFilterList(input.vulnerabilitySource, context),
2714
2646
  }),
2715
- ...(input.vulnerablePackages !== undefined &&
2716
- input.vulnerablePackages !== null && {
2647
+ ...(input.vulnerablePackages != null && {
2717
2648
  vulnerablePackages: serializeAws_restJson1PackageFilterList(input.vulnerablePackages, context),
2718
2649
  }),
2719
2650
  };
2720
2651
  };
2721
2652
  const serializeAws_restJson1FindingTypeAggregation = (input, context) => {
2722
2653
  return {
2723
- ...(input.findingType !== undefined && input.findingType !== null && { findingType: input.findingType }),
2724
- ...(input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType }),
2725
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2726
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2654
+ ...(input.findingType != null && { findingType: input.findingType }),
2655
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
2656
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2657
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2727
2658
  };
2728
2659
  };
2729
2660
  const serializeAws_restJson1ImageLayerAggregation = (input, context) => {
2730
2661
  return {
2731
- ...(input.layerHashes !== undefined &&
2732
- input.layerHashes !== null && {
2662
+ ...(input.layerHashes != null && {
2733
2663
  layerHashes: serializeAws_restJson1StringFilterList(input.layerHashes, context),
2734
2664
  }),
2735
- ...(input.repositories !== undefined &&
2736
- input.repositories !== null && {
2665
+ ...(input.repositories != null && {
2737
2666
  repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
2738
2667
  }),
2739
- ...(input.resourceIds !== undefined &&
2740
- input.resourceIds !== null && {
2668
+ ...(input.resourceIds != null && {
2741
2669
  resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
2742
2670
  }),
2743
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2744
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2671
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2672
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2745
2673
  };
2746
2674
  };
2747
2675
  const serializeAws_restJson1MapFilter = (input, context) => {
2748
2676
  return {
2749
- ...(input.comparison !== undefined && input.comparison !== null && { comparison: input.comparison }),
2750
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
2751
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
2677
+ ...(input.comparison != null && { comparison: input.comparison }),
2678
+ ...(input.key != null && { key: input.key }),
2679
+ ...(input.value != null && { value: input.value }),
2752
2680
  };
2753
2681
  };
2754
2682
  const serializeAws_restJson1MapFilterList = (input, context) => {
@@ -2773,10 +2701,8 @@ const serializeAws_restJson1MeteringAccountIdList = (input, context) => {
2773
2701
  };
2774
2702
  const serializeAws_restJson1NumberFilter = (input, context) => {
2775
2703
  return {
2776
- ...(input.lowerInclusive !== undefined &&
2777
- input.lowerInclusive !== null && { lowerInclusive: (0, smithy_client_1.serializeFloat)(input.lowerInclusive) }),
2778
- ...(input.upperInclusive !== undefined &&
2779
- input.upperInclusive !== null && { upperInclusive: (0, smithy_client_1.serializeFloat)(input.upperInclusive) }),
2704
+ ...(input.lowerInclusive != null && { lowerInclusive: (0, smithy_client_1.serializeFloat)(input.lowerInclusive) }),
2705
+ ...(input.upperInclusive != null && { upperInclusive: (0, smithy_client_1.serializeFloat)(input.upperInclusive) }),
2780
2706
  };
2781
2707
  };
2782
2708
  const serializeAws_restJson1NumberFilterList = (input, context) => {
@@ -2791,30 +2717,25 @@ const serializeAws_restJson1NumberFilterList = (input, context) => {
2791
2717
  };
2792
2718
  const serializeAws_restJson1PackageAggregation = (input, context) => {
2793
2719
  return {
2794
- ...(input.packageNames !== undefined &&
2795
- input.packageNames !== null && {
2720
+ ...(input.packageNames != null && {
2796
2721
  packageNames: serializeAws_restJson1StringFilterList(input.packageNames, context),
2797
2722
  }),
2798
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2799
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2723
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2724
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2800
2725
  };
2801
2726
  };
2802
2727
  const serializeAws_restJson1PackageFilter = (input, context) => {
2803
2728
  return {
2804
- ...(input.architecture !== undefined &&
2805
- input.architecture !== null && { architecture: serializeAws_restJson1StringFilter(input.architecture, context) }),
2806
- ...(input.epoch !== undefined &&
2807
- input.epoch !== null && { epoch: serializeAws_restJson1NumberFilter(input.epoch, context) }),
2808
- ...(input.name !== undefined &&
2809
- input.name !== null && { name: serializeAws_restJson1StringFilter(input.name, context) }),
2810
- ...(input.release !== undefined &&
2811
- input.release !== null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
2812
- ...(input.sourceLayerHash !== undefined &&
2813
- input.sourceLayerHash !== null && {
2729
+ ...(input.architecture != null && {
2730
+ architecture: serializeAws_restJson1StringFilter(input.architecture, context),
2731
+ }),
2732
+ ...(input.epoch != null && { epoch: serializeAws_restJson1NumberFilter(input.epoch, context) }),
2733
+ ...(input.name != null && { name: serializeAws_restJson1StringFilter(input.name, context) }),
2734
+ ...(input.release != null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
2735
+ ...(input.sourceLayerHash != null && {
2814
2736
  sourceLayerHash: serializeAws_restJson1StringFilter(input.sourceLayerHash, context),
2815
2737
  }),
2816
- ...(input.version !== undefined &&
2817
- input.version !== null && { version: serializeAws_restJson1StringFilter(input.version, context) }),
2738
+ ...(input.version != null && { version: serializeAws_restJson1StringFilter(input.version, context) }),
2818
2739
  };
2819
2740
  };
2820
2741
  const serializeAws_restJson1PackageFilterList = (input, context) => {
@@ -2829,9 +2750,8 @@ const serializeAws_restJson1PackageFilterList = (input, context) => {
2829
2750
  };
2830
2751
  const serializeAws_restJson1PortRangeFilter = (input, context) => {
2831
2752
  return {
2832
- ...(input.beginInclusive !== undefined &&
2833
- input.beginInclusive !== null && { beginInclusive: input.beginInclusive }),
2834
- ...(input.endInclusive !== undefined && input.endInclusive !== null && { endInclusive: input.endInclusive }),
2753
+ ...(input.beginInclusive != null && { beginInclusive: input.beginInclusive }),
2754
+ ...(input.endInclusive != null && { endInclusive: input.endInclusive }),
2835
2755
  };
2836
2756
  };
2837
2757
  const serializeAws_restJson1PortRangeFilterList = (input, context) => {
@@ -2846,24 +2766,23 @@ const serializeAws_restJson1PortRangeFilterList = (input, context) => {
2846
2766
  };
2847
2767
  const serializeAws_restJson1RepositoryAggregation = (input, context) => {
2848
2768
  return {
2849
- ...(input.repositories !== undefined &&
2850
- input.repositories !== null && {
2769
+ ...(input.repositories != null && {
2851
2770
  repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
2852
2771
  }),
2853
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2854
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2772
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2773
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2855
2774
  };
2856
2775
  };
2857
2776
  const serializeAws_restJson1SortCriteria = (input, context) => {
2858
2777
  return {
2859
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
2860
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2778
+ ...(input.field != null && { field: input.field }),
2779
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2861
2780
  };
2862
2781
  };
2863
2782
  const serializeAws_restJson1StringFilter = (input, context) => {
2864
2783
  return {
2865
- ...(input.comparison !== undefined && input.comparison !== null && { comparison: input.comparison }),
2866
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
2784
+ ...(input.comparison != null && { comparison: input.comparison }),
2785
+ ...(input.value != null && { value: input.value }),
2867
2786
  };
2868
2787
  };
2869
2788
  const serializeAws_restJson1StringFilterList = (input, context) => {
@@ -2889,13 +2808,11 @@ const serializeAws_restJson1TagMap = (input, context) => {
2889
2808
  };
2890
2809
  const serializeAws_restJson1TitleAggregation = (input, context) => {
2891
2810
  return {
2892
- ...(input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType }),
2893
- ...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
2894
- ...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
2895
- ...(input.titles !== undefined &&
2896
- input.titles !== null && { titles: serializeAws_restJson1StringFilterList(input.titles, context) }),
2897
- ...(input.vulnerabilityIds !== undefined &&
2898
- input.vulnerabilityIds !== null && {
2811
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
2812
+ ...(input.sortBy != null && { sortBy: input.sortBy }),
2813
+ ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2814
+ ...(input.titles != null && { titles: serializeAws_restJson1StringFilterList(input.titles, context) }),
2815
+ ...(input.vulnerabilityIds != null && {
2899
2816
  vulnerabilityIds: serializeAws_restJson1StringFilterList(input.vulnerabilityIds, context),
2900
2817
  }),
2901
2818
  };
@@ -2913,7 +2830,7 @@ const serializeAws_restJson1UsageAccountIdList = (input, context) => {
2913
2830
  const deserializeAws_restJson1Account = (output, context) => {
2914
2831
  return {
2915
2832
  accountId: (0, smithy_client_1.expectString)(output.accountId),
2916
- resourceStatus: output.resourceStatus !== undefined && output.resourceStatus !== null
2833
+ resourceStatus: output.resourceStatus != null
2917
2834
  ? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
2918
2835
  : undefined,
2919
2836
  status: (0, smithy_client_1.expectString)(output.status),
@@ -2922,7 +2839,7 @@ const deserializeAws_restJson1Account = (output, context) => {
2922
2839
  const deserializeAws_restJson1AccountAggregationResponse = (output, context) => {
2923
2840
  return {
2924
2841
  accountId: (0, smithy_client_1.expectString)(output.accountId),
2925
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
2842
+ severityCounts: output.severityCounts != null
2926
2843
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
2927
2844
  : undefined,
2928
2845
  };
@@ -2941,12 +2858,8 @@ const deserializeAws_restJson1AccountList = (output, context) => {
2941
2858
  const deserializeAws_restJson1AccountState = (output, context) => {
2942
2859
  return {
2943
2860
  accountId: (0, smithy_client_1.expectString)(output.accountId),
2944
- resourceState: output.resourceState !== undefined && output.resourceState !== null
2945
- ? deserializeAws_restJson1ResourceState(output.resourceState, context)
2946
- : undefined,
2947
- state: output.state !== undefined && output.state !== null
2948
- ? deserializeAws_restJson1State(output.state, context)
2949
- : undefined,
2861
+ resourceState: output.resourceState != null ? deserializeAws_restJson1ResourceState(output.resourceState, context) : undefined,
2862
+ state: output.state != null ? deserializeAws_restJson1State(output.state, context) : undefined,
2950
2863
  };
2951
2864
  };
2952
2865
  const deserializeAws_restJson1AccountStateList = (output, context) => {
@@ -3024,7 +2937,7 @@ const deserializeAws_restJson1AmiAggregationResponse = (output, context) => {
3024
2937
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3025
2938
  affectedInstances: (0, smithy_client_1.expectLong)(output.affectedInstances),
3026
2939
  ami: (0, smithy_client_1.expectString)(output.ami),
3027
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
2940
+ severityCounts: output.severityCounts != null
3028
2941
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3029
2942
  : undefined,
3030
2943
  };
@@ -3039,16 +2952,10 @@ const deserializeAws_restJson1AwsEc2InstanceDetails = (output, context) => {
3039
2952
  return {
3040
2953
  iamInstanceProfileArn: (0, smithy_client_1.expectString)(output.iamInstanceProfileArn),
3041
2954
  imageId: (0, smithy_client_1.expectString)(output.imageId),
3042
- ipV4Addresses: output.ipV4Addresses !== undefined && output.ipV4Addresses !== null
3043
- ? deserializeAws_restJson1IpV4AddressList(output.ipV4Addresses, context)
3044
- : undefined,
3045
- ipV6Addresses: output.ipV6Addresses !== undefined && output.ipV6Addresses !== null
3046
- ? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context)
3047
- : undefined,
2955
+ ipV4Addresses: output.ipV4Addresses != null ? deserializeAws_restJson1IpV4AddressList(output.ipV4Addresses, context) : undefined,
2956
+ ipV6Addresses: output.ipV6Addresses != null ? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context) : undefined,
3048
2957
  keyName: (0, smithy_client_1.expectString)(output.keyName),
3049
- launchedAt: output.launchedAt !== undefined && output.launchedAt !== null
3050
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.launchedAt)))
3051
- : undefined,
2958
+ launchedAt: output.launchedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.launchedAt))) : undefined,
3052
2959
  platform: (0, smithy_client_1.expectString)(output.platform),
3053
2960
  subnetId: (0, smithy_client_1.expectString)(output.subnetId),
3054
2961
  type: (0, smithy_client_1.expectString)(output.type),
@@ -3060,12 +2967,10 @@ const deserializeAws_restJson1AwsEcrContainerAggregationResponse = (output, cont
3060
2967
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3061
2968
  architecture: (0, smithy_client_1.expectString)(output.architecture),
3062
2969
  imageSha: (0, smithy_client_1.expectString)(output.imageSha),
3063
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3064
- ? deserializeAws_restJson1StringList(output.imageTags, context)
3065
- : undefined,
2970
+ imageTags: output.imageTags != null ? deserializeAws_restJson1StringList(output.imageTags, context) : undefined,
3066
2971
  repository: (0, smithy_client_1.expectString)(output.repository),
3067
2972
  resourceId: (0, smithy_client_1.expectString)(output.resourceId),
3068
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
2973
+ severityCounts: output.severityCounts != null
3069
2974
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3070
2975
  : undefined,
3071
2976
  };
@@ -3075,13 +2980,9 @@ const deserializeAws_restJson1AwsEcrContainerImageDetails = (output, context) =>
3075
2980
  architecture: (0, smithy_client_1.expectString)(output.architecture),
3076
2981
  author: (0, smithy_client_1.expectString)(output.author),
3077
2982
  imageHash: (0, smithy_client_1.expectString)(output.imageHash),
3078
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3079
- ? deserializeAws_restJson1ImageTagList(output.imageTags, context)
3080
- : undefined,
2983
+ imageTags: output.imageTags != null ? deserializeAws_restJson1ImageTagList(output.imageTags, context) : undefined,
3081
2984
  platform: (0, smithy_client_1.expectString)(output.platform),
3082
- pushedAt: output.pushedAt !== undefined && output.pushedAt !== null
3083
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt)))
3084
- : undefined,
2985
+ pushedAt: output.pushedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt))) : undefined,
3085
2986
  registry: (0, smithy_client_1.expectString)(output.registry),
3086
2987
  repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3087
2988
  };
@@ -3107,13 +3008,11 @@ const deserializeAws_restJson1CoveredResource = (output, context) => {
3107
3008
  return {
3108
3009
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3109
3010
  resourceId: (0, smithy_client_1.expectString)(output.resourceId),
3110
- resourceMetadata: output.resourceMetadata !== undefined && output.resourceMetadata !== null
3011
+ resourceMetadata: output.resourceMetadata != null
3111
3012
  ? deserializeAws_restJson1ResourceScanMetadata(output.resourceMetadata, context)
3112
3013
  : undefined,
3113
3014
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
3114
- scanStatus: output.scanStatus !== undefined && output.scanStatus !== null
3115
- ? deserializeAws_restJson1ScanStatus(output.scanStatus, context)
3116
- : undefined,
3015
+ scanStatus: output.scanStatus != null ? deserializeAws_restJson1ScanStatus(output.scanStatus, context) : undefined,
3117
3016
  scanType: (0, smithy_client_1.expectString)(output.scanType),
3118
3017
  };
3119
3018
  };
@@ -3155,7 +3054,7 @@ const deserializeAws_restJson1CvssScoreAdjustmentList = (output, context) => {
3155
3054
  };
3156
3055
  const deserializeAws_restJson1CvssScoreDetails = (output, context) => {
3157
3056
  return {
3158
- adjustments: output.adjustments !== undefined && output.adjustments !== null
3057
+ adjustments: output.adjustments != null
3159
3058
  ? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
3160
3059
  : undefined,
3161
3060
  cvssSource: (0, smithy_client_1.expectString)(output.cvssSource),
@@ -3178,10 +3077,10 @@ const deserializeAws_restJson1CvssScoreList = (output, context) => {
3178
3077
  };
3179
3078
  const deserializeAws_restJson1DateFilter = (output, context) => {
3180
3079
  return {
3181
- endInclusive: output.endInclusive !== undefined && output.endInclusive !== null
3080
+ endInclusive: output.endInclusive != null
3182
3081
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endInclusive)))
3183
3082
  : undefined,
3184
- startInclusive: output.startInclusive !== undefined && output.startInclusive !== null
3083
+ startInclusive: output.startInclusive != null
3185
3084
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startInclusive)))
3186
3085
  : undefined,
3187
3086
  };
@@ -3232,12 +3131,10 @@ const deserializeAws_restJson1Ec2InstanceAggregationResponse = (output, context)
3232
3131
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3233
3132
  ami: (0, smithy_client_1.expectString)(output.ami),
3234
3133
  instanceId: (0, smithy_client_1.expectString)(output.instanceId),
3235
- instanceTags: output.instanceTags !== undefined && output.instanceTags !== null
3236
- ? deserializeAws_restJson1TagMap(output.instanceTags, context)
3237
- : undefined,
3134
+ instanceTags: output.instanceTags != null ? deserializeAws_restJson1TagMap(output.instanceTags, context) : undefined,
3238
3135
  networkFindings: (0, smithy_client_1.expectLong)(output.networkFindings),
3239
3136
  operatingSystem: (0, smithy_client_1.expectString)(output.operatingSystem),
3240
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3137
+ severityCounts: output.severityCounts != null
3241
3138
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3242
3139
  : undefined,
3243
3140
  };
@@ -3246,16 +3143,12 @@ const deserializeAws_restJson1Ec2Metadata = (output, context) => {
3246
3143
  return {
3247
3144
  amiId: (0, smithy_client_1.expectString)(output.amiId),
3248
3145
  platform: (0, smithy_client_1.expectString)(output.platform),
3249
- tags: output.tags !== undefined && output.tags !== null
3250
- ? deserializeAws_restJson1TagMap(output.tags, context)
3251
- : undefined,
3146
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3252
3147
  };
3253
3148
  };
3254
3149
  const deserializeAws_restJson1EcrContainerImageMetadata = (output, context) => {
3255
3150
  return {
3256
- tags: output.tags !== undefined && output.tags !== null
3257
- ? deserializeAws_restJson1TagList(output.tags, context)
3258
- : undefined,
3151
+ tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
3259
3152
  };
3260
3153
  };
3261
3154
  const deserializeAws_restJson1EcrRepositoryMetadata = (output, context) => {
@@ -3269,7 +3162,7 @@ const deserializeAws_restJson1FailedAccount = (output, context) => {
3269
3162
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3270
3163
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
3271
3164
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
3272
- resourceStatus: output.resourceStatus !== undefined && output.resourceStatus !== null
3165
+ resourceStatus: output.resourceStatus != null
3273
3166
  ? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
3274
3167
  : undefined,
3275
3168
  status: (0, smithy_client_1.expectString)(output.status),
@@ -3290,117 +3183,83 @@ const deserializeAws_restJson1Filter = (output, context) => {
3290
3183
  return {
3291
3184
  action: (0, smithy_client_1.expectString)(output.action),
3292
3185
  arn: (0, smithy_client_1.expectString)(output.arn),
3293
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3294
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3295
- : undefined,
3296
- criteria: output.criteria !== undefined && output.criteria !== null
3297
- ? deserializeAws_restJson1FilterCriteria(output.criteria, context)
3298
- : undefined,
3186
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3187
+ criteria: output.criteria != null ? deserializeAws_restJson1FilterCriteria(output.criteria, context) : undefined,
3299
3188
  description: (0, smithy_client_1.expectString)(output.description),
3300
3189
  name: (0, smithy_client_1.expectString)(output.name),
3301
3190
  ownerId: (0, smithy_client_1.expectString)(output.ownerId),
3302
3191
  reason: (0, smithy_client_1.expectString)(output.reason),
3303
- tags: output.tags !== undefined && output.tags !== null
3304
- ? deserializeAws_restJson1TagMap(output.tags, context)
3305
- : undefined,
3306
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3307
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
3308
- : undefined,
3192
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3193
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
3309
3194
  };
3310
3195
  };
3311
3196
  const deserializeAws_restJson1FilterCriteria = (output, context) => {
3312
3197
  return {
3313
- awsAccountId: output.awsAccountId !== undefined && output.awsAccountId !== null
3314
- ? deserializeAws_restJson1StringFilterList(output.awsAccountId, context)
3315
- : undefined,
3316
- componentId: output.componentId !== undefined && output.componentId !== null
3317
- ? deserializeAws_restJson1StringFilterList(output.componentId, context)
3318
- : undefined,
3319
- componentType: output.componentType !== undefined && output.componentType !== null
3198
+ awsAccountId: output.awsAccountId != null ? deserializeAws_restJson1StringFilterList(output.awsAccountId, context) : undefined,
3199
+ componentId: output.componentId != null ? deserializeAws_restJson1StringFilterList(output.componentId, context) : undefined,
3200
+ componentType: output.componentType != null
3320
3201
  ? deserializeAws_restJson1StringFilterList(output.componentType, context)
3321
3202
  : undefined,
3322
- ec2InstanceImageId: output.ec2InstanceImageId !== undefined && output.ec2InstanceImageId !== null
3203
+ ec2InstanceImageId: output.ec2InstanceImageId != null
3323
3204
  ? deserializeAws_restJson1StringFilterList(output.ec2InstanceImageId, context)
3324
3205
  : undefined,
3325
- ec2InstanceSubnetId: output.ec2InstanceSubnetId !== undefined && output.ec2InstanceSubnetId !== null
3206
+ ec2InstanceSubnetId: output.ec2InstanceSubnetId != null
3326
3207
  ? deserializeAws_restJson1StringFilterList(output.ec2InstanceSubnetId, context)
3327
3208
  : undefined,
3328
- ec2InstanceVpcId: output.ec2InstanceVpcId !== undefined && output.ec2InstanceVpcId !== null
3209
+ ec2InstanceVpcId: output.ec2InstanceVpcId != null
3329
3210
  ? deserializeAws_restJson1StringFilterList(output.ec2InstanceVpcId, context)
3330
3211
  : undefined,
3331
- ecrImageArchitecture: output.ecrImageArchitecture !== undefined && output.ecrImageArchitecture !== null
3212
+ ecrImageArchitecture: output.ecrImageArchitecture != null
3332
3213
  ? deserializeAws_restJson1StringFilterList(output.ecrImageArchitecture, context)
3333
3214
  : undefined,
3334
- ecrImageHash: output.ecrImageHash !== undefined && output.ecrImageHash !== null
3335
- ? deserializeAws_restJson1StringFilterList(output.ecrImageHash, context)
3336
- : undefined,
3337
- ecrImagePushedAt: output.ecrImagePushedAt !== undefined && output.ecrImagePushedAt !== null
3215
+ ecrImageHash: output.ecrImageHash != null ? deserializeAws_restJson1StringFilterList(output.ecrImageHash, context) : undefined,
3216
+ ecrImagePushedAt: output.ecrImagePushedAt != null
3338
3217
  ? deserializeAws_restJson1DateFilterList(output.ecrImagePushedAt, context)
3339
3218
  : undefined,
3340
- ecrImageRegistry: output.ecrImageRegistry !== undefined && output.ecrImageRegistry !== null
3219
+ ecrImageRegistry: output.ecrImageRegistry != null
3341
3220
  ? deserializeAws_restJson1StringFilterList(output.ecrImageRegistry, context)
3342
3221
  : undefined,
3343
- ecrImageRepositoryName: output.ecrImageRepositoryName !== undefined && output.ecrImageRepositoryName !== null
3222
+ ecrImageRepositoryName: output.ecrImageRepositoryName != null
3344
3223
  ? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
3345
3224
  : undefined,
3346
- ecrImageTags: output.ecrImageTags !== undefined && output.ecrImageTags !== null
3347
- ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context)
3348
- : undefined,
3349
- findingArn: output.findingArn !== undefined && output.findingArn !== null
3350
- ? deserializeAws_restJson1StringFilterList(output.findingArn, context)
3351
- : undefined,
3352
- findingStatus: output.findingStatus !== undefined && output.findingStatus !== null
3225
+ ecrImageTags: output.ecrImageTags != null ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context) : undefined,
3226
+ findingArn: output.findingArn != null ? deserializeAws_restJson1StringFilterList(output.findingArn, context) : undefined,
3227
+ findingStatus: output.findingStatus != null
3353
3228
  ? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
3354
3229
  : undefined,
3355
- findingType: output.findingType !== undefined && output.findingType !== null
3356
- ? deserializeAws_restJson1StringFilterList(output.findingType, context)
3357
- : undefined,
3358
- firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
3230
+ findingType: output.findingType != null ? deserializeAws_restJson1StringFilterList(output.findingType, context) : undefined,
3231
+ firstObservedAt: output.firstObservedAt != null
3359
3232
  ? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
3360
3233
  : undefined,
3361
- inspectorScore: output.inspectorScore !== undefined && output.inspectorScore !== null
3234
+ inspectorScore: output.inspectorScore != null
3362
3235
  ? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
3363
3236
  : undefined,
3364
- lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
3237
+ lastObservedAt: output.lastObservedAt != null
3365
3238
  ? deserializeAws_restJson1DateFilterList(output.lastObservedAt, context)
3366
3239
  : undefined,
3367
- networkProtocol: output.networkProtocol !== undefined && output.networkProtocol !== null
3240
+ networkProtocol: output.networkProtocol != null
3368
3241
  ? deserializeAws_restJson1StringFilterList(output.networkProtocol, context)
3369
3242
  : undefined,
3370
- portRange: output.portRange !== undefined && output.portRange !== null
3371
- ? deserializeAws_restJson1PortRangeFilterList(output.portRange, context)
3372
- : undefined,
3373
- relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
3243
+ portRange: output.portRange != null ? deserializeAws_restJson1PortRangeFilterList(output.portRange, context) : undefined,
3244
+ relatedVulnerabilities: output.relatedVulnerabilities != null
3374
3245
  ? deserializeAws_restJson1StringFilterList(output.relatedVulnerabilities, context)
3375
3246
  : undefined,
3376
- resourceId: output.resourceId !== undefined && output.resourceId !== null
3377
- ? deserializeAws_restJson1StringFilterList(output.resourceId, context)
3378
- : undefined,
3379
- resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
3380
- ? deserializeAws_restJson1MapFilterList(output.resourceTags, context)
3381
- : undefined,
3382
- resourceType: output.resourceType !== undefined && output.resourceType !== null
3383
- ? deserializeAws_restJson1StringFilterList(output.resourceType, context)
3384
- : undefined,
3385
- severity: output.severity !== undefined && output.severity !== null
3386
- ? deserializeAws_restJson1StringFilterList(output.severity, context)
3387
- : undefined,
3388
- title: output.title !== undefined && output.title !== null
3389
- ? deserializeAws_restJson1StringFilterList(output.title, context)
3390
- : undefined,
3391
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3392
- ? deserializeAws_restJson1DateFilterList(output.updatedAt, context)
3393
- : undefined,
3394
- vendorSeverity: output.vendorSeverity !== undefined && output.vendorSeverity !== null
3247
+ resourceId: output.resourceId != null ? deserializeAws_restJson1StringFilterList(output.resourceId, context) : undefined,
3248
+ resourceTags: output.resourceTags != null ? deserializeAws_restJson1MapFilterList(output.resourceTags, context) : undefined,
3249
+ resourceType: output.resourceType != null ? deserializeAws_restJson1StringFilterList(output.resourceType, context) : undefined,
3250
+ severity: output.severity != null ? deserializeAws_restJson1StringFilterList(output.severity, context) : undefined,
3251
+ title: output.title != null ? deserializeAws_restJson1StringFilterList(output.title, context) : undefined,
3252
+ updatedAt: output.updatedAt != null ? deserializeAws_restJson1DateFilterList(output.updatedAt, context) : undefined,
3253
+ vendorSeverity: output.vendorSeverity != null
3395
3254
  ? deserializeAws_restJson1StringFilterList(output.vendorSeverity, context)
3396
3255
  : undefined,
3397
- vulnerabilityId: output.vulnerabilityId !== undefined && output.vulnerabilityId !== null
3256
+ vulnerabilityId: output.vulnerabilityId != null
3398
3257
  ? deserializeAws_restJson1StringFilterList(output.vulnerabilityId, context)
3399
3258
  : undefined,
3400
- vulnerabilitySource: output.vulnerabilitySource !== undefined && output.vulnerabilitySource !== null
3259
+ vulnerabilitySource: output.vulnerabilitySource != null
3401
3260
  ? deserializeAws_restJson1StringFilterList(output.vulnerabilitySource, context)
3402
3261
  : undefined,
3403
- vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
3262
+ vulnerablePackages: output.vulnerablePackages != null
3404
3263
  ? deserializeAws_restJson1PackageFilterList(output.vulnerablePackages, context)
3405
3264
  : undefined,
3406
3265
  };
@@ -3421,35 +3280,29 @@ const deserializeAws_restJson1Finding = (output, context) => {
3421
3280
  awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
3422
3281
  description: (0, smithy_client_1.expectString)(output.description),
3423
3282
  findingArn: (0, smithy_client_1.expectString)(output.findingArn),
3424
- firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
3283
+ firstObservedAt: output.firstObservedAt != null
3425
3284
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstObservedAt)))
3426
3285
  : undefined,
3427
3286
  inspectorScore: (0, smithy_client_1.limitedParseDouble)(output.inspectorScore),
3428
- inspectorScoreDetails: output.inspectorScoreDetails !== undefined && output.inspectorScoreDetails !== null
3287
+ inspectorScoreDetails: output.inspectorScoreDetails != null
3429
3288
  ? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
3430
3289
  : undefined,
3431
- lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
3290
+ lastObservedAt: output.lastObservedAt != null
3432
3291
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastObservedAt)))
3433
3292
  : undefined,
3434
- networkReachabilityDetails: output.networkReachabilityDetails !== undefined && output.networkReachabilityDetails !== null
3293
+ networkReachabilityDetails: output.networkReachabilityDetails != null
3435
3294
  ? deserializeAws_restJson1NetworkReachabilityDetails(output.networkReachabilityDetails, context)
3436
3295
  : undefined,
3437
- packageVulnerabilityDetails: output.packageVulnerabilityDetails !== undefined && output.packageVulnerabilityDetails !== null
3296
+ packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
3438
3297
  ? deserializeAws_restJson1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
3439
3298
  : undefined,
3440
- remediation: output.remediation !== undefined && output.remediation !== null
3441
- ? deserializeAws_restJson1Remediation(output.remediation, context)
3442
- : undefined,
3443
- resources: output.resources !== undefined && output.resources !== null
3444
- ? deserializeAws_restJson1ResourceList(output.resources, context)
3445
- : undefined,
3299
+ remediation: output.remediation != null ? deserializeAws_restJson1Remediation(output.remediation, context) : undefined,
3300
+ resources: output.resources != null ? deserializeAws_restJson1ResourceList(output.resources, context) : undefined,
3446
3301
  severity: (0, smithy_client_1.expectString)(output.severity),
3447
3302
  status: (0, smithy_client_1.expectString)(output.status),
3448
3303
  title: (0, smithy_client_1.expectString)(output.title),
3449
3304
  type: (0, smithy_client_1.expectString)(output.type),
3450
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3451
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
3452
- : undefined,
3305
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
3453
3306
  };
3454
3307
  };
3455
3308
  const deserializeAws_restJson1FindingList = (output, context) => {
@@ -3466,7 +3319,7 @@ const deserializeAws_restJson1FindingList = (output, context) => {
3466
3319
  const deserializeAws_restJson1FindingTypeAggregationResponse = (output, context) => {
3467
3320
  return {
3468
3321
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3469
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3322
+ severityCounts: output.severityCounts != null
3470
3323
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3471
3324
  : undefined,
3472
3325
  };
@@ -3474,7 +3327,7 @@ const deserializeAws_restJson1FindingTypeAggregationResponse = (output, context)
3474
3327
  const deserializeAws_restJson1FreeTrialAccountInfo = (output, context) => {
3475
3328
  return {
3476
3329
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3477
- freeTrialInfo: output.freeTrialInfo !== undefined && output.freeTrialInfo !== null
3330
+ freeTrialInfo: output.freeTrialInfo != null
3478
3331
  ? deserializeAws_restJson1FreeTrialInfoList(output.freeTrialInfo, context)
3479
3332
  : undefined,
3480
3333
  };
@@ -3492,12 +3345,8 @@ const deserializeAws_restJson1FreeTrialAccountInfoList = (output, context) => {
3492
3345
  };
3493
3346
  const deserializeAws_restJson1FreeTrialInfo = (output, context) => {
3494
3347
  return {
3495
- end: output.end !== undefined && output.end !== null
3496
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.end)))
3497
- : undefined,
3498
- start: output.start !== undefined && output.start !== null
3499
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.start)))
3500
- : undefined,
3348
+ end: output.end != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.end))) : undefined,
3349
+ start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.start))) : undefined,
3501
3350
  status: (0, smithy_client_1.expectString)(output.status),
3502
3351
  type: (0, smithy_client_1.expectString)(output.type),
3503
3352
  };
@@ -3537,7 +3386,7 @@ const deserializeAws_restJson1ImageLayerAggregationResponse = (output, context)
3537
3386
  layerHash: (0, smithy_client_1.expectString)(output.layerHash),
3538
3387
  repository: (0, smithy_client_1.expectString)(output.repository),
3539
3388
  resourceId: (0, smithy_client_1.expectString)(output.resourceId),
3540
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3389
+ severityCounts: output.severityCounts != null
3541
3390
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3542
3391
  : undefined,
3543
3392
  };
@@ -3555,9 +3404,7 @@ const deserializeAws_restJson1ImageTagList = (output, context) => {
3555
3404
  };
3556
3405
  const deserializeAws_restJson1InspectorScoreDetails = (output, context) => {
3557
3406
  return {
3558
- adjustedCvss: output.adjustedCvss !== undefined && output.adjustedCvss !== null
3559
- ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context)
3560
- : undefined,
3407
+ adjustedCvss: output.adjustedCvss != null ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context) : undefined,
3561
3408
  };
3562
3409
  };
3563
3410
  const deserializeAws_restJson1IpV4AddressList = (output, context) => {
@@ -3605,9 +3452,7 @@ const deserializeAws_restJson1Member = (output, context) => {
3605
3452
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3606
3453
  delegatedAdminAccountId: (0, smithy_client_1.expectString)(output.delegatedAdminAccountId),
3607
3454
  relationshipStatus: (0, smithy_client_1.expectString)(output.relationshipStatus),
3608
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3609
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
3610
- : undefined,
3455
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
3611
3456
  };
3612
3457
  };
3613
3458
  const deserializeAws_restJson1MemberList = (output, context) => {
@@ -3623,19 +3468,13 @@ const deserializeAws_restJson1MemberList = (output, context) => {
3623
3468
  };
3624
3469
  const deserializeAws_restJson1NetworkPath = (output, context) => {
3625
3470
  return {
3626
- steps: output.steps !== undefined && output.steps !== null
3627
- ? deserializeAws_restJson1StepList(output.steps, context)
3628
- : undefined,
3471
+ steps: output.steps != null ? deserializeAws_restJson1StepList(output.steps, context) : undefined,
3629
3472
  };
3630
3473
  };
3631
3474
  const deserializeAws_restJson1NetworkReachabilityDetails = (output, context) => {
3632
3475
  return {
3633
- networkPath: output.networkPath !== undefined && output.networkPath !== null
3634
- ? deserializeAws_restJson1NetworkPath(output.networkPath, context)
3635
- : undefined,
3636
- openPortRange: output.openPortRange !== undefined && output.openPortRange !== null
3637
- ? deserializeAws_restJson1PortRange(output.openPortRange, context)
3638
- : undefined,
3476
+ networkPath: output.networkPath != null ? deserializeAws_restJson1NetworkPath(output.networkPath, context) : undefined,
3477
+ openPortRange: output.openPortRange != null ? deserializeAws_restJson1PortRange(output.openPortRange, context) : undefined,
3639
3478
  protocol: (0, smithy_client_1.expectString)(output.protocol),
3640
3479
  };
3641
3480
  };
@@ -3671,31 +3510,21 @@ const deserializeAws_restJson1PackageAggregationResponse = (output, context) =>
3671
3510
  return {
3672
3511
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3673
3512
  packageName: (0, smithy_client_1.expectString)(output.packageName),
3674
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3513
+ severityCounts: output.severityCounts != null
3675
3514
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3676
3515
  : undefined,
3677
3516
  };
3678
3517
  };
3679
3518
  const deserializeAws_restJson1PackageFilter = (output, context) => {
3680
3519
  return {
3681
- architecture: output.architecture !== undefined && output.architecture !== null
3682
- ? deserializeAws_restJson1StringFilter(output.architecture, context)
3683
- : undefined,
3684
- epoch: output.epoch !== undefined && output.epoch !== null
3685
- ? deserializeAws_restJson1NumberFilter(output.epoch, context)
3686
- : undefined,
3687
- name: output.name !== undefined && output.name !== null
3688
- ? deserializeAws_restJson1StringFilter(output.name, context)
3689
- : undefined,
3690
- release: output.release !== undefined && output.release !== null
3691
- ? deserializeAws_restJson1StringFilter(output.release, context)
3692
- : undefined,
3693
- sourceLayerHash: output.sourceLayerHash !== undefined && output.sourceLayerHash !== null
3520
+ architecture: output.architecture != null ? deserializeAws_restJson1StringFilter(output.architecture, context) : undefined,
3521
+ epoch: output.epoch != null ? deserializeAws_restJson1NumberFilter(output.epoch, context) : undefined,
3522
+ name: output.name != null ? deserializeAws_restJson1StringFilter(output.name, context) : undefined,
3523
+ release: output.release != null ? deserializeAws_restJson1StringFilter(output.release, context) : undefined,
3524
+ sourceLayerHash: output.sourceLayerHash != null
3694
3525
  ? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
3695
3526
  : undefined,
3696
- version: output.version !== undefined && output.version !== null
3697
- ? deserializeAws_restJson1StringFilter(output.version, context)
3698
- : undefined,
3527
+ version: output.version != null ? deserializeAws_restJson1StringFilter(output.version, context) : undefined,
3699
3528
  };
3700
3529
  };
3701
3530
  const deserializeAws_restJson1PackageFilterList = (output, context) => {
@@ -3711,26 +3540,24 @@ const deserializeAws_restJson1PackageFilterList = (output, context) => {
3711
3540
  };
3712
3541
  const deserializeAws_restJson1PackageVulnerabilityDetails = (output, context) => {
3713
3542
  return {
3714
- cvss: output.cvss !== undefined && output.cvss !== null
3715
- ? deserializeAws_restJson1CvssScoreList(output.cvss, context)
3716
- : undefined,
3717
- referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
3543
+ cvss: output.cvss != null ? deserializeAws_restJson1CvssScoreList(output.cvss, context) : undefined,
3544
+ referenceUrls: output.referenceUrls != null
3718
3545
  ? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
3719
3546
  : undefined,
3720
- relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
3547
+ relatedVulnerabilities: output.relatedVulnerabilities != null
3721
3548
  ? deserializeAws_restJson1VulnerabilityIdList(output.relatedVulnerabilities, context)
3722
3549
  : undefined,
3723
3550
  source: (0, smithy_client_1.expectString)(output.source),
3724
3551
  sourceUrl: (0, smithy_client_1.expectString)(output.sourceUrl),
3725
- vendorCreatedAt: output.vendorCreatedAt !== undefined && output.vendorCreatedAt !== null
3552
+ vendorCreatedAt: output.vendorCreatedAt != null
3726
3553
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorCreatedAt)))
3727
3554
  : undefined,
3728
3555
  vendorSeverity: (0, smithy_client_1.expectString)(output.vendorSeverity),
3729
- vendorUpdatedAt: output.vendorUpdatedAt !== undefined && output.vendorUpdatedAt !== null
3556
+ vendorUpdatedAt: output.vendorUpdatedAt != null
3730
3557
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorUpdatedAt)))
3731
3558
  : undefined,
3732
3559
  vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
3733
- vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
3560
+ vulnerablePackages: output.vulnerablePackages != null
3734
3561
  ? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
3735
3562
  : undefined,
3736
3563
  };
@@ -3783,7 +3610,7 @@ const deserializeAws_restJson1Recommendation = (output, context) => {
3783
3610
  };
3784
3611
  const deserializeAws_restJson1Remediation = (output, context) => {
3785
3612
  return {
3786
- recommendation: output.recommendation !== undefined && output.recommendation !== null
3613
+ recommendation: output.recommendation != null
3787
3614
  ? deserializeAws_restJson1Recommendation(output.recommendation, context)
3788
3615
  : undefined,
3789
3616
  };
@@ -3793,31 +3620,27 @@ const deserializeAws_restJson1RepositoryAggregationResponse = (output, context)
3793
3620
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3794
3621
  affectedImages: (0, smithy_client_1.expectLong)(output.affectedImages),
3795
3622
  repository: (0, smithy_client_1.expectString)(output.repository),
3796
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3623
+ severityCounts: output.severityCounts != null
3797
3624
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3798
3625
  : undefined,
3799
3626
  };
3800
3627
  };
3801
3628
  const deserializeAws_restJson1Resource = (output, context) => {
3802
3629
  return {
3803
- details: output.details !== undefined && output.details !== null
3804
- ? deserializeAws_restJson1ResourceDetails(output.details, context)
3805
- : undefined,
3630
+ details: output.details != null ? deserializeAws_restJson1ResourceDetails(output.details, context) : undefined,
3806
3631
  id: (0, smithy_client_1.expectString)(output.id),
3807
3632
  partition: (0, smithy_client_1.expectString)(output.partition),
3808
3633
  region: (0, smithy_client_1.expectString)(output.region),
3809
- tags: output.tags !== undefined && output.tags !== null
3810
- ? deserializeAws_restJson1TagMap(output.tags, context)
3811
- : undefined,
3634
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3812
3635
  type: (0, smithy_client_1.expectString)(output.type),
3813
3636
  };
3814
3637
  };
3815
3638
  const deserializeAws_restJson1ResourceDetails = (output, context) => {
3816
3639
  return {
3817
- awsEc2Instance: output.awsEc2Instance !== undefined && output.awsEc2Instance !== null
3640
+ awsEc2Instance: output.awsEc2Instance != null
3818
3641
  ? deserializeAws_restJson1AwsEc2InstanceDetails(output.awsEc2Instance, context)
3819
3642
  : undefined,
3820
- awsEcrContainerImage: output.awsEcrContainerImage !== undefined && output.awsEcrContainerImage !== null
3643
+ awsEcrContainerImage: output.awsEcrContainerImage != null
3821
3644
  ? deserializeAws_restJson1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
3822
3645
  : undefined,
3823
3646
  };
@@ -3835,21 +3658,17 @@ const deserializeAws_restJson1ResourceList = (output, context) => {
3835
3658
  };
3836
3659
  const deserializeAws_restJson1ResourceScanMetadata = (output, context) => {
3837
3660
  return {
3838
- ec2: output.ec2 !== undefined && output.ec2 !== null
3839
- ? deserializeAws_restJson1Ec2Metadata(output.ec2, context)
3840
- : undefined,
3841
- ecrImage: output.ecrImage !== undefined && output.ecrImage !== null
3842
- ? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context)
3843
- : undefined,
3844
- ecrRepository: output.ecrRepository !== undefined && output.ecrRepository !== null
3661
+ ec2: output.ec2 != null ? deserializeAws_restJson1Ec2Metadata(output.ec2, context) : undefined,
3662
+ ecrImage: output.ecrImage != null ? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context) : undefined,
3663
+ ecrRepository: output.ecrRepository != null
3845
3664
  ? deserializeAws_restJson1EcrRepositoryMetadata(output.ecrRepository, context)
3846
3665
  : undefined,
3847
3666
  };
3848
3667
  };
3849
3668
  const deserializeAws_restJson1ResourceState = (output, context) => {
3850
3669
  return {
3851
- ec2: output.ec2 !== undefined && output.ec2 !== null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
3852
- ecr: output.ecr !== undefined && output.ecr !== null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
3670
+ ec2: output.ec2 != null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
3671
+ ecr: output.ecr != null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
3853
3672
  };
3854
3673
  };
3855
3674
  const deserializeAws_restJson1ResourceStatus = (output, context) => {
@@ -3949,7 +3768,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
3949
3768
  const deserializeAws_restJson1TitleAggregationResponse = (output, context) => {
3950
3769
  return {
3951
3770
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3952
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3771
+ severityCounts: output.severityCounts != null
3953
3772
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3954
3773
  : undefined,
3955
3774
  title: (0, smithy_client_1.expectString)(output.title),
@@ -3978,9 +3797,7 @@ const deserializeAws_restJson1UsageList = (output, context) => {
3978
3797
  const deserializeAws_restJson1UsageTotal = (output, context) => {
3979
3798
  return {
3980
3799
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3981
- usage: output.usage !== undefined && output.usage !== null
3982
- ? deserializeAws_restJson1UsageList(output.usage, context)
3983
- : undefined,
3800
+ usage: output.usage != null ? deserializeAws_restJson1UsageList(output.usage, context) : undefined,
3984
3801
  };
3985
3802
  };
3986
3803
  const deserializeAws_restJson1UsageTotalList = (output, context) => {