@aws-sdk/client-inspector2 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ export var serializeAws_restJson1AssociateMemberCommand = function (input, conte
15
15
  "content-type": "application/json",
16
16
  };
17
17
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/associate";
18
- body = JSON.stringify(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })));
18
+ body = JSON.stringify(__assign({}, (input.accountId != null && { accountId: input.accountId })));
19
19
  return [2, new __HttpRequest({
20
20
  protocol: protocol,
21
21
  hostname: hostname,
@@ -39,8 +39,7 @@ export var serializeAws_restJson1BatchGetAccountStatusCommand = function (input,
39
39
  "content-type": "application/json",
40
40
  };
41
41
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/status/batch/get";
42
- body = JSON.stringify(__assign({}, (input.accountIds !== undefined &&
43
- input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })));
42
+ body = JSON.stringify(__assign({}, (input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })));
44
43
  return [2, new __HttpRequest({
45
44
  protocol: protocol,
46
45
  hostname: hostname,
@@ -64,8 +63,7 @@ export var serializeAws_restJson1BatchGetFreeTrialInfoCommand = function (input,
64
63
  "content-type": "application/json",
65
64
  };
66
65
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/freetrialinfo/batchget";
67
- body = JSON.stringify(__assign({}, (input.accountIds !== undefined &&
68
- input.accountIds !== null && {
66
+ body = JSON.stringify(__assign({}, (input.accountIds != null && {
69
67
  accountIds: serializeAws_restJson1MeteringAccountIdList(input.accountIds, context),
70
68
  })));
71
69
  return [2, new __HttpRequest({
@@ -91,7 +89,7 @@ export var serializeAws_restJson1CancelFindingsReportCommand = function (input,
91
89
  "content-type": "application/json",
92
90
  };
93
91
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reporting/cancel";
94
- body = JSON.stringify(__assign({}, (input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId })));
92
+ body = JSON.stringify(__assign({}, (input.reportId != null && { reportId: input.reportId })));
95
93
  return [2, new __HttpRequest({
96
94
  protocol: protocol,
97
95
  hostname: hostname,
@@ -115,10 +113,9 @@ export var serializeAws_restJson1CreateFilterCommand = function (input, context)
115
113
  "content-type": "application/json",
116
114
  };
117
115
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/filters/create";
118
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.filterCriteria !== undefined &&
119
- input.filterCriteria !== null && {
116
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.description != null && { description: input.description })), (input.filterCriteria != null && {
120
117
  filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
121
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
118
+ })), (input.name != null && { name: input.name })), (input.reason != null && { reason: input.reason })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
122
119
  return [2, new __HttpRequest({
123
120
  protocol: protocol,
124
121
  hostname: hostname,
@@ -142,11 +139,9 @@ export var serializeAws_restJson1CreateFindingsReportCommand = function (input,
142
139
  "content-type": "application/json",
143
140
  };
144
141
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reporting/create";
145
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
146
- input.filterCriteria !== null && {
142
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria != null && {
147
143
  filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
148
- })), (input.reportFormat !== undefined && input.reportFormat !== null && { reportFormat: input.reportFormat })), (input.s3Destination !== undefined &&
149
- input.s3Destination !== null && {
144
+ })), (input.reportFormat != null && { reportFormat: input.reportFormat })), (input.s3Destination != null && {
150
145
  s3Destination: serializeAws_restJson1Destination(input.s3Destination, context),
151
146
  })));
152
147
  return [2, new __HttpRequest({
@@ -172,7 +167,7 @@ export var serializeAws_restJson1DeleteFilterCommand = function (input, context)
172
167
  "content-type": "application/json",
173
168
  };
174
169
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/filters/delete";
175
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
170
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
176
171
  return [2, new __HttpRequest({
177
172
  protocol: protocol,
178
173
  hostname: hostname,
@@ -220,9 +215,7 @@ export var serializeAws_restJson1DisableCommand = function (input, context) { re
220
215
  "content-type": "application/json",
221
216
  };
222
217
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/disable";
223
- body = JSON.stringify(__assign(__assign({}, (input.accountIds !== undefined &&
224
- input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })), (input.resourceTypes !== undefined &&
225
- input.resourceTypes !== null && {
218
+ body = JSON.stringify(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })), (input.resourceTypes != null && {
226
219
  resourceTypes: serializeAws_restJson1DisableResourceTypeList(input.resourceTypes, context),
227
220
  })));
228
221
  return [2, new __HttpRequest({
@@ -248,8 +241,7 @@ export var serializeAws_restJson1DisableDelegatedAdminAccountCommand = function
248
241
  "content-type": "application/json",
249
242
  };
250
243
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delegatedadminaccounts/disable";
251
- body = JSON.stringify(__assign({}, (input.delegatedAdminAccountId !== undefined &&
252
- input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId })));
244
+ body = JSON.stringify(__assign({}, (input.delegatedAdminAccountId != null && { delegatedAdminAccountId: input.delegatedAdminAccountId })));
253
245
  return [2, new __HttpRequest({
254
246
  protocol: protocol,
255
247
  hostname: hostname,
@@ -273,7 +265,7 @@ export var serializeAws_restJson1DisassociateMemberCommand = function (input, co
273
265
  "content-type": "application/json",
274
266
  };
275
267
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/disassociate";
276
- body = JSON.stringify(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })));
268
+ body = JSON.stringify(__assign({}, (input.accountId != null && { accountId: input.accountId })));
277
269
  return [2, new __HttpRequest({
278
270
  protocol: protocol,
279
271
  hostname: hostname,
@@ -298,9 +290,7 @@ export var serializeAws_restJson1EnableCommand = function (input, context) { ret
298
290
  "content-type": "application/json",
299
291
  };
300
292
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/enable";
301
- body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds !== undefined &&
302
- input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resourceTypes !== undefined &&
303
- input.resourceTypes !== null && {
293
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resourceTypes != null && {
304
294
  resourceTypes: serializeAws_restJson1EnableResourceTypeList(input.resourceTypes, context),
305
295
  })));
306
296
  return [2, new __HttpRequest({
@@ -327,8 +317,31 @@ export var serializeAws_restJson1EnableDelegatedAdminAccountCommand = function (
327
317
  "content-type": "application/json",
328
318
  };
329
319
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delegatedadminaccounts/enable";
330
- body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.delegatedAdminAccountId !== undefined &&
331
- input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId })));
320
+ body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.delegatedAdminAccountId != null && { delegatedAdminAccountId: input.delegatedAdminAccountId })));
321
+ return [2, new __HttpRequest({
322
+ protocol: protocol,
323
+ hostname: hostname,
324
+ port: port,
325
+ method: "POST",
326
+ headers: headers,
327
+ path: resolvedPath,
328
+ body: body,
329
+ })];
330
+ }
331
+ });
332
+ }); };
333
+ export var serializeAws_restJson1GetConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
334
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
335
+ return __generator(this, function (_c) {
336
+ switch (_c.label) {
337
+ case 0: return [4, context.endpoint()];
338
+ case 1:
339
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
340
+ headers = {
341
+ "content-type": "application/json",
342
+ };
343
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/get";
344
+ body = "";
332
345
  return [2, new __HttpRequest({
333
346
  protocol: protocol,
334
347
  hostname: hostname,
@@ -376,7 +389,7 @@ export var serializeAws_restJson1GetFindingsReportStatusCommand = function (inpu
376
389
  "content-type": "application/json",
377
390
  };
378
391
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reporting/status/get";
379
- body = JSON.stringify(__assign({}, (input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId })));
392
+ body = JSON.stringify(__assign({}, (input.reportId != null && { reportId: input.reportId })));
380
393
  return [2, new __HttpRequest({
381
394
  protocol: protocol,
382
395
  hostname: hostname,
@@ -400,7 +413,7 @@ export var serializeAws_restJson1GetMemberCommand = function (input, context) {
400
413
  "content-type": "application/json",
401
414
  };
402
415
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/get";
403
- body = JSON.stringify(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })));
416
+ body = JSON.stringify(__assign({}, (input.accountId != null && { accountId: input.accountId })));
404
417
  return [2, new __HttpRequest({
405
418
  protocol: protocol,
406
419
  hostname: hostname,
@@ -424,7 +437,7 @@ export var serializeAws_restJson1ListAccountPermissionsCommand = function (input
424
437
  "content-type": "application/json",
425
438
  };
426
439
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accountpermissions/list";
427
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.service !== undefined && input.service !== null && { service: input.service })));
440
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.service != null && { service: input.service })));
428
441
  return [2, new __HttpRequest({
429
442
  protocol: protocol,
430
443
  hostname: hostname,
@@ -448,10 +461,9 @@ export var serializeAws_restJson1ListCoverageCommand = function (input, context)
448
461
  "content-type": "application/json",
449
462
  };
450
463
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/coverage/list";
451
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
452
- input.filterCriteria !== null && {
464
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria != null && {
453
465
  filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
454
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
466
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
455
467
  return [2, new __HttpRequest({
456
468
  protocol: protocol,
457
469
  hostname: hostname,
@@ -475,10 +487,9 @@ export var serializeAws_restJson1ListCoverageStatisticsCommand = function (input
475
487
  "content-type": "application/json",
476
488
  };
477
489
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/coverage/statistics/list";
478
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
479
- input.filterCriteria !== null && {
490
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria != null && {
480
491
  filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
481
- })), (input.groupBy !== undefined && input.groupBy !== null && { groupBy: input.groupBy })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
492
+ })), (input.groupBy != null && { groupBy: input.groupBy })), (input.nextToken != null && { nextToken: input.nextToken })));
482
493
  return [2, new __HttpRequest({
483
494
  protocol: protocol,
484
495
  hostname: hostname,
@@ -502,7 +513,7 @@ export var serializeAws_restJson1ListDelegatedAdminAccountsCommand = function (i
502
513
  "content-type": "application/json",
503
514
  };
504
515
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delegatedadminaccounts/list";
505
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
516
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
506
517
  return [2, new __HttpRequest({
507
518
  protocol: protocol,
508
519
  hostname: hostname,
@@ -526,8 +537,7 @@ export var serializeAws_restJson1ListFiltersCommand = function (input, context)
526
537
  "content-type": "application/json",
527
538
  };
528
539
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/filters/list";
529
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.arns !== undefined &&
530
- input.arns !== null && { arns: serializeAws_restJson1FilterArnList(input.arns, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
540
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.arns != null && { arns: serializeAws_restJson1FilterArnList(input.arns, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
531
541
  return [2, new __HttpRequest({
532
542
  protocol: protocol,
533
543
  hostname: hostname,
@@ -551,12 +561,9 @@ export var serializeAws_restJson1ListFindingAggregationsCommand = function (inpu
551
561
  "content-type": "application/json",
552
562
  };
553
563
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/aggregation/list";
554
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds !== undefined &&
555
- input.accountIds !== null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) })), (input.aggregationRequest !== undefined &&
556
- input.aggregationRequest !== null && {
564
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) })), (input.aggregationRequest != null && {
557
565
  aggregationRequest: serializeAws_restJson1AggregationRequest(input.aggregationRequest, context),
558
- })), (input.aggregationType !== undefined &&
559
- input.aggregationType !== null && { aggregationType: input.aggregationType })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
566
+ })), (input.aggregationType != null && { aggregationType: input.aggregationType })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
560
567
  return [2, new __HttpRequest({
561
568
  protocol: protocol,
562
569
  hostname: hostname,
@@ -580,11 +587,11 @@ export var serializeAws_restJson1ListFindingsCommand = function (input, context)
580
587
  "content-type": "application/json",
581
588
  };
582
589
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/list";
583
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
584
- input.filterCriteria !== null && {
590
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filterCriteria != null && {
585
591
  filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
586
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortCriteria !== undefined &&
587
- input.sortCriteria !== null && { sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context) })));
592
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortCriteria != null && {
593
+ sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
594
+ })));
588
595
  return [2, new __HttpRequest({
589
596
  protocol: protocol,
590
597
  hostname: hostname,
@@ -608,8 +615,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
608
615
  "content-type": "application/json",
609
616
  };
610
617
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/list";
611
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.onlyAssociated !== undefined &&
612
- input.onlyAssociated !== null && { onlyAssociated: input.onlyAssociated })));
618
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.onlyAssociated != null && { onlyAssociated: input.onlyAssociated })));
613
619
  return [2, new __HttpRequest({
614
620
  protocol: protocol,
615
621
  hostname: hostname,
@@ -664,8 +670,9 @@ export var serializeAws_restJson1ListUsageTotalsCommand = function (input, conte
664
670
  "content-type": "application/json",
665
671
  };
666
672
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usage/list";
667
- body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds !== undefined &&
668
- input.accountIds !== null && { accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
673
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds != null && {
674
+ accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context),
675
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
669
676
  return [2, new __HttpRequest({
670
677
  protocol: protocol,
671
678
  hostname: hostname,
@@ -699,7 +706,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
699
706
  else {
700
707
  throw new Error("No value provided for input HTTP label: resourceArn.");
701
708
  }
702
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
709
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
703
710
  return [2, new __HttpRequest({
704
711
  protocol: protocol,
705
712
  hostname: hostname,
@@ -745,6 +752,32 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
745
752
  }
746
753
  });
747
754
  }); };
755
+ export var serializeAws_restJson1UpdateConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
756
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
757
+ return __generator(this, function (_c) {
758
+ switch (_c.label) {
759
+ case 0: return [4, context.endpoint()];
760
+ case 1:
761
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
762
+ headers = {
763
+ "content-type": "application/json",
764
+ };
765
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configuration/update";
766
+ body = JSON.stringify(__assign({}, (input.ecrConfiguration != null && {
767
+ ecrConfiguration: serializeAws_restJson1EcrConfiguration(input.ecrConfiguration, context),
768
+ })));
769
+ return [2, new __HttpRequest({
770
+ protocol: protocol,
771
+ hostname: hostname,
772
+ port: port,
773
+ method: "POST",
774
+ headers: headers,
775
+ path: resolvedPath,
776
+ body: body,
777
+ })];
778
+ }
779
+ });
780
+ }); };
748
781
  export var serializeAws_restJson1UpdateFilterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
749
782
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
750
783
  return __generator(this, function (_c) {
@@ -756,10 +789,9 @@ export var serializeAws_restJson1UpdateFilterCommand = function (input, context)
756
789
  "content-type": "application/json",
757
790
  };
758
791
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/filters/update";
759
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn })), (input.filterCriteria !== undefined &&
760
- input.filterCriteria !== null && {
792
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.description != null && { description: input.description })), (input.filterArn != null && { filterArn: input.filterArn })), (input.filterCriteria != null && {
761
793
  filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
762
- })), (input.name !== undefined && input.name !== null && { name: input.name })));
794
+ })), (input.name != null && { name: input.name })), (input.reason != null && { reason: input.reason })));
763
795
  return [2, new __HttpRequest({
764
796
  protocol: protocol,
765
797
  hostname: hostname,
@@ -783,8 +815,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
783
815
  "content-type": "application/json",
784
816
  };
785
817
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organizationconfiguration/update";
786
- body = JSON.stringify(__assign({}, (input.autoEnable !== undefined &&
787
- input.autoEnable !== null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) })));
818
+ body = JSON.stringify(__assign({}, (input.autoEnable != null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) })));
788
819
  return [2, new __HttpRequest({
789
820
  protocol: protocol,
790
821
  hostname: hostname,
@@ -1762,6 +1793,71 @@ var deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = function (
1762
1793
  }
1763
1794
  });
1764
1795
  }); };
1796
+ export var deserializeAws_restJson1GetConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1797
+ var contents, data, _a, _b;
1798
+ return __generator(this, function (_c) {
1799
+ switch (_c.label) {
1800
+ case 0:
1801
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1802
+ return [2, deserializeAws_restJson1GetConfigurationCommandError(output, context)];
1803
+ }
1804
+ contents = {
1805
+ $metadata: deserializeMetadata(output),
1806
+ ecrConfiguration: undefined,
1807
+ };
1808
+ _a = __expectNonNull;
1809
+ _b = __expectObject;
1810
+ return [4, parseBody(output.body, context)];
1811
+ case 1:
1812
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1813
+ if (data.ecrConfiguration !== undefined && data.ecrConfiguration !== null) {
1814
+ contents.ecrConfiguration = deserializeAws_restJson1EcrConfigurationState(data.ecrConfiguration, context);
1815
+ }
1816
+ return [2, Promise.resolve(contents)];
1817
+ }
1818
+ });
1819
+ }); };
1820
+ var deserializeAws_restJson1GetConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1821
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1822
+ var _c;
1823
+ return __generator(this, function (_d) {
1824
+ switch (_d.label) {
1825
+ case 0:
1826
+ _a = [__assign({}, output)];
1827
+ _c = {};
1828
+ return [4, parseBody(output.body, context)];
1829
+ case 1:
1830
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1831
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1832
+ _b = errorCode;
1833
+ switch (_b) {
1834
+ case "InternalServerException": return [3, 2];
1835
+ case "com.amazonaws.inspector2#InternalServerException": return [3, 2];
1836
+ case "ResourceNotFoundException": return [3, 4];
1837
+ case "com.amazonaws.inspector2#ResourceNotFoundException": return [3, 4];
1838
+ case "ThrottlingException": return [3, 6];
1839
+ case "com.amazonaws.inspector2#ThrottlingException": return [3, 6];
1840
+ }
1841
+ return [3, 8];
1842
+ case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1843
+ case 3: throw _d.sent();
1844
+ case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1845
+ case 5: throw _d.sent();
1846
+ case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1847
+ case 7: throw _d.sent();
1848
+ case 8:
1849
+ parsedBody = parsedOutput.body;
1850
+ $metadata = deserializeMetadata(output);
1851
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1852
+ response = new __BaseException({
1853
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1854
+ $fault: "client",
1855
+ $metadata: $metadata,
1856
+ });
1857
+ throw __decorateServiceException(response, parsedBody);
1858
+ }
1859
+ });
1860
+ }); };
1765
1861
  export var deserializeAws_restJson1GetDelegatedAdminAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1766
1862
  var contents, data, _a, _b;
1767
1863
  return __generator(this, function (_c) {
@@ -2849,6 +2945,69 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2849
2945
  }
2850
2946
  });
2851
2947
  }); };
2948
+ export var deserializeAws_restJson1UpdateConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2949
+ var contents;
2950
+ return __generator(this, function (_a) {
2951
+ switch (_a.label) {
2952
+ case 0:
2953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2954
+ return [2, deserializeAws_restJson1UpdateConfigurationCommandError(output, context)];
2955
+ }
2956
+ contents = {
2957
+ $metadata: deserializeMetadata(output),
2958
+ };
2959
+ return [4, collectBody(output.body, context)];
2960
+ case 1:
2961
+ _a.sent();
2962
+ return [2, Promise.resolve(contents)];
2963
+ }
2964
+ });
2965
+ }); };
2966
+ var deserializeAws_restJson1UpdateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2967
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2968
+ var _c;
2969
+ return __generator(this, function (_d) {
2970
+ switch (_d.label) {
2971
+ case 0:
2972
+ _a = [__assign({}, output)];
2973
+ _c = {};
2974
+ return [4, parseBody(output.body, context)];
2975
+ case 1:
2976
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2977
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2978
+ _b = errorCode;
2979
+ switch (_b) {
2980
+ case "AccessDeniedException": return [3, 2];
2981
+ case "com.amazonaws.inspector2#AccessDeniedException": return [3, 2];
2982
+ case "InternalServerException": return [3, 4];
2983
+ case "com.amazonaws.inspector2#InternalServerException": return [3, 4];
2984
+ case "ThrottlingException": return [3, 6];
2985
+ case "com.amazonaws.inspector2#ThrottlingException": return [3, 6];
2986
+ case "ValidationException": return [3, 8];
2987
+ case "com.amazonaws.inspector2#ValidationException": return [3, 8];
2988
+ }
2989
+ return [3, 10];
2990
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2991
+ case 3: throw _d.sent();
2992
+ case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2993
+ case 5: throw _d.sent();
2994
+ case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2995
+ case 7: throw _d.sent();
2996
+ case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2997
+ case 9: throw _d.sent();
2998
+ case 10:
2999
+ parsedBody = parsedOutput.body;
3000
+ $metadata = deserializeMetadata(output);
3001
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3002
+ response = new __BaseException({
3003
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3004
+ $fault: "client",
3005
+ $metadata: $metadata,
3006
+ });
3007
+ throw __decorateServiceException(response, parsedBody);
3008
+ }
3009
+ });
3010
+ }); };
2852
3011
  export var deserializeAws_restJson1UpdateFilterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2853
3012
  var contents, data, _a, _b;
2854
3013
  return __generator(this, function (_c) {
@@ -3106,7 +3265,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
3106
3265
  });
3107
3266
  }); };
3108
3267
  var serializeAws_restJson1AccountAggregation = function (input, context) {
3109
- return __assign(__assign(__assign(__assign({}, (input.findingType !== undefined && input.findingType !== null && { findingType: input.findingType })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3268
+ return __assign(__assign(__assign(__assign({}, (input.findingType != null && { findingType: input.findingType })), (input.resourceType != null && { resourceType: input.resourceType })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3110
3269
  };
3111
3270
  var serializeAws_restJson1AccountIdSet = function (input, context) {
3112
3271
  return input
@@ -3143,56 +3302,43 @@ var serializeAws_restJson1AggregationRequest = function (input, context) {
3143
3302
  });
3144
3303
  };
3145
3304
  var serializeAws_restJson1AmiAggregation = function (input, context) {
3146
- return __assign(__assign(__assign({}, (input.amis !== undefined &&
3147
- input.amis !== null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3305
+ return __assign(__assign(__assign({}, (input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3148
3306
  };
3149
3307
  var serializeAws_restJson1AutoEnable = function (input, context) {
3150
- return __assign(__assign({}, (input.ec2 !== undefined && input.ec2 !== null && { ec2: input.ec2 })), (input.ecr !== undefined && input.ecr !== null && { ecr: input.ecr }));
3308
+ return __assign(__assign({}, (input.ec2 != null && { ec2: input.ec2 })), (input.ecr != null && { ecr: input.ecr }));
3151
3309
  };
3152
3310
  var serializeAws_restJson1AwsEcrContainerAggregation = function (input, context) {
3153
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.architectures !== undefined &&
3154
- input.architectures !== null && {
3311
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.architectures != null && {
3155
3312
  architectures: serializeAws_restJson1StringFilterList(input.architectures, context),
3156
- })), (input.imageShas !== undefined &&
3157
- input.imageShas !== null && { imageShas: serializeAws_restJson1StringFilterList(input.imageShas, context) })), (input.imageTags !== undefined &&
3158
- input.imageTags !== null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) })), (input.repositories !== undefined &&
3159
- input.repositories !== null && {
3313
+ })), (input.imageShas != null && { imageShas: serializeAws_restJson1StringFilterList(input.imageShas, context) })), (input.imageTags != null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) })), (input.repositories != null && {
3160
3314
  repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
3161
- })), (input.resourceIds !== undefined &&
3162
- input.resourceIds !== null && {
3315
+ })), (input.resourceIds != null && {
3163
3316
  resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
3164
- })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3317
+ })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3165
3318
  };
3166
3319
  var serializeAws_restJson1CoverageFilterCriteria = function (input, context) {
3167
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountId !== undefined &&
3168
- input.accountId !== null && {
3320
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountId != null && {
3169
3321
  accountId: serializeAws_restJson1CoverageStringFilterList(input.accountId, context),
3170
- })), (input.ec2InstanceTags !== undefined &&
3171
- input.ec2InstanceTags !== null && {
3322
+ })), (input.ec2InstanceTags != null && {
3172
3323
  ec2InstanceTags: serializeAws_restJson1CoverageMapFilterList(input.ec2InstanceTags, context),
3173
- })), (input.ecrImageTags !== undefined &&
3174
- input.ecrImageTags !== null && {
3324
+ })), (input.ecrImageTags != null && {
3175
3325
  ecrImageTags: serializeAws_restJson1CoverageStringFilterList(input.ecrImageTags, context),
3176
- })), (input.ecrRepositoryName !== undefined &&
3177
- input.ecrRepositoryName !== null && {
3326
+ })), (input.ecrRepositoryName != null && {
3178
3327
  ecrRepositoryName: serializeAws_restJson1CoverageStringFilterList(input.ecrRepositoryName, context),
3179
- })), (input.resourceId !== undefined &&
3180
- input.resourceId !== null && {
3328
+ })), (input.resourceId != null && {
3181
3329
  resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
3182
- })), (input.resourceType !== undefined &&
3183
- input.resourceType !== null && {
3330
+ })), (input.resourceType != null && {
3184
3331
  resourceType: serializeAws_restJson1CoverageStringFilterList(input.resourceType, context),
3185
- })), (input.scanStatusCode !== undefined &&
3186
- input.scanStatusCode !== null && {
3332
+ })), (input.scanStatusCode != null && {
3187
3333
  scanStatusCode: serializeAws_restJson1CoverageStringFilterList(input.scanStatusCode, context),
3188
- })), (input.scanStatusReason !== undefined &&
3189
- input.scanStatusReason !== null && {
3334
+ })), (input.scanStatusReason != null && {
3190
3335
  scanStatusReason: serializeAws_restJson1CoverageStringFilterList(input.scanStatusReason, context),
3191
- })), (input.scanType !== undefined &&
3192
- input.scanType !== null && { scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context) }));
3336
+ })), (input.scanType != null && {
3337
+ scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context),
3338
+ }));
3193
3339
  };
3194
3340
  var serializeAws_restJson1CoverageMapFilter = function (input, context) {
3195
- return __assign(__assign(__assign({}, (input.comparison !== undefined && input.comparison !== null && { comparison: input.comparison })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
3341
+ return __assign(__assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
3196
3342
  };
3197
3343
  var serializeAws_restJson1CoverageMapFilterList = function (input, context) {
3198
3344
  return input
@@ -3205,7 +3351,7 @@ var serializeAws_restJson1CoverageMapFilterList = function (input, context) {
3205
3351
  });
3206
3352
  };
3207
3353
  var serializeAws_restJson1CoverageStringFilter = function (input, context) {
3208
- return __assign(__assign({}, (input.comparison !== undefined && input.comparison !== null && { comparison: input.comparison })), (input.value !== undefined && input.value !== null && { value: input.value }));
3354
+ return __assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.value != null && { value: input.value }));
3209
3355
  };
3210
3356
  var serializeAws_restJson1CoverageStringFilterList = function (input, context) {
3211
3357
  return input
@@ -3218,9 +3364,7 @@ var serializeAws_restJson1CoverageStringFilterList = function (input, context) {
3218
3364
  });
3219
3365
  };
3220
3366
  var serializeAws_restJson1DateFilter = function (input, context) {
3221
- return __assign(__assign({}, (input.endInclusive !== undefined &&
3222
- input.endInclusive !== null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) })), (input.startInclusive !== undefined &&
3223
- input.startInclusive !== null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }));
3367
+ return __assign(__assign({}, (input.endInclusive != null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) })), (input.startInclusive != null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }));
3224
3368
  };
3225
3369
  var serializeAws_restJson1DateFilterList = function (input, context) {
3226
3370
  return input
@@ -3233,7 +3377,7 @@ var serializeAws_restJson1DateFilterList = function (input, context) {
3233
3377
  });
3234
3378
  };
3235
3379
  var serializeAws_restJson1Destination = function (input, context) {
3236
- return __assign(__assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.keyPrefix !== undefined && input.keyPrefix !== null && { keyPrefix: input.keyPrefix })), (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }));
3380
+ return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.keyPrefix != null && { keyPrefix: input.keyPrefix })), (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }));
3237
3381
  };
3238
3382
  var serializeAws_restJson1DisableResourceTypeList = function (input, context) {
3239
3383
  return input
@@ -3246,17 +3390,16 @@ var serializeAws_restJson1DisableResourceTypeList = function (input, context) {
3246
3390
  });
3247
3391
  };
3248
3392
  var serializeAws_restJson1Ec2InstanceAggregation = function (input, context) {
3249
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amis !== undefined &&
3250
- input.amis !== null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) })), (input.instanceIds !== undefined &&
3251
- input.instanceIds !== null && {
3393
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) })), (input.instanceIds != null && {
3252
3394
  instanceIds: serializeAws_restJson1StringFilterList(input.instanceIds, context),
3253
- })), (input.instanceTags !== undefined &&
3254
- input.instanceTags !== null && {
3395
+ })), (input.instanceTags != null && {
3255
3396
  instanceTags: serializeAws_restJson1MapFilterList(input.instanceTags, context),
3256
- })), (input.operatingSystems !== undefined &&
3257
- input.operatingSystems !== null && {
3397
+ })), (input.operatingSystems != null && {
3258
3398
  operatingSystems: serializeAws_restJson1StringFilterList(input.operatingSystems, context),
3259
- })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3399
+ })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3400
+ };
3401
+ var serializeAws_restJson1EcrConfiguration = function (input, context) {
3402
+ return __assign({}, (input.rescanDuration != null && { rescanDuration: input.rescanDuration }));
3260
3403
  };
3261
3404
  var serializeAws_restJson1EnableResourceTypeList = function (input, context) {
3262
3405
  return input
@@ -3279,106 +3422,72 @@ var serializeAws_restJson1FilterArnList = function (input, context) {
3279
3422
  });
3280
3423
  };
3281
3424
  var serializeAws_restJson1FilterCriteria = function (input, context) {
3282
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.awsAccountId !== undefined &&
3283
- input.awsAccountId !== null && {
3425
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.awsAccountId != null && {
3284
3426
  awsAccountId: serializeAws_restJson1StringFilterList(input.awsAccountId, context),
3285
- })), (input.componentId !== undefined &&
3286
- input.componentId !== null && {
3427
+ })), (input.componentId != null && {
3287
3428
  componentId: serializeAws_restJson1StringFilterList(input.componentId, context),
3288
- })), (input.componentType !== undefined &&
3289
- input.componentType !== null && {
3429
+ })), (input.componentType != null && {
3290
3430
  componentType: serializeAws_restJson1StringFilterList(input.componentType, context),
3291
- })), (input.ec2InstanceImageId !== undefined &&
3292
- input.ec2InstanceImageId !== null && {
3431
+ })), (input.ec2InstanceImageId != null && {
3293
3432
  ec2InstanceImageId: serializeAws_restJson1StringFilterList(input.ec2InstanceImageId, context),
3294
- })), (input.ec2InstanceSubnetId !== undefined &&
3295
- input.ec2InstanceSubnetId !== null && {
3433
+ })), (input.ec2InstanceSubnetId != null && {
3296
3434
  ec2InstanceSubnetId: serializeAws_restJson1StringFilterList(input.ec2InstanceSubnetId, context),
3297
- })), (input.ec2InstanceVpcId !== undefined &&
3298
- input.ec2InstanceVpcId !== null && {
3435
+ })), (input.ec2InstanceVpcId != null && {
3299
3436
  ec2InstanceVpcId: serializeAws_restJson1StringFilterList(input.ec2InstanceVpcId, context),
3300
- })), (input.ecrImageArchitecture !== undefined &&
3301
- input.ecrImageArchitecture !== null && {
3437
+ })), (input.ecrImageArchitecture != null && {
3302
3438
  ecrImageArchitecture: serializeAws_restJson1StringFilterList(input.ecrImageArchitecture, context),
3303
- })), (input.ecrImageHash !== undefined &&
3304
- input.ecrImageHash !== null && {
3439
+ })), (input.ecrImageHash != null && {
3305
3440
  ecrImageHash: serializeAws_restJson1StringFilterList(input.ecrImageHash, context),
3306
- })), (input.ecrImagePushedAt !== undefined &&
3307
- input.ecrImagePushedAt !== null && {
3441
+ })), (input.ecrImagePushedAt != null && {
3308
3442
  ecrImagePushedAt: serializeAws_restJson1DateFilterList(input.ecrImagePushedAt, context),
3309
- })), (input.ecrImageRegistry !== undefined &&
3310
- input.ecrImageRegistry !== null && {
3443
+ })), (input.ecrImageRegistry != null && {
3311
3444
  ecrImageRegistry: serializeAws_restJson1StringFilterList(input.ecrImageRegistry, context),
3312
- })), (input.ecrImageRepositoryName !== undefined &&
3313
- input.ecrImageRepositoryName !== null && {
3445
+ })), (input.ecrImageRepositoryName != null && {
3314
3446
  ecrImageRepositoryName: serializeAws_restJson1StringFilterList(input.ecrImageRepositoryName, context),
3315
- })), (input.ecrImageTags !== undefined &&
3316
- input.ecrImageTags !== null && {
3447
+ })), (input.ecrImageTags != null && {
3317
3448
  ecrImageTags: serializeAws_restJson1StringFilterList(input.ecrImageTags, context),
3318
- })), (input.findingArn !== undefined &&
3319
- input.findingArn !== null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) })), (input.findingStatus !== undefined &&
3320
- input.findingStatus !== null && {
3449
+ })), (input.findingArn != null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) })), (input.findingStatus != null && {
3321
3450
  findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
3322
- })), (input.findingType !== undefined &&
3323
- input.findingType !== null && {
3451
+ })), (input.findingType != null && {
3324
3452
  findingType: serializeAws_restJson1StringFilterList(input.findingType, context),
3325
- })), (input.firstObservedAt !== undefined &&
3326
- input.firstObservedAt !== null && {
3453
+ })), (input.firstObservedAt != null && {
3327
3454
  firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
3328
- })), (input.inspectorScore !== undefined &&
3329
- input.inspectorScore !== null && {
3455
+ })), (input.inspectorScore != null && {
3330
3456
  inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
3331
- })), (input.lastObservedAt !== undefined &&
3332
- input.lastObservedAt !== null && {
3457
+ })), (input.lastObservedAt != null && {
3333
3458
  lastObservedAt: serializeAws_restJson1DateFilterList(input.lastObservedAt, context),
3334
- })), (input.networkProtocol !== undefined &&
3335
- input.networkProtocol !== null && {
3459
+ })), (input.networkProtocol != null && {
3336
3460
  networkProtocol: serializeAws_restJson1StringFilterList(input.networkProtocol, context),
3337
- })), (input.portRange !== undefined &&
3338
- input.portRange !== null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) })), (input.relatedVulnerabilities !== undefined &&
3339
- input.relatedVulnerabilities !== null && {
3461
+ })), (input.portRange != null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) })), (input.relatedVulnerabilities != null && {
3340
3462
  relatedVulnerabilities: serializeAws_restJson1StringFilterList(input.relatedVulnerabilities, context),
3341
- })), (input.resourceId !== undefined &&
3342
- input.resourceId !== null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) })), (input.resourceTags !== undefined &&
3343
- input.resourceTags !== null && {
3463
+ })), (input.resourceId != null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) })), (input.resourceTags != null && {
3344
3464
  resourceTags: serializeAws_restJson1MapFilterList(input.resourceTags, context),
3345
- })), (input.resourceType !== undefined &&
3346
- input.resourceType !== null && {
3465
+ })), (input.resourceType != null && {
3347
3466
  resourceType: serializeAws_restJson1StringFilterList(input.resourceType, context),
3348
- })), (input.severity !== undefined &&
3349
- input.severity !== null && { severity: serializeAws_restJson1StringFilterList(input.severity, context) })), (input.title !== undefined &&
3350
- input.title !== null && { title: serializeAws_restJson1StringFilterList(input.title, context) })), (input.updatedAt !== undefined &&
3351
- input.updatedAt !== null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) })), (input.vendorSeverity !== undefined &&
3352
- input.vendorSeverity !== null && {
3467
+ })), (input.severity != null && { severity: serializeAws_restJson1StringFilterList(input.severity, context) })), (input.title != null && { title: serializeAws_restJson1StringFilterList(input.title, context) })), (input.updatedAt != null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) })), (input.vendorSeverity != null && {
3353
3468
  vendorSeverity: serializeAws_restJson1StringFilterList(input.vendorSeverity, context),
3354
- })), (input.vulnerabilityId !== undefined &&
3355
- input.vulnerabilityId !== null && {
3469
+ })), (input.vulnerabilityId != null && {
3356
3470
  vulnerabilityId: serializeAws_restJson1StringFilterList(input.vulnerabilityId, context),
3357
- })), (input.vulnerabilitySource !== undefined &&
3358
- input.vulnerabilitySource !== null && {
3471
+ })), (input.vulnerabilitySource != null && {
3359
3472
  vulnerabilitySource: serializeAws_restJson1StringFilterList(input.vulnerabilitySource, context),
3360
- })), (input.vulnerablePackages !== undefined &&
3361
- input.vulnerablePackages !== null && {
3473
+ })), (input.vulnerablePackages != null && {
3362
3474
  vulnerablePackages: serializeAws_restJson1PackageFilterList(input.vulnerablePackages, context),
3363
3475
  }));
3364
3476
  };
3365
3477
  var serializeAws_restJson1FindingTypeAggregation = function (input, context) {
3366
- return __assign(__assign(__assign(__assign({}, (input.findingType !== undefined && input.findingType !== null && { findingType: input.findingType })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3478
+ return __assign(__assign(__assign(__assign({}, (input.findingType != null && { findingType: input.findingType })), (input.resourceType != null && { resourceType: input.resourceType })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3367
3479
  };
3368
3480
  var serializeAws_restJson1ImageLayerAggregation = function (input, context) {
3369
- return __assign(__assign(__assign(__assign(__assign({}, (input.layerHashes !== undefined &&
3370
- input.layerHashes !== null && {
3481
+ return __assign(__assign(__assign(__assign(__assign({}, (input.layerHashes != null && {
3371
3482
  layerHashes: serializeAws_restJson1StringFilterList(input.layerHashes, context),
3372
- })), (input.repositories !== undefined &&
3373
- input.repositories !== null && {
3483
+ })), (input.repositories != null && {
3374
3484
  repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
3375
- })), (input.resourceIds !== undefined &&
3376
- input.resourceIds !== null && {
3485
+ })), (input.resourceIds != null && {
3377
3486
  resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
3378
- })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3487
+ })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3379
3488
  };
3380
3489
  var serializeAws_restJson1MapFilter = function (input, context) {
3381
- return __assign(__assign(__assign({}, (input.comparison !== undefined && input.comparison !== null && { comparison: input.comparison })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
3490
+ return __assign(__assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
3382
3491
  };
3383
3492
  var serializeAws_restJson1MapFilterList = function (input, context) {
3384
3493
  return input
@@ -3401,9 +3510,7 @@ var serializeAws_restJson1MeteringAccountIdList = function (input, context) {
3401
3510
  });
3402
3511
  };
3403
3512
  var serializeAws_restJson1NumberFilter = function (input, context) {
3404
- return __assign(__assign({}, (input.lowerInclusive !== undefined &&
3405
- input.lowerInclusive !== null && { lowerInclusive: __serializeFloat(input.lowerInclusive) })), (input.upperInclusive !== undefined &&
3406
- input.upperInclusive !== null && { upperInclusive: __serializeFloat(input.upperInclusive) }));
3513
+ return __assign(__assign({}, (input.lowerInclusive != null && { lowerInclusive: __serializeFloat(input.lowerInclusive) })), (input.upperInclusive != null && { upperInclusive: __serializeFloat(input.upperInclusive) }));
3407
3514
  };
3408
3515
  var serializeAws_restJson1NumberFilterList = function (input, context) {
3409
3516
  return input
@@ -3416,21 +3523,16 @@ var serializeAws_restJson1NumberFilterList = function (input, context) {
3416
3523
  });
3417
3524
  };
3418
3525
  var serializeAws_restJson1PackageAggregation = function (input, context) {
3419
- return __assign(__assign(__assign({}, (input.packageNames !== undefined &&
3420
- input.packageNames !== null && {
3526
+ return __assign(__assign(__assign({}, (input.packageNames != null && {
3421
3527
  packageNames: serializeAws_restJson1StringFilterList(input.packageNames, context),
3422
- })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3528
+ })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3423
3529
  };
3424
3530
  var serializeAws_restJson1PackageFilter = function (input, context) {
3425
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.architecture !== undefined &&
3426
- input.architecture !== null && { architecture: serializeAws_restJson1StringFilter(input.architecture, context) })), (input.epoch !== undefined &&
3427
- input.epoch !== null && { epoch: serializeAws_restJson1NumberFilter(input.epoch, context) })), (input.name !== undefined &&
3428
- input.name !== null && { name: serializeAws_restJson1StringFilter(input.name, context) })), (input.release !== undefined &&
3429
- input.release !== null && { release: serializeAws_restJson1StringFilter(input.release, context) })), (input.sourceLayerHash !== undefined &&
3430
- input.sourceLayerHash !== null && {
3531
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.architecture != null && {
3532
+ architecture: serializeAws_restJson1StringFilter(input.architecture, context),
3533
+ })), (input.epoch != null && { epoch: serializeAws_restJson1NumberFilter(input.epoch, context) })), (input.name != null && { name: serializeAws_restJson1StringFilter(input.name, context) })), (input.release != null && { release: serializeAws_restJson1StringFilter(input.release, context) })), (input.sourceLayerHash != null && {
3431
3534
  sourceLayerHash: serializeAws_restJson1StringFilter(input.sourceLayerHash, context),
3432
- })), (input.version !== undefined &&
3433
- input.version !== null && { version: serializeAws_restJson1StringFilter(input.version, context) }));
3535
+ })), (input.version != null && { version: serializeAws_restJson1StringFilter(input.version, context) }));
3434
3536
  };
3435
3537
  var serializeAws_restJson1PackageFilterList = function (input, context) {
3436
3538
  return input
@@ -3443,8 +3545,7 @@ var serializeAws_restJson1PackageFilterList = function (input, context) {
3443
3545
  });
3444
3546
  };
3445
3547
  var serializeAws_restJson1PortRangeFilter = function (input, context) {
3446
- return __assign(__assign({}, (input.beginInclusive !== undefined &&
3447
- input.beginInclusive !== null && { beginInclusive: input.beginInclusive })), (input.endInclusive !== undefined && input.endInclusive !== null && { endInclusive: input.endInclusive }));
3548
+ return __assign(__assign({}, (input.beginInclusive != null && { beginInclusive: input.beginInclusive })), (input.endInclusive != null && { endInclusive: input.endInclusive }));
3448
3549
  };
3449
3550
  var serializeAws_restJson1PortRangeFilterList = function (input, context) {
3450
3551
  return input
@@ -3457,16 +3558,15 @@ var serializeAws_restJson1PortRangeFilterList = function (input, context) {
3457
3558
  });
3458
3559
  };
3459
3560
  var serializeAws_restJson1RepositoryAggregation = function (input, context) {
3460
- return __assign(__assign(__assign({}, (input.repositories !== undefined &&
3461
- input.repositories !== null && {
3561
+ return __assign(__assign(__assign({}, (input.repositories != null && {
3462
3562
  repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
3463
- })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3563
+ })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3464
3564
  };
3465
3565
  var serializeAws_restJson1SortCriteria = function (input, context) {
3466
- return __assign(__assign({}, (input.field !== undefined && input.field !== null && { field: input.field })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }));
3566
+ return __assign(__assign({}, (input.field != null && { field: input.field })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
3467
3567
  };
3468
3568
  var serializeAws_restJson1StringFilter = function (input, context) {
3469
- return __assign(__assign({}, (input.comparison !== undefined && input.comparison !== null && { comparison: input.comparison })), (input.value !== undefined && input.value !== null && { value: input.value }));
3569
+ return __assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.value != null && { value: input.value }));
3470
3570
  };
3471
3571
  var serializeAws_restJson1StringFilterList = function (input, context) {
3472
3572
  return input
@@ -3489,9 +3589,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
3489
3589
  }, {});
3490
3590
  };
3491
3591
  var serializeAws_restJson1TitleAggregation = function (input, context) {
3492
- return __assign(__assign(__assign(__assign(__assign({}, (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder })), (input.titles !== undefined &&
3493
- input.titles !== null && { titles: serializeAws_restJson1StringFilterList(input.titles, context) })), (input.vulnerabilityIds !== undefined &&
3494
- input.vulnerabilityIds !== null && {
3592
+ return __assign(__assign(__assign(__assign(__assign({}, (input.resourceType != null && { resourceType: input.resourceType })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder })), (input.titles != null && { titles: serializeAws_restJson1StringFilterList(input.titles, context) })), (input.vulnerabilityIds != null && {
3495
3593
  vulnerabilityIds: serializeAws_restJson1StringFilterList(input.vulnerabilityIds, context),
3496
3594
  }));
3497
3595
  };
@@ -3508,7 +3606,7 @@ var serializeAws_restJson1UsageAccountIdList = function (input, context) {
3508
3606
  var deserializeAws_restJson1Account = function (output, context) {
3509
3607
  return {
3510
3608
  accountId: __expectString(output.accountId),
3511
- resourceStatus: output.resourceStatus !== undefined && output.resourceStatus !== null
3609
+ resourceStatus: output.resourceStatus != null
3512
3610
  ? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
3513
3611
  : undefined,
3514
3612
  status: __expectString(output.status),
@@ -3517,7 +3615,7 @@ var deserializeAws_restJson1Account = function (output, context) {
3517
3615
  var deserializeAws_restJson1AccountAggregationResponse = function (output, context) {
3518
3616
  return {
3519
3617
  accountId: __expectString(output.accountId),
3520
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3618
+ severityCounts: output.severityCounts != null
3521
3619
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3522
3620
  : undefined,
3523
3621
  };
@@ -3536,12 +3634,8 @@ var deserializeAws_restJson1AccountList = function (output, context) {
3536
3634
  var deserializeAws_restJson1AccountState = function (output, context) {
3537
3635
  return {
3538
3636
  accountId: __expectString(output.accountId),
3539
- resourceState: output.resourceState !== undefined && output.resourceState !== null
3540
- ? deserializeAws_restJson1ResourceState(output.resourceState, context)
3541
- : undefined,
3542
- state: output.state !== undefined && output.state !== null
3543
- ? deserializeAws_restJson1State(output.state, context)
3544
- : undefined,
3637
+ resourceState: output.resourceState != null ? deserializeAws_restJson1ResourceState(output.resourceState, context) : undefined,
3638
+ state: output.state != null ? deserializeAws_restJson1State(output.state, context) : undefined,
3545
3639
  };
3546
3640
  };
3547
3641
  var deserializeAws_restJson1AccountStateList = function (output, context) {
@@ -3619,7 +3713,7 @@ var deserializeAws_restJson1AmiAggregationResponse = function (output, context)
3619
3713
  accountId: __expectString(output.accountId),
3620
3714
  affectedInstances: __expectLong(output.affectedInstances),
3621
3715
  ami: __expectString(output.ami),
3622
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3716
+ severityCounts: output.severityCounts != null
3623
3717
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3624
3718
  : undefined,
3625
3719
  };
@@ -3634,16 +3728,10 @@ var deserializeAws_restJson1AwsEc2InstanceDetails = function (output, context) {
3634
3728
  return {
3635
3729
  iamInstanceProfileArn: __expectString(output.iamInstanceProfileArn),
3636
3730
  imageId: __expectString(output.imageId),
3637
- ipV4Addresses: output.ipV4Addresses !== undefined && output.ipV4Addresses !== null
3638
- ? deserializeAws_restJson1IpV4AddressList(output.ipV4Addresses, context)
3639
- : undefined,
3640
- ipV6Addresses: output.ipV6Addresses !== undefined && output.ipV6Addresses !== null
3641
- ? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context)
3642
- : undefined,
3731
+ ipV4Addresses: output.ipV4Addresses != null ? deserializeAws_restJson1IpV4AddressList(output.ipV4Addresses, context) : undefined,
3732
+ ipV6Addresses: output.ipV6Addresses != null ? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context) : undefined,
3643
3733
  keyName: __expectString(output.keyName),
3644
- launchedAt: output.launchedAt !== undefined && output.launchedAt !== null
3645
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.launchedAt)))
3646
- : undefined,
3734
+ launchedAt: output.launchedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.launchedAt))) : undefined,
3647
3735
  platform: __expectString(output.platform),
3648
3736
  subnetId: __expectString(output.subnetId),
3649
3737
  type: __expectString(output.type),
@@ -3655,12 +3743,10 @@ var deserializeAws_restJson1AwsEcrContainerAggregationResponse = function (outpu
3655
3743
  accountId: __expectString(output.accountId),
3656
3744
  architecture: __expectString(output.architecture),
3657
3745
  imageSha: __expectString(output.imageSha),
3658
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3659
- ? deserializeAws_restJson1StringList(output.imageTags, context)
3660
- : undefined,
3746
+ imageTags: output.imageTags != null ? deserializeAws_restJson1StringList(output.imageTags, context) : undefined,
3661
3747
  repository: __expectString(output.repository),
3662
3748
  resourceId: __expectString(output.resourceId),
3663
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3749
+ severityCounts: output.severityCounts != null
3664
3750
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3665
3751
  : undefined,
3666
3752
  };
@@ -3670,13 +3756,9 @@ var deserializeAws_restJson1AwsEcrContainerImageDetails = function (output, cont
3670
3756
  architecture: __expectString(output.architecture),
3671
3757
  author: __expectString(output.author),
3672
3758
  imageHash: __expectString(output.imageHash),
3673
- imageTags: output.imageTags !== undefined && output.imageTags !== null
3674
- ? deserializeAws_restJson1ImageTagList(output.imageTags, context)
3675
- : undefined,
3759
+ imageTags: output.imageTags != null ? deserializeAws_restJson1ImageTagList(output.imageTags, context) : undefined,
3676
3760
  platform: __expectString(output.platform),
3677
- pushedAt: output.pushedAt !== undefined && output.pushedAt !== null
3678
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt)))
3679
- : undefined,
3761
+ pushedAt: output.pushedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt))) : undefined,
3680
3762
  registry: __expectString(output.registry),
3681
3763
  repositoryName: __expectString(output.repositoryName),
3682
3764
  };
@@ -3702,13 +3784,11 @@ var deserializeAws_restJson1CoveredResource = function (output, context) {
3702
3784
  return {
3703
3785
  accountId: __expectString(output.accountId),
3704
3786
  resourceId: __expectString(output.resourceId),
3705
- resourceMetadata: output.resourceMetadata !== undefined && output.resourceMetadata !== null
3787
+ resourceMetadata: output.resourceMetadata != null
3706
3788
  ? deserializeAws_restJson1ResourceScanMetadata(output.resourceMetadata, context)
3707
3789
  : undefined,
3708
3790
  resourceType: __expectString(output.resourceType),
3709
- scanStatus: output.scanStatus !== undefined && output.scanStatus !== null
3710
- ? deserializeAws_restJson1ScanStatus(output.scanStatus, context)
3711
- : undefined,
3791
+ scanStatus: output.scanStatus != null ? deserializeAws_restJson1ScanStatus(output.scanStatus, context) : undefined,
3712
3792
  scanType: __expectString(output.scanType),
3713
3793
  };
3714
3794
  };
@@ -3750,7 +3830,7 @@ var deserializeAws_restJson1CvssScoreAdjustmentList = function (output, context)
3750
3830
  };
3751
3831
  var deserializeAws_restJson1CvssScoreDetails = function (output, context) {
3752
3832
  return {
3753
- adjustments: output.adjustments !== undefined && output.adjustments !== null
3833
+ adjustments: output.adjustments != null
3754
3834
  ? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
3755
3835
  : undefined,
3756
3836
  cvssSource: __expectString(output.cvssSource),
@@ -3773,10 +3853,10 @@ var deserializeAws_restJson1CvssScoreList = function (output, context) {
3773
3853
  };
3774
3854
  var deserializeAws_restJson1DateFilter = function (output, context) {
3775
3855
  return {
3776
- endInclusive: output.endInclusive !== undefined && output.endInclusive !== null
3856
+ endInclusive: output.endInclusive != null
3777
3857
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endInclusive)))
3778
3858
  : undefined,
3779
- startInclusive: output.startInclusive !== undefined && output.startInclusive !== null
3859
+ startInclusive: output.startInclusive != null
3780
3860
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startInclusive)))
3781
3861
  : undefined,
3782
3862
  };
@@ -3827,12 +3907,10 @@ var deserializeAws_restJson1Ec2InstanceAggregationResponse = function (output, c
3827
3907
  accountId: __expectString(output.accountId),
3828
3908
  ami: __expectString(output.ami),
3829
3909
  instanceId: __expectString(output.instanceId),
3830
- instanceTags: output.instanceTags !== undefined && output.instanceTags !== null
3831
- ? deserializeAws_restJson1TagMap(output.instanceTags, context)
3832
- : undefined,
3910
+ instanceTags: output.instanceTags != null ? deserializeAws_restJson1TagMap(output.instanceTags, context) : undefined,
3833
3911
  networkFindings: __expectLong(output.networkFindings),
3834
3912
  operatingSystem: __expectString(output.operatingSystem),
3835
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
3913
+ severityCounts: output.severityCounts != null
3836
3914
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
3837
3915
  : undefined,
3838
3916
  };
@@ -3841,16 +3919,19 @@ var deserializeAws_restJson1Ec2Metadata = function (output, context) {
3841
3919
  return {
3842
3920
  amiId: __expectString(output.amiId),
3843
3921
  platform: __expectString(output.platform),
3844
- tags: output.tags !== undefined && output.tags !== null
3845
- ? deserializeAws_restJson1TagMap(output.tags, context)
3922
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3923
+ };
3924
+ };
3925
+ var deserializeAws_restJson1EcrConfigurationState = function (output, context) {
3926
+ return {
3927
+ rescanDurationState: output.rescanDurationState != null
3928
+ ? deserializeAws_restJson1EcrRescanDurationState(output.rescanDurationState, context)
3846
3929
  : undefined,
3847
3930
  };
3848
3931
  };
3849
3932
  var deserializeAws_restJson1EcrContainerImageMetadata = function (output, context) {
3850
3933
  return {
3851
- tags: output.tags !== undefined && output.tags !== null
3852
- ? deserializeAws_restJson1TagList(output.tags, context)
3853
- : undefined,
3934
+ tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
3854
3935
  };
3855
3936
  };
3856
3937
  var deserializeAws_restJson1EcrRepositoryMetadata = function (output, context) {
@@ -3859,12 +3940,19 @@ var deserializeAws_restJson1EcrRepositoryMetadata = function (output, context) {
3859
3940
  scanFrequency: __expectString(output.scanFrequency),
3860
3941
  };
3861
3942
  };
3943
+ var deserializeAws_restJson1EcrRescanDurationState = function (output, context) {
3944
+ return {
3945
+ rescanDuration: __expectString(output.rescanDuration),
3946
+ status: __expectString(output.status),
3947
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
3948
+ };
3949
+ };
3862
3950
  var deserializeAws_restJson1FailedAccount = function (output, context) {
3863
3951
  return {
3864
3952
  accountId: __expectString(output.accountId),
3865
3953
  errorCode: __expectString(output.errorCode),
3866
3954
  errorMessage: __expectString(output.errorMessage),
3867
- resourceStatus: output.resourceStatus !== undefined && output.resourceStatus !== null
3955
+ resourceStatus: output.resourceStatus != null
3868
3956
  ? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
3869
3957
  : undefined,
3870
3958
  status: __expectString(output.status),
@@ -3885,117 +3973,83 @@ var deserializeAws_restJson1Filter = function (output, context) {
3885
3973
  return {
3886
3974
  action: __expectString(output.action),
3887
3975
  arn: __expectString(output.arn),
3888
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3889
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3890
- : undefined,
3891
- criteria: output.criteria !== undefined && output.criteria !== null
3892
- ? deserializeAws_restJson1FilterCriteria(output.criteria, context)
3893
- : undefined,
3976
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3977
+ criteria: output.criteria != null ? deserializeAws_restJson1FilterCriteria(output.criteria, context) : undefined,
3894
3978
  description: __expectString(output.description),
3895
3979
  name: __expectString(output.name),
3896
3980
  ownerId: __expectString(output.ownerId),
3897
3981
  reason: __expectString(output.reason),
3898
- tags: output.tags !== undefined && output.tags !== null
3899
- ? deserializeAws_restJson1TagMap(output.tags, context)
3900
- : undefined,
3901
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3902
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
3903
- : undefined,
3982
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3983
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
3904
3984
  };
3905
3985
  };
3906
3986
  var deserializeAws_restJson1FilterCriteria = function (output, context) {
3907
3987
  return {
3908
- awsAccountId: output.awsAccountId !== undefined && output.awsAccountId !== null
3909
- ? deserializeAws_restJson1StringFilterList(output.awsAccountId, context)
3910
- : undefined,
3911
- componentId: output.componentId !== undefined && output.componentId !== null
3912
- ? deserializeAws_restJson1StringFilterList(output.componentId, context)
3913
- : undefined,
3914
- componentType: output.componentType !== undefined && output.componentType !== null
3988
+ awsAccountId: output.awsAccountId != null ? deserializeAws_restJson1StringFilterList(output.awsAccountId, context) : undefined,
3989
+ componentId: output.componentId != null ? deserializeAws_restJson1StringFilterList(output.componentId, context) : undefined,
3990
+ componentType: output.componentType != null
3915
3991
  ? deserializeAws_restJson1StringFilterList(output.componentType, context)
3916
3992
  : undefined,
3917
- ec2InstanceImageId: output.ec2InstanceImageId !== undefined && output.ec2InstanceImageId !== null
3993
+ ec2InstanceImageId: output.ec2InstanceImageId != null
3918
3994
  ? deserializeAws_restJson1StringFilterList(output.ec2InstanceImageId, context)
3919
3995
  : undefined,
3920
- ec2InstanceSubnetId: output.ec2InstanceSubnetId !== undefined && output.ec2InstanceSubnetId !== null
3996
+ ec2InstanceSubnetId: output.ec2InstanceSubnetId != null
3921
3997
  ? deserializeAws_restJson1StringFilterList(output.ec2InstanceSubnetId, context)
3922
3998
  : undefined,
3923
- ec2InstanceVpcId: output.ec2InstanceVpcId !== undefined && output.ec2InstanceVpcId !== null
3999
+ ec2InstanceVpcId: output.ec2InstanceVpcId != null
3924
4000
  ? deserializeAws_restJson1StringFilterList(output.ec2InstanceVpcId, context)
3925
4001
  : undefined,
3926
- ecrImageArchitecture: output.ecrImageArchitecture !== undefined && output.ecrImageArchitecture !== null
4002
+ ecrImageArchitecture: output.ecrImageArchitecture != null
3927
4003
  ? deserializeAws_restJson1StringFilterList(output.ecrImageArchitecture, context)
3928
4004
  : undefined,
3929
- ecrImageHash: output.ecrImageHash !== undefined && output.ecrImageHash !== null
3930
- ? deserializeAws_restJson1StringFilterList(output.ecrImageHash, context)
3931
- : undefined,
3932
- ecrImagePushedAt: output.ecrImagePushedAt !== undefined && output.ecrImagePushedAt !== null
4005
+ ecrImageHash: output.ecrImageHash != null ? deserializeAws_restJson1StringFilterList(output.ecrImageHash, context) : undefined,
4006
+ ecrImagePushedAt: output.ecrImagePushedAt != null
3933
4007
  ? deserializeAws_restJson1DateFilterList(output.ecrImagePushedAt, context)
3934
4008
  : undefined,
3935
- ecrImageRegistry: output.ecrImageRegistry !== undefined && output.ecrImageRegistry !== null
4009
+ ecrImageRegistry: output.ecrImageRegistry != null
3936
4010
  ? deserializeAws_restJson1StringFilterList(output.ecrImageRegistry, context)
3937
4011
  : undefined,
3938
- ecrImageRepositoryName: output.ecrImageRepositoryName !== undefined && output.ecrImageRepositoryName !== null
4012
+ ecrImageRepositoryName: output.ecrImageRepositoryName != null
3939
4013
  ? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
3940
4014
  : undefined,
3941
- ecrImageTags: output.ecrImageTags !== undefined && output.ecrImageTags !== null
3942
- ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context)
3943
- : undefined,
3944
- findingArn: output.findingArn !== undefined && output.findingArn !== null
3945
- ? deserializeAws_restJson1StringFilterList(output.findingArn, context)
3946
- : undefined,
3947
- findingStatus: output.findingStatus !== undefined && output.findingStatus !== null
4015
+ ecrImageTags: output.ecrImageTags != null ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context) : undefined,
4016
+ findingArn: output.findingArn != null ? deserializeAws_restJson1StringFilterList(output.findingArn, context) : undefined,
4017
+ findingStatus: output.findingStatus != null
3948
4018
  ? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
3949
4019
  : undefined,
3950
- findingType: output.findingType !== undefined && output.findingType !== null
3951
- ? deserializeAws_restJson1StringFilterList(output.findingType, context)
3952
- : undefined,
3953
- firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
4020
+ findingType: output.findingType != null ? deserializeAws_restJson1StringFilterList(output.findingType, context) : undefined,
4021
+ firstObservedAt: output.firstObservedAt != null
3954
4022
  ? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
3955
4023
  : undefined,
3956
- inspectorScore: output.inspectorScore !== undefined && output.inspectorScore !== null
4024
+ inspectorScore: output.inspectorScore != null
3957
4025
  ? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
3958
4026
  : undefined,
3959
- lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
4027
+ lastObservedAt: output.lastObservedAt != null
3960
4028
  ? deserializeAws_restJson1DateFilterList(output.lastObservedAt, context)
3961
4029
  : undefined,
3962
- networkProtocol: output.networkProtocol !== undefined && output.networkProtocol !== null
4030
+ networkProtocol: output.networkProtocol != null
3963
4031
  ? deserializeAws_restJson1StringFilterList(output.networkProtocol, context)
3964
4032
  : undefined,
3965
- portRange: output.portRange !== undefined && output.portRange !== null
3966
- ? deserializeAws_restJson1PortRangeFilterList(output.portRange, context)
3967
- : undefined,
3968
- relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
4033
+ portRange: output.portRange != null ? deserializeAws_restJson1PortRangeFilterList(output.portRange, context) : undefined,
4034
+ relatedVulnerabilities: output.relatedVulnerabilities != null
3969
4035
  ? deserializeAws_restJson1StringFilterList(output.relatedVulnerabilities, context)
3970
4036
  : undefined,
3971
- resourceId: output.resourceId !== undefined && output.resourceId !== null
3972
- ? deserializeAws_restJson1StringFilterList(output.resourceId, context)
3973
- : undefined,
3974
- resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
3975
- ? deserializeAws_restJson1MapFilterList(output.resourceTags, context)
3976
- : undefined,
3977
- resourceType: output.resourceType !== undefined && output.resourceType !== null
3978
- ? deserializeAws_restJson1StringFilterList(output.resourceType, context)
3979
- : undefined,
3980
- severity: output.severity !== undefined && output.severity !== null
3981
- ? deserializeAws_restJson1StringFilterList(output.severity, context)
3982
- : undefined,
3983
- title: output.title !== undefined && output.title !== null
3984
- ? deserializeAws_restJson1StringFilterList(output.title, context)
3985
- : undefined,
3986
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3987
- ? deserializeAws_restJson1DateFilterList(output.updatedAt, context)
3988
- : undefined,
3989
- vendorSeverity: output.vendorSeverity !== undefined && output.vendorSeverity !== null
4037
+ resourceId: output.resourceId != null ? deserializeAws_restJson1StringFilterList(output.resourceId, context) : undefined,
4038
+ resourceTags: output.resourceTags != null ? deserializeAws_restJson1MapFilterList(output.resourceTags, context) : undefined,
4039
+ resourceType: output.resourceType != null ? deserializeAws_restJson1StringFilterList(output.resourceType, context) : undefined,
4040
+ severity: output.severity != null ? deserializeAws_restJson1StringFilterList(output.severity, context) : undefined,
4041
+ title: output.title != null ? deserializeAws_restJson1StringFilterList(output.title, context) : undefined,
4042
+ updatedAt: output.updatedAt != null ? deserializeAws_restJson1DateFilterList(output.updatedAt, context) : undefined,
4043
+ vendorSeverity: output.vendorSeverity != null
3990
4044
  ? deserializeAws_restJson1StringFilterList(output.vendorSeverity, context)
3991
4045
  : undefined,
3992
- vulnerabilityId: output.vulnerabilityId !== undefined && output.vulnerabilityId !== null
4046
+ vulnerabilityId: output.vulnerabilityId != null
3993
4047
  ? deserializeAws_restJson1StringFilterList(output.vulnerabilityId, context)
3994
4048
  : undefined,
3995
- vulnerabilitySource: output.vulnerabilitySource !== undefined && output.vulnerabilitySource !== null
4049
+ vulnerabilitySource: output.vulnerabilitySource != null
3996
4050
  ? deserializeAws_restJson1StringFilterList(output.vulnerabilitySource, context)
3997
4051
  : undefined,
3998
- vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
4052
+ vulnerablePackages: output.vulnerablePackages != null
3999
4053
  ? deserializeAws_restJson1PackageFilterList(output.vulnerablePackages, context)
4000
4054
  : undefined,
4001
4055
  };
@@ -4016,35 +4070,29 @@ var deserializeAws_restJson1Finding = function (output, context) {
4016
4070
  awsAccountId: __expectString(output.awsAccountId),
4017
4071
  description: __expectString(output.description),
4018
4072
  findingArn: __expectString(output.findingArn),
4019
- firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
4073
+ firstObservedAt: output.firstObservedAt != null
4020
4074
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
4021
4075
  : undefined,
4022
4076
  inspectorScore: __limitedParseDouble(output.inspectorScore),
4023
- inspectorScoreDetails: output.inspectorScoreDetails !== undefined && output.inspectorScoreDetails !== null
4077
+ inspectorScoreDetails: output.inspectorScoreDetails != null
4024
4078
  ? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
4025
4079
  : undefined,
4026
- lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
4080
+ lastObservedAt: output.lastObservedAt != null
4027
4081
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastObservedAt)))
4028
4082
  : undefined,
4029
- networkReachabilityDetails: output.networkReachabilityDetails !== undefined && output.networkReachabilityDetails !== null
4083
+ networkReachabilityDetails: output.networkReachabilityDetails != null
4030
4084
  ? deserializeAws_restJson1NetworkReachabilityDetails(output.networkReachabilityDetails, context)
4031
4085
  : undefined,
4032
- packageVulnerabilityDetails: output.packageVulnerabilityDetails !== undefined && output.packageVulnerabilityDetails !== null
4086
+ packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
4033
4087
  ? deserializeAws_restJson1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
4034
4088
  : undefined,
4035
- remediation: output.remediation !== undefined && output.remediation !== null
4036
- ? deserializeAws_restJson1Remediation(output.remediation, context)
4037
- : undefined,
4038
- resources: output.resources !== undefined && output.resources !== null
4039
- ? deserializeAws_restJson1ResourceList(output.resources, context)
4040
- : undefined,
4089
+ remediation: output.remediation != null ? deserializeAws_restJson1Remediation(output.remediation, context) : undefined,
4090
+ resources: output.resources != null ? deserializeAws_restJson1ResourceList(output.resources, context) : undefined,
4041
4091
  severity: __expectString(output.severity),
4042
4092
  status: __expectString(output.status),
4043
4093
  title: __expectString(output.title),
4044
4094
  type: __expectString(output.type),
4045
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4046
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
4047
- : undefined,
4095
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
4048
4096
  };
4049
4097
  };
4050
4098
  var deserializeAws_restJson1FindingList = function (output, context) {
@@ -4061,7 +4109,7 @@ var deserializeAws_restJson1FindingList = function (output, context) {
4061
4109
  var deserializeAws_restJson1FindingTypeAggregationResponse = function (output, context) {
4062
4110
  return {
4063
4111
  accountId: __expectString(output.accountId),
4064
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
4112
+ severityCounts: output.severityCounts != null
4065
4113
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
4066
4114
  : undefined,
4067
4115
  };
@@ -4069,7 +4117,7 @@ var deserializeAws_restJson1FindingTypeAggregationResponse = function (output, c
4069
4117
  var deserializeAws_restJson1FreeTrialAccountInfo = function (output, context) {
4070
4118
  return {
4071
4119
  accountId: __expectString(output.accountId),
4072
- freeTrialInfo: output.freeTrialInfo !== undefined && output.freeTrialInfo !== null
4120
+ freeTrialInfo: output.freeTrialInfo != null
4073
4121
  ? deserializeAws_restJson1FreeTrialInfoList(output.freeTrialInfo, context)
4074
4122
  : undefined,
4075
4123
  };
@@ -4087,12 +4135,8 @@ var deserializeAws_restJson1FreeTrialAccountInfoList = function (output, context
4087
4135
  };
4088
4136
  var deserializeAws_restJson1FreeTrialInfo = function (output, context) {
4089
4137
  return {
4090
- end: output.end !== undefined && output.end !== null
4091
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.end)))
4092
- : undefined,
4093
- start: output.start !== undefined && output.start !== null
4094
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.start)))
4095
- : undefined,
4138
+ end: output.end != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.end))) : undefined,
4139
+ start: output.start != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.start))) : undefined,
4096
4140
  status: __expectString(output.status),
4097
4141
  type: __expectString(output.type),
4098
4142
  };
@@ -4132,7 +4176,7 @@ var deserializeAws_restJson1ImageLayerAggregationResponse = function (output, co
4132
4176
  layerHash: __expectString(output.layerHash),
4133
4177
  repository: __expectString(output.repository),
4134
4178
  resourceId: __expectString(output.resourceId),
4135
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
4179
+ severityCounts: output.severityCounts != null
4136
4180
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
4137
4181
  : undefined,
4138
4182
  };
@@ -4150,9 +4194,7 @@ var deserializeAws_restJson1ImageTagList = function (output, context) {
4150
4194
  };
4151
4195
  var deserializeAws_restJson1InspectorScoreDetails = function (output, context) {
4152
4196
  return {
4153
- adjustedCvss: output.adjustedCvss !== undefined && output.adjustedCvss !== null
4154
- ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context)
4155
- : undefined,
4197
+ adjustedCvss: output.adjustedCvss != null ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context) : undefined,
4156
4198
  };
4157
4199
  };
4158
4200
  var deserializeAws_restJson1IpV4AddressList = function (output, context) {
@@ -4200,9 +4242,7 @@ var deserializeAws_restJson1Member = function (output, context) {
4200
4242
  accountId: __expectString(output.accountId),
4201
4243
  delegatedAdminAccountId: __expectString(output.delegatedAdminAccountId),
4202
4244
  relationshipStatus: __expectString(output.relationshipStatus),
4203
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4204
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
4205
- : undefined,
4245
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
4206
4246
  };
4207
4247
  };
4208
4248
  var deserializeAws_restJson1MemberList = function (output, context) {
@@ -4218,19 +4258,13 @@ var deserializeAws_restJson1MemberList = function (output, context) {
4218
4258
  };
4219
4259
  var deserializeAws_restJson1NetworkPath = function (output, context) {
4220
4260
  return {
4221
- steps: output.steps !== undefined && output.steps !== null
4222
- ? deserializeAws_restJson1StepList(output.steps, context)
4223
- : undefined,
4261
+ steps: output.steps != null ? deserializeAws_restJson1StepList(output.steps, context) : undefined,
4224
4262
  };
4225
4263
  };
4226
4264
  var deserializeAws_restJson1NetworkReachabilityDetails = function (output, context) {
4227
4265
  return {
4228
- networkPath: output.networkPath !== undefined && output.networkPath !== null
4229
- ? deserializeAws_restJson1NetworkPath(output.networkPath, context)
4230
- : undefined,
4231
- openPortRange: output.openPortRange !== undefined && output.openPortRange !== null
4232
- ? deserializeAws_restJson1PortRange(output.openPortRange, context)
4233
- : undefined,
4266
+ networkPath: output.networkPath != null ? deserializeAws_restJson1NetworkPath(output.networkPath, context) : undefined,
4267
+ openPortRange: output.openPortRange != null ? deserializeAws_restJson1PortRange(output.openPortRange, context) : undefined,
4234
4268
  protocol: __expectString(output.protocol),
4235
4269
  };
4236
4270
  };
@@ -4266,31 +4300,21 @@ var deserializeAws_restJson1PackageAggregationResponse = function (output, conte
4266
4300
  return {
4267
4301
  accountId: __expectString(output.accountId),
4268
4302
  packageName: __expectString(output.packageName),
4269
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
4303
+ severityCounts: output.severityCounts != null
4270
4304
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
4271
4305
  : undefined,
4272
4306
  };
4273
4307
  };
4274
4308
  var deserializeAws_restJson1PackageFilter = function (output, context) {
4275
4309
  return {
4276
- architecture: output.architecture !== undefined && output.architecture !== null
4277
- ? deserializeAws_restJson1StringFilter(output.architecture, context)
4278
- : undefined,
4279
- epoch: output.epoch !== undefined && output.epoch !== null
4280
- ? deserializeAws_restJson1NumberFilter(output.epoch, context)
4281
- : undefined,
4282
- name: output.name !== undefined && output.name !== null
4283
- ? deserializeAws_restJson1StringFilter(output.name, context)
4284
- : undefined,
4285
- release: output.release !== undefined && output.release !== null
4286
- ? deserializeAws_restJson1StringFilter(output.release, context)
4287
- : undefined,
4288
- sourceLayerHash: output.sourceLayerHash !== undefined && output.sourceLayerHash !== null
4310
+ architecture: output.architecture != null ? deserializeAws_restJson1StringFilter(output.architecture, context) : undefined,
4311
+ epoch: output.epoch != null ? deserializeAws_restJson1NumberFilter(output.epoch, context) : undefined,
4312
+ name: output.name != null ? deserializeAws_restJson1StringFilter(output.name, context) : undefined,
4313
+ release: output.release != null ? deserializeAws_restJson1StringFilter(output.release, context) : undefined,
4314
+ sourceLayerHash: output.sourceLayerHash != null
4289
4315
  ? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
4290
4316
  : undefined,
4291
- version: output.version !== undefined && output.version !== null
4292
- ? deserializeAws_restJson1StringFilter(output.version, context)
4293
- : undefined,
4317
+ version: output.version != null ? deserializeAws_restJson1StringFilter(output.version, context) : undefined,
4294
4318
  };
4295
4319
  };
4296
4320
  var deserializeAws_restJson1PackageFilterList = function (output, context) {
@@ -4306,26 +4330,24 @@ var deserializeAws_restJson1PackageFilterList = function (output, context) {
4306
4330
  };
4307
4331
  var deserializeAws_restJson1PackageVulnerabilityDetails = function (output, context) {
4308
4332
  return {
4309
- cvss: output.cvss !== undefined && output.cvss !== null
4310
- ? deserializeAws_restJson1CvssScoreList(output.cvss, context)
4311
- : undefined,
4312
- referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
4333
+ cvss: output.cvss != null ? deserializeAws_restJson1CvssScoreList(output.cvss, context) : undefined,
4334
+ referenceUrls: output.referenceUrls != null
4313
4335
  ? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
4314
4336
  : undefined,
4315
- relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
4337
+ relatedVulnerabilities: output.relatedVulnerabilities != null
4316
4338
  ? deserializeAws_restJson1VulnerabilityIdList(output.relatedVulnerabilities, context)
4317
4339
  : undefined,
4318
4340
  source: __expectString(output.source),
4319
4341
  sourceUrl: __expectString(output.sourceUrl),
4320
- vendorCreatedAt: output.vendorCreatedAt !== undefined && output.vendorCreatedAt !== null
4342
+ vendorCreatedAt: output.vendorCreatedAt != null
4321
4343
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorCreatedAt)))
4322
4344
  : undefined,
4323
4345
  vendorSeverity: __expectString(output.vendorSeverity),
4324
- vendorUpdatedAt: output.vendorUpdatedAt !== undefined && output.vendorUpdatedAt !== null
4346
+ vendorUpdatedAt: output.vendorUpdatedAt != null
4325
4347
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
4326
4348
  : undefined,
4327
4349
  vulnerabilityId: __expectString(output.vulnerabilityId),
4328
- vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
4350
+ vulnerablePackages: output.vulnerablePackages != null
4329
4351
  ? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
4330
4352
  : undefined,
4331
4353
  };
@@ -4378,7 +4400,7 @@ var deserializeAws_restJson1Recommendation = function (output, context) {
4378
4400
  };
4379
4401
  var deserializeAws_restJson1Remediation = function (output, context) {
4380
4402
  return {
4381
- recommendation: output.recommendation !== undefined && output.recommendation !== null
4403
+ recommendation: output.recommendation != null
4382
4404
  ? deserializeAws_restJson1Recommendation(output.recommendation, context)
4383
4405
  : undefined,
4384
4406
  };
@@ -4388,31 +4410,27 @@ var deserializeAws_restJson1RepositoryAggregationResponse = function (output, co
4388
4410
  accountId: __expectString(output.accountId),
4389
4411
  affectedImages: __expectLong(output.affectedImages),
4390
4412
  repository: __expectString(output.repository),
4391
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
4413
+ severityCounts: output.severityCounts != null
4392
4414
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
4393
4415
  : undefined,
4394
4416
  };
4395
4417
  };
4396
4418
  var deserializeAws_restJson1Resource = function (output, context) {
4397
4419
  return {
4398
- details: output.details !== undefined && output.details !== null
4399
- ? deserializeAws_restJson1ResourceDetails(output.details, context)
4400
- : undefined,
4420
+ details: output.details != null ? deserializeAws_restJson1ResourceDetails(output.details, context) : undefined,
4401
4421
  id: __expectString(output.id),
4402
4422
  partition: __expectString(output.partition),
4403
4423
  region: __expectString(output.region),
4404
- tags: output.tags !== undefined && output.tags !== null
4405
- ? deserializeAws_restJson1TagMap(output.tags, context)
4406
- : undefined,
4424
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4407
4425
  type: __expectString(output.type),
4408
4426
  };
4409
4427
  };
4410
4428
  var deserializeAws_restJson1ResourceDetails = function (output, context) {
4411
4429
  return {
4412
- awsEc2Instance: output.awsEc2Instance !== undefined && output.awsEc2Instance !== null
4430
+ awsEc2Instance: output.awsEc2Instance != null
4413
4431
  ? deserializeAws_restJson1AwsEc2InstanceDetails(output.awsEc2Instance, context)
4414
4432
  : undefined,
4415
- awsEcrContainerImage: output.awsEcrContainerImage !== undefined && output.awsEcrContainerImage !== null
4433
+ awsEcrContainerImage: output.awsEcrContainerImage != null
4416
4434
  ? deserializeAws_restJson1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
4417
4435
  : undefined,
4418
4436
  };
@@ -4430,21 +4448,17 @@ var deserializeAws_restJson1ResourceList = function (output, context) {
4430
4448
  };
4431
4449
  var deserializeAws_restJson1ResourceScanMetadata = function (output, context) {
4432
4450
  return {
4433
- ec2: output.ec2 !== undefined && output.ec2 !== null
4434
- ? deserializeAws_restJson1Ec2Metadata(output.ec2, context)
4435
- : undefined,
4436
- ecrImage: output.ecrImage !== undefined && output.ecrImage !== null
4437
- ? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context)
4438
- : undefined,
4439
- ecrRepository: output.ecrRepository !== undefined && output.ecrRepository !== null
4451
+ ec2: output.ec2 != null ? deserializeAws_restJson1Ec2Metadata(output.ec2, context) : undefined,
4452
+ ecrImage: output.ecrImage != null ? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context) : undefined,
4453
+ ecrRepository: output.ecrRepository != null
4440
4454
  ? deserializeAws_restJson1EcrRepositoryMetadata(output.ecrRepository, context)
4441
4455
  : undefined,
4442
4456
  };
4443
4457
  };
4444
4458
  var deserializeAws_restJson1ResourceState = function (output, context) {
4445
4459
  return {
4446
- ec2: output.ec2 !== undefined && output.ec2 !== null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
4447
- ecr: output.ecr !== undefined && output.ecr !== null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
4460
+ ec2: output.ec2 != null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
4461
+ ecr: output.ecr != null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
4448
4462
  };
4449
4463
  };
4450
4464
  var deserializeAws_restJson1ResourceStatus = function (output, context) {
@@ -4543,7 +4557,7 @@ var deserializeAws_restJson1TagMap = function (output, context) {
4543
4557
  var deserializeAws_restJson1TitleAggregationResponse = function (output, context) {
4544
4558
  return {
4545
4559
  accountId: __expectString(output.accountId),
4546
- severityCounts: output.severityCounts !== undefined && output.severityCounts !== null
4560
+ severityCounts: output.severityCounts != null
4547
4561
  ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
4548
4562
  : undefined,
4549
4563
  title: __expectString(output.title),
@@ -4572,9 +4586,7 @@ var deserializeAws_restJson1UsageList = function (output, context) {
4572
4586
  var deserializeAws_restJson1UsageTotal = function (output, context) {
4573
4587
  return {
4574
4588
  accountId: __expectString(output.accountId),
4575
- usage: output.usage !== undefined && output.usage !== null
4576
- ? deserializeAws_restJson1UsageList(output.usage, context)
4577
- : undefined,
4589
+ usage: output.usage != null ? deserializeAws_restJson1UsageList(output.usage, context) : undefined,
4578
4590
  };
4579
4591
  };
4580
4592
  var deserializeAws_restJson1UsageTotalList = function (output, context) {
@@ -4678,6 +4690,9 @@ var loadRestJsonErrorCode = function (output, data) {
4678
4690
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4679
4691
  var sanitizeErrorCode = function (rawValue) {
4680
4692
  var cleanValue = rawValue;
4693
+ if (typeof cleanValue === "number") {
4694
+ cleanValue = cleanValue.toString();
4695
+ }
4681
4696
  if (cleanValue.indexOf(":") >= 0) {
4682
4697
  cleanValue = cleanValue.split(":")[0];
4683
4698
  }