@aws-sdk/client-inspector2 3.312.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +637 -1691
- package/dist-es/protocols/Aws_restJson1.js +598 -1652
- package/package.json +6 -6
|
@@ -14,9 +14,9 @@ const se_AssociateMemberCommand = async (input, context) => {
|
|
|
14
14
|
};
|
|
15
15
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/associate";
|
|
16
16
|
let body;
|
|
17
|
-
body = JSON.stringify({
|
|
18
|
-
|
|
19
|
-
});
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
accountId: [],
|
|
19
|
+
}));
|
|
20
20
|
return new protocol_http_1.HttpRequest({
|
|
21
21
|
protocol,
|
|
22
22
|
hostname,
|
|
@@ -35,9 +35,9 @@ const se_BatchGetAccountStatusCommand = async (input, context) => {
|
|
|
35
35
|
};
|
|
36
36
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/status/batch/get";
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify({
|
|
39
|
-
|
|
40
|
-
});
|
|
38
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
|
+
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
40
|
+
}));
|
|
41
41
|
return new protocol_http_1.HttpRequest({
|
|
42
42
|
protocol,
|
|
43
43
|
hostname,
|
|
@@ -56,9 +56,9 @@ const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
|
|
|
56
56
|
};
|
|
57
57
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/freetrialinfo/batchget";
|
|
58
58
|
let body;
|
|
59
|
-
body = JSON.stringify({
|
|
60
|
-
|
|
61
|
-
});
|
|
59
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
|
+
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
+
}));
|
|
62
62
|
return new protocol_http_1.HttpRequest({
|
|
63
63
|
protocol,
|
|
64
64
|
hostname,
|
|
@@ -77,9 +77,9 @@ const se_CancelFindingsReportCommand = async (input, context) => {
|
|
|
77
77
|
};
|
|
78
78
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/cancel";
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify({
|
|
81
|
-
|
|
82
|
-
});
|
|
80
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
81
|
+
reportId: [],
|
|
82
|
+
}));
|
|
83
83
|
return new protocol_http_1.HttpRequest({
|
|
84
84
|
protocol,
|
|
85
85
|
hostname,
|
|
@@ -98,14 +98,14 @@ const se_CreateFilterCommand = async (input, context) => {
|
|
|
98
98
|
};
|
|
99
99
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/create";
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify({
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
});
|
|
101
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
102
|
+
action: [],
|
|
103
|
+
description: [],
|
|
104
|
+
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
105
|
+
name: [],
|
|
106
|
+
reason: [],
|
|
107
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
108
|
+
}));
|
|
109
109
|
return new protocol_http_1.HttpRequest({
|
|
110
110
|
protocol,
|
|
111
111
|
hostname,
|
|
@@ -124,11 +124,11 @@ const se_CreateFindingsReportCommand = async (input, context) => {
|
|
|
124
124
|
};
|
|
125
125
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/create";
|
|
126
126
|
let body;
|
|
127
|
-
body = JSON.stringify({
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
});
|
|
127
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
128
|
+
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
129
|
+
reportFormat: [],
|
|
130
|
+
s3Destination: (_) => (0, smithy_client_1._json)(_),
|
|
131
|
+
}));
|
|
132
132
|
return new protocol_http_1.HttpRequest({
|
|
133
133
|
protocol,
|
|
134
134
|
hostname,
|
|
@@ -147,9 +147,9 @@ const se_DeleteFilterCommand = async (input, context) => {
|
|
|
147
147
|
};
|
|
148
148
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/delete";
|
|
149
149
|
let body;
|
|
150
|
-
body = JSON.stringify({
|
|
151
|
-
|
|
152
|
-
});
|
|
150
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
151
|
+
arn: [],
|
|
152
|
+
}));
|
|
153
153
|
return new protocol_http_1.HttpRequest({
|
|
154
154
|
protocol,
|
|
155
155
|
hostname,
|
|
@@ -187,10 +187,10 @@ const se_DisableCommand = async (input, context) => {
|
|
|
187
187
|
};
|
|
188
188
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disable";
|
|
189
189
|
let body;
|
|
190
|
-
body = JSON.stringify({
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
});
|
|
190
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
191
|
+
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
192
|
+
resourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
193
|
+
}));
|
|
194
194
|
return new protocol_http_1.HttpRequest({
|
|
195
195
|
protocol,
|
|
196
196
|
hostname,
|
|
@@ -209,9 +209,9 @@ const se_DisableDelegatedAdminAccountCommand = async (input, context) => {
|
|
|
209
209
|
};
|
|
210
210
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/disable";
|
|
211
211
|
let body;
|
|
212
|
-
body = JSON.stringify({
|
|
213
|
-
|
|
214
|
-
});
|
|
212
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
213
|
+
delegatedAdminAccountId: [],
|
|
214
|
+
}));
|
|
215
215
|
return new protocol_http_1.HttpRequest({
|
|
216
216
|
protocol,
|
|
217
217
|
hostname,
|
|
@@ -230,9 +230,9 @@ const se_DisassociateMemberCommand = async (input, context) => {
|
|
|
230
230
|
};
|
|
231
231
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate";
|
|
232
232
|
let body;
|
|
233
|
-
body = JSON.stringify({
|
|
234
|
-
|
|
235
|
-
});
|
|
233
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
234
|
+
accountId: [],
|
|
235
|
+
}));
|
|
236
236
|
return new protocol_http_1.HttpRequest({
|
|
237
237
|
protocol,
|
|
238
238
|
hostname,
|
|
@@ -251,11 +251,11 @@ const se_EnableCommand = async (input, context) => {
|
|
|
251
251
|
};
|
|
252
252
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enable";
|
|
253
253
|
let body;
|
|
254
|
-
body = JSON.stringify({
|
|
255
|
-
|
|
256
|
-
clientToken:
|
|
257
|
-
|
|
258
|
-
});
|
|
254
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
255
|
+
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
256
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
257
|
+
resourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
258
|
+
}));
|
|
259
259
|
return new protocol_http_1.HttpRequest({
|
|
260
260
|
protocol,
|
|
261
261
|
hostname,
|
|
@@ -274,10 +274,10 @@ const se_EnableDelegatedAdminAccountCommand = async (input, context) => {
|
|
|
274
274
|
};
|
|
275
275
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/enable";
|
|
276
276
|
let body;
|
|
277
|
-
body = JSON.stringify({
|
|
278
|
-
clientToken:
|
|
279
|
-
|
|
280
|
-
});
|
|
277
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
278
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
279
|
+
delegatedAdminAccountId: [],
|
|
280
|
+
}));
|
|
281
281
|
return new protocol_http_1.HttpRequest({
|
|
282
282
|
protocol,
|
|
283
283
|
hostname,
|
|
@@ -334,9 +334,9 @@ const se_GetFindingsReportStatusCommand = async (input, context) => {
|
|
|
334
334
|
};
|
|
335
335
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/status/get";
|
|
336
336
|
let body;
|
|
337
|
-
body = JSON.stringify({
|
|
338
|
-
|
|
339
|
-
});
|
|
337
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
338
|
+
reportId: [],
|
|
339
|
+
}));
|
|
340
340
|
return new protocol_http_1.HttpRequest({
|
|
341
341
|
protocol,
|
|
342
342
|
hostname,
|
|
@@ -355,9 +355,9 @@ const se_GetMemberCommand = async (input, context) => {
|
|
|
355
355
|
};
|
|
356
356
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/get";
|
|
357
357
|
let body;
|
|
358
|
-
body = JSON.stringify({
|
|
359
|
-
|
|
360
|
-
});
|
|
358
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
359
|
+
accountId: [],
|
|
360
|
+
}));
|
|
361
361
|
return new protocol_http_1.HttpRequest({
|
|
362
362
|
protocol,
|
|
363
363
|
hostname,
|
|
@@ -376,11 +376,11 @@ const se_ListAccountPermissionsCommand = async (input, context) => {
|
|
|
376
376
|
};
|
|
377
377
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accountpermissions/list";
|
|
378
378
|
let body;
|
|
379
|
-
body = JSON.stringify({
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
});
|
|
379
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
380
|
+
maxResults: [],
|
|
381
|
+
nextToken: [],
|
|
382
|
+
service: [],
|
|
383
|
+
}));
|
|
384
384
|
return new protocol_http_1.HttpRequest({
|
|
385
385
|
protocol,
|
|
386
386
|
hostname,
|
|
@@ -399,11 +399,11 @@ const se_ListCoverageCommand = async (input, context) => {
|
|
|
399
399
|
};
|
|
400
400
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/list";
|
|
401
401
|
let body;
|
|
402
|
-
body = JSON.stringify({
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
});
|
|
402
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
403
|
+
filterCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
404
|
+
maxResults: [],
|
|
405
|
+
nextToken: [],
|
|
406
|
+
}));
|
|
407
407
|
return new protocol_http_1.HttpRequest({
|
|
408
408
|
protocol,
|
|
409
409
|
hostname,
|
|
@@ -422,11 +422,11 @@ const se_ListCoverageStatisticsCommand = async (input, context) => {
|
|
|
422
422
|
};
|
|
423
423
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/statistics/list";
|
|
424
424
|
let body;
|
|
425
|
-
body = JSON.stringify({
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
});
|
|
425
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
426
|
+
filterCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
427
|
+
groupBy: [],
|
|
428
|
+
nextToken: [],
|
|
429
|
+
}));
|
|
430
430
|
return new protocol_http_1.HttpRequest({
|
|
431
431
|
protocol,
|
|
432
432
|
hostname,
|
|
@@ -445,10 +445,10 @@ const se_ListDelegatedAdminAccountsCommand = async (input, context) => {
|
|
|
445
445
|
};
|
|
446
446
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/list";
|
|
447
447
|
let body;
|
|
448
|
-
body = JSON.stringify({
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
});
|
|
448
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
449
|
+
maxResults: [],
|
|
450
|
+
nextToken: [],
|
|
451
|
+
}));
|
|
452
452
|
return new protocol_http_1.HttpRequest({
|
|
453
453
|
protocol,
|
|
454
454
|
hostname,
|
|
@@ -467,12 +467,12 @@ const se_ListFiltersCommand = async (input, context) => {
|
|
|
467
467
|
};
|
|
468
468
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/list";
|
|
469
469
|
let body;
|
|
470
|
-
body = JSON.stringify({
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
});
|
|
470
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
471
|
+
action: [],
|
|
472
|
+
arns: (_) => (0, smithy_client_1._json)(_),
|
|
473
|
+
maxResults: [],
|
|
474
|
+
nextToken: [],
|
|
475
|
+
}));
|
|
476
476
|
return new protocol_http_1.HttpRequest({
|
|
477
477
|
protocol,
|
|
478
478
|
hostname,
|
|
@@ -491,15 +491,13 @@ const se_ListFindingAggregationsCommand = async (input, context) => {
|
|
|
491
491
|
};
|
|
492
492
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/aggregation/list";
|
|
493
493
|
let body;
|
|
494
|
-
body = JSON.stringify({
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
502
|
-
});
|
|
494
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
495
|
+
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
496
|
+
aggregationRequest: (_) => (0, smithy_client_1._json)(_),
|
|
497
|
+
aggregationType: [],
|
|
498
|
+
maxResults: [],
|
|
499
|
+
nextToken: [],
|
|
500
|
+
}));
|
|
503
501
|
return new protocol_http_1.HttpRequest({
|
|
504
502
|
protocol,
|
|
505
503
|
hostname,
|
|
@@ -518,12 +516,12 @@ const se_ListFindingsCommand = async (input, context) => {
|
|
|
518
516
|
};
|
|
519
517
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/list";
|
|
520
518
|
let body;
|
|
521
|
-
body = JSON.stringify({
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
});
|
|
519
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
520
|
+
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
521
|
+
maxResults: [],
|
|
522
|
+
nextToken: [],
|
|
523
|
+
sortCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
524
|
+
}));
|
|
527
525
|
return new protocol_http_1.HttpRequest({
|
|
528
526
|
protocol,
|
|
529
527
|
hostname,
|
|
@@ -542,11 +540,11 @@ const se_ListMembersCommand = async (input, context) => {
|
|
|
542
540
|
};
|
|
543
541
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/list";
|
|
544
542
|
let body;
|
|
545
|
-
body = JSON.stringify({
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
});
|
|
543
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
544
|
+
maxResults: [],
|
|
545
|
+
nextToken: [],
|
|
546
|
+
onlyAssociated: [],
|
|
547
|
+
}));
|
|
550
548
|
return new protocol_http_1.HttpRequest({
|
|
551
549
|
protocol,
|
|
552
550
|
hostname,
|
|
@@ -582,11 +580,11 @@ const se_ListUsageTotalsCommand = async (input, context) => {
|
|
|
582
580
|
};
|
|
583
581
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usage/list";
|
|
584
582
|
let body;
|
|
585
|
-
body = JSON.stringify({
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
});
|
|
583
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
584
|
+
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
585
|
+
maxResults: [],
|
|
586
|
+
nextToken: [],
|
|
587
|
+
}));
|
|
590
588
|
return new protocol_http_1.HttpRequest({
|
|
591
589
|
protocol,
|
|
592
590
|
hostname,
|
|
@@ -606,9 +604,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
606
604
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
607
605
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
608
606
|
let body;
|
|
609
|
-
body = JSON.stringify({
|
|
610
|
-
|
|
611
|
-
});
|
|
607
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
608
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
609
|
+
}));
|
|
612
610
|
return new protocol_http_1.HttpRequest({
|
|
613
611
|
protocol,
|
|
614
612
|
hostname,
|
|
@@ -625,7 +623,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
625
623
|
const headers = {};
|
|
626
624
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
627
625
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
628
|
-
const query = map({
|
|
626
|
+
const query = (0, smithy_client_1.map)({
|
|
629
627
|
tagKeys: [
|
|
630
628
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
631
629
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -651,9 +649,9 @@ const se_UpdateConfigurationCommand = async (input, context) => {
|
|
|
651
649
|
};
|
|
652
650
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/update";
|
|
653
651
|
let body;
|
|
654
|
-
body = JSON.stringify({
|
|
655
|
-
|
|
656
|
-
});
|
|
652
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
653
|
+
ecrConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
654
|
+
}));
|
|
657
655
|
return new protocol_http_1.HttpRequest({
|
|
658
656
|
protocol,
|
|
659
657
|
hostname,
|
|
@@ -672,14 +670,14 @@ const se_UpdateFilterCommand = async (input, context) => {
|
|
|
672
670
|
};
|
|
673
671
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/update";
|
|
674
672
|
let body;
|
|
675
|
-
body = JSON.stringify({
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
});
|
|
673
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
674
|
+
action: [],
|
|
675
|
+
description: [],
|
|
676
|
+
filterArn: [],
|
|
677
|
+
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
678
|
+
name: [],
|
|
679
|
+
reason: [],
|
|
680
|
+
}));
|
|
683
681
|
return new protocol_http_1.HttpRequest({
|
|
684
682
|
protocol,
|
|
685
683
|
hostname,
|
|
@@ -698,9 +696,9 @@ const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
|
698
696
|
};
|
|
699
697
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizationconfiguration/update";
|
|
700
698
|
let body;
|
|
701
|
-
body = JSON.stringify({
|
|
702
|
-
|
|
703
|
-
});
|
|
699
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
700
|
+
autoEnable: (_) => (0, smithy_client_1._json)(_),
|
|
701
|
+
}));
|
|
704
702
|
return new protocol_http_1.HttpRequest({
|
|
705
703
|
protocol,
|
|
706
704
|
hostname,
|
|
@@ -716,13 +714,14 @@ const de_AssociateMemberCommand = async (output, context) => {
|
|
|
716
714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
715
|
return de_AssociateMemberCommandError(output, context);
|
|
718
716
|
}
|
|
719
|
-
const contents = map({
|
|
717
|
+
const contents = (0, smithy_client_1.map)({
|
|
720
718
|
$metadata: deserializeMetadata(output),
|
|
721
719
|
});
|
|
722
720
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
}
|
|
721
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
722
|
+
accountId: smithy_client_1.expectString,
|
|
723
|
+
});
|
|
724
|
+
Object.assign(contents, doc);
|
|
726
725
|
return contents;
|
|
727
726
|
};
|
|
728
727
|
exports.de_AssociateMemberCommand = de_AssociateMemberCommand;
|
|
@@ -747,10 +746,9 @@ const de_AssociateMemberCommandError = async (output, context) => {
|
|
|
747
746
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
748
747
|
default:
|
|
749
748
|
const parsedBody = parsedOutput.body;
|
|
750
|
-
|
|
749
|
+
return throwDefaultError({
|
|
751
750
|
output,
|
|
752
751
|
parsedBody,
|
|
753
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
754
752
|
errorCode,
|
|
755
753
|
});
|
|
756
754
|
}
|
|
@@ -759,16 +757,15 @@ const de_BatchGetAccountStatusCommand = async (output, context) => {
|
|
|
759
757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
760
758
|
return de_BatchGetAccountStatusCommandError(output, context);
|
|
761
759
|
}
|
|
762
|
-
const contents = map({
|
|
760
|
+
const contents = (0, smithy_client_1.map)({
|
|
763
761
|
$metadata: deserializeMetadata(output),
|
|
764
762
|
});
|
|
765
763
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
764
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
765
|
+
accounts: smithy_client_1._json,
|
|
766
|
+
failedAccounts: smithy_client_1._json,
|
|
767
|
+
});
|
|
768
|
+
Object.assign(contents, doc);
|
|
772
769
|
return contents;
|
|
773
770
|
};
|
|
774
771
|
exports.de_BatchGetAccountStatusCommand = de_BatchGetAccountStatusCommand;
|
|
@@ -796,10 +793,9 @@ const de_BatchGetAccountStatusCommandError = async (output, context) => {
|
|
|
796
793
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
797
794
|
default:
|
|
798
795
|
const parsedBody = parsedOutput.body;
|
|
799
|
-
|
|
796
|
+
return throwDefaultError({
|
|
800
797
|
output,
|
|
801
798
|
parsedBody,
|
|
802
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
803
799
|
errorCode,
|
|
804
800
|
});
|
|
805
801
|
}
|
|
@@ -808,16 +804,15 @@ const de_BatchGetFreeTrialInfoCommand = async (output, context) => {
|
|
|
808
804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
805
|
return de_BatchGetFreeTrialInfoCommandError(output, context);
|
|
810
806
|
}
|
|
811
|
-
const contents = map({
|
|
807
|
+
const contents = (0, smithy_client_1.map)({
|
|
812
808
|
$metadata: deserializeMetadata(output),
|
|
813
809
|
});
|
|
814
810
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
811
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
812
|
+
accounts: (_) => de_FreeTrialAccountInfoList(_, context),
|
|
813
|
+
failedAccounts: smithy_client_1._json,
|
|
814
|
+
});
|
|
815
|
+
Object.assign(contents, doc);
|
|
821
816
|
return contents;
|
|
822
817
|
};
|
|
823
818
|
exports.de_BatchGetFreeTrialInfoCommand = de_BatchGetFreeTrialInfoCommand;
|
|
@@ -842,10 +837,9 @@ const de_BatchGetFreeTrialInfoCommandError = async (output, context) => {
|
|
|
842
837
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
843
838
|
default:
|
|
844
839
|
const parsedBody = parsedOutput.body;
|
|
845
|
-
|
|
840
|
+
return throwDefaultError({
|
|
846
841
|
output,
|
|
847
842
|
parsedBody,
|
|
848
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
849
843
|
errorCode,
|
|
850
844
|
});
|
|
851
845
|
}
|
|
@@ -854,13 +848,14 @@ const de_CancelFindingsReportCommand = async (output, context) => {
|
|
|
854
848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
849
|
return de_CancelFindingsReportCommandError(output, context);
|
|
856
850
|
}
|
|
857
|
-
const contents = map({
|
|
851
|
+
const contents = (0, smithy_client_1.map)({
|
|
858
852
|
$metadata: deserializeMetadata(output),
|
|
859
853
|
});
|
|
860
854
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}
|
|
855
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
856
|
+
reportId: smithy_client_1.expectString,
|
|
857
|
+
});
|
|
858
|
+
Object.assign(contents, doc);
|
|
864
859
|
return contents;
|
|
865
860
|
};
|
|
866
861
|
exports.de_CancelFindingsReportCommand = de_CancelFindingsReportCommand;
|
|
@@ -888,10 +883,9 @@ const de_CancelFindingsReportCommandError = async (output, context) => {
|
|
|
888
883
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
889
884
|
default:
|
|
890
885
|
const parsedBody = parsedOutput.body;
|
|
891
|
-
|
|
886
|
+
return throwDefaultError({
|
|
892
887
|
output,
|
|
893
888
|
parsedBody,
|
|
894
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
895
889
|
errorCode,
|
|
896
890
|
});
|
|
897
891
|
}
|
|
@@ -900,13 +894,14 @@ const de_CreateFilterCommand = async (output, context) => {
|
|
|
900
894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
901
895
|
return de_CreateFilterCommandError(output, context);
|
|
902
896
|
}
|
|
903
|
-
const contents = map({
|
|
897
|
+
const contents = (0, smithy_client_1.map)({
|
|
904
898
|
$metadata: deserializeMetadata(output),
|
|
905
899
|
});
|
|
906
900
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
}
|
|
901
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
902
|
+
arn: smithy_client_1.expectString,
|
|
903
|
+
});
|
|
904
|
+
Object.assign(contents, doc);
|
|
910
905
|
return contents;
|
|
911
906
|
};
|
|
912
907
|
exports.de_CreateFilterCommand = de_CreateFilterCommand;
|
|
@@ -937,10 +932,9 @@ const de_CreateFilterCommandError = async (output, context) => {
|
|
|
937
932
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
938
933
|
default:
|
|
939
934
|
const parsedBody = parsedOutput.body;
|
|
940
|
-
|
|
935
|
+
return throwDefaultError({
|
|
941
936
|
output,
|
|
942
937
|
parsedBody,
|
|
943
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
944
938
|
errorCode,
|
|
945
939
|
});
|
|
946
940
|
}
|
|
@@ -949,13 +943,14 @@ const de_CreateFindingsReportCommand = async (output, context) => {
|
|
|
949
943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
944
|
return de_CreateFindingsReportCommandError(output, context);
|
|
951
945
|
}
|
|
952
|
-
const contents = map({
|
|
946
|
+
const contents = (0, smithy_client_1.map)({
|
|
953
947
|
$metadata: deserializeMetadata(output),
|
|
954
948
|
});
|
|
955
949
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
}
|
|
950
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
951
|
+
reportId: smithy_client_1.expectString,
|
|
952
|
+
});
|
|
953
|
+
Object.assign(contents, doc);
|
|
959
954
|
return contents;
|
|
960
955
|
};
|
|
961
956
|
exports.de_CreateFindingsReportCommand = de_CreateFindingsReportCommand;
|
|
@@ -983,10 +978,9 @@ const de_CreateFindingsReportCommandError = async (output, context) => {
|
|
|
983
978
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
979
|
default:
|
|
985
980
|
const parsedBody = parsedOutput.body;
|
|
986
|
-
|
|
981
|
+
return throwDefaultError({
|
|
987
982
|
output,
|
|
988
983
|
parsedBody,
|
|
989
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
990
984
|
errorCode,
|
|
991
985
|
});
|
|
992
986
|
}
|
|
@@ -995,13 +989,14 @@ const de_DeleteFilterCommand = async (output, context) => {
|
|
|
995
989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
990
|
return de_DeleteFilterCommandError(output, context);
|
|
997
991
|
}
|
|
998
|
-
const contents = map({
|
|
992
|
+
const contents = (0, smithy_client_1.map)({
|
|
999
993
|
$metadata: deserializeMetadata(output),
|
|
1000
994
|
});
|
|
1001
995
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
}
|
|
996
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
997
|
+
arn: smithy_client_1.expectString,
|
|
998
|
+
});
|
|
999
|
+
Object.assign(contents, doc);
|
|
1005
1000
|
return contents;
|
|
1006
1001
|
};
|
|
1007
1002
|
exports.de_DeleteFilterCommand = de_DeleteFilterCommand;
|
|
@@ -1029,10 +1024,9 @@ const de_DeleteFilterCommandError = async (output, context) => {
|
|
|
1029
1024
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1030
1025
|
default:
|
|
1031
1026
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
|
|
1027
|
+
return throwDefaultError({
|
|
1033
1028
|
output,
|
|
1034
1029
|
parsedBody,
|
|
1035
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1036
1030
|
errorCode,
|
|
1037
1031
|
});
|
|
1038
1032
|
}
|
|
@@ -1041,16 +1035,15 @@ const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
|
1041
1035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1042
1036
|
return de_DescribeOrganizationConfigurationCommandError(output, context);
|
|
1043
1037
|
}
|
|
1044
|
-
const contents = map({
|
|
1038
|
+
const contents = (0, smithy_client_1.map)({
|
|
1045
1039
|
$metadata: deserializeMetadata(output),
|
|
1046
1040
|
});
|
|
1047
1041
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1042
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1043
|
+
autoEnable: smithy_client_1._json,
|
|
1044
|
+
maxAccountLimitReached: smithy_client_1.expectBoolean,
|
|
1045
|
+
});
|
|
1046
|
+
Object.assign(contents, doc);
|
|
1054
1047
|
return contents;
|
|
1055
1048
|
};
|
|
1056
1049
|
exports.de_DescribeOrganizationConfigurationCommand = de_DescribeOrganizationConfigurationCommand;
|
|
@@ -1075,10 +1068,9 @@ const de_DescribeOrganizationConfigurationCommandError = async (output, context)
|
|
|
1075
1068
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1076
1069
|
default:
|
|
1077
1070
|
const parsedBody = parsedOutput.body;
|
|
1078
|
-
|
|
1071
|
+
return throwDefaultError({
|
|
1079
1072
|
output,
|
|
1080
1073
|
parsedBody,
|
|
1081
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1082
1074
|
errorCode,
|
|
1083
1075
|
});
|
|
1084
1076
|
}
|
|
@@ -1087,16 +1079,15 @@ const de_DisableCommand = async (output, context) => {
|
|
|
1087
1079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1088
1080
|
return de_DisableCommandError(output, context);
|
|
1089
1081
|
}
|
|
1090
|
-
const contents = map({
|
|
1082
|
+
const contents = (0, smithy_client_1.map)({
|
|
1091
1083
|
$metadata: deserializeMetadata(output),
|
|
1092
1084
|
});
|
|
1093
1085
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
}
|
|
1086
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1087
|
+
accounts: smithy_client_1._json,
|
|
1088
|
+
failedAccounts: smithy_client_1._json,
|
|
1089
|
+
});
|
|
1090
|
+
Object.assign(contents, doc);
|
|
1100
1091
|
return contents;
|
|
1101
1092
|
};
|
|
1102
1093
|
exports.de_DisableCommand = de_DisableCommand;
|
|
@@ -1124,10 +1115,9 @@ const de_DisableCommandError = async (output, context) => {
|
|
|
1124
1115
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1125
1116
|
default:
|
|
1126
1117
|
const parsedBody = parsedOutput.body;
|
|
1127
|
-
|
|
1118
|
+
return throwDefaultError({
|
|
1128
1119
|
output,
|
|
1129
1120
|
parsedBody,
|
|
1130
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1131
1121
|
errorCode,
|
|
1132
1122
|
});
|
|
1133
1123
|
}
|
|
@@ -1136,13 +1126,14 @@ const de_DisableDelegatedAdminAccountCommand = async (output, context) => {
|
|
|
1136
1126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
1127
|
return de_DisableDelegatedAdminAccountCommandError(output, context);
|
|
1138
1128
|
}
|
|
1139
|
-
const contents = map({
|
|
1129
|
+
const contents = (0, smithy_client_1.map)({
|
|
1140
1130
|
$metadata: deserializeMetadata(output),
|
|
1141
1131
|
});
|
|
1142
1132
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
}
|
|
1133
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1134
|
+
delegatedAdminAccountId: smithy_client_1.expectString,
|
|
1135
|
+
});
|
|
1136
|
+
Object.assign(contents, doc);
|
|
1146
1137
|
return contents;
|
|
1147
1138
|
};
|
|
1148
1139
|
exports.de_DisableDelegatedAdminAccountCommand = de_DisableDelegatedAdminAccountCommand;
|
|
@@ -1173,10 +1164,9 @@ const de_DisableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1173
1164
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1174
1165
|
default:
|
|
1175
1166
|
const parsedBody = parsedOutput.body;
|
|
1176
|
-
|
|
1167
|
+
return throwDefaultError({
|
|
1177
1168
|
output,
|
|
1178
1169
|
parsedBody,
|
|
1179
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1180
1170
|
errorCode,
|
|
1181
1171
|
});
|
|
1182
1172
|
}
|
|
@@ -1185,13 +1175,14 @@ const de_DisassociateMemberCommand = async (output, context) => {
|
|
|
1185
1175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
1176
|
return de_DisassociateMemberCommandError(output, context);
|
|
1187
1177
|
}
|
|
1188
|
-
const contents = map({
|
|
1178
|
+
const contents = (0, smithy_client_1.map)({
|
|
1189
1179
|
$metadata: deserializeMetadata(output),
|
|
1190
1180
|
});
|
|
1191
1181
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
}
|
|
1182
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1183
|
+
accountId: smithy_client_1.expectString,
|
|
1184
|
+
});
|
|
1185
|
+
Object.assign(contents, doc);
|
|
1195
1186
|
return contents;
|
|
1196
1187
|
};
|
|
1197
1188
|
exports.de_DisassociateMemberCommand = de_DisassociateMemberCommand;
|
|
@@ -1216,10 +1207,9 @@ const de_DisassociateMemberCommandError = async (output, context) => {
|
|
|
1216
1207
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1217
1208
|
default:
|
|
1218
1209
|
const parsedBody = parsedOutput.body;
|
|
1219
|
-
|
|
1210
|
+
return throwDefaultError({
|
|
1220
1211
|
output,
|
|
1221
1212
|
parsedBody,
|
|
1222
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1223
1213
|
errorCode,
|
|
1224
1214
|
});
|
|
1225
1215
|
}
|
|
@@ -1228,16 +1218,15 @@ const de_EnableCommand = async (output, context) => {
|
|
|
1228
1218
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1229
1219
|
return de_EnableCommandError(output, context);
|
|
1230
1220
|
}
|
|
1231
|
-
const contents = map({
|
|
1221
|
+
const contents = (0, smithy_client_1.map)({
|
|
1232
1222
|
$metadata: deserializeMetadata(output),
|
|
1233
1223
|
});
|
|
1234
1224
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
}
|
|
1225
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1226
|
+
accounts: smithy_client_1._json,
|
|
1227
|
+
failedAccounts: smithy_client_1._json,
|
|
1228
|
+
});
|
|
1229
|
+
Object.assign(contents, doc);
|
|
1241
1230
|
return contents;
|
|
1242
1231
|
};
|
|
1243
1232
|
exports.de_EnableCommand = de_EnableCommand;
|
|
@@ -1265,10 +1254,9 @@ const de_EnableCommandError = async (output, context) => {
|
|
|
1265
1254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1266
1255
|
default:
|
|
1267
1256
|
const parsedBody = parsedOutput.body;
|
|
1268
|
-
|
|
1257
|
+
return throwDefaultError({
|
|
1269
1258
|
output,
|
|
1270
1259
|
parsedBody,
|
|
1271
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1272
1260
|
errorCode,
|
|
1273
1261
|
});
|
|
1274
1262
|
}
|
|
@@ -1277,13 +1265,14 @@ const de_EnableDelegatedAdminAccountCommand = async (output, context) => {
|
|
|
1277
1265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1278
1266
|
return de_EnableDelegatedAdminAccountCommandError(output, context);
|
|
1279
1267
|
}
|
|
1280
|
-
const contents = map({
|
|
1268
|
+
const contents = (0, smithy_client_1.map)({
|
|
1281
1269
|
$metadata: deserializeMetadata(output),
|
|
1282
1270
|
});
|
|
1283
1271
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1272
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1273
|
+
delegatedAdminAccountId: smithy_client_1.expectString,
|
|
1274
|
+
});
|
|
1275
|
+
Object.assign(contents, doc);
|
|
1287
1276
|
return contents;
|
|
1288
1277
|
};
|
|
1289
1278
|
exports.de_EnableDelegatedAdminAccountCommand = de_EnableDelegatedAdminAccountCommand;
|
|
@@ -1314,10 +1303,9 @@ const de_EnableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1314
1303
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
1304
|
default:
|
|
1316
1305
|
const parsedBody = parsedOutput.body;
|
|
1317
|
-
|
|
1306
|
+
return throwDefaultError({
|
|
1318
1307
|
output,
|
|
1319
1308
|
parsedBody,
|
|
1320
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1321
1309
|
errorCode,
|
|
1322
1310
|
});
|
|
1323
1311
|
}
|
|
@@ -1326,13 +1314,14 @@ const de_GetConfigurationCommand = async (output, context) => {
|
|
|
1326
1314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1327
1315
|
return de_GetConfigurationCommandError(output, context);
|
|
1328
1316
|
}
|
|
1329
|
-
const contents = map({
|
|
1317
|
+
const contents = (0, smithy_client_1.map)({
|
|
1330
1318
|
$metadata: deserializeMetadata(output),
|
|
1331
1319
|
});
|
|
1332
1320
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
}
|
|
1321
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1322
|
+
ecrConfiguration: (_) => de_EcrConfigurationState(_, context),
|
|
1323
|
+
});
|
|
1324
|
+
Object.assign(contents, doc);
|
|
1336
1325
|
return contents;
|
|
1337
1326
|
};
|
|
1338
1327
|
exports.de_GetConfigurationCommand = de_GetConfigurationCommand;
|
|
@@ -1354,10 +1343,9 @@ const de_GetConfigurationCommandError = async (output, context) => {
|
|
|
1354
1343
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1355
1344
|
default:
|
|
1356
1345
|
const parsedBody = parsedOutput.body;
|
|
1357
|
-
|
|
1346
|
+
return throwDefaultError({
|
|
1358
1347
|
output,
|
|
1359
1348
|
parsedBody,
|
|
1360
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1361
1349
|
errorCode,
|
|
1362
1350
|
});
|
|
1363
1351
|
}
|
|
@@ -1366,13 +1354,14 @@ const de_GetDelegatedAdminAccountCommand = async (output, context) => {
|
|
|
1366
1354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1367
1355
|
return de_GetDelegatedAdminAccountCommandError(output, context);
|
|
1368
1356
|
}
|
|
1369
|
-
const contents = map({
|
|
1357
|
+
const contents = (0, smithy_client_1.map)({
|
|
1370
1358
|
$metadata: deserializeMetadata(output),
|
|
1371
1359
|
});
|
|
1372
1360
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
}
|
|
1361
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1362
|
+
delegatedAdmin: smithy_client_1._json,
|
|
1363
|
+
});
|
|
1364
|
+
Object.assign(contents, doc);
|
|
1376
1365
|
return contents;
|
|
1377
1366
|
};
|
|
1378
1367
|
exports.de_GetDelegatedAdminAccountCommand = de_GetDelegatedAdminAccountCommand;
|
|
@@ -1400,10 +1389,9 @@ const de_GetDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1400
1389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1401
1390
|
default:
|
|
1402
1391
|
const parsedBody = parsedOutput.body;
|
|
1403
|
-
|
|
1392
|
+
return throwDefaultError({
|
|
1404
1393
|
output,
|
|
1405
1394
|
parsedBody,
|
|
1406
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1407
1395
|
errorCode,
|
|
1408
1396
|
});
|
|
1409
1397
|
}
|
|
@@ -1412,28 +1400,19 @@ const de_GetFindingsReportStatusCommand = async (output, context) => {
|
|
|
1412
1400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1413
1401
|
return de_GetFindingsReportStatusCommandError(output, context);
|
|
1414
1402
|
}
|
|
1415
|
-
const contents = map({
|
|
1403
|
+
const contents = (0, smithy_client_1.map)({
|
|
1416
1404
|
$metadata: deserializeMetadata(output),
|
|
1417
1405
|
});
|
|
1418
1406
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
if (data.filterCriteria != null) {
|
|
1429
|
-
contents.filterCriteria = de_FilterCriteria(data.filterCriteria, context);
|
|
1430
|
-
}
|
|
1431
|
-
if (data.reportId != null) {
|
|
1432
|
-
contents.reportId = (0, smithy_client_1.expectString)(data.reportId);
|
|
1433
|
-
}
|
|
1434
|
-
if (data.status != null) {
|
|
1435
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1436
|
-
}
|
|
1407
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1408
|
+
destination: smithy_client_1._json,
|
|
1409
|
+
errorCode: smithy_client_1.expectString,
|
|
1410
|
+
errorMessage: smithy_client_1.expectString,
|
|
1411
|
+
filterCriteria: (_) => de_FilterCriteria(_, context),
|
|
1412
|
+
reportId: smithy_client_1.expectString,
|
|
1413
|
+
status: smithy_client_1.expectString,
|
|
1414
|
+
});
|
|
1415
|
+
Object.assign(contents, doc);
|
|
1437
1416
|
return contents;
|
|
1438
1417
|
};
|
|
1439
1418
|
exports.de_GetFindingsReportStatusCommand = de_GetFindingsReportStatusCommand;
|
|
@@ -1461,10 +1440,9 @@ const de_GetFindingsReportStatusCommandError = async (output, context) => {
|
|
|
1461
1440
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1462
1441
|
default:
|
|
1463
1442
|
const parsedBody = parsedOutput.body;
|
|
1464
|
-
|
|
1443
|
+
return throwDefaultError({
|
|
1465
1444
|
output,
|
|
1466
1445
|
parsedBody,
|
|
1467
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1468
1446
|
errorCode,
|
|
1469
1447
|
});
|
|
1470
1448
|
}
|
|
@@ -1473,13 +1451,14 @@ const de_GetMemberCommand = async (output, context) => {
|
|
|
1473
1451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1474
1452
|
return de_GetMemberCommandError(output, context);
|
|
1475
1453
|
}
|
|
1476
|
-
const contents = map({
|
|
1454
|
+
const contents = (0, smithy_client_1.map)({
|
|
1477
1455
|
$metadata: deserializeMetadata(output),
|
|
1478
1456
|
});
|
|
1479
1457
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
}
|
|
1458
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1459
|
+
member: (_) => de_Member(_, context),
|
|
1460
|
+
});
|
|
1461
|
+
Object.assign(contents, doc);
|
|
1483
1462
|
return contents;
|
|
1484
1463
|
};
|
|
1485
1464
|
exports.de_GetMemberCommand = de_GetMemberCommand;
|
|
@@ -1507,10 +1486,9 @@ const de_GetMemberCommandError = async (output, context) => {
|
|
|
1507
1486
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1508
1487
|
default:
|
|
1509
1488
|
const parsedBody = parsedOutput.body;
|
|
1510
|
-
|
|
1489
|
+
return throwDefaultError({
|
|
1511
1490
|
output,
|
|
1512
1491
|
parsedBody,
|
|
1513
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1514
1492
|
errorCode,
|
|
1515
1493
|
});
|
|
1516
1494
|
}
|
|
@@ -1519,16 +1497,15 @@ const de_ListAccountPermissionsCommand = async (output, context) => {
|
|
|
1519
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
1498
|
return de_ListAccountPermissionsCommandError(output, context);
|
|
1521
1499
|
}
|
|
1522
|
-
const contents = map({
|
|
1500
|
+
const contents = (0, smithy_client_1.map)({
|
|
1523
1501
|
$metadata: deserializeMetadata(output),
|
|
1524
1502
|
});
|
|
1525
1503
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}
|
|
1504
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1505
|
+
nextToken: smithy_client_1.expectString,
|
|
1506
|
+
permissions: smithy_client_1._json,
|
|
1507
|
+
});
|
|
1508
|
+
Object.assign(contents, doc);
|
|
1532
1509
|
return contents;
|
|
1533
1510
|
};
|
|
1534
1511
|
exports.de_ListAccountPermissionsCommand = de_ListAccountPermissionsCommand;
|
|
@@ -1553,10 +1530,9 @@ const de_ListAccountPermissionsCommandError = async (output, context) => {
|
|
|
1553
1530
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1554
1531
|
default:
|
|
1555
1532
|
const parsedBody = parsedOutput.body;
|
|
1556
|
-
|
|
1533
|
+
return throwDefaultError({
|
|
1557
1534
|
output,
|
|
1558
1535
|
parsedBody,
|
|
1559
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1560
1536
|
errorCode,
|
|
1561
1537
|
});
|
|
1562
1538
|
}
|
|
@@ -1565,16 +1541,15 @@ const de_ListCoverageCommand = async (output, context) => {
|
|
|
1565
1541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1566
1542
|
return de_ListCoverageCommandError(output, context);
|
|
1567
1543
|
}
|
|
1568
|
-
const contents = map({
|
|
1544
|
+
const contents = (0, smithy_client_1.map)({
|
|
1569
1545
|
$metadata: deserializeMetadata(output),
|
|
1570
1546
|
});
|
|
1571
1547
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
}
|
|
1548
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1549
|
+
coveredResources: smithy_client_1._json,
|
|
1550
|
+
nextToken: smithy_client_1.expectString,
|
|
1551
|
+
});
|
|
1552
|
+
Object.assign(contents, doc);
|
|
1578
1553
|
return contents;
|
|
1579
1554
|
};
|
|
1580
1555
|
exports.de_ListCoverageCommand = de_ListCoverageCommand;
|
|
@@ -1596,10 +1571,9 @@ const de_ListCoverageCommandError = async (output, context) => {
|
|
|
1596
1571
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1597
1572
|
default:
|
|
1598
1573
|
const parsedBody = parsedOutput.body;
|
|
1599
|
-
|
|
1574
|
+
return throwDefaultError({
|
|
1600
1575
|
output,
|
|
1601
1576
|
parsedBody,
|
|
1602
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1603
1577
|
errorCode,
|
|
1604
1578
|
});
|
|
1605
1579
|
}
|
|
@@ -1608,19 +1582,16 @@ const de_ListCoverageStatisticsCommand = async (output, context) => {
|
|
|
1608
1582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
1583
|
return de_ListCoverageStatisticsCommandError(output, context);
|
|
1610
1584
|
}
|
|
1611
|
-
const contents = map({
|
|
1585
|
+
const contents = (0, smithy_client_1.map)({
|
|
1612
1586
|
$metadata: deserializeMetadata(output),
|
|
1613
1587
|
});
|
|
1614
1588
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
if (data.totalCounts != null) {
|
|
1622
|
-
contents.totalCounts = (0, smithy_client_1.expectLong)(data.totalCounts);
|
|
1623
|
-
}
|
|
1589
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1590
|
+
countsByGroup: smithy_client_1._json,
|
|
1591
|
+
nextToken: smithy_client_1.expectString,
|
|
1592
|
+
totalCounts: smithy_client_1.expectLong,
|
|
1593
|
+
});
|
|
1594
|
+
Object.assign(contents, doc);
|
|
1624
1595
|
return contents;
|
|
1625
1596
|
};
|
|
1626
1597
|
exports.de_ListCoverageStatisticsCommand = de_ListCoverageStatisticsCommand;
|
|
@@ -1642,10 +1613,9 @@ const de_ListCoverageStatisticsCommandError = async (output, context) => {
|
|
|
1642
1613
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1643
1614
|
default:
|
|
1644
1615
|
const parsedBody = parsedOutput.body;
|
|
1645
|
-
|
|
1616
|
+
return throwDefaultError({
|
|
1646
1617
|
output,
|
|
1647
1618
|
parsedBody,
|
|
1648
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1649
1619
|
errorCode,
|
|
1650
1620
|
});
|
|
1651
1621
|
}
|
|
@@ -1654,16 +1624,15 @@ const de_ListDelegatedAdminAccountsCommand = async (output, context) => {
|
|
|
1654
1624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1655
1625
|
return de_ListDelegatedAdminAccountsCommandError(output, context);
|
|
1656
1626
|
}
|
|
1657
|
-
const contents = map({
|
|
1627
|
+
const contents = (0, smithy_client_1.map)({
|
|
1658
1628
|
$metadata: deserializeMetadata(output),
|
|
1659
1629
|
});
|
|
1660
1630
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
}
|
|
1631
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1632
|
+
delegatedAdminAccounts: smithy_client_1._json,
|
|
1633
|
+
nextToken: smithy_client_1.expectString,
|
|
1634
|
+
});
|
|
1635
|
+
Object.assign(contents, doc);
|
|
1667
1636
|
return contents;
|
|
1668
1637
|
};
|
|
1669
1638
|
exports.de_ListDelegatedAdminAccountsCommand = de_ListDelegatedAdminAccountsCommand;
|
|
@@ -1688,10 +1657,9 @@ const de_ListDelegatedAdminAccountsCommandError = async (output, context) => {
|
|
|
1688
1657
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1689
1658
|
default:
|
|
1690
1659
|
const parsedBody = parsedOutput.body;
|
|
1691
|
-
|
|
1660
|
+
return throwDefaultError({
|
|
1692
1661
|
output,
|
|
1693
1662
|
parsedBody,
|
|
1694
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1695
1663
|
errorCode,
|
|
1696
1664
|
});
|
|
1697
1665
|
}
|
|
@@ -1700,16 +1668,15 @@ const de_ListFiltersCommand = async (output, context) => {
|
|
|
1700
1668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1701
1669
|
return de_ListFiltersCommandError(output, context);
|
|
1702
1670
|
}
|
|
1703
|
-
const contents = map({
|
|
1671
|
+
const contents = (0, smithy_client_1.map)({
|
|
1704
1672
|
$metadata: deserializeMetadata(output),
|
|
1705
1673
|
});
|
|
1706
1674
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
}
|
|
1675
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1676
|
+
filters: (_) => de_FilterList(_, context),
|
|
1677
|
+
nextToken: smithy_client_1.expectString,
|
|
1678
|
+
});
|
|
1679
|
+
Object.assign(contents, doc);
|
|
1713
1680
|
return contents;
|
|
1714
1681
|
};
|
|
1715
1682
|
exports.de_ListFiltersCommand = de_ListFiltersCommand;
|
|
@@ -1734,10 +1701,9 @@ const de_ListFiltersCommandError = async (output, context) => {
|
|
|
1734
1701
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1735
1702
|
default:
|
|
1736
1703
|
const parsedBody = parsedOutput.body;
|
|
1737
|
-
|
|
1704
|
+
return throwDefaultError({
|
|
1738
1705
|
output,
|
|
1739
1706
|
parsedBody,
|
|
1740
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1741
1707
|
errorCode,
|
|
1742
1708
|
});
|
|
1743
1709
|
}
|
|
@@ -1746,19 +1712,16 @@ const de_ListFindingAggregationsCommand = async (output, context) => {
|
|
|
1746
1712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1747
1713
|
return de_ListFindingAggregationsCommandError(output, context);
|
|
1748
1714
|
}
|
|
1749
|
-
const contents = map({
|
|
1715
|
+
const contents = (0, smithy_client_1.map)({
|
|
1750
1716
|
$metadata: deserializeMetadata(output),
|
|
1751
1717
|
});
|
|
1752
1718
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
if (data.responses != null) {
|
|
1760
|
-
contents.responses = de_AggregationResponseList(data.responses, context);
|
|
1761
|
-
}
|
|
1719
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1720
|
+
aggregationType: smithy_client_1.expectString,
|
|
1721
|
+
nextToken: smithy_client_1.expectString,
|
|
1722
|
+
responses: (_) => de_AggregationResponseList(_, context),
|
|
1723
|
+
});
|
|
1724
|
+
Object.assign(contents, doc);
|
|
1762
1725
|
return contents;
|
|
1763
1726
|
};
|
|
1764
1727
|
exports.de_ListFindingAggregationsCommand = de_ListFindingAggregationsCommand;
|
|
@@ -1780,10 +1743,9 @@ const de_ListFindingAggregationsCommandError = async (output, context) => {
|
|
|
1780
1743
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1781
1744
|
default:
|
|
1782
1745
|
const parsedBody = parsedOutput.body;
|
|
1783
|
-
|
|
1746
|
+
return throwDefaultError({
|
|
1784
1747
|
output,
|
|
1785
1748
|
parsedBody,
|
|
1786
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1787
1749
|
errorCode,
|
|
1788
1750
|
});
|
|
1789
1751
|
}
|
|
@@ -1792,16 +1754,15 @@ const de_ListFindingsCommand = async (output, context) => {
|
|
|
1792
1754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1793
1755
|
return de_ListFindingsCommandError(output, context);
|
|
1794
1756
|
}
|
|
1795
|
-
const contents = map({
|
|
1757
|
+
const contents = (0, smithy_client_1.map)({
|
|
1796
1758
|
$metadata: deserializeMetadata(output),
|
|
1797
1759
|
});
|
|
1798
1760
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
}
|
|
1761
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1762
|
+
findings: (_) => de_FindingList(_, context),
|
|
1763
|
+
nextToken: smithy_client_1.expectString,
|
|
1764
|
+
});
|
|
1765
|
+
Object.assign(contents, doc);
|
|
1805
1766
|
return contents;
|
|
1806
1767
|
};
|
|
1807
1768
|
exports.de_ListFindingsCommand = de_ListFindingsCommand;
|
|
@@ -1823,10 +1784,9 @@ const de_ListFindingsCommandError = async (output, context) => {
|
|
|
1823
1784
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1824
1785
|
default:
|
|
1825
1786
|
const parsedBody = parsedOutput.body;
|
|
1826
|
-
|
|
1787
|
+
return throwDefaultError({
|
|
1827
1788
|
output,
|
|
1828
1789
|
parsedBody,
|
|
1829
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1830
1790
|
errorCode,
|
|
1831
1791
|
});
|
|
1832
1792
|
}
|
|
@@ -1835,16 +1795,15 @@ const de_ListMembersCommand = async (output, context) => {
|
|
|
1835
1795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1836
1796
|
return de_ListMembersCommandError(output, context);
|
|
1837
1797
|
}
|
|
1838
|
-
const contents = map({
|
|
1798
|
+
const contents = (0, smithy_client_1.map)({
|
|
1839
1799
|
$metadata: deserializeMetadata(output),
|
|
1840
1800
|
});
|
|
1841
1801
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
}
|
|
1802
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1803
|
+
members: (_) => de_MemberList(_, context),
|
|
1804
|
+
nextToken: smithy_client_1.expectString,
|
|
1805
|
+
});
|
|
1806
|
+
Object.assign(contents, doc);
|
|
1848
1807
|
return contents;
|
|
1849
1808
|
};
|
|
1850
1809
|
exports.de_ListMembersCommand = de_ListMembersCommand;
|
|
@@ -1869,10 +1828,9 @@ const de_ListMembersCommandError = async (output, context) => {
|
|
|
1869
1828
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1870
1829
|
default:
|
|
1871
1830
|
const parsedBody = parsedOutput.body;
|
|
1872
|
-
|
|
1831
|
+
return throwDefaultError({
|
|
1873
1832
|
output,
|
|
1874
1833
|
parsedBody,
|
|
1875
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1876
1834
|
errorCode,
|
|
1877
1835
|
});
|
|
1878
1836
|
}
|
|
@@ -1881,13 +1839,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1881
1839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1882
1840
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1883
1841
|
}
|
|
1884
|
-
const contents = map({
|
|
1842
|
+
const contents = (0, smithy_client_1.map)({
|
|
1885
1843
|
$metadata: deserializeMetadata(output),
|
|
1886
1844
|
});
|
|
1887
1845
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
}
|
|
1846
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1847
|
+
tags: smithy_client_1._json,
|
|
1848
|
+
});
|
|
1849
|
+
Object.assign(contents, doc);
|
|
1891
1850
|
return contents;
|
|
1892
1851
|
};
|
|
1893
1852
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1912,10 +1871,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1912
1871
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1913
1872
|
default:
|
|
1914
1873
|
const parsedBody = parsedOutput.body;
|
|
1915
|
-
|
|
1874
|
+
return throwDefaultError({
|
|
1916
1875
|
output,
|
|
1917
1876
|
parsedBody,
|
|
1918
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1919
1877
|
errorCode,
|
|
1920
1878
|
});
|
|
1921
1879
|
}
|
|
@@ -1924,16 +1882,15 @@ const de_ListUsageTotalsCommand = async (output, context) => {
|
|
|
1924
1882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1925
1883
|
return de_ListUsageTotalsCommandError(output, context);
|
|
1926
1884
|
}
|
|
1927
|
-
const contents = map({
|
|
1885
|
+
const contents = (0, smithy_client_1.map)({
|
|
1928
1886
|
$metadata: deserializeMetadata(output),
|
|
1929
1887
|
});
|
|
1930
1888
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
}
|
|
1889
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1890
|
+
nextToken: smithy_client_1.expectString,
|
|
1891
|
+
totals: (_) => de_UsageTotalList(_, context),
|
|
1892
|
+
});
|
|
1893
|
+
Object.assign(contents, doc);
|
|
1937
1894
|
return contents;
|
|
1938
1895
|
};
|
|
1939
1896
|
exports.de_ListUsageTotalsCommand = de_ListUsageTotalsCommand;
|
|
@@ -1958,10 +1915,9 @@ const de_ListUsageTotalsCommandError = async (output, context) => {
|
|
|
1958
1915
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1959
1916
|
default:
|
|
1960
1917
|
const parsedBody = parsedOutput.body;
|
|
1961
|
-
|
|
1918
|
+
return throwDefaultError({
|
|
1962
1919
|
output,
|
|
1963
1920
|
parsedBody,
|
|
1964
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
1965
1921
|
errorCode,
|
|
1966
1922
|
});
|
|
1967
1923
|
}
|
|
@@ -1970,7 +1926,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1970
1926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1971
1927
|
return de_TagResourceCommandError(output, context);
|
|
1972
1928
|
}
|
|
1973
|
-
const contents = map({
|
|
1929
|
+
const contents = (0, smithy_client_1.map)({
|
|
1974
1930
|
$metadata: deserializeMetadata(output),
|
|
1975
1931
|
});
|
|
1976
1932
|
await collectBody(output.body, context);
|
|
@@ -2001,10 +1957,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2001
1957
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2002
1958
|
default:
|
|
2003
1959
|
const parsedBody = parsedOutput.body;
|
|
2004
|
-
|
|
1960
|
+
return throwDefaultError({
|
|
2005
1961
|
output,
|
|
2006
1962
|
parsedBody,
|
|
2007
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
2008
1963
|
errorCode,
|
|
2009
1964
|
});
|
|
2010
1965
|
}
|
|
@@ -2013,7 +1968,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2013
1968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2014
1969
|
return de_UntagResourceCommandError(output, context);
|
|
2015
1970
|
}
|
|
2016
|
-
const contents = map({
|
|
1971
|
+
const contents = (0, smithy_client_1.map)({
|
|
2017
1972
|
$metadata: deserializeMetadata(output),
|
|
2018
1973
|
});
|
|
2019
1974
|
await collectBody(output.body, context);
|
|
@@ -2041,10 +1996,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2041
1996
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2042
1997
|
default:
|
|
2043
1998
|
const parsedBody = parsedOutput.body;
|
|
2044
|
-
|
|
1999
|
+
return throwDefaultError({
|
|
2045
2000
|
output,
|
|
2046
2001
|
parsedBody,
|
|
2047
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
2048
2002
|
errorCode,
|
|
2049
2003
|
});
|
|
2050
2004
|
}
|
|
@@ -2053,7 +2007,7 @@ const de_UpdateConfigurationCommand = async (output, context) => {
|
|
|
2053
2007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2054
2008
|
return de_UpdateConfigurationCommandError(output, context);
|
|
2055
2009
|
}
|
|
2056
|
-
const contents = map({
|
|
2010
|
+
const contents = (0, smithy_client_1.map)({
|
|
2057
2011
|
$metadata: deserializeMetadata(output),
|
|
2058
2012
|
});
|
|
2059
2013
|
await collectBody(output.body, context);
|
|
@@ -2081,10 +2035,9 @@ const de_UpdateConfigurationCommandError = async (output, context) => {
|
|
|
2081
2035
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2082
2036
|
default:
|
|
2083
2037
|
const parsedBody = parsedOutput.body;
|
|
2084
|
-
|
|
2038
|
+
return throwDefaultError({
|
|
2085
2039
|
output,
|
|
2086
2040
|
parsedBody,
|
|
2087
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
2088
2041
|
errorCode,
|
|
2089
2042
|
});
|
|
2090
2043
|
}
|
|
@@ -2093,13 +2046,14 @@ const de_UpdateFilterCommand = async (output, context) => {
|
|
|
2093
2046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
2047
|
return de_UpdateFilterCommandError(output, context);
|
|
2095
2048
|
}
|
|
2096
|
-
const contents = map({
|
|
2049
|
+
const contents = (0, smithy_client_1.map)({
|
|
2097
2050
|
$metadata: deserializeMetadata(output),
|
|
2098
2051
|
});
|
|
2099
2052
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
}
|
|
2053
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2054
|
+
arn: smithy_client_1.expectString,
|
|
2055
|
+
});
|
|
2056
|
+
Object.assign(contents, doc);
|
|
2103
2057
|
return contents;
|
|
2104
2058
|
};
|
|
2105
2059
|
exports.de_UpdateFilterCommand = de_UpdateFilterCommand;
|
|
@@ -2127,10 +2081,9 @@ const de_UpdateFilterCommandError = async (output, context) => {
|
|
|
2127
2081
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2128
2082
|
default:
|
|
2129
2083
|
const parsedBody = parsedOutput.body;
|
|
2130
|
-
|
|
2084
|
+
return throwDefaultError({
|
|
2131
2085
|
output,
|
|
2132
2086
|
parsedBody,
|
|
2133
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
2134
2087
|
errorCode,
|
|
2135
2088
|
});
|
|
2136
2089
|
}
|
|
@@ -2139,13 +2092,14 @@ const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
|
2139
2092
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
2093
|
return de_UpdateOrganizationConfigurationCommandError(output, context);
|
|
2141
2094
|
}
|
|
2142
|
-
const contents = map({
|
|
2095
|
+
const contents = (0, smithy_client_1.map)({
|
|
2143
2096
|
$metadata: deserializeMetadata(output),
|
|
2144
2097
|
});
|
|
2145
2098
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
}
|
|
2099
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2100
|
+
autoEnable: smithy_client_1._json,
|
|
2101
|
+
});
|
|
2102
|
+
Object.assign(contents, doc);
|
|
2149
2103
|
return contents;
|
|
2150
2104
|
};
|
|
2151
2105
|
exports.de_UpdateOrganizationConfigurationCommand = de_UpdateOrganizationConfigurationCommand;
|
|
@@ -2170,21 +2124,21 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
|
|
|
2170
2124
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2171
2125
|
default:
|
|
2172
2126
|
const parsedBody = parsedOutput.body;
|
|
2173
|
-
|
|
2127
|
+
return throwDefaultError({
|
|
2174
2128
|
output,
|
|
2175
2129
|
parsedBody,
|
|
2176
|
-
exceptionCtor: Inspector2ServiceException_1.Inspector2ServiceException,
|
|
2177
2130
|
errorCode,
|
|
2178
2131
|
});
|
|
2179
2132
|
}
|
|
2180
2133
|
};
|
|
2181
|
-
const
|
|
2134
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(Inspector2ServiceException_1.Inspector2ServiceException);
|
|
2182
2135
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2183
|
-
const contents = map({});
|
|
2136
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2184
2137
|
const data = parsedOutput.body;
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
}
|
|
2138
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2139
|
+
message: smithy_client_1.expectString,
|
|
2140
|
+
});
|
|
2141
|
+
Object.assign(contents, doc);
|
|
2188
2142
|
const exception = new models_0_1.AccessDeniedException({
|
|
2189
2143
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2190
2144
|
...contents,
|
|
@@ -2192,11 +2146,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2192
2146
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2193
2147
|
};
|
|
2194
2148
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2195
|
-
const contents = map({});
|
|
2149
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2196
2150
|
const data = parsedOutput.body;
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
}
|
|
2151
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2152
|
+
message: smithy_client_1.expectString,
|
|
2153
|
+
});
|
|
2154
|
+
Object.assign(contents, doc);
|
|
2200
2155
|
const exception = new models_0_1.BadRequestException({
|
|
2201
2156
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2202
2157
|
...contents,
|
|
@@ -2204,17 +2159,14 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2204
2159
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2205
2160
|
};
|
|
2206
2161
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2207
|
-
const contents = map({});
|
|
2162
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2208
2163
|
const data = parsedOutput.body;
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
if (data.resourceType != null) {
|
|
2216
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2217
|
-
}
|
|
2164
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2165
|
+
message: smithy_client_1.expectString,
|
|
2166
|
+
resourceId: smithy_client_1.expectString,
|
|
2167
|
+
resourceType: smithy_client_1.expectString,
|
|
2168
|
+
});
|
|
2169
|
+
Object.assign(contents, doc);
|
|
2218
2170
|
const exception = new models_0_1.ConflictException({
|
|
2219
2171
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2220
2172
|
...contents,
|
|
@@ -2222,16 +2174,17 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2222
2174
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2223
2175
|
};
|
|
2224
2176
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2225
|
-
const contents = map({
|
|
2177
|
+
const contents = (0, smithy_client_1.map)({
|
|
2226
2178
|
retryAfterSeconds: [
|
|
2227
2179
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2228
2180
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2229
2181
|
],
|
|
2230
2182
|
});
|
|
2231
2183
|
const data = parsedOutput.body;
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
}
|
|
2184
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2185
|
+
message: smithy_client_1.expectString,
|
|
2186
|
+
});
|
|
2187
|
+
Object.assign(contents, doc);
|
|
2235
2188
|
const exception = new models_0_1.InternalServerException({
|
|
2236
2189
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2237
2190
|
...contents,
|
|
@@ -2239,11 +2192,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2239
2192
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2240
2193
|
};
|
|
2241
2194
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2242
|
-
const contents = map({});
|
|
2195
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2243
2196
|
const data = parsedOutput.body;
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
}
|
|
2197
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2198
|
+
message: smithy_client_1.expectString,
|
|
2199
|
+
});
|
|
2200
|
+
Object.assign(contents, doc);
|
|
2247
2201
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2248
2202
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2249
2203
|
...contents,
|
|
@@ -2251,14 +2205,13 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2251
2205
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2252
2206
|
};
|
|
2253
2207
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2254
|
-
const contents = map({});
|
|
2208
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2255
2209
|
const data = parsedOutput.body;
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
}
|
|
2210
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2211
|
+
message: smithy_client_1.expectString,
|
|
2212
|
+
resourceId: smithy_client_1.expectString,
|
|
2213
|
+
});
|
|
2214
|
+
Object.assign(contents, doc);
|
|
2262
2215
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2263
2216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2264
2217
|
...contents,
|
|
@@ -2266,16 +2219,17 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2266
2219
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2267
2220
|
};
|
|
2268
2221
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2269
|
-
const contents = map({
|
|
2222
|
+
const contents = (0, smithy_client_1.map)({
|
|
2270
2223
|
retryAfterSeconds: [
|
|
2271
2224
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2272
2225
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2273
2226
|
],
|
|
2274
2227
|
});
|
|
2275
2228
|
const data = parsedOutput.body;
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
}
|
|
2229
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2230
|
+
message: smithy_client_1.expectString,
|
|
2231
|
+
});
|
|
2232
|
+
Object.assign(contents, doc);
|
|
2279
2233
|
const exception = new models_0_1.ThrottlingException({
|
|
2280
2234
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2281
2235
|
...contents,
|
|
@@ -2283,139 +2237,25 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2283
2237
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2284
2238
|
};
|
|
2285
2239
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2286
|
-
const contents = map({});
|
|
2240
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2287
2241
|
const data = parsedOutput.body;
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
if (data.reason != null) {
|
|
2295
|
-
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2296
|
-
}
|
|
2242
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2243
|
+
fields: smithy_client_1._json,
|
|
2244
|
+
message: smithy_client_1.expectString,
|
|
2245
|
+
reason: smithy_client_1.expectString,
|
|
2246
|
+
});
|
|
2247
|
+
Object.assign(contents, doc);
|
|
2297
2248
|
const exception = new models_0_1.ValidationException({
|
|
2298
2249
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2299
2250
|
...contents,
|
|
2300
2251
|
});
|
|
2301
2252
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2302
2253
|
};
|
|
2303
|
-
const se_AccountAggregation = (input, context) => {
|
|
2304
|
-
return {
|
|
2305
|
-
...(input.findingType != null && { findingType: input.findingType }),
|
|
2306
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2307
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2308
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2309
|
-
};
|
|
2310
|
-
};
|
|
2311
|
-
const se_AccountIdSet = (input, context) => {
|
|
2312
|
-
return input
|
|
2313
|
-
.filter((e) => e != null)
|
|
2314
|
-
.map((entry) => {
|
|
2315
|
-
return entry;
|
|
2316
|
-
});
|
|
2317
|
-
};
|
|
2318
|
-
const se_AggregationRequest = (input, context) => {
|
|
2319
|
-
return models_0_1.AggregationRequest.visit(input, {
|
|
2320
|
-
accountAggregation: (value) => ({ accountAggregation: se_AccountAggregation(value, context) }),
|
|
2321
|
-
amiAggregation: (value) => ({ amiAggregation: se_AmiAggregation(value, context) }),
|
|
2322
|
-
awsEcrContainerAggregation: (value) => ({
|
|
2323
|
-
awsEcrContainerAggregation: se_AwsEcrContainerAggregation(value, context),
|
|
2324
|
-
}),
|
|
2325
|
-
ec2InstanceAggregation: (value) => ({ ec2InstanceAggregation: se_Ec2InstanceAggregation(value, context) }),
|
|
2326
|
-
findingTypeAggregation: (value) => ({ findingTypeAggregation: se_FindingTypeAggregation(value, context) }),
|
|
2327
|
-
imageLayerAggregation: (value) => ({ imageLayerAggregation: se_ImageLayerAggregation(value, context) }),
|
|
2328
|
-
lambdaFunctionAggregation: (value) => ({ lambdaFunctionAggregation: se_LambdaFunctionAggregation(value, context) }),
|
|
2329
|
-
lambdaLayerAggregation: (value) => ({ lambdaLayerAggregation: se_LambdaLayerAggregation(value, context) }),
|
|
2330
|
-
packageAggregation: (value) => ({ packageAggregation: se_PackageAggregation(value, context) }),
|
|
2331
|
-
repositoryAggregation: (value) => ({ repositoryAggregation: se_RepositoryAggregation(value, context) }),
|
|
2332
|
-
titleAggregation: (value) => ({ titleAggregation: se_TitleAggregation(value, context) }),
|
|
2333
|
-
_: (name, value) => ({ name: value }),
|
|
2334
|
-
});
|
|
2335
|
-
};
|
|
2336
|
-
const se_AmiAggregation = (input, context) => {
|
|
2337
|
-
return {
|
|
2338
|
-
...(input.amis != null && { amis: se_StringFilterList(input.amis, context) }),
|
|
2339
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2340
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2341
|
-
};
|
|
2342
|
-
};
|
|
2343
|
-
const se_AutoEnable = (input, context) => {
|
|
2344
|
-
return {
|
|
2345
|
-
...(input.ec2 != null && { ec2: input.ec2 }),
|
|
2346
|
-
...(input.ecr != null && { ecr: input.ecr }),
|
|
2347
|
-
...(input.lambda != null && { lambda: input.lambda }),
|
|
2348
|
-
};
|
|
2349
|
-
};
|
|
2350
|
-
const se_AwsEcrContainerAggregation = (input, context) => {
|
|
2351
|
-
return {
|
|
2352
|
-
...(input.architectures != null && { architectures: se_StringFilterList(input.architectures, context) }),
|
|
2353
|
-
...(input.imageShas != null && { imageShas: se_StringFilterList(input.imageShas, context) }),
|
|
2354
|
-
...(input.imageTags != null && { imageTags: se_StringFilterList(input.imageTags, context) }),
|
|
2355
|
-
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2356
|
-
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2357
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2358
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2359
|
-
};
|
|
2360
|
-
};
|
|
2361
|
-
const se_CoverageFilterCriteria = (input, context) => {
|
|
2362
|
-
return {
|
|
2363
|
-
...(input.accountId != null && { accountId: se_CoverageStringFilterList(input.accountId, context) }),
|
|
2364
|
-
...(input.ec2InstanceTags != null && { ec2InstanceTags: se_CoverageMapFilterList(input.ec2InstanceTags, context) }),
|
|
2365
|
-
...(input.ecrImageTags != null && { ecrImageTags: se_CoverageStringFilterList(input.ecrImageTags, context) }),
|
|
2366
|
-
...(input.ecrRepositoryName != null && {
|
|
2367
|
-
ecrRepositoryName: se_CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
2368
|
-
}),
|
|
2369
|
-
...(input.lambdaFunctionName != null && {
|
|
2370
|
-
lambdaFunctionName: se_CoverageStringFilterList(input.lambdaFunctionName, context),
|
|
2371
|
-
}),
|
|
2372
|
-
...(input.lambdaFunctionRuntime != null && {
|
|
2373
|
-
lambdaFunctionRuntime: se_CoverageStringFilterList(input.lambdaFunctionRuntime, context),
|
|
2374
|
-
}),
|
|
2375
|
-
...(input.lambdaFunctionTags != null && {
|
|
2376
|
-
lambdaFunctionTags: se_CoverageMapFilterList(input.lambdaFunctionTags, context),
|
|
2377
|
-
}),
|
|
2378
|
-
...(input.resourceId != null && { resourceId: se_CoverageStringFilterList(input.resourceId, context) }),
|
|
2379
|
-
...(input.resourceType != null && { resourceType: se_CoverageStringFilterList(input.resourceType, context) }),
|
|
2380
|
-
...(input.scanStatusCode != null && { scanStatusCode: se_CoverageStringFilterList(input.scanStatusCode, context) }),
|
|
2381
|
-
...(input.scanStatusReason != null && {
|
|
2382
|
-
scanStatusReason: se_CoverageStringFilterList(input.scanStatusReason, context),
|
|
2383
|
-
}),
|
|
2384
|
-
...(input.scanType != null && { scanType: se_CoverageStringFilterList(input.scanType, context) }),
|
|
2385
|
-
};
|
|
2386
|
-
};
|
|
2387
|
-
const se_CoverageMapFilter = (input, context) => {
|
|
2388
|
-
return {
|
|
2389
|
-
...(input.comparison != null && { comparison: input.comparison }),
|
|
2390
|
-
...(input.key != null && { key: input.key }),
|
|
2391
|
-
...(input.value != null && { value: input.value }),
|
|
2392
|
-
};
|
|
2393
|
-
};
|
|
2394
|
-
const se_CoverageMapFilterList = (input, context) => {
|
|
2395
|
-
return input
|
|
2396
|
-
.filter((e) => e != null)
|
|
2397
|
-
.map((entry) => {
|
|
2398
|
-
return se_CoverageMapFilter(entry, context);
|
|
2399
|
-
});
|
|
2400
|
-
};
|
|
2401
|
-
const se_CoverageStringFilter = (input, context) => {
|
|
2402
|
-
return {
|
|
2403
|
-
...(input.comparison != null && { comparison: input.comparison }),
|
|
2404
|
-
...(input.value != null && { value: input.value }),
|
|
2405
|
-
};
|
|
2406
|
-
};
|
|
2407
|
-
const se_CoverageStringFilterList = (input, context) => {
|
|
2408
|
-
return input
|
|
2409
|
-
.filter((e) => e != null)
|
|
2410
|
-
.map((entry) => {
|
|
2411
|
-
return se_CoverageStringFilter(entry, context);
|
|
2412
|
-
});
|
|
2413
|
-
};
|
|
2414
2254
|
const se_DateFilter = (input, context) => {
|
|
2415
|
-
return {
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
};
|
|
2255
|
+
return (0, smithy_client_1.take)(input, {
|
|
2256
|
+
endInclusive: (_) => Math.round(_.getTime() / 1000),
|
|
2257
|
+
startInclusive: (_) => Math.round(_.getTime() / 1000),
|
|
2258
|
+
});
|
|
2419
2259
|
};
|
|
2420
2260
|
const se_DateFilterList = (input, context) => {
|
|
2421
2261
|
return input
|
|
@@ -2424,177 +2264,53 @@ const se_DateFilterList = (input, context) => {
|
|
|
2424
2264
|
return se_DateFilter(entry, context);
|
|
2425
2265
|
});
|
|
2426
2266
|
};
|
|
2427
|
-
const se_Destination = (input, context) => {
|
|
2428
|
-
return {
|
|
2429
|
-
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
2430
|
-
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
2431
|
-
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
2432
|
-
};
|
|
2433
|
-
};
|
|
2434
|
-
const se_DisableResourceTypeList = (input, context) => {
|
|
2435
|
-
return input
|
|
2436
|
-
.filter((e) => e != null)
|
|
2437
|
-
.map((entry) => {
|
|
2438
|
-
return entry;
|
|
2439
|
-
});
|
|
2440
|
-
};
|
|
2441
|
-
const se_Ec2InstanceAggregation = (input, context) => {
|
|
2442
|
-
return {
|
|
2443
|
-
...(input.amis != null && { amis: se_StringFilterList(input.amis, context) }),
|
|
2444
|
-
...(input.instanceIds != null && { instanceIds: se_StringFilterList(input.instanceIds, context) }),
|
|
2445
|
-
...(input.instanceTags != null && { instanceTags: se_MapFilterList(input.instanceTags, context) }),
|
|
2446
|
-
...(input.operatingSystems != null && { operatingSystems: se_StringFilterList(input.operatingSystems, context) }),
|
|
2447
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2448
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2449
|
-
};
|
|
2450
|
-
};
|
|
2451
|
-
const se_EcrConfiguration = (input, context) => {
|
|
2452
|
-
return {
|
|
2453
|
-
...(input.rescanDuration != null && { rescanDuration: input.rescanDuration }),
|
|
2454
|
-
};
|
|
2455
|
-
};
|
|
2456
|
-
const se_EnableResourceTypeList = (input, context) => {
|
|
2457
|
-
return input
|
|
2458
|
-
.filter((e) => e != null)
|
|
2459
|
-
.map((entry) => {
|
|
2460
|
-
return entry;
|
|
2461
|
-
});
|
|
2462
|
-
};
|
|
2463
|
-
const se_FilterArnList = (input, context) => {
|
|
2464
|
-
return input
|
|
2465
|
-
.filter((e) => e != null)
|
|
2466
|
-
.map((entry) => {
|
|
2467
|
-
return entry;
|
|
2468
|
-
});
|
|
2469
|
-
};
|
|
2470
2267
|
const se_FilterCriteria = (input, context) => {
|
|
2471
|
-
return {
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
}),
|
|
2511
|
-
...(input.lambdaFunctionRuntime != null && {
|
|
2512
|
-
lambdaFunctionRuntime: se_StringFilterList(input.lambdaFunctionRuntime, context),
|
|
2513
|
-
}),
|
|
2514
|
-
...(input.lastObservedAt != null && { lastObservedAt: se_DateFilterList(input.lastObservedAt, context) }),
|
|
2515
|
-
...(input.networkProtocol != null && { networkProtocol: se_StringFilterList(input.networkProtocol, context) }),
|
|
2516
|
-
...(input.portRange != null && { portRange: se_PortRangeFilterList(input.portRange, context) }),
|
|
2517
|
-
...(input.relatedVulnerabilities != null && {
|
|
2518
|
-
relatedVulnerabilities: se_StringFilterList(input.relatedVulnerabilities, context),
|
|
2519
|
-
}),
|
|
2520
|
-
...(input.resourceId != null && { resourceId: se_StringFilterList(input.resourceId, context) }),
|
|
2521
|
-
...(input.resourceTags != null && { resourceTags: se_MapFilterList(input.resourceTags, context) }),
|
|
2522
|
-
...(input.resourceType != null && { resourceType: se_StringFilterList(input.resourceType, context) }),
|
|
2523
|
-
...(input.severity != null && { severity: se_StringFilterList(input.severity, context) }),
|
|
2524
|
-
...(input.title != null && { title: se_StringFilterList(input.title, context) }),
|
|
2525
|
-
...(input.updatedAt != null && { updatedAt: se_DateFilterList(input.updatedAt, context) }),
|
|
2526
|
-
...(input.vendorSeverity != null && { vendorSeverity: se_StringFilterList(input.vendorSeverity, context) }),
|
|
2527
|
-
...(input.vulnerabilityId != null && { vulnerabilityId: se_StringFilterList(input.vulnerabilityId, context) }),
|
|
2528
|
-
...(input.vulnerabilitySource != null && {
|
|
2529
|
-
vulnerabilitySource: se_StringFilterList(input.vulnerabilitySource, context),
|
|
2530
|
-
}),
|
|
2531
|
-
...(input.vulnerablePackages != null && {
|
|
2532
|
-
vulnerablePackages: se_PackageFilterList(input.vulnerablePackages, context),
|
|
2533
|
-
}),
|
|
2534
|
-
};
|
|
2535
|
-
};
|
|
2536
|
-
const se_FindingTypeAggregation = (input, context) => {
|
|
2537
|
-
return {
|
|
2538
|
-
...(input.findingType != null && { findingType: input.findingType }),
|
|
2539
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2540
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2541
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2542
|
-
};
|
|
2543
|
-
};
|
|
2544
|
-
const se_ImageLayerAggregation = (input, context) => {
|
|
2545
|
-
return {
|
|
2546
|
-
...(input.layerHashes != null && { layerHashes: se_StringFilterList(input.layerHashes, context) }),
|
|
2547
|
-
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2548
|
-
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2549
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2550
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2551
|
-
};
|
|
2552
|
-
};
|
|
2553
|
-
const se_LambdaFunctionAggregation = (input, context) => {
|
|
2554
|
-
return {
|
|
2555
|
-
...(input.functionNames != null && { functionNames: se_StringFilterList(input.functionNames, context) }),
|
|
2556
|
-
...(input.functionTags != null && { functionTags: se_MapFilterList(input.functionTags, context) }),
|
|
2557
|
-
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2558
|
-
...(input.runtimes != null && { runtimes: se_StringFilterList(input.runtimes, context) }),
|
|
2559
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2560
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2561
|
-
};
|
|
2562
|
-
};
|
|
2563
|
-
const se_LambdaLayerAggregation = (input, context) => {
|
|
2564
|
-
return {
|
|
2565
|
-
...(input.functionNames != null && { functionNames: se_StringFilterList(input.functionNames, context) }),
|
|
2566
|
-
...(input.layerArns != null && { layerArns: se_StringFilterList(input.layerArns, context) }),
|
|
2567
|
-
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2568
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2569
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2570
|
-
};
|
|
2571
|
-
};
|
|
2572
|
-
const se_MapFilter = (input, context) => {
|
|
2573
|
-
return {
|
|
2574
|
-
...(input.comparison != null && { comparison: input.comparison }),
|
|
2575
|
-
...(input.key != null && { key: input.key }),
|
|
2576
|
-
...(input.value != null && { value: input.value }),
|
|
2577
|
-
};
|
|
2578
|
-
};
|
|
2579
|
-
const se_MapFilterList = (input, context) => {
|
|
2580
|
-
return input
|
|
2581
|
-
.filter((e) => e != null)
|
|
2582
|
-
.map((entry) => {
|
|
2583
|
-
return se_MapFilter(entry, context);
|
|
2584
|
-
});
|
|
2585
|
-
};
|
|
2586
|
-
const se_MeteringAccountIdList = (input, context) => {
|
|
2587
|
-
return input
|
|
2588
|
-
.filter((e) => e != null)
|
|
2589
|
-
.map((entry) => {
|
|
2590
|
-
return entry;
|
|
2268
|
+
return (0, smithy_client_1.take)(input, {
|
|
2269
|
+
awsAccountId: smithy_client_1._json,
|
|
2270
|
+
componentId: smithy_client_1._json,
|
|
2271
|
+
componentType: smithy_client_1._json,
|
|
2272
|
+
ec2InstanceImageId: smithy_client_1._json,
|
|
2273
|
+
ec2InstanceSubnetId: smithy_client_1._json,
|
|
2274
|
+
ec2InstanceVpcId: smithy_client_1._json,
|
|
2275
|
+
ecrImageArchitecture: smithy_client_1._json,
|
|
2276
|
+
ecrImageHash: smithy_client_1._json,
|
|
2277
|
+
ecrImagePushedAt: (_) => se_DateFilterList(_, context),
|
|
2278
|
+
ecrImageRegistry: smithy_client_1._json,
|
|
2279
|
+
ecrImageRepositoryName: smithy_client_1._json,
|
|
2280
|
+
ecrImageTags: smithy_client_1._json,
|
|
2281
|
+
exploitAvailable: smithy_client_1._json,
|
|
2282
|
+
findingArn: smithy_client_1._json,
|
|
2283
|
+
findingStatus: smithy_client_1._json,
|
|
2284
|
+
findingType: smithy_client_1._json,
|
|
2285
|
+
firstObservedAt: (_) => se_DateFilterList(_, context),
|
|
2286
|
+
fixAvailable: smithy_client_1._json,
|
|
2287
|
+
inspectorScore: (_) => se_NumberFilterList(_, context),
|
|
2288
|
+
lambdaFunctionExecutionRoleArn: smithy_client_1._json,
|
|
2289
|
+
lambdaFunctionLastModifiedAt: (_) => se_DateFilterList(_, context),
|
|
2290
|
+
lambdaFunctionLayers: smithy_client_1._json,
|
|
2291
|
+
lambdaFunctionName: smithy_client_1._json,
|
|
2292
|
+
lambdaFunctionRuntime: smithy_client_1._json,
|
|
2293
|
+
lastObservedAt: (_) => se_DateFilterList(_, context),
|
|
2294
|
+
networkProtocol: smithy_client_1._json,
|
|
2295
|
+
portRange: smithy_client_1._json,
|
|
2296
|
+
relatedVulnerabilities: smithy_client_1._json,
|
|
2297
|
+
resourceId: smithy_client_1._json,
|
|
2298
|
+
resourceTags: smithy_client_1._json,
|
|
2299
|
+
resourceType: smithy_client_1._json,
|
|
2300
|
+
severity: smithy_client_1._json,
|
|
2301
|
+
title: smithy_client_1._json,
|
|
2302
|
+
updatedAt: (_) => se_DateFilterList(_, context),
|
|
2303
|
+
vendorSeverity: smithy_client_1._json,
|
|
2304
|
+
vulnerabilityId: smithy_client_1._json,
|
|
2305
|
+
vulnerabilitySource: smithy_client_1._json,
|
|
2306
|
+
vulnerablePackages: (_) => se_PackageFilterList(_, context),
|
|
2591
2307
|
});
|
|
2592
2308
|
};
|
|
2593
2309
|
const se_NumberFilter = (input, context) => {
|
|
2594
|
-
return {
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
};
|
|
2310
|
+
return (0, smithy_client_1.take)(input, {
|
|
2311
|
+
lowerInclusive: smithy_client_1.serializeFloat,
|
|
2312
|
+
upperInclusive: smithy_client_1.serializeFloat,
|
|
2313
|
+
});
|
|
2598
2314
|
};
|
|
2599
2315
|
const se_NumberFilterList = (input, context) => {
|
|
2600
2316
|
return input
|
|
@@ -2603,25 +2319,16 @@ const se_NumberFilterList = (input, context) => {
|
|
|
2603
2319
|
return se_NumberFilter(entry, context);
|
|
2604
2320
|
});
|
|
2605
2321
|
};
|
|
2606
|
-
const se_PackageAggregation = (input, context) => {
|
|
2607
|
-
return {
|
|
2608
|
-
...(input.packageNames != null && { packageNames: se_StringFilterList(input.packageNames, context) }),
|
|
2609
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2610
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2611
|
-
};
|
|
2612
|
-
};
|
|
2613
2322
|
const se_PackageFilter = (input, context) => {
|
|
2614
|
-
return {
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
...(input.version != null && { version: se_StringFilter(input.version, context) }),
|
|
2624
|
-
};
|
|
2323
|
+
return (0, smithy_client_1.take)(input, {
|
|
2324
|
+
architecture: smithy_client_1._json,
|
|
2325
|
+
epoch: (_) => se_NumberFilter(_, context),
|
|
2326
|
+
name: smithy_client_1._json,
|
|
2327
|
+
release: smithy_client_1._json,
|
|
2328
|
+
sourceLambdaLayerArn: smithy_client_1._json,
|
|
2329
|
+
sourceLayerHash: smithy_client_1._json,
|
|
2330
|
+
version: smithy_client_1._json,
|
|
2331
|
+
});
|
|
2625
2332
|
};
|
|
2626
2333
|
const se_PackageFilterList = (input, context) => {
|
|
2627
2334
|
return input
|
|
@@ -2630,141 +2337,35 @@ const se_PackageFilterList = (input, context) => {
|
|
|
2630
2337
|
return se_PackageFilter(entry, context);
|
|
2631
2338
|
});
|
|
2632
2339
|
};
|
|
2633
|
-
const se_PortRangeFilter = (input, context) => {
|
|
2634
|
-
return {
|
|
2635
|
-
...(input.beginInclusive != null && { beginInclusive: input.beginInclusive }),
|
|
2636
|
-
...(input.endInclusive != null && { endInclusive: input.endInclusive }),
|
|
2637
|
-
};
|
|
2638
|
-
};
|
|
2639
|
-
const se_PortRangeFilterList = (input, context) => {
|
|
2640
|
-
return input
|
|
2641
|
-
.filter((e) => e != null)
|
|
2642
|
-
.map((entry) => {
|
|
2643
|
-
return se_PortRangeFilter(entry, context);
|
|
2644
|
-
});
|
|
2645
|
-
};
|
|
2646
|
-
const se_RepositoryAggregation = (input, context) => {
|
|
2647
|
-
return {
|
|
2648
|
-
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2649
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2650
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2651
|
-
};
|
|
2652
|
-
};
|
|
2653
|
-
const se_SortCriteria = (input, context) => {
|
|
2654
|
-
return {
|
|
2655
|
-
...(input.field != null && { field: input.field }),
|
|
2656
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2657
|
-
};
|
|
2658
|
-
};
|
|
2659
|
-
const se_StringFilter = (input, context) => {
|
|
2660
|
-
return {
|
|
2661
|
-
...(input.comparison != null && { comparison: input.comparison }),
|
|
2662
|
-
...(input.value != null && { value: input.value }),
|
|
2663
|
-
};
|
|
2664
|
-
};
|
|
2665
|
-
const se_StringFilterList = (input, context) => {
|
|
2666
|
-
return input
|
|
2667
|
-
.filter((e) => e != null)
|
|
2668
|
-
.map((entry) => {
|
|
2669
|
-
return se_StringFilter(entry, context);
|
|
2670
|
-
});
|
|
2671
|
-
};
|
|
2672
|
-
const se_TagMap = (input, context) => {
|
|
2673
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2674
|
-
if (value === null) {
|
|
2675
|
-
return acc;
|
|
2676
|
-
}
|
|
2677
|
-
acc[key] = value;
|
|
2678
|
-
return acc;
|
|
2679
|
-
}, {});
|
|
2680
|
-
};
|
|
2681
|
-
const se_TitleAggregation = (input, context) => {
|
|
2682
|
-
return {
|
|
2683
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2684
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2685
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2686
|
-
...(input.titles != null && { titles: se_StringFilterList(input.titles, context) }),
|
|
2687
|
-
...(input.vulnerabilityIds != null && { vulnerabilityIds: se_StringFilterList(input.vulnerabilityIds, context) }),
|
|
2688
|
-
};
|
|
2689
|
-
};
|
|
2690
|
-
const se_UsageAccountIdList = (input, context) => {
|
|
2691
|
-
return input
|
|
2692
|
-
.filter((e) => e != null)
|
|
2693
|
-
.map((entry) => {
|
|
2694
|
-
return entry;
|
|
2695
|
-
});
|
|
2696
|
-
};
|
|
2697
|
-
const de_Account = (output, context) => {
|
|
2698
|
-
return {
|
|
2699
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2700
|
-
resourceStatus: output.resourceStatus != null ? de_ResourceStatus(output.resourceStatus, context) : undefined,
|
|
2701
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
const de_AccountAggregationResponse = (output, context) => {
|
|
2705
|
-
return {
|
|
2706
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2707
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
2708
|
-
};
|
|
2709
|
-
};
|
|
2710
|
-
const de_AccountList = (output, context) => {
|
|
2711
|
-
const retVal = (output || [])
|
|
2712
|
-
.filter((e) => e != null)
|
|
2713
|
-
.map((entry) => {
|
|
2714
|
-
if (entry === null) {
|
|
2715
|
-
return null;
|
|
2716
|
-
}
|
|
2717
|
-
return de_Account(entry, context);
|
|
2718
|
-
});
|
|
2719
|
-
return retVal;
|
|
2720
|
-
};
|
|
2721
|
-
const de_AccountState = (output, context) => {
|
|
2722
|
-
return {
|
|
2723
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2724
|
-
resourceState: output.resourceState != null ? de_ResourceState(output.resourceState, context) : undefined,
|
|
2725
|
-
state: output.state != null ? de_State(output.state, context) : undefined,
|
|
2726
|
-
};
|
|
2727
|
-
};
|
|
2728
|
-
const de_AccountStateList = (output, context) => {
|
|
2729
|
-
const retVal = (output || [])
|
|
2730
|
-
.filter((e) => e != null)
|
|
2731
|
-
.map((entry) => {
|
|
2732
|
-
if (entry === null) {
|
|
2733
|
-
return null;
|
|
2734
|
-
}
|
|
2735
|
-
return de_AccountState(entry, context);
|
|
2736
|
-
});
|
|
2737
|
-
return retVal;
|
|
2738
|
-
};
|
|
2739
2340
|
const de_AggregationResponse = (output, context) => {
|
|
2740
2341
|
if (output.accountAggregation != null) {
|
|
2741
2342
|
return {
|
|
2742
|
-
accountAggregation:
|
|
2343
|
+
accountAggregation: (0, smithy_client_1._json)(output.accountAggregation),
|
|
2743
2344
|
};
|
|
2744
2345
|
}
|
|
2745
2346
|
if (output.amiAggregation != null) {
|
|
2746
2347
|
return {
|
|
2747
|
-
amiAggregation:
|
|
2348
|
+
amiAggregation: (0, smithy_client_1._json)(output.amiAggregation),
|
|
2748
2349
|
};
|
|
2749
2350
|
}
|
|
2750
2351
|
if (output.awsEcrContainerAggregation != null) {
|
|
2751
2352
|
return {
|
|
2752
|
-
awsEcrContainerAggregation:
|
|
2353
|
+
awsEcrContainerAggregation: (0, smithy_client_1._json)(output.awsEcrContainerAggregation),
|
|
2753
2354
|
};
|
|
2754
2355
|
}
|
|
2755
2356
|
if (output.ec2InstanceAggregation != null) {
|
|
2756
2357
|
return {
|
|
2757
|
-
ec2InstanceAggregation:
|
|
2358
|
+
ec2InstanceAggregation: (0, smithy_client_1._json)(output.ec2InstanceAggregation),
|
|
2758
2359
|
};
|
|
2759
2360
|
}
|
|
2760
2361
|
if (output.findingTypeAggregation != null) {
|
|
2761
2362
|
return {
|
|
2762
|
-
findingTypeAggregation:
|
|
2363
|
+
findingTypeAggregation: (0, smithy_client_1._json)(output.findingTypeAggregation),
|
|
2763
2364
|
};
|
|
2764
2365
|
}
|
|
2765
2366
|
if (output.imageLayerAggregation != null) {
|
|
2766
2367
|
return {
|
|
2767
|
-
imageLayerAggregation:
|
|
2368
|
+
imageLayerAggregation: (0, smithy_client_1._json)(output.imageLayerAggregation),
|
|
2768
2369
|
};
|
|
2769
2370
|
}
|
|
2770
2371
|
if (output.lambdaFunctionAggregation != null) {
|
|
@@ -2774,22 +2375,22 @@ const de_AggregationResponse = (output, context) => {
|
|
|
2774
2375
|
}
|
|
2775
2376
|
if (output.lambdaLayerAggregation != null) {
|
|
2776
2377
|
return {
|
|
2777
|
-
lambdaLayerAggregation:
|
|
2378
|
+
lambdaLayerAggregation: (0, smithy_client_1._json)(output.lambdaLayerAggregation),
|
|
2778
2379
|
};
|
|
2779
2380
|
}
|
|
2780
2381
|
if (output.packageAggregation != null) {
|
|
2781
2382
|
return {
|
|
2782
|
-
packageAggregation:
|
|
2383
|
+
packageAggregation: (0, smithy_client_1._json)(output.packageAggregation),
|
|
2783
2384
|
};
|
|
2784
2385
|
}
|
|
2785
2386
|
if (output.repositoryAggregation != null) {
|
|
2786
2387
|
return {
|
|
2787
|
-
repositoryAggregation:
|
|
2388
|
+
repositoryAggregation: (0, smithy_client_1._json)(output.repositoryAggregation),
|
|
2788
2389
|
};
|
|
2789
2390
|
}
|
|
2790
2391
|
if (output.titleAggregation != null) {
|
|
2791
2392
|
return {
|
|
2792
|
-
titleAggregation:
|
|
2393
|
+
titleAggregation: (0, smithy_client_1._json)(output.titleAggregation),
|
|
2793
2394
|
};
|
|
2794
2395
|
}
|
|
2795
2396
|
return { $unknown: Object.entries(output)[0] };
|
|
@@ -2798,1021 +2399,366 @@ const de_AggregationResponseList = (output, context) => {
|
|
|
2798
2399
|
const retVal = (output || [])
|
|
2799
2400
|
.filter((e) => e != null)
|
|
2800
2401
|
.map((entry) => {
|
|
2801
|
-
if (entry === null) {
|
|
2802
|
-
return null;
|
|
2803
|
-
}
|
|
2804
2402
|
return de_AggregationResponse((0, smithy_client_1.expectUnion)(entry), context);
|
|
2805
2403
|
});
|
|
2806
2404
|
return retVal;
|
|
2807
2405
|
};
|
|
2808
|
-
const
|
|
2809
|
-
return {
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
.
|
|
2819
|
-
.
|
|
2820
|
-
if (entry === null) {
|
|
2821
|
-
return null;
|
|
2822
|
-
}
|
|
2823
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2406
|
+
const de_AwsEc2InstanceDetails = (output, context) => {
|
|
2407
|
+
return (0, smithy_client_1.take)(output, {
|
|
2408
|
+
iamInstanceProfileArn: smithy_client_1.expectString,
|
|
2409
|
+
imageId: smithy_client_1.expectString,
|
|
2410
|
+
ipV4Addresses: smithy_client_1._json,
|
|
2411
|
+
ipV6Addresses: smithy_client_1._json,
|
|
2412
|
+
keyName: smithy_client_1.expectString,
|
|
2413
|
+
launchedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2414
|
+
platform: smithy_client_1.expectString,
|
|
2415
|
+
subnetId: smithy_client_1.expectString,
|
|
2416
|
+
type: smithy_client_1.expectString,
|
|
2417
|
+
vpcId: smithy_client_1.expectString,
|
|
2824
2418
|
});
|
|
2825
|
-
return retVal;
|
|
2826
|
-
};
|
|
2827
|
-
const de_AutoEnable = (output, context) => {
|
|
2828
|
-
return {
|
|
2829
|
-
ec2: (0, smithy_client_1.expectBoolean)(output.ec2),
|
|
2830
|
-
ecr: (0, smithy_client_1.expectBoolean)(output.ecr),
|
|
2831
|
-
lambda: (0, smithy_client_1.expectBoolean)(output.lambda),
|
|
2832
|
-
};
|
|
2833
|
-
};
|
|
2834
|
-
const de_AwsEc2InstanceDetails = (output, context) => {
|
|
2835
|
-
return {
|
|
2836
|
-
iamInstanceProfileArn: (0, smithy_client_1.expectString)(output.iamInstanceProfileArn),
|
|
2837
|
-
imageId: (0, smithy_client_1.expectString)(output.imageId),
|
|
2838
|
-
ipV4Addresses: output.ipV4Addresses != null ? de_IpV4AddressList(output.ipV4Addresses, context) : undefined,
|
|
2839
|
-
ipV6Addresses: output.ipV6Addresses != null ? de_IpV6AddressList(output.ipV6Addresses, context) : undefined,
|
|
2840
|
-
keyName: (0, smithy_client_1.expectString)(output.keyName),
|
|
2841
|
-
launchedAt: output.launchedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.launchedAt))) : undefined,
|
|
2842
|
-
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
2843
|
-
subnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
2844
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2845
|
-
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
2846
|
-
};
|
|
2847
|
-
};
|
|
2848
|
-
const de_AwsEcrContainerAggregationResponse = (output, context) => {
|
|
2849
|
-
return {
|
|
2850
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2851
|
-
architecture: (0, smithy_client_1.expectString)(output.architecture),
|
|
2852
|
-
imageSha: (0, smithy_client_1.expectString)(output.imageSha),
|
|
2853
|
-
imageTags: output.imageTags != null ? de_StringList(output.imageTags, context) : undefined,
|
|
2854
|
-
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
2855
|
-
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
2856
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
2857
|
-
};
|
|
2858
2419
|
};
|
|
2859
2420
|
const de_AwsEcrContainerImageDetails = (output, context) => {
|
|
2860
|
-
return {
|
|
2861
|
-
architecture:
|
|
2862
|
-
author:
|
|
2863
|
-
imageHash:
|
|
2864
|
-
imageTags:
|
|
2865
|
-
platform:
|
|
2866
|
-
pushedAt:
|
|
2867
|
-
registry:
|
|
2868
|
-
repositoryName:
|
|
2869
|
-
};
|
|
2870
|
-
};
|
|
2871
|
-
const de_AwsLambdaFunctionDetails = (output, context) => {
|
|
2872
|
-
return {
|
|
2873
|
-
architectures: output.architectures != null ? de_ArchitectureList(output.architectures, context) : undefined,
|
|
2874
|
-
codeSha256: (0, smithy_client_1.expectString)(output.codeSha256),
|
|
2875
|
-
executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
|
|
2876
|
-
functionName: (0, smithy_client_1.expectString)(output.functionName),
|
|
2877
|
-
lastModifiedAt: output.lastModifiedAt != null
|
|
2878
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
|
|
2879
|
-
: undefined,
|
|
2880
|
-
layers: output.layers != null ? de_LayerList(output.layers, context) : undefined,
|
|
2881
|
-
packageType: (0, smithy_client_1.expectString)(output.packageType),
|
|
2882
|
-
runtime: (0, smithy_client_1.expectString)(output.runtime),
|
|
2883
|
-
version: (0, smithy_client_1.expectString)(output.version),
|
|
2884
|
-
vpcConfig: output.vpcConfig != null ? de_LambdaVpcConfig(output.vpcConfig, context) : undefined,
|
|
2885
|
-
};
|
|
2886
|
-
};
|
|
2887
|
-
const de_Counts = (output, context) => {
|
|
2888
|
-
return {
|
|
2889
|
-
count: (0, smithy_client_1.expectLong)(output.count),
|
|
2890
|
-
groupKey: (0, smithy_client_1.expectString)(output.groupKey),
|
|
2891
|
-
};
|
|
2892
|
-
};
|
|
2893
|
-
const de_CountsList = (output, context) => {
|
|
2894
|
-
const retVal = (output || [])
|
|
2895
|
-
.filter((e) => e != null)
|
|
2896
|
-
.map((entry) => {
|
|
2897
|
-
if (entry === null) {
|
|
2898
|
-
return null;
|
|
2899
|
-
}
|
|
2900
|
-
return de_Counts(entry, context);
|
|
2421
|
+
return (0, smithy_client_1.take)(output, {
|
|
2422
|
+
architecture: smithy_client_1.expectString,
|
|
2423
|
+
author: smithy_client_1.expectString,
|
|
2424
|
+
imageHash: smithy_client_1.expectString,
|
|
2425
|
+
imageTags: smithy_client_1._json,
|
|
2426
|
+
platform: smithy_client_1.expectString,
|
|
2427
|
+
pushedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2428
|
+
registry: smithy_client_1.expectString,
|
|
2429
|
+
repositoryName: smithy_client_1.expectString,
|
|
2901
2430
|
});
|
|
2902
|
-
return retVal;
|
|
2903
|
-
};
|
|
2904
|
-
const de_CoveredResource = (output, context) => {
|
|
2905
|
-
return {
|
|
2906
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2907
|
-
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
2908
|
-
resourceMetadata: output.resourceMetadata != null ? de_ResourceScanMetadata(output.resourceMetadata, context) : undefined,
|
|
2909
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2910
|
-
scanStatus: output.scanStatus != null ? de_ScanStatus(output.scanStatus, context) : undefined,
|
|
2911
|
-
scanType: (0, smithy_client_1.expectString)(output.scanType),
|
|
2912
|
-
};
|
|
2913
2431
|
};
|
|
2914
|
-
const
|
|
2915
|
-
|
|
2916
|
-
.
|
|
2917
|
-
.
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2432
|
+
const de_AwsLambdaFunctionDetails = (output, context) => {
|
|
2433
|
+
return (0, smithy_client_1.take)(output, {
|
|
2434
|
+
architectures: smithy_client_1._json,
|
|
2435
|
+
codeSha256: smithy_client_1.expectString,
|
|
2436
|
+
executionRoleArn: smithy_client_1.expectString,
|
|
2437
|
+
functionName: smithy_client_1.expectString,
|
|
2438
|
+
lastModifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2439
|
+
layers: smithy_client_1._json,
|
|
2440
|
+
packageType: smithy_client_1.expectString,
|
|
2441
|
+
runtime: smithy_client_1.expectString,
|
|
2442
|
+
version: smithy_client_1.expectString,
|
|
2443
|
+
vpcConfig: smithy_client_1._json,
|
|
2922
2444
|
});
|
|
2923
|
-
return retVal;
|
|
2924
2445
|
};
|
|
2925
2446
|
const de_CvssScore = (output, context) => {
|
|
2926
|
-
return {
|
|
2927
|
-
baseScore:
|
|
2928
|
-
scoringVector:
|
|
2929
|
-
source:
|
|
2930
|
-
version:
|
|
2931
|
-
};
|
|
2932
|
-
};
|
|
2933
|
-
const de_CvssScoreAdjustment = (output, context) => {
|
|
2934
|
-
return {
|
|
2935
|
-
metric: (0, smithy_client_1.expectString)(output.metric),
|
|
2936
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2937
|
-
};
|
|
2938
|
-
};
|
|
2939
|
-
const de_CvssScoreAdjustmentList = (output, context) => {
|
|
2940
|
-
const retVal = (output || [])
|
|
2941
|
-
.filter((e) => e != null)
|
|
2942
|
-
.map((entry) => {
|
|
2943
|
-
if (entry === null) {
|
|
2944
|
-
return null;
|
|
2945
|
-
}
|
|
2946
|
-
return de_CvssScoreAdjustment(entry, context);
|
|
2447
|
+
return (0, smithy_client_1.take)(output, {
|
|
2448
|
+
baseScore: smithy_client_1.limitedParseDouble,
|
|
2449
|
+
scoringVector: smithy_client_1.expectString,
|
|
2450
|
+
source: smithy_client_1.expectString,
|
|
2451
|
+
version: smithy_client_1.expectString,
|
|
2947
2452
|
});
|
|
2948
|
-
return retVal;
|
|
2949
2453
|
};
|
|
2950
2454
|
const de_CvssScoreDetails = (output, context) => {
|
|
2951
|
-
return {
|
|
2952
|
-
adjustments:
|
|
2953
|
-
cvssSource:
|
|
2954
|
-
score:
|
|
2955
|
-
scoreSource:
|
|
2956
|
-
scoringVector:
|
|
2957
|
-
version:
|
|
2958
|
-
};
|
|
2455
|
+
return (0, smithy_client_1.take)(output, {
|
|
2456
|
+
adjustments: smithy_client_1._json,
|
|
2457
|
+
cvssSource: smithy_client_1.expectString,
|
|
2458
|
+
score: smithy_client_1.limitedParseDouble,
|
|
2459
|
+
scoreSource: smithy_client_1.expectString,
|
|
2460
|
+
scoringVector: smithy_client_1.expectString,
|
|
2461
|
+
version: smithy_client_1.expectString,
|
|
2462
|
+
});
|
|
2959
2463
|
};
|
|
2960
2464
|
const de_CvssScoreList = (output, context) => {
|
|
2961
2465
|
const retVal = (output || [])
|
|
2962
2466
|
.filter((e) => e != null)
|
|
2963
2467
|
.map((entry) => {
|
|
2964
|
-
if (entry === null) {
|
|
2965
|
-
return null;
|
|
2966
|
-
}
|
|
2967
2468
|
return de_CvssScore(entry, context);
|
|
2968
2469
|
});
|
|
2969
2470
|
return retVal;
|
|
2970
2471
|
};
|
|
2971
2472
|
const de_DateFilter = (output, context) => {
|
|
2972
|
-
return {
|
|
2973
|
-
endInclusive:
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
startInclusive: output.startInclusive != null
|
|
2977
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startInclusive)))
|
|
2978
|
-
: undefined,
|
|
2979
|
-
};
|
|
2473
|
+
return (0, smithy_client_1.take)(output, {
|
|
2474
|
+
endInclusive: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2475
|
+
startInclusive: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2476
|
+
});
|
|
2980
2477
|
};
|
|
2981
2478
|
const de_DateFilterList = (output, context) => {
|
|
2982
2479
|
const retVal = (output || [])
|
|
2983
2480
|
.filter((e) => e != null)
|
|
2984
2481
|
.map((entry) => {
|
|
2985
|
-
if (entry === null) {
|
|
2986
|
-
return null;
|
|
2987
|
-
}
|
|
2988
2482
|
return de_DateFilter(entry, context);
|
|
2989
2483
|
});
|
|
2990
2484
|
return retVal;
|
|
2991
2485
|
};
|
|
2992
|
-
const de_DelegatedAdmin = (output, context) => {
|
|
2993
|
-
return {
|
|
2994
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2995
|
-
relationshipStatus: (0, smithy_client_1.expectString)(output.relationshipStatus),
|
|
2996
|
-
};
|
|
2997
|
-
};
|
|
2998
|
-
const de_DelegatedAdminAccount = (output, context) => {
|
|
2999
|
-
return {
|
|
3000
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3001
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3002
|
-
};
|
|
3003
|
-
};
|
|
3004
|
-
const de_DelegatedAdminAccountList = (output, context) => {
|
|
3005
|
-
const retVal = (output || [])
|
|
3006
|
-
.filter((e) => e != null)
|
|
3007
|
-
.map((entry) => {
|
|
3008
|
-
if (entry === null) {
|
|
3009
|
-
return null;
|
|
3010
|
-
}
|
|
3011
|
-
return de_DelegatedAdminAccount(entry, context);
|
|
3012
|
-
});
|
|
3013
|
-
return retVal;
|
|
3014
|
-
};
|
|
3015
|
-
const de_Destination = (output, context) => {
|
|
3016
|
-
return {
|
|
3017
|
-
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
3018
|
-
keyPrefix: (0, smithy_client_1.expectString)(output.keyPrefix),
|
|
3019
|
-
kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
3020
|
-
};
|
|
3021
|
-
};
|
|
3022
|
-
const de_Ec2InstanceAggregationResponse = (output, context) => {
|
|
3023
|
-
return {
|
|
3024
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3025
|
-
ami: (0, smithy_client_1.expectString)(output.ami),
|
|
3026
|
-
instanceId: (0, smithy_client_1.expectString)(output.instanceId),
|
|
3027
|
-
instanceTags: output.instanceTags != null ? de_TagMap(output.instanceTags, context) : undefined,
|
|
3028
|
-
networkFindings: (0, smithy_client_1.expectLong)(output.networkFindings),
|
|
3029
|
-
operatingSystem: (0, smithy_client_1.expectString)(output.operatingSystem),
|
|
3030
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3031
|
-
};
|
|
3032
|
-
};
|
|
3033
|
-
const de_Ec2Metadata = (output, context) => {
|
|
3034
|
-
return {
|
|
3035
|
-
amiId: (0, smithy_client_1.expectString)(output.amiId),
|
|
3036
|
-
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3037
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3038
|
-
};
|
|
3039
|
-
};
|
|
3040
2486
|
const de_EcrConfigurationState = (output, context) => {
|
|
3041
|
-
return {
|
|
3042
|
-
rescanDurationState:
|
|
3043
|
-
};
|
|
3044
|
-
};
|
|
3045
|
-
const de_EcrContainerImageMetadata = (output, context) => {
|
|
3046
|
-
return {
|
|
3047
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
3048
|
-
};
|
|
3049
|
-
};
|
|
3050
|
-
const de_EcrRepositoryMetadata = (output, context) => {
|
|
3051
|
-
return {
|
|
3052
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3053
|
-
scanFrequency: (0, smithy_client_1.expectString)(output.scanFrequency),
|
|
3054
|
-
};
|
|
2487
|
+
return (0, smithy_client_1.take)(output, {
|
|
2488
|
+
rescanDurationState: (_) => de_EcrRescanDurationState(_, context),
|
|
2489
|
+
});
|
|
3055
2490
|
};
|
|
3056
2491
|
const de_EcrRescanDurationState = (output, context) => {
|
|
3057
|
-
return {
|
|
3058
|
-
rescanDuration:
|
|
3059
|
-
status:
|
|
3060
|
-
updatedAt:
|
|
3061
|
-
};
|
|
2492
|
+
return (0, smithy_client_1.take)(output, {
|
|
2493
|
+
rescanDuration: smithy_client_1.expectString,
|
|
2494
|
+
status: smithy_client_1.expectString,
|
|
2495
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2496
|
+
});
|
|
3062
2497
|
};
|
|
3063
2498
|
const de_ExploitabilityDetails = (output, context) => {
|
|
3064
|
-
return {
|
|
3065
|
-
lastKnownExploitAt:
|
|
3066
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastKnownExploitAt)))
|
|
3067
|
-
: undefined,
|
|
3068
|
-
};
|
|
3069
|
-
};
|
|
3070
|
-
const de_FailedAccount = (output, context) => {
|
|
3071
|
-
return {
|
|
3072
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3073
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3074
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
3075
|
-
resourceStatus: output.resourceStatus != null ? de_ResourceStatus(output.resourceStatus, context) : undefined,
|
|
3076
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3077
|
-
};
|
|
3078
|
-
};
|
|
3079
|
-
const de_FailedAccountList = (output, context) => {
|
|
3080
|
-
const retVal = (output || [])
|
|
3081
|
-
.filter((e) => e != null)
|
|
3082
|
-
.map((entry) => {
|
|
3083
|
-
if (entry === null) {
|
|
3084
|
-
return null;
|
|
3085
|
-
}
|
|
3086
|
-
return de_FailedAccount(entry, context);
|
|
2499
|
+
return (0, smithy_client_1.take)(output, {
|
|
2500
|
+
lastKnownExploitAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3087
2501
|
});
|
|
3088
|
-
return retVal;
|
|
3089
2502
|
};
|
|
3090
2503
|
const de_Filter = (output, context) => {
|
|
3091
|
-
return {
|
|
3092
|
-
action:
|
|
3093
|
-
arn:
|
|
3094
|
-
createdAt:
|
|
3095
|
-
criteria:
|
|
3096
|
-
description:
|
|
3097
|
-
name:
|
|
3098
|
-
ownerId:
|
|
3099
|
-
reason:
|
|
3100
|
-
tags:
|
|
3101
|
-
updatedAt:
|
|
3102
|
-
};
|
|
2504
|
+
return (0, smithy_client_1.take)(output, {
|
|
2505
|
+
action: smithy_client_1.expectString,
|
|
2506
|
+
arn: smithy_client_1.expectString,
|
|
2507
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2508
|
+
criteria: (_) => de_FilterCriteria(_, context),
|
|
2509
|
+
description: smithy_client_1.expectString,
|
|
2510
|
+
name: smithy_client_1.expectString,
|
|
2511
|
+
ownerId: smithy_client_1.expectString,
|
|
2512
|
+
reason: smithy_client_1.expectString,
|
|
2513
|
+
tags: smithy_client_1._json,
|
|
2514
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2515
|
+
});
|
|
3103
2516
|
};
|
|
3104
2517
|
const de_FilterCriteria = (output, context) => {
|
|
3105
|
-
return {
|
|
3106
|
-
awsAccountId:
|
|
3107
|
-
componentId:
|
|
3108
|
-
componentType:
|
|
3109
|
-
ec2InstanceImageId:
|
|
3110
|
-
ec2InstanceSubnetId:
|
|
3111
|
-
ec2InstanceVpcId:
|
|
3112
|
-
ecrImageArchitecture:
|
|
3113
|
-
ecrImageHash:
|
|
3114
|
-
ecrImagePushedAt:
|
|
3115
|
-
ecrImageRegistry:
|
|
3116
|
-
ecrImageRepositoryName:
|
|
3117
|
-
ecrImageTags:
|
|
3118
|
-
exploitAvailable:
|
|
3119
|
-
findingArn:
|
|
3120
|
-
findingStatus:
|
|
3121
|
-
findingType:
|
|
3122
|
-
firstObservedAt:
|
|
3123
|
-
fixAvailable:
|
|
3124
|
-
inspectorScore:
|
|
3125
|
-
lambdaFunctionExecutionRoleArn:
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
vulnerabilityId: output.vulnerabilityId != null ? de_StringFilterList(output.vulnerabilityId, context) : undefined,
|
|
3146
|
-
vulnerabilitySource: output.vulnerabilitySource != null ? de_StringFilterList(output.vulnerabilitySource, context) : undefined,
|
|
3147
|
-
vulnerablePackages: output.vulnerablePackages != null ? de_PackageFilterList(output.vulnerablePackages, context) : undefined,
|
|
3148
|
-
};
|
|
2518
|
+
return (0, smithy_client_1.take)(output, {
|
|
2519
|
+
awsAccountId: smithy_client_1._json,
|
|
2520
|
+
componentId: smithy_client_1._json,
|
|
2521
|
+
componentType: smithy_client_1._json,
|
|
2522
|
+
ec2InstanceImageId: smithy_client_1._json,
|
|
2523
|
+
ec2InstanceSubnetId: smithy_client_1._json,
|
|
2524
|
+
ec2InstanceVpcId: smithy_client_1._json,
|
|
2525
|
+
ecrImageArchitecture: smithy_client_1._json,
|
|
2526
|
+
ecrImageHash: smithy_client_1._json,
|
|
2527
|
+
ecrImagePushedAt: (_) => de_DateFilterList(_, context),
|
|
2528
|
+
ecrImageRegistry: smithy_client_1._json,
|
|
2529
|
+
ecrImageRepositoryName: smithy_client_1._json,
|
|
2530
|
+
ecrImageTags: smithy_client_1._json,
|
|
2531
|
+
exploitAvailable: smithy_client_1._json,
|
|
2532
|
+
findingArn: smithy_client_1._json,
|
|
2533
|
+
findingStatus: smithy_client_1._json,
|
|
2534
|
+
findingType: smithy_client_1._json,
|
|
2535
|
+
firstObservedAt: (_) => de_DateFilterList(_, context),
|
|
2536
|
+
fixAvailable: smithy_client_1._json,
|
|
2537
|
+
inspectorScore: (_) => de_NumberFilterList(_, context),
|
|
2538
|
+
lambdaFunctionExecutionRoleArn: smithy_client_1._json,
|
|
2539
|
+
lambdaFunctionLastModifiedAt: (_) => de_DateFilterList(_, context),
|
|
2540
|
+
lambdaFunctionLayers: smithy_client_1._json,
|
|
2541
|
+
lambdaFunctionName: smithy_client_1._json,
|
|
2542
|
+
lambdaFunctionRuntime: smithy_client_1._json,
|
|
2543
|
+
lastObservedAt: (_) => de_DateFilterList(_, context),
|
|
2544
|
+
networkProtocol: smithy_client_1._json,
|
|
2545
|
+
portRange: smithy_client_1._json,
|
|
2546
|
+
relatedVulnerabilities: smithy_client_1._json,
|
|
2547
|
+
resourceId: smithy_client_1._json,
|
|
2548
|
+
resourceTags: smithy_client_1._json,
|
|
2549
|
+
resourceType: smithy_client_1._json,
|
|
2550
|
+
severity: smithy_client_1._json,
|
|
2551
|
+
title: smithy_client_1._json,
|
|
2552
|
+
updatedAt: (_) => de_DateFilterList(_, context),
|
|
2553
|
+
vendorSeverity: smithy_client_1._json,
|
|
2554
|
+
vulnerabilityId: smithy_client_1._json,
|
|
2555
|
+
vulnerabilitySource: smithy_client_1._json,
|
|
2556
|
+
vulnerablePackages: (_) => de_PackageFilterList(_, context),
|
|
2557
|
+
});
|
|
3149
2558
|
};
|
|
3150
2559
|
const de_FilterList = (output, context) => {
|
|
3151
2560
|
const retVal = (output || [])
|
|
3152
2561
|
.filter((e) => e != null)
|
|
3153
2562
|
.map((entry) => {
|
|
3154
|
-
if (entry === null) {
|
|
3155
|
-
return null;
|
|
3156
|
-
}
|
|
3157
2563
|
return de_Filter(entry, context);
|
|
3158
2564
|
});
|
|
3159
2565
|
return retVal;
|
|
3160
2566
|
};
|
|
3161
2567
|
const de_Finding = (output, context) => {
|
|
3162
|
-
return {
|
|
3163
|
-
awsAccountId:
|
|
3164
|
-
description:
|
|
3165
|
-
exploitAvailable:
|
|
3166
|
-
exploitabilityDetails:
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
: undefined,
|
|
3184
|
-
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
3185
|
-
? de_PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
3186
|
-
: undefined,
|
|
3187
|
-
remediation: output.remediation != null ? de_Remediation(output.remediation, context) : undefined,
|
|
3188
|
-
resources: output.resources != null ? de_ResourceList(output.resources, context) : undefined,
|
|
3189
|
-
severity: (0, smithy_client_1.expectString)(output.severity),
|
|
3190
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3191
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
3192
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
3193
|
-
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3194
|
-
};
|
|
2568
|
+
return (0, smithy_client_1.take)(output, {
|
|
2569
|
+
awsAccountId: smithy_client_1.expectString,
|
|
2570
|
+
description: smithy_client_1.expectString,
|
|
2571
|
+
exploitAvailable: smithy_client_1.expectString,
|
|
2572
|
+
exploitabilityDetails: (_) => de_ExploitabilityDetails(_, context),
|
|
2573
|
+
findingArn: smithy_client_1.expectString,
|
|
2574
|
+
firstObservedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2575
|
+
fixAvailable: smithy_client_1.expectString,
|
|
2576
|
+
inspectorScore: smithy_client_1.limitedParseDouble,
|
|
2577
|
+
inspectorScoreDetails: (_) => de_InspectorScoreDetails(_, context),
|
|
2578
|
+
lastObservedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2579
|
+
networkReachabilityDetails: smithy_client_1._json,
|
|
2580
|
+
packageVulnerabilityDetails: (_) => de_PackageVulnerabilityDetails(_, context),
|
|
2581
|
+
remediation: smithy_client_1._json,
|
|
2582
|
+
resources: (_) => de_ResourceList(_, context),
|
|
2583
|
+
severity: smithy_client_1.expectString,
|
|
2584
|
+
status: smithy_client_1.expectString,
|
|
2585
|
+
title: smithy_client_1.expectString,
|
|
2586
|
+
type: smithy_client_1.expectString,
|
|
2587
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2588
|
+
});
|
|
3195
2589
|
};
|
|
3196
2590
|
const de_FindingList = (output, context) => {
|
|
3197
2591
|
const retVal = (output || [])
|
|
3198
2592
|
.filter((e) => e != null)
|
|
3199
2593
|
.map((entry) => {
|
|
3200
|
-
if (entry === null) {
|
|
3201
|
-
return null;
|
|
3202
|
-
}
|
|
3203
2594
|
return de_Finding(entry, context);
|
|
3204
2595
|
});
|
|
3205
2596
|
return retVal;
|
|
3206
2597
|
};
|
|
3207
|
-
const de_FindingTypeAggregationResponse = (output, context) => {
|
|
3208
|
-
return {
|
|
3209
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3210
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3211
|
-
};
|
|
3212
|
-
};
|
|
3213
2598
|
const de_FreeTrialAccountInfo = (output, context) => {
|
|
3214
|
-
return {
|
|
3215
|
-
accountId:
|
|
3216
|
-
freeTrialInfo:
|
|
3217
|
-
};
|
|
2599
|
+
return (0, smithy_client_1.take)(output, {
|
|
2600
|
+
accountId: smithy_client_1.expectString,
|
|
2601
|
+
freeTrialInfo: (_) => de_FreeTrialInfoList(_, context),
|
|
2602
|
+
});
|
|
3218
2603
|
};
|
|
3219
2604
|
const de_FreeTrialAccountInfoList = (output, context) => {
|
|
3220
2605
|
const retVal = (output || [])
|
|
3221
2606
|
.filter((e) => e != null)
|
|
3222
2607
|
.map((entry) => {
|
|
3223
|
-
if (entry === null) {
|
|
3224
|
-
return null;
|
|
3225
|
-
}
|
|
3226
2608
|
return de_FreeTrialAccountInfo(entry, context);
|
|
3227
2609
|
});
|
|
3228
2610
|
return retVal;
|
|
3229
2611
|
};
|
|
3230
2612
|
const de_FreeTrialInfo = (output, context) => {
|
|
3231
|
-
return {
|
|
3232
|
-
end:
|
|
3233
|
-
start:
|
|
3234
|
-
status:
|
|
3235
|
-
type:
|
|
3236
|
-
};
|
|
3237
|
-
};
|
|
3238
|
-
const de_FreeTrialInfoError = (output, context) => {
|
|
3239
|
-
return {
|
|
3240
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3241
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
3242
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3243
|
-
};
|
|
3244
|
-
};
|
|
3245
|
-
const de_FreeTrialInfoErrorList = (output, context) => {
|
|
3246
|
-
const retVal = (output || [])
|
|
3247
|
-
.filter((e) => e != null)
|
|
3248
|
-
.map((entry) => {
|
|
3249
|
-
if (entry === null) {
|
|
3250
|
-
return null;
|
|
3251
|
-
}
|
|
3252
|
-
return de_FreeTrialInfoError(entry, context);
|
|
2613
|
+
return (0, smithy_client_1.take)(output, {
|
|
2614
|
+
end: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2615
|
+
start: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2616
|
+
status: smithy_client_1.expectString,
|
|
2617
|
+
type: smithy_client_1.expectString,
|
|
3253
2618
|
});
|
|
3254
|
-
return retVal;
|
|
3255
2619
|
};
|
|
3256
2620
|
const de_FreeTrialInfoList = (output, context) => {
|
|
3257
2621
|
const retVal = (output || [])
|
|
3258
2622
|
.filter((e) => e != null)
|
|
3259
2623
|
.map((entry) => {
|
|
3260
|
-
if (entry === null) {
|
|
3261
|
-
return null;
|
|
3262
|
-
}
|
|
3263
2624
|
return de_FreeTrialInfo(entry, context);
|
|
3264
2625
|
});
|
|
3265
2626
|
return retVal;
|
|
3266
2627
|
};
|
|
3267
|
-
const de_ImageLayerAggregationResponse = (output, context) => {
|
|
3268
|
-
return {
|
|
3269
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3270
|
-
layerHash: (0, smithy_client_1.expectString)(output.layerHash),
|
|
3271
|
-
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
3272
|
-
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
3273
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3274
|
-
};
|
|
3275
|
-
};
|
|
3276
|
-
const de_ImageTagList = (output, context) => {
|
|
3277
|
-
const retVal = (output || [])
|
|
3278
|
-
.filter((e) => e != null)
|
|
3279
|
-
.map((entry) => {
|
|
3280
|
-
if (entry === null) {
|
|
3281
|
-
return null;
|
|
3282
|
-
}
|
|
3283
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3284
|
-
});
|
|
3285
|
-
return retVal;
|
|
3286
|
-
};
|
|
3287
2628
|
const de_InspectorScoreDetails = (output, context) => {
|
|
3288
|
-
return {
|
|
3289
|
-
adjustedCvss:
|
|
3290
|
-
};
|
|
3291
|
-
};
|
|
3292
|
-
const de_IpV4AddressList = (output, context) => {
|
|
3293
|
-
const retVal = (output || [])
|
|
3294
|
-
.filter((e) => e != null)
|
|
3295
|
-
.map((entry) => {
|
|
3296
|
-
if (entry === null) {
|
|
3297
|
-
return null;
|
|
3298
|
-
}
|
|
3299
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2629
|
+
return (0, smithy_client_1.take)(output, {
|
|
2630
|
+
adjustedCvss: (_) => de_CvssScoreDetails(_, context),
|
|
3300
2631
|
});
|
|
3301
|
-
return retVal;
|
|
3302
|
-
};
|
|
3303
|
-
const de_IpV6AddressList = (output, context) => {
|
|
3304
|
-
const retVal = (output || [])
|
|
3305
|
-
.filter((e) => e != null)
|
|
3306
|
-
.map((entry) => {
|
|
3307
|
-
if (entry === null) {
|
|
3308
|
-
return null;
|
|
3309
|
-
}
|
|
3310
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3311
|
-
});
|
|
3312
|
-
return retVal;
|
|
3313
2632
|
};
|
|
3314
2633
|
const de_LambdaFunctionAggregationResponse = (output, context) => {
|
|
3315
|
-
return {
|
|
3316
|
-
accountId:
|
|
3317
|
-
functionName:
|
|
3318
|
-
lambdaTags:
|
|
3319
|
-
lastModifiedAt:
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
runtime: (0, smithy_client_1.expectString)(output.runtime),
|
|
3324
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3325
|
-
};
|
|
3326
|
-
};
|
|
3327
|
-
const de_LambdaFunctionMetadata = (output, context) => {
|
|
3328
|
-
return {
|
|
3329
|
-
functionName: (0, smithy_client_1.expectString)(output.functionName),
|
|
3330
|
-
functionTags: output.functionTags != null ? de_TagMap(output.functionTags, context) : undefined,
|
|
3331
|
-
layers: output.layers != null ? de_LambdaLayerList(output.layers, context) : undefined,
|
|
3332
|
-
runtime: (0, smithy_client_1.expectString)(output.runtime),
|
|
3333
|
-
};
|
|
3334
|
-
};
|
|
3335
|
-
const de_LambdaLayerAggregationResponse = (output, context) => {
|
|
3336
|
-
return {
|
|
3337
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3338
|
-
functionName: (0, smithy_client_1.expectString)(output.functionName),
|
|
3339
|
-
layerArn: (0, smithy_client_1.expectString)(output.layerArn),
|
|
3340
|
-
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
3341
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3342
|
-
};
|
|
3343
|
-
};
|
|
3344
|
-
const de_LambdaLayerList = (output, context) => {
|
|
3345
|
-
const retVal = (output || [])
|
|
3346
|
-
.filter((e) => e != null)
|
|
3347
|
-
.map((entry) => {
|
|
3348
|
-
if (entry === null) {
|
|
3349
|
-
return null;
|
|
3350
|
-
}
|
|
3351
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3352
|
-
});
|
|
3353
|
-
return retVal;
|
|
3354
|
-
};
|
|
3355
|
-
const de_LambdaVpcConfig = (output, context) => {
|
|
3356
|
-
return {
|
|
3357
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIdList(output.securityGroupIds, context) : undefined,
|
|
3358
|
-
subnetIds: output.subnetIds != null ? de_SubnetIdList(output.subnetIds, context) : undefined,
|
|
3359
|
-
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3360
|
-
};
|
|
3361
|
-
};
|
|
3362
|
-
const de_LayerList = (output, context) => {
|
|
3363
|
-
const retVal = (output || [])
|
|
3364
|
-
.filter((e) => e != null)
|
|
3365
|
-
.map((entry) => {
|
|
3366
|
-
if (entry === null) {
|
|
3367
|
-
return null;
|
|
3368
|
-
}
|
|
3369
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2634
|
+
return (0, smithy_client_1.take)(output, {
|
|
2635
|
+
accountId: smithy_client_1.expectString,
|
|
2636
|
+
functionName: smithy_client_1.expectString,
|
|
2637
|
+
lambdaTags: smithy_client_1._json,
|
|
2638
|
+
lastModifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2639
|
+
resourceId: smithy_client_1.expectString,
|
|
2640
|
+
runtime: smithy_client_1.expectString,
|
|
2641
|
+
severityCounts: smithy_client_1._json,
|
|
3370
2642
|
});
|
|
3371
|
-
return retVal;
|
|
3372
|
-
};
|
|
3373
|
-
const de_MapFilter = (output, context) => {
|
|
3374
|
-
return {
|
|
3375
|
-
comparison: (0, smithy_client_1.expectString)(output.comparison),
|
|
3376
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
3377
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
3378
|
-
};
|
|
3379
|
-
};
|
|
3380
|
-
const de_MapFilterList = (output, context) => {
|
|
3381
|
-
const retVal = (output || [])
|
|
3382
|
-
.filter((e) => e != null)
|
|
3383
|
-
.map((entry) => {
|
|
3384
|
-
if (entry === null) {
|
|
3385
|
-
return null;
|
|
3386
|
-
}
|
|
3387
|
-
return de_MapFilter(entry, context);
|
|
3388
|
-
});
|
|
3389
|
-
return retVal;
|
|
3390
2643
|
};
|
|
3391
2644
|
const de_Member = (output, context) => {
|
|
3392
|
-
return {
|
|
3393
|
-
accountId:
|
|
3394
|
-
delegatedAdminAccountId:
|
|
3395
|
-
relationshipStatus:
|
|
3396
|
-
updatedAt:
|
|
3397
|
-
};
|
|
2645
|
+
return (0, smithy_client_1.take)(output, {
|
|
2646
|
+
accountId: smithy_client_1.expectString,
|
|
2647
|
+
delegatedAdminAccountId: smithy_client_1.expectString,
|
|
2648
|
+
relationshipStatus: smithy_client_1.expectString,
|
|
2649
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2650
|
+
});
|
|
3398
2651
|
};
|
|
3399
2652
|
const de_MemberList = (output, context) => {
|
|
3400
2653
|
const retVal = (output || [])
|
|
3401
2654
|
.filter((e) => e != null)
|
|
3402
2655
|
.map((entry) => {
|
|
3403
|
-
if (entry === null) {
|
|
3404
|
-
return null;
|
|
3405
|
-
}
|
|
3406
2656
|
return de_Member(entry, context);
|
|
3407
2657
|
});
|
|
3408
2658
|
return retVal;
|
|
3409
2659
|
};
|
|
3410
|
-
const de_NetworkPath = (output, context) => {
|
|
3411
|
-
return {
|
|
3412
|
-
steps: output.steps != null ? de_StepList(output.steps, context) : undefined,
|
|
3413
|
-
};
|
|
3414
|
-
};
|
|
3415
|
-
const de_NetworkReachabilityDetails = (output, context) => {
|
|
3416
|
-
return {
|
|
3417
|
-
networkPath: output.networkPath != null ? de_NetworkPath(output.networkPath, context) : undefined,
|
|
3418
|
-
openPortRange: output.openPortRange != null ? de_PortRange(output.openPortRange, context) : undefined,
|
|
3419
|
-
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
3420
|
-
};
|
|
3421
|
-
};
|
|
3422
|
-
const de_NonEmptyStringList = (output, context) => {
|
|
3423
|
-
const retVal = (output || [])
|
|
3424
|
-
.filter((e) => e != null)
|
|
3425
|
-
.map((entry) => {
|
|
3426
|
-
if (entry === null) {
|
|
3427
|
-
return null;
|
|
3428
|
-
}
|
|
3429
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3430
|
-
});
|
|
3431
|
-
return retVal;
|
|
3432
|
-
};
|
|
3433
2660
|
const de_NumberFilter = (output, context) => {
|
|
3434
|
-
return {
|
|
3435
|
-
lowerInclusive:
|
|
3436
|
-
upperInclusive:
|
|
3437
|
-
};
|
|
2661
|
+
return (0, smithy_client_1.take)(output, {
|
|
2662
|
+
lowerInclusive: smithy_client_1.limitedParseDouble,
|
|
2663
|
+
upperInclusive: smithy_client_1.limitedParseDouble,
|
|
2664
|
+
});
|
|
3438
2665
|
};
|
|
3439
2666
|
const de_NumberFilterList = (output, context) => {
|
|
3440
2667
|
const retVal = (output || [])
|
|
3441
2668
|
.filter((e) => e != null)
|
|
3442
2669
|
.map((entry) => {
|
|
3443
|
-
if (entry === null) {
|
|
3444
|
-
return null;
|
|
3445
|
-
}
|
|
3446
2670
|
return de_NumberFilter(entry, context);
|
|
3447
2671
|
});
|
|
3448
2672
|
return retVal;
|
|
3449
2673
|
};
|
|
3450
|
-
const de_PackageAggregationResponse = (output, context) => {
|
|
3451
|
-
return {
|
|
3452
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3453
|
-
packageName: (0, smithy_client_1.expectString)(output.packageName),
|
|
3454
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3455
|
-
};
|
|
3456
|
-
};
|
|
3457
2674
|
const de_PackageFilter = (output, context) => {
|
|
3458
|
-
return {
|
|
3459
|
-
architecture:
|
|
3460
|
-
epoch:
|
|
3461
|
-
name:
|
|
3462
|
-
release:
|
|
3463
|
-
sourceLambdaLayerArn:
|
|
3464
|
-
sourceLayerHash:
|
|
3465
|
-
version:
|
|
3466
|
-
};
|
|
2675
|
+
return (0, smithy_client_1.take)(output, {
|
|
2676
|
+
architecture: smithy_client_1._json,
|
|
2677
|
+
epoch: (_) => de_NumberFilter(_, context),
|
|
2678
|
+
name: smithy_client_1._json,
|
|
2679
|
+
release: smithy_client_1._json,
|
|
2680
|
+
sourceLambdaLayerArn: smithy_client_1._json,
|
|
2681
|
+
sourceLayerHash: smithy_client_1._json,
|
|
2682
|
+
version: smithy_client_1._json,
|
|
2683
|
+
});
|
|
3467
2684
|
};
|
|
3468
2685
|
const de_PackageFilterList = (output, context) => {
|
|
3469
2686
|
const retVal = (output || [])
|
|
3470
2687
|
.filter((e) => e != null)
|
|
3471
2688
|
.map((entry) => {
|
|
3472
|
-
if (entry === null) {
|
|
3473
|
-
return null;
|
|
3474
|
-
}
|
|
3475
2689
|
return de_PackageFilter(entry, context);
|
|
3476
2690
|
});
|
|
3477
2691
|
return retVal;
|
|
3478
2692
|
};
|
|
3479
2693
|
const de_PackageVulnerabilityDetails = (output, context) => {
|
|
3480
|
-
return {
|
|
3481
|
-
cvss:
|
|
3482
|
-
referenceUrls:
|
|
3483
|
-
relatedVulnerabilities:
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
vendorSeverity: (0, smithy_client_1.expectString)(output.vendorSeverity),
|
|
3492
|
-
vendorUpdatedAt: output.vendorUpdatedAt != null
|
|
3493
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorUpdatedAt)))
|
|
3494
|
-
: undefined,
|
|
3495
|
-
vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
|
|
3496
|
-
vulnerablePackages: output.vulnerablePackages != null ? de_VulnerablePackageList(output.vulnerablePackages, context) : undefined,
|
|
3497
|
-
};
|
|
3498
|
-
};
|
|
3499
|
-
const de_Permission = (output, context) => {
|
|
3500
|
-
return {
|
|
3501
|
-
operation: (0, smithy_client_1.expectString)(output.operation),
|
|
3502
|
-
service: (0, smithy_client_1.expectString)(output.service),
|
|
3503
|
-
};
|
|
3504
|
-
};
|
|
3505
|
-
const de_Permissions = (output, context) => {
|
|
3506
|
-
const retVal = (output || [])
|
|
3507
|
-
.filter((e) => e != null)
|
|
3508
|
-
.map((entry) => {
|
|
3509
|
-
if (entry === null) {
|
|
3510
|
-
return null;
|
|
3511
|
-
}
|
|
3512
|
-
return de_Permission(entry, context);
|
|
3513
|
-
});
|
|
3514
|
-
return retVal;
|
|
3515
|
-
};
|
|
3516
|
-
const de_PortRange = (output, context) => {
|
|
3517
|
-
return {
|
|
3518
|
-
begin: (0, smithy_client_1.expectInt32)(output.begin),
|
|
3519
|
-
end: (0, smithy_client_1.expectInt32)(output.end),
|
|
3520
|
-
};
|
|
3521
|
-
};
|
|
3522
|
-
const de_PortRangeFilter = (output, context) => {
|
|
3523
|
-
return {
|
|
3524
|
-
beginInclusive: (0, smithy_client_1.expectInt32)(output.beginInclusive),
|
|
3525
|
-
endInclusive: (0, smithy_client_1.expectInt32)(output.endInclusive),
|
|
3526
|
-
};
|
|
3527
|
-
};
|
|
3528
|
-
const de_PortRangeFilterList = (output, context) => {
|
|
3529
|
-
const retVal = (output || [])
|
|
3530
|
-
.filter((e) => e != null)
|
|
3531
|
-
.map((entry) => {
|
|
3532
|
-
if (entry === null) {
|
|
3533
|
-
return null;
|
|
3534
|
-
}
|
|
3535
|
-
return de_PortRangeFilter(entry, context);
|
|
2694
|
+
return (0, smithy_client_1.take)(output, {
|
|
2695
|
+
cvss: (_) => de_CvssScoreList(_, context),
|
|
2696
|
+
referenceUrls: smithy_client_1._json,
|
|
2697
|
+
relatedVulnerabilities: smithy_client_1._json,
|
|
2698
|
+
source: smithy_client_1.expectString,
|
|
2699
|
+
sourceUrl: smithy_client_1.expectString,
|
|
2700
|
+
vendorCreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2701
|
+
vendorSeverity: smithy_client_1.expectString,
|
|
2702
|
+
vendorUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2703
|
+
vulnerabilityId: smithy_client_1.expectString,
|
|
2704
|
+
vulnerablePackages: smithy_client_1._json,
|
|
3536
2705
|
});
|
|
3537
|
-
return retVal;
|
|
3538
|
-
};
|
|
3539
|
-
const de_Recommendation = (output, context) => {
|
|
3540
|
-
return {
|
|
3541
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
3542
|
-
text: (0, smithy_client_1.expectString)(output.text),
|
|
3543
|
-
};
|
|
3544
|
-
};
|
|
3545
|
-
const de_Remediation = (output, context) => {
|
|
3546
|
-
return {
|
|
3547
|
-
recommendation: output.recommendation != null ? de_Recommendation(output.recommendation, context) : undefined,
|
|
3548
|
-
};
|
|
3549
|
-
};
|
|
3550
|
-
const de_RepositoryAggregationResponse = (output, context) => {
|
|
3551
|
-
return {
|
|
3552
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3553
|
-
affectedImages: (0, smithy_client_1.expectLong)(output.affectedImages),
|
|
3554
|
-
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
3555
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3556
|
-
};
|
|
3557
2706
|
};
|
|
3558
2707
|
const de_Resource = (output, context) => {
|
|
3559
|
-
return {
|
|
3560
|
-
details:
|
|
3561
|
-
id:
|
|
3562
|
-
partition:
|
|
3563
|
-
region:
|
|
3564
|
-
tags:
|
|
3565
|
-
type:
|
|
3566
|
-
};
|
|
2708
|
+
return (0, smithy_client_1.take)(output, {
|
|
2709
|
+
details: (_) => de_ResourceDetails(_, context),
|
|
2710
|
+
id: smithy_client_1.expectString,
|
|
2711
|
+
partition: smithy_client_1.expectString,
|
|
2712
|
+
region: smithy_client_1.expectString,
|
|
2713
|
+
tags: smithy_client_1._json,
|
|
2714
|
+
type: smithy_client_1.expectString,
|
|
2715
|
+
});
|
|
3567
2716
|
};
|
|
3568
2717
|
const de_ResourceDetails = (output, context) => {
|
|
3569
|
-
return {
|
|
3570
|
-
awsEc2Instance:
|
|
3571
|
-
awsEcrContainerImage:
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
awsLambdaFunction: output.awsLambdaFunction != null ? de_AwsLambdaFunctionDetails(output.awsLambdaFunction, context) : undefined,
|
|
3575
|
-
};
|
|
2718
|
+
return (0, smithy_client_1.take)(output, {
|
|
2719
|
+
awsEc2Instance: (_) => de_AwsEc2InstanceDetails(_, context),
|
|
2720
|
+
awsEcrContainerImage: (_) => de_AwsEcrContainerImageDetails(_, context),
|
|
2721
|
+
awsLambdaFunction: (_) => de_AwsLambdaFunctionDetails(_, context),
|
|
2722
|
+
});
|
|
3576
2723
|
};
|
|
3577
2724
|
const de_ResourceList = (output, context) => {
|
|
3578
2725
|
const retVal = (output || [])
|
|
3579
2726
|
.filter((e) => e != null)
|
|
3580
2727
|
.map((entry) => {
|
|
3581
|
-
if (entry === null) {
|
|
3582
|
-
return null;
|
|
3583
|
-
}
|
|
3584
2728
|
return de_Resource(entry, context);
|
|
3585
2729
|
});
|
|
3586
2730
|
return retVal;
|
|
3587
2731
|
};
|
|
3588
|
-
const de_ResourceScanMetadata = (output, context) => {
|
|
3589
|
-
return {
|
|
3590
|
-
ec2: output.ec2 != null ? de_Ec2Metadata(output.ec2, context) : undefined,
|
|
3591
|
-
ecrImage: output.ecrImage != null ? de_EcrContainerImageMetadata(output.ecrImage, context) : undefined,
|
|
3592
|
-
ecrRepository: output.ecrRepository != null ? de_EcrRepositoryMetadata(output.ecrRepository, context) : undefined,
|
|
3593
|
-
lambdaFunction: output.lambdaFunction != null ? de_LambdaFunctionMetadata(output.lambdaFunction, context) : undefined,
|
|
3594
|
-
};
|
|
3595
|
-
};
|
|
3596
|
-
const de_ResourceState = (output, context) => {
|
|
3597
|
-
return {
|
|
3598
|
-
ec2: output.ec2 != null ? de_State(output.ec2, context) : undefined,
|
|
3599
|
-
ecr: output.ecr != null ? de_State(output.ecr, context) : undefined,
|
|
3600
|
-
lambda: output.lambda != null ? de_State(output.lambda, context) : undefined,
|
|
3601
|
-
};
|
|
3602
|
-
};
|
|
3603
|
-
const de_ResourceStatus = (output, context) => {
|
|
3604
|
-
return {
|
|
3605
|
-
ec2: (0, smithy_client_1.expectString)(output.ec2),
|
|
3606
|
-
ecr: (0, smithy_client_1.expectString)(output.ecr),
|
|
3607
|
-
lambda: (0, smithy_client_1.expectString)(output.lambda),
|
|
3608
|
-
};
|
|
3609
|
-
};
|
|
3610
|
-
const de_ScanStatus = (output, context) => {
|
|
3611
|
-
return {
|
|
3612
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
3613
|
-
statusCode: (0, smithy_client_1.expectString)(output.statusCode),
|
|
3614
|
-
};
|
|
3615
|
-
};
|
|
3616
|
-
const de_SecurityGroupIdList = (output, context) => {
|
|
3617
|
-
const retVal = (output || [])
|
|
3618
|
-
.filter((e) => e != null)
|
|
3619
|
-
.map((entry) => {
|
|
3620
|
-
if (entry === null) {
|
|
3621
|
-
return null;
|
|
3622
|
-
}
|
|
3623
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3624
|
-
});
|
|
3625
|
-
return retVal;
|
|
3626
|
-
};
|
|
3627
|
-
const de_SeverityCounts = (output, context) => {
|
|
3628
|
-
return {
|
|
3629
|
-
all: (0, smithy_client_1.expectLong)(output.all),
|
|
3630
|
-
critical: (0, smithy_client_1.expectLong)(output.critical),
|
|
3631
|
-
high: (0, smithy_client_1.expectLong)(output.high),
|
|
3632
|
-
medium: (0, smithy_client_1.expectLong)(output.medium),
|
|
3633
|
-
};
|
|
3634
|
-
};
|
|
3635
|
-
const de_State = (output, context) => {
|
|
3636
|
-
return {
|
|
3637
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3638
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
3639
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3640
|
-
};
|
|
3641
|
-
};
|
|
3642
|
-
const de_Step = (output, context) => {
|
|
3643
|
-
return {
|
|
3644
|
-
componentId: (0, smithy_client_1.expectString)(output.componentId),
|
|
3645
|
-
componentType: (0, smithy_client_1.expectString)(output.componentType),
|
|
3646
|
-
};
|
|
3647
|
-
};
|
|
3648
|
-
const de_StepList = (output, context) => {
|
|
3649
|
-
const retVal = (output || [])
|
|
3650
|
-
.filter((e) => e != null)
|
|
3651
|
-
.map((entry) => {
|
|
3652
|
-
if (entry === null) {
|
|
3653
|
-
return null;
|
|
3654
|
-
}
|
|
3655
|
-
return de_Step(entry, context);
|
|
3656
|
-
});
|
|
3657
|
-
return retVal;
|
|
3658
|
-
};
|
|
3659
|
-
const de_StringFilter = (output, context) => {
|
|
3660
|
-
return {
|
|
3661
|
-
comparison: (0, smithy_client_1.expectString)(output.comparison),
|
|
3662
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
3663
|
-
};
|
|
3664
|
-
};
|
|
3665
|
-
const de_StringFilterList = (output, context) => {
|
|
3666
|
-
const retVal = (output || [])
|
|
3667
|
-
.filter((e) => e != null)
|
|
3668
|
-
.map((entry) => {
|
|
3669
|
-
if (entry === null) {
|
|
3670
|
-
return null;
|
|
3671
|
-
}
|
|
3672
|
-
return de_StringFilter(entry, context);
|
|
3673
|
-
});
|
|
3674
|
-
return retVal;
|
|
3675
|
-
};
|
|
3676
|
-
const de_StringList = (output, context) => {
|
|
3677
|
-
const retVal = (output || [])
|
|
3678
|
-
.filter((e) => e != null)
|
|
3679
|
-
.map((entry) => {
|
|
3680
|
-
if (entry === null) {
|
|
3681
|
-
return null;
|
|
3682
|
-
}
|
|
3683
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3684
|
-
});
|
|
3685
|
-
return retVal;
|
|
3686
|
-
};
|
|
3687
|
-
const de_SubnetIdList = (output, context) => {
|
|
3688
|
-
const retVal = (output || [])
|
|
3689
|
-
.filter((e) => e != null)
|
|
3690
|
-
.map((entry) => {
|
|
3691
|
-
if (entry === null) {
|
|
3692
|
-
return null;
|
|
3693
|
-
}
|
|
3694
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3695
|
-
});
|
|
3696
|
-
return retVal;
|
|
3697
|
-
};
|
|
3698
|
-
const de_TagList = (output, context) => {
|
|
3699
|
-
const retVal = (output || [])
|
|
3700
|
-
.filter((e) => e != null)
|
|
3701
|
-
.map((entry) => {
|
|
3702
|
-
if (entry === null) {
|
|
3703
|
-
return null;
|
|
3704
|
-
}
|
|
3705
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3706
|
-
});
|
|
3707
|
-
return retVal;
|
|
3708
|
-
};
|
|
3709
|
-
const de_TagMap = (output, context) => {
|
|
3710
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3711
|
-
if (value === null) {
|
|
3712
|
-
return acc;
|
|
3713
|
-
}
|
|
3714
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3715
|
-
return acc;
|
|
3716
|
-
}, {});
|
|
3717
|
-
};
|
|
3718
|
-
const de_TitleAggregationResponse = (output, context) => {
|
|
3719
|
-
return {
|
|
3720
|
-
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3721
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3722
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
3723
|
-
vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
|
|
3724
|
-
};
|
|
3725
|
-
};
|
|
3726
2732
|
const de_Usage = (output, context) => {
|
|
3727
|
-
return {
|
|
3728
|
-
currency:
|
|
3729
|
-
estimatedMonthlyCost:
|
|
3730
|
-
total:
|
|
3731
|
-
type:
|
|
3732
|
-
};
|
|
2733
|
+
return (0, smithy_client_1.take)(output, {
|
|
2734
|
+
currency: smithy_client_1.expectString,
|
|
2735
|
+
estimatedMonthlyCost: smithy_client_1.limitedParseDouble,
|
|
2736
|
+
total: smithy_client_1.limitedParseDouble,
|
|
2737
|
+
type: smithy_client_1.expectString,
|
|
2738
|
+
});
|
|
3733
2739
|
};
|
|
3734
2740
|
const de_UsageList = (output, context) => {
|
|
3735
2741
|
const retVal = (output || [])
|
|
3736
2742
|
.filter((e) => e != null)
|
|
3737
2743
|
.map((entry) => {
|
|
3738
|
-
if (entry === null) {
|
|
3739
|
-
return null;
|
|
3740
|
-
}
|
|
3741
2744
|
return de_Usage(entry, context);
|
|
3742
2745
|
});
|
|
3743
2746
|
return retVal;
|
|
3744
2747
|
};
|
|
3745
2748
|
const de_UsageTotal = (output, context) => {
|
|
3746
|
-
return {
|
|
3747
|
-
accountId:
|
|
3748
|
-
usage:
|
|
3749
|
-
};
|
|
2749
|
+
return (0, smithy_client_1.take)(output, {
|
|
2750
|
+
accountId: smithy_client_1.expectString,
|
|
2751
|
+
usage: (_) => de_UsageList(_, context),
|
|
2752
|
+
});
|
|
3750
2753
|
};
|
|
3751
2754
|
const de_UsageTotalList = (output, context) => {
|
|
3752
2755
|
const retVal = (output || [])
|
|
3753
2756
|
.filter((e) => e != null)
|
|
3754
2757
|
.map((entry) => {
|
|
3755
|
-
if (entry === null) {
|
|
3756
|
-
return null;
|
|
3757
|
-
}
|
|
3758
2758
|
return de_UsageTotal(entry, context);
|
|
3759
2759
|
});
|
|
3760
2760
|
return retVal;
|
|
3761
2761
|
};
|
|
3762
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
3763
|
-
return {
|
|
3764
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3765
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3766
|
-
};
|
|
3767
|
-
};
|
|
3768
|
-
const de_ValidationExceptionFields = (output, context) => {
|
|
3769
|
-
const retVal = (output || [])
|
|
3770
|
-
.filter((e) => e != null)
|
|
3771
|
-
.map((entry) => {
|
|
3772
|
-
if (entry === null) {
|
|
3773
|
-
return null;
|
|
3774
|
-
}
|
|
3775
|
-
return de_ValidationExceptionField(entry, context);
|
|
3776
|
-
});
|
|
3777
|
-
return retVal;
|
|
3778
|
-
};
|
|
3779
|
-
const de_VulnerabilityIdList = (output, context) => {
|
|
3780
|
-
const retVal = (output || [])
|
|
3781
|
-
.filter((e) => e != null)
|
|
3782
|
-
.map((entry) => {
|
|
3783
|
-
if (entry === null) {
|
|
3784
|
-
return null;
|
|
3785
|
-
}
|
|
3786
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3787
|
-
});
|
|
3788
|
-
return retVal;
|
|
3789
|
-
};
|
|
3790
|
-
const de_VulnerablePackage = (output, context) => {
|
|
3791
|
-
return {
|
|
3792
|
-
arch: (0, smithy_client_1.expectString)(output.arch),
|
|
3793
|
-
epoch: (0, smithy_client_1.expectInt32)(output.epoch),
|
|
3794
|
-
filePath: (0, smithy_client_1.expectString)(output.filePath),
|
|
3795
|
-
fixedInVersion: (0, smithy_client_1.expectString)(output.fixedInVersion),
|
|
3796
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3797
|
-
packageManager: (0, smithy_client_1.expectString)(output.packageManager),
|
|
3798
|
-
release: (0, smithy_client_1.expectString)(output.release),
|
|
3799
|
-
remediation: (0, smithy_client_1.expectString)(output.remediation),
|
|
3800
|
-
sourceLambdaLayerArn: (0, smithy_client_1.expectString)(output.sourceLambdaLayerArn),
|
|
3801
|
-
sourceLayerHash: (0, smithy_client_1.expectString)(output.sourceLayerHash),
|
|
3802
|
-
version: (0, smithy_client_1.expectString)(output.version),
|
|
3803
|
-
};
|
|
3804
|
-
};
|
|
3805
|
-
const de_VulnerablePackageList = (output, context) => {
|
|
3806
|
-
const retVal = (output || [])
|
|
3807
|
-
.filter((e) => e != null)
|
|
3808
|
-
.map((entry) => {
|
|
3809
|
-
if (entry === null) {
|
|
3810
|
-
return null;
|
|
3811
|
-
}
|
|
3812
|
-
return de_VulnerablePackage(entry, context);
|
|
3813
|
-
});
|
|
3814
|
-
return retVal;
|
|
3815
|
-
};
|
|
3816
2762
|
const deserializeMetadata = (output) => ({
|
|
3817
2763
|
httpStatusCode: output.statusCode,
|
|
3818
2764
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|