@aws-sdk/client-inspector2 3.121.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +277 -460
- package/dist-es/protocols/Aws_restJson1.js +208 -391
- package/package.json +26 -26
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
119
|
-
input.filterCriteria !== null && {
|
|
116
|
+
body = JSON.stringify(__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
|
|
118
|
+
})), (input.name != null && { name: input.name })), (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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 !==
|
|
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,7 @@ 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
|
|
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 })));
|
|
332
321
|
return [2, new __HttpRequest({
|
|
333
322
|
protocol: protocol,
|
|
334
323
|
hostname: hostname,
|
|
@@ -376,7 +365,7 @@ export var serializeAws_restJson1GetFindingsReportStatusCommand = function (inpu
|
|
|
376
365
|
"content-type": "application/json",
|
|
377
366
|
};
|
|
378
367
|
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
|
|
368
|
+
body = JSON.stringify(__assign({}, (input.reportId != null && { reportId: input.reportId })));
|
|
380
369
|
return [2, new __HttpRequest({
|
|
381
370
|
protocol: protocol,
|
|
382
371
|
hostname: hostname,
|
|
@@ -400,7 +389,7 @@ export var serializeAws_restJson1GetMemberCommand = function (input, context) {
|
|
|
400
389
|
"content-type": "application/json",
|
|
401
390
|
};
|
|
402
391
|
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
|
|
392
|
+
body = JSON.stringify(__assign({}, (input.accountId != null && { accountId: input.accountId })));
|
|
404
393
|
return [2, new __HttpRequest({
|
|
405
394
|
protocol: protocol,
|
|
406
395
|
hostname: hostname,
|
|
@@ -424,7 +413,7 @@ export var serializeAws_restJson1ListAccountPermissionsCommand = function (input
|
|
|
424
413
|
"content-type": "application/json",
|
|
425
414
|
};
|
|
426
415
|
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
|
|
416
|
+
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
417
|
return [2, new __HttpRequest({
|
|
429
418
|
protocol: protocol,
|
|
430
419
|
hostname: hostname,
|
|
@@ -448,10 +437,9 @@ export var serializeAws_restJson1ListCoverageCommand = function (input, context)
|
|
|
448
437
|
"content-type": "application/json",
|
|
449
438
|
};
|
|
450
439
|
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
|
|
452
|
-
input.filterCriteria !== null && {
|
|
440
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria != null && {
|
|
453
441
|
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
454
|
-
})), (input.maxResults
|
|
442
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
455
443
|
return [2, new __HttpRequest({
|
|
456
444
|
protocol: protocol,
|
|
457
445
|
hostname: hostname,
|
|
@@ -475,10 +463,9 @@ export var serializeAws_restJson1ListCoverageStatisticsCommand = function (input
|
|
|
475
463
|
"content-type": "application/json",
|
|
476
464
|
};
|
|
477
465
|
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
|
|
479
|
-
input.filterCriteria !== null && {
|
|
466
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filterCriteria != null && {
|
|
480
467
|
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
481
|
-
})), (input.groupBy
|
|
468
|
+
})), (input.groupBy != null && { groupBy: input.groupBy })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
482
469
|
return [2, new __HttpRequest({
|
|
483
470
|
protocol: protocol,
|
|
484
471
|
hostname: hostname,
|
|
@@ -502,7 +489,7 @@ export var serializeAws_restJson1ListDelegatedAdminAccountsCommand = function (i
|
|
|
502
489
|
"content-type": "application/json",
|
|
503
490
|
};
|
|
504
491
|
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
|
|
492
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
506
493
|
return [2, new __HttpRequest({
|
|
507
494
|
protocol: protocol,
|
|
508
495
|
hostname: hostname,
|
|
@@ -526,8 +513,7 @@ export var serializeAws_restJson1ListFiltersCommand = function (input, context)
|
|
|
526
513
|
"content-type": "application/json",
|
|
527
514
|
};
|
|
528
515
|
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
|
|
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 })));
|
|
516
|
+
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
517
|
return [2, new __HttpRequest({
|
|
532
518
|
protocol: protocol,
|
|
533
519
|
hostname: hostname,
|
|
@@ -551,12 +537,9 @@ export var serializeAws_restJson1ListFindingAggregationsCommand = function (inpu
|
|
|
551
537
|
"content-type": "application/json",
|
|
552
538
|
};
|
|
553
539
|
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
|
|
555
|
-
input.accountIds !== null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) })), (input.aggregationRequest !== undefined &&
|
|
556
|
-
input.aggregationRequest !== null && {
|
|
540
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) })), (input.aggregationRequest != null && {
|
|
557
541
|
aggregationRequest: serializeAws_restJson1AggregationRequest(input.aggregationRequest, context),
|
|
558
|
-
})), (input.aggregationType
|
|
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 })));
|
|
542
|
+
})), (input.aggregationType != null && { aggregationType: input.aggregationType })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
560
543
|
return [2, new __HttpRequest({
|
|
561
544
|
protocol: protocol,
|
|
562
545
|
hostname: hostname,
|
|
@@ -580,11 +563,11 @@ export var serializeAws_restJson1ListFindingsCommand = function (input, context)
|
|
|
580
563
|
"content-type": "application/json",
|
|
581
564
|
};
|
|
582
565
|
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
|
|
584
|
-
input.filterCriteria !== null && {
|
|
566
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filterCriteria != null && {
|
|
585
567
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
586
|
-
})), (input.maxResults
|
|
587
|
-
|
|
568
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortCriteria != null && {
|
|
569
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
|
|
570
|
+
})));
|
|
588
571
|
return [2, new __HttpRequest({
|
|
589
572
|
protocol: protocol,
|
|
590
573
|
hostname: hostname,
|
|
@@ -608,8 +591,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
|
|
|
608
591
|
"content-type": "application/json",
|
|
609
592
|
};
|
|
610
593
|
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
|
|
612
|
-
input.onlyAssociated !== null && { onlyAssociated: input.onlyAssociated })));
|
|
594
|
+
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
595
|
return [2, new __HttpRequest({
|
|
614
596
|
protocol: protocol,
|
|
615
597
|
hostname: hostname,
|
|
@@ -664,8 +646,9 @@ export var serializeAws_restJson1ListUsageTotalsCommand = function (input, conte
|
|
|
664
646
|
"content-type": "application/json",
|
|
665
647
|
};
|
|
666
648
|
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
|
|
668
|
-
|
|
649
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds != null && {
|
|
650
|
+
accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context),
|
|
651
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
669
652
|
return [2, new __HttpRequest({
|
|
670
653
|
protocol: protocol,
|
|
671
654
|
hostname: hostname,
|
|
@@ -699,7 +682,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
699
682
|
else {
|
|
700
683
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
701
684
|
}
|
|
702
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
685
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
703
686
|
return [2, new __HttpRequest({
|
|
704
687
|
protocol: protocol,
|
|
705
688
|
hostname: hostname,
|
|
@@ -756,10 +739,9 @@ export var serializeAws_restJson1UpdateFilterCommand = function (input, context)
|
|
|
756
739
|
"content-type": "application/json",
|
|
757
740
|
};
|
|
758
741
|
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
|
|
760
|
-
input.filterCriteria !== null && {
|
|
742
|
+
body = JSON.stringify(__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
743
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
762
|
-
})), (input.name
|
|
744
|
+
})), (input.name != null && { name: input.name })));
|
|
763
745
|
return [2, new __HttpRequest({
|
|
764
746
|
protocol: protocol,
|
|
765
747
|
hostname: hostname,
|
|
@@ -783,8 +765,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
|
|
|
783
765
|
"content-type": "application/json",
|
|
784
766
|
};
|
|
785
767
|
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
|
|
787
|
-
input.autoEnable !== null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) })));
|
|
768
|
+
body = JSON.stringify(__assign({}, (input.autoEnable != null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) })));
|
|
788
769
|
return [2, new __HttpRequest({
|
|
789
770
|
protocol: protocol,
|
|
790
771
|
hostname: hostname,
|
|
@@ -3106,7 +3087,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3106
3087
|
});
|
|
3107
3088
|
}); };
|
|
3108
3089
|
var serializeAws_restJson1AccountAggregation = function (input, context) {
|
|
3109
|
-
return __assign(__assign(__assign(__assign({}, (input.findingType
|
|
3090
|
+
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
3091
|
};
|
|
3111
3092
|
var serializeAws_restJson1AccountIdSet = function (input, context) {
|
|
3112
3093
|
return input
|
|
@@ -3143,56 +3124,43 @@ var serializeAws_restJson1AggregationRequest = function (input, context) {
|
|
|
3143
3124
|
});
|
|
3144
3125
|
};
|
|
3145
3126
|
var serializeAws_restJson1AmiAggregation = function (input, context) {
|
|
3146
|
-
return __assign(__assign(__assign({}, (input.amis
|
|
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 }));
|
|
3127
|
+
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
3128
|
};
|
|
3149
3129
|
var serializeAws_restJson1AutoEnable = function (input, context) {
|
|
3150
|
-
return __assign(__assign({}, (input.ec2
|
|
3130
|
+
return __assign(__assign({}, (input.ec2 != null && { ec2: input.ec2 })), (input.ecr != null && { ecr: input.ecr }));
|
|
3151
3131
|
};
|
|
3152
3132
|
var serializeAws_restJson1AwsEcrContainerAggregation = function (input, context) {
|
|
3153
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.architectures
|
|
3154
|
-
input.architectures !== null && {
|
|
3133
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.architectures != null && {
|
|
3155
3134
|
architectures: serializeAws_restJson1StringFilterList(input.architectures, context),
|
|
3156
|
-
})), (input.imageShas
|
|
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 && {
|
|
3135
|
+
})), (input.imageShas != null && { imageShas: serializeAws_restJson1StringFilterList(input.imageShas, context) })), (input.imageTags != null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) })), (input.repositories != null && {
|
|
3160
3136
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
3161
|
-
})), (input.resourceIds
|
|
3162
|
-
input.resourceIds !== null && {
|
|
3137
|
+
})), (input.resourceIds != null && {
|
|
3163
3138
|
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
3164
|
-
})), (input.sortBy
|
|
3139
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3165
3140
|
};
|
|
3166
3141
|
var serializeAws_restJson1CoverageFilterCriteria = function (input, context) {
|
|
3167
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountId
|
|
3168
|
-
input.accountId !== null && {
|
|
3142
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountId != null && {
|
|
3169
3143
|
accountId: serializeAws_restJson1CoverageStringFilterList(input.accountId, context),
|
|
3170
|
-
})), (input.ec2InstanceTags
|
|
3171
|
-
input.ec2InstanceTags !== null && {
|
|
3144
|
+
})), (input.ec2InstanceTags != null && {
|
|
3172
3145
|
ec2InstanceTags: serializeAws_restJson1CoverageMapFilterList(input.ec2InstanceTags, context),
|
|
3173
|
-
})), (input.ecrImageTags
|
|
3174
|
-
input.ecrImageTags !== null && {
|
|
3146
|
+
})), (input.ecrImageTags != null && {
|
|
3175
3147
|
ecrImageTags: serializeAws_restJson1CoverageStringFilterList(input.ecrImageTags, context),
|
|
3176
|
-
})), (input.ecrRepositoryName
|
|
3177
|
-
input.ecrRepositoryName !== null && {
|
|
3148
|
+
})), (input.ecrRepositoryName != null && {
|
|
3178
3149
|
ecrRepositoryName: serializeAws_restJson1CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
3179
|
-
})), (input.resourceId
|
|
3180
|
-
input.resourceId !== null && {
|
|
3150
|
+
})), (input.resourceId != null && {
|
|
3181
3151
|
resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
|
|
3182
|
-
})), (input.resourceType
|
|
3183
|
-
input.resourceType !== null && {
|
|
3152
|
+
})), (input.resourceType != null && {
|
|
3184
3153
|
resourceType: serializeAws_restJson1CoverageStringFilterList(input.resourceType, context),
|
|
3185
|
-
})), (input.scanStatusCode
|
|
3186
|
-
input.scanStatusCode !== null && {
|
|
3154
|
+
})), (input.scanStatusCode != null && {
|
|
3187
3155
|
scanStatusCode: serializeAws_restJson1CoverageStringFilterList(input.scanStatusCode, context),
|
|
3188
|
-
})), (input.scanStatusReason
|
|
3189
|
-
input.scanStatusReason !== null && {
|
|
3156
|
+
})), (input.scanStatusReason != null && {
|
|
3190
3157
|
scanStatusReason: serializeAws_restJson1CoverageStringFilterList(input.scanStatusReason, context),
|
|
3191
|
-
})), (input.scanType
|
|
3192
|
-
|
|
3158
|
+
})), (input.scanType != null && {
|
|
3159
|
+
scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context),
|
|
3160
|
+
}));
|
|
3193
3161
|
};
|
|
3194
3162
|
var serializeAws_restJson1CoverageMapFilter = function (input, context) {
|
|
3195
|
-
return __assign(__assign(__assign({}, (input.comparison
|
|
3163
|
+
return __assign(__assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
3196
3164
|
};
|
|
3197
3165
|
var serializeAws_restJson1CoverageMapFilterList = function (input, context) {
|
|
3198
3166
|
return input
|
|
@@ -3205,7 +3173,7 @@ var serializeAws_restJson1CoverageMapFilterList = function (input, context) {
|
|
|
3205
3173
|
});
|
|
3206
3174
|
};
|
|
3207
3175
|
var serializeAws_restJson1CoverageStringFilter = function (input, context) {
|
|
3208
|
-
return __assign(__assign({}, (input.comparison
|
|
3176
|
+
return __assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.value != null && { value: input.value }));
|
|
3209
3177
|
};
|
|
3210
3178
|
var serializeAws_restJson1CoverageStringFilterList = function (input, context) {
|
|
3211
3179
|
return input
|
|
@@ -3218,9 +3186,7 @@ var serializeAws_restJson1CoverageStringFilterList = function (input, context) {
|
|
|
3218
3186
|
});
|
|
3219
3187
|
};
|
|
3220
3188
|
var serializeAws_restJson1DateFilter = function (input, context) {
|
|
3221
|
-
return __assign(__assign({}, (input.endInclusive
|
|
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) }));
|
|
3189
|
+
return __assign(__assign({}, (input.endInclusive != null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) })), (input.startInclusive != null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }));
|
|
3224
3190
|
};
|
|
3225
3191
|
var serializeAws_restJson1DateFilterList = function (input, context) {
|
|
3226
3192
|
return input
|
|
@@ -3233,7 +3199,7 @@ var serializeAws_restJson1DateFilterList = function (input, context) {
|
|
|
3233
3199
|
});
|
|
3234
3200
|
};
|
|
3235
3201
|
var serializeAws_restJson1Destination = function (input, context) {
|
|
3236
|
-
return __assign(__assign(__assign({}, (input.bucketName
|
|
3202
|
+
return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.keyPrefix != null && { keyPrefix: input.keyPrefix })), (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }));
|
|
3237
3203
|
};
|
|
3238
3204
|
var serializeAws_restJson1DisableResourceTypeList = function (input, context) {
|
|
3239
3205
|
return input
|
|
@@ -3246,17 +3212,13 @@ var serializeAws_restJson1DisableResourceTypeList = function (input, context) {
|
|
|
3246
3212
|
});
|
|
3247
3213
|
};
|
|
3248
3214
|
var serializeAws_restJson1Ec2InstanceAggregation = function (input, context) {
|
|
3249
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amis
|
|
3250
|
-
input.amis !== null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) })), (input.instanceIds !== undefined &&
|
|
3251
|
-
input.instanceIds !== null && {
|
|
3215
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) })), (input.instanceIds != null && {
|
|
3252
3216
|
instanceIds: serializeAws_restJson1StringFilterList(input.instanceIds, context),
|
|
3253
|
-
})), (input.instanceTags
|
|
3254
|
-
input.instanceTags !== null && {
|
|
3217
|
+
})), (input.instanceTags != null && {
|
|
3255
3218
|
instanceTags: serializeAws_restJson1MapFilterList(input.instanceTags, context),
|
|
3256
|
-
})), (input.operatingSystems
|
|
3257
|
-
input.operatingSystems !== null && {
|
|
3219
|
+
})), (input.operatingSystems != null && {
|
|
3258
3220
|
operatingSystems: serializeAws_restJson1StringFilterList(input.operatingSystems, context),
|
|
3259
|
-
})), (input.sortBy
|
|
3221
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3260
3222
|
};
|
|
3261
3223
|
var serializeAws_restJson1EnableResourceTypeList = function (input, context) {
|
|
3262
3224
|
return input
|
|
@@ -3279,106 +3241,72 @@ var serializeAws_restJson1FilterArnList = function (input, context) {
|
|
|
3279
3241
|
});
|
|
3280
3242
|
};
|
|
3281
3243
|
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
|
|
3283
|
-
input.awsAccountId !== null && {
|
|
3244
|
+
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
3245
|
awsAccountId: serializeAws_restJson1StringFilterList(input.awsAccountId, context),
|
|
3285
|
-
})), (input.componentId
|
|
3286
|
-
input.componentId !== null && {
|
|
3246
|
+
})), (input.componentId != null && {
|
|
3287
3247
|
componentId: serializeAws_restJson1StringFilterList(input.componentId, context),
|
|
3288
|
-
})), (input.componentType
|
|
3289
|
-
input.componentType !== null && {
|
|
3248
|
+
})), (input.componentType != null && {
|
|
3290
3249
|
componentType: serializeAws_restJson1StringFilterList(input.componentType, context),
|
|
3291
|
-
})), (input.ec2InstanceImageId
|
|
3292
|
-
input.ec2InstanceImageId !== null && {
|
|
3250
|
+
})), (input.ec2InstanceImageId != null && {
|
|
3293
3251
|
ec2InstanceImageId: serializeAws_restJson1StringFilterList(input.ec2InstanceImageId, context),
|
|
3294
|
-
})), (input.ec2InstanceSubnetId
|
|
3295
|
-
input.ec2InstanceSubnetId !== null && {
|
|
3252
|
+
})), (input.ec2InstanceSubnetId != null && {
|
|
3296
3253
|
ec2InstanceSubnetId: serializeAws_restJson1StringFilterList(input.ec2InstanceSubnetId, context),
|
|
3297
|
-
})), (input.ec2InstanceVpcId
|
|
3298
|
-
input.ec2InstanceVpcId !== null && {
|
|
3254
|
+
})), (input.ec2InstanceVpcId != null && {
|
|
3299
3255
|
ec2InstanceVpcId: serializeAws_restJson1StringFilterList(input.ec2InstanceVpcId, context),
|
|
3300
|
-
})), (input.ecrImageArchitecture
|
|
3301
|
-
input.ecrImageArchitecture !== null && {
|
|
3256
|
+
})), (input.ecrImageArchitecture != null && {
|
|
3302
3257
|
ecrImageArchitecture: serializeAws_restJson1StringFilterList(input.ecrImageArchitecture, context),
|
|
3303
|
-
})), (input.ecrImageHash
|
|
3304
|
-
input.ecrImageHash !== null && {
|
|
3258
|
+
})), (input.ecrImageHash != null && {
|
|
3305
3259
|
ecrImageHash: serializeAws_restJson1StringFilterList(input.ecrImageHash, context),
|
|
3306
|
-
})), (input.ecrImagePushedAt
|
|
3307
|
-
input.ecrImagePushedAt !== null && {
|
|
3260
|
+
})), (input.ecrImagePushedAt != null && {
|
|
3308
3261
|
ecrImagePushedAt: serializeAws_restJson1DateFilterList(input.ecrImagePushedAt, context),
|
|
3309
|
-
})), (input.ecrImageRegistry
|
|
3310
|
-
input.ecrImageRegistry !== null && {
|
|
3262
|
+
})), (input.ecrImageRegistry != null && {
|
|
3311
3263
|
ecrImageRegistry: serializeAws_restJson1StringFilterList(input.ecrImageRegistry, context),
|
|
3312
|
-
})), (input.ecrImageRepositoryName
|
|
3313
|
-
input.ecrImageRepositoryName !== null && {
|
|
3264
|
+
})), (input.ecrImageRepositoryName != null && {
|
|
3314
3265
|
ecrImageRepositoryName: serializeAws_restJson1StringFilterList(input.ecrImageRepositoryName, context),
|
|
3315
|
-
})), (input.ecrImageTags
|
|
3316
|
-
input.ecrImageTags !== null && {
|
|
3266
|
+
})), (input.ecrImageTags != null && {
|
|
3317
3267
|
ecrImageTags: serializeAws_restJson1StringFilterList(input.ecrImageTags, context),
|
|
3318
|
-
})), (input.findingArn
|
|
3319
|
-
input.findingArn !== null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) })), (input.findingStatus !== undefined &&
|
|
3320
|
-
input.findingStatus !== null && {
|
|
3268
|
+
})), (input.findingArn != null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) })), (input.findingStatus != null && {
|
|
3321
3269
|
findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
|
|
3322
|
-
})), (input.findingType
|
|
3323
|
-
input.findingType !== null && {
|
|
3270
|
+
})), (input.findingType != null && {
|
|
3324
3271
|
findingType: serializeAws_restJson1StringFilterList(input.findingType, context),
|
|
3325
|
-
})), (input.firstObservedAt
|
|
3326
|
-
input.firstObservedAt !== null && {
|
|
3272
|
+
})), (input.firstObservedAt != null && {
|
|
3327
3273
|
firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
|
|
3328
|
-
})), (input.inspectorScore
|
|
3329
|
-
input.inspectorScore !== null && {
|
|
3274
|
+
})), (input.inspectorScore != null && {
|
|
3330
3275
|
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
3331
|
-
})), (input.lastObservedAt
|
|
3332
|
-
input.lastObservedAt !== null && {
|
|
3276
|
+
})), (input.lastObservedAt != null && {
|
|
3333
3277
|
lastObservedAt: serializeAws_restJson1DateFilterList(input.lastObservedAt, context),
|
|
3334
|
-
})), (input.networkProtocol
|
|
3335
|
-
input.networkProtocol !== null && {
|
|
3278
|
+
})), (input.networkProtocol != null && {
|
|
3336
3279
|
networkProtocol: serializeAws_restJson1StringFilterList(input.networkProtocol, context),
|
|
3337
|
-
})), (input.portRange
|
|
3338
|
-
input.portRange !== null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) })), (input.relatedVulnerabilities !== undefined &&
|
|
3339
|
-
input.relatedVulnerabilities !== null && {
|
|
3280
|
+
})), (input.portRange != null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) })), (input.relatedVulnerabilities != null && {
|
|
3340
3281
|
relatedVulnerabilities: serializeAws_restJson1StringFilterList(input.relatedVulnerabilities, context),
|
|
3341
|
-
})), (input.resourceId
|
|
3342
|
-
input.resourceId !== null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) })), (input.resourceTags !== undefined &&
|
|
3343
|
-
input.resourceTags !== null && {
|
|
3282
|
+
})), (input.resourceId != null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) })), (input.resourceTags != null && {
|
|
3344
3283
|
resourceTags: serializeAws_restJson1MapFilterList(input.resourceTags, context),
|
|
3345
|
-
})), (input.resourceType
|
|
3346
|
-
input.resourceType !== null && {
|
|
3284
|
+
})), (input.resourceType != null && {
|
|
3347
3285
|
resourceType: serializeAws_restJson1StringFilterList(input.resourceType, context),
|
|
3348
|
-
})), (input.severity
|
|
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 && {
|
|
3286
|
+
})), (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
3287
|
vendorSeverity: serializeAws_restJson1StringFilterList(input.vendorSeverity, context),
|
|
3354
|
-
})), (input.vulnerabilityId
|
|
3355
|
-
input.vulnerabilityId !== null && {
|
|
3288
|
+
})), (input.vulnerabilityId != null && {
|
|
3356
3289
|
vulnerabilityId: serializeAws_restJson1StringFilterList(input.vulnerabilityId, context),
|
|
3357
|
-
})), (input.vulnerabilitySource
|
|
3358
|
-
input.vulnerabilitySource !== null && {
|
|
3290
|
+
})), (input.vulnerabilitySource != null && {
|
|
3359
3291
|
vulnerabilitySource: serializeAws_restJson1StringFilterList(input.vulnerabilitySource, context),
|
|
3360
|
-
})), (input.vulnerablePackages
|
|
3361
|
-
input.vulnerablePackages !== null && {
|
|
3292
|
+
})), (input.vulnerablePackages != null && {
|
|
3362
3293
|
vulnerablePackages: serializeAws_restJson1PackageFilterList(input.vulnerablePackages, context),
|
|
3363
3294
|
}));
|
|
3364
3295
|
};
|
|
3365
3296
|
var serializeAws_restJson1FindingTypeAggregation = function (input, context) {
|
|
3366
|
-
return __assign(__assign(__assign(__assign({}, (input.findingType
|
|
3297
|
+
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
3298
|
};
|
|
3368
3299
|
var serializeAws_restJson1ImageLayerAggregation = function (input, context) {
|
|
3369
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.layerHashes
|
|
3370
|
-
input.layerHashes !== null && {
|
|
3300
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.layerHashes != null && {
|
|
3371
3301
|
layerHashes: serializeAws_restJson1StringFilterList(input.layerHashes, context),
|
|
3372
|
-
})), (input.repositories
|
|
3373
|
-
input.repositories !== null && {
|
|
3302
|
+
})), (input.repositories != null && {
|
|
3374
3303
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
3375
|
-
})), (input.resourceIds
|
|
3376
|
-
input.resourceIds !== null && {
|
|
3304
|
+
})), (input.resourceIds != null && {
|
|
3377
3305
|
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
3378
|
-
})), (input.sortBy
|
|
3306
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3379
3307
|
};
|
|
3380
3308
|
var serializeAws_restJson1MapFilter = function (input, context) {
|
|
3381
|
-
return __assign(__assign(__assign({}, (input.comparison
|
|
3309
|
+
return __assign(__assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
3382
3310
|
};
|
|
3383
3311
|
var serializeAws_restJson1MapFilterList = function (input, context) {
|
|
3384
3312
|
return input
|
|
@@ -3401,9 +3329,7 @@ var serializeAws_restJson1MeteringAccountIdList = function (input, context) {
|
|
|
3401
3329
|
});
|
|
3402
3330
|
};
|
|
3403
3331
|
var serializeAws_restJson1NumberFilter = function (input, context) {
|
|
3404
|
-
return __assign(__assign({}, (input.lowerInclusive
|
|
3405
|
-
input.lowerInclusive !== null && { lowerInclusive: __serializeFloat(input.lowerInclusive) })), (input.upperInclusive !== undefined &&
|
|
3406
|
-
input.upperInclusive !== null && { upperInclusive: __serializeFloat(input.upperInclusive) }));
|
|
3332
|
+
return __assign(__assign({}, (input.lowerInclusive != null && { lowerInclusive: __serializeFloat(input.lowerInclusive) })), (input.upperInclusive != null && { upperInclusive: __serializeFloat(input.upperInclusive) }));
|
|
3407
3333
|
};
|
|
3408
3334
|
var serializeAws_restJson1NumberFilterList = function (input, context) {
|
|
3409
3335
|
return input
|
|
@@ -3416,21 +3342,16 @@ var serializeAws_restJson1NumberFilterList = function (input, context) {
|
|
|
3416
3342
|
});
|
|
3417
3343
|
};
|
|
3418
3344
|
var serializeAws_restJson1PackageAggregation = function (input, context) {
|
|
3419
|
-
return __assign(__assign(__assign({}, (input.packageNames
|
|
3420
|
-
input.packageNames !== null && {
|
|
3345
|
+
return __assign(__assign(__assign({}, (input.packageNames != null && {
|
|
3421
3346
|
packageNames: serializeAws_restJson1StringFilterList(input.packageNames, context),
|
|
3422
|
-
})), (input.sortBy
|
|
3347
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3423
3348
|
};
|
|
3424
3349
|
var serializeAws_restJson1PackageFilter = function (input, context) {
|
|
3425
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.architecture
|
|
3426
|
-
|
|
3427
|
-
|
|
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 && {
|
|
3350
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.architecture != null && {
|
|
3351
|
+
architecture: serializeAws_restJson1StringFilter(input.architecture, context),
|
|
3352
|
+
})), (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
3353
|
sourceLayerHash: serializeAws_restJson1StringFilter(input.sourceLayerHash, context),
|
|
3432
|
-
})), (input.version
|
|
3433
|
-
input.version !== null && { version: serializeAws_restJson1StringFilter(input.version, context) }));
|
|
3354
|
+
})), (input.version != null && { version: serializeAws_restJson1StringFilter(input.version, context) }));
|
|
3434
3355
|
};
|
|
3435
3356
|
var serializeAws_restJson1PackageFilterList = function (input, context) {
|
|
3436
3357
|
return input
|
|
@@ -3443,8 +3364,7 @@ var serializeAws_restJson1PackageFilterList = function (input, context) {
|
|
|
3443
3364
|
});
|
|
3444
3365
|
};
|
|
3445
3366
|
var serializeAws_restJson1PortRangeFilter = function (input, context) {
|
|
3446
|
-
return __assign(__assign({}, (input.beginInclusive
|
|
3447
|
-
input.beginInclusive !== null && { beginInclusive: input.beginInclusive })), (input.endInclusive !== undefined && input.endInclusive !== null && { endInclusive: input.endInclusive }));
|
|
3367
|
+
return __assign(__assign({}, (input.beginInclusive != null && { beginInclusive: input.beginInclusive })), (input.endInclusive != null && { endInclusive: input.endInclusive }));
|
|
3448
3368
|
};
|
|
3449
3369
|
var serializeAws_restJson1PortRangeFilterList = function (input, context) {
|
|
3450
3370
|
return input
|
|
@@ -3457,16 +3377,15 @@ var serializeAws_restJson1PortRangeFilterList = function (input, context) {
|
|
|
3457
3377
|
});
|
|
3458
3378
|
};
|
|
3459
3379
|
var serializeAws_restJson1RepositoryAggregation = function (input, context) {
|
|
3460
|
-
return __assign(__assign(__assign({}, (input.repositories
|
|
3461
|
-
input.repositories !== null && {
|
|
3380
|
+
return __assign(__assign(__assign({}, (input.repositories != null && {
|
|
3462
3381
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
3463
|
-
})), (input.sortBy
|
|
3382
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3464
3383
|
};
|
|
3465
3384
|
var serializeAws_restJson1SortCriteria = function (input, context) {
|
|
3466
|
-
return __assign(__assign({}, (input.field
|
|
3385
|
+
return __assign(__assign({}, (input.field != null && { field: input.field })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3467
3386
|
};
|
|
3468
3387
|
var serializeAws_restJson1StringFilter = function (input, context) {
|
|
3469
|
-
return __assign(__assign({}, (input.comparison
|
|
3388
|
+
return __assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.value != null && { value: input.value }));
|
|
3470
3389
|
};
|
|
3471
3390
|
var serializeAws_restJson1StringFilterList = function (input, context) {
|
|
3472
3391
|
return input
|
|
@@ -3489,9 +3408,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
3489
3408
|
}, {});
|
|
3490
3409
|
};
|
|
3491
3410
|
var serializeAws_restJson1TitleAggregation = function (input, context) {
|
|
3492
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.resourceType
|
|
3493
|
-
input.titles !== null && { titles: serializeAws_restJson1StringFilterList(input.titles, context) })), (input.vulnerabilityIds !== undefined &&
|
|
3494
|
-
input.vulnerabilityIds !== null && {
|
|
3411
|
+
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
3412
|
vulnerabilityIds: serializeAws_restJson1StringFilterList(input.vulnerabilityIds, context),
|
|
3496
3413
|
}));
|
|
3497
3414
|
};
|
|
@@ -3508,7 +3425,7 @@ var serializeAws_restJson1UsageAccountIdList = function (input, context) {
|
|
|
3508
3425
|
var deserializeAws_restJson1Account = function (output, context) {
|
|
3509
3426
|
return {
|
|
3510
3427
|
accountId: __expectString(output.accountId),
|
|
3511
|
-
resourceStatus: output.resourceStatus
|
|
3428
|
+
resourceStatus: output.resourceStatus != null
|
|
3512
3429
|
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
3513
3430
|
: undefined,
|
|
3514
3431
|
status: __expectString(output.status),
|
|
@@ -3517,7 +3434,7 @@ var deserializeAws_restJson1Account = function (output, context) {
|
|
|
3517
3434
|
var deserializeAws_restJson1AccountAggregationResponse = function (output, context) {
|
|
3518
3435
|
return {
|
|
3519
3436
|
accountId: __expectString(output.accountId),
|
|
3520
|
-
severityCounts: output.severityCounts
|
|
3437
|
+
severityCounts: output.severityCounts != null
|
|
3521
3438
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3522
3439
|
: undefined,
|
|
3523
3440
|
};
|
|
@@ -3536,12 +3453,8 @@ var deserializeAws_restJson1AccountList = function (output, context) {
|
|
|
3536
3453
|
var deserializeAws_restJson1AccountState = function (output, context) {
|
|
3537
3454
|
return {
|
|
3538
3455
|
accountId: __expectString(output.accountId),
|
|
3539
|
-
resourceState: output.resourceState
|
|
3540
|
-
|
|
3541
|
-
: undefined,
|
|
3542
|
-
state: output.state !== undefined && output.state !== null
|
|
3543
|
-
? deserializeAws_restJson1State(output.state, context)
|
|
3544
|
-
: undefined,
|
|
3456
|
+
resourceState: output.resourceState != null ? deserializeAws_restJson1ResourceState(output.resourceState, context) : undefined,
|
|
3457
|
+
state: output.state != null ? deserializeAws_restJson1State(output.state, context) : undefined,
|
|
3545
3458
|
};
|
|
3546
3459
|
};
|
|
3547
3460
|
var deserializeAws_restJson1AccountStateList = function (output, context) {
|
|
@@ -3619,7 +3532,7 @@ var deserializeAws_restJson1AmiAggregationResponse = function (output, context)
|
|
|
3619
3532
|
accountId: __expectString(output.accountId),
|
|
3620
3533
|
affectedInstances: __expectLong(output.affectedInstances),
|
|
3621
3534
|
ami: __expectString(output.ami),
|
|
3622
|
-
severityCounts: output.severityCounts
|
|
3535
|
+
severityCounts: output.severityCounts != null
|
|
3623
3536
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3624
3537
|
: undefined,
|
|
3625
3538
|
};
|
|
@@ -3634,16 +3547,10 @@ var deserializeAws_restJson1AwsEc2InstanceDetails = function (output, context) {
|
|
|
3634
3547
|
return {
|
|
3635
3548
|
iamInstanceProfileArn: __expectString(output.iamInstanceProfileArn),
|
|
3636
3549
|
imageId: __expectString(output.imageId),
|
|
3637
|
-
ipV4Addresses: output.ipV4Addresses
|
|
3638
|
-
|
|
3639
|
-
: undefined,
|
|
3640
|
-
ipV6Addresses: output.ipV6Addresses !== undefined && output.ipV6Addresses !== null
|
|
3641
|
-
? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context)
|
|
3642
|
-
: undefined,
|
|
3550
|
+
ipV4Addresses: output.ipV4Addresses != null ? deserializeAws_restJson1IpV4AddressList(output.ipV4Addresses, context) : undefined,
|
|
3551
|
+
ipV6Addresses: output.ipV6Addresses != null ? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context) : undefined,
|
|
3643
3552
|
keyName: __expectString(output.keyName),
|
|
3644
|
-
launchedAt: output.launchedAt
|
|
3645
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.launchedAt)))
|
|
3646
|
-
: undefined,
|
|
3553
|
+
launchedAt: output.launchedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.launchedAt))) : undefined,
|
|
3647
3554
|
platform: __expectString(output.platform),
|
|
3648
3555
|
subnetId: __expectString(output.subnetId),
|
|
3649
3556
|
type: __expectString(output.type),
|
|
@@ -3655,12 +3562,10 @@ var deserializeAws_restJson1AwsEcrContainerAggregationResponse = function (outpu
|
|
|
3655
3562
|
accountId: __expectString(output.accountId),
|
|
3656
3563
|
architecture: __expectString(output.architecture),
|
|
3657
3564
|
imageSha: __expectString(output.imageSha),
|
|
3658
|
-
imageTags: output.imageTags
|
|
3659
|
-
? deserializeAws_restJson1StringList(output.imageTags, context)
|
|
3660
|
-
: undefined,
|
|
3565
|
+
imageTags: output.imageTags != null ? deserializeAws_restJson1StringList(output.imageTags, context) : undefined,
|
|
3661
3566
|
repository: __expectString(output.repository),
|
|
3662
3567
|
resourceId: __expectString(output.resourceId),
|
|
3663
|
-
severityCounts: output.severityCounts
|
|
3568
|
+
severityCounts: output.severityCounts != null
|
|
3664
3569
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3665
3570
|
: undefined,
|
|
3666
3571
|
};
|
|
@@ -3670,13 +3575,9 @@ var deserializeAws_restJson1AwsEcrContainerImageDetails = function (output, cont
|
|
|
3670
3575
|
architecture: __expectString(output.architecture),
|
|
3671
3576
|
author: __expectString(output.author),
|
|
3672
3577
|
imageHash: __expectString(output.imageHash),
|
|
3673
|
-
imageTags: output.imageTags
|
|
3674
|
-
? deserializeAws_restJson1ImageTagList(output.imageTags, context)
|
|
3675
|
-
: undefined,
|
|
3578
|
+
imageTags: output.imageTags != null ? deserializeAws_restJson1ImageTagList(output.imageTags, context) : undefined,
|
|
3676
3579
|
platform: __expectString(output.platform),
|
|
3677
|
-
pushedAt: output.pushedAt
|
|
3678
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt)))
|
|
3679
|
-
: undefined,
|
|
3580
|
+
pushedAt: output.pushedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt))) : undefined,
|
|
3680
3581
|
registry: __expectString(output.registry),
|
|
3681
3582
|
repositoryName: __expectString(output.repositoryName),
|
|
3682
3583
|
};
|
|
@@ -3702,13 +3603,11 @@ var deserializeAws_restJson1CoveredResource = function (output, context) {
|
|
|
3702
3603
|
return {
|
|
3703
3604
|
accountId: __expectString(output.accountId),
|
|
3704
3605
|
resourceId: __expectString(output.resourceId),
|
|
3705
|
-
resourceMetadata: output.resourceMetadata
|
|
3606
|
+
resourceMetadata: output.resourceMetadata != null
|
|
3706
3607
|
? deserializeAws_restJson1ResourceScanMetadata(output.resourceMetadata, context)
|
|
3707
3608
|
: undefined,
|
|
3708
3609
|
resourceType: __expectString(output.resourceType),
|
|
3709
|
-
scanStatus: output.scanStatus
|
|
3710
|
-
? deserializeAws_restJson1ScanStatus(output.scanStatus, context)
|
|
3711
|
-
: undefined,
|
|
3610
|
+
scanStatus: output.scanStatus != null ? deserializeAws_restJson1ScanStatus(output.scanStatus, context) : undefined,
|
|
3712
3611
|
scanType: __expectString(output.scanType),
|
|
3713
3612
|
};
|
|
3714
3613
|
};
|
|
@@ -3750,7 +3649,7 @@ var deserializeAws_restJson1CvssScoreAdjustmentList = function (output, context)
|
|
|
3750
3649
|
};
|
|
3751
3650
|
var deserializeAws_restJson1CvssScoreDetails = function (output, context) {
|
|
3752
3651
|
return {
|
|
3753
|
-
adjustments: output.adjustments
|
|
3652
|
+
adjustments: output.adjustments != null
|
|
3754
3653
|
? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
|
|
3755
3654
|
: undefined,
|
|
3756
3655
|
cvssSource: __expectString(output.cvssSource),
|
|
@@ -3773,10 +3672,10 @@ var deserializeAws_restJson1CvssScoreList = function (output, context) {
|
|
|
3773
3672
|
};
|
|
3774
3673
|
var deserializeAws_restJson1DateFilter = function (output, context) {
|
|
3775
3674
|
return {
|
|
3776
|
-
endInclusive: output.endInclusive
|
|
3675
|
+
endInclusive: output.endInclusive != null
|
|
3777
3676
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endInclusive)))
|
|
3778
3677
|
: undefined,
|
|
3779
|
-
startInclusive: output.startInclusive
|
|
3678
|
+
startInclusive: output.startInclusive != null
|
|
3780
3679
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startInclusive)))
|
|
3781
3680
|
: undefined,
|
|
3782
3681
|
};
|
|
@@ -3827,12 +3726,10 @@ var deserializeAws_restJson1Ec2InstanceAggregationResponse = function (output, c
|
|
|
3827
3726
|
accountId: __expectString(output.accountId),
|
|
3828
3727
|
ami: __expectString(output.ami),
|
|
3829
3728
|
instanceId: __expectString(output.instanceId),
|
|
3830
|
-
instanceTags: output.instanceTags
|
|
3831
|
-
? deserializeAws_restJson1TagMap(output.instanceTags, context)
|
|
3832
|
-
: undefined,
|
|
3729
|
+
instanceTags: output.instanceTags != null ? deserializeAws_restJson1TagMap(output.instanceTags, context) : undefined,
|
|
3833
3730
|
networkFindings: __expectLong(output.networkFindings),
|
|
3834
3731
|
operatingSystem: __expectString(output.operatingSystem),
|
|
3835
|
-
severityCounts: output.severityCounts
|
|
3732
|
+
severityCounts: output.severityCounts != null
|
|
3836
3733
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3837
3734
|
: undefined,
|
|
3838
3735
|
};
|
|
@@ -3841,16 +3738,12 @@ var deserializeAws_restJson1Ec2Metadata = function (output, context) {
|
|
|
3841
3738
|
return {
|
|
3842
3739
|
amiId: __expectString(output.amiId),
|
|
3843
3740
|
platform: __expectString(output.platform),
|
|
3844
|
-
tags: output.tags
|
|
3845
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3846
|
-
: undefined,
|
|
3741
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3847
3742
|
};
|
|
3848
3743
|
};
|
|
3849
3744
|
var deserializeAws_restJson1EcrContainerImageMetadata = function (output, context) {
|
|
3850
3745
|
return {
|
|
3851
|
-
tags: output.tags
|
|
3852
|
-
? deserializeAws_restJson1TagList(output.tags, context)
|
|
3853
|
-
: undefined,
|
|
3746
|
+
tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
|
|
3854
3747
|
};
|
|
3855
3748
|
};
|
|
3856
3749
|
var deserializeAws_restJson1EcrRepositoryMetadata = function (output, context) {
|
|
@@ -3864,7 +3757,7 @@ var deserializeAws_restJson1FailedAccount = function (output, context) {
|
|
|
3864
3757
|
accountId: __expectString(output.accountId),
|
|
3865
3758
|
errorCode: __expectString(output.errorCode),
|
|
3866
3759
|
errorMessage: __expectString(output.errorMessage),
|
|
3867
|
-
resourceStatus: output.resourceStatus
|
|
3760
|
+
resourceStatus: output.resourceStatus != null
|
|
3868
3761
|
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
3869
3762
|
: undefined,
|
|
3870
3763
|
status: __expectString(output.status),
|
|
@@ -3885,117 +3778,83 @@ var deserializeAws_restJson1Filter = function (output, context) {
|
|
|
3885
3778
|
return {
|
|
3886
3779
|
action: __expectString(output.action),
|
|
3887
3780
|
arn: __expectString(output.arn),
|
|
3888
|
-
createdAt: output.createdAt
|
|
3889
|
-
|
|
3890
|
-
: undefined,
|
|
3891
|
-
criteria: output.criteria !== undefined && output.criteria !== null
|
|
3892
|
-
? deserializeAws_restJson1FilterCriteria(output.criteria, context)
|
|
3893
|
-
: undefined,
|
|
3781
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3782
|
+
criteria: output.criteria != null ? deserializeAws_restJson1FilterCriteria(output.criteria, context) : undefined,
|
|
3894
3783
|
description: __expectString(output.description),
|
|
3895
3784
|
name: __expectString(output.name),
|
|
3896
3785
|
ownerId: __expectString(output.ownerId),
|
|
3897
3786
|
reason: __expectString(output.reason),
|
|
3898
|
-
tags: output.tags
|
|
3899
|
-
|
|
3900
|
-
: undefined,
|
|
3901
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3902
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
3903
|
-
: undefined,
|
|
3787
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3788
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3904
3789
|
};
|
|
3905
3790
|
};
|
|
3906
3791
|
var deserializeAws_restJson1FilterCriteria = function (output, context) {
|
|
3907
3792
|
return {
|
|
3908
|
-
awsAccountId: output.awsAccountId
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
componentId: output.componentId !== undefined && output.componentId !== null
|
|
3912
|
-
? deserializeAws_restJson1StringFilterList(output.componentId, context)
|
|
3913
|
-
: undefined,
|
|
3914
|
-
componentType: output.componentType !== undefined && output.componentType !== null
|
|
3793
|
+
awsAccountId: output.awsAccountId != null ? deserializeAws_restJson1StringFilterList(output.awsAccountId, context) : undefined,
|
|
3794
|
+
componentId: output.componentId != null ? deserializeAws_restJson1StringFilterList(output.componentId, context) : undefined,
|
|
3795
|
+
componentType: output.componentType != null
|
|
3915
3796
|
? deserializeAws_restJson1StringFilterList(output.componentType, context)
|
|
3916
3797
|
: undefined,
|
|
3917
|
-
ec2InstanceImageId: output.ec2InstanceImageId
|
|
3798
|
+
ec2InstanceImageId: output.ec2InstanceImageId != null
|
|
3918
3799
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceImageId, context)
|
|
3919
3800
|
: undefined,
|
|
3920
|
-
ec2InstanceSubnetId: output.ec2InstanceSubnetId
|
|
3801
|
+
ec2InstanceSubnetId: output.ec2InstanceSubnetId != null
|
|
3921
3802
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceSubnetId, context)
|
|
3922
3803
|
: undefined,
|
|
3923
|
-
ec2InstanceVpcId: output.ec2InstanceVpcId
|
|
3804
|
+
ec2InstanceVpcId: output.ec2InstanceVpcId != null
|
|
3924
3805
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceVpcId, context)
|
|
3925
3806
|
: undefined,
|
|
3926
|
-
ecrImageArchitecture: output.ecrImageArchitecture
|
|
3807
|
+
ecrImageArchitecture: output.ecrImageArchitecture != null
|
|
3927
3808
|
? deserializeAws_restJson1StringFilterList(output.ecrImageArchitecture, context)
|
|
3928
3809
|
: undefined,
|
|
3929
|
-
ecrImageHash: output.ecrImageHash
|
|
3930
|
-
|
|
3931
|
-
: undefined,
|
|
3932
|
-
ecrImagePushedAt: output.ecrImagePushedAt !== undefined && output.ecrImagePushedAt !== null
|
|
3810
|
+
ecrImageHash: output.ecrImageHash != null ? deserializeAws_restJson1StringFilterList(output.ecrImageHash, context) : undefined,
|
|
3811
|
+
ecrImagePushedAt: output.ecrImagePushedAt != null
|
|
3933
3812
|
? deserializeAws_restJson1DateFilterList(output.ecrImagePushedAt, context)
|
|
3934
3813
|
: undefined,
|
|
3935
|
-
ecrImageRegistry: output.ecrImageRegistry
|
|
3814
|
+
ecrImageRegistry: output.ecrImageRegistry != null
|
|
3936
3815
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRegistry, context)
|
|
3937
3816
|
: undefined,
|
|
3938
|
-
ecrImageRepositoryName: output.ecrImageRepositoryName
|
|
3817
|
+
ecrImageRepositoryName: output.ecrImageRepositoryName != null
|
|
3939
3818
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
|
|
3940
3819
|
: undefined,
|
|
3941
|
-
ecrImageTags: output.ecrImageTags
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
findingArn: output.findingArn !== undefined && output.findingArn !== null
|
|
3945
|
-
? deserializeAws_restJson1StringFilterList(output.findingArn, context)
|
|
3946
|
-
: undefined,
|
|
3947
|
-
findingStatus: output.findingStatus !== undefined && output.findingStatus !== null
|
|
3820
|
+
ecrImageTags: output.ecrImageTags != null ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context) : undefined,
|
|
3821
|
+
findingArn: output.findingArn != null ? deserializeAws_restJson1StringFilterList(output.findingArn, context) : undefined,
|
|
3822
|
+
findingStatus: output.findingStatus != null
|
|
3948
3823
|
? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
|
|
3949
3824
|
: undefined,
|
|
3950
|
-
findingType: output.findingType
|
|
3951
|
-
|
|
3952
|
-
: undefined,
|
|
3953
|
-
firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
|
|
3825
|
+
findingType: output.findingType != null ? deserializeAws_restJson1StringFilterList(output.findingType, context) : undefined,
|
|
3826
|
+
firstObservedAt: output.firstObservedAt != null
|
|
3954
3827
|
? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
|
|
3955
3828
|
: undefined,
|
|
3956
|
-
inspectorScore: output.inspectorScore
|
|
3829
|
+
inspectorScore: output.inspectorScore != null
|
|
3957
3830
|
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3958
3831
|
: undefined,
|
|
3959
|
-
lastObservedAt: output.lastObservedAt
|
|
3832
|
+
lastObservedAt: output.lastObservedAt != null
|
|
3960
3833
|
? deserializeAws_restJson1DateFilterList(output.lastObservedAt, context)
|
|
3961
3834
|
: undefined,
|
|
3962
|
-
networkProtocol: output.networkProtocol
|
|
3835
|
+
networkProtocol: output.networkProtocol != null
|
|
3963
3836
|
? deserializeAws_restJson1StringFilterList(output.networkProtocol, context)
|
|
3964
3837
|
: undefined,
|
|
3965
|
-
portRange: output.portRange
|
|
3966
|
-
|
|
3967
|
-
: undefined,
|
|
3968
|
-
relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
|
|
3838
|
+
portRange: output.portRange != null ? deserializeAws_restJson1PortRangeFilterList(output.portRange, context) : undefined,
|
|
3839
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3969
3840
|
? deserializeAws_restJson1StringFilterList(output.relatedVulnerabilities, context)
|
|
3970
3841
|
: undefined,
|
|
3971
|
-
resourceId: output.resourceId
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
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
|
|
3842
|
+
resourceId: output.resourceId != null ? deserializeAws_restJson1StringFilterList(output.resourceId, context) : undefined,
|
|
3843
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1MapFilterList(output.resourceTags, context) : undefined,
|
|
3844
|
+
resourceType: output.resourceType != null ? deserializeAws_restJson1StringFilterList(output.resourceType, context) : undefined,
|
|
3845
|
+
severity: output.severity != null ? deserializeAws_restJson1StringFilterList(output.severity, context) : undefined,
|
|
3846
|
+
title: output.title != null ? deserializeAws_restJson1StringFilterList(output.title, context) : undefined,
|
|
3847
|
+
updatedAt: output.updatedAt != null ? deserializeAws_restJson1DateFilterList(output.updatedAt, context) : undefined,
|
|
3848
|
+
vendorSeverity: output.vendorSeverity != null
|
|
3990
3849
|
? deserializeAws_restJson1StringFilterList(output.vendorSeverity, context)
|
|
3991
3850
|
: undefined,
|
|
3992
|
-
vulnerabilityId: output.vulnerabilityId
|
|
3851
|
+
vulnerabilityId: output.vulnerabilityId != null
|
|
3993
3852
|
? deserializeAws_restJson1StringFilterList(output.vulnerabilityId, context)
|
|
3994
3853
|
: undefined,
|
|
3995
|
-
vulnerabilitySource: output.vulnerabilitySource
|
|
3854
|
+
vulnerabilitySource: output.vulnerabilitySource != null
|
|
3996
3855
|
? deserializeAws_restJson1StringFilterList(output.vulnerabilitySource, context)
|
|
3997
3856
|
: undefined,
|
|
3998
|
-
vulnerablePackages: output.vulnerablePackages
|
|
3857
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
3999
3858
|
? deserializeAws_restJson1PackageFilterList(output.vulnerablePackages, context)
|
|
4000
3859
|
: undefined,
|
|
4001
3860
|
};
|
|
@@ -4016,35 +3875,29 @@ var deserializeAws_restJson1Finding = function (output, context) {
|
|
|
4016
3875
|
awsAccountId: __expectString(output.awsAccountId),
|
|
4017
3876
|
description: __expectString(output.description),
|
|
4018
3877
|
findingArn: __expectString(output.findingArn),
|
|
4019
|
-
firstObservedAt: output.firstObservedAt
|
|
3878
|
+
firstObservedAt: output.firstObservedAt != null
|
|
4020
3879
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
|
|
4021
3880
|
: undefined,
|
|
4022
3881
|
inspectorScore: __limitedParseDouble(output.inspectorScore),
|
|
4023
|
-
inspectorScoreDetails: output.inspectorScoreDetails
|
|
3882
|
+
inspectorScoreDetails: output.inspectorScoreDetails != null
|
|
4024
3883
|
? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
|
|
4025
3884
|
: undefined,
|
|
4026
|
-
lastObservedAt: output.lastObservedAt
|
|
3885
|
+
lastObservedAt: output.lastObservedAt != null
|
|
4027
3886
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastObservedAt)))
|
|
4028
3887
|
: undefined,
|
|
4029
|
-
networkReachabilityDetails: output.networkReachabilityDetails
|
|
3888
|
+
networkReachabilityDetails: output.networkReachabilityDetails != null
|
|
4030
3889
|
? deserializeAws_restJson1NetworkReachabilityDetails(output.networkReachabilityDetails, context)
|
|
4031
3890
|
: undefined,
|
|
4032
|
-
packageVulnerabilityDetails: output.packageVulnerabilityDetails
|
|
3891
|
+
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
4033
3892
|
? deserializeAws_restJson1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
4034
3893
|
: undefined,
|
|
4035
|
-
remediation: output.remediation
|
|
4036
|
-
|
|
4037
|
-
: undefined,
|
|
4038
|
-
resources: output.resources !== undefined && output.resources !== null
|
|
4039
|
-
? deserializeAws_restJson1ResourceList(output.resources, context)
|
|
4040
|
-
: undefined,
|
|
3894
|
+
remediation: output.remediation != null ? deserializeAws_restJson1Remediation(output.remediation, context) : undefined,
|
|
3895
|
+
resources: output.resources != null ? deserializeAws_restJson1ResourceList(output.resources, context) : undefined,
|
|
4041
3896
|
severity: __expectString(output.severity),
|
|
4042
3897
|
status: __expectString(output.status),
|
|
4043
3898
|
title: __expectString(output.title),
|
|
4044
3899
|
type: __expectString(output.type),
|
|
4045
|
-
updatedAt: output.updatedAt
|
|
4046
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
4047
|
-
: undefined,
|
|
3900
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
4048
3901
|
};
|
|
4049
3902
|
};
|
|
4050
3903
|
var deserializeAws_restJson1FindingList = function (output, context) {
|
|
@@ -4061,7 +3914,7 @@ var deserializeAws_restJson1FindingList = function (output, context) {
|
|
|
4061
3914
|
var deserializeAws_restJson1FindingTypeAggregationResponse = function (output, context) {
|
|
4062
3915
|
return {
|
|
4063
3916
|
accountId: __expectString(output.accountId),
|
|
4064
|
-
severityCounts: output.severityCounts
|
|
3917
|
+
severityCounts: output.severityCounts != null
|
|
4065
3918
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4066
3919
|
: undefined,
|
|
4067
3920
|
};
|
|
@@ -4069,7 +3922,7 @@ var deserializeAws_restJson1FindingTypeAggregationResponse = function (output, c
|
|
|
4069
3922
|
var deserializeAws_restJson1FreeTrialAccountInfo = function (output, context) {
|
|
4070
3923
|
return {
|
|
4071
3924
|
accountId: __expectString(output.accountId),
|
|
4072
|
-
freeTrialInfo: output.freeTrialInfo
|
|
3925
|
+
freeTrialInfo: output.freeTrialInfo != null
|
|
4073
3926
|
? deserializeAws_restJson1FreeTrialInfoList(output.freeTrialInfo, context)
|
|
4074
3927
|
: undefined,
|
|
4075
3928
|
};
|
|
@@ -4087,12 +3940,8 @@ var deserializeAws_restJson1FreeTrialAccountInfoList = function (output, context
|
|
|
4087
3940
|
};
|
|
4088
3941
|
var deserializeAws_restJson1FreeTrialInfo = function (output, context) {
|
|
4089
3942
|
return {
|
|
4090
|
-
end: output.end
|
|
4091
|
-
|
|
4092
|
-
: undefined,
|
|
4093
|
-
start: output.start !== undefined && output.start !== null
|
|
4094
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.start)))
|
|
4095
|
-
: undefined,
|
|
3943
|
+
end: output.end != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.end))) : undefined,
|
|
3944
|
+
start: output.start != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.start))) : undefined,
|
|
4096
3945
|
status: __expectString(output.status),
|
|
4097
3946
|
type: __expectString(output.type),
|
|
4098
3947
|
};
|
|
@@ -4132,7 +3981,7 @@ var deserializeAws_restJson1ImageLayerAggregationResponse = function (output, co
|
|
|
4132
3981
|
layerHash: __expectString(output.layerHash),
|
|
4133
3982
|
repository: __expectString(output.repository),
|
|
4134
3983
|
resourceId: __expectString(output.resourceId),
|
|
4135
|
-
severityCounts: output.severityCounts
|
|
3984
|
+
severityCounts: output.severityCounts != null
|
|
4136
3985
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4137
3986
|
: undefined,
|
|
4138
3987
|
};
|
|
@@ -4150,9 +3999,7 @@ var deserializeAws_restJson1ImageTagList = function (output, context) {
|
|
|
4150
3999
|
};
|
|
4151
4000
|
var deserializeAws_restJson1InspectorScoreDetails = function (output, context) {
|
|
4152
4001
|
return {
|
|
4153
|
-
adjustedCvss: output.adjustedCvss
|
|
4154
|
-
? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context)
|
|
4155
|
-
: undefined,
|
|
4002
|
+
adjustedCvss: output.adjustedCvss != null ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context) : undefined,
|
|
4156
4003
|
};
|
|
4157
4004
|
};
|
|
4158
4005
|
var deserializeAws_restJson1IpV4AddressList = function (output, context) {
|
|
@@ -4200,9 +4047,7 @@ var deserializeAws_restJson1Member = function (output, context) {
|
|
|
4200
4047
|
accountId: __expectString(output.accountId),
|
|
4201
4048
|
delegatedAdminAccountId: __expectString(output.delegatedAdminAccountId),
|
|
4202
4049
|
relationshipStatus: __expectString(output.relationshipStatus),
|
|
4203
|
-
updatedAt: output.updatedAt
|
|
4204
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
4205
|
-
: undefined,
|
|
4050
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
4206
4051
|
};
|
|
4207
4052
|
};
|
|
4208
4053
|
var deserializeAws_restJson1MemberList = function (output, context) {
|
|
@@ -4218,19 +4063,13 @@ var deserializeAws_restJson1MemberList = function (output, context) {
|
|
|
4218
4063
|
};
|
|
4219
4064
|
var deserializeAws_restJson1NetworkPath = function (output, context) {
|
|
4220
4065
|
return {
|
|
4221
|
-
steps: output.steps
|
|
4222
|
-
? deserializeAws_restJson1StepList(output.steps, context)
|
|
4223
|
-
: undefined,
|
|
4066
|
+
steps: output.steps != null ? deserializeAws_restJson1StepList(output.steps, context) : undefined,
|
|
4224
4067
|
};
|
|
4225
4068
|
};
|
|
4226
4069
|
var deserializeAws_restJson1NetworkReachabilityDetails = function (output, context) {
|
|
4227
4070
|
return {
|
|
4228
|
-
networkPath: output.networkPath
|
|
4229
|
-
|
|
4230
|
-
: undefined,
|
|
4231
|
-
openPortRange: output.openPortRange !== undefined && output.openPortRange !== null
|
|
4232
|
-
? deserializeAws_restJson1PortRange(output.openPortRange, context)
|
|
4233
|
-
: undefined,
|
|
4071
|
+
networkPath: output.networkPath != null ? deserializeAws_restJson1NetworkPath(output.networkPath, context) : undefined,
|
|
4072
|
+
openPortRange: output.openPortRange != null ? deserializeAws_restJson1PortRange(output.openPortRange, context) : undefined,
|
|
4234
4073
|
protocol: __expectString(output.protocol),
|
|
4235
4074
|
};
|
|
4236
4075
|
};
|
|
@@ -4266,31 +4105,21 @@ var deserializeAws_restJson1PackageAggregationResponse = function (output, conte
|
|
|
4266
4105
|
return {
|
|
4267
4106
|
accountId: __expectString(output.accountId),
|
|
4268
4107
|
packageName: __expectString(output.packageName),
|
|
4269
|
-
severityCounts: output.severityCounts
|
|
4108
|
+
severityCounts: output.severityCounts != null
|
|
4270
4109
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4271
4110
|
: undefined,
|
|
4272
4111
|
};
|
|
4273
4112
|
};
|
|
4274
4113
|
var deserializeAws_restJson1PackageFilter = function (output, context) {
|
|
4275
4114
|
return {
|
|
4276
|
-
architecture: output.architecture
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
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
|
|
4115
|
+
architecture: output.architecture != null ? deserializeAws_restJson1StringFilter(output.architecture, context) : undefined,
|
|
4116
|
+
epoch: output.epoch != null ? deserializeAws_restJson1NumberFilter(output.epoch, context) : undefined,
|
|
4117
|
+
name: output.name != null ? deserializeAws_restJson1StringFilter(output.name, context) : undefined,
|
|
4118
|
+
release: output.release != null ? deserializeAws_restJson1StringFilter(output.release, context) : undefined,
|
|
4119
|
+
sourceLayerHash: output.sourceLayerHash != null
|
|
4289
4120
|
? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
|
|
4290
4121
|
: undefined,
|
|
4291
|
-
version: output.version
|
|
4292
|
-
? deserializeAws_restJson1StringFilter(output.version, context)
|
|
4293
|
-
: undefined,
|
|
4122
|
+
version: output.version != null ? deserializeAws_restJson1StringFilter(output.version, context) : undefined,
|
|
4294
4123
|
};
|
|
4295
4124
|
};
|
|
4296
4125
|
var deserializeAws_restJson1PackageFilterList = function (output, context) {
|
|
@@ -4306,26 +4135,24 @@ var deserializeAws_restJson1PackageFilterList = function (output, context) {
|
|
|
4306
4135
|
};
|
|
4307
4136
|
var deserializeAws_restJson1PackageVulnerabilityDetails = function (output, context) {
|
|
4308
4137
|
return {
|
|
4309
|
-
cvss: output.cvss
|
|
4310
|
-
|
|
4311
|
-
: undefined,
|
|
4312
|
-
referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
|
|
4138
|
+
cvss: output.cvss != null ? deserializeAws_restJson1CvssScoreList(output.cvss, context) : undefined,
|
|
4139
|
+
referenceUrls: output.referenceUrls != null
|
|
4313
4140
|
? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
|
|
4314
4141
|
: undefined,
|
|
4315
|
-
relatedVulnerabilities: output.relatedVulnerabilities
|
|
4142
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
4316
4143
|
? deserializeAws_restJson1VulnerabilityIdList(output.relatedVulnerabilities, context)
|
|
4317
4144
|
: undefined,
|
|
4318
4145
|
source: __expectString(output.source),
|
|
4319
4146
|
sourceUrl: __expectString(output.sourceUrl),
|
|
4320
|
-
vendorCreatedAt: output.vendorCreatedAt
|
|
4147
|
+
vendorCreatedAt: output.vendorCreatedAt != null
|
|
4321
4148
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorCreatedAt)))
|
|
4322
4149
|
: undefined,
|
|
4323
4150
|
vendorSeverity: __expectString(output.vendorSeverity),
|
|
4324
|
-
vendorUpdatedAt: output.vendorUpdatedAt
|
|
4151
|
+
vendorUpdatedAt: output.vendorUpdatedAt != null
|
|
4325
4152
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
|
|
4326
4153
|
: undefined,
|
|
4327
4154
|
vulnerabilityId: __expectString(output.vulnerabilityId),
|
|
4328
|
-
vulnerablePackages: output.vulnerablePackages
|
|
4155
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
4329
4156
|
? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
|
|
4330
4157
|
: undefined,
|
|
4331
4158
|
};
|
|
@@ -4378,7 +4205,7 @@ var deserializeAws_restJson1Recommendation = function (output, context) {
|
|
|
4378
4205
|
};
|
|
4379
4206
|
var deserializeAws_restJson1Remediation = function (output, context) {
|
|
4380
4207
|
return {
|
|
4381
|
-
recommendation: output.recommendation
|
|
4208
|
+
recommendation: output.recommendation != null
|
|
4382
4209
|
? deserializeAws_restJson1Recommendation(output.recommendation, context)
|
|
4383
4210
|
: undefined,
|
|
4384
4211
|
};
|
|
@@ -4388,31 +4215,27 @@ var deserializeAws_restJson1RepositoryAggregationResponse = function (output, co
|
|
|
4388
4215
|
accountId: __expectString(output.accountId),
|
|
4389
4216
|
affectedImages: __expectLong(output.affectedImages),
|
|
4390
4217
|
repository: __expectString(output.repository),
|
|
4391
|
-
severityCounts: output.severityCounts
|
|
4218
|
+
severityCounts: output.severityCounts != null
|
|
4392
4219
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4393
4220
|
: undefined,
|
|
4394
4221
|
};
|
|
4395
4222
|
};
|
|
4396
4223
|
var deserializeAws_restJson1Resource = function (output, context) {
|
|
4397
4224
|
return {
|
|
4398
|
-
details: output.details
|
|
4399
|
-
? deserializeAws_restJson1ResourceDetails(output.details, context)
|
|
4400
|
-
: undefined,
|
|
4225
|
+
details: output.details != null ? deserializeAws_restJson1ResourceDetails(output.details, context) : undefined,
|
|
4401
4226
|
id: __expectString(output.id),
|
|
4402
4227
|
partition: __expectString(output.partition),
|
|
4403
4228
|
region: __expectString(output.region),
|
|
4404
|
-
tags: output.tags
|
|
4405
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
4406
|
-
: undefined,
|
|
4229
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
4407
4230
|
type: __expectString(output.type),
|
|
4408
4231
|
};
|
|
4409
4232
|
};
|
|
4410
4233
|
var deserializeAws_restJson1ResourceDetails = function (output, context) {
|
|
4411
4234
|
return {
|
|
4412
|
-
awsEc2Instance: output.awsEc2Instance
|
|
4235
|
+
awsEc2Instance: output.awsEc2Instance != null
|
|
4413
4236
|
? deserializeAws_restJson1AwsEc2InstanceDetails(output.awsEc2Instance, context)
|
|
4414
4237
|
: undefined,
|
|
4415
|
-
awsEcrContainerImage: output.awsEcrContainerImage
|
|
4238
|
+
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
4416
4239
|
? deserializeAws_restJson1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
4417
4240
|
: undefined,
|
|
4418
4241
|
};
|
|
@@ -4430,21 +4253,17 @@ var deserializeAws_restJson1ResourceList = function (output, context) {
|
|
|
4430
4253
|
};
|
|
4431
4254
|
var deserializeAws_restJson1ResourceScanMetadata = function (output, context) {
|
|
4432
4255
|
return {
|
|
4433
|
-
ec2: output.ec2
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
ecrImage: output.ecrImage !== undefined && output.ecrImage !== null
|
|
4437
|
-
? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context)
|
|
4438
|
-
: undefined,
|
|
4439
|
-
ecrRepository: output.ecrRepository !== undefined && output.ecrRepository !== null
|
|
4256
|
+
ec2: output.ec2 != null ? deserializeAws_restJson1Ec2Metadata(output.ec2, context) : undefined,
|
|
4257
|
+
ecrImage: output.ecrImage != null ? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context) : undefined,
|
|
4258
|
+
ecrRepository: output.ecrRepository != null
|
|
4440
4259
|
? deserializeAws_restJson1EcrRepositoryMetadata(output.ecrRepository, context)
|
|
4441
4260
|
: undefined,
|
|
4442
4261
|
};
|
|
4443
4262
|
};
|
|
4444
4263
|
var deserializeAws_restJson1ResourceState = function (output, context) {
|
|
4445
4264
|
return {
|
|
4446
|
-
ec2: output.ec2
|
|
4447
|
-
ecr: output.ecr
|
|
4265
|
+
ec2: output.ec2 != null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
|
|
4266
|
+
ecr: output.ecr != null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
|
|
4448
4267
|
};
|
|
4449
4268
|
};
|
|
4450
4269
|
var deserializeAws_restJson1ResourceStatus = function (output, context) {
|
|
@@ -4543,7 +4362,7 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
4543
4362
|
var deserializeAws_restJson1TitleAggregationResponse = function (output, context) {
|
|
4544
4363
|
return {
|
|
4545
4364
|
accountId: __expectString(output.accountId),
|
|
4546
|
-
severityCounts: output.severityCounts
|
|
4365
|
+
severityCounts: output.severityCounts != null
|
|
4547
4366
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4548
4367
|
: undefined,
|
|
4549
4368
|
title: __expectString(output.title),
|
|
@@ -4572,9 +4391,7 @@ var deserializeAws_restJson1UsageList = function (output, context) {
|
|
|
4572
4391
|
var deserializeAws_restJson1UsageTotal = function (output, context) {
|
|
4573
4392
|
return {
|
|
4574
4393
|
accountId: __expectString(output.accountId),
|
|
4575
|
-
usage: output.usage
|
|
4576
|
-
? deserializeAws_restJson1UsageList(output.usage, context)
|
|
4577
|
-
: undefined,
|
|
4394
|
+
usage: output.usage != null ? deserializeAws_restJson1UsageList(output.usage, context) : undefined,
|
|
4578
4395
|
};
|
|
4579
4396
|
};
|
|
4580
4397
|
var deserializeAws_restJson1UsageTotalList = function (output, context) {
|