@aws-sdk/client-inspector2 3.118.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +427 -581
- package/dist-es/protocols/Aws_restJson1.js +358 -512
- 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,
|
|
@@ -822,7 +803,7 @@ export var deserializeAws_restJson1AssociateMemberCommand = function (output, co
|
|
|
822
803
|
});
|
|
823
804
|
}); };
|
|
824
805
|
var deserializeAws_restJson1AssociateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
825
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
806
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
826
807
|
var _c;
|
|
827
808
|
return __generator(this, function (_d) {
|
|
828
809
|
switch (_d.label) {
|
|
@@ -832,7 +813,6 @@ var deserializeAws_restJson1AssociateMemberCommandError = function (output, cont
|
|
|
832
813
|
return [4, parseBody(output.body, context)];
|
|
833
814
|
case 1:
|
|
834
815
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
835
|
-
errorCode = "UnknownError";
|
|
836
816
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
817
|
_b = errorCode;
|
|
838
818
|
switch (_b) {
|
|
@@ -856,10 +836,12 @@ var deserializeAws_restJson1AssociateMemberCommandError = function (output, cont
|
|
|
856
836
|
case 9: throw _d.sent();
|
|
857
837
|
case 10:
|
|
858
838
|
parsedBody = parsedOutput.body;
|
|
839
|
+
$metadata = deserializeMetadata(output);
|
|
840
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
859
841
|
response = new __BaseException({
|
|
860
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
861
843
|
$fault: "client",
|
|
862
|
-
$metadata:
|
|
844
|
+
$metadata: $metadata,
|
|
863
845
|
});
|
|
864
846
|
throw __decorateServiceException(response, parsedBody);
|
|
865
847
|
}
|
|
@@ -894,7 +876,7 @@ export var deserializeAws_restJson1BatchGetAccountStatusCommand = function (outp
|
|
|
894
876
|
});
|
|
895
877
|
}); };
|
|
896
878
|
var deserializeAws_restJson1BatchGetAccountStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
897
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
879
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
898
880
|
var _c;
|
|
899
881
|
return __generator(this, function (_d) {
|
|
900
882
|
switch (_d.label) {
|
|
@@ -904,7 +886,6 @@ var deserializeAws_restJson1BatchGetAccountStatusCommandError = function (output
|
|
|
904
886
|
return [4, parseBody(output.body, context)];
|
|
905
887
|
case 1:
|
|
906
888
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
907
|
-
errorCode = "UnknownError";
|
|
908
889
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
909
890
|
_b = errorCode;
|
|
910
891
|
switch (_b) {
|
|
@@ -932,10 +913,12 @@ var deserializeAws_restJson1BatchGetAccountStatusCommandError = function (output
|
|
|
932
913
|
case 11: throw _d.sent();
|
|
933
914
|
case 12:
|
|
934
915
|
parsedBody = parsedOutput.body;
|
|
916
|
+
$metadata = deserializeMetadata(output);
|
|
917
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
935
918
|
response = new __BaseException({
|
|
936
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
919
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
937
920
|
$fault: "client",
|
|
938
|
-
$metadata:
|
|
921
|
+
$metadata: $metadata,
|
|
939
922
|
});
|
|
940
923
|
throw __decorateServiceException(response, parsedBody);
|
|
941
924
|
}
|
|
@@ -970,7 +953,7 @@ export var deserializeAws_restJson1BatchGetFreeTrialInfoCommand = function (outp
|
|
|
970
953
|
});
|
|
971
954
|
}); };
|
|
972
955
|
var deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
973
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
956
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
974
957
|
var _c;
|
|
975
958
|
return __generator(this, function (_d) {
|
|
976
959
|
switch (_d.label) {
|
|
@@ -980,7 +963,6 @@ var deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = function (output
|
|
|
980
963
|
return [4, parseBody(output.body, context)];
|
|
981
964
|
case 1:
|
|
982
965
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
983
|
-
errorCode = "UnknownError";
|
|
984
966
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
967
|
_b = errorCode;
|
|
986
968
|
switch (_b) {
|
|
@@ -1004,10 +986,12 @@ var deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = function (output
|
|
|
1004
986
|
case 9: throw _d.sent();
|
|
1005
987
|
case 10:
|
|
1006
988
|
parsedBody = parsedOutput.body;
|
|
989
|
+
$metadata = deserializeMetadata(output);
|
|
990
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1007
991
|
response = new __BaseException({
|
|
1008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
992
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1009
993
|
$fault: "client",
|
|
1010
|
-
$metadata:
|
|
994
|
+
$metadata: $metadata,
|
|
1011
995
|
});
|
|
1012
996
|
throw __decorateServiceException(response, parsedBody);
|
|
1013
997
|
}
|
|
@@ -1038,7 +1022,7 @@ export var deserializeAws_restJson1CancelFindingsReportCommand = function (outpu
|
|
|
1038
1022
|
});
|
|
1039
1023
|
}); };
|
|
1040
1024
|
var deserializeAws_restJson1CancelFindingsReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1041
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1025
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1042
1026
|
var _c;
|
|
1043
1027
|
return __generator(this, function (_d) {
|
|
1044
1028
|
switch (_d.label) {
|
|
@@ -1048,7 +1032,6 @@ var deserializeAws_restJson1CancelFindingsReportCommandError = function (output,
|
|
|
1048
1032
|
return [4, parseBody(output.body, context)];
|
|
1049
1033
|
case 1:
|
|
1050
1034
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1051
|
-
errorCode = "UnknownError";
|
|
1052
1035
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
1036
|
_b = errorCode;
|
|
1054
1037
|
switch (_b) {
|
|
@@ -1076,10 +1059,12 @@ var deserializeAws_restJson1CancelFindingsReportCommandError = function (output,
|
|
|
1076
1059
|
case 11: throw _d.sent();
|
|
1077
1060
|
case 12:
|
|
1078
1061
|
parsedBody = parsedOutput.body;
|
|
1062
|
+
$metadata = deserializeMetadata(output);
|
|
1063
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1079
1064
|
response = new __BaseException({
|
|
1080
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1065
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1081
1066
|
$fault: "client",
|
|
1082
|
-
$metadata:
|
|
1067
|
+
$metadata: $metadata,
|
|
1083
1068
|
});
|
|
1084
1069
|
throw __decorateServiceException(response, parsedBody);
|
|
1085
1070
|
}
|
|
@@ -1110,7 +1095,7 @@ export var deserializeAws_restJson1CreateFilterCommand = function (output, conte
|
|
|
1110
1095
|
});
|
|
1111
1096
|
}); };
|
|
1112
1097
|
var deserializeAws_restJson1CreateFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1113
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1098
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1114
1099
|
var _c;
|
|
1115
1100
|
return __generator(this, function (_d) {
|
|
1116
1101
|
switch (_d.label) {
|
|
@@ -1120,7 +1105,6 @@ var deserializeAws_restJson1CreateFilterCommandError = function (output, context
|
|
|
1120
1105
|
return [4, parseBody(output.body, context)];
|
|
1121
1106
|
case 1:
|
|
1122
1107
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1123
|
-
errorCode = "UnknownError";
|
|
1124
1108
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
1109
|
_b = errorCode;
|
|
1126
1110
|
switch (_b) {
|
|
@@ -1152,10 +1136,12 @@ var deserializeAws_restJson1CreateFilterCommandError = function (output, context
|
|
|
1152
1136
|
case 13: throw _d.sent();
|
|
1153
1137
|
case 14:
|
|
1154
1138
|
parsedBody = parsedOutput.body;
|
|
1139
|
+
$metadata = deserializeMetadata(output);
|
|
1140
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1155
1141
|
response = new __BaseException({
|
|
1156
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1157
1143
|
$fault: "client",
|
|
1158
|
-
$metadata:
|
|
1144
|
+
$metadata: $metadata,
|
|
1159
1145
|
});
|
|
1160
1146
|
throw __decorateServiceException(response, parsedBody);
|
|
1161
1147
|
}
|
|
@@ -1186,7 +1172,7 @@ export var deserializeAws_restJson1CreateFindingsReportCommand = function (outpu
|
|
|
1186
1172
|
});
|
|
1187
1173
|
}); };
|
|
1188
1174
|
var deserializeAws_restJson1CreateFindingsReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1189
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1175
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1190
1176
|
var _c;
|
|
1191
1177
|
return __generator(this, function (_d) {
|
|
1192
1178
|
switch (_d.label) {
|
|
@@ -1196,7 +1182,6 @@ var deserializeAws_restJson1CreateFindingsReportCommandError = function (output,
|
|
|
1196
1182
|
return [4, parseBody(output.body, context)];
|
|
1197
1183
|
case 1:
|
|
1198
1184
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1199
|
-
errorCode = "UnknownError";
|
|
1200
1185
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1186
|
_b = errorCode;
|
|
1202
1187
|
switch (_b) {
|
|
@@ -1224,10 +1209,12 @@ var deserializeAws_restJson1CreateFindingsReportCommandError = function (output,
|
|
|
1224
1209
|
case 11: throw _d.sent();
|
|
1225
1210
|
case 12:
|
|
1226
1211
|
parsedBody = parsedOutput.body;
|
|
1212
|
+
$metadata = deserializeMetadata(output);
|
|
1213
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1227
1214
|
response = new __BaseException({
|
|
1228
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1229
1216
|
$fault: "client",
|
|
1230
|
-
$metadata:
|
|
1217
|
+
$metadata: $metadata,
|
|
1231
1218
|
});
|
|
1232
1219
|
throw __decorateServiceException(response, parsedBody);
|
|
1233
1220
|
}
|
|
@@ -1258,7 +1245,7 @@ export var deserializeAws_restJson1DeleteFilterCommand = function (output, conte
|
|
|
1258
1245
|
});
|
|
1259
1246
|
}); };
|
|
1260
1247
|
var deserializeAws_restJson1DeleteFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1261
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1248
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1262
1249
|
var _c;
|
|
1263
1250
|
return __generator(this, function (_d) {
|
|
1264
1251
|
switch (_d.label) {
|
|
@@ -1268,7 +1255,6 @@ var deserializeAws_restJson1DeleteFilterCommandError = function (output, context
|
|
|
1268
1255
|
return [4, parseBody(output.body, context)];
|
|
1269
1256
|
case 1:
|
|
1270
1257
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1271
|
-
errorCode = "UnknownError";
|
|
1272
1258
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
1259
|
_b = errorCode;
|
|
1274
1260
|
switch (_b) {
|
|
@@ -1296,10 +1282,12 @@ var deserializeAws_restJson1DeleteFilterCommandError = function (output, context
|
|
|
1296
1282
|
case 11: throw _d.sent();
|
|
1297
1283
|
case 12:
|
|
1298
1284
|
parsedBody = parsedOutput.body;
|
|
1285
|
+
$metadata = deserializeMetadata(output);
|
|
1286
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1299
1287
|
response = new __BaseException({
|
|
1300
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1288
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1301
1289
|
$fault: "client",
|
|
1302
|
-
$metadata:
|
|
1290
|
+
$metadata: $metadata,
|
|
1303
1291
|
});
|
|
1304
1292
|
throw __decorateServiceException(response, parsedBody);
|
|
1305
1293
|
}
|
|
@@ -1334,7 +1322,7 @@ export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = fu
|
|
|
1334
1322
|
});
|
|
1335
1323
|
}); };
|
|
1336
1324
|
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1337
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1325
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1338
1326
|
var _c;
|
|
1339
1327
|
return __generator(this, function (_d) {
|
|
1340
1328
|
switch (_d.label) {
|
|
@@ -1344,7 +1332,6 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
1344
1332
|
return [4, parseBody(output.body, context)];
|
|
1345
1333
|
case 1:
|
|
1346
1334
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1347
|
-
errorCode = "UnknownError";
|
|
1348
1335
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
1336
|
_b = errorCode;
|
|
1350
1337
|
switch (_b) {
|
|
@@ -1368,10 +1355,12 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
1368
1355
|
case 9: throw _d.sent();
|
|
1369
1356
|
case 10:
|
|
1370
1357
|
parsedBody = parsedOutput.body;
|
|
1358
|
+
$metadata = deserializeMetadata(output);
|
|
1359
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1371
1360
|
response = new __BaseException({
|
|
1372
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1361
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1373
1362
|
$fault: "client",
|
|
1374
|
-
$metadata:
|
|
1363
|
+
$metadata: $metadata,
|
|
1375
1364
|
});
|
|
1376
1365
|
throw __decorateServiceException(response, parsedBody);
|
|
1377
1366
|
}
|
|
@@ -1406,7 +1395,7 @@ export var deserializeAws_restJson1DisableCommand = function (output, context) {
|
|
|
1406
1395
|
});
|
|
1407
1396
|
}); };
|
|
1408
1397
|
var deserializeAws_restJson1DisableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1409
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1398
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1410
1399
|
var _c;
|
|
1411
1400
|
return __generator(this, function (_d) {
|
|
1412
1401
|
switch (_d.label) {
|
|
@@ -1416,7 +1405,6 @@ var deserializeAws_restJson1DisableCommandError = function (output, context) { r
|
|
|
1416
1405
|
return [4, parseBody(output.body, context)];
|
|
1417
1406
|
case 1:
|
|
1418
1407
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1419
|
-
errorCode = "UnknownError";
|
|
1420
1408
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
1409
|
_b = errorCode;
|
|
1422
1410
|
switch (_b) {
|
|
@@ -1444,10 +1432,12 @@ var deserializeAws_restJson1DisableCommandError = function (output, context) { r
|
|
|
1444
1432
|
case 11: throw _d.sent();
|
|
1445
1433
|
case 12:
|
|
1446
1434
|
parsedBody = parsedOutput.body;
|
|
1435
|
+
$metadata = deserializeMetadata(output);
|
|
1436
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1447
1437
|
response = new __BaseException({
|
|
1448
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1449
1439
|
$fault: "client",
|
|
1450
|
-
$metadata:
|
|
1440
|
+
$metadata: $metadata,
|
|
1451
1441
|
});
|
|
1452
1442
|
throw __decorateServiceException(response, parsedBody);
|
|
1453
1443
|
}
|
|
@@ -1478,7 +1468,7 @@ export var deserializeAws_restJson1DisableDelegatedAdminAccountCommand = functio
|
|
|
1478
1468
|
});
|
|
1479
1469
|
}); };
|
|
1480
1470
|
var deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1481
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1471
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1482
1472
|
var _c;
|
|
1483
1473
|
return __generator(this, function (_d) {
|
|
1484
1474
|
switch (_d.label) {
|
|
@@ -1488,7 +1478,6 @@ var deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = function
|
|
|
1488
1478
|
return [4, parseBody(output.body, context)];
|
|
1489
1479
|
case 1:
|
|
1490
1480
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1491
|
-
errorCode = "UnknownError";
|
|
1492
1481
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
1482
|
_b = errorCode;
|
|
1494
1483
|
switch (_b) {
|
|
@@ -1520,10 +1509,12 @@ var deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = function
|
|
|
1520
1509
|
case 13: throw _d.sent();
|
|
1521
1510
|
case 14:
|
|
1522
1511
|
parsedBody = parsedOutput.body;
|
|
1512
|
+
$metadata = deserializeMetadata(output);
|
|
1513
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1523
1514
|
response = new __BaseException({
|
|
1524
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1515
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1525
1516
|
$fault: "client",
|
|
1526
|
-
$metadata:
|
|
1517
|
+
$metadata: $metadata,
|
|
1527
1518
|
});
|
|
1528
1519
|
throw __decorateServiceException(response, parsedBody);
|
|
1529
1520
|
}
|
|
@@ -1554,7 +1545,7 @@ export var deserializeAws_restJson1DisassociateMemberCommand = function (output,
|
|
|
1554
1545
|
});
|
|
1555
1546
|
}); };
|
|
1556
1547
|
var deserializeAws_restJson1DisassociateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1557
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1548
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1558
1549
|
var _c;
|
|
1559
1550
|
return __generator(this, function (_d) {
|
|
1560
1551
|
switch (_d.label) {
|
|
@@ -1564,7 +1555,6 @@ var deserializeAws_restJson1DisassociateMemberCommandError = function (output, c
|
|
|
1564
1555
|
return [4, parseBody(output.body, context)];
|
|
1565
1556
|
case 1:
|
|
1566
1557
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1567
|
-
errorCode = "UnknownError";
|
|
1568
1558
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
1559
|
_b = errorCode;
|
|
1570
1560
|
switch (_b) {
|
|
@@ -1588,10 +1578,12 @@ var deserializeAws_restJson1DisassociateMemberCommandError = function (output, c
|
|
|
1588
1578
|
case 9: throw _d.sent();
|
|
1589
1579
|
case 10:
|
|
1590
1580
|
parsedBody = parsedOutput.body;
|
|
1581
|
+
$metadata = deserializeMetadata(output);
|
|
1582
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1591
1583
|
response = new __BaseException({
|
|
1592
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1584
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1593
1585
|
$fault: "client",
|
|
1594
|
-
$metadata:
|
|
1586
|
+
$metadata: $metadata,
|
|
1595
1587
|
});
|
|
1596
1588
|
throw __decorateServiceException(response, parsedBody);
|
|
1597
1589
|
}
|
|
@@ -1626,7 +1618,7 @@ export var deserializeAws_restJson1EnableCommand = function (output, context) {
|
|
|
1626
1618
|
});
|
|
1627
1619
|
}); };
|
|
1628
1620
|
var deserializeAws_restJson1EnableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1629
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1621
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1630
1622
|
var _c;
|
|
1631
1623
|
return __generator(this, function (_d) {
|
|
1632
1624
|
switch (_d.label) {
|
|
@@ -1636,7 +1628,6 @@ var deserializeAws_restJson1EnableCommandError = function (output, context) { re
|
|
|
1636
1628
|
return [4, parseBody(output.body, context)];
|
|
1637
1629
|
case 1:
|
|
1638
1630
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1639
|
-
errorCode = "UnknownError";
|
|
1640
1631
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
1632
|
_b = errorCode;
|
|
1642
1633
|
switch (_b) {
|
|
@@ -1664,10 +1655,12 @@ var deserializeAws_restJson1EnableCommandError = function (output, context) { re
|
|
|
1664
1655
|
case 11: throw _d.sent();
|
|
1665
1656
|
case 12:
|
|
1666
1657
|
parsedBody = parsedOutput.body;
|
|
1658
|
+
$metadata = deserializeMetadata(output);
|
|
1659
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1667
1660
|
response = new __BaseException({
|
|
1668
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1661
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1669
1662
|
$fault: "client",
|
|
1670
|
-
$metadata:
|
|
1663
|
+
$metadata: $metadata,
|
|
1671
1664
|
});
|
|
1672
1665
|
throw __decorateServiceException(response, parsedBody);
|
|
1673
1666
|
}
|
|
@@ -1698,7 +1691,7 @@ export var deserializeAws_restJson1EnableDelegatedAdminAccountCommand = function
|
|
|
1698
1691
|
});
|
|
1699
1692
|
}); };
|
|
1700
1693
|
var deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1701
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1694
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1702
1695
|
var _c;
|
|
1703
1696
|
return __generator(this, function (_d) {
|
|
1704
1697
|
switch (_d.label) {
|
|
@@ -1708,7 +1701,6 @@ var deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = function (
|
|
|
1708
1701
|
return [4, parseBody(output.body, context)];
|
|
1709
1702
|
case 1:
|
|
1710
1703
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1711
|
-
errorCode = "UnknownError";
|
|
1712
1704
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
1705
|
_b = errorCode;
|
|
1714
1706
|
switch (_b) {
|
|
@@ -1740,10 +1732,12 @@ var deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = function (
|
|
|
1740
1732
|
case 13: throw _d.sent();
|
|
1741
1733
|
case 14:
|
|
1742
1734
|
parsedBody = parsedOutput.body;
|
|
1735
|
+
$metadata = deserializeMetadata(output);
|
|
1736
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1743
1737
|
response = new __BaseException({
|
|
1744
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1745
1739
|
$fault: "client",
|
|
1746
|
-
$metadata:
|
|
1740
|
+
$metadata: $metadata,
|
|
1747
1741
|
});
|
|
1748
1742
|
throw __decorateServiceException(response, parsedBody);
|
|
1749
1743
|
}
|
|
@@ -1774,7 +1768,7 @@ export var deserializeAws_restJson1GetDelegatedAdminAccountCommand = function (o
|
|
|
1774
1768
|
});
|
|
1775
1769
|
}); };
|
|
1776
1770
|
var deserializeAws_restJson1GetDelegatedAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1777
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1771
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1778
1772
|
var _c;
|
|
1779
1773
|
return __generator(this, function (_d) {
|
|
1780
1774
|
switch (_d.label) {
|
|
@@ -1784,7 +1778,6 @@ var deserializeAws_restJson1GetDelegatedAdminAccountCommandError = function (out
|
|
|
1784
1778
|
return [4, parseBody(output.body, context)];
|
|
1785
1779
|
case 1:
|
|
1786
1780
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1787
|
-
errorCode = "UnknownError";
|
|
1788
1781
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
1782
|
_b = errorCode;
|
|
1790
1783
|
switch (_b) {
|
|
@@ -1812,10 +1805,12 @@ var deserializeAws_restJson1GetDelegatedAdminAccountCommandError = function (out
|
|
|
1812
1805
|
case 11: throw _d.sent();
|
|
1813
1806
|
case 12:
|
|
1814
1807
|
parsedBody = parsedOutput.body;
|
|
1808
|
+
$metadata = deserializeMetadata(output);
|
|
1809
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1815
1810
|
response = new __BaseException({
|
|
1816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1811
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1817
1812
|
$fault: "client",
|
|
1818
|
-
$metadata:
|
|
1813
|
+
$metadata: $metadata,
|
|
1819
1814
|
});
|
|
1820
1815
|
throw __decorateServiceException(response, parsedBody);
|
|
1821
1816
|
}
|
|
@@ -1866,7 +1861,7 @@ export var deserializeAws_restJson1GetFindingsReportStatusCommand = function (ou
|
|
|
1866
1861
|
});
|
|
1867
1862
|
}); };
|
|
1868
1863
|
var deserializeAws_restJson1GetFindingsReportStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1869
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1864
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1870
1865
|
var _c;
|
|
1871
1866
|
return __generator(this, function (_d) {
|
|
1872
1867
|
switch (_d.label) {
|
|
@@ -1876,7 +1871,6 @@ var deserializeAws_restJson1GetFindingsReportStatusCommandError = function (outp
|
|
|
1876
1871
|
return [4, parseBody(output.body, context)];
|
|
1877
1872
|
case 1:
|
|
1878
1873
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1879
|
-
errorCode = "UnknownError";
|
|
1880
1874
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1881
1875
|
_b = errorCode;
|
|
1882
1876
|
switch (_b) {
|
|
@@ -1904,10 +1898,12 @@ var deserializeAws_restJson1GetFindingsReportStatusCommandError = function (outp
|
|
|
1904
1898
|
case 11: throw _d.sent();
|
|
1905
1899
|
case 12:
|
|
1906
1900
|
parsedBody = parsedOutput.body;
|
|
1901
|
+
$metadata = deserializeMetadata(output);
|
|
1902
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1907
1903
|
response = new __BaseException({
|
|
1908
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1904
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1909
1905
|
$fault: "client",
|
|
1910
|
-
$metadata:
|
|
1906
|
+
$metadata: $metadata,
|
|
1911
1907
|
});
|
|
1912
1908
|
throw __decorateServiceException(response, parsedBody);
|
|
1913
1909
|
}
|
|
@@ -1938,7 +1934,7 @@ export var deserializeAws_restJson1GetMemberCommand = function (output, context)
|
|
|
1938
1934
|
});
|
|
1939
1935
|
}); };
|
|
1940
1936
|
var deserializeAws_restJson1GetMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1941
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1937
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1942
1938
|
var _c;
|
|
1943
1939
|
return __generator(this, function (_d) {
|
|
1944
1940
|
switch (_d.label) {
|
|
@@ -1948,7 +1944,6 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
1948
1944
|
return [4, parseBody(output.body, context)];
|
|
1949
1945
|
case 1:
|
|
1950
1946
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1951
|
-
errorCode = "UnknownError";
|
|
1952
1947
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
1948
|
_b = errorCode;
|
|
1954
1949
|
switch (_b) {
|
|
@@ -1976,10 +1971,12 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
1976
1971
|
case 11: throw _d.sent();
|
|
1977
1972
|
case 12:
|
|
1978
1973
|
parsedBody = parsedOutput.body;
|
|
1974
|
+
$metadata = deserializeMetadata(output);
|
|
1975
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1979
1976
|
response = new __BaseException({
|
|
1980
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1977
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1981
1978
|
$fault: "client",
|
|
1982
|
-
$metadata:
|
|
1979
|
+
$metadata: $metadata,
|
|
1983
1980
|
});
|
|
1984
1981
|
throw __decorateServiceException(response, parsedBody);
|
|
1985
1982
|
}
|
|
@@ -2014,7 +2011,7 @@ export var deserializeAws_restJson1ListAccountPermissionsCommand = function (out
|
|
|
2014
2011
|
});
|
|
2015
2012
|
}); };
|
|
2016
2013
|
var deserializeAws_restJson1ListAccountPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2017
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2014
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2018
2015
|
var _c;
|
|
2019
2016
|
return __generator(this, function (_d) {
|
|
2020
2017
|
switch (_d.label) {
|
|
@@ -2024,7 +2021,6 @@ var deserializeAws_restJson1ListAccountPermissionsCommandError = function (outpu
|
|
|
2024
2021
|
return [4, parseBody(output.body, context)];
|
|
2025
2022
|
case 1:
|
|
2026
2023
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2027
|
-
errorCode = "UnknownError";
|
|
2028
2024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
2025
|
_b = errorCode;
|
|
2030
2026
|
switch (_b) {
|
|
@@ -2048,10 +2044,12 @@ var deserializeAws_restJson1ListAccountPermissionsCommandError = function (outpu
|
|
|
2048
2044
|
case 9: throw _d.sent();
|
|
2049
2045
|
case 10:
|
|
2050
2046
|
parsedBody = parsedOutput.body;
|
|
2047
|
+
$metadata = deserializeMetadata(output);
|
|
2048
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2051
2049
|
response = new __BaseException({
|
|
2052
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2053
2051
|
$fault: "client",
|
|
2054
|
-
$metadata:
|
|
2052
|
+
$metadata: $metadata,
|
|
2055
2053
|
});
|
|
2056
2054
|
throw __decorateServiceException(response, parsedBody);
|
|
2057
2055
|
}
|
|
@@ -2086,7 +2084,7 @@ export var deserializeAws_restJson1ListCoverageCommand = function (output, conte
|
|
|
2086
2084
|
});
|
|
2087
2085
|
}); };
|
|
2088
2086
|
var deserializeAws_restJson1ListCoverageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2089
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2087
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2090
2088
|
var _c;
|
|
2091
2089
|
return __generator(this, function (_d) {
|
|
2092
2090
|
switch (_d.label) {
|
|
@@ -2096,7 +2094,6 @@ var deserializeAws_restJson1ListCoverageCommandError = function (output, context
|
|
|
2096
2094
|
return [4, parseBody(output.body, context)];
|
|
2097
2095
|
case 1:
|
|
2098
2096
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2099
|
-
errorCode = "UnknownError";
|
|
2100
2097
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2101
2098
|
_b = errorCode;
|
|
2102
2099
|
switch (_b) {
|
|
@@ -2116,10 +2113,12 @@ var deserializeAws_restJson1ListCoverageCommandError = function (output, context
|
|
|
2116
2113
|
case 7: throw _d.sent();
|
|
2117
2114
|
case 8:
|
|
2118
2115
|
parsedBody = parsedOutput.body;
|
|
2116
|
+
$metadata = deserializeMetadata(output);
|
|
2117
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2119
2118
|
response = new __BaseException({
|
|
2120
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2121
2120
|
$fault: "client",
|
|
2122
|
-
$metadata:
|
|
2121
|
+
$metadata: $metadata,
|
|
2123
2122
|
});
|
|
2124
2123
|
throw __decorateServiceException(response, parsedBody);
|
|
2125
2124
|
}
|
|
@@ -2158,7 +2157,7 @@ export var deserializeAws_restJson1ListCoverageStatisticsCommand = function (out
|
|
|
2158
2157
|
});
|
|
2159
2158
|
}); };
|
|
2160
2159
|
var deserializeAws_restJson1ListCoverageStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2161
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2160
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2162
2161
|
var _c;
|
|
2163
2162
|
return __generator(this, function (_d) {
|
|
2164
2163
|
switch (_d.label) {
|
|
@@ -2168,7 +2167,6 @@ var deserializeAws_restJson1ListCoverageStatisticsCommandError = function (outpu
|
|
|
2168
2167
|
return [4, parseBody(output.body, context)];
|
|
2169
2168
|
case 1:
|
|
2170
2169
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2171
|
-
errorCode = "UnknownError";
|
|
2172
2170
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
2171
|
_b = errorCode;
|
|
2174
2172
|
switch (_b) {
|
|
@@ -2188,10 +2186,12 @@ var deserializeAws_restJson1ListCoverageStatisticsCommandError = function (outpu
|
|
|
2188
2186
|
case 7: throw _d.sent();
|
|
2189
2187
|
case 8:
|
|
2190
2188
|
parsedBody = parsedOutput.body;
|
|
2189
|
+
$metadata = deserializeMetadata(output);
|
|
2190
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2191
2191
|
response = new __BaseException({
|
|
2192
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2192
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2193
2193
|
$fault: "client",
|
|
2194
|
-
$metadata:
|
|
2194
|
+
$metadata: $metadata,
|
|
2195
2195
|
});
|
|
2196
2196
|
throw __decorateServiceException(response, parsedBody);
|
|
2197
2197
|
}
|
|
@@ -2226,7 +2226,7 @@ export var deserializeAws_restJson1ListDelegatedAdminAccountsCommand = function
|
|
|
2226
2226
|
});
|
|
2227
2227
|
}); };
|
|
2228
2228
|
var deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2229
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2229
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2230
2230
|
var _c;
|
|
2231
2231
|
return __generator(this, function (_d) {
|
|
2232
2232
|
switch (_d.label) {
|
|
@@ -2236,7 +2236,6 @@ var deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = function (o
|
|
|
2236
2236
|
return [4, parseBody(output.body, context)];
|
|
2237
2237
|
case 1:
|
|
2238
2238
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2239
|
-
errorCode = "UnknownError";
|
|
2240
2239
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
2240
|
_b = errorCode;
|
|
2242
2241
|
switch (_b) {
|
|
@@ -2260,10 +2259,12 @@ var deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = function (o
|
|
|
2260
2259
|
case 9: throw _d.sent();
|
|
2261
2260
|
case 10:
|
|
2262
2261
|
parsedBody = parsedOutput.body;
|
|
2262
|
+
$metadata = deserializeMetadata(output);
|
|
2263
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2263
2264
|
response = new __BaseException({
|
|
2264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2265
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2265
2266
|
$fault: "client",
|
|
2266
|
-
$metadata:
|
|
2267
|
+
$metadata: $metadata,
|
|
2267
2268
|
});
|
|
2268
2269
|
throw __decorateServiceException(response, parsedBody);
|
|
2269
2270
|
}
|
|
@@ -2298,7 +2299,7 @@ export var deserializeAws_restJson1ListFiltersCommand = function (output, contex
|
|
|
2298
2299
|
});
|
|
2299
2300
|
}); };
|
|
2300
2301
|
var deserializeAws_restJson1ListFiltersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2301
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2302
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2302
2303
|
var _c;
|
|
2303
2304
|
return __generator(this, function (_d) {
|
|
2304
2305
|
switch (_d.label) {
|
|
@@ -2308,7 +2309,6 @@ var deserializeAws_restJson1ListFiltersCommandError = function (output, context)
|
|
|
2308
2309
|
return [4, parseBody(output.body, context)];
|
|
2309
2310
|
case 1:
|
|
2310
2311
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2311
|
-
errorCode = "UnknownError";
|
|
2312
2312
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
2313
|
_b = errorCode;
|
|
2314
2314
|
switch (_b) {
|
|
@@ -2332,10 +2332,12 @@ var deserializeAws_restJson1ListFiltersCommandError = function (output, context)
|
|
|
2332
2332
|
case 9: throw _d.sent();
|
|
2333
2333
|
case 10:
|
|
2334
2334
|
parsedBody = parsedOutput.body;
|
|
2335
|
+
$metadata = deserializeMetadata(output);
|
|
2336
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2335
2337
|
response = new __BaseException({
|
|
2336
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2338
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2337
2339
|
$fault: "client",
|
|
2338
|
-
$metadata:
|
|
2340
|
+
$metadata: $metadata,
|
|
2339
2341
|
});
|
|
2340
2342
|
throw __decorateServiceException(response, parsedBody);
|
|
2341
2343
|
}
|
|
@@ -2374,7 +2376,7 @@ export var deserializeAws_restJson1ListFindingAggregationsCommand = function (ou
|
|
|
2374
2376
|
});
|
|
2375
2377
|
}); };
|
|
2376
2378
|
var deserializeAws_restJson1ListFindingAggregationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2377
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2379
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2378
2380
|
var _c;
|
|
2379
2381
|
return __generator(this, function (_d) {
|
|
2380
2382
|
switch (_d.label) {
|
|
@@ -2384,7 +2386,6 @@ var deserializeAws_restJson1ListFindingAggregationsCommandError = function (outp
|
|
|
2384
2386
|
return [4, parseBody(output.body, context)];
|
|
2385
2387
|
case 1:
|
|
2386
2388
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2387
|
-
errorCode = "UnknownError";
|
|
2388
2389
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
2390
|
_b = errorCode;
|
|
2390
2391
|
switch (_b) {
|
|
@@ -2404,10 +2405,12 @@ var deserializeAws_restJson1ListFindingAggregationsCommandError = function (outp
|
|
|
2404
2405
|
case 7: throw _d.sent();
|
|
2405
2406
|
case 8:
|
|
2406
2407
|
parsedBody = parsedOutput.body;
|
|
2408
|
+
$metadata = deserializeMetadata(output);
|
|
2409
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2407
2410
|
response = new __BaseException({
|
|
2408
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2411
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2409
2412
|
$fault: "client",
|
|
2410
|
-
$metadata:
|
|
2413
|
+
$metadata: $metadata,
|
|
2411
2414
|
});
|
|
2412
2415
|
throw __decorateServiceException(response, parsedBody);
|
|
2413
2416
|
}
|
|
@@ -2442,7 +2445,7 @@ export var deserializeAws_restJson1ListFindingsCommand = function (output, conte
|
|
|
2442
2445
|
});
|
|
2443
2446
|
}); };
|
|
2444
2447
|
var deserializeAws_restJson1ListFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2445
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2448
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2446
2449
|
var _c;
|
|
2447
2450
|
return __generator(this, function (_d) {
|
|
2448
2451
|
switch (_d.label) {
|
|
@@ -2452,7 +2455,6 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
|
|
|
2452
2455
|
return [4, parseBody(output.body, context)];
|
|
2453
2456
|
case 1:
|
|
2454
2457
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2455
|
-
errorCode = "UnknownError";
|
|
2456
2458
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
2459
|
_b = errorCode;
|
|
2458
2460
|
switch (_b) {
|
|
@@ -2472,10 +2474,12 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
|
|
|
2472
2474
|
case 7: throw _d.sent();
|
|
2473
2475
|
case 8:
|
|
2474
2476
|
parsedBody = parsedOutput.body;
|
|
2477
|
+
$metadata = deserializeMetadata(output);
|
|
2478
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2475
2479
|
response = new __BaseException({
|
|
2476
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2480
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2477
2481
|
$fault: "client",
|
|
2478
|
-
$metadata:
|
|
2482
|
+
$metadata: $metadata,
|
|
2479
2483
|
});
|
|
2480
2484
|
throw __decorateServiceException(response, parsedBody);
|
|
2481
2485
|
}
|
|
@@ -2510,7 +2514,7 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
2510
2514
|
});
|
|
2511
2515
|
}); };
|
|
2512
2516
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2513
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2517
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2514
2518
|
var _c;
|
|
2515
2519
|
return __generator(this, function (_d) {
|
|
2516
2520
|
switch (_d.label) {
|
|
@@ -2520,7 +2524,6 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
2520
2524
|
return [4, parseBody(output.body, context)];
|
|
2521
2525
|
case 1:
|
|
2522
2526
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2523
|
-
errorCode = "UnknownError";
|
|
2524
2527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2525
2528
|
_b = errorCode;
|
|
2526
2529
|
switch (_b) {
|
|
@@ -2544,10 +2547,12 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
2544
2547
|
case 9: throw _d.sent();
|
|
2545
2548
|
case 10:
|
|
2546
2549
|
parsedBody = parsedOutput.body;
|
|
2550
|
+
$metadata = deserializeMetadata(output);
|
|
2551
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2547
2552
|
response = new __BaseException({
|
|
2548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2549
2554
|
$fault: "client",
|
|
2550
|
-
$metadata:
|
|
2555
|
+
$metadata: $metadata,
|
|
2551
2556
|
});
|
|
2552
2557
|
throw __decorateServiceException(response, parsedBody);
|
|
2553
2558
|
}
|
|
@@ -2578,7 +2583,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2578
2583
|
});
|
|
2579
2584
|
}); };
|
|
2580
2585
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2581
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2586
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2582
2587
|
var _c;
|
|
2583
2588
|
return __generator(this, function (_d) {
|
|
2584
2589
|
switch (_d.label) {
|
|
@@ -2588,7 +2593,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2588
2593
|
return [4, parseBody(output.body, context)];
|
|
2589
2594
|
case 1:
|
|
2590
2595
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2591
|
-
errorCode = "UnknownError";
|
|
2592
2596
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2597
|
_b = errorCode;
|
|
2594
2598
|
switch (_b) {
|
|
@@ -2612,10 +2616,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2612
2616
|
case 9: throw _d.sent();
|
|
2613
2617
|
case 10:
|
|
2614
2618
|
parsedBody = parsedOutput.body;
|
|
2619
|
+
$metadata = deserializeMetadata(output);
|
|
2620
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2615
2621
|
response = new __BaseException({
|
|
2616
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2617
2623
|
$fault: "client",
|
|
2618
|
-
$metadata:
|
|
2624
|
+
$metadata: $metadata,
|
|
2619
2625
|
});
|
|
2620
2626
|
throw __decorateServiceException(response, parsedBody);
|
|
2621
2627
|
}
|
|
@@ -2650,7 +2656,7 @@ export var deserializeAws_restJson1ListUsageTotalsCommand = function (output, co
|
|
|
2650
2656
|
});
|
|
2651
2657
|
}); };
|
|
2652
2658
|
var deserializeAws_restJson1ListUsageTotalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2653
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2659
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2654
2660
|
var _c;
|
|
2655
2661
|
return __generator(this, function (_d) {
|
|
2656
2662
|
switch (_d.label) {
|
|
@@ -2660,7 +2666,6 @@ var deserializeAws_restJson1ListUsageTotalsCommandError = function (output, cont
|
|
|
2660
2666
|
return [4, parseBody(output.body, context)];
|
|
2661
2667
|
case 1:
|
|
2662
2668
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2663
|
-
errorCode = "UnknownError";
|
|
2664
2669
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2665
2670
|
_b = errorCode;
|
|
2666
2671
|
switch (_b) {
|
|
@@ -2684,10 +2689,12 @@ var deserializeAws_restJson1ListUsageTotalsCommandError = function (output, cont
|
|
|
2684
2689
|
case 9: throw _d.sent();
|
|
2685
2690
|
case 10:
|
|
2686
2691
|
parsedBody = parsedOutput.body;
|
|
2692
|
+
$metadata = deserializeMetadata(output);
|
|
2693
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2687
2694
|
response = new __BaseException({
|
|
2688
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2689
2696
|
$fault: "client",
|
|
2690
|
-
$metadata:
|
|
2697
|
+
$metadata: $metadata,
|
|
2691
2698
|
});
|
|
2692
2699
|
throw __decorateServiceException(response, parsedBody);
|
|
2693
2700
|
}
|
|
@@ -2712,7 +2719,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2712
2719
|
});
|
|
2713
2720
|
}); };
|
|
2714
2721
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2715
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2722
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2716
2723
|
var _c;
|
|
2717
2724
|
return __generator(this, function (_d) {
|
|
2718
2725
|
switch (_d.label) {
|
|
@@ -2722,7 +2729,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2722
2729
|
return [4, parseBody(output.body, context)];
|
|
2723
2730
|
case 1:
|
|
2724
2731
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2725
|
-
errorCode = "UnknownError";
|
|
2726
2732
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2727
2733
|
_b = errorCode;
|
|
2728
2734
|
switch (_b) {
|
|
@@ -2750,10 +2756,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2750
2756
|
case 11: throw _d.sent();
|
|
2751
2757
|
case 12:
|
|
2752
2758
|
parsedBody = parsedOutput.body;
|
|
2759
|
+
$metadata = deserializeMetadata(output);
|
|
2760
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2753
2761
|
response = new __BaseException({
|
|
2754
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2755
2763
|
$fault: "client",
|
|
2756
|
-
$metadata:
|
|
2764
|
+
$metadata: $metadata,
|
|
2757
2765
|
});
|
|
2758
2766
|
throw __decorateServiceException(response, parsedBody);
|
|
2759
2767
|
}
|
|
@@ -2778,7 +2786,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2778
2786
|
});
|
|
2779
2787
|
}); };
|
|
2780
2788
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2781
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2789
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2782
2790
|
var _c;
|
|
2783
2791
|
return __generator(this, function (_d) {
|
|
2784
2792
|
switch (_d.label) {
|
|
@@ -2788,7 +2796,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2788
2796
|
return [4, parseBody(output.body, context)];
|
|
2789
2797
|
case 1:
|
|
2790
2798
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2791
|
-
errorCode = "UnknownError";
|
|
2792
2799
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2793
2800
|
_b = errorCode;
|
|
2794
2801
|
switch (_b) {
|
|
@@ -2812,10 +2819,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2812
2819
|
case 9: throw _d.sent();
|
|
2813
2820
|
case 10:
|
|
2814
2821
|
parsedBody = parsedOutput.body;
|
|
2822
|
+
$metadata = deserializeMetadata(output);
|
|
2823
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2815
2824
|
response = new __BaseException({
|
|
2816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2817
2826
|
$fault: "client",
|
|
2818
|
-
$metadata:
|
|
2827
|
+
$metadata: $metadata,
|
|
2819
2828
|
});
|
|
2820
2829
|
throw __decorateServiceException(response, parsedBody);
|
|
2821
2830
|
}
|
|
@@ -2846,7 +2855,7 @@ export var deserializeAws_restJson1UpdateFilterCommand = function (output, conte
|
|
|
2846
2855
|
});
|
|
2847
2856
|
}); };
|
|
2848
2857
|
var deserializeAws_restJson1UpdateFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2849
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2858
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2850
2859
|
var _c;
|
|
2851
2860
|
return __generator(this, function (_d) {
|
|
2852
2861
|
switch (_d.label) {
|
|
@@ -2856,7 +2865,6 @@ var deserializeAws_restJson1UpdateFilterCommandError = function (output, context
|
|
|
2856
2865
|
return [4, parseBody(output.body, context)];
|
|
2857
2866
|
case 1:
|
|
2858
2867
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2859
|
-
errorCode = "UnknownError";
|
|
2860
2868
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2861
2869
|
_b = errorCode;
|
|
2862
2870
|
switch (_b) {
|
|
@@ -2884,10 +2892,12 @@ var deserializeAws_restJson1UpdateFilterCommandError = function (output, context
|
|
|
2884
2892
|
case 11: throw _d.sent();
|
|
2885
2893
|
case 12:
|
|
2886
2894
|
parsedBody = parsedOutput.body;
|
|
2895
|
+
$metadata = deserializeMetadata(output);
|
|
2896
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2887
2897
|
response = new __BaseException({
|
|
2888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2889
2899
|
$fault: "client",
|
|
2890
|
-
$metadata:
|
|
2900
|
+
$metadata: $metadata,
|
|
2891
2901
|
});
|
|
2892
2902
|
throw __decorateServiceException(response, parsedBody);
|
|
2893
2903
|
}
|
|
@@ -2918,7 +2928,7 @@ export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = func
|
|
|
2918
2928
|
});
|
|
2919
2929
|
}); };
|
|
2920
2930
|
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2921
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2931
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2922
2932
|
var _c;
|
|
2923
2933
|
return __generator(this, function (_d) {
|
|
2924
2934
|
switch (_d.label) {
|
|
@@ -2928,7 +2938,6 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
2928
2938
|
return [4, parseBody(output.body, context)];
|
|
2929
2939
|
case 1:
|
|
2930
2940
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2931
|
-
errorCode = "UnknownError";
|
|
2932
2941
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2933
2942
|
_b = errorCode;
|
|
2934
2943
|
switch (_b) {
|
|
@@ -2952,10 +2961,12 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
2952
2961
|
case 9: throw _d.sent();
|
|
2953
2962
|
case 10:
|
|
2954
2963
|
parsedBody = parsedOutput.body;
|
|
2964
|
+
$metadata = deserializeMetadata(output);
|
|
2965
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2955
2966
|
response = new __BaseException({
|
|
2956
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2957
2968
|
$fault: "client",
|
|
2958
|
-
$metadata:
|
|
2969
|
+
$metadata: $metadata,
|
|
2959
2970
|
});
|
|
2960
2971
|
throw __decorateServiceException(response, parsedBody);
|
|
2961
2972
|
}
|
|
@@ -3076,7 +3087,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3076
3087
|
});
|
|
3077
3088
|
}); };
|
|
3078
3089
|
var serializeAws_restJson1AccountAggregation = function (input, context) {
|
|
3079
|
-
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 }));
|
|
3080
3091
|
};
|
|
3081
3092
|
var serializeAws_restJson1AccountIdSet = function (input, context) {
|
|
3082
3093
|
return input
|
|
@@ -3113,56 +3124,43 @@ var serializeAws_restJson1AggregationRequest = function (input, context) {
|
|
|
3113
3124
|
});
|
|
3114
3125
|
};
|
|
3115
3126
|
var serializeAws_restJson1AmiAggregation = function (input, context) {
|
|
3116
|
-
return __assign(__assign(__assign({}, (input.amis
|
|
3117
|
-
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 }));
|
|
3118
3128
|
};
|
|
3119
3129
|
var serializeAws_restJson1AutoEnable = function (input, context) {
|
|
3120
|
-
return __assign(__assign({}, (input.ec2
|
|
3130
|
+
return __assign(__assign({}, (input.ec2 != null && { ec2: input.ec2 })), (input.ecr != null && { ecr: input.ecr }));
|
|
3121
3131
|
};
|
|
3122
3132
|
var serializeAws_restJson1AwsEcrContainerAggregation = function (input, context) {
|
|
3123
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.architectures
|
|
3124
|
-
input.architectures !== null && {
|
|
3133
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.architectures != null && {
|
|
3125
3134
|
architectures: serializeAws_restJson1StringFilterList(input.architectures, context),
|
|
3126
|
-
})), (input.imageShas
|
|
3127
|
-
input.imageShas !== null && { imageShas: serializeAws_restJson1StringFilterList(input.imageShas, context) })), (input.imageTags !== undefined &&
|
|
3128
|
-
input.imageTags !== null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) })), (input.repositories !== undefined &&
|
|
3129
|
-
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 && {
|
|
3130
3136
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
3131
|
-
})), (input.resourceIds
|
|
3132
|
-
input.resourceIds !== null && {
|
|
3137
|
+
})), (input.resourceIds != null && {
|
|
3133
3138
|
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
3134
|
-
})), (input.sortBy
|
|
3139
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3135
3140
|
};
|
|
3136
3141
|
var serializeAws_restJson1CoverageFilterCriteria = function (input, context) {
|
|
3137
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountId
|
|
3138
|
-
input.accountId !== null && {
|
|
3142
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountId != null && {
|
|
3139
3143
|
accountId: serializeAws_restJson1CoverageStringFilterList(input.accountId, context),
|
|
3140
|
-
})), (input.ec2InstanceTags
|
|
3141
|
-
input.ec2InstanceTags !== null && {
|
|
3144
|
+
})), (input.ec2InstanceTags != null && {
|
|
3142
3145
|
ec2InstanceTags: serializeAws_restJson1CoverageMapFilterList(input.ec2InstanceTags, context),
|
|
3143
|
-
})), (input.ecrImageTags
|
|
3144
|
-
input.ecrImageTags !== null && {
|
|
3146
|
+
})), (input.ecrImageTags != null && {
|
|
3145
3147
|
ecrImageTags: serializeAws_restJson1CoverageStringFilterList(input.ecrImageTags, context),
|
|
3146
|
-
})), (input.ecrRepositoryName
|
|
3147
|
-
input.ecrRepositoryName !== null && {
|
|
3148
|
+
})), (input.ecrRepositoryName != null && {
|
|
3148
3149
|
ecrRepositoryName: serializeAws_restJson1CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
3149
|
-
})), (input.resourceId
|
|
3150
|
-
input.resourceId !== null && {
|
|
3150
|
+
})), (input.resourceId != null && {
|
|
3151
3151
|
resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
|
|
3152
|
-
})), (input.resourceType
|
|
3153
|
-
input.resourceType !== null && {
|
|
3152
|
+
})), (input.resourceType != null && {
|
|
3154
3153
|
resourceType: serializeAws_restJson1CoverageStringFilterList(input.resourceType, context),
|
|
3155
|
-
})), (input.scanStatusCode
|
|
3156
|
-
input.scanStatusCode !== null && {
|
|
3154
|
+
})), (input.scanStatusCode != null && {
|
|
3157
3155
|
scanStatusCode: serializeAws_restJson1CoverageStringFilterList(input.scanStatusCode, context),
|
|
3158
|
-
})), (input.scanStatusReason
|
|
3159
|
-
input.scanStatusReason !== null && {
|
|
3156
|
+
})), (input.scanStatusReason != null && {
|
|
3160
3157
|
scanStatusReason: serializeAws_restJson1CoverageStringFilterList(input.scanStatusReason, context),
|
|
3161
|
-
})), (input.scanType
|
|
3162
|
-
|
|
3158
|
+
})), (input.scanType != null && {
|
|
3159
|
+
scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context),
|
|
3160
|
+
}));
|
|
3163
3161
|
};
|
|
3164
3162
|
var serializeAws_restJson1CoverageMapFilter = function (input, context) {
|
|
3165
|
-
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 }));
|
|
3166
3164
|
};
|
|
3167
3165
|
var serializeAws_restJson1CoverageMapFilterList = function (input, context) {
|
|
3168
3166
|
return input
|
|
@@ -3175,7 +3173,7 @@ var serializeAws_restJson1CoverageMapFilterList = function (input, context) {
|
|
|
3175
3173
|
});
|
|
3176
3174
|
};
|
|
3177
3175
|
var serializeAws_restJson1CoverageStringFilter = function (input, context) {
|
|
3178
|
-
return __assign(__assign({}, (input.comparison
|
|
3176
|
+
return __assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.value != null && { value: input.value }));
|
|
3179
3177
|
};
|
|
3180
3178
|
var serializeAws_restJson1CoverageStringFilterList = function (input, context) {
|
|
3181
3179
|
return input
|
|
@@ -3188,9 +3186,7 @@ var serializeAws_restJson1CoverageStringFilterList = function (input, context) {
|
|
|
3188
3186
|
});
|
|
3189
3187
|
};
|
|
3190
3188
|
var serializeAws_restJson1DateFilter = function (input, context) {
|
|
3191
|
-
return __assign(__assign({}, (input.endInclusive
|
|
3192
|
-
input.endInclusive !== null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) })), (input.startInclusive !== undefined &&
|
|
3193
|
-
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) }));
|
|
3194
3190
|
};
|
|
3195
3191
|
var serializeAws_restJson1DateFilterList = function (input, context) {
|
|
3196
3192
|
return input
|
|
@@ -3203,7 +3199,7 @@ var serializeAws_restJson1DateFilterList = function (input, context) {
|
|
|
3203
3199
|
});
|
|
3204
3200
|
};
|
|
3205
3201
|
var serializeAws_restJson1Destination = function (input, context) {
|
|
3206
|
-
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 }));
|
|
3207
3203
|
};
|
|
3208
3204
|
var serializeAws_restJson1DisableResourceTypeList = function (input, context) {
|
|
3209
3205
|
return input
|
|
@@ -3216,17 +3212,13 @@ var serializeAws_restJson1DisableResourceTypeList = function (input, context) {
|
|
|
3216
3212
|
});
|
|
3217
3213
|
};
|
|
3218
3214
|
var serializeAws_restJson1Ec2InstanceAggregation = function (input, context) {
|
|
3219
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amis
|
|
3220
|
-
input.amis !== null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) })), (input.instanceIds !== undefined &&
|
|
3221
|
-
input.instanceIds !== null && {
|
|
3215
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) })), (input.instanceIds != null && {
|
|
3222
3216
|
instanceIds: serializeAws_restJson1StringFilterList(input.instanceIds, context),
|
|
3223
|
-
})), (input.instanceTags
|
|
3224
|
-
input.instanceTags !== null && {
|
|
3217
|
+
})), (input.instanceTags != null && {
|
|
3225
3218
|
instanceTags: serializeAws_restJson1MapFilterList(input.instanceTags, context),
|
|
3226
|
-
})), (input.operatingSystems
|
|
3227
|
-
input.operatingSystems !== null && {
|
|
3219
|
+
})), (input.operatingSystems != null && {
|
|
3228
3220
|
operatingSystems: serializeAws_restJson1StringFilterList(input.operatingSystems, context),
|
|
3229
|
-
})), (input.sortBy
|
|
3221
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3230
3222
|
};
|
|
3231
3223
|
var serializeAws_restJson1EnableResourceTypeList = function (input, context) {
|
|
3232
3224
|
return input
|
|
@@ -3249,106 +3241,72 @@ var serializeAws_restJson1FilterArnList = function (input, context) {
|
|
|
3249
3241
|
});
|
|
3250
3242
|
};
|
|
3251
3243
|
var serializeAws_restJson1FilterCriteria = function (input, context) {
|
|
3252
|
-
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
|
|
3253
|
-
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 && {
|
|
3254
3245
|
awsAccountId: serializeAws_restJson1StringFilterList(input.awsAccountId, context),
|
|
3255
|
-
})), (input.componentId
|
|
3256
|
-
input.componentId !== null && {
|
|
3246
|
+
})), (input.componentId != null && {
|
|
3257
3247
|
componentId: serializeAws_restJson1StringFilterList(input.componentId, context),
|
|
3258
|
-
})), (input.componentType
|
|
3259
|
-
input.componentType !== null && {
|
|
3248
|
+
})), (input.componentType != null && {
|
|
3260
3249
|
componentType: serializeAws_restJson1StringFilterList(input.componentType, context),
|
|
3261
|
-
})), (input.ec2InstanceImageId
|
|
3262
|
-
input.ec2InstanceImageId !== null && {
|
|
3250
|
+
})), (input.ec2InstanceImageId != null && {
|
|
3263
3251
|
ec2InstanceImageId: serializeAws_restJson1StringFilterList(input.ec2InstanceImageId, context),
|
|
3264
|
-
})), (input.ec2InstanceSubnetId
|
|
3265
|
-
input.ec2InstanceSubnetId !== null && {
|
|
3252
|
+
})), (input.ec2InstanceSubnetId != null && {
|
|
3266
3253
|
ec2InstanceSubnetId: serializeAws_restJson1StringFilterList(input.ec2InstanceSubnetId, context),
|
|
3267
|
-
})), (input.ec2InstanceVpcId
|
|
3268
|
-
input.ec2InstanceVpcId !== null && {
|
|
3254
|
+
})), (input.ec2InstanceVpcId != null && {
|
|
3269
3255
|
ec2InstanceVpcId: serializeAws_restJson1StringFilterList(input.ec2InstanceVpcId, context),
|
|
3270
|
-
})), (input.ecrImageArchitecture
|
|
3271
|
-
input.ecrImageArchitecture !== null && {
|
|
3256
|
+
})), (input.ecrImageArchitecture != null && {
|
|
3272
3257
|
ecrImageArchitecture: serializeAws_restJson1StringFilterList(input.ecrImageArchitecture, context),
|
|
3273
|
-
})), (input.ecrImageHash
|
|
3274
|
-
input.ecrImageHash !== null && {
|
|
3258
|
+
})), (input.ecrImageHash != null && {
|
|
3275
3259
|
ecrImageHash: serializeAws_restJson1StringFilterList(input.ecrImageHash, context),
|
|
3276
|
-
})), (input.ecrImagePushedAt
|
|
3277
|
-
input.ecrImagePushedAt !== null && {
|
|
3260
|
+
})), (input.ecrImagePushedAt != null && {
|
|
3278
3261
|
ecrImagePushedAt: serializeAws_restJson1DateFilterList(input.ecrImagePushedAt, context),
|
|
3279
|
-
})), (input.ecrImageRegistry
|
|
3280
|
-
input.ecrImageRegistry !== null && {
|
|
3262
|
+
})), (input.ecrImageRegistry != null && {
|
|
3281
3263
|
ecrImageRegistry: serializeAws_restJson1StringFilterList(input.ecrImageRegistry, context),
|
|
3282
|
-
})), (input.ecrImageRepositoryName
|
|
3283
|
-
input.ecrImageRepositoryName !== null && {
|
|
3264
|
+
})), (input.ecrImageRepositoryName != null && {
|
|
3284
3265
|
ecrImageRepositoryName: serializeAws_restJson1StringFilterList(input.ecrImageRepositoryName, context),
|
|
3285
|
-
})), (input.ecrImageTags
|
|
3286
|
-
input.ecrImageTags !== null && {
|
|
3266
|
+
})), (input.ecrImageTags != null && {
|
|
3287
3267
|
ecrImageTags: serializeAws_restJson1StringFilterList(input.ecrImageTags, context),
|
|
3288
|
-
})), (input.findingArn
|
|
3289
|
-
input.findingArn !== null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) })), (input.findingStatus !== undefined &&
|
|
3290
|
-
input.findingStatus !== null && {
|
|
3268
|
+
})), (input.findingArn != null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) })), (input.findingStatus != null && {
|
|
3291
3269
|
findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
|
|
3292
|
-
})), (input.findingType
|
|
3293
|
-
input.findingType !== null && {
|
|
3270
|
+
})), (input.findingType != null && {
|
|
3294
3271
|
findingType: serializeAws_restJson1StringFilterList(input.findingType, context),
|
|
3295
|
-
})), (input.firstObservedAt
|
|
3296
|
-
input.firstObservedAt !== null && {
|
|
3272
|
+
})), (input.firstObservedAt != null && {
|
|
3297
3273
|
firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
|
|
3298
|
-
})), (input.inspectorScore
|
|
3299
|
-
input.inspectorScore !== null && {
|
|
3274
|
+
})), (input.inspectorScore != null && {
|
|
3300
3275
|
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
3301
|
-
})), (input.lastObservedAt
|
|
3302
|
-
input.lastObservedAt !== null && {
|
|
3276
|
+
})), (input.lastObservedAt != null && {
|
|
3303
3277
|
lastObservedAt: serializeAws_restJson1DateFilterList(input.lastObservedAt, context),
|
|
3304
|
-
})), (input.networkProtocol
|
|
3305
|
-
input.networkProtocol !== null && {
|
|
3278
|
+
})), (input.networkProtocol != null && {
|
|
3306
3279
|
networkProtocol: serializeAws_restJson1StringFilterList(input.networkProtocol, context),
|
|
3307
|
-
})), (input.portRange
|
|
3308
|
-
input.portRange !== null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) })), (input.relatedVulnerabilities !== undefined &&
|
|
3309
|
-
input.relatedVulnerabilities !== null && {
|
|
3280
|
+
})), (input.portRange != null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) })), (input.relatedVulnerabilities != null && {
|
|
3310
3281
|
relatedVulnerabilities: serializeAws_restJson1StringFilterList(input.relatedVulnerabilities, context),
|
|
3311
|
-
})), (input.resourceId
|
|
3312
|
-
input.resourceId !== null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) })), (input.resourceTags !== undefined &&
|
|
3313
|
-
input.resourceTags !== null && {
|
|
3282
|
+
})), (input.resourceId != null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) })), (input.resourceTags != null && {
|
|
3314
3283
|
resourceTags: serializeAws_restJson1MapFilterList(input.resourceTags, context),
|
|
3315
|
-
})), (input.resourceType
|
|
3316
|
-
input.resourceType !== null && {
|
|
3284
|
+
})), (input.resourceType != null && {
|
|
3317
3285
|
resourceType: serializeAws_restJson1StringFilterList(input.resourceType, context),
|
|
3318
|
-
})), (input.severity
|
|
3319
|
-
input.severity !== null && { severity: serializeAws_restJson1StringFilterList(input.severity, context) })), (input.title !== undefined &&
|
|
3320
|
-
input.title !== null && { title: serializeAws_restJson1StringFilterList(input.title, context) })), (input.updatedAt !== undefined &&
|
|
3321
|
-
input.updatedAt !== null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) })), (input.vendorSeverity !== undefined &&
|
|
3322
|
-
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 && {
|
|
3323
3287
|
vendorSeverity: serializeAws_restJson1StringFilterList(input.vendorSeverity, context),
|
|
3324
|
-
})), (input.vulnerabilityId
|
|
3325
|
-
input.vulnerabilityId !== null && {
|
|
3288
|
+
})), (input.vulnerabilityId != null && {
|
|
3326
3289
|
vulnerabilityId: serializeAws_restJson1StringFilterList(input.vulnerabilityId, context),
|
|
3327
|
-
})), (input.vulnerabilitySource
|
|
3328
|
-
input.vulnerabilitySource !== null && {
|
|
3290
|
+
})), (input.vulnerabilitySource != null && {
|
|
3329
3291
|
vulnerabilitySource: serializeAws_restJson1StringFilterList(input.vulnerabilitySource, context),
|
|
3330
|
-
})), (input.vulnerablePackages
|
|
3331
|
-
input.vulnerablePackages !== null && {
|
|
3292
|
+
})), (input.vulnerablePackages != null && {
|
|
3332
3293
|
vulnerablePackages: serializeAws_restJson1PackageFilterList(input.vulnerablePackages, context),
|
|
3333
3294
|
}));
|
|
3334
3295
|
};
|
|
3335
3296
|
var serializeAws_restJson1FindingTypeAggregation = function (input, context) {
|
|
3336
|
-
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 }));
|
|
3337
3298
|
};
|
|
3338
3299
|
var serializeAws_restJson1ImageLayerAggregation = function (input, context) {
|
|
3339
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.layerHashes
|
|
3340
|
-
input.layerHashes !== null && {
|
|
3300
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.layerHashes != null && {
|
|
3341
3301
|
layerHashes: serializeAws_restJson1StringFilterList(input.layerHashes, context),
|
|
3342
|
-
})), (input.repositories
|
|
3343
|
-
input.repositories !== null && {
|
|
3302
|
+
})), (input.repositories != null && {
|
|
3344
3303
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
3345
|
-
})), (input.resourceIds
|
|
3346
|
-
input.resourceIds !== null && {
|
|
3304
|
+
})), (input.resourceIds != null && {
|
|
3347
3305
|
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
3348
|
-
})), (input.sortBy
|
|
3306
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3349
3307
|
};
|
|
3350
3308
|
var serializeAws_restJson1MapFilter = function (input, context) {
|
|
3351
|
-
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 }));
|
|
3352
3310
|
};
|
|
3353
3311
|
var serializeAws_restJson1MapFilterList = function (input, context) {
|
|
3354
3312
|
return input
|
|
@@ -3371,9 +3329,7 @@ var serializeAws_restJson1MeteringAccountIdList = function (input, context) {
|
|
|
3371
3329
|
});
|
|
3372
3330
|
};
|
|
3373
3331
|
var serializeAws_restJson1NumberFilter = function (input, context) {
|
|
3374
|
-
return __assign(__assign({}, (input.lowerInclusive
|
|
3375
|
-
input.lowerInclusive !== null && { lowerInclusive: __serializeFloat(input.lowerInclusive) })), (input.upperInclusive !== undefined &&
|
|
3376
|
-
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) }));
|
|
3377
3333
|
};
|
|
3378
3334
|
var serializeAws_restJson1NumberFilterList = function (input, context) {
|
|
3379
3335
|
return input
|
|
@@ -3386,21 +3342,16 @@ var serializeAws_restJson1NumberFilterList = function (input, context) {
|
|
|
3386
3342
|
});
|
|
3387
3343
|
};
|
|
3388
3344
|
var serializeAws_restJson1PackageAggregation = function (input, context) {
|
|
3389
|
-
return __assign(__assign(__assign({}, (input.packageNames
|
|
3390
|
-
input.packageNames !== null && {
|
|
3345
|
+
return __assign(__assign(__assign({}, (input.packageNames != null && {
|
|
3391
3346
|
packageNames: serializeAws_restJson1StringFilterList(input.packageNames, context),
|
|
3392
|
-
})), (input.sortBy
|
|
3347
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3393
3348
|
};
|
|
3394
3349
|
var serializeAws_restJson1PackageFilter = function (input, context) {
|
|
3395
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.architecture
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
input.name !== null && { name: serializeAws_restJson1StringFilter(input.name, context) })), (input.release !== undefined &&
|
|
3399
|
-
input.release !== null && { release: serializeAws_restJson1StringFilter(input.release, context) })), (input.sourceLayerHash !== undefined &&
|
|
3400
|
-
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 && {
|
|
3401
3353
|
sourceLayerHash: serializeAws_restJson1StringFilter(input.sourceLayerHash, context),
|
|
3402
|
-
})), (input.version
|
|
3403
|
-
input.version !== null && { version: serializeAws_restJson1StringFilter(input.version, context) }));
|
|
3354
|
+
})), (input.version != null && { version: serializeAws_restJson1StringFilter(input.version, context) }));
|
|
3404
3355
|
};
|
|
3405
3356
|
var serializeAws_restJson1PackageFilterList = function (input, context) {
|
|
3406
3357
|
return input
|
|
@@ -3413,8 +3364,7 @@ var serializeAws_restJson1PackageFilterList = function (input, context) {
|
|
|
3413
3364
|
});
|
|
3414
3365
|
};
|
|
3415
3366
|
var serializeAws_restJson1PortRangeFilter = function (input, context) {
|
|
3416
|
-
return __assign(__assign({}, (input.beginInclusive
|
|
3417
|
-
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 }));
|
|
3418
3368
|
};
|
|
3419
3369
|
var serializeAws_restJson1PortRangeFilterList = function (input, context) {
|
|
3420
3370
|
return input
|
|
@@ -3427,16 +3377,15 @@ var serializeAws_restJson1PortRangeFilterList = function (input, context) {
|
|
|
3427
3377
|
});
|
|
3428
3378
|
};
|
|
3429
3379
|
var serializeAws_restJson1RepositoryAggregation = function (input, context) {
|
|
3430
|
-
return __assign(__assign(__assign({}, (input.repositories
|
|
3431
|
-
input.repositories !== null && {
|
|
3380
|
+
return __assign(__assign(__assign({}, (input.repositories != null && {
|
|
3432
3381
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
3433
|
-
})), (input.sortBy
|
|
3382
|
+
})), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3434
3383
|
};
|
|
3435
3384
|
var serializeAws_restJson1SortCriteria = function (input, context) {
|
|
3436
|
-
return __assign(__assign({}, (input.field
|
|
3385
|
+
return __assign(__assign({}, (input.field != null && { field: input.field })), (input.sortOrder != null && { sortOrder: input.sortOrder }));
|
|
3437
3386
|
};
|
|
3438
3387
|
var serializeAws_restJson1StringFilter = function (input, context) {
|
|
3439
|
-
return __assign(__assign({}, (input.comparison
|
|
3388
|
+
return __assign(__assign({}, (input.comparison != null && { comparison: input.comparison })), (input.value != null && { value: input.value }));
|
|
3440
3389
|
};
|
|
3441
3390
|
var serializeAws_restJson1StringFilterList = function (input, context) {
|
|
3442
3391
|
return input
|
|
@@ -3459,9 +3408,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
3459
3408
|
}, {});
|
|
3460
3409
|
};
|
|
3461
3410
|
var serializeAws_restJson1TitleAggregation = function (input, context) {
|
|
3462
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.resourceType
|
|
3463
|
-
input.titles !== null && { titles: serializeAws_restJson1StringFilterList(input.titles, context) })), (input.vulnerabilityIds !== undefined &&
|
|
3464
|
-
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 && {
|
|
3465
3412
|
vulnerabilityIds: serializeAws_restJson1StringFilterList(input.vulnerabilityIds, context),
|
|
3466
3413
|
}));
|
|
3467
3414
|
};
|
|
@@ -3478,7 +3425,7 @@ var serializeAws_restJson1UsageAccountIdList = function (input, context) {
|
|
|
3478
3425
|
var deserializeAws_restJson1Account = function (output, context) {
|
|
3479
3426
|
return {
|
|
3480
3427
|
accountId: __expectString(output.accountId),
|
|
3481
|
-
resourceStatus: output.resourceStatus
|
|
3428
|
+
resourceStatus: output.resourceStatus != null
|
|
3482
3429
|
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
3483
3430
|
: undefined,
|
|
3484
3431
|
status: __expectString(output.status),
|
|
@@ -3487,7 +3434,7 @@ var deserializeAws_restJson1Account = function (output, context) {
|
|
|
3487
3434
|
var deserializeAws_restJson1AccountAggregationResponse = function (output, context) {
|
|
3488
3435
|
return {
|
|
3489
3436
|
accountId: __expectString(output.accountId),
|
|
3490
|
-
severityCounts: output.severityCounts
|
|
3437
|
+
severityCounts: output.severityCounts != null
|
|
3491
3438
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3492
3439
|
: undefined,
|
|
3493
3440
|
};
|
|
@@ -3506,12 +3453,8 @@ var deserializeAws_restJson1AccountList = function (output, context) {
|
|
|
3506
3453
|
var deserializeAws_restJson1AccountState = function (output, context) {
|
|
3507
3454
|
return {
|
|
3508
3455
|
accountId: __expectString(output.accountId),
|
|
3509
|
-
resourceState: output.resourceState
|
|
3510
|
-
|
|
3511
|
-
: undefined,
|
|
3512
|
-
state: output.state !== undefined && output.state !== null
|
|
3513
|
-
? deserializeAws_restJson1State(output.state, context)
|
|
3514
|
-
: undefined,
|
|
3456
|
+
resourceState: output.resourceState != null ? deserializeAws_restJson1ResourceState(output.resourceState, context) : undefined,
|
|
3457
|
+
state: output.state != null ? deserializeAws_restJson1State(output.state, context) : undefined,
|
|
3515
3458
|
};
|
|
3516
3459
|
};
|
|
3517
3460
|
var deserializeAws_restJson1AccountStateList = function (output, context) {
|
|
@@ -3589,7 +3532,7 @@ var deserializeAws_restJson1AmiAggregationResponse = function (output, context)
|
|
|
3589
3532
|
accountId: __expectString(output.accountId),
|
|
3590
3533
|
affectedInstances: __expectLong(output.affectedInstances),
|
|
3591
3534
|
ami: __expectString(output.ami),
|
|
3592
|
-
severityCounts: output.severityCounts
|
|
3535
|
+
severityCounts: output.severityCounts != null
|
|
3593
3536
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3594
3537
|
: undefined,
|
|
3595
3538
|
};
|
|
@@ -3604,16 +3547,10 @@ var deserializeAws_restJson1AwsEc2InstanceDetails = function (output, context) {
|
|
|
3604
3547
|
return {
|
|
3605
3548
|
iamInstanceProfileArn: __expectString(output.iamInstanceProfileArn),
|
|
3606
3549
|
imageId: __expectString(output.imageId),
|
|
3607
|
-
ipV4Addresses: output.ipV4Addresses
|
|
3608
|
-
|
|
3609
|
-
: undefined,
|
|
3610
|
-
ipV6Addresses: output.ipV6Addresses !== undefined && output.ipV6Addresses !== null
|
|
3611
|
-
? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context)
|
|
3612
|
-
: undefined,
|
|
3550
|
+
ipV4Addresses: output.ipV4Addresses != null ? deserializeAws_restJson1IpV4AddressList(output.ipV4Addresses, context) : undefined,
|
|
3551
|
+
ipV6Addresses: output.ipV6Addresses != null ? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context) : undefined,
|
|
3613
3552
|
keyName: __expectString(output.keyName),
|
|
3614
|
-
launchedAt: output.launchedAt
|
|
3615
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.launchedAt)))
|
|
3616
|
-
: undefined,
|
|
3553
|
+
launchedAt: output.launchedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.launchedAt))) : undefined,
|
|
3617
3554
|
platform: __expectString(output.platform),
|
|
3618
3555
|
subnetId: __expectString(output.subnetId),
|
|
3619
3556
|
type: __expectString(output.type),
|
|
@@ -3625,12 +3562,10 @@ var deserializeAws_restJson1AwsEcrContainerAggregationResponse = function (outpu
|
|
|
3625
3562
|
accountId: __expectString(output.accountId),
|
|
3626
3563
|
architecture: __expectString(output.architecture),
|
|
3627
3564
|
imageSha: __expectString(output.imageSha),
|
|
3628
|
-
imageTags: output.imageTags
|
|
3629
|
-
? deserializeAws_restJson1StringList(output.imageTags, context)
|
|
3630
|
-
: undefined,
|
|
3565
|
+
imageTags: output.imageTags != null ? deserializeAws_restJson1StringList(output.imageTags, context) : undefined,
|
|
3631
3566
|
repository: __expectString(output.repository),
|
|
3632
3567
|
resourceId: __expectString(output.resourceId),
|
|
3633
|
-
severityCounts: output.severityCounts
|
|
3568
|
+
severityCounts: output.severityCounts != null
|
|
3634
3569
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3635
3570
|
: undefined,
|
|
3636
3571
|
};
|
|
@@ -3640,13 +3575,9 @@ var deserializeAws_restJson1AwsEcrContainerImageDetails = function (output, cont
|
|
|
3640
3575
|
architecture: __expectString(output.architecture),
|
|
3641
3576
|
author: __expectString(output.author),
|
|
3642
3577
|
imageHash: __expectString(output.imageHash),
|
|
3643
|
-
imageTags: output.imageTags
|
|
3644
|
-
? deserializeAws_restJson1ImageTagList(output.imageTags, context)
|
|
3645
|
-
: undefined,
|
|
3578
|
+
imageTags: output.imageTags != null ? deserializeAws_restJson1ImageTagList(output.imageTags, context) : undefined,
|
|
3646
3579
|
platform: __expectString(output.platform),
|
|
3647
|
-
pushedAt: output.pushedAt
|
|
3648
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt)))
|
|
3649
|
-
: undefined,
|
|
3580
|
+
pushedAt: output.pushedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt))) : undefined,
|
|
3650
3581
|
registry: __expectString(output.registry),
|
|
3651
3582
|
repositoryName: __expectString(output.repositoryName),
|
|
3652
3583
|
};
|
|
@@ -3672,13 +3603,11 @@ var deserializeAws_restJson1CoveredResource = function (output, context) {
|
|
|
3672
3603
|
return {
|
|
3673
3604
|
accountId: __expectString(output.accountId),
|
|
3674
3605
|
resourceId: __expectString(output.resourceId),
|
|
3675
|
-
resourceMetadata: output.resourceMetadata
|
|
3606
|
+
resourceMetadata: output.resourceMetadata != null
|
|
3676
3607
|
? deserializeAws_restJson1ResourceScanMetadata(output.resourceMetadata, context)
|
|
3677
3608
|
: undefined,
|
|
3678
3609
|
resourceType: __expectString(output.resourceType),
|
|
3679
|
-
scanStatus: output.scanStatus
|
|
3680
|
-
? deserializeAws_restJson1ScanStatus(output.scanStatus, context)
|
|
3681
|
-
: undefined,
|
|
3610
|
+
scanStatus: output.scanStatus != null ? deserializeAws_restJson1ScanStatus(output.scanStatus, context) : undefined,
|
|
3682
3611
|
scanType: __expectString(output.scanType),
|
|
3683
3612
|
};
|
|
3684
3613
|
};
|
|
@@ -3720,7 +3649,7 @@ var deserializeAws_restJson1CvssScoreAdjustmentList = function (output, context)
|
|
|
3720
3649
|
};
|
|
3721
3650
|
var deserializeAws_restJson1CvssScoreDetails = function (output, context) {
|
|
3722
3651
|
return {
|
|
3723
|
-
adjustments: output.adjustments
|
|
3652
|
+
adjustments: output.adjustments != null
|
|
3724
3653
|
? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
|
|
3725
3654
|
: undefined,
|
|
3726
3655
|
cvssSource: __expectString(output.cvssSource),
|
|
@@ -3743,10 +3672,10 @@ var deserializeAws_restJson1CvssScoreList = function (output, context) {
|
|
|
3743
3672
|
};
|
|
3744
3673
|
var deserializeAws_restJson1DateFilter = function (output, context) {
|
|
3745
3674
|
return {
|
|
3746
|
-
endInclusive: output.endInclusive
|
|
3675
|
+
endInclusive: output.endInclusive != null
|
|
3747
3676
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endInclusive)))
|
|
3748
3677
|
: undefined,
|
|
3749
|
-
startInclusive: output.startInclusive
|
|
3678
|
+
startInclusive: output.startInclusive != null
|
|
3750
3679
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startInclusive)))
|
|
3751
3680
|
: undefined,
|
|
3752
3681
|
};
|
|
@@ -3797,12 +3726,10 @@ var deserializeAws_restJson1Ec2InstanceAggregationResponse = function (output, c
|
|
|
3797
3726
|
accountId: __expectString(output.accountId),
|
|
3798
3727
|
ami: __expectString(output.ami),
|
|
3799
3728
|
instanceId: __expectString(output.instanceId),
|
|
3800
|
-
instanceTags: output.instanceTags
|
|
3801
|
-
? deserializeAws_restJson1TagMap(output.instanceTags, context)
|
|
3802
|
-
: undefined,
|
|
3729
|
+
instanceTags: output.instanceTags != null ? deserializeAws_restJson1TagMap(output.instanceTags, context) : undefined,
|
|
3803
3730
|
networkFindings: __expectLong(output.networkFindings),
|
|
3804
3731
|
operatingSystem: __expectString(output.operatingSystem),
|
|
3805
|
-
severityCounts: output.severityCounts
|
|
3732
|
+
severityCounts: output.severityCounts != null
|
|
3806
3733
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3807
3734
|
: undefined,
|
|
3808
3735
|
};
|
|
@@ -3811,16 +3738,12 @@ var deserializeAws_restJson1Ec2Metadata = function (output, context) {
|
|
|
3811
3738
|
return {
|
|
3812
3739
|
amiId: __expectString(output.amiId),
|
|
3813
3740
|
platform: __expectString(output.platform),
|
|
3814
|
-
tags: output.tags
|
|
3815
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3816
|
-
: undefined,
|
|
3741
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3817
3742
|
};
|
|
3818
3743
|
};
|
|
3819
3744
|
var deserializeAws_restJson1EcrContainerImageMetadata = function (output, context) {
|
|
3820
3745
|
return {
|
|
3821
|
-
tags: output.tags
|
|
3822
|
-
? deserializeAws_restJson1TagList(output.tags, context)
|
|
3823
|
-
: undefined,
|
|
3746
|
+
tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
|
|
3824
3747
|
};
|
|
3825
3748
|
};
|
|
3826
3749
|
var deserializeAws_restJson1EcrRepositoryMetadata = function (output, context) {
|
|
@@ -3834,7 +3757,7 @@ var deserializeAws_restJson1FailedAccount = function (output, context) {
|
|
|
3834
3757
|
accountId: __expectString(output.accountId),
|
|
3835
3758
|
errorCode: __expectString(output.errorCode),
|
|
3836
3759
|
errorMessage: __expectString(output.errorMessage),
|
|
3837
|
-
resourceStatus: output.resourceStatus
|
|
3760
|
+
resourceStatus: output.resourceStatus != null
|
|
3838
3761
|
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
3839
3762
|
: undefined,
|
|
3840
3763
|
status: __expectString(output.status),
|
|
@@ -3855,117 +3778,83 @@ var deserializeAws_restJson1Filter = function (output, context) {
|
|
|
3855
3778
|
return {
|
|
3856
3779
|
action: __expectString(output.action),
|
|
3857
3780
|
arn: __expectString(output.arn),
|
|
3858
|
-
createdAt: output.createdAt
|
|
3859
|
-
|
|
3860
|
-
: undefined,
|
|
3861
|
-
criteria: output.criteria !== undefined && output.criteria !== null
|
|
3862
|
-
? deserializeAws_restJson1FilterCriteria(output.criteria, context)
|
|
3863
|
-
: undefined,
|
|
3781
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3782
|
+
criteria: output.criteria != null ? deserializeAws_restJson1FilterCriteria(output.criteria, context) : undefined,
|
|
3864
3783
|
description: __expectString(output.description),
|
|
3865
3784
|
name: __expectString(output.name),
|
|
3866
3785
|
ownerId: __expectString(output.ownerId),
|
|
3867
3786
|
reason: __expectString(output.reason),
|
|
3868
|
-
tags: output.tags
|
|
3869
|
-
|
|
3870
|
-
: undefined,
|
|
3871
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3872
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
3873
|
-
: undefined,
|
|
3787
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3788
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3874
3789
|
};
|
|
3875
3790
|
};
|
|
3876
3791
|
var deserializeAws_restJson1FilterCriteria = function (output, context) {
|
|
3877
3792
|
return {
|
|
3878
|
-
awsAccountId: output.awsAccountId
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
componentId: output.componentId !== undefined && output.componentId !== null
|
|
3882
|
-
? deserializeAws_restJson1StringFilterList(output.componentId, context)
|
|
3883
|
-
: undefined,
|
|
3884
|
-
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
|
|
3885
3796
|
? deserializeAws_restJson1StringFilterList(output.componentType, context)
|
|
3886
3797
|
: undefined,
|
|
3887
|
-
ec2InstanceImageId: output.ec2InstanceImageId
|
|
3798
|
+
ec2InstanceImageId: output.ec2InstanceImageId != null
|
|
3888
3799
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceImageId, context)
|
|
3889
3800
|
: undefined,
|
|
3890
|
-
ec2InstanceSubnetId: output.ec2InstanceSubnetId
|
|
3801
|
+
ec2InstanceSubnetId: output.ec2InstanceSubnetId != null
|
|
3891
3802
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceSubnetId, context)
|
|
3892
3803
|
: undefined,
|
|
3893
|
-
ec2InstanceVpcId: output.ec2InstanceVpcId
|
|
3804
|
+
ec2InstanceVpcId: output.ec2InstanceVpcId != null
|
|
3894
3805
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceVpcId, context)
|
|
3895
3806
|
: undefined,
|
|
3896
|
-
ecrImageArchitecture: output.ecrImageArchitecture
|
|
3807
|
+
ecrImageArchitecture: output.ecrImageArchitecture != null
|
|
3897
3808
|
? deserializeAws_restJson1StringFilterList(output.ecrImageArchitecture, context)
|
|
3898
3809
|
: undefined,
|
|
3899
|
-
ecrImageHash: output.ecrImageHash
|
|
3900
|
-
|
|
3901
|
-
: undefined,
|
|
3902
|
-
ecrImagePushedAt: output.ecrImagePushedAt !== undefined && output.ecrImagePushedAt !== null
|
|
3810
|
+
ecrImageHash: output.ecrImageHash != null ? deserializeAws_restJson1StringFilterList(output.ecrImageHash, context) : undefined,
|
|
3811
|
+
ecrImagePushedAt: output.ecrImagePushedAt != null
|
|
3903
3812
|
? deserializeAws_restJson1DateFilterList(output.ecrImagePushedAt, context)
|
|
3904
3813
|
: undefined,
|
|
3905
|
-
ecrImageRegistry: output.ecrImageRegistry
|
|
3814
|
+
ecrImageRegistry: output.ecrImageRegistry != null
|
|
3906
3815
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRegistry, context)
|
|
3907
3816
|
: undefined,
|
|
3908
|
-
ecrImageRepositoryName: output.ecrImageRepositoryName
|
|
3817
|
+
ecrImageRepositoryName: output.ecrImageRepositoryName != null
|
|
3909
3818
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
|
|
3910
3819
|
: undefined,
|
|
3911
|
-
ecrImageTags: output.ecrImageTags
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
findingArn: output.findingArn !== undefined && output.findingArn !== null
|
|
3915
|
-
? deserializeAws_restJson1StringFilterList(output.findingArn, context)
|
|
3916
|
-
: undefined,
|
|
3917
|
-
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
|
|
3918
3823
|
? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
|
|
3919
3824
|
: undefined,
|
|
3920
|
-
findingType: output.findingType
|
|
3921
|
-
|
|
3922
|
-
: undefined,
|
|
3923
|
-
firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
|
|
3825
|
+
findingType: output.findingType != null ? deserializeAws_restJson1StringFilterList(output.findingType, context) : undefined,
|
|
3826
|
+
firstObservedAt: output.firstObservedAt != null
|
|
3924
3827
|
? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
|
|
3925
3828
|
: undefined,
|
|
3926
|
-
inspectorScore: output.inspectorScore
|
|
3829
|
+
inspectorScore: output.inspectorScore != null
|
|
3927
3830
|
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3928
3831
|
: undefined,
|
|
3929
|
-
lastObservedAt: output.lastObservedAt
|
|
3832
|
+
lastObservedAt: output.lastObservedAt != null
|
|
3930
3833
|
? deserializeAws_restJson1DateFilterList(output.lastObservedAt, context)
|
|
3931
3834
|
: undefined,
|
|
3932
|
-
networkProtocol: output.networkProtocol
|
|
3835
|
+
networkProtocol: output.networkProtocol != null
|
|
3933
3836
|
? deserializeAws_restJson1StringFilterList(output.networkProtocol, context)
|
|
3934
3837
|
: undefined,
|
|
3935
|
-
portRange: output.portRange
|
|
3936
|
-
|
|
3937
|
-
: undefined,
|
|
3938
|
-
relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
|
|
3838
|
+
portRange: output.portRange != null ? deserializeAws_restJson1PortRangeFilterList(output.portRange, context) : undefined,
|
|
3839
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3939
3840
|
? deserializeAws_restJson1StringFilterList(output.relatedVulnerabilities, context)
|
|
3940
3841
|
: undefined,
|
|
3941
|
-
resourceId: output.resourceId
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
? deserializeAws_restJson1StringFilterList(output.resourceType, context)
|
|
3949
|
-
: undefined,
|
|
3950
|
-
severity: output.severity !== undefined && output.severity !== null
|
|
3951
|
-
? deserializeAws_restJson1StringFilterList(output.severity, context)
|
|
3952
|
-
: undefined,
|
|
3953
|
-
title: output.title !== undefined && output.title !== null
|
|
3954
|
-
? deserializeAws_restJson1StringFilterList(output.title, context)
|
|
3955
|
-
: undefined,
|
|
3956
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3957
|
-
? deserializeAws_restJson1DateFilterList(output.updatedAt, context)
|
|
3958
|
-
: undefined,
|
|
3959
|
-
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
|
|
3960
3849
|
? deserializeAws_restJson1StringFilterList(output.vendorSeverity, context)
|
|
3961
3850
|
: undefined,
|
|
3962
|
-
vulnerabilityId: output.vulnerabilityId
|
|
3851
|
+
vulnerabilityId: output.vulnerabilityId != null
|
|
3963
3852
|
? deserializeAws_restJson1StringFilterList(output.vulnerabilityId, context)
|
|
3964
3853
|
: undefined,
|
|
3965
|
-
vulnerabilitySource: output.vulnerabilitySource
|
|
3854
|
+
vulnerabilitySource: output.vulnerabilitySource != null
|
|
3966
3855
|
? deserializeAws_restJson1StringFilterList(output.vulnerabilitySource, context)
|
|
3967
3856
|
: undefined,
|
|
3968
|
-
vulnerablePackages: output.vulnerablePackages
|
|
3857
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
3969
3858
|
? deserializeAws_restJson1PackageFilterList(output.vulnerablePackages, context)
|
|
3970
3859
|
: undefined,
|
|
3971
3860
|
};
|
|
@@ -3986,35 +3875,29 @@ var deserializeAws_restJson1Finding = function (output, context) {
|
|
|
3986
3875
|
awsAccountId: __expectString(output.awsAccountId),
|
|
3987
3876
|
description: __expectString(output.description),
|
|
3988
3877
|
findingArn: __expectString(output.findingArn),
|
|
3989
|
-
firstObservedAt: output.firstObservedAt
|
|
3878
|
+
firstObservedAt: output.firstObservedAt != null
|
|
3990
3879
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
|
|
3991
3880
|
: undefined,
|
|
3992
3881
|
inspectorScore: __limitedParseDouble(output.inspectorScore),
|
|
3993
|
-
inspectorScoreDetails: output.inspectorScoreDetails
|
|
3882
|
+
inspectorScoreDetails: output.inspectorScoreDetails != null
|
|
3994
3883
|
? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
|
|
3995
3884
|
: undefined,
|
|
3996
|
-
lastObservedAt: output.lastObservedAt
|
|
3885
|
+
lastObservedAt: output.lastObservedAt != null
|
|
3997
3886
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastObservedAt)))
|
|
3998
3887
|
: undefined,
|
|
3999
|
-
networkReachabilityDetails: output.networkReachabilityDetails
|
|
3888
|
+
networkReachabilityDetails: output.networkReachabilityDetails != null
|
|
4000
3889
|
? deserializeAws_restJson1NetworkReachabilityDetails(output.networkReachabilityDetails, context)
|
|
4001
3890
|
: undefined,
|
|
4002
|
-
packageVulnerabilityDetails: output.packageVulnerabilityDetails
|
|
3891
|
+
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
4003
3892
|
? deserializeAws_restJson1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
4004
3893
|
: undefined,
|
|
4005
|
-
remediation: output.remediation
|
|
4006
|
-
|
|
4007
|
-
: undefined,
|
|
4008
|
-
resources: output.resources !== undefined && output.resources !== null
|
|
4009
|
-
? deserializeAws_restJson1ResourceList(output.resources, context)
|
|
4010
|
-
: undefined,
|
|
3894
|
+
remediation: output.remediation != null ? deserializeAws_restJson1Remediation(output.remediation, context) : undefined,
|
|
3895
|
+
resources: output.resources != null ? deserializeAws_restJson1ResourceList(output.resources, context) : undefined,
|
|
4011
3896
|
severity: __expectString(output.severity),
|
|
4012
3897
|
status: __expectString(output.status),
|
|
4013
3898
|
title: __expectString(output.title),
|
|
4014
3899
|
type: __expectString(output.type),
|
|
4015
|
-
updatedAt: output.updatedAt
|
|
4016
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
4017
|
-
: undefined,
|
|
3900
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
4018
3901
|
};
|
|
4019
3902
|
};
|
|
4020
3903
|
var deserializeAws_restJson1FindingList = function (output, context) {
|
|
@@ -4031,7 +3914,7 @@ var deserializeAws_restJson1FindingList = function (output, context) {
|
|
|
4031
3914
|
var deserializeAws_restJson1FindingTypeAggregationResponse = function (output, context) {
|
|
4032
3915
|
return {
|
|
4033
3916
|
accountId: __expectString(output.accountId),
|
|
4034
|
-
severityCounts: output.severityCounts
|
|
3917
|
+
severityCounts: output.severityCounts != null
|
|
4035
3918
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4036
3919
|
: undefined,
|
|
4037
3920
|
};
|
|
@@ -4039,7 +3922,7 @@ var deserializeAws_restJson1FindingTypeAggregationResponse = function (output, c
|
|
|
4039
3922
|
var deserializeAws_restJson1FreeTrialAccountInfo = function (output, context) {
|
|
4040
3923
|
return {
|
|
4041
3924
|
accountId: __expectString(output.accountId),
|
|
4042
|
-
freeTrialInfo: output.freeTrialInfo
|
|
3925
|
+
freeTrialInfo: output.freeTrialInfo != null
|
|
4043
3926
|
? deserializeAws_restJson1FreeTrialInfoList(output.freeTrialInfo, context)
|
|
4044
3927
|
: undefined,
|
|
4045
3928
|
};
|
|
@@ -4057,12 +3940,8 @@ var deserializeAws_restJson1FreeTrialAccountInfoList = function (output, context
|
|
|
4057
3940
|
};
|
|
4058
3941
|
var deserializeAws_restJson1FreeTrialInfo = function (output, context) {
|
|
4059
3942
|
return {
|
|
4060
|
-
end: output.end
|
|
4061
|
-
|
|
4062
|
-
: undefined,
|
|
4063
|
-
start: output.start !== undefined && output.start !== null
|
|
4064
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.start)))
|
|
4065
|
-
: undefined,
|
|
3943
|
+
end: output.end != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.end))) : undefined,
|
|
3944
|
+
start: output.start != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.start))) : undefined,
|
|
4066
3945
|
status: __expectString(output.status),
|
|
4067
3946
|
type: __expectString(output.type),
|
|
4068
3947
|
};
|
|
@@ -4102,7 +3981,7 @@ var deserializeAws_restJson1ImageLayerAggregationResponse = function (output, co
|
|
|
4102
3981
|
layerHash: __expectString(output.layerHash),
|
|
4103
3982
|
repository: __expectString(output.repository),
|
|
4104
3983
|
resourceId: __expectString(output.resourceId),
|
|
4105
|
-
severityCounts: output.severityCounts
|
|
3984
|
+
severityCounts: output.severityCounts != null
|
|
4106
3985
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4107
3986
|
: undefined,
|
|
4108
3987
|
};
|
|
@@ -4120,9 +3999,7 @@ var deserializeAws_restJson1ImageTagList = function (output, context) {
|
|
|
4120
3999
|
};
|
|
4121
4000
|
var deserializeAws_restJson1InspectorScoreDetails = function (output, context) {
|
|
4122
4001
|
return {
|
|
4123
|
-
adjustedCvss: output.adjustedCvss
|
|
4124
|
-
? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context)
|
|
4125
|
-
: undefined,
|
|
4002
|
+
adjustedCvss: output.adjustedCvss != null ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context) : undefined,
|
|
4126
4003
|
};
|
|
4127
4004
|
};
|
|
4128
4005
|
var deserializeAws_restJson1IpV4AddressList = function (output, context) {
|
|
@@ -4170,9 +4047,7 @@ var deserializeAws_restJson1Member = function (output, context) {
|
|
|
4170
4047
|
accountId: __expectString(output.accountId),
|
|
4171
4048
|
delegatedAdminAccountId: __expectString(output.delegatedAdminAccountId),
|
|
4172
4049
|
relationshipStatus: __expectString(output.relationshipStatus),
|
|
4173
|
-
updatedAt: output.updatedAt
|
|
4174
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
4175
|
-
: undefined,
|
|
4050
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
4176
4051
|
};
|
|
4177
4052
|
};
|
|
4178
4053
|
var deserializeAws_restJson1MemberList = function (output, context) {
|
|
@@ -4188,19 +4063,13 @@ var deserializeAws_restJson1MemberList = function (output, context) {
|
|
|
4188
4063
|
};
|
|
4189
4064
|
var deserializeAws_restJson1NetworkPath = function (output, context) {
|
|
4190
4065
|
return {
|
|
4191
|
-
steps: output.steps
|
|
4192
|
-
? deserializeAws_restJson1StepList(output.steps, context)
|
|
4193
|
-
: undefined,
|
|
4066
|
+
steps: output.steps != null ? deserializeAws_restJson1StepList(output.steps, context) : undefined,
|
|
4194
4067
|
};
|
|
4195
4068
|
};
|
|
4196
4069
|
var deserializeAws_restJson1NetworkReachabilityDetails = function (output, context) {
|
|
4197
4070
|
return {
|
|
4198
|
-
networkPath: output.networkPath
|
|
4199
|
-
|
|
4200
|
-
: undefined,
|
|
4201
|
-
openPortRange: output.openPortRange !== undefined && output.openPortRange !== null
|
|
4202
|
-
? deserializeAws_restJson1PortRange(output.openPortRange, context)
|
|
4203
|
-
: undefined,
|
|
4071
|
+
networkPath: output.networkPath != null ? deserializeAws_restJson1NetworkPath(output.networkPath, context) : undefined,
|
|
4072
|
+
openPortRange: output.openPortRange != null ? deserializeAws_restJson1PortRange(output.openPortRange, context) : undefined,
|
|
4204
4073
|
protocol: __expectString(output.protocol),
|
|
4205
4074
|
};
|
|
4206
4075
|
};
|
|
@@ -4236,31 +4105,21 @@ var deserializeAws_restJson1PackageAggregationResponse = function (output, conte
|
|
|
4236
4105
|
return {
|
|
4237
4106
|
accountId: __expectString(output.accountId),
|
|
4238
4107
|
packageName: __expectString(output.packageName),
|
|
4239
|
-
severityCounts: output.severityCounts
|
|
4108
|
+
severityCounts: output.severityCounts != null
|
|
4240
4109
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4241
4110
|
: undefined,
|
|
4242
4111
|
};
|
|
4243
4112
|
};
|
|
4244
4113
|
var deserializeAws_restJson1PackageFilter = function (output, context) {
|
|
4245
4114
|
return {
|
|
4246
|
-
architecture: output.architecture
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
: undefined,
|
|
4252
|
-
name: output.name !== undefined && output.name !== null
|
|
4253
|
-
? deserializeAws_restJson1StringFilter(output.name, context)
|
|
4254
|
-
: undefined,
|
|
4255
|
-
release: output.release !== undefined && output.release !== null
|
|
4256
|
-
? deserializeAws_restJson1StringFilter(output.release, context)
|
|
4257
|
-
: undefined,
|
|
4258
|
-
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
|
|
4259
4120
|
? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
|
|
4260
4121
|
: undefined,
|
|
4261
|
-
version: output.version
|
|
4262
|
-
? deserializeAws_restJson1StringFilter(output.version, context)
|
|
4263
|
-
: undefined,
|
|
4122
|
+
version: output.version != null ? deserializeAws_restJson1StringFilter(output.version, context) : undefined,
|
|
4264
4123
|
};
|
|
4265
4124
|
};
|
|
4266
4125
|
var deserializeAws_restJson1PackageFilterList = function (output, context) {
|
|
@@ -4276,26 +4135,24 @@ var deserializeAws_restJson1PackageFilterList = function (output, context) {
|
|
|
4276
4135
|
};
|
|
4277
4136
|
var deserializeAws_restJson1PackageVulnerabilityDetails = function (output, context) {
|
|
4278
4137
|
return {
|
|
4279
|
-
cvss: output.cvss
|
|
4280
|
-
|
|
4281
|
-
: undefined,
|
|
4282
|
-
referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
|
|
4138
|
+
cvss: output.cvss != null ? deserializeAws_restJson1CvssScoreList(output.cvss, context) : undefined,
|
|
4139
|
+
referenceUrls: output.referenceUrls != null
|
|
4283
4140
|
? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
|
|
4284
4141
|
: undefined,
|
|
4285
|
-
relatedVulnerabilities: output.relatedVulnerabilities
|
|
4142
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
4286
4143
|
? deserializeAws_restJson1VulnerabilityIdList(output.relatedVulnerabilities, context)
|
|
4287
4144
|
: undefined,
|
|
4288
4145
|
source: __expectString(output.source),
|
|
4289
4146
|
sourceUrl: __expectString(output.sourceUrl),
|
|
4290
|
-
vendorCreatedAt: output.vendorCreatedAt
|
|
4147
|
+
vendorCreatedAt: output.vendorCreatedAt != null
|
|
4291
4148
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorCreatedAt)))
|
|
4292
4149
|
: undefined,
|
|
4293
4150
|
vendorSeverity: __expectString(output.vendorSeverity),
|
|
4294
|
-
vendorUpdatedAt: output.vendorUpdatedAt
|
|
4151
|
+
vendorUpdatedAt: output.vendorUpdatedAt != null
|
|
4295
4152
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
|
|
4296
4153
|
: undefined,
|
|
4297
4154
|
vulnerabilityId: __expectString(output.vulnerabilityId),
|
|
4298
|
-
vulnerablePackages: output.vulnerablePackages
|
|
4155
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
4299
4156
|
? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
|
|
4300
4157
|
: undefined,
|
|
4301
4158
|
};
|
|
@@ -4348,7 +4205,7 @@ var deserializeAws_restJson1Recommendation = function (output, context) {
|
|
|
4348
4205
|
};
|
|
4349
4206
|
var deserializeAws_restJson1Remediation = function (output, context) {
|
|
4350
4207
|
return {
|
|
4351
|
-
recommendation: output.recommendation
|
|
4208
|
+
recommendation: output.recommendation != null
|
|
4352
4209
|
? deserializeAws_restJson1Recommendation(output.recommendation, context)
|
|
4353
4210
|
: undefined,
|
|
4354
4211
|
};
|
|
@@ -4358,31 +4215,27 @@ var deserializeAws_restJson1RepositoryAggregationResponse = function (output, co
|
|
|
4358
4215
|
accountId: __expectString(output.accountId),
|
|
4359
4216
|
affectedImages: __expectLong(output.affectedImages),
|
|
4360
4217
|
repository: __expectString(output.repository),
|
|
4361
|
-
severityCounts: output.severityCounts
|
|
4218
|
+
severityCounts: output.severityCounts != null
|
|
4362
4219
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4363
4220
|
: undefined,
|
|
4364
4221
|
};
|
|
4365
4222
|
};
|
|
4366
4223
|
var deserializeAws_restJson1Resource = function (output, context) {
|
|
4367
4224
|
return {
|
|
4368
|
-
details: output.details
|
|
4369
|
-
? deserializeAws_restJson1ResourceDetails(output.details, context)
|
|
4370
|
-
: undefined,
|
|
4225
|
+
details: output.details != null ? deserializeAws_restJson1ResourceDetails(output.details, context) : undefined,
|
|
4371
4226
|
id: __expectString(output.id),
|
|
4372
4227
|
partition: __expectString(output.partition),
|
|
4373
4228
|
region: __expectString(output.region),
|
|
4374
|
-
tags: output.tags
|
|
4375
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
4376
|
-
: undefined,
|
|
4229
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
4377
4230
|
type: __expectString(output.type),
|
|
4378
4231
|
};
|
|
4379
4232
|
};
|
|
4380
4233
|
var deserializeAws_restJson1ResourceDetails = function (output, context) {
|
|
4381
4234
|
return {
|
|
4382
|
-
awsEc2Instance: output.awsEc2Instance
|
|
4235
|
+
awsEc2Instance: output.awsEc2Instance != null
|
|
4383
4236
|
? deserializeAws_restJson1AwsEc2InstanceDetails(output.awsEc2Instance, context)
|
|
4384
4237
|
: undefined,
|
|
4385
|
-
awsEcrContainerImage: output.awsEcrContainerImage
|
|
4238
|
+
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
4386
4239
|
? deserializeAws_restJson1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
4387
4240
|
: undefined,
|
|
4388
4241
|
};
|
|
@@ -4400,21 +4253,17 @@ var deserializeAws_restJson1ResourceList = function (output, context) {
|
|
|
4400
4253
|
};
|
|
4401
4254
|
var deserializeAws_restJson1ResourceScanMetadata = function (output, context) {
|
|
4402
4255
|
return {
|
|
4403
|
-
ec2: output.ec2
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
ecrImage: output.ecrImage !== undefined && output.ecrImage !== null
|
|
4407
|
-
? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context)
|
|
4408
|
-
: undefined,
|
|
4409
|
-
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
|
|
4410
4259
|
? deserializeAws_restJson1EcrRepositoryMetadata(output.ecrRepository, context)
|
|
4411
4260
|
: undefined,
|
|
4412
4261
|
};
|
|
4413
4262
|
};
|
|
4414
4263
|
var deserializeAws_restJson1ResourceState = function (output, context) {
|
|
4415
4264
|
return {
|
|
4416
|
-
ec2: output.ec2
|
|
4417
|
-
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,
|
|
4418
4267
|
};
|
|
4419
4268
|
};
|
|
4420
4269
|
var deserializeAws_restJson1ResourceStatus = function (output, context) {
|
|
@@ -4513,7 +4362,7 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
4513
4362
|
var deserializeAws_restJson1TitleAggregationResponse = function (output, context) {
|
|
4514
4363
|
return {
|
|
4515
4364
|
accountId: __expectString(output.accountId),
|
|
4516
|
-
severityCounts: output.severityCounts
|
|
4365
|
+
severityCounts: output.severityCounts != null
|
|
4517
4366
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
4518
4367
|
: undefined,
|
|
4519
4368
|
title: __expectString(output.title),
|
|
@@ -4542,9 +4391,7 @@ var deserializeAws_restJson1UsageList = function (output, context) {
|
|
|
4542
4391
|
var deserializeAws_restJson1UsageTotal = function (output, context) {
|
|
4543
4392
|
return {
|
|
4544
4393
|
accountId: __expectString(output.accountId),
|
|
4545
|
-
usage: output.usage
|
|
4546
|
-
? deserializeAws_restJson1UsageList(output.usage, context)
|
|
4547
|
-
: undefined,
|
|
4394
|
+
usage: output.usage != null ? deserializeAws_restJson1UsageList(output.usage, context) : undefined,
|
|
4548
4395
|
};
|
|
4549
4396
|
};
|
|
4550
4397
|
var deserializeAws_restJson1UsageTotalList = function (output, context) {
|
|
@@ -4666,5 +4513,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4666
4513
|
if (data["__type"] !== undefined) {
|
|
4667
4514
|
return sanitizeErrorCode(data["__type"]);
|
|
4668
4515
|
}
|
|
4669
|
-
return "";
|
|
4670
4516
|
};
|