@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 @@ const serializeAws_restJson1AssociateMemberCommand = async (input, context) => {
|
|
|
15
15
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/associate";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
|
-
...(input.accountId
|
|
18
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
19
19
|
});
|
|
20
20
|
return new protocol_http_1.HttpRequest({
|
|
21
21
|
protocol,
|
|
@@ -36,8 +36,7 @@ const serializeAws_restJson1BatchGetAccountStatusCommand = async (input, context
|
|
|
36
36
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/status/batch/get";
|
|
37
37
|
let body;
|
|
38
38
|
body = JSON.stringify({
|
|
39
|
-
...(input.accountIds
|
|
40
|
-
input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
39
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
41
40
|
});
|
|
42
41
|
return new protocol_http_1.HttpRequest({
|
|
43
42
|
protocol,
|
|
@@ -58,8 +57,7 @@ const serializeAws_restJson1BatchGetFreeTrialInfoCommand = async (input, context
|
|
|
58
57
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/freetrialinfo/batchget";
|
|
59
58
|
let body;
|
|
60
59
|
body = JSON.stringify({
|
|
61
|
-
...(input.accountIds
|
|
62
|
-
input.accountIds !== null && {
|
|
60
|
+
...(input.accountIds != null && {
|
|
63
61
|
accountIds: serializeAws_restJson1MeteringAccountIdList(input.accountIds, context),
|
|
64
62
|
}),
|
|
65
63
|
});
|
|
@@ -82,7 +80,7 @@ const serializeAws_restJson1CancelFindingsReportCommand = async (input, context)
|
|
|
82
80
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/cancel";
|
|
83
81
|
let body;
|
|
84
82
|
body = JSON.stringify({
|
|
85
|
-
...(input.reportId
|
|
83
|
+
...(input.reportId != null && { reportId: input.reportId }),
|
|
86
84
|
});
|
|
87
85
|
return new protocol_http_1.HttpRequest({
|
|
88
86
|
protocol,
|
|
@@ -103,14 +101,13 @@ const serializeAws_restJson1CreateFilterCommand = async (input, context) => {
|
|
|
103
101
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/create";
|
|
104
102
|
let body;
|
|
105
103
|
body = JSON.stringify({
|
|
106
|
-
...(input.action
|
|
107
|
-
...(input.description
|
|
108
|
-
...(input.filterCriteria
|
|
109
|
-
input.filterCriteria !== null && {
|
|
104
|
+
...(input.action != null && { action: input.action }),
|
|
105
|
+
...(input.description != null && { description: input.description }),
|
|
106
|
+
...(input.filterCriteria != null && {
|
|
110
107
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
111
108
|
}),
|
|
112
|
-
...(input.name
|
|
113
|
-
...(input.tags
|
|
109
|
+
...(input.name != null && { name: input.name }),
|
|
110
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
114
111
|
});
|
|
115
112
|
return new protocol_http_1.HttpRequest({
|
|
116
113
|
protocol,
|
|
@@ -131,13 +128,11 @@ const serializeAws_restJson1CreateFindingsReportCommand = async (input, context)
|
|
|
131
128
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/create";
|
|
132
129
|
let body;
|
|
133
130
|
body = JSON.stringify({
|
|
134
|
-
...(input.filterCriteria
|
|
135
|
-
input.filterCriteria !== null && {
|
|
131
|
+
...(input.filterCriteria != null && {
|
|
136
132
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
137
133
|
}),
|
|
138
|
-
...(input.reportFormat
|
|
139
|
-
...(input.s3Destination
|
|
140
|
-
input.s3Destination !== null && {
|
|
134
|
+
...(input.reportFormat != null && { reportFormat: input.reportFormat }),
|
|
135
|
+
...(input.s3Destination != null && {
|
|
141
136
|
s3Destination: serializeAws_restJson1Destination(input.s3Destination, context),
|
|
142
137
|
}),
|
|
143
138
|
});
|
|
@@ -160,7 +155,7 @@ const serializeAws_restJson1DeleteFilterCommand = async (input, context) => {
|
|
|
160
155
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/delete";
|
|
161
156
|
let body;
|
|
162
157
|
body = JSON.stringify({
|
|
163
|
-
...(input.arn
|
|
158
|
+
...(input.arn != null && { arn: input.arn }),
|
|
164
159
|
});
|
|
165
160
|
return new protocol_http_1.HttpRequest({
|
|
166
161
|
protocol,
|
|
@@ -200,10 +195,8 @@ const serializeAws_restJson1DisableCommand = async (input, context) => {
|
|
|
200
195
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/disable";
|
|
201
196
|
let body;
|
|
202
197
|
body = JSON.stringify({
|
|
203
|
-
...(input.accountIds
|
|
204
|
-
|
|
205
|
-
...(input.resourceTypes !== undefined &&
|
|
206
|
-
input.resourceTypes !== null && {
|
|
198
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
199
|
+
...(input.resourceTypes != null && {
|
|
207
200
|
resourceTypes: serializeAws_restJson1DisableResourceTypeList(input.resourceTypes, context),
|
|
208
201
|
}),
|
|
209
202
|
});
|
|
@@ -226,8 +219,7 @@ const serializeAws_restJson1DisableDelegatedAdminAccountCommand = async (input,
|
|
|
226
219
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/disable";
|
|
227
220
|
let body;
|
|
228
221
|
body = JSON.stringify({
|
|
229
|
-
...(input.delegatedAdminAccountId
|
|
230
|
-
input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
|
|
222
|
+
...(input.delegatedAdminAccountId != null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
|
|
231
223
|
});
|
|
232
224
|
return new protocol_http_1.HttpRequest({
|
|
233
225
|
protocol,
|
|
@@ -248,7 +240,7 @@ const serializeAws_restJson1DisassociateMemberCommand = async (input, context) =
|
|
|
248
240
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate";
|
|
249
241
|
let body;
|
|
250
242
|
body = JSON.stringify({
|
|
251
|
-
...(input.accountId
|
|
243
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
252
244
|
});
|
|
253
245
|
return new protocol_http_1.HttpRequest({
|
|
254
246
|
protocol,
|
|
@@ -270,11 +262,9 @@ const serializeAws_restJson1EnableCommand = async (input, context) => {
|
|
|
270
262
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/enable";
|
|
271
263
|
let body;
|
|
272
264
|
body = JSON.stringify({
|
|
273
|
-
...(input.accountIds
|
|
274
|
-
input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
265
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
275
266
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
276
|
-
...(input.resourceTypes
|
|
277
|
-
input.resourceTypes !== null && {
|
|
267
|
+
...(input.resourceTypes != null && {
|
|
278
268
|
resourceTypes: serializeAws_restJson1EnableResourceTypeList(input.resourceTypes, context),
|
|
279
269
|
}),
|
|
280
270
|
});
|
|
@@ -299,8 +289,7 @@ const serializeAws_restJson1EnableDelegatedAdminAccountCommand = async (input, c
|
|
|
299
289
|
let body;
|
|
300
290
|
body = JSON.stringify({
|
|
301
291
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
302
|
-
...(input.delegatedAdminAccountId
|
|
303
|
-
input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
|
|
292
|
+
...(input.delegatedAdminAccountId != null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
|
|
304
293
|
});
|
|
305
294
|
return new protocol_http_1.HttpRequest({
|
|
306
295
|
protocol,
|
|
@@ -340,7 +329,7 @@ const serializeAws_restJson1GetFindingsReportStatusCommand = async (input, conte
|
|
|
340
329
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/status/get";
|
|
341
330
|
let body;
|
|
342
331
|
body = JSON.stringify({
|
|
343
|
-
...(input.reportId
|
|
332
|
+
...(input.reportId != null && { reportId: input.reportId }),
|
|
344
333
|
});
|
|
345
334
|
return new protocol_http_1.HttpRequest({
|
|
346
335
|
protocol,
|
|
@@ -361,7 +350,7 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
|
|
|
361
350
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/get";
|
|
362
351
|
let body;
|
|
363
352
|
body = JSON.stringify({
|
|
364
|
-
...(input.accountId
|
|
353
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
365
354
|
});
|
|
366
355
|
return new protocol_http_1.HttpRequest({
|
|
367
356
|
protocol,
|
|
@@ -382,9 +371,9 @@ const serializeAws_restJson1ListAccountPermissionsCommand = async (input, contex
|
|
|
382
371
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accountpermissions/list";
|
|
383
372
|
let body;
|
|
384
373
|
body = JSON.stringify({
|
|
385
|
-
...(input.maxResults
|
|
386
|
-
...(input.nextToken
|
|
387
|
-
...(input.service
|
|
374
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
375
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
376
|
+
...(input.service != null && { service: input.service }),
|
|
388
377
|
});
|
|
389
378
|
return new protocol_http_1.HttpRequest({
|
|
390
379
|
protocol,
|
|
@@ -405,12 +394,11 @@ const serializeAws_restJson1ListCoverageCommand = async (input, context) => {
|
|
|
405
394
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/list";
|
|
406
395
|
let body;
|
|
407
396
|
body = JSON.stringify({
|
|
408
|
-
...(input.filterCriteria
|
|
409
|
-
input.filterCriteria !== null && {
|
|
397
|
+
...(input.filterCriteria != null && {
|
|
410
398
|
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
411
399
|
}),
|
|
412
|
-
...(input.maxResults
|
|
413
|
-
...(input.nextToken
|
|
400
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
401
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
414
402
|
});
|
|
415
403
|
return new protocol_http_1.HttpRequest({
|
|
416
404
|
protocol,
|
|
@@ -431,12 +419,11 @@ const serializeAws_restJson1ListCoverageStatisticsCommand = async (input, contex
|
|
|
431
419
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/statistics/list";
|
|
432
420
|
let body;
|
|
433
421
|
body = JSON.stringify({
|
|
434
|
-
...(input.filterCriteria
|
|
435
|
-
input.filterCriteria !== null && {
|
|
422
|
+
...(input.filterCriteria != null && {
|
|
436
423
|
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
437
424
|
}),
|
|
438
|
-
...(input.groupBy
|
|
439
|
-
...(input.nextToken
|
|
425
|
+
...(input.groupBy != null && { groupBy: input.groupBy }),
|
|
426
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
440
427
|
});
|
|
441
428
|
return new protocol_http_1.HttpRequest({
|
|
442
429
|
protocol,
|
|
@@ -457,8 +444,8 @@ const serializeAws_restJson1ListDelegatedAdminAccountsCommand = async (input, co
|
|
|
457
444
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/list";
|
|
458
445
|
let body;
|
|
459
446
|
body = JSON.stringify({
|
|
460
|
-
...(input.maxResults
|
|
461
|
-
...(input.nextToken
|
|
447
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
448
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
462
449
|
});
|
|
463
450
|
return new protocol_http_1.HttpRequest({
|
|
464
451
|
protocol,
|
|
@@ -479,11 +466,10 @@ const serializeAws_restJson1ListFiltersCommand = async (input, context) => {
|
|
|
479
466
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/list";
|
|
480
467
|
let body;
|
|
481
468
|
body = JSON.stringify({
|
|
482
|
-
...(input.action
|
|
483
|
-
...(input.arns
|
|
484
|
-
|
|
485
|
-
...(input.
|
|
486
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
469
|
+
...(input.action != null && { action: input.action }),
|
|
470
|
+
...(input.arns != null && { arns: serializeAws_restJson1FilterArnList(input.arns, context) }),
|
|
471
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
472
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
487
473
|
});
|
|
488
474
|
return new protocol_http_1.HttpRequest({
|
|
489
475
|
protocol,
|
|
@@ -504,16 +490,13 @@ const serializeAws_restJson1ListFindingAggregationsCommand = async (input, conte
|
|
|
504
490
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/aggregation/list";
|
|
505
491
|
let body;
|
|
506
492
|
body = JSON.stringify({
|
|
507
|
-
...(input.accountIds
|
|
508
|
-
|
|
509
|
-
...(input.aggregationRequest !== undefined &&
|
|
510
|
-
input.aggregationRequest !== null && {
|
|
493
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) }),
|
|
494
|
+
...(input.aggregationRequest != null && {
|
|
511
495
|
aggregationRequest: serializeAws_restJson1AggregationRequest(input.aggregationRequest, context),
|
|
512
496
|
}),
|
|
513
|
-
...(input.aggregationType
|
|
514
|
-
|
|
515
|
-
...(input.
|
|
516
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
497
|
+
...(input.aggregationType != null && { aggregationType: input.aggregationType }),
|
|
498
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
499
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
517
500
|
});
|
|
518
501
|
return new protocol_http_1.HttpRequest({
|
|
519
502
|
protocol,
|
|
@@ -534,14 +517,14 @@ const serializeAws_restJson1ListFindingsCommand = async (input, context) => {
|
|
|
534
517
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/list";
|
|
535
518
|
let body;
|
|
536
519
|
body = JSON.stringify({
|
|
537
|
-
...(input.filterCriteria
|
|
538
|
-
input.filterCriteria !== null && {
|
|
520
|
+
...(input.filterCriteria != null && {
|
|
539
521
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
540
522
|
}),
|
|
541
|
-
...(input.maxResults
|
|
542
|
-
...(input.nextToken
|
|
543
|
-
...(input.sortCriteria
|
|
544
|
-
|
|
523
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
524
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
525
|
+
...(input.sortCriteria != null && {
|
|
526
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
|
|
527
|
+
}),
|
|
545
528
|
});
|
|
546
529
|
return new protocol_http_1.HttpRequest({
|
|
547
530
|
protocol,
|
|
@@ -562,10 +545,9 @@ const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
|
562
545
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/list";
|
|
563
546
|
let body;
|
|
564
547
|
body = JSON.stringify({
|
|
565
|
-
...(input.maxResults
|
|
566
|
-
...(input.nextToken
|
|
567
|
-
...(input.onlyAssociated
|
|
568
|
-
input.onlyAssociated !== null && { onlyAssociated: input.onlyAssociated }),
|
|
548
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
549
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
550
|
+
...(input.onlyAssociated != null && { onlyAssociated: input.onlyAssociated }),
|
|
569
551
|
});
|
|
570
552
|
return new protocol_http_1.HttpRequest({
|
|
571
553
|
protocol,
|
|
@@ -612,10 +594,11 @@ const serializeAws_restJson1ListUsageTotalsCommand = async (input, context) => {
|
|
|
612
594
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/usage/list";
|
|
613
595
|
let body;
|
|
614
596
|
body = JSON.stringify({
|
|
615
|
-
...(input.accountIds
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
...(input.
|
|
597
|
+
...(input.accountIds != null && {
|
|
598
|
+
accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context),
|
|
599
|
+
}),
|
|
600
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
601
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
619
602
|
});
|
|
620
603
|
return new protocol_http_1.HttpRequest({
|
|
621
604
|
protocol,
|
|
@@ -646,7 +629,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
646
629
|
}
|
|
647
630
|
let body;
|
|
648
631
|
body = JSON.stringify({
|
|
649
|
-
...(input.tags
|
|
632
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
650
633
|
});
|
|
651
634
|
return new protocol_http_1.HttpRequest({
|
|
652
635
|
protocol,
|
|
@@ -697,14 +680,13 @@ const serializeAws_restJson1UpdateFilterCommand = async (input, context) => {
|
|
|
697
680
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/update";
|
|
698
681
|
let body;
|
|
699
682
|
body = JSON.stringify({
|
|
700
|
-
...(input.action
|
|
701
|
-
...(input.description
|
|
702
|
-
...(input.filterArn
|
|
703
|
-
...(input.filterCriteria
|
|
704
|
-
input.filterCriteria !== null && {
|
|
683
|
+
...(input.action != null && { action: input.action }),
|
|
684
|
+
...(input.description != null && { description: input.description }),
|
|
685
|
+
...(input.filterArn != null && { filterArn: input.filterArn }),
|
|
686
|
+
...(input.filterCriteria != null && {
|
|
705
687
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
706
688
|
}),
|
|
707
|
-
...(input.name
|
|
689
|
+
...(input.name != null && { name: input.name }),
|
|
708
690
|
});
|
|
709
691
|
return new protocol_http_1.HttpRequest({
|
|
710
692
|
protocol,
|
|
@@ -725,8 +707,7 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
725
707
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organizationconfiguration/update";
|
|
726
708
|
let body;
|
|
727
709
|
body = JSON.stringify({
|
|
728
|
-
...(input.autoEnable
|
|
729
|
-
input.autoEnable !== null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) }),
|
|
710
|
+
...(input.autoEnable != null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) }),
|
|
730
711
|
});
|
|
731
712
|
return new protocol_http_1.HttpRequest({
|
|
732
713
|
protocol,
|
|
@@ -760,8 +741,7 @@ const deserializeAws_restJson1AssociateMemberCommandError = async (output, conte
|
|
|
760
741
|
body: await parseBody(output.body, context),
|
|
761
742
|
};
|
|
762
743
|
let response;
|
|
763
|
-
|
|
764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
745
|
switch (errorCode) {
|
|
766
746
|
case "AccessDeniedException":
|
|
767
747
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -777,10 +757,12 @@ const deserializeAws_restJson1AssociateMemberCommandError = async (output, conte
|
|
|
777
757
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
778
758
|
default:
|
|
779
759
|
const parsedBody = parsedOutput.body;
|
|
760
|
+
const $metadata = deserializeMetadata(output);
|
|
761
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
780
762
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
781
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
782
764
|
$fault: "client",
|
|
783
|
-
$metadata
|
|
765
|
+
$metadata,
|
|
784
766
|
});
|
|
785
767
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
786
768
|
}
|
|
@@ -810,8 +792,7 @@ const deserializeAws_restJson1BatchGetAccountStatusCommandError = async (output,
|
|
|
810
792
|
body: await parseBody(output.body, context),
|
|
811
793
|
};
|
|
812
794
|
let response;
|
|
813
|
-
|
|
814
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
796
|
switch (errorCode) {
|
|
816
797
|
case "AccessDeniedException":
|
|
817
798
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -830,10 +811,12 @@ const deserializeAws_restJson1BatchGetAccountStatusCommandError = async (output,
|
|
|
830
811
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
831
812
|
default:
|
|
832
813
|
const parsedBody = parsedOutput.body;
|
|
814
|
+
const $metadata = deserializeMetadata(output);
|
|
815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
833
816
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
834
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
835
818
|
$fault: "client",
|
|
836
|
-
$metadata
|
|
819
|
+
$metadata,
|
|
837
820
|
});
|
|
838
821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
839
822
|
}
|
|
@@ -863,8 +846,7 @@ const deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = async (output,
|
|
|
863
846
|
body: await parseBody(output.body, context),
|
|
864
847
|
};
|
|
865
848
|
let response;
|
|
866
|
-
|
|
867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
850
|
switch (errorCode) {
|
|
869
851
|
case "AccessDeniedException":
|
|
870
852
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -880,10 +862,12 @@ const deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = async (output,
|
|
|
880
862
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
881
863
|
default:
|
|
882
864
|
const parsedBody = parsedOutput.body;
|
|
865
|
+
const $metadata = deserializeMetadata(output);
|
|
866
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
883
867
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
868
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
885
869
|
$fault: "client",
|
|
886
|
-
$metadata
|
|
870
|
+
$metadata,
|
|
887
871
|
});
|
|
888
872
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
889
873
|
}
|
|
@@ -909,8 +893,7 @@ const deserializeAws_restJson1CancelFindingsReportCommandError = async (output,
|
|
|
909
893
|
body: await parseBody(output.body, context),
|
|
910
894
|
};
|
|
911
895
|
let response;
|
|
912
|
-
|
|
913
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
897
|
switch (errorCode) {
|
|
915
898
|
case "AccessDeniedException":
|
|
916
899
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -929,10 +912,12 @@ const deserializeAws_restJson1CancelFindingsReportCommandError = async (output,
|
|
|
929
912
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
930
913
|
default:
|
|
931
914
|
const parsedBody = parsedOutput.body;
|
|
915
|
+
const $metadata = deserializeMetadata(output);
|
|
916
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
932
917
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
933
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
918
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
934
919
|
$fault: "client",
|
|
935
|
-
$metadata
|
|
920
|
+
$metadata,
|
|
936
921
|
});
|
|
937
922
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
938
923
|
}
|
|
@@ -958,8 +943,7 @@ const deserializeAws_restJson1CreateFilterCommandError = async (output, context)
|
|
|
958
943
|
body: await parseBody(output.body, context),
|
|
959
944
|
};
|
|
960
945
|
let response;
|
|
961
|
-
|
|
962
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
947
|
switch (errorCode) {
|
|
964
948
|
case "AccessDeniedException":
|
|
965
949
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -981,10 +965,12 @@ const deserializeAws_restJson1CreateFilterCommandError = async (output, context)
|
|
|
981
965
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
982
966
|
default:
|
|
983
967
|
const parsedBody = parsedOutput.body;
|
|
968
|
+
const $metadata = deserializeMetadata(output);
|
|
969
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
984
970
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
971
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
986
972
|
$fault: "client",
|
|
987
|
-
$metadata
|
|
973
|
+
$metadata,
|
|
988
974
|
});
|
|
989
975
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
990
976
|
}
|
|
@@ -1010,8 +996,7 @@ const deserializeAws_restJson1CreateFindingsReportCommandError = async (output,
|
|
|
1010
996
|
body: await parseBody(output.body, context),
|
|
1011
997
|
};
|
|
1012
998
|
let response;
|
|
1013
|
-
|
|
1014
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1000
|
switch (errorCode) {
|
|
1016
1001
|
case "AccessDeniedException":
|
|
1017
1002
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1030,10 +1015,12 @@ const deserializeAws_restJson1CreateFindingsReportCommandError = async (output,
|
|
|
1030
1015
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1031
1016
|
default:
|
|
1032
1017
|
const parsedBody = parsedOutput.body;
|
|
1018
|
+
const $metadata = deserializeMetadata(output);
|
|
1019
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1033
1020
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1034
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1021
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1035
1022
|
$fault: "client",
|
|
1036
|
-
$metadata
|
|
1023
|
+
$metadata,
|
|
1037
1024
|
});
|
|
1038
1025
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1039
1026
|
}
|
|
@@ -1059,8 +1046,7 @@ const deserializeAws_restJson1DeleteFilterCommandError = async (output, context)
|
|
|
1059
1046
|
body: await parseBody(output.body, context),
|
|
1060
1047
|
};
|
|
1061
1048
|
let response;
|
|
1062
|
-
|
|
1063
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
1050
|
switch (errorCode) {
|
|
1065
1051
|
case "AccessDeniedException":
|
|
1066
1052
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1079,10 +1065,12 @@ const deserializeAws_restJson1DeleteFilterCommandError = async (output, context)
|
|
|
1079
1065
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1080
1066
|
default:
|
|
1081
1067
|
const parsedBody = parsedOutput.body;
|
|
1068
|
+
const $metadata = deserializeMetadata(output);
|
|
1069
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1082
1070
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1083
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1071
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1084
1072
|
$fault: "client",
|
|
1085
|
-
$metadata
|
|
1073
|
+
$metadata,
|
|
1086
1074
|
});
|
|
1087
1075
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1088
1076
|
}
|
|
@@ -1112,8 +1100,7 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
1112
1100
|
body: await parseBody(output.body, context),
|
|
1113
1101
|
};
|
|
1114
1102
|
let response;
|
|
1115
|
-
|
|
1116
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1103
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
1104
|
switch (errorCode) {
|
|
1118
1105
|
case "AccessDeniedException":
|
|
1119
1106
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1129,10 +1116,12 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
1129
1116
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1130
1117
|
default:
|
|
1131
1118
|
const parsedBody = parsedOutput.body;
|
|
1119
|
+
const $metadata = deserializeMetadata(output);
|
|
1120
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1132
1121
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1133
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1122
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1134
1123
|
$fault: "client",
|
|
1135
|
-
$metadata
|
|
1124
|
+
$metadata,
|
|
1136
1125
|
});
|
|
1137
1126
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1138
1127
|
}
|
|
@@ -1162,8 +1151,7 @@ const deserializeAws_restJson1DisableCommandError = async (output, context) => {
|
|
|
1162
1151
|
body: await parseBody(output.body, context),
|
|
1163
1152
|
};
|
|
1164
1153
|
let response;
|
|
1165
|
-
|
|
1166
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
1155
|
switch (errorCode) {
|
|
1168
1156
|
case "AccessDeniedException":
|
|
1169
1157
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1182,10 +1170,12 @@ const deserializeAws_restJson1DisableCommandError = async (output, context) => {
|
|
|
1182
1170
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1183
1171
|
default:
|
|
1184
1172
|
const parsedBody = parsedOutput.body;
|
|
1173
|
+
const $metadata = deserializeMetadata(output);
|
|
1174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1185
1175
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1187
1177
|
$fault: "client",
|
|
1188
|
-
$metadata
|
|
1178
|
+
$metadata,
|
|
1189
1179
|
});
|
|
1190
1180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1191
1181
|
}
|
|
@@ -1211,8 +1201,7 @@ const deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = async (
|
|
|
1211
1201
|
body: await parseBody(output.body, context),
|
|
1212
1202
|
};
|
|
1213
1203
|
let response;
|
|
1214
|
-
|
|
1215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1205
|
switch (errorCode) {
|
|
1217
1206
|
case "AccessDeniedException":
|
|
1218
1207
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1234,10 +1223,12 @@ const deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = async (
|
|
|
1234
1223
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1235
1224
|
default:
|
|
1236
1225
|
const parsedBody = parsedOutput.body;
|
|
1226
|
+
const $metadata = deserializeMetadata(output);
|
|
1227
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1237
1228
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1229
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1239
1230
|
$fault: "client",
|
|
1240
|
-
$metadata
|
|
1231
|
+
$metadata,
|
|
1241
1232
|
});
|
|
1242
1233
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1243
1234
|
}
|
|
@@ -1263,8 +1254,7 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
1263
1254
|
body: await parseBody(output.body, context),
|
|
1264
1255
|
};
|
|
1265
1256
|
let response;
|
|
1266
|
-
|
|
1267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1258
|
switch (errorCode) {
|
|
1269
1259
|
case "AccessDeniedException":
|
|
1270
1260
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1280,10 +1270,12 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
1280
1270
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1281
1271
|
default:
|
|
1282
1272
|
const parsedBody = parsedOutput.body;
|
|
1273
|
+
const $metadata = deserializeMetadata(output);
|
|
1274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1283
1275
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1284
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1285
1277
|
$fault: "client",
|
|
1286
|
-
$metadata
|
|
1278
|
+
$metadata,
|
|
1287
1279
|
});
|
|
1288
1280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1289
1281
|
}
|
|
@@ -1313,8 +1305,7 @@ const deserializeAws_restJson1EnableCommandError = async (output, context) => {
|
|
|
1313
1305
|
body: await parseBody(output.body, context),
|
|
1314
1306
|
};
|
|
1315
1307
|
let response;
|
|
1316
|
-
|
|
1317
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
1309
|
switch (errorCode) {
|
|
1319
1310
|
case "AccessDeniedException":
|
|
1320
1311
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1333,10 +1324,12 @@ const deserializeAws_restJson1EnableCommandError = async (output, context) => {
|
|
|
1333
1324
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1334
1325
|
default:
|
|
1335
1326
|
const parsedBody = parsedOutput.body;
|
|
1327
|
+
const $metadata = deserializeMetadata(output);
|
|
1328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1336
1329
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1337
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1338
1331
|
$fault: "client",
|
|
1339
|
-
$metadata
|
|
1332
|
+
$metadata,
|
|
1340
1333
|
});
|
|
1341
1334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1342
1335
|
}
|
|
@@ -1362,8 +1355,7 @@ const deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = async (o
|
|
|
1362
1355
|
body: await parseBody(output.body, context),
|
|
1363
1356
|
};
|
|
1364
1357
|
let response;
|
|
1365
|
-
|
|
1366
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
1359
|
switch (errorCode) {
|
|
1368
1360
|
case "AccessDeniedException":
|
|
1369
1361
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1385,10 +1377,12 @@ const deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = async (o
|
|
|
1385
1377
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1386
1378
|
default:
|
|
1387
1379
|
const parsedBody = parsedOutput.body;
|
|
1380
|
+
const $metadata = deserializeMetadata(output);
|
|
1381
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1388
1382
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1389
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1383
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1390
1384
|
$fault: "client",
|
|
1391
|
-
$metadata
|
|
1385
|
+
$metadata,
|
|
1392
1386
|
});
|
|
1393
1387
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1394
1388
|
}
|
|
@@ -1414,8 +1408,7 @@ const deserializeAws_restJson1GetDelegatedAdminAccountCommandError = async (outp
|
|
|
1414
1408
|
body: await parseBody(output.body, context),
|
|
1415
1409
|
};
|
|
1416
1410
|
let response;
|
|
1417
|
-
|
|
1418
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
1412
|
switch (errorCode) {
|
|
1420
1413
|
case "AccessDeniedException":
|
|
1421
1414
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1434,10 +1427,12 @@ const deserializeAws_restJson1GetDelegatedAdminAccountCommandError = async (outp
|
|
|
1434
1427
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1435
1428
|
default:
|
|
1436
1429
|
const parsedBody = parsedOutput.body;
|
|
1430
|
+
const $metadata = deserializeMetadata(output);
|
|
1431
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1437
1432
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1438
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1433
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1439
1434
|
$fault: "client",
|
|
1440
|
-
$metadata
|
|
1435
|
+
$metadata,
|
|
1441
1436
|
});
|
|
1442
1437
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1443
1438
|
}
|
|
@@ -1483,8 +1478,7 @@ const deserializeAws_restJson1GetFindingsReportStatusCommandError = async (outpu
|
|
|
1483
1478
|
body: await parseBody(output.body, context),
|
|
1484
1479
|
};
|
|
1485
1480
|
let response;
|
|
1486
|
-
|
|
1487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1481
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
1482
|
switch (errorCode) {
|
|
1489
1483
|
case "AccessDeniedException":
|
|
1490
1484
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1503,10 +1497,12 @@ const deserializeAws_restJson1GetFindingsReportStatusCommandError = async (outpu
|
|
|
1503
1497
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1504
1498
|
default:
|
|
1505
1499
|
const parsedBody = parsedOutput.body;
|
|
1500
|
+
const $metadata = deserializeMetadata(output);
|
|
1501
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1506
1502
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1503
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1508
1504
|
$fault: "client",
|
|
1509
|
-
$metadata
|
|
1505
|
+
$metadata,
|
|
1510
1506
|
});
|
|
1511
1507
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1512
1508
|
}
|
|
@@ -1532,8 +1528,7 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
1532
1528
|
body: await parseBody(output.body, context),
|
|
1533
1529
|
};
|
|
1534
1530
|
let response;
|
|
1535
|
-
|
|
1536
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1531
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
1532
|
switch (errorCode) {
|
|
1538
1533
|
case "AccessDeniedException":
|
|
1539
1534
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1552,10 +1547,12 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
1552
1547
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1553
1548
|
default:
|
|
1554
1549
|
const parsedBody = parsedOutput.body;
|
|
1550
|
+
const $metadata = deserializeMetadata(output);
|
|
1551
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1555
1552
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1556
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1557
1554
|
$fault: "client",
|
|
1558
|
-
$metadata
|
|
1555
|
+
$metadata,
|
|
1559
1556
|
});
|
|
1560
1557
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1561
1558
|
}
|
|
@@ -1585,8 +1582,7 @@ const deserializeAws_restJson1ListAccountPermissionsCommandError = async (output
|
|
|
1585
1582
|
body: await parseBody(output.body, context),
|
|
1586
1583
|
};
|
|
1587
1584
|
let response;
|
|
1588
|
-
|
|
1589
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
1586
|
switch (errorCode) {
|
|
1591
1587
|
case "AccessDeniedException":
|
|
1592
1588
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1602,10 +1598,12 @@ const deserializeAws_restJson1ListAccountPermissionsCommandError = async (output
|
|
|
1602
1598
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1603
1599
|
default:
|
|
1604
1600
|
const parsedBody = parsedOutput.body;
|
|
1601
|
+
const $metadata = deserializeMetadata(output);
|
|
1602
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1605
1603
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1606
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1604
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1607
1605
|
$fault: "client",
|
|
1608
|
-
$metadata
|
|
1606
|
+
$metadata,
|
|
1609
1607
|
});
|
|
1610
1608
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1611
1609
|
}
|
|
@@ -1635,8 +1633,7 @@ const deserializeAws_restJson1ListCoverageCommandError = async (output, context)
|
|
|
1635
1633
|
body: await parseBody(output.body, context),
|
|
1636
1634
|
};
|
|
1637
1635
|
let response;
|
|
1638
|
-
|
|
1639
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
1637
|
switch (errorCode) {
|
|
1641
1638
|
case "InternalServerException":
|
|
1642
1639
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
@@ -1649,10 +1646,12 @@ const deserializeAws_restJson1ListCoverageCommandError = async (output, context)
|
|
|
1649
1646
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1650
1647
|
default:
|
|
1651
1648
|
const parsedBody = parsedOutput.body;
|
|
1649
|
+
const $metadata = deserializeMetadata(output);
|
|
1650
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1652
1651
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1653
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1652
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1654
1653
|
$fault: "client",
|
|
1655
|
-
$metadata
|
|
1654
|
+
$metadata,
|
|
1656
1655
|
});
|
|
1657
1656
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1658
1657
|
}
|
|
@@ -1686,8 +1685,7 @@ const deserializeAws_restJson1ListCoverageStatisticsCommandError = async (output
|
|
|
1686
1685
|
body: await parseBody(output.body, context),
|
|
1687
1686
|
};
|
|
1688
1687
|
let response;
|
|
1689
|
-
|
|
1690
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1691
1689
|
switch (errorCode) {
|
|
1692
1690
|
case "InternalServerException":
|
|
1693
1691
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
@@ -1700,10 +1698,12 @@ const deserializeAws_restJson1ListCoverageStatisticsCommandError = async (output
|
|
|
1700
1698
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1701
1699
|
default:
|
|
1702
1700
|
const parsedBody = parsedOutput.body;
|
|
1701
|
+
const $metadata = deserializeMetadata(output);
|
|
1702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1703
1703
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1705
1705
|
$fault: "client",
|
|
1706
|
-
$metadata
|
|
1706
|
+
$metadata,
|
|
1707
1707
|
});
|
|
1708
1708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1709
1709
|
}
|
|
@@ -1733,8 +1733,7 @@ const deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = async (ou
|
|
|
1733
1733
|
body: await parseBody(output.body, context),
|
|
1734
1734
|
};
|
|
1735
1735
|
let response;
|
|
1736
|
-
|
|
1737
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
1737
|
switch (errorCode) {
|
|
1739
1738
|
case "AccessDeniedException":
|
|
1740
1739
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1750,10 +1749,12 @@ const deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = async (ou
|
|
|
1750
1749
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1751
1750
|
default:
|
|
1752
1751
|
const parsedBody = parsedOutput.body;
|
|
1752
|
+
const $metadata = deserializeMetadata(output);
|
|
1753
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1753
1754
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1754
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1755
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1755
1756
|
$fault: "client",
|
|
1756
|
-
$metadata
|
|
1757
|
+
$metadata,
|
|
1757
1758
|
});
|
|
1758
1759
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1759
1760
|
}
|
|
@@ -1783,8 +1784,7 @@ const deserializeAws_restJson1ListFiltersCommandError = async (output, context)
|
|
|
1783
1784
|
body: await parseBody(output.body, context),
|
|
1784
1785
|
};
|
|
1785
1786
|
let response;
|
|
1786
|
-
|
|
1787
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1788
1788
|
switch (errorCode) {
|
|
1789
1789
|
case "AccessDeniedException":
|
|
1790
1790
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1800,10 +1800,12 @@ const deserializeAws_restJson1ListFiltersCommandError = async (output, context)
|
|
|
1800
1800
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1801
1801
|
default:
|
|
1802
1802
|
const parsedBody = parsedOutput.body;
|
|
1803
|
+
const $metadata = deserializeMetadata(output);
|
|
1804
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1803
1805
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1804
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1806
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1805
1807
|
$fault: "client",
|
|
1806
|
-
$metadata
|
|
1808
|
+
$metadata,
|
|
1807
1809
|
});
|
|
1808
1810
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1809
1811
|
}
|
|
@@ -1837,8 +1839,7 @@ const deserializeAws_restJson1ListFindingAggregationsCommandError = async (outpu
|
|
|
1837
1839
|
body: await parseBody(output.body, context),
|
|
1838
1840
|
};
|
|
1839
1841
|
let response;
|
|
1840
|
-
|
|
1841
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
1843
|
switch (errorCode) {
|
|
1843
1844
|
case "InternalServerException":
|
|
1844
1845
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
@@ -1851,10 +1852,12 @@ const deserializeAws_restJson1ListFindingAggregationsCommandError = async (outpu
|
|
|
1851
1852
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1852
1853
|
default:
|
|
1853
1854
|
const parsedBody = parsedOutput.body;
|
|
1855
|
+
const $metadata = deserializeMetadata(output);
|
|
1856
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1854
1857
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1858
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1856
1859
|
$fault: "client",
|
|
1857
|
-
$metadata
|
|
1860
|
+
$metadata,
|
|
1858
1861
|
});
|
|
1859
1862
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1860
1863
|
}
|
|
@@ -1884,8 +1887,7 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
1884
1887
|
body: await parseBody(output.body, context),
|
|
1885
1888
|
};
|
|
1886
1889
|
let response;
|
|
1887
|
-
|
|
1888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
1891
|
switch (errorCode) {
|
|
1890
1892
|
case "InternalServerException":
|
|
1891
1893
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
@@ -1898,10 +1900,12 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
1898
1900
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1899
1901
|
default:
|
|
1900
1902
|
const parsedBody = parsedOutput.body;
|
|
1903
|
+
const $metadata = deserializeMetadata(output);
|
|
1904
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1901
1905
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1902
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1906
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1903
1907
|
$fault: "client",
|
|
1904
|
-
$metadata
|
|
1908
|
+
$metadata,
|
|
1905
1909
|
});
|
|
1906
1910
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1907
1911
|
}
|
|
@@ -1931,8 +1935,7 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1931
1935
|
body: await parseBody(output.body, context),
|
|
1932
1936
|
};
|
|
1933
1937
|
let response;
|
|
1934
|
-
|
|
1935
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1936
1939
|
switch (errorCode) {
|
|
1937
1940
|
case "AccessDeniedException":
|
|
1938
1941
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -1948,10 +1951,12 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1948
1951
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1949
1952
|
default:
|
|
1950
1953
|
const parsedBody = parsedOutput.body;
|
|
1954
|
+
const $metadata = deserializeMetadata(output);
|
|
1955
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1951
1956
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1952
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1957
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1953
1958
|
$fault: "client",
|
|
1954
|
-
$metadata
|
|
1959
|
+
$metadata,
|
|
1955
1960
|
});
|
|
1956
1961
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1957
1962
|
}
|
|
@@ -1977,8 +1982,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1977
1982
|
body: await parseBody(output.body, context),
|
|
1978
1983
|
};
|
|
1979
1984
|
let response;
|
|
1980
|
-
|
|
1981
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1986
|
switch (errorCode) {
|
|
1983
1987
|
case "InternalServerException":
|
|
1984
1988
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
@@ -1994,10 +1998,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1994
1998
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1995
1999
|
default:
|
|
1996
2000
|
const parsedBody = parsedOutput.body;
|
|
2001
|
+
const $metadata = deserializeMetadata(output);
|
|
2002
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1997
2003
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2004
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1999
2005
|
$fault: "client",
|
|
2000
|
-
$metadata
|
|
2006
|
+
$metadata,
|
|
2001
2007
|
});
|
|
2002
2008
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2003
2009
|
}
|
|
@@ -2027,8 +2033,7 @@ const deserializeAws_restJson1ListUsageTotalsCommandError = async (output, conte
|
|
|
2027
2033
|
body: await parseBody(output.body, context),
|
|
2028
2034
|
};
|
|
2029
2035
|
let response;
|
|
2030
|
-
|
|
2031
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2032
2037
|
switch (errorCode) {
|
|
2033
2038
|
case "AccessDeniedException":
|
|
2034
2039
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -2044,10 +2049,12 @@ const deserializeAws_restJson1ListUsageTotalsCommandError = async (output, conte
|
|
|
2044
2049
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2045
2050
|
default:
|
|
2046
2051
|
const parsedBody = parsedOutput.body;
|
|
2052
|
+
const $metadata = deserializeMetadata(output);
|
|
2053
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2047
2054
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
2048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2055
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2049
2056
|
$fault: "client",
|
|
2050
|
-
$metadata
|
|
2057
|
+
$metadata,
|
|
2051
2058
|
});
|
|
2052
2059
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2053
2060
|
}
|
|
@@ -2069,8 +2076,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2069
2076
|
body: await parseBody(output.body, context),
|
|
2070
2077
|
};
|
|
2071
2078
|
let response;
|
|
2072
|
-
|
|
2073
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
2080
|
switch (errorCode) {
|
|
2075
2081
|
case "BadRequestException":
|
|
2076
2082
|
case "com.amazonaws.inspector2#BadRequestException":
|
|
@@ -2089,10 +2095,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2089
2095
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2090
2096
|
default:
|
|
2091
2097
|
const parsedBody = parsedOutput.body;
|
|
2098
|
+
const $metadata = deserializeMetadata(output);
|
|
2099
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2092
2100
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
2093
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2101
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2094
2102
|
$fault: "client",
|
|
2095
|
-
$metadata
|
|
2103
|
+
$metadata,
|
|
2096
2104
|
});
|
|
2097
2105
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2098
2106
|
}
|
|
@@ -2114,8 +2122,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2114
2122
|
body: await parseBody(output.body, context),
|
|
2115
2123
|
};
|
|
2116
2124
|
let response;
|
|
2117
|
-
|
|
2118
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2125
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
2126
|
switch (errorCode) {
|
|
2120
2127
|
case "InternalServerException":
|
|
2121
2128
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
@@ -2131,10 +2138,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2131
2138
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2132
2139
|
default:
|
|
2133
2140
|
const parsedBody = parsedOutput.body;
|
|
2141
|
+
const $metadata = deserializeMetadata(output);
|
|
2142
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2134
2143
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
2135
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2144
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2136
2145
|
$fault: "client",
|
|
2137
|
-
$metadata
|
|
2146
|
+
$metadata,
|
|
2138
2147
|
});
|
|
2139
2148
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2140
2149
|
}
|
|
@@ -2160,8 +2169,7 @@ const deserializeAws_restJson1UpdateFilterCommandError = async (output, context)
|
|
|
2160
2169
|
body: await parseBody(output.body, context),
|
|
2161
2170
|
};
|
|
2162
2171
|
let response;
|
|
2163
|
-
|
|
2164
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2165
2173
|
switch (errorCode) {
|
|
2166
2174
|
case "AccessDeniedException":
|
|
2167
2175
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -2180,10 +2188,12 @@ const deserializeAws_restJson1UpdateFilterCommandError = async (output, context)
|
|
|
2180
2188
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2181
2189
|
default:
|
|
2182
2190
|
const parsedBody = parsedOutput.body;
|
|
2191
|
+
const $metadata = deserializeMetadata(output);
|
|
2192
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2183
2193
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
2184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2194
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2185
2195
|
$fault: "client",
|
|
2186
|
-
$metadata
|
|
2196
|
+
$metadata,
|
|
2187
2197
|
});
|
|
2188
2198
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2189
2199
|
}
|
|
@@ -2209,8 +2219,7 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
2209
2219
|
body: await parseBody(output.body, context),
|
|
2210
2220
|
};
|
|
2211
2221
|
let response;
|
|
2212
|
-
|
|
2213
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
2223
|
switch (errorCode) {
|
|
2215
2224
|
case "AccessDeniedException":
|
|
2216
2225
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
@@ -2226,10 +2235,12 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
2226
2235
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2227
2236
|
default:
|
|
2228
2237
|
const parsedBody = parsedOutput.body;
|
|
2238
|
+
const $metadata = deserializeMetadata(output);
|
|
2239
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2229
2240
|
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
2230
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2241
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2231
2242
|
$fault: "client",
|
|
2232
|
-
$metadata
|
|
2243
|
+
$metadata,
|
|
2233
2244
|
});
|
|
2234
2245
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2235
2246
|
}
|
|
@@ -2350,10 +2361,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2350
2361
|
};
|
|
2351
2362
|
const serializeAws_restJson1AccountAggregation = (input, context) => {
|
|
2352
2363
|
return {
|
|
2353
|
-
...(input.findingType
|
|
2354
|
-
...(input.resourceType
|
|
2355
|
-
...(input.sortBy
|
|
2356
|
-
...(input.sortOrder
|
|
2364
|
+
...(input.findingType != null && { findingType: input.findingType }),
|
|
2365
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2366
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2367
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2357
2368
|
};
|
|
2358
2369
|
};
|
|
2359
2370
|
const serializeAws_restJson1AccountIdSet = (input, context) => {
|
|
@@ -2392,83 +2403,70 @@ const serializeAws_restJson1AggregationRequest = (input, context) => {
|
|
|
2392
2403
|
};
|
|
2393
2404
|
const serializeAws_restJson1AmiAggregation = (input, context) => {
|
|
2394
2405
|
return {
|
|
2395
|
-
...(input.amis
|
|
2396
|
-
|
|
2397
|
-
...(input.
|
|
2398
|
-
...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
|
|
2406
|
+
...(input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) }),
|
|
2407
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2408
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2399
2409
|
};
|
|
2400
2410
|
};
|
|
2401
2411
|
const serializeAws_restJson1AutoEnable = (input, context) => {
|
|
2402
2412
|
return {
|
|
2403
|
-
...(input.ec2
|
|
2404
|
-
...(input.ecr
|
|
2413
|
+
...(input.ec2 != null && { ec2: input.ec2 }),
|
|
2414
|
+
...(input.ecr != null && { ecr: input.ecr }),
|
|
2405
2415
|
};
|
|
2406
2416
|
};
|
|
2407
2417
|
const serializeAws_restJson1AwsEcrContainerAggregation = (input, context) => {
|
|
2408
2418
|
return {
|
|
2409
|
-
...(input.architectures
|
|
2410
|
-
input.architectures !== null && {
|
|
2419
|
+
...(input.architectures != null && {
|
|
2411
2420
|
architectures: serializeAws_restJson1StringFilterList(input.architectures, context),
|
|
2412
2421
|
}),
|
|
2413
|
-
...(input.imageShas
|
|
2414
|
-
|
|
2415
|
-
...(input.
|
|
2416
|
-
input.imageTags !== null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) }),
|
|
2417
|
-
...(input.repositories !== undefined &&
|
|
2418
|
-
input.repositories !== null && {
|
|
2422
|
+
...(input.imageShas != null && { imageShas: serializeAws_restJson1StringFilterList(input.imageShas, context) }),
|
|
2423
|
+
...(input.imageTags != null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) }),
|
|
2424
|
+
...(input.repositories != null && {
|
|
2419
2425
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2420
2426
|
}),
|
|
2421
|
-
...(input.resourceIds
|
|
2422
|
-
input.resourceIds !== null && {
|
|
2427
|
+
...(input.resourceIds != null && {
|
|
2423
2428
|
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2424
2429
|
}),
|
|
2425
|
-
...(input.sortBy
|
|
2426
|
-
...(input.sortOrder
|
|
2430
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2431
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2427
2432
|
};
|
|
2428
2433
|
};
|
|
2429
2434
|
const serializeAws_restJson1CoverageFilterCriteria = (input, context) => {
|
|
2430
2435
|
return {
|
|
2431
|
-
...(input.accountId
|
|
2432
|
-
input.accountId !== null && {
|
|
2436
|
+
...(input.accountId != null && {
|
|
2433
2437
|
accountId: serializeAws_restJson1CoverageStringFilterList(input.accountId, context),
|
|
2434
2438
|
}),
|
|
2435
|
-
...(input.ec2InstanceTags
|
|
2436
|
-
input.ec2InstanceTags !== null && {
|
|
2439
|
+
...(input.ec2InstanceTags != null && {
|
|
2437
2440
|
ec2InstanceTags: serializeAws_restJson1CoverageMapFilterList(input.ec2InstanceTags, context),
|
|
2438
2441
|
}),
|
|
2439
|
-
...(input.ecrImageTags
|
|
2440
|
-
input.ecrImageTags !== null && {
|
|
2442
|
+
...(input.ecrImageTags != null && {
|
|
2441
2443
|
ecrImageTags: serializeAws_restJson1CoverageStringFilterList(input.ecrImageTags, context),
|
|
2442
2444
|
}),
|
|
2443
|
-
...(input.ecrRepositoryName
|
|
2444
|
-
input.ecrRepositoryName !== null && {
|
|
2445
|
+
...(input.ecrRepositoryName != null && {
|
|
2445
2446
|
ecrRepositoryName: serializeAws_restJson1CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
2446
2447
|
}),
|
|
2447
|
-
...(input.resourceId
|
|
2448
|
-
input.resourceId !== null && {
|
|
2448
|
+
...(input.resourceId != null && {
|
|
2449
2449
|
resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
|
|
2450
2450
|
}),
|
|
2451
|
-
...(input.resourceType
|
|
2452
|
-
input.resourceType !== null && {
|
|
2451
|
+
...(input.resourceType != null && {
|
|
2453
2452
|
resourceType: serializeAws_restJson1CoverageStringFilterList(input.resourceType, context),
|
|
2454
2453
|
}),
|
|
2455
|
-
...(input.scanStatusCode
|
|
2456
|
-
input.scanStatusCode !== null && {
|
|
2454
|
+
...(input.scanStatusCode != null && {
|
|
2457
2455
|
scanStatusCode: serializeAws_restJson1CoverageStringFilterList(input.scanStatusCode, context),
|
|
2458
2456
|
}),
|
|
2459
|
-
...(input.scanStatusReason
|
|
2460
|
-
input.scanStatusReason !== null && {
|
|
2457
|
+
...(input.scanStatusReason != null && {
|
|
2461
2458
|
scanStatusReason: serializeAws_restJson1CoverageStringFilterList(input.scanStatusReason, context),
|
|
2462
2459
|
}),
|
|
2463
|
-
...(input.scanType
|
|
2464
|
-
|
|
2460
|
+
...(input.scanType != null && {
|
|
2461
|
+
scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context),
|
|
2462
|
+
}),
|
|
2465
2463
|
};
|
|
2466
2464
|
};
|
|
2467
2465
|
const serializeAws_restJson1CoverageMapFilter = (input, context) => {
|
|
2468
2466
|
return {
|
|
2469
|
-
...(input.comparison
|
|
2470
|
-
...(input.key
|
|
2471
|
-
...(input.value
|
|
2467
|
+
...(input.comparison != null && { comparison: input.comparison }),
|
|
2468
|
+
...(input.key != null && { key: input.key }),
|
|
2469
|
+
...(input.value != null && { value: input.value }),
|
|
2472
2470
|
};
|
|
2473
2471
|
};
|
|
2474
2472
|
const serializeAws_restJson1CoverageMapFilterList = (input, context) => {
|
|
@@ -2483,8 +2481,8 @@ const serializeAws_restJson1CoverageMapFilterList = (input, context) => {
|
|
|
2483
2481
|
};
|
|
2484
2482
|
const serializeAws_restJson1CoverageStringFilter = (input, context) => {
|
|
2485
2483
|
return {
|
|
2486
|
-
...(input.comparison
|
|
2487
|
-
...(input.value
|
|
2484
|
+
...(input.comparison != null && { comparison: input.comparison }),
|
|
2485
|
+
...(input.value != null && { value: input.value }),
|
|
2488
2486
|
};
|
|
2489
2487
|
};
|
|
2490
2488
|
const serializeAws_restJson1CoverageStringFilterList = (input, context) => {
|
|
@@ -2499,10 +2497,8 @@ const serializeAws_restJson1CoverageStringFilterList = (input, context) => {
|
|
|
2499
2497
|
};
|
|
2500
2498
|
const serializeAws_restJson1DateFilter = (input, context) => {
|
|
2501
2499
|
return {
|
|
2502
|
-
...(input.endInclusive
|
|
2503
|
-
|
|
2504
|
-
...(input.startInclusive !== undefined &&
|
|
2505
|
-
input.startInclusive !== null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }),
|
|
2500
|
+
...(input.endInclusive != null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) }),
|
|
2501
|
+
...(input.startInclusive != null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }),
|
|
2506
2502
|
};
|
|
2507
2503
|
};
|
|
2508
2504
|
const serializeAws_restJson1DateFilterList = (input, context) => {
|
|
@@ -2517,9 +2513,9 @@ const serializeAws_restJson1DateFilterList = (input, context) => {
|
|
|
2517
2513
|
};
|
|
2518
2514
|
const serializeAws_restJson1Destination = (input, context) => {
|
|
2519
2515
|
return {
|
|
2520
|
-
...(input.bucketName
|
|
2521
|
-
...(input.keyPrefix
|
|
2522
|
-
...(input.kmsKeyArn
|
|
2516
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
2517
|
+
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
2518
|
+
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
2523
2519
|
};
|
|
2524
2520
|
};
|
|
2525
2521
|
const serializeAws_restJson1DisableResourceTypeList = (input, context) => {
|
|
@@ -2534,22 +2530,18 @@ const serializeAws_restJson1DisableResourceTypeList = (input, context) => {
|
|
|
2534
2530
|
};
|
|
2535
2531
|
const serializeAws_restJson1Ec2InstanceAggregation = (input, context) => {
|
|
2536
2532
|
return {
|
|
2537
|
-
...(input.amis
|
|
2538
|
-
|
|
2539
|
-
...(input.instanceIds !== undefined &&
|
|
2540
|
-
input.instanceIds !== null && {
|
|
2533
|
+
...(input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) }),
|
|
2534
|
+
...(input.instanceIds != null && {
|
|
2541
2535
|
instanceIds: serializeAws_restJson1StringFilterList(input.instanceIds, context),
|
|
2542
2536
|
}),
|
|
2543
|
-
...(input.instanceTags
|
|
2544
|
-
input.instanceTags !== null && {
|
|
2537
|
+
...(input.instanceTags != null && {
|
|
2545
2538
|
instanceTags: serializeAws_restJson1MapFilterList(input.instanceTags, context),
|
|
2546
2539
|
}),
|
|
2547
|
-
...(input.operatingSystems
|
|
2548
|
-
input.operatingSystems !== null && {
|
|
2540
|
+
...(input.operatingSystems != null && {
|
|
2549
2541
|
operatingSystems: serializeAws_restJson1StringFilterList(input.operatingSystems, context),
|
|
2550
2542
|
}),
|
|
2551
|
-
...(input.sortBy
|
|
2552
|
-
...(input.sortOrder
|
|
2543
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2544
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2553
2545
|
};
|
|
2554
2546
|
};
|
|
2555
2547
|
const serializeAws_restJson1EnableResourceTypeList = (input, context) => {
|
|
@@ -2574,151 +2566,117 @@ const serializeAws_restJson1FilterArnList = (input, context) => {
|
|
|
2574
2566
|
};
|
|
2575
2567
|
const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
2576
2568
|
return {
|
|
2577
|
-
...(input.awsAccountId
|
|
2578
|
-
input.awsAccountId !== null && {
|
|
2569
|
+
...(input.awsAccountId != null && {
|
|
2579
2570
|
awsAccountId: serializeAws_restJson1StringFilterList(input.awsAccountId, context),
|
|
2580
2571
|
}),
|
|
2581
|
-
...(input.componentId
|
|
2582
|
-
input.componentId !== null && {
|
|
2572
|
+
...(input.componentId != null && {
|
|
2583
2573
|
componentId: serializeAws_restJson1StringFilterList(input.componentId, context),
|
|
2584
2574
|
}),
|
|
2585
|
-
...(input.componentType
|
|
2586
|
-
input.componentType !== null && {
|
|
2575
|
+
...(input.componentType != null && {
|
|
2587
2576
|
componentType: serializeAws_restJson1StringFilterList(input.componentType, context),
|
|
2588
2577
|
}),
|
|
2589
|
-
...(input.ec2InstanceImageId
|
|
2590
|
-
input.ec2InstanceImageId !== null && {
|
|
2578
|
+
...(input.ec2InstanceImageId != null && {
|
|
2591
2579
|
ec2InstanceImageId: serializeAws_restJson1StringFilterList(input.ec2InstanceImageId, context),
|
|
2592
2580
|
}),
|
|
2593
|
-
...(input.ec2InstanceSubnetId
|
|
2594
|
-
input.ec2InstanceSubnetId !== null && {
|
|
2581
|
+
...(input.ec2InstanceSubnetId != null && {
|
|
2595
2582
|
ec2InstanceSubnetId: serializeAws_restJson1StringFilterList(input.ec2InstanceSubnetId, context),
|
|
2596
2583
|
}),
|
|
2597
|
-
...(input.ec2InstanceVpcId
|
|
2598
|
-
input.ec2InstanceVpcId !== null && {
|
|
2584
|
+
...(input.ec2InstanceVpcId != null && {
|
|
2599
2585
|
ec2InstanceVpcId: serializeAws_restJson1StringFilterList(input.ec2InstanceVpcId, context),
|
|
2600
2586
|
}),
|
|
2601
|
-
...(input.ecrImageArchitecture
|
|
2602
|
-
input.ecrImageArchitecture !== null && {
|
|
2587
|
+
...(input.ecrImageArchitecture != null && {
|
|
2603
2588
|
ecrImageArchitecture: serializeAws_restJson1StringFilterList(input.ecrImageArchitecture, context),
|
|
2604
2589
|
}),
|
|
2605
|
-
...(input.ecrImageHash
|
|
2606
|
-
input.ecrImageHash !== null && {
|
|
2590
|
+
...(input.ecrImageHash != null && {
|
|
2607
2591
|
ecrImageHash: serializeAws_restJson1StringFilterList(input.ecrImageHash, context),
|
|
2608
2592
|
}),
|
|
2609
|
-
...(input.ecrImagePushedAt
|
|
2610
|
-
input.ecrImagePushedAt !== null && {
|
|
2593
|
+
...(input.ecrImagePushedAt != null && {
|
|
2611
2594
|
ecrImagePushedAt: serializeAws_restJson1DateFilterList(input.ecrImagePushedAt, context),
|
|
2612
2595
|
}),
|
|
2613
|
-
...(input.ecrImageRegistry
|
|
2614
|
-
input.ecrImageRegistry !== null && {
|
|
2596
|
+
...(input.ecrImageRegistry != null && {
|
|
2615
2597
|
ecrImageRegistry: serializeAws_restJson1StringFilterList(input.ecrImageRegistry, context),
|
|
2616
2598
|
}),
|
|
2617
|
-
...(input.ecrImageRepositoryName
|
|
2618
|
-
input.ecrImageRepositoryName !== null && {
|
|
2599
|
+
...(input.ecrImageRepositoryName != null && {
|
|
2619
2600
|
ecrImageRepositoryName: serializeAws_restJson1StringFilterList(input.ecrImageRepositoryName, context),
|
|
2620
2601
|
}),
|
|
2621
|
-
...(input.ecrImageTags
|
|
2622
|
-
input.ecrImageTags !== null && {
|
|
2602
|
+
...(input.ecrImageTags != null && {
|
|
2623
2603
|
ecrImageTags: serializeAws_restJson1StringFilterList(input.ecrImageTags, context),
|
|
2624
2604
|
}),
|
|
2625
|
-
...(input.findingArn
|
|
2626
|
-
|
|
2627
|
-
...(input.findingStatus !== undefined &&
|
|
2628
|
-
input.findingStatus !== null && {
|
|
2605
|
+
...(input.findingArn != null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) }),
|
|
2606
|
+
...(input.findingStatus != null && {
|
|
2629
2607
|
findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
|
|
2630
2608
|
}),
|
|
2631
|
-
...(input.findingType
|
|
2632
|
-
input.findingType !== null && {
|
|
2609
|
+
...(input.findingType != null && {
|
|
2633
2610
|
findingType: serializeAws_restJson1StringFilterList(input.findingType, context),
|
|
2634
2611
|
}),
|
|
2635
|
-
...(input.firstObservedAt
|
|
2636
|
-
input.firstObservedAt !== null && {
|
|
2612
|
+
...(input.firstObservedAt != null && {
|
|
2637
2613
|
firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
|
|
2638
2614
|
}),
|
|
2639
|
-
...(input.inspectorScore
|
|
2640
|
-
input.inspectorScore !== null && {
|
|
2615
|
+
...(input.inspectorScore != null && {
|
|
2641
2616
|
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
2642
2617
|
}),
|
|
2643
|
-
...(input.lastObservedAt
|
|
2644
|
-
input.lastObservedAt !== null && {
|
|
2618
|
+
...(input.lastObservedAt != null && {
|
|
2645
2619
|
lastObservedAt: serializeAws_restJson1DateFilterList(input.lastObservedAt, context),
|
|
2646
2620
|
}),
|
|
2647
|
-
...(input.networkProtocol
|
|
2648
|
-
input.networkProtocol !== null && {
|
|
2621
|
+
...(input.networkProtocol != null && {
|
|
2649
2622
|
networkProtocol: serializeAws_restJson1StringFilterList(input.networkProtocol, context),
|
|
2650
2623
|
}),
|
|
2651
|
-
...(input.portRange
|
|
2652
|
-
|
|
2653
|
-
...(input.relatedVulnerabilities !== undefined &&
|
|
2654
|
-
input.relatedVulnerabilities !== null && {
|
|
2624
|
+
...(input.portRange != null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) }),
|
|
2625
|
+
...(input.relatedVulnerabilities != null && {
|
|
2655
2626
|
relatedVulnerabilities: serializeAws_restJson1StringFilterList(input.relatedVulnerabilities, context),
|
|
2656
2627
|
}),
|
|
2657
|
-
...(input.resourceId
|
|
2658
|
-
|
|
2659
|
-
...(input.resourceTags !== undefined &&
|
|
2660
|
-
input.resourceTags !== null && {
|
|
2628
|
+
...(input.resourceId != null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) }),
|
|
2629
|
+
...(input.resourceTags != null && {
|
|
2661
2630
|
resourceTags: serializeAws_restJson1MapFilterList(input.resourceTags, context),
|
|
2662
2631
|
}),
|
|
2663
|
-
...(input.resourceType
|
|
2664
|
-
input.resourceType !== null && {
|
|
2632
|
+
...(input.resourceType != null && {
|
|
2665
2633
|
resourceType: serializeAws_restJson1StringFilterList(input.resourceType, context),
|
|
2666
2634
|
}),
|
|
2667
|
-
...(input.severity
|
|
2668
|
-
|
|
2669
|
-
...(input.
|
|
2670
|
-
|
|
2671
|
-
...(input.updatedAt !== undefined &&
|
|
2672
|
-
input.updatedAt !== null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) }),
|
|
2673
|
-
...(input.vendorSeverity !== undefined &&
|
|
2674
|
-
input.vendorSeverity !== null && {
|
|
2635
|
+
...(input.severity != null && { severity: serializeAws_restJson1StringFilterList(input.severity, context) }),
|
|
2636
|
+
...(input.title != null && { title: serializeAws_restJson1StringFilterList(input.title, context) }),
|
|
2637
|
+
...(input.updatedAt != null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) }),
|
|
2638
|
+
...(input.vendorSeverity != null && {
|
|
2675
2639
|
vendorSeverity: serializeAws_restJson1StringFilterList(input.vendorSeverity, context),
|
|
2676
2640
|
}),
|
|
2677
|
-
...(input.vulnerabilityId
|
|
2678
|
-
input.vulnerabilityId !== null && {
|
|
2641
|
+
...(input.vulnerabilityId != null && {
|
|
2679
2642
|
vulnerabilityId: serializeAws_restJson1StringFilterList(input.vulnerabilityId, context),
|
|
2680
2643
|
}),
|
|
2681
|
-
...(input.vulnerabilitySource
|
|
2682
|
-
input.vulnerabilitySource !== null && {
|
|
2644
|
+
...(input.vulnerabilitySource != null && {
|
|
2683
2645
|
vulnerabilitySource: serializeAws_restJson1StringFilterList(input.vulnerabilitySource, context),
|
|
2684
2646
|
}),
|
|
2685
|
-
...(input.vulnerablePackages
|
|
2686
|
-
input.vulnerablePackages !== null && {
|
|
2647
|
+
...(input.vulnerablePackages != null && {
|
|
2687
2648
|
vulnerablePackages: serializeAws_restJson1PackageFilterList(input.vulnerablePackages, context),
|
|
2688
2649
|
}),
|
|
2689
2650
|
};
|
|
2690
2651
|
};
|
|
2691
2652
|
const serializeAws_restJson1FindingTypeAggregation = (input, context) => {
|
|
2692
2653
|
return {
|
|
2693
|
-
...(input.findingType
|
|
2694
|
-
...(input.resourceType
|
|
2695
|
-
...(input.sortBy
|
|
2696
|
-
...(input.sortOrder
|
|
2654
|
+
...(input.findingType != null && { findingType: input.findingType }),
|
|
2655
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2656
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2657
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2697
2658
|
};
|
|
2698
2659
|
};
|
|
2699
2660
|
const serializeAws_restJson1ImageLayerAggregation = (input, context) => {
|
|
2700
2661
|
return {
|
|
2701
|
-
...(input.layerHashes
|
|
2702
|
-
input.layerHashes !== null && {
|
|
2662
|
+
...(input.layerHashes != null && {
|
|
2703
2663
|
layerHashes: serializeAws_restJson1StringFilterList(input.layerHashes, context),
|
|
2704
2664
|
}),
|
|
2705
|
-
...(input.repositories
|
|
2706
|
-
input.repositories !== null && {
|
|
2665
|
+
...(input.repositories != null && {
|
|
2707
2666
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2708
2667
|
}),
|
|
2709
|
-
...(input.resourceIds
|
|
2710
|
-
input.resourceIds !== null && {
|
|
2668
|
+
...(input.resourceIds != null && {
|
|
2711
2669
|
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2712
2670
|
}),
|
|
2713
|
-
...(input.sortBy
|
|
2714
|
-
...(input.sortOrder
|
|
2671
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2672
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2715
2673
|
};
|
|
2716
2674
|
};
|
|
2717
2675
|
const serializeAws_restJson1MapFilter = (input, context) => {
|
|
2718
2676
|
return {
|
|
2719
|
-
...(input.comparison
|
|
2720
|
-
...(input.key
|
|
2721
|
-
...(input.value
|
|
2677
|
+
...(input.comparison != null && { comparison: input.comparison }),
|
|
2678
|
+
...(input.key != null && { key: input.key }),
|
|
2679
|
+
...(input.value != null && { value: input.value }),
|
|
2722
2680
|
};
|
|
2723
2681
|
};
|
|
2724
2682
|
const serializeAws_restJson1MapFilterList = (input, context) => {
|
|
@@ -2743,10 +2701,8 @@ const serializeAws_restJson1MeteringAccountIdList = (input, context) => {
|
|
|
2743
2701
|
};
|
|
2744
2702
|
const serializeAws_restJson1NumberFilter = (input, context) => {
|
|
2745
2703
|
return {
|
|
2746
|
-
...(input.lowerInclusive
|
|
2747
|
-
|
|
2748
|
-
...(input.upperInclusive !== undefined &&
|
|
2749
|
-
input.upperInclusive !== null && { upperInclusive: (0, smithy_client_1.serializeFloat)(input.upperInclusive) }),
|
|
2704
|
+
...(input.lowerInclusive != null && { lowerInclusive: (0, smithy_client_1.serializeFloat)(input.lowerInclusive) }),
|
|
2705
|
+
...(input.upperInclusive != null && { upperInclusive: (0, smithy_client_1.serializeFloat)(input.upperInclusive) }),
|
|
2750
2706
|
};
|
|
2751
2707
|
};
|
|
2752
2708
|
const serializeAws_restJson1NumberFilterList = (input, context) => {
|
|
@@ -2761,30 +2717,25 @@ const serializeAws_restJson1NumberFilterList = (input, context) => {
|
|
|
2761
2717
|
};
|
|
2762
2718
|
const serializeAws_restJson1PackageAggregation = (input, context) => {
|
|
2763
2719
|
return {
|
|
2764
|
-
...(input.packageNames
|
|
2765
|
-
input.packageNames !== null && {
|
|
2720
|
+
...(input.packageNames != null && {
|
|
2766
2721
|
packageNames: serializeAws_restJson1StringFilterList(input.packageNames, context),
|
|
2767
2722
|
}),
|
|
2768
|
-
...(input.sortBy
|
|
2769
|
-
...(input.sortOrder
|
|
2723
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2724
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2770
2725
|
};
|
|
2771
2726
|
};
|
|
2772
2727
|
const serializeAws_restJson1PackageFilter = (input, context) => {
|
|
2773
2728
|
return {
|
|
2774
|
-
...(input.architecture
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
...(input.name
|
|
2779
|
-
|
|
2780
|
-
...(input.
|
|
2781
|
-
input.release !== null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
|
|
2782
|
-
...(input.sourceLayerHash !== undefined &&
|
|
2783
|
-
input.sourceLayerHash !== null && {
|
|
2729
|
+
...(input.architecture != null && {
|
|
2730
|
+
architecture: serializeAws_restJson1StringFilter(input.architecture, context),
|
|
2731
|
+
}),
|
|
2732
|
+
...(input.epoch != null && { epoch: serializeAws_restJson1NumberFilter(input.epoch, context) }),
|
|
2733
|
+
...(input.name != null && { name: serializeAws_restJson1StringFilter(input.name, context) }),
|
|
2734
|
+
...(input.release != null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
|
|
2735
|
+
...(input.sourceLayerHash != null && {
|
|
2784
2736
|
sourceLayerHash: serializeAws_restJson1StringFilter(input.sourceLayerHash, context),
|
|
2785
2737
|
}),
|
|
2786
|
-
...(input.version
|
|
2787
|
-
input.version !== null && { version: serializeAws_restJson1StringFilter(input.version, context) }),
|
|
2738
|
+
...(input.version != null && { version: serializeAws_restJson1StringFilter(input.version, context) }),
|
|
2788
2739
|
};
|
|
2789
2740
|
};
|
|
2790
2741
|
const serializeAws_restJson1PackageFilterList = (input, context) => {
|
|
@@ -2799,9 +2750,8 @@ const serializeAws_restJson1PackageFilterList = (input, context) => {
|
|
|
2799
2750
|
};
|
|
2800
2751
|
const serializeAws_restJson1PortRangeFilter = (input, context) => {
|
|
2801
2752
|
return {
|
|
2802
|
-
...(input.beginInclusive
|
|
2803
|
-
|
|
2804
|
-
...(input.endInclusive !== undefined && input.endInclusive !== null && { endInclusive: input.endInclusive }),
|
|
2753
|
+
...(input.beginInclusive != null && { beginInclusive: input.beginInclusive }),
|
|
2754
|
+
...(input.endInclusive != null && { endInclusive: input.endInclusive }),
|
|
2805
2755
|
};
|
|
2806
2756
|
};
|
|
2807
2757
|
const serializeAws_restJson1PortRangeFilterList = (input, context) => {
|
|
@@ -2816,24 +2766,23 @@ const serializeAws_restJson1PortRangeFilterList = (input, context) => {
|
|
|
2816
2766
|
};
|
|
2817
2767
|
const serializeAws_restJson1RepositoryAggregation = (input, context) => {
|
|
2818
2768
|
return {
|
|
2819
|
-
...(input.repositories
|
|
2820
|
-
input.repositories !== null && {
|
|
2769
|
+
...(input.repositories != null && {
|
|
2821
2770
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2822
2771
|
}),
|
|
2823
|
-
...(input.sortBy
|
|
2824
|
-
...(input.sortOrder
|
|
2772
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2773
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2825
2774
|
};
|
|
2826
2775
|
};
|
|
2827
2776
|
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
2828
2777
|
return {
|
|
2829
|
-
...(input.field
|
|
2830
|
-
...(input.sortOrder
|
|
2778
|
+
...(input.field != null && { field: input.field }),
|
|
2779
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2831
2780
|
};
|
|
2832
2781
|
};
|
|
2833
2782
|
const serializeAws_restJson1StringFilter = (input, context) => {
|
|
2834
2783
|
return {
|
|
2835
|
-
...(input.comparison
|
|
2836
|
-
...(input.value
|
|
2784
|
+
...(input.comparison != null && { comparison: input.comparison }),
|
|
2785
|
+
...(input.value != null && { value: input.value }),
|
|
2837
2786
|
};
|
|
2838
2787
|
};
|
|
2839
2788
|
const serializeAws_restJson1StringFilterList = (input, context) => {
|
|
@@ -2859,13 +2808,11 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2859
2808
|
};
|
|
2860
2809
|
const serializeAws_restJson1TitleAggregation = (input, context) => {
|
|
2861
2810
|
return {
|
|
2862
|
-
...(input.resourceType
|
|
2863
|
-
...(input.sortBy
|
|
2864
|
-
...(input.sortOrder
|
|
2865
|
-
...(input.titles
|
|
2866
|
-
|
|
2867
|
-
...(input.vulnerabilityIds !== undefined &&
|
|
2868
|
-
input.vulnerabilityIds !== null && {
|
|
2811
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2812
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2813
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2814
|
+
...(input.titles != null && { titles: serializeAws_restJson1StringFilterList(input.titles, context) }),
|
|
2815
|
+
...(input.vulnerabilityIds != null && {
|
|
2869
2816
|
vulnerabilityIds: serializeAws_restJson1StringFilterList(input.vulnerabilityIds, context),
|
|
2870
2817
|
}),
|
|
2871
2818
|
};
|
|
@@ -2883,7 +2830,7 @@ const serializeAws_restJson1UsageAccountIdList = (input, context) => {
|
|
|
2883
2830
|
const deserializeAws_restJson1Account = (output, context) => {
|
|
2884
2831
|
return {
|
|
2885
2832
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2886
|
-
resourceStatus: output.resourceStatus
|
|
2833
|
+
resourceStatus: output.resourceStatus != null
|
|
2887
2834
|
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
2888
2835
|
: undefined,
|
|
2889
2836
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -2892,7 +2839,7 @@ const deserializeAws_restJson1Account = (output, context) => {
|
|
|
2892
2839
|
const deserializeAws_restJson1AccountAggregationResponse = (output, context) => {
|
|
2893
2840
|
return {
|
|
2894
2841
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2895
|
-
severityCounts: output.severityCounts
|
|
2842
|
+
severityCounts: output.severityCounts != null
|
|
2896
2843
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
2897
2844
|
: undefined,
|
|
2898
2845
|
};
|
|
@@ -2911,12 +2858,8 @@ const deserializeAws_restJson1AccountList = (output, context) => {
|
|
|
2911
2858
|
const deserializeAws_restJson1AccountState = (output, context) => {
|
|
2912
2859
|
return {
|
|
2913
2860
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2914
|
-
resourceState: output.resourceState
|
|
2915
|
-
|
|
2916
|
-
: undefined,
|
|
2917
|
-
state: output.state !== undefined && output.state !== null
|
|
2918
|
-
? deserializeAws_restJson1State(output.state, context)
|
|
2919
|
-
: undefined,
|
|
2861
|
+
resourceState: output.resourceState != null ? deserializeAws_restJson1ResourceState(output.resourceState, context) : undefined,
|
|
2862
|
+
state: output.state != null ? deserializeAws_restJson1State(output.state, context) : undefined,
|
|
2920
2863
|
};
|
|
2921
2864
|
};
|
|
2922
2865
|
const deserializeAws_restJson1AccountStateList = (output, context) => {
|
|
@@ -2994,7 +2937,7 @@ const deserializeAws_restJson1AmiAggregationResponse = (output, context) => {
|
|
|
2994
2937
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2995
2938
|
affectedInstances: (0, smithy_client_1.expectLong)(output.affectedInstances),
|
|
2996
2939
|
ami: (0, smithy_client_1.expectString)(output.ami),
|
|
2997
|
-
severityCounts: output.severityCounts
|
|
2940
|
+
severityCounts: output.severityCounts != null
|
|
2998
2941
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
2999
2942
|
: undefined,
|
|
3000
2943
|
};
|
|
@@ -3009,16 +2952,10 @@ const deserializeAws_restJson1AwsEc2InstanceDetails = (output, context) => {
|
|
|
3009
2952
|
return {
|
|
3010
2953
|
iamInstanceProfileArn: (0, smithy_client_1.expectString)(output.iamInstanceProfileArn),
|
|
3011
2954
|
imageId: (0, smithy_client_1.expectString)(output.imageId),
|
|
3012
|
-
ipV4Addresses: output.ipV4Addresses
|
|
3013
|
-
|
|
3014
|
-
: undefined,
|
|
3015
|
-
ipV6Addresses: output.ipV6Addresses !== undefined && output.ipV6Addresses !== null
|
|
3016
|
-
? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context)
|
|
3017
|
-
: undefined,
|
|
2955
|
+
ipV4Addresses: output.ipV4Addresses != null ? deserializeAws_restJson1IpV4AddressList(output.ipV4Addresses, context) : undefined,
|
|
2956
|
+
ipV6Addresses: output.ipV6Addresses != null ? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context) : undefined,
|
|
3018
2957
|
keyName: (0, smithy_client_1.expectString)(output.keyName),
|
|
3019
|
-
launchedAt: output.launchedAt
|
|
3020
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.launchedAt)))
|
|
3021
|
-
: undefined,
|
|
2958
|
+
launchedAt: output.launchedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.launchedAt))) : undefined,
|
|
3022
2959
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3023
2960
|
subnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
3024
2961
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -3030,12 +2967,10 @@ const deserializeAws_restJson1AwsEcrContainerAggregationResponse = (output, cont
|
|
|
3030
2967
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3031
2968
|
architecture: (0, smithy_client_1.expectString)(output.architecture),
|
|
3032
2969
|
imageSha: (0, smithy_client_1.expectString)(output.imageSha),
|
|
3033
|
-
imageTags: output.imageTags
|
|
3034
|
-
? deserializeAws_restJson1StringList(output.imageTags, context)
|
|
3035
|
-
: undefined,
|
|
2970
|
+
imageTags: output.imageTags != null ? deserializeAws_restJson1StringList(output.imageTags, context) : undefined,
|
|
3036
2971
|
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
3037
2972
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
3038
|
-
severityCounts: output.severityCounts
|
|
2973
|
+
severityCounts: output.severityCounts != null
|
|
3039
2974
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3040
2975
|
: undefined,
|
|
3041
2976
|
};
|
|
@@ -3045,13 +2980,9 @@ const deserializeAws_restJson1AwsEcrContainerImageDetails = (output, context) =>
|
|
|
3045
2980
|
architecture: (0, smithy_client_1.expectString)(output.architecture),
|
|
3046
2981
|
author: (0, smithy_client_1.expectString)(output.author),
|
|
3047
2982
|
imageHash: (0, smithy_client_1.expectString)(output.imageHash),
|
|
3048
|
-
imageTags: output.imageTags
|
|
3049
|
-
? deserializeAws_restJson1ImageTagList(output.imageTags, context)
|
|
3050
|
-
: undefined,
|
|
2983
|
+
imageTags: output.imageTags != null ? deserializeAws_restJson1ImageTagList(output.imageTags, context) : undefined,
|
|
3051
2984
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3052
|
-
pushedAt: output.pushedAt
|
|
3053
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt)))
|
|
3054
|
-
: undefined,
|
|
2985
|
+
pushedAt: output.pushedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt))) : undefined,
|
|
3055
2986
|
registry: (0, smithy_client_1.expectString)(output.registry),
|
|
3056
2987
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
3057
2988
|
};
|
|
@@ -3077,13 +3008,11 @@ const deserializeAws_restJson1CoveredResource = (output, context) => {
|
|
|
3077
3008
|
return {
|
|
3078
3009
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3079
3010
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
3080
|
-
resourceMetadata: output.resourceMetadata
|
|
3011
|
+
resourceMetadata: output.resourceMetadata != null
|
|
3081
3012
|
? deserializeAws_restJson1ResourceScanMetadata(output.resourceMetadata, context)
|
|
3082
3013
|
: undefined,
|
|
3083
3014
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
3084
|
-
scanStatus: output.scanStatus
|
|
3085
|
-
? deserializeAws_restJson1ScanStatus(output.scanStatus, context)
|
|
3086
|
-
: undefined,
|
|
3015
|
+
scanStatus: output.scanStatus != null ? deserializeAws_restJson1ScanStatus(output.scanStatus, context) : undefined,
|
|
3087
3016
|
scanType: (0, smithy_client_1.expectString)(output.scanType),
|
|
3088
3017
|
};
|
|
3089
3018
|
};
|
|
@@ -3125,7 +3054,7 @@ const deserializeAws_restJson1CvssScoreAdjustmentList = (output, context) => {
|
|
|
3125
3054
|
};
|
|
3126
3055
|
const deserializeAws_restJson1CvssScoreDetails = (output, context) => {
|
|
3127
3056
|
return {
|
|
3128
|
-
adjustments: output.adjustments
|
|
3057
|
+
adjustments: output.adjustments != null
|
|
3129
3058
|
? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
|
|
3130
3059
|
: undefined,
|
|
3131
3060
|
cvssSource: (0, smithy_client_1.expectString)(output.cvssSource),
|
|
@@ -3148,10 +3077,10 @@ const deserializeAws_restJson1CvssScoreList = (output, context) => {
|
|
|
3148
3077
|
};
|
|
3149
3078
|
const deserializeAws_restJson1DateFilter = (output, context) => {
|
|
3150
3079
|
return {
|
|
3151
|
-
endInclusive: output.endInclusive
|
|
3080
|
+
endInclusive: output.endInclusive != null
|
|
3152
3081
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endInclusive)))
|
|
3153
3082
|
: undefined,
|
|
3154
|
-
startInclusive: output.startInclusive
|
|
3083
|
+
startInclusive: output.startInclusive != null
|
|
3155
3084
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startInclusive)))
|
|
3156
3085
|
: undefined,
|
|
3157
3086
|
};
|
|
@@ -3202,12 +3131,10 @@ const deserializeAws_restJson1Ec2InstanceAggregationResponse = (output, context)
|
|
|
3202
3131
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3203
3132
|
ami: (0, smithy_client_1.expectString)(output.ami),
|
|
3204
3133
|
instanceId: (0, smithy_client_1.expectString)(output.instanceId),
|
|
3205
|
-
instanceTags: output.instanceTags
|
|
3206
|
-
? deserializeAws_restJson1TagMap(output.instanceTags, context)
|
|
3207
|
-
: undefined,
|
|
3134
|
+
instanceTags: output.instanceTags != null ? deserializeAws_restJson1TagMap(output.instanceTags, context) : undefined,
|
|
3208
3135
|
networkFindings: (0, smithy_client_1.expectLong)(output.networkFindings),
|
|
3209
3136
|
operatingSystem: (0, smithy_client_1.expectString)(output.operatingSystem),
|
|
3210
|
-
severityCounts: output.severityCounts
|
|
3137
|
+
severityCounts: output.severityCounts != null
|
|
3211
3138
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3212
3139
|
: undefined,
|
|
3213
3140
|
};
|
|
@@ -3216,16 +3143,12 @@ const deserializeAws_restJson1Ec2Metadata = (output, context) => {
|
|
|
3216
3143
|
return {
|
|
3217
3144
|
amiId: (0, smithy_client_1.expectString)(output.amiId),
|
|
3218
3145
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3219
|
-
tags: output.tags
|
|
3220
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3221
|
-
: undefined,
|
|
3146
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3222
3147
|
};
|
|
3223
3148
|
};
|
|
3224
3149
|
const deserializeAws_restJson1EcrContainerImageMetadata = (output, context) => {
|
|
3225
3150
|
return {
|
|
3226
|
-
tags: output.tags
|
|
3227
|
-
? deserializeAws_restJson1TagList(output.tags, context)
|
|
3228
|
-
: undefined,
|
|
3151
|
+
tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
|
|
3229
3152
|
};
|
|
3230
3153
|
};
|
|
3231
3154
|
const deserializeAws_restJson1EcrRepositoryMetadata = (output, context) => {
|
|
@@ -3239,7 +3162,7 @@ const deserializeAws_restJson1FailedAccount = (output, context) => {
|
|
|
3239
3162
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3240
3163
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3241
3164
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
3242
|
-
resourceStatus: output.resourceStatus
|
|
3165
|
+
resourceStatus: output.resourceStatus != null
|
|
3243
3166
|
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
3244
3167
|
: undefined,
|
|
3245
3168
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -3260,117 +3183,83 @@ const deserializeAws_restJson1Filter = (output, context) => {
|
|
|
3260
3183
|
return {
|
|
3261
3184
|
action: (0, smithy_client_1.expectString)(output.action),
|
|
3262
3185
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3263
|
-
createdAt: output.createdAt
|
|
3264
|
-
|
|
3265
|
-
: undefined,
|
|
3266
|
-
criteria: output.criteria !== undefined && output.criteria !== null
|
|
3267
|
-
? deserializeAws_restJson1FilterCriteria(output.criteria, context)
|
|
3268
|
-
: undefined,
|
|
3186
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3187
|
+
criteria: output.criteria != null ? deserializeAws_restJson1FilterCriteria(output.criteria, context) : undefined,
|
|
3269
3188
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3270
3189
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3271
3190
|
ownerId: (0, smithy_client_1.expectString)(output.ownerId),
|
|
3272
3191
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
3273
|
-
tags: output.tags
|
|
3274
|
-
|
|
3275
|
-
: undefined,
|
|
3276
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3277
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
3278
|
-
: undefined,
|
|
3192
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3193
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3279
3194
|
};
|
|
3280
3195
|
};
|
|
3281
3196
|
const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
3282
3197
|
return {
|
|
3283
|
-
awsAccountId: output.awsAccountId
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
componentId: output.componentId !== undefined && output.componentId !== null
|
|
3287
|
-
? deserializeAws_restJson1StringFilterList(output.componentId, context)
|
|
3288
|
-
: undefined,
|
|
3289
|
-
componentType: output.componentType !== undefined && output.componentType !== null
|
|
3198
|
+
awsAccountId: output.awsAccountId != null ? deserializeAws_restJson1StringFilterList(output.awsAccountId, context) : undefined,
|
|
3199
|
+
componentId: output.componentId != null ? deserializeAws_restJson1StringFilterList(output.componentId, context) : undefined,
|
|
3200
|
+
componentType: output.componentType != null
|
|
3290
3201
|
? deserializeAws_restJson1StringFilterList(output.componentType, context)
|
|
3291
3202
|
: undefined,
|
|
3292
|
-
ec2InstanceImageId: output.ec2InstanceImageId
|
|
3203
|
+
ec2InstanceImageId: output.ec2InstanceImageId != null
|
|
3293
3204
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceImageId, context)
|
|
3294
3205
|
: undefined,
|
|
3295
|
-
ec2InstanceSubnetId: output.ec2InstanceSubnetId
|
|
3206
|
+
ec2InstanceSubnetId: output.ec2InstanceSubnetId != null
|
|
3296
3207
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceSubnetId, context)
|
|
3297
3208
|
: undefined,
|
|
3298
|
-
ec2InstanceVpcId: output.ec2InstanceVpcId
|
|
3209
|
+
ec2InstanceVpcId: output.ec2InstanceVpcId != null
|
|
3299
3210
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceVpcId, context)
|
|
3300
3211
|
: undefined,
|
|
3301
|
-
ecrImageArchitecture: output.ecrImageArchitecture
|
|
3212
|
+
ecrImageArchitecture: output.ecrImageArchitecture != null
|
|
3302
3213
|
? deserializeAws_restJson1StringFilterList(output.ecrImageArchitecture, context)
|
|
3303
3214
|
: undefined,
|
|
3304
|
-
ecrImageHash: output.ecrImageHash
|
|
3305
|
-
|
|
3306
|
-
: undefined,
|
|
3307
|
-
ecrImagePushedAt: output.ecrImagePushedAt !== undefined && output.ecrImagePushedAt !== null
|
|
3215
|
+
ecrImageHash: output.ecrImageHash != null ? deserializeAws_restJson1StringFilterList(output.ecrImageHash, context) : undefined,
|
|
3216
|
+
ecrImagePushedAt: output.ecrImagePushedAt != null
|
|
3308
3217
|
? deserializeAws_restJson1DateFilterList(output.ecrImagePushedAt, context)
|
|
3309
3218
|
: undefined,
|
|
3310
|
-
ecrImageRegistry: output.ecrImageRegistry
|
|
3219
|
+
ecrImageRegistry: output.ecrImageRegistry != null
|
|
3311
3220
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRegistry, context)
|
|
3312
3221
|
: undefined,
|
|
3313
|
-
ecrImageRepositoryName: output.ecrImageRepositoryName
|
|
3222
|
+
ecrImageRepositoryName: output.ecrImageRepositoryName != null
|
|
3314
3223
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
|
|
3315
3224
|
: undefined,
|
|
3316
|
-
ecrImageTags: output.ecrImageTags
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
findingArn: output.findingArn !== undefined && output.findingArn !== null
|
|
3320
|
-
? deserializeAws_restJson1StringFilterList(output.findingArn, context)
|
|
3321
|
-
: undefined,
|
|
3322
|
-
findingStatus: output.findingStatus !== undefined && output.findingStatus !== null
|
|
3225
|
+
ecrImageTags: output.ecrImageTags != null ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context) : undefined,
|
|
3226
|
+
findingArn: output.findingArn != null ? deserializeAws_restJson1StringFilterList(output.findingArn, context) : undefined,
|
|
3227
|
+
findingStatus: output.findingStatus != null
|
|
3323
3228
|
? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
|
|
3324
3229
|
: undefined,
|
|
3325
|
-
findingType: output.findingType
|
|
3326
|
-
|
|
3327
|
-
: undefined,
|
|
3328
|
-
firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
|
|
3230
|
+
findingType: output.findingType != null ? deserializeAws_restJson1StringFilterList(output.findingType, context) : undefined,
|
|
3231
|
+
firstObservedAt: output.firstObservedAt != null
|
|
3329
3232
|
? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
|
|
3330
3233
|
: undefined,
|
|
3331
|
-
inspectorScore: output.inspectorScore
|
|
3234
|
+
inspectorScore: output.inspectorScore != null
|
|
3332
3235
|
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3333
3236
|
: undefined,
|
|
3334
|
-
lastObservedAt: output.lastObservedAt
|
|
3237
|
+
lastObservedAt: output.lastObservedAt != null
|
|
3335
3238
|
? deserializeAws_restJson1DateFilterList(output.lastObservedAt, context)
|
|
3336
3239
|
: undefined,
|
|
3337
|
-
networkProtocol: output.networkProtocol
|
|
3240
|
+
networkProtocol: output.networkProtocol != null
|
|
3338
3241
|
? deserializeAws_restJson1StringFilterList(output.networkProtocol, context)
|
|
3339
3242
|
: undefined,
|
|
3340
|
-
portRange: output.portRange
|
|
3341
|
-
|
|
3342
|
-
: undefined,
|
|
3343
|
-
relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
|
|
3243
|
+
portRange: output.portRange != null ? deserializeAws_restJson1PortRangeFilterList(output.portRange, context) : undefined,
|
|
3244
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3344
3245
|
? deserializeAws_restJson1StringFilterList(output.relatedVulnerabilities, context)
|
|
3345
3246
|
: undefined,
|
|
3346
|
-
resourceId: output.resourceId
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
? deserializeAws_restJson1StringFilterList(output.resourceType, context)
|
|
3354
|
-
: undefined,
|
|
3355
|
-
severity: output.severity !== undefined && output.severity !== null
|
|
3356
|
-
? deserializeAws_restJson1StringFilterList(output.severity, context)
|
|
3357
|
-
: undefined,
|
|
3358
|
-
title: output.title !== undefined && output.title !== null
|
|
3359
|
-
? deserializeAws_restJson1StringFilterList(output.title, context)
|
|
3360
|
-
: undefined,
|
|
3361
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3362
|
-
? deserializeAws_restJson1DateFilterList(output.updatedAt, context)
|
|
3363
|
-
: undefined,
|
|
3364
|
-
vendorSeverity: output.vendorSeverity !== undefined && output.vendorSeverity !== null
|
|
3247
|
+
resourceId: output.resourceId != null ? deserializeAws_restJson1StringFilterList(output.resourceId, context) : undefined,
|
|
3248
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1MapFilterList(output.resourceTags, context) : undefined,
|
|
3249
|
+
resourceType: output.resourceType != null ? deserializeAws_restJson1StringFilterList(output.resourceType, context) : undefined,
|
|
3250
|
+
severity: output.severity != null ? deserializeAws_restJson1StringFilterList(output.severity, context) : undefined,
|
|
3251
|
+
title: output.title != null ? deserializeAws_restJson1StringFilterList(output.title, context) : undefined,
|
|
3252
|
+
updatedAt: output.updatedAt != null ? deserializeAws_restJson1DateFilterList(output.updatedAt, context) : undefined,
|
|
3253
|
+
vendorSeverity: output.vendorSeverity != null
|
|
3365
3254
|
? deserializeAws_restJson1StringFilterList(output.vendorSeverity, context)
|
|
3366
3255
|
: undefined,
|
|
3367
|
-
vulnerabilityId: output.vulnerabilityId
|
|
3256
|
+
vulnerabilityId: output.vulnerabilityId != null
|
|
3368
3257
|
? deserializeAws_restJson1StringFilterList(output.vulnerabilityId, context)
|
|
3369
3258
|
: undefined,
|
|
3370
|
-
vulnerabilitySource: output.vulnerabilitySource
|
|
3259
|
+
vulnerabilitySource: output.vulnerabilitySource != null
|
|
3371
3260
|
? deserializeAws_restJson1StringFilterList(output.vulnerabilitySource, context)
|
|
3372
3261
|
: undefined,
|
|
3373
|
-
vulnerablePackages: output.vulnerablePackages
|
|
3262
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
3374
3263
|
? deserializeAws_restJson1PackageFilterList(output.vulnerablePackages, context)
|
|
3375
3264
|
: undefined,
|
|
3376
3265
|
};
|
|
@@ -3391,35 +3280,29 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3391
3280
|
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
3392
3281
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3393
3282
|
findingArn: (0, smithy_client_1.expectString)(output.findingArn),
|
|
3394
|
-
firstObservedAt: output.firstObservedAt
|
|
3283
|
+
firstObservedAt: output.firstObservedAt != null
|
|
3395
3284
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstObservedAt)))
|
|
3396
3285
|
: undefined,
|
|
3397
3286
|
inspectorScore: (0, smithy_client_1.limitedParseDouble)(output.inspectorScore),
|
|
3398
|
-
inspectorScoreDetails: output.inspectorScoreDetails
|
|
3287
|
+
inspectorScoreDetails: output.inspectorScoreDetails != null
|
|
3399
3288
|
? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
|
|
3400
3289
|
: undefined,
|
|
3401
|
-
lastObservedAt: output.lastObservedAt
|
|
3290
|
+
lastObservedAt: output.lastObservedAt != null
|
|
3402
3291
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastObservedAt)))
|
|
3403
3292
|
: undefined,
|
|
3404
|
-
networkReachabilityDetails: output.networkReachabilityDetails
|
|
3293
|
+
networkReachabilityDetails: output.networkReachabilityDetails != null
|
|
3405
3294
|
? deserializeAws_restJson1NetworkReachabilityDetails(output.networkReachabilityDetails, context)
|
|
3406
3295
|
: undefined,
|
|
3407
|
-
packageVulnerabilityDetails: output.packageVulnerabilityDetails
|
|
3296
|
+
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
3408
3297
|
? deserializeAws_restJson1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
3409
3298
|
: undefined,
|
|
3410
|
-
remediation: output.remediation
|
|
3411
|
-
|
|
3412
|
-
: undefined,
|
|
3413
|
-
resources: output.resources !== undefined && output.resources !== null
|
|
3414
|
-
? deserializeAws_restJson1ResourceList(output.resources, context)
|
|
3415
|
-
: undefined,
|
|
3299
|
+
remediation: output.remediation != null ? deserializeAws_restJson1Remediation(output.remediation, context) : undefined,
|
|
3300
|
+
resources: output.resources != null ? deserializeAws_restJson1ResourceList(output.resources, context) : undefined,
|
|
3416
3301
|
severity: (0, smithy_client_1.expectString)(output.severity),
|
|
3417
3302
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3418
3303
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
3419
3304
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3420
|
-
updatedAt: output.updatedAt
|
|
3421
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
3422
|
-
: undefined,
|
|
3305
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3423
3306
|
};
|
|
3424
3307
|
};
|
|
3425
3308
|
const deserializeAws_restJson1FindingList = (output, context) => {
|
|
@@ -3436,7 +3319,7 @@ const deserializeAws_restJson1FindingList = (output, context) => {
|
|
|
3436
3319
|
const deserializeAws_restJson1FindingTypeAggregationResponse = (output, context) => {
|
|
3437
3320
|
return {
|
|
3438
3321
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3439
|
-
severityCounts: output.severityCounts
|
|
3322
|
+
severityCounts: output.severityCounts != null
|
|
3440
3323
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3441
3324
|
: undefined,
|
|
3442
3325
|
};
|
|
@@ -3444,7 +3327,7 @@ const deserializeAws_restJson1FindingTypeAggregationResponse = (output, context)
|
|
|
3444
3327
|
const deserializeAws_restJson1FreeTrialAccountInfo = (output, context) => {
|
|
3445
3328
|
return {
|
|
3446
3329
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3447
|
-
freeTrialInfo: output.freeTrialInfo
|
|
3330
|
+
freeTrialInfo: output.freeTrialInfo != null
|
|
3448
3331
|
? deserializeAws_restJson1FreeTrialInfoList(output.freeTrialInfo, context)
|
|
3449
3332
|
: undefined,
|
|
3450
3333
|
};
|
|
@@ -3462,12 +3345,8 @@ const deserializeAws_restJson1FreeTrialAccountInfoList = (output, context) => {
|
|
|
3462
3345
|
};
|
|
3463
3346
|
const deserializeAws_restJson1FreeTrialInfo = (output, context) => {
|
|
3464
3347
|
return {
|
|
3465
|
-
end: output.end
|
|
3466
|
-
|
|
3467
|
-
: undefined,
|
|
3468
|
-
start: output.start !== undefined && output.start !== null
|
|
3469
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.start)))
|
|
3470
|
-
: undefined,
|
|
3348
|
+
end: output.end != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.end))) : undefined,
|
|
3349
|
+
start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.start))) : undefined,
|
|
3471
3350
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3472
3351
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3473
3352
|
};
|
|
@@ -3507,7 +3386,7 @@ const deserializeAws_restJson1ImageLayerAggregationResponse = (output, context)
|
|
|
3507
3386
|
layerHash: (0, smithy_client_1.expectString)(output.layerHash),
|
|
3508
3387
|
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
3509
3388
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
3510
|
-
severityCounts: output.severityCounts
|
|
3389
|
+
severityCounts: output.severityCounts != null
|
|
3511
3390
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3512
3391
|
: undefined,
|
|
3513
3392
|
};
|
|
@@ -3525,9 +3404,7 @@ const deserializeAws_restJson1ImageTagList = (output, context) => {
|
|
|
3525
3404
|
};
|
|
3526
3405
|
const deserializeAws_restJson1InspectorScoreDetails = (output, context) => {
|
|
3527
3406
|
return {
|
|
3528
|
-
adjustedCvss: output.adjustedCvss
|
|
3529
|
-
? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context)
|
|
3530
|
-
: undefined,
|
|
3407
|
+
adjustedCvss: output.adjustedCvss != null ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context) : undefined,
|
|
3531
3408
|
};
|
|
3532
3409
|
};
|
|
3533
3410
|
const deserializeAws_restJson1IpV4AddressList = (output, context) => {
|
|
@@ -3575,9 +3452,7 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
3575
3452
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3576
3453
|
delegatedAdminAccountId: (0, smithy_client_1.expectString)(output.delegatedAdminAccountId),
|
|
3577
3454
|
relationshipStatus: (0, smithy_client_1.expectString)(output.relationshipStatus),
|
|
3578
|
-
updatedAt: output.updatedAt
|
|
3579
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
3580
|
-
: undefined,
|
|
3455
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3581
3456
|
};
|
|
3582
3457
|
};
|
|
3583
3458
|
const deserializeAws_restJson1MemberList = (output, context) => {
|
|
@@ -3593,19 +3468,13 @@ const deserializeAws_restJson1MemberList = (output, context) => {
|
|
|
3593
3468
|
};
|
|
3594
3469
|
const deserializeAws_restJson1NetworkPath = (output, context) => {
|
|
3595
3470
|
return {
|
|
3596
|
-
steps: output.steps
|
|
3597
|
-
? deserializeAws_restJson1StepList(output.steps, context)
|
|
3598
|
-
: undefined,
|
|
3471
|
+
steps: output.steps != null ? deserializeAws_restJson1StepList(output.steps, context) : undefined,
|
|
3599
3472
|
};
|
|
3600
3473
|
};
|
|
3601
3474
|
const deserializeAws_restJson1NetworkReachabilityDetails = (output, context) => {
|
|
3602
3475
|
return {
|
|
3603
|
-
networkPath: output.networkPath
|
|
3604
|
-
|
|
3605
|
-
: undefined,
|
|
3606
|
-
openPortRange: output.openPortRange !== undefined && output.openPortRange !== null
|
|
3607
|
-
? deserializeAws_restJson1PortRange(output.openPortRange, context)
|
|
3608
|
-
: undefined,
|
|
3476
|
+
networkPath: output.networkPath != null ? deserializeAws_restJson1NetworkPath(output.networkPath, context) : undefined,
|
|
3477
|
+
openPortRange: output.openPortRange != null ? deserializeAws_restJson1PortRange(output.openPortRange, context) : undefined,
|
|
3609
3478
|
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
3610
3479
|
};
|
|
3611
3480
|
};
|
|
@@ -3641,31 +3510,21 @@ const deserializeAws_restJson1PackageAggregationResponse = (output, context) =>
|
|
|
3641
3510
|
return {
|
|
3642
3511
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3643
3512
|
packageName: (0, smithy_client_1.expectString)(output.packageName),
|
|
3644
|
-
severityCounts: output.severityCounts
|
|
3513
|
+
severityCounts: output.severityCounts != null
|
|
3645
3514
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3646
3515
|
: undefined,
|
|
3647
3516
|
};
|
|
3648
3517
|
};
|
|
3649
3518
|
const deserializeAws_restJson1PackageFilter = (output, context) => {
|
|
3650
3519
|
return {
|
|
3651
|
-
architecture: output.architecture
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
: undefined,
|
|
3657
|
-
name: output.name !== undefined && output.name !== null
|
|
3658
|
-
? deserializeAws_restJson1StringFilter(output.name, context)
|
|
3659
|
-
: undefined,
|
|
3660
|
-
release: output.release !== undefined && output.release !== null
|
|
3661
|
-
? deserializeAws_restJson1StringFilter(output.release, context)
|
|
3662
|
-
: undefined,
|
|
3663
|
-
sourceLayerHash: output.sourceLayerHash !== undefined && output.sourceLayerHash !== null
|
|
3520
|
+
architecture: output.architecture != null ? deserializeAws_restJson1StringFilter(output.architecture, context) : undefined,
|
|
3521
|
+
epoch: output.epoch != null ? deserializeAws_restJson1NumberFilter(output.epoch, context) : undefined,
|
|
3522
|
+
name: output.name != null ? deserializeAws_restJson1StringFilter(output.name, context) : undefined,
|
|
3523
|
+
release: output.release != null ? deserializeAws_restJson1StringFilter(output.release, context) : undefined,
|
|
3524
|
+
sourceLayerHash: output.sourceLayerHash != null
|
|
3664
3525
|
? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
|
|
3665
3526
|
: undefined,
|
|
3666
|
-
version: output.version
|
|
3667
|
-
? deserializeAws_restJson1StringFilter(output.version, context)
|
|
3668
|
-
: undefined,
|
|
3527
|
+
version: output.version != null ? deserializeAws_restJson1StringFilter(output.version, context) : undefined,
|
|
3669
3528
|
};
|
|
3670
3529
|
};
|
|
3671
3530
|
const deserializeAws_restJson1PackageFilterList = (output, context) => {
|
|
@@ -3681,26 +3540,24 @@ const deserializeAws_restJson1PackageFilterList = (output, context) => {
|
|
|
3681
3540
|
};
|
|
3682
3541
|
const deserializeAws_restJson1PackageVulnerabilityDetails = (output, context) => {
|
|
3683
3542
|
return {
|
|
3684
|
-
cvss: output.cvss
|
|
3685
|
-
|
|
3686
|
-
: undefined,
|
|
3687
|
-
referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
|
|
3543
|
+
cvss: output.cvss != null ? deserializeAws_restJson1CvssScoreList(output.cvss, context) : undefined,
|
|
3544
|
+
referenceUrls: output.referenceUrls != null
|
|
3688
3545
|
? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
|
|
3689
3546
|
: undefined,
|
|
3690
|
-
relatedVulnerabilities: output.relatedVulnerabilities
|
|
3547
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3691
3548
|
? deserializeAws_restJson1VulnerabilityIdList(output.relatedVulnerabilities, context)
|
|
3692
3549
|
: undefined,
|
|
3693
3550
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
3694
3551
|
sourceUrl: (0, smithy_client_1.expectString)(output.sourceUrl),
|
|
3695
|
-
vendorCreatedAt: output.vendorCreatedAt
|
|
3552
|
+
vendorCreatedAt: output.vendorCreatedAt != null
|
|
3696
3553
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorCreatedAt)))
|
|
3697
3554
|
: undefined,
|
|
3698
3555
|
vendorSeverity: (0, smithy_client_1.expectString)(output.vendorSeverity),
|
|
3699
|
-
vendorUpdatedAt: output.vendorUpdatedAt
|
|
3556
|
+
vendorUpdatedAt: output.vendorUpdatedAt != null
|
|
3700
3557
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorUpdatedAt)))
|
|
3701
3558
|
: undefined,
|
|
3702
3559
|
vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
|
|
3703
|
-
vulnerablePackages: output.vulnerablePackages
|
|
3560
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
3704
3561
|
? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
|
|
3705
3562
|
: undefined,
|
|
3706
3563
|
};
|
|
@@ -3753,7 +3610,7 @@ const deserializeAws_restJson1Recommendation = (output, context) => {
|
|
|
3753
3610
|
};
|
|
3754
3611
|
const deserializeAws_restJson1Remediation = (output, context) => {
|
|
3755
3612
|
return {
|
|
3756
|
-
recommendation: output.recommendation
|
|
3613
|
+
recommendation: output.recommendation != null
|
|
3757
3614
|
? deserializeAws_restJson1Recommendation(output.recommendation, context)
|
|
3758
3615
|
: undefined,
|
|
3759
3616
|
};
|
|
@@ -3763,31 +3620,27 @@ const deserializeAws_restJson1RepositoryAggregationResponse = (output, context)
|
|
|
3763
3620
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3764
3621
|
affectedImages: (0, smithy_client_1.expectLong)(output.affectedImages),
|
|
3765
3622
|
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
3766
|
-
severityCounts: output.severityCounts
|
|
3623
|
+
severityCounts: output.severityCounts != null
|
|
3767
3624
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3768
3625
|
: undefined,
|
|
3769
3626
|
};
|
|
3770
3627
|
};
|
|
3771
3628
|
const deserializeAws_restJson1Resource = (output, context) => {
|
|
3772
3629
|
return {
|
|
3773
|
-
details: output.details
|
|
3774
|
-
? deserializeAws_restJson1ResourceDetails(output.details, context)
|
|
3775
|
-
: undefined,
|
|
3630
|
+
details: output.details != null ? deserializeAws_restJson1ResourceDetails(output.details, context) : undefined,
|
|
3776
3631
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
3777
3632
|
partition: (0, smithy_client_1.expectString)(output.partition),
|
|
3778
3633
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
3779
|
-
tags: output.tags
|
|
3780
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3781
|
-
: undefined,
|
|
3634
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3782
3635
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3783
3636
|
};
|
|
3784
3637
|
};
|
|
3785
3638
|
const deserializeAws_restJson1ResourceDetails = (output, context) => {
|
|
3786
3639
|
return {
|
|
3787
|
-
awsEc2Instance: output.awsEc2Instance
|
|
3640
|
+
awsEc2Instance: output.awsEc2Instance != null
|
|
3788
3641
|
? deserializeAws_restJson1AwsEc2InstanceDetails(output.awsEc2Instance, context)
|
|
3789
3642
|
: undefined,
|
|
3790
|
-
awsEcrContainerImage: output.awsEcrContainerImage
|
|
3643
|
+
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
3791
3644
|
? deserializeAws_restJson1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
3792
3645
|
: undefined,
|
|
3793
3646
|
};
|
|
@@ -3805,21 +3658,17 @@ const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
|
3805
3658
|
};
|
|
3806
3659
|
const deserializeAws_restJson1ResourceScanMetadata = (output, context) => {
|
|
3807
3660
|
return {
|
|
3808
|
-
ec2: output.ec2
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
ecrImage: output.ecrImage !== undefined && output.ecrImage !== null
|
|
3812
|
-
? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context)
|
|
3813
|
-
: undefined,
|
|
3814
|
-
ecrRepository: output.ecrRepository !== undefined && output.ecrRepository !== null
|
|
3661
|
+
ec2: output.ec2 != null ? deserializeAws_restJson1Ec2Metadata(output.ec2, context) : undefined,
|
|
3662
|
+
ecrImage: output.ecrImage != null ? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context) : undefined,
|
|
3663
|
+
ecrRepository: output.ecrRepository != null
|
|
3815
3664
|
? deserializeAws_restJson1EcrRepositoryMetadata(output.ecrRepository, context)
|
|
3816
3665
|
: undefined,
|
|
3817
3666
|
};
|
|
3818
3667
|
};
|
|
3819
3668
|
const deserializeAws_restJson1ResourceState = (output, context) => {
|
|
3820
3669
|
return {
|
|
3821
|
-
ec2: output.ec2
|
|
3822
|
-
ecr: output.ecr
|
|
3670
|
+
ec2: output.ec2 != null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
|
|
3671
|
+
ecr: output.ecr != null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
|
|
3823
3672
|
};
|
|
3824
3673
|
};
|
|
3825
3674
|
const deserializeAws_restJson1ResourceStatus = (output, context) => {
|
|
@@ -3919,7 +3768,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3919
3768
|
const deserializeAws_restJson1TitleAggregationResponse = (output, context) => {
|
|
3920
3769
|
return {
|
|
3921
3770
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3922
|
-
severityCounts: output.severityCounts
|
|
3771
|
+
severityCounts: output.severityCounts != null
|
|
3923
3772
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3924
3773
|
: undefined,
|
|
3925
3774
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
@@ -3948,9 +3797,7 @@ const deserializeAws_restJson1UsageList = (output, context) => {
|
|
|
3948
3797
|
const deserializeAws_restJson1UsageTotal = (output, context) => {
|
|
3949
3798
|
return {
|
|
3950
3799
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3951
|
-
usage: output.usage
|
|
3952
|
-
? deserializeAws_restJson1UsageList(output.usage, context)
|
|
3953
|
-
: undefined,
|
|
3800
|
+
usage: output.usage != null ? deserializeAws_restJson1UsageList(output.usage, context) : undefined,
|
|
3954
3801
|
};
|
|
3955
3802
|
};
|
|
3956
3803
|
const deserializeAws_restJson1UsageTotalList = (output, context) => {
|
|
@@ -4065,5 +3912,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4065
3912
|
if (data["__type"] !== undefined) {
|
|
4066
3913
|
return sanitizeErrorCode(data["__type"]);
|
|
4067
3914
|
}
|
|
4068
|
-
return "";
|
|
4069
3915
|
};
|