@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { Inspector2ServiceException as __BaseException } from "../models/Inspector2ServiceException";
|
|
5
|
-
import { AccessDeniedException,
|
|
5
|
+
import { AccessDeniedException, BadRequestException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_AssociateMemberCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
@@ -10,9 +10,9 @@ export const se_AssociateMemberCommand = async (input, context) => {
|
|
|
10
10
|
};
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/associate";
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
accountId: [],
|
|
15
|
+
}));
|
|
16
16
|
return new __HttpRequest({
|
|
17
17
|
protocol,
|
|
18
18
|
hostname,
|
|
@@ -30,9 +30,9 @@ export const se_BatchGetAccountStatusCommand = async (input, context) => {
|
|
|
30
30
|
};
|
|
31
31
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/status/batch/get";
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify({
|
|
34
|
-
|
|
35
|
-
});
|
|
33
|
+
body = JSON.stringify(take(input, {
|
|
34
|
+
accountIds: (_) => _json(_),
|
|
35
|
+
}));
|
|
36
36
|
return new __HttpRequest({
|
|
37
37
|
protocol,
|
|
38
38
|
hostname,
|
|
@@ -50,9 +50,9 @@ export const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
|
|
|
50
50
|
};
|
|
51
51
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/freetrialinfo/batchget";
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify({
|
|
54
|
-
|
|
55
|
-
});
|
|
53
|
+
body = JSON.stringify(take(input, {
|
|
54
|
+
accountIds: (_) => _json(_),
|
|
55
|
+
}));
|
|
56
56
|
return new __HttpRequest({
|
|
57
57
|
protocol,
|
|
58
58
|
hostname,
|
|
@@ -70,9 +70,9 @@ export const se_CancelFindingsReportCommand = async (input, context) => {
|
|
|
70
70
|
};
|
|
71
71
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/cancel";
|
|
72
72
|
let body;
|
|
73
|
-
body = JSON.stringify({
|
|
74
|
-
|
|
75
|
-
});
|
|
73
|
+
body = JSON.stringify(take(input, {
|
|
74
|
+
reportId: [],
|
|
75
|
+
}));
|
|
76
76
|
return new __HttpRequest({
|
|
77
77
|
protocol,
|
|
78
78
|
hostname,
|
|
@@ -90,14 +90,14 @@ export const se_CreateFilterCommand = async (input, context) => {
|
|
|
90
90
|
};
|
|
91
91
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/create";
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify({
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
});
|
|
93
|
+
body = JSON.stringify(take(input, {
|
|
94
|
+
action: [],
|
|
95
|
+
description: [],
|
|
96
|
+
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
97
|
+
name: [],
|
|
98
|
+
reason: [],
|
|
99
|
+
tags: (_) => _json(_),
|
|
100
|
+
}));
|
|
101
101
|
return new __HttpRequest({
|
|
102
102
|
protocol,
|
|
103
103
|
hostname,
|
|
@@ -115,11 +115,11 @@ export const se_CreateFindingsReportCommand = async (input, context) => {
|
|
|
115
115
|
};
|
|
116
116
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/create";
|
|
117
117
|
let body;
|
|
118
|
-
body = JSON.stringify({
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
});
|
|
118
|
+
body = JSON.stringify(take(input, {
|
|
119
|
+
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
120
|
+
reportFormat: [],
|
|
121
|
+
s3Destination: (_) => _json(_),
|
|
122
|
+
}));
|
|
123
123
|
return new __HttpRequest({
|
|
124
124
|
protocol,
|
|
125
125
|
hostname,
|
|
@@ -137,9 +137,9 @@ export const se_DeleteFilterCommand = async (input, context) => {
|
|
|
137
137
|
};
|
|
138
138
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/delete";
|
|
139
139
|
let body;
|
|
140
|
-
body = JSON.stringify({
|
|
141
|
-
|
|
142
|
-
});
|
|
140
|
+
body = JSON.stringify(take(input, {
|
|
141
|
+
arn: [],
|
|
142
|
+
}));
|
|
143
143
|
return new __HttpRequest({
|
|
144
144
|
protocol,
|
|
145
145
|
hostname,
|
|
@@ -175,10 +175,10 @@ export const se_DisableCommand = async (input, context) => {
|
|
|
175
175
|
};
|
|
176
176
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disable";
|
|
177
177
|
let body;
|
|
178
|
-
body = JSON.stringify({
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
});
|
|
178
|
+
body = JSON.stringify(take(input, {
|
|
179
|
+
accountIds: (_) => _json(_),
|
|
180
|
+
resourceTypes: (_) => _json(_),
|
|
181
|
+
}));
|
|
182
182
|
return new __HttpRequest({
|
|
183
183
|
protocol,
|
|
184
184
|
hostname,
|
|
@@ -196,9 +196,9 @@ export const se_DisableDelegatedAdminAccountCommand = async (input, context) =>
|
|
|
196
196
|
};
|
|
197
197
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/disable";
|
|
198
198
|
let body;
|
|
199
|
-
body = JSON.stringify({
|
|
200
|
-
|
|
201
|
-
});
|
|
199
|
+
body = JSON.stringify(take(input, {
|
|
200
|
+
delegatedAdminAccountId: [],
|
|
201
|
+
}));
|
|
202
202
|
return new __HttpRequest({
|
|
203
203
|
protocol,
|
|
204
204
|
hostname,
|
|
@@ -216,9 +216,9 @@ export const se_DisassociateMemberCommand = async (input, context) => {
|
|
|
216
216
|
};
|
|
217
217
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate";
|
|
218
218
|
let body;
|
|
219
|
-
body = JSON.stringify({
|
|
220
|
-
|
|
221
|
-
});
|
|
219
|
+
body = JSON.stringify(take(input, {
|
|
220
|
+
accountId: [],
|
|
221
|
+
}));
|
|
222
222
|
return new __HttpRequest({
|
|
223
223
|
protocol,
|
|
224
224
|
hostname,
|
|
@@ -236,11 +236,11 @@ export const se_EnableCommand = async (input, context) => {
|
|
|
236
236
|
};
|
|
237
237
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enable";
|
|
238
238
|
let body;
|
|
239
|
-
body = JSON.stringify({
|
|
240
|
-
|
|
241
|
-
clientToken:
|
|
242
|
-
|
|
243
|
-
});
|
|
239
|
+
body = JSON.stringify(take(input, {
|
|
240
|
+
accountIds: (_) => _json(_),
|
|
241
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
242
|
+
resourceTypes: (_) => _json(_),
|
|
243
|
+
}));
|
|
244
244
|
return new __HttpRequest({
|
|
245
245
|
protocol,
|
|
246
246
|
hostname,
|
|
@@ -258,10 +258,10 @@ export const se_EnableDelegatedAdminAccountCommand = async (input, context) => {
|
|
|
258
258
|
};
|
|
259
259
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/enable";
|
|
260
260
|
let body;
|
|
261
|
-
body = JSON.stringify({
|
|
262
|
-
clientToken:
|
|
263
|
-
|
|
264
|
-
});
|
|
261
|
+
body = JSON.stringify(take(input, {
|
|
262
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
263
|
+
delegatedAdminAccountId: [],
|
|
264
|
+
}));
|
|
265
265
|
return new __HttpRequest({
|
|
266
266
|
protocol,
|
|
267
267
|
hostname,
|
|
@@ -315,9 +315,9 @@ export const se_GetFindingsReportStatusCommand = async (input, context) => {
|
|
|
315
315
|
};
|
|
316
316
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/status/get";
|
|
317
317
|
let body;
|
|
318
|
-
body = JSON.stringify({
|
|
319
|
-
|
|
320
|
-
});
|
|
318
|
+
body = JSON.stringify(take(input, {
|
|
319
|
+
reportId: [],
|
|
320
|
+
}));
|
|
321
321
|
return new __HttpRequest({
|
|
322
322
|
protocol,
|
|
323
323
|
hostname,
|
|
@@ -335,9 +335,9 @@ export const se_GetMemberCommand = async (input, context) => {
|
|
|
335
335
|
};
|
|
336
336
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/get";
|
|
337
337
|
let body;
|
|
338
|
-
body = JSON.stringify({
|
|
339
|
-
|
|
340
|
-
});
|
|
338
|
+
body = JSON.stringify(take(input, {
|
|
339
|
+
accountId: [],
|
|
340
|
+
}));
|
|
341
341
|
return new __HttpRequest({
|
|
342
342
|
protocol,
|
|
343
343
|
hostname,
|
|
@@ -355,11 +355,11 @@ export const se_ListAccountPermissionsCommand = async (input, context) => {
|
|
|
355
355
|
};
|
|
356
356
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accountpermissions/list";
|
|
357
357
|
let body;
|
|
358
|
-
body = JSON.stringify({
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
});
|
|
358
|
+
body = JSON.stringify(take(input, {
|
|
359
|
+
maxResults: [],
|
|
360
|
+
nextToken: [],
|
|
361
|
+
service: [],
|
|
362
|
+
}));
|
|
363
363
|
return new __HttpRequest({
|
|
364
364
|
protocol,
|
|
365
365
|
hostname,
|
|
@@ -377,11 +377,11 @@ export const se_ListCoverageCommand = async (input, context) => {
|
|
|
377
377
|
};
|
|
378
378
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/list";
|
|
379
379
|
let body;
|
|
380
|
-
body = JSON.stringify({
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
});
|
|
380
|
+
body = JSON.stringify(take(input, {
|
|
381
|
+
filterCriteria: (_) => _json(_),
|
|
382
|
+
maxResults: [],
|
|
383
|
+
nextToken: [],
|
|
384
|
+
}));
|
|
385
385
|
return new __HttpRequest({
|
|
386
386
|
protocol,
|
|
387
387
|
hostname,
|
|
@@ -399,11 +399,11 @@ export const se_ListCoverageStatisticsCommand = async (input, context) => {
|
|
|
399
399
|
};
|
|
400
400
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/statistics/list";
|
|
401
401
|
let body;
|
|
402
|
-
body = JSON.stringify({
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
});
|
|
402
|
+
body = JSON.stringify(take(input, {
|
|
403
|
+
filterCriteria: (_) => _json(_),
|
|
404
|
+
groupBy: [],
|
|
405
|
+
nextToken: [],
|
|
406
|
+
}));
|
|
407
407
|
return new __HttpRequest({
|
|
408
408
|
protocol,
|
|
409
409
|
hostname,
|
|
@@ -421,10 +421,10 @@ export const se_ListDelegatedAdminAccountsCommand = async (input, context) => {
|
|
|
421
421
|
};
|
|
422
422
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/list";
|
|
423
423
|
let body;
|
|
424
|
-
body = JSON.stringify({
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
});
|
|
424
|
+
body = JSON.stringify(take(input, {
|
|
425
|
+
maxResults: [],
|
|
426
|
+
nextToken: [],
|
|
427
|
+
}));
|
|
428
428
|
return new __HttpRequest({
|
|
429
429
|
protocol,
|
|
430
430
|
hostname,
|
|
@@ -442,12 +442,12 @@ export const se_ListFiltersCommand = async (input, context) => {
|
|
|
442
442
|
};
|
|
443
443
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/list";
|
|
444
444
|
let body;
|
|
445
|
-
body = JSON.stringify({
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
});
|
|
445
|
+
body = JSON.stringify(take(input, {
|
|
446
|
+
action: [],
|
|
447
|
+
arns: (_) => _json(_),
|
|
448
|
+
maxResults: [],
|
|
449
|
+
nextToken: [],
|
|
450
|
+
}));
|
|
451
451
|
return new __HttpRequest({
|
|
452
452
|
protocol,
|
|
453
453
|
hostname,
|
|
@@ -465,15 +465,13 @@ export const se_ListFindingAggregationsCommand = async (input, context) => {
|
|
|
465
465
|
};
|
|
466
466
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/aggregation/list";
|
|
467
467
|
let body;
|
|
468
|
-
body = JSON.stringify({
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
476
|
-
});
|
|
468
|
+
body = JSON.stringify(take(input, {
|
|
469
|
+
accountIds: (_) => _json(_),
|
|
470
|
+
aggregationRequest: (_) => _json(_),
|
|
471
|
+
aggregationType: [],
|
|
472
|
+
maxResults: [],
|
|
473
|
+
nextToken: [],
|
|
474
|
+
}));
|
|
477
475
|
return new __HttpRequest({
|
|
478
476
|
protocol,
|
|
479
477
|
hostname,
|
|
@@ -491,12 +489,12 @@ export const se_ListFindingsCommand = async (input, context) => {
|
|
|
491
489
|
};
|
|
492
490
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/list";
|
|
493
491
|
let body;
|
|
494
|
-
body = JSON.stringify({
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
});
|
|
492
|
+
body = JSON.stringify(take(input, {
|
|
493
|
+
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
494
|
+
maxResults: [],
|
|
495
|
+
nextToken: [],
|
|
496
|
+
sortCriteria: (_) => _json(_),
|
|
497
|
+
}));
|
|
500
498
|
return new __HttpRequest({
|
|
501
499
|
protocol,
|
|
502
500
|
hostname,
|
|
@@ -514,11 +512,11 @@ export const se_ListMembersCommand = async (input, context) => {
|
|
|
514
512
|
};
|
|
515
513
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/members/list";
|
|
516
514
|
let body;
|
|
517
|
-
body = JSON.stringify({
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
});
|
|
515
|
+
body = JSON.stringify(take(input, {
|
|
516
|
+
maxResults: [],
|
|
517
|
+
nextToken: [],
|
|
518
|
+
onlyAssociated: [],
|
|
519
|
+
}));
|
|
522
520
|
return new __HttpRequest({
|
|
523
521
|
protocol,
|
|
524
522
|
hostname,
|
|
@@ -552,11 +550,11 @@ export const se_ListUsageTotalsCommand = async (input, context) => {
|
|
|
552
550
|
};
|
|
553
551
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usage/list";
|
|
554
552
|
let body;
|
|
555
|
-
body = JSON.stringify({
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
});
|
|
553
|
+
body = JSON.stringify(take(input, {
|
|
554
|
+
accountIds: (_) => _json(_),
|
|
555
|
+
maxResults: [],
|
|
556
|
+
nextToken: [],
|
|
557
|
+
}));
|
|
560
558
|
return new __HttpRequest({
|
|
561
559
|
protocol,
|
|
562
560
|
hostname,
|
|
@@ -575,9 +573,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
575
573
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
576
574
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
577
575
|
let body;
|
|
578
|
-
body = JSON.stringify({
|
|
579
|
-
|
|
580
|
-
});
|
|
576
|
+
body = JSON.stringify(take(input, {
|
|
577
|
+
tags: (_) => _json(_),
|
|
578
|
+
}));
|
|
581
579
|
return new __HttpRequest({
|
|
582
580
|
protocol,
|
|
583
581
|
hostname,
|
|
@@ -618,9 +616,9 @@ export const se_UpdateConfigurationCommand = async (input, context) => {
|
|
|
618
616
|
};
|
|
619
617
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/update";
|
|
620
618
|
let body;
|
|
621
|
-
body = JSON.stringify({
|
|
622
|
-
|
|
623
|
-
});
|
|
619
|
+
body = JSON.stringify(take(input, {
|
|
620
|
+
ecrConfiguration: (_) => _json(_),
|
|
621
|
+
}));
|
|
624
622
|
return new __HttpRequest({
|
|
625
623
|
protocol,
|
|
626
624
|
hostname,
|
|
@@ -638,14 +636,14 @@ export const se_UpdateFilterCommand = async (input, context) => {
|
|
|
638
636
|
};
|
|
639
637
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/filters/update";
|
|
640
638
|
let body;
|
|
641
|
-
body = JSON.stringify({
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
});
|
|
639
|
+
body = JSON.stringify(take(input, {
|
|
640
|
+
action: [],
|
|
641
|
+
description: [],
|
|
642
|
+
filterArn: [],
|
|
643
|
+
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
644
|
+
name: [],
|
|
645
|
+
reason: [],
|
|
646
|
+
}));
|
|
649
647
|
return new __HttpRequest({
|
|
650
648
|
protocol,
|
|
651
649
|
hostname,
|
|
@@ -663,9 +661,9 @@ export const se_UpdateOrganizationConfigurationCommand = async (input, context)
|
|
|
663
661
|
};
|
|
664
662
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizationconfiguration/update";
|
|
665
663
|
let body;
|
|
666
|
-
body = JSON.stringify({
|
|
667
|
-
|
|
668
|
-
});
|
|
664
|
+
body = JSON.stringify(take(input, {
|
|
665
|
+
autoEnable: (_) => _json(_),
|
|
666
|
+
}));
|
|
669
667
|
return new __HttpRequest({
|
|
670
668
|
protocol,
|
|
671
669
|
hostname,
|
|
@@ -684,9 +682,10 @@ export const de_AssociateMemberCommand = async (output, context) => {
|
|
|
684
682
|
$metadata: deserializeMetadata(output),
|
|
685
683
|
});
|
|
686
684
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
685
|
+
const doc = take(data, {
|
|
686
|
+
accountId: __expectString,
|
|
687
|
+
});
|
|
688
|
+
Object.assign(contents, doc);
|
|
690
689
|
return contents;
|
|
691
690
|
};
|
|
692
691
|
const de_AssociateMemberCommandError = async (output, context) => {
|
|
@@ -710,10 +709,9 @@ const de_AssociateMemberCommandError = async (output, context) => {
|
|
|
710
709
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
711
710
|
default:
|
|
712
711
|
const parsedBody = parsedOutput.body;
|
|
713
|
-
throwDefaultError({
|
|
712
|
+
return throwDefaultError({
|
|
714
713
|
output,
|
|
715
714
|
parsedBody,
|
|
716
|
-
exceptionCtor: __BaseException,
|
|
717
715
|
errorCode,
|
|
718
716
|
});
|
|
719
717
|
}
|
|
@@ -726,12 +724,11 @@ export const de_BatchGetAccountStatusCommand = async (output, context) => {
|
|
|
726
724
|
$metadata: deserializeMetadata(output),
|
|
727
725
|
});
|
|
728
726
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
}
|
|
727
|
+
const doc = take(data, {
|
|
728
|
+
accounts: _json,
|
|
729
|
+
failedAccounts: _json,
|
|
730
|
+
});
|
|
731
|
+
Object.assign(contents, doc);
|
|
735
732
|
return contents;
|
|
736
733
|
};
|
|
737
734
|
const de_BatchGetAccountStatusCommandError = async (output, context) => {
|
|
@@ -758,10 +755,9 @@ const de_BatchGetAccountStatusCommandError = async (output, context) => {
|
|
|
758
755
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
759
756
|
default:
|
|
760
757
|
const parsedBody = parsedOutput.body;
|
|
761
|
-
throwDefaultError({
|
|
758
|
+
return throwDefaultError({
|
|
762
759
|
output,
|
|
763
760
|
parsedBody,
|
|
764
|
-
exceptionCtor: __BaseException,
|
|
765
761
|
errorCode,
|
|
766
762
|
});
|
|
767
763
|
}
|
|
@@ -774,12 +770,11 @@ export const de_BatchGetFreeTrialInfoCommand = async (output, context) => {
|
|
|
774
770
|
$metadata: deserializeMetadata(output),
|
|
775
771
|
});
|
|
776
772
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}
|
|
773
|
+
const doc = take(data, {
|
|
774
|
+
accounts: (_) => de_FreeTrialAccountInfoList(_, context),
|
|
775
|
+
failedAccounts: _json,
|
|
776
|
+
});
|
|
777
|
+
Object.assign(contents, doc);
|
|
783
778
|
return contents;
|
|
784
779
|
};
|
|
785
780
|
const de_BatchGetFreeTrialInfoCommandError = async (output, context) => {
|
|
@@ -803,10 +798,9 @@ const de_BatchGetFreeTrialInfoCommandError = async (output, context) => {
|
|
|
803
798
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
804
799
|
default:
|
|
805
800
|
const parsedBody = parsedOutput.body;
|
|
806
|
-
throwDefaultError({
|
|
801
|
+
return throwDefaultError({
|
|
807
802
|
output,
|
|
808
803
|
parsedBody,
|
|
809
|
-
exceptionCtor: __BaseException,
|
|
810
804
|
errorCode,
|
|
811
805
|
});
|
|
812
806
|
}
|
|
@@ -819,9 +813,10 @@ export const de_CancelFindingsReportCommand = async (output, context) => {
|
|
|
819
813
|
$metadata: deserializeMetadata(output),
|
|
820
814
|
});
|
|
821
815
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
}
|
|
816
|
+
const doc = take(data, {
|
|
817
|
+
reportId: __expectString,
|
|
818
|
+
});
|
|
819
|
+
Object.assign(contents, doc);
|
|
825
820
|
return contents;
|
|
826
821
|
};
|
|
827
822
|
const de_CancelFindingsReportCommandError = async (output, context) => {
|
|
@@ -848,10 +843,9 @@ const de_CancelFindingsReportCommandError = async (output, context) => {
|
|
|
848
843
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
849
844
|
default:
|
|
850
845
|
const parsedBody = parsedOutput.body;
|
|
851
|
-
throwDefaultError({
|
|
846
|
+
return throwDefaultError({
|
|
852
847
|
output,
|
|
853
848
|
parsedBody,
|
|
854
|
-
exceptionCtor: __BaseException,
|
|
855
849
|
errorCode,
|
|
856
850
|
});
|
|
857
851
|
}
|
|
@@ -864,9 +858,10 @@ export const de_CreateFilterCommand = async (output, context) => {
|
|
|
864
858
|
$metadata: deserializeMetadata(output),
|
|
865
859
|
});
|
|
866
860
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
}
|
|
861
|
+
const doc = take(data, {
|
|
862
|
+
arn: __expectString,
|
|
863
|
+
});
|
|
864
|
+
Object.assign(contents, doc);
|
|
870
865
|
return contents;
|
|
871
866
|
};
|
|
872
867
|
const de_CreateFilterCommandError = async (output, context) => {
|
|
@@ -896,10 +891,9 @@ const de_CreateFilterCommandError = async (output, context) => {
|
|
|
896
891
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
897
892
|
default:
|
|
898
893
|
const parsedBody = parsedOutput.body;
|
|
899
|
-
throwDefaultError({
|
|
894
|
+
return throwDefaultError({
|
|
900
895
|
output,
|
|
901
896
|
parsedBody,
|
|
902
|
-
exceptionCtor: __BaseException,
|
|
903
897
|
errorCode,
|
|
904
898
|
});
|
|
905
899
|
}
|
|
@@ -912,9 +906,10 @@ export const de_CreateFindingsReportCommand = async (output, context) => {
|
|
|
912
906
|
$metadata: deserializeMetadata(output),
|
|
913
907
|
});
|
|
914
908
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
}
|
|
909
|
+
const doc = take(data, {
|
|
910
|
+
reportId: __expectString,
|
|
911
|
+
});
|
|
912
|
+
Object.assign(contents, doc);
|
|
918
913
|
return contents;
|
|
919
914
|
};
|
|
920
915
|
const de_CreateFindingsReportCommandError = async (output, context) => {
|
|
@@ -941,10 +936,9 @@ const de_CreateFindingsReportCommandError = async (output, context) => {
|
|
|
941
936
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
942
937
|
default:
|
|
943
938
|
const parsedBody = parsedOutput.body;
|
|
944
|
-
throwDefaultError({
|
|
939
|
+
return throwDefaultError({
|
|
945
940
|
output,
|
|
946
941
|
parsedBody,
|
|
947
|
-
exceptionCtor: __BaseException,
|
|
948
942
|
errorCode,
|
|
949
943
|
});
|
|
950
944
|
}
|
|
@@ -957,9 +951,10 @@ export const de_DeleteFilterCommand = async (output, context) => {
|
|
|
957
951
|
$metadata: deserializeMetadata(output),
|
|
958
952
|
});
|
|
959
953
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}
|
|
954
|
+
const doc = take(data, {
|
|
955
|
+
arn: __expectString,
|
|
956
|
+
});
|
|
957
|
+
Object.assign(contents, doc);
|
|
963
958
|
return contents;
|
|
964
959
|
};
|
|
965
960
|
const de_DeleteFilterCommandError = async (output, context) => {
|
|
@@ -986,10 +981,9 @@ const de_DeleteFilterCommandError = async (output, context) => {
|
|
|
986
981
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
987
982
|
default:
|
|
988
983
|
const parsedBody = parsedOutput.body;
|
|
989
|
-
throwDefaultError({
|
|
984
|
+
return throwDefaultError({
|
|
990
985
|
output,
|
|
991
986
|
parsedBody,
|
|
992
|
-
exceptionCtor: __BaseException,
|
|
993
987
|
errorCode,
|
|
994
988
|
});
|
|
995
989
|
}
|
|
@@ -1002,12 +996,11 @@ export const de_DescribeOrganizationConfigurationCommand = async (output, contex
|
|
|
1002
996
|
$metadata: deserializeMetadata(output),
|
|
1003
997
|
});
|
|
1004
998
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
}
|
|
999
|
+
const doc = take(data, {
|
|
1000
|
+
autoEnable: _json,
|
|
1001
|
+
maxAccountLimitReached: __expectBoolean,
|
|
1002
|
+
});
|
|
1003
|
+
Object.assign(contents, doc);
|
|
1011
1004
|
return contents;
|
|
1012
1005
|
};
|
|
1013
1006
|
const de_DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
@@ -1031,10 +1024,9 @@ const de_DescribeOrganizationConfigurationCommandError = async (output, context)
|
|
|
1031
1024
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1032
1025
|
default:
|
|
1033
1026
|
const parsedBody = parsedOutput.body;
|
|
1034
|
-
throwDefaultError({
|
|
1027
|
+
return throwDefaultError({
|
|
1035
1028
|
output,
|
|
1036
1029
|
parsedBody,
|
|
1037
|
-
exceptionCtor: __BaseException,
|
|
1038
1030
|
errorCode,
|
|
1039
1031
|
});
|
|
1040
1032
|
}
|
|
@@ -1047,12 +1039,11 @@ export const de_DisableCommand = async (output, context) => {
|
|
|
1047
1039
|
$metadata: deserializeMetadata(output),
|
|
1048
1040
|
});
|
|
1049
1041
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
}
|
|
1042
|
+
const doc = take(data, {
|
|
1043
|
+
accounts: _json,
|
|
1044
|
+
failedAccounts: _json,
|
|
1045
|
+
});
|
|
1046
|
+
Object.assign(contents, doc);
|
|
1056
1047
|
return contents;
|
|
1057
1048
|
};
|
|
1058
1049
|
const de_DisableCommandError = async (output, context) => {
|
|
@@ -1079,10 +1070,9 @@ const de_DisableCommandError = async (output, context) => {
|
|
|
1079
1070
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1080
1071
|
default:
|
|
1081
1072
|
const parsedBody = parsedOutput.body;
|
|
1082
|
-
throwDefaultError({
|
|
1073
|
+
return throwDefaultError({
|
|
1083
1074
|
output,
|
|
1084
1075
|
parsedBody,
|
|
1085
|
-
exceptionCtor: __BaseException,
|
|
1086
1076
|
errorCode,
|
|
1087
1077
|
});
|
|
1088
1078
|
}
|
|
@@ -1095,9 +1085,10 @@ export const de_DisableDelegatedAdminAccountCommand = async (output, context) =>
|
|
|
1095
1085
|
$metadata: deserializeMetadata(output),
|
|
1096
1086
|
});
|
|
1097
1087
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
}
|
|
1088
|
+
const doc = take(data, {
|
|
1089
|
+
delegatedAdminAccountId: __expectString,
|
|
1090
|
+
});
|
|
1091
|
+
Object.assign(contents, doc);
|
|
1101
1092
|
return contents;
|
|
1102
1093
|
};
|
|
1103
1094
|
const de_DisableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
@@ -1127,10 +1118,9 @@ const de_DisableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1127
1118
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1128
1119
|
default:
|
|
1129
1120
|
const parsedBody = parsedOutput.body;
|
|
1130
|
-
throwDefaultError({
|
|
1121
|
+
return throwDefaultError({
|
|
1131
1122
|
output,
|
|
1132
1123
|
parsedBody,
|
|
1133
|
-
exceptionCtor: __BaseException,
|
|
1134
1124
|
errorCode,
|
|
1135
1125
|
});
|
|
1136
1126
|
}
|
|
@@ -1143,9 +1133,10 @@ export const de_DisassociateMemberCommand = async (output, context) => {
|
|
|
1143
1133
|
$metadata: deserializeMetadata(output),
|
|
1144
1134
|
});
|
|
1145
1135
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
}
|
|
1136
|
+
const doc = take(data, {
|
|
1137
|
+
accountId: __expectString,
|
|
1138
|
+
});
|
|
1139
|
+
Object.assign(contents, doc);
|
|
1149
1140
|
return contents;
|
|
1150
1141
|
};
|
|
1151
1142
|
const de_DisassociateMemberCommandError = async (output, context) => {
|
|
@@ -1169,10 +1160,9 @@ const de_DisassociateMemberCommandError = async (output, context) => {
|
|
|
1169
1160
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1170
1161
|
default:
|
|
1171
1162
|
const parsedBody = parsedOutput.body;
|
|
1172
|
-
throwDefaultError({
|
|
1163
|
+
return throwDefaultError({
|
|
1173
1164
|
output,
|
|
1174
1165
|
parsedBody,
|
|
1175
|
-
exceptionCtor: __BaseException,
|
|
1176
1166
|
errorCode,
|
|
1177
1167
|
});
|
|
1178
1168
|
}
|
|
@@ -1185,12 +1175,11 @@ export const de_EnableCommand = async (output, context) => {
|
|
|
1185
1175
|
$metadata: deserializeMetadata(output),
|
|
1186
1176
|
});
|
|
1187
1177
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
}
|
|
1178
|
+
const doc = take(data, {
|
|
1179
|
+
accounts: _json,
|
|
1180
|
+
failedAccounts: _json,
|
|
1181
|
+
});
|
|
1182
|
+
Object.assign(contents, doc);
|
|
1194
1183
|
return contents;
|
|
1195
1184
|
};
|
|
1196
1185
|
const de_EnableCommandError = async (output, context) => {
|
|
@@ -1217,10 +1206,9 @@ const de_EnableCommandError = async (output, context) => {
|
|
|
1217
1206
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1218
1207
|
default:
|
|
1219
1208
|
const parsedBody = parsedOutput.body;
|
|
1220
|
-
throwDefaultError({
|
|
1209
|
+
return throwDefaultError({
|
|
1221
1210
|
output,
|
|
1222
1211
|
parsedBody,
|
|
1223
|
-
exceptionCtor: __BaseException,
|
|
1224
1212
|
errorCode,
|
|
1225
1213
|
});
|
|
1226
1214
|
}
|
|
@@ -1233,9 +1221,10 @@ export const de_EnableDelegatedAdminAccountCommand = async (output, context) =>
|
|
|
1233
1221
|
$metadata: deserializeMetadata(output),
|
|
1234
1222
|
});
|
|
1235
1223
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
}
|
|
1224
|
+
const doc = take(data, {
|
|
1225
|
+
delegatedAdminAccountId: __expectString,
|
|
1226
|
+
});
|
|
1227
|
+
Object.assign(contents, doc);
|
|
1239
1228
|
return contents;
|
|
1240
1229
|
};
|
|
1241
1230
|
const de_EnableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
@@ -1265,10 +1254,9 @@ const de_EnableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1265
1254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1266
1255
|
default:
|
|
1267
1256
|
const parsedBody = parsedOutput.body;
|
|
1268
|
-
throwDefaultError({
|
|
1257
|
+
return throwDefaultError({
|
|
1269
1258
|
output,
|
|
1270
1259
|
parsedBody,
|
|
1271
|
-
exceptionCtor: __BaseException,
|
|
1272
1260
|
errorCode,
|
|
1273
1261
|
});
|
|
1274
1262
|
}
|
|
@@ -1281,9 +1269,10 @@ export const de_GetConfigurationCommand = async (output, context) => {
|
|
|
1281
1269
|
$metadata: deserializeMetadata(output),
|
|
1282
1270
|
});
|
|
1283
1271
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1272
|
+
const doc = take(data, {
|
|
1273
|
+
ecrConfiguration: (_) => de_EcrConfigurationState(_, context),
|
|
1274
|
+
});
|
|
1275
|
+
Object.assign(contents, doc);
|
|
1287
1276
|
return contents;
|
|
1288
1277
|
};
|
|
1289
1278
|
const de_GetConfigurationCommandError = async (output, context) => {
|
|
@@ -1304,10 +1293,9 @@ const de_GetConfigurationCommandError = async (output, context) => {
|
|
|
1304
1293
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1305
1294
|
default:
|
|
1306
1295
|
const parsedBody = parsedOutput.body;
|
|
1307
|
-
throwDefaultError({
|
|
1296
|
+
return throwDefaultError({
|
|
1308
1297
|
output,
|
|
1309
1298
|
parsedBody,
|
|
1310
|
-
exceptionCtor: __BaseException,
|
|
1311
1299
|
errorCode,
|
|
1312
1300
|
});
|
|
1313
1301
|
}
|
|
@@ -1320,9 +1308,10 @@ export const de_GetDelegatedAdminAccountCommand = async (output, context) => {
|
|
|
1320
1308
|
$metadata: deserializeMetadata(output),
|
|
1321
1309
|
});
|
|
1322
1310
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
}
|
|
1311
|
+
const doc = take(data, {
|
|
1312
|
+
delegatedAdmin: _json,
|
|
1313
|
+
});
|
|
1314
|
+
Object.assign(contents, doc);
|
|
1326
1315
|
return contents;
|
|
1327
1316
|
};
|
|
1328
1317
|
const de_GetDelegatedAdminAccountCommandError = async (output, context) => {
|
|
@@ -1349,10 +1338,9 @@ const de_GetDelegatedAdminAccountCommandError = async (output, context) => {
|
|
|
1349
1338
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1350
1339
|
default:
|
|
1351
1340
|
const parsedBody = parsedOutput.body;
|
|
1352
|
-
throwDefaultError({
|
|
1341
|
+
return throwDefaultError({
|
|
1353
1342
|
output,
|
|
1354
1343
|
parsedBody,
|
|
1355
|
-
exceptionCtor: __BaseException,
|
|
1356
1344
|
errorCode,
|
|
1357
1345
|
});
|
|
1358
1346
|
}
|
|
@@ -1365,24 +1353,15 @@ export const de_GetFindingsReportStatusCommand = async (output, context) => {
|
|
|
1365
1353
|
$metadata: deserializeMetadata(output),
|
|
1366
1354
|
});
|
|
1367
1355
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
if (data.filterCriteria != null) {
|
|
1378
|
-
contents.filterCriteria = de_FilterCriteria(data.filterCriteria, context);
|
|
1379
|
-
}
|
|
1380
|
-
if (data.reportId != null) {
|
|
1381
|
-
contents.reportId = __expectString(data.reportId);
|
|
1382
|
-
}
|
|
1383
|
-
if (data.status != null) {
|
|
1384
|
-
contents.status = __expectString(data.status);
|
|
1385
|
-
}
|
|
1356
|
+
const doc = take(data, {
|
|
1357
|
+
destination: _json,
|
|
1358
|
+
errorCode: __expectString,
|
|
1359
|
+
errorMessage: __expectString,
|
|
1360
|
+
filterCriteria: (_) => de_FilterCriteria(_, context),
|
|
1361
|
+
reportId: __expectString,
|
|
1362
|
+
status: __expectString,
|
|
1363
|
+
});
|
|
1364
|
+
Object.assign(contents, doc);
|
|
1386
1365
|
return contents;
|
|
1387
1366
|
};
|
|
1388
1367
|
const de_GetFindingsReportStatusCommandError = async (output, context) => {
|
|
@@ -1409,10 +1388,9 @@ const de_GetFindingsReportStatusCommandError = async (output, context) => {
|
|
|
1409
1388
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1410
1389
|
default:
|
|
1411
1390
|
const parsedBody = parsedOutput.body;
|
|
1412
|
-
throwDefaultError({
|
|
1391
|
+
return throwDefaultError({
|
|
1413
1392
|
output,
|
|
1414
1393
|
parsedBody,
|
|
1415
|
-
exceptionCtor: __BaseException,
|
|
1416
1394
|
errorCode,
|
|
1417
1395
|
});
|
|
1418
1396
|
}
|
|
@@ -1425,9 +1403,10 @@ export const de_GetMemberCommand = async (output, context) => {
|
|
|
1425
1403
|
$metadata: deserializeMetadata(output),
|
|
1426
1404
|
});
|
|
1427
1405
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
}
|
|
1406
|
+
const doc = take(data, {
|
|
1407
|
+
member: (_) => de_Member(_, context),
|
|
1408
|
+
});
|
|
1409
|
+
Object.assign(contents, doc);
|
|
1431
1410
|
return contents;
|
|
1432
1411
|
};
|
|
1433
1412
|
const de_GetMemberCommandError = async (output, context) => {
|
|
@@ -1454,10 +1433,9 @@ const de_GetMemberCommandError = async (output, context) => {
|
|
|
1454
1433
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1455
1434
|
default:
|
|
1456
1435
|
const parsedBody = parsedOutput.body;
|
|
1457
|
-
throwDefaultError({
|
|
1436
|
+
return throwDefaultError({
|
|
1458
1437
|
output,
|
|
1459
1438
|
parsedBody,
|
|
1460
|
-
exceptionCtor: __BaseException,
|
|
1461
1439
|
errorCode,
|
|
1462
1440
|
});
|
|
1463
1441
|
}
|
|
@@ -1470,12 +1448,11 @@ export const de_ListAccountPermissionsCommand = async (output, context) => {
|
|
|
1470
1448
|
$metadata: deserializeMetadata(output),
|
|
1471
1449
|
});
|
|
1472
1450
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
}
|
|
1451
|
+
const doc = take(data, {
|
|
1452
|
+
nextToken: __expectString,
|
|
1453
|
+
permissions: _json,
|
|
1454
|
+
});
|
|
1455
|
+
Object.assign(contents, doc);
|
|
1479
1456
|
return contents;
|
|
1480
1457
|
};
|
|
1481
1458
|
const de_ListAccountPermissionsCommandError = async (output, context) => {
|
|
@@ -1499,10 +1476,9 @@ const de_ListAccountPermissionsCommandError = async (output, context) => {
|
|
|
1499
1476
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1500
1477
|
default:
|
|
1501
1478
|
const parsedBody = parsedOutput.body;
|
|
1502
|
-
throwDefaultError({
|
|
1479
|
+
return throwDefaultError({
|
|
1503
1480
|
output,
|
|
1504
1481
|
parsedBody,
|
|
1505
|
-
exceptionCtor: __BaseException,
|
|
1506
1482
|
errorCode,
|
|
1507
1483
|
});
|
|
1508
1484
|
}
|
|
@@ -1515,12 +1491,11 @@ export const de_ListCoverageCommand = async (output, context) => {
|
|
|
1515
1491
|
$metadata: deserializeMetadata(output),
|
|
1516
1492
|
});
|
|
1517
1493
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
}
|
|
1494
|
+
const doc = take(data, {
|
|
1495
|
+
coveredResources: _json,
|
|
1496
|
+
nextToken: __expectString,
|
|
1497
|
+
});
|
|
1498
|
+
Object.assign(contents, doc);
|
|
1524
1499
|
return contents;
|
|
1525
1500
|
};
|
|
1526
1501
|
const de_ListCoverageCommandError = async (output, context) => {
|
|
@@ -1541,10 +1516,9 @@ const de_ListCoverageCommandError = async (output, context) => {
|
|
|
1541
1516
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1542
1517
|
default:
|
|
1543
1518
|
const parsedBody = parsedOutput.body;
|
|
1544
|
-
throwDefaultError({
|
|
1519
|
+
return throwDefaultError({
|
|
1545
1520
|
output,
|
|
1546
1521
|
parsedBody,
|
|
1547
|
-
exceptionCtor: __BaseException,
|
|
1548
1522
|
errorCode,
|
|
1549
1523
|
});
|
|
1550
1524
|
}
|
|
@@ -1557,15 +1531,12 @@ export const de_ListCoverageStatisticsCommand = async (output, context) => {
|
|
|
1557
1531
|
$metadata: deserializeMetadata(output),
|
|
1558
1532
|
});
|
|
1559
1533
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
if (data.totalCounts != null) {
|
|
1567
|
-
contents.totalCounts = __expectLong(data.totalCounts);
|
|
1568
|
-
}
|
|
1534
|
+
const doc = take(data, {
|
|
1535
|
+
countsByGroup: _json,
|
|
1536
|
+
nextToken: __expectString,
|
|
1537
|
+
totalCounts: __expectLong,
|
|
1538
|
+
});
|
|
1539
|
+
Object.assign(contents, doc);
|
|
1569
1540
|
return contents;
|
|
1570
1541
|
};
|
|
1571
1542
|
const de_ListCoverageStatisticsCommandError = async (output, context) => {
|
|
@@ -1586,10 +1557,9 @@ const de_ListCoverageStatisticsCommandError = async (output, context) => {
|
|
|
1586
1557
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1587
1558
|
default:
|
|
1588
1559
|
const parsedBody = parsedOutput.body;
|
|
1589
|
-
throwDefaultError({
|
|
1560
|
+
return throwDefaultError({
|
|
1590
1561
|
output,
|
|
1591
1562
|
parsedBody,
|
|
1592
|
-
exceptionCtor: __BaseException,
|
|
1593
1563
|
errorCode,
|
|
1594
1564
|
});
|
|
1595
1565
|
}
|
|
@@ -1602,12 +1572,11 @@ export const de_ListDelegatedAdminAccountsCommand = async (output, context) => {
|
|
|
1602
1572
|
$metadata: deserializeMetadata(output),
|
|
1603
1573
|
});
|
|
1604
1574
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
}
|
|
1575
|
+
const doc = take(data, {
|
|
1576
|
+
delegatedAdminAccounts: _json,
|
|
1577
|
+
nextToken: __expectString,
|
|
1578
|
+
});
|
|
1579
|
+
Object.assign(contents, doc);
|
|
1611
1580
|
return contents;
|
|
1612
1581
|
};
|
|
1613
1582
|
const de_ListDelegatedAdminAccountsCommandError = async (output, context) => {
|
|
@@ -1631,10 +1600,9 @@ const de_ListDelegatedAdminAccountsCommandError = async (output, context) => {
|
|
|
1631
1600
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1632
1601
|
default:
|
|
1633
1602
|
const parsedBody = parsedOutput.body;
|
|
1634
|
-
throwDefaultError({
|
|
1603
|
+
return throwDefaultError({
|
|
1635
1604
|
output,
|
|
1636
1605
|
parsedBody,
|
|
1637
|
-
exceptionCtor: __BaseException,
|
|
1638
1606
|
errorCode,
|
|
1639
1607
|
});
|
|
1640
1608
|
}
|
|
@@ -1647,12 +1615,11 @@ export const de_ListFiltersCommand = async (output, context) => {
|
|
|
1647
1615
|
$metadata: deserializeMetadata(output),
|
|
1648
1616
|
});
|
|
1649
1617
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
}
|
|
1618
|
+
const doc = take(data, {
|
|
1619
|
+
filters: (_) => de_FilterList(_, context),
|
|
1620
|
+
nextToken: __expectString,
|
|
1621
|
+
});
|
|
1622
|
+
Object.assign(contents, doc);
|
|
1656
1623
|
return contents;
|
|
1657
1624
|
};
|
|
1658
1625
|
const de_ListFiltersCommandError = async (output, context) => {
|
|
@@ -1676,10 +1643,9 @@ const de_ListFiltersCommandError = async (output, context) => {
|
|
|
1676
1643
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1677
1644
|
default:
|
|
1678
1645
|
const parsedBody = parsedOutput.body;
|
|
1679
|
-
throwDefaultError({
|
|
1646
|
+
return throwDefaultError({
|
|
1680
1647
|
output,
|
|
1681
1648
|
parsedBody,
|
|
1682
|
-
exceptionCtor: __BaseException,
|
|
1683
1649
|
errorCode,
|
|
1684
1650
|
});
|
|
1685
1651
|
}
|
|
@@ -1692,15 +1658,12 @@ export const de_ListFindingAggregationsCommand = async (output, context) => {
|
|
|
1692
1658
|
$metadata: deserializeMetadata(output),
|
|
1693
1659
|
});
|
|
1694
1660
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
if (data.responses != null) {
|
|
1702
|
-
contents.responses = de_AggregationResponseList(data.responses, context);
|
|
1703
|
-
}
|
|
1661
|
+
const doc = take(data, {
|
|
1662
|
+
aggregationType: __expectString,
|
|
1663
|
+
nextToken: __expectString,
|
|
1664
|
+
responses: (_) => de_AggregationResponseList(_, context),
|
|
1665
|
+
});
|
|
1666
|
+
Object.assign(contents, doc);
|
|
1704
1667
|
return contents;
|
|
1705
1668
|
};
|
|
1706
1669
|
const de_ListFindingAggregationsCommandError = async (output, context) => {
|
|
@@ -1721,10 +1684,9 @@ const de_ListFindingAggregationsCommandError = async (output, context) => {
|
|
|
1721
1684
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1722
1685
|
default:
|
|
1723
1686
|
const parsedBody = parsedOutput.body;
|
|
1724
|
-
throwDefaultError({
|
|
1687
|
+
return throwDefaultError({
|
|
1725
1688
|
output,
|
|
1726
1689
|
parsedBody,
|
|
1727
|
-
exceptionCtor: __BaseException,
|
|
1728
1690
|
errorCode,
|
|
1729
1691
|
});
|
|
1730
1692
|
}
|
|
@@ -1737,12 +1699,11 @@ export const de_ListFindingsCommand = async (output, context) => {
|
|
|
1737
1699
|
$metadata: deserializeMetadata(output),
|
|
1738
1700
|
});
|
|
1739
1701
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
}
|
|
1702
|
+
const doc = take(data, {
|
|
1703
|
+
findings: (_) => de_FindingList(_, context),
|
|
1704
|
+
nextToken: __expectString,
|
|
1705
|
+
});
|
|
1706
|
+
Object.assign(contents, doc);
|
|
1746
1707
|
return contents;
|
|
1747
1708
|
};
|
|
1748
1709
|
const de_ListFindingsCommandError = async (output, context) => {
|
|
@@ -1763,10 +1724,9 @@ const de_ListFindingsCommandError = async (output, context) => {
|
|
|
1763
1724
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1764
1725
|
default:
|
|
1765
1726
|
const parsedBody = parsedOutput.body;
|
|
1766
|
-
throwDefaultError({
|
|
1727
|
+
return throwDefaultError({
|
|
1767
1728
|
output,
|
|
1768
1729
|
parsedBody,
|
|
1769
|
-
exceptionCtor: __BaseException,
|
|
1770
1730
|
errorCode,
|
|
1771
1731
|
});
|
|
1772
1732
|
}
|
|
@@ -1779,12 +1739,11 @@ export const de_ListMembersCommand = async (output, context) => {
|
|
|
1779
1739
|
$metadata: deserializeMetadata(output),
|
|
1780
1740
|
});
|
|
1781
1741
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
}
|
|
1742
|
+
const doc = take(data, {
|
|
1743
|
+
members: (_) => de_MemberList(_, context),
|
|
1744
|
+
nextToken: __expectString,
|
|
1745
|
+
});
|
|
1746
|
+
Object.assign(contents, doc);
|
|
1788
1747
|
return contents;
|
|
1789
1748
|
};
|
|
1790
1749
|
const de_ListMembersCommandError = async (output, context) => {
|
|
@@ -1808,10 +1767,9 @@ const de_ListMembersCommandError = async (output, context) => {
|
|
|
1808
1767
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1809
1768
|
default:
|
|
1810
1769
|
const parsedBody = parsedOutput.body;
|
|
1811
|
-
throwDefaultError({
|
|
1770
|
+
return throwDefaultError({
|
|
1812
1771
|
output,
|
|
1813
1772
|
parsedBody,
|
|
1814
|
-
exceptionCtor: __BaseException,
|
|
1815
1773
|
errorCode,
|
|
1816
1774
|
});
|
|
1817
1775
|
}
|
|
@@ -1824,9 +1782,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1824
1782
|
$metadata: deserializeMetadata(output),
|
|
1825
1783
|
});
|
|
1826
1784
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
}
|
|
1785
|
+
const doc = take(data, {
|
|
1786
|
+
tags: _json,
|
|
1787
|
+
});
|
|
1788
|
+
Object.assign(contents, doc);
|
|
1830
1789
|
return contents;
|
|
1831
1790
|
};
|
|
1832
1791
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1850,10 +1809,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1850
1809
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1851
1810
|
default:
|
|
1852
1811
|
const parsedBody = parsedOutput.body;
|
|
1853
|
-
throwDefaultError({
|
|
1812
|
+
return throwDefaultError({
|
|
1854
1813
|
output,
|
|
1855
1814
|
parsedBody,
|
|
1856
|
-
exceptionCtor: __BaseException,
|
|
1857
1815
|
errorCode,
|
|
1858
1816
|
});
|
|
1859
1817
|
}
|
|
@@ -1866,12 +1824,11 @@ export const de_ListUsageTotalsCommand = async (output, context) => {
|
|
|
1866
1824
|
$metadata: deserializeMetadata(output),
|
|
1867
1825
|
});
|
|
1868
1826
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
}
|
|
1827
|
+
const doc = take(data, {
|
|
1828
|
+
nextToken: __expectString,
|
|
1829
|
+
totals: (_) => de_UsageTotalList(_, context),
|
|
1830
|
+
});
|
|
1831
|
+
Object.assign(contents, doc);
|
|
1875
1832
|
return contents;
|
|
1876
1833
|
};
|
|
1877
1834
|
const de_ListUsageTotalsCommandError = async (output, context) => {
|
|
@@ -1895,10 +1852,9 @@ const de_ListUsageTotalsCommandError = async (output, context) => {
|
|
|
1895
1852
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1896
1853
|
default:
|
|
1897
1854
|
const parsedBody = parsedOutput.body;
|
|
1898
|
-
throwDefaultError({
|
|
1855
|
+
return throwDefaultError({
|
|
1899
1856
|
output,
|
|
1900
1857
|
parsedBody,
|
|
1901
|
-
exceptionCtor: __BaseException,
|
|
1902
1858
|
errorCode,
|
|
1903
1859
|
});
|
|
1904
1860
|
}
|
|
@@ -1937,10 +1893,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1937
1893
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1938
1894
|
default:
|
|
1939
1895
|
const parsedBody = parsedOutput.body;
|
|
1940
|
-
throwDefaultError({
|
|
1896
|
+
return throwDefaultError({
|
|
1941
1897
|
output,
|
|
1942
1898
|
parsedBody,
|
|
1943
|
-
exceptionCtor: __BaseException,
|
|
1944
1899
|
errorCode,
|
|
1945
1900
|
});
|
|
1946
1901
|
}
|
|
@@ -1976,10 +1931,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1976
1931
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1977
1932
|
default:
|
|
1978
1933
|
const parsedBody = parsedOutput.body;
|
|
1979
|
-
throwDefaultError({
|
|
1934
|
+
return throwDefaultError({
|
|
1980
1935
|
output,
|
|
1981
1936
|
parsedBody,
|
|
1982
|
-
exceptionCtor: __BaseException,
|
|
1983
1937
|
errorCode,
|
|
1984
1938
|
});
|
|
1985
1939
|
}
|
|
@@ -2015,10 +1969,9 @@ const de_UpdateConfigurationCommandError = async (output, context) => {
|
|
|
2015
1969
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2016
1970
|
default:
|
|
2017
1971
|
const parsedBody = parsedOutput.body;
|
|
2018
|
-
throwDefaultError({
|
|
1972
|
+
return throwDefaultError({
|
|
2019
1973
|
output,
|
|
2020
1974
|
parsedBody,
|
|
2021
|
-
exceptionCtor: __BaseException,
|
|
2022
1975
|
errorCode,
|
|
2023
1976
|
});
|
|
2024
1977
|
}
|
|
@@ -2031,9 +1984,10 @@ export const de_UpdateFilterCommand = async (output, context) => {
|
|
|
2031
1984
|
$metadata: deserializeMetadata(output),
|
|
2032
1985
|
});
|
|
2033
1986
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
}
|
|
1987
|
+
const doc = take(data, {
|
|
1988
|
+
arn: __expectString,
|
|
1989
|
+
});
|
|
1990
|
+
Object.assign(contents, doc);
|
|
2037
1991
|
return contents;
|
|
2038
1992
|
};
|
|
2039
1993
|
const de_UpdateFilterCommandError = async (output, context) => {
|
|
@@ -2060,10 +2014,9 @@ const de_UpdateFilterCommandError = async (output, context) => {
|
|
|
2060
2014
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2061
2015
|
default:
|
|
2062
2016
|
const parsedBody = parsedOutput.body;
|
|
2063
|
-
throwDefaultError({
|
|
2017
|
+
return throwDefaultError({
|
|
2064
2018
|
output,
|
|
2065
2019
|
parsedBody,
|
|
2066
|
-
exceptionCtor: __BaseException,
|
|
2067
2020
|
errorCode,
|
|
2068
2021
|
});
|
|
2069
2022
|
}
|
|
@@ -2076,9 +2029,10 @@ export const de_UpdateOrganizationConfigurationCommand = async (output, context)
|
|
|
2076
2029
|
$metadata: deserializeMetadata(output),
|
|
2077
2030
|
});
|
|
2078
2031
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
}
|
|
2032
|
+
const doc = take(data, {
|
|
2033
|
+
autoEnable: _json,
|
|
2034
|
+
});
|
|
2035
|
+
Object.assign(contents, doc);
|
|
2082
2036
|
return contents;
|
|
2083
2037
|
};
|
|
2084
2038
|
const de_UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
@@ -2102,21 +2056,21 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
|
|
|
2102
2056
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2103
2057
|
default:
|
|
2104
2058
|
const parsedBody = parsedOutput.body;
|
|
2105
|
-
throwDefaultError({
|
|
2059
|
+
return throwDefaultError({
|
|
2106
2060
|
output,
|
|
2107
2061
|
parsedBody,
|
|
2108
|
-
exceptionCtor: __BaseException,
|
|
2109
2062
|
errorCode,
|
|
2110
2063
|
});
|
|
2111
2064
|
}
|
|
2112
2065
|
};
|
|
2113
|
-
const
|
|
2066
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2114
2067
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2115
2068
|
const contents = map({});
|
|
2116
2069
|
const data = parsedOutput.body;
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
}
|
|
2070
|
+
const doc = take(data, {
|
|
2071
|
+
message: __expectString,
|
|
2072
|
+
});
|
|
2073
|
+
Object.assign(contents, doc);
|
|
2120
2074
|
const exception = new AccessDeniedException({
|
|
2121
2075
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2122
2076
|
...contents,
|
|
@@ -2126,9 +2080,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2126
2080
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2127
2081
|
const contents = map({});
|
|
2128
2082
|
const data = parsedOutput.body;
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
}
|
|
2083
|
+
const doc = take(data, {
|
|
2084
|
+
message: __expectString,
|
|
2085
|
+
});
|
|
2086
|
+
Object.assign(contents, doc);
|
|
2132
2087
|
const exception = new BadRequestException({
|
|
2133
2088
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2134
2089
|
...contents,
|
|
@@ -2138,15 +2093,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2138
2093
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2139
2094
|
const contents = map({});
|
|
2140
2095
|
const data = parsedOutput.body;
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
if (data.resourceType != null) {
|
|
2148
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
2149
|
-
}
|
|
2096
|
+
const doc = take(data, {
|
|
2097
|
+
message: __expectString,
|
|
2098
|
+
resourceId: __expectString,
|
|
2099
|
+
resourceType: __expectString,
|
|
2100
|
+
});
|
|
2101
|
+
Object.assign(contents, doc);
|
|
2150
2102
|
const exception = new ConflictException({
|
|
2151
2103
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2152
2104
|
...contents,
|
|
@@ -2161,9 +2113,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2161
2113
|
],
|
|
2162
2114
|
});
|
|
2163
2115
|
const data = parsedOutput.body;
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
}
|
|
2116
|
+
const doc = take(data, {
|
|
2117
|
+
message: __expectString,
|
|
2118
|
+
});
|
|
2119
|
+
Object.assign(contents, doc);
|
|
2167
2120
|
const exception = new InternalServerException({
|
|
2168
2121
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2169
2122
|
...contents,
|
|
@@ -2173,9 +2126,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2173
2126
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2174
2127
|
const contents = map({});
|
|
2175
2128
|
const data = parsedOutput.body;
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
}
|
|
2129
|
+
const doc = take(data, {
|
|
2130
|
+
message: __expectString,
|
|
2131
|
+
});
|
|
2132
|
+
Object.assign(contents, doc);
|
|
2179
2133
|
const exception = new ResourceNotFoundException({
|
|
2180
2134
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2181
2135
|
...contents,
|
|
@@ -2185,12 +2139,11 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2185
2139
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2186
2140
|
const contents = map({});
|
|
2187
2141
|
const data = parsedOutput.body;
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
}
|
|
2142
|
+
const doc = take(data, {
|
|
2143
|
+
message: __expectString,
|
|
2144
|
+
resourceId: __expectString,
|
|
2145
|
+
});
|
|
2146
|
+
Object.assign(contents, doc);
|
|
2194
2147
|
const exception = new ServiceQuotaExceededException({
|
|
2195
2148
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2196
2149
|
...contents,
|
|
@@ -2205,9 +2158,10 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2205
2158
|
],
|
|
2206
2159
|
});
|
|
2207
2160
|
const data = parsedOutput.body;
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
}
|
|
2161
|
+
const doc = take(data, {
|
|
2162
|
+
message: __expectString,
|
|
2163
|
+
});
|
|
2164
|
+
Object.assign(contents, doc);
|
|
2211
2165
|
const exception = new ThrottlingException({
|
|
2212
2166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2213
2167
|
...contents,
|
|
@@ -2217,137 +2171,23 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2217
2171
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2218
2172
|
const contents = map({});
|
|
2219
2173
|
const data = parsedOutput.body;
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
if (data.reason != null) {
|
|
2227
|
-
contents.reason = __expectString(data.reason);
|
|
2228
|
-
}
|
|
2174
|
+
const doc = take(data, {
|
|
2175
|
+
fields: _json,
|
|
2176
|
+
message: __expectString,
|
|
2177
|
+
reason: __expectString,
|
|
2178
|
+
});
|
|
2179
|
+
Object.assign(contents, doc);
|
|
2229
2180
|
const exception = new ValidationException({
|
|
2230
2181
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2231
2182
|
...contents,
|
|
2232
2183
|
});
|
|
2233
2184
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2234
2185
|
};
|
|
2235
|
-
const se_AccountAggregation = (input, context) => {
|
|
2236
|
-
return {
|
|
2237
|
-
...(input.findingType != null && { findingType: input.findingType }),
|
|
2238
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2239
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2240
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2241
|
-
};
|
|
2242
|
-
};
|
|
2243
|
-
const se_AccountIdSet = (input, context) => {
|
|
2244
|
-
return input
|
|
2245
|
-
.filter((e) => e != null)
|
|
2246
|
-
.map((entry) => {
|
|
2247
|
-
return entry;
|
|
2248
|
-
});
|
|
2249
|
-
};
|
|
2250
|
-
const se_AggregationRequest = (input, context) => {
|
|
2251
|
-
return AggregationRequest.visit(input, {
|
|
2252
|
-
accountAggregation: (value) => ({ accountAggregation: se_AccountAggregation(value, context) }),
|
|
2253
|
-
amiAggregation: (value) => ({ amiAggregation: se_AmiAggregation(value, context) }),
|
|
2254
|
-
awsEcrContainerAggregation: (value) => ({
|
|
2255
|
-
awsEcrContainerAggregation: se_AwsEcrContainerAggregation(value, context),
|
|
2256
|
-
}),
|
|
2257
|
-
ec2InstanceAggregation: (value) => ({ ec2InstanceAggregation: se_Ec2InstanceAggregation(value, context) }),
|
|
2258
|
-
findingTypeAggregation: (value) => ({ findingTypeAggregation: se_FindingTypeAggregation(value, context) }),
|
|
2259
|
-
imageLayerAggregation: (value) => ({ imageLayerAggregation: se_ImageLayerAggregation(value, context) }),
|
|
2260
|
-
lambdaFunctionAggregation: (value) => ({ lambdaFunctionAggregation: se_LambdaFunctionAggregation(value, context) }),
|
|
2261
|
-
lambdaLayerAggregation: (value) => ({ lambdaLayerAggregation: se_LambdaLayerAggregation(value, context) }),
|
|
2262
|
-
packageAggregation: (value) => ({ packageAggregation: se_PackageAggregation(value, context) }),
|
|
2263
|
-
repositoryAggregation: (value) => ({ repositoryAggregation: se_RepositoryAggregation(value, context) }),
|
|
2264
|
-
titleAggregation: (value) => ({ titleAggregation: se_TitleAggregation(value, context) }),
|
|
2265
|
-
_: (name, value) => ({ name: value }),
|
|
2266
|
-
});
|
|
2267
|
-
};
|
|
2268
|
-
const se_AmiAggregation = (input, context) => {
|
|
2269
|
-
return {
|
|
2270
|
-
...(input.amis != null && { amis: se_StringFilterList(input.amis, context) }),
|
|
2271
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2272
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2273
|
-
};
|
|
2274
|
-
};
|
|
2275
|
-
const se_AutoEnable = (input, context) => {
|
|
2276
|
-
return {
|
|
2277
|
-
...(input.ec2 != null && { ec2: input.ec2 }),
|
|
2278
|
-
...(input.ecr != null && { ecr: input.ecr }),
|
|
2279
|
-
...(input.lambda != null && { lambda: input.lambda }),
|
|
2280
|
-
};
|
|
2281
|
-
};
|
|
2282
|
-
const se_AwsEcrContainerAggregation = (input, context) => {
|
|
2283
|
-
return {
|
|
2284
|
-
...(input.architectures != null && { architectures: se_StringFilterList(input.architectures, context) }),
|
|
2285
|
-
...(input.imageShas != null && { imageShas: se_StringFilterList(input.imageShas, context) }),
|
|
2286
|
-
...(input.imageTags != null && { imageTags: se_StringFilterList(input.imageTags, context) }),
|
|
2287
|
-
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2288
|
-
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2289
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2290
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2291
|
-
};
|
|
2292
|
-
};
|
|
2293
|
-
const se_CoverageFilterCriteria = (input, context) => {
|
|
2294
|
-
return {
|
|
2295
|
-
...(input.accountId != null && { accountId: se_CoverageStringFilterList(input.accountId, context) }),
|
|
2296
|
-
...(input.ec2InstanceTags != null && { ec2InstanceTags: se_CoverageMapFilterList(input.ec2InstanceTags, context) }),
|
|
2297
|
-
...(input.ecrImageTags != null && { ecrImageTags: se_CoverageStringFilterList(input.ecrImageTags, context) }),
|
|
2298
|
-
...(input.ecrRepositoryName != null && {
|
|
2299
|
-
ecrRepositoryName: se_CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
2300
|
-
}),
|
|
2301
|
-
...(input.lambdaFunctionName != null && {
|
|
2302
|
-
lambdaFunctionName: se_CoverageStringFilterList(input.lambdaFunctionName, context),
|
|
2303
|
-
}),
|
|
2304
|
-
...(input.lambdaFunctionRuntime != null && {
|
|
2305
|
-
lambdaFunctionRuntime: se_CoverageStringFilterList(input.lambdaFunctionRuntime, context),
|
|
2306
|
-
}),
|
|
2307
|
-
...(input.lambdaFunctionTags != null && {
|
|
2308
|
-
lambdaFunctionTags: se_CoverageMapFilterList(input.lambdaFunctionTags, context),
|
|
2309
|
-
}),
|
|
2310
|
-
...(input.resourceId != null && { resourceId: se_CoverageStringFilterList(input.resourceId, context) }),
|
|
2311
|
-
...(input.resourceType != null && { resourceType: se_CoverageStringFilterList(input.resourceType, context) }),
|
|
2312
|
-
...(input.scanStatusCode != null && { scanStatusCode: se_CoverageStringFilterList(input.scanStatusCode, context) }),
|
|
2313
|
-
...(input.scanStatusReason != null && {
|
|
2314
|
-
scanStatusReason: se_CoverageStringFilterList(input.scanStatusReason, context),
|
|
2315
|
-
}),
|
|
2316
|
-
...(input.scanType != null && { scanType: se_CoverageStringFilterList(input.scanType, context) }),
|
|
2317
|
-
};
|
|
2318
|
-
};
|
|
2319
|
-
const se_CoverageMapFilter = (input, context) => {
|
|
2320
|
-
return {
|
|
2321
|
-
...(input.comparison != null && { comparison: input.comparison }),
|
|
2322
|
-
...(input.key != null && { key: input.key }),
|
|
2323
|
-
...(input.value != null && { value: input.value }),
|
|
2324
|
-
};
|
|
2325
|
-
};
|
|
2326
|
-
const se_CoverageMapFilterList = (input, context) => {
|
|
2327
|
-
return input
|
|
2328
|
-
.filter((e) => e != null)
|
|
2329
|
-
.map((entry) => {
|
|
2330
|
-
return se_CoverageMapFilter(entry, context);
|
|
2331
|
-
});
|
|
2332
|
-
};
|
|
2333
|
-
const se_CoverageStringFilter = (input, context) => {
|
|
2334
|
-
return {
|
|
2335
|
-
...(input.comparison != null && { comparison: input.comparison }),
|
|
2336
|
-
...(input.value != null && { value: input.value }),
|
|
2337
|
-
};
|
|
2338
|
-
};
|
|
2339
|
-
const se_CoverageStringFilterList = (input, context) => {
|
|
2340
|
-
return input
|
|
2341
|
-
.filter((e) => e != null)
|
|
2342
|
-
.map((entry) => {
|
|
2343
|
-
return se_CoverageStringFilter(entry, context);
|
|
2344
|
-
});
|
|
2345
|
-
};
|
|
2346
2186
|
const se_DateFilter = (input, context) => {
|
|
2347
|
-
return {
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
};
|
|
2187
|
+
return take(input, {
|
|
2188
|
+
endInclusive: (_) => Math.round(_.getTime() / 1000),
|
|
2189
|
+
startInclusive: (_) => Math.round(_.getTime() / 1000),
|
|
2190
|
+
});
|
|
2351
2191
|
};
|
|
2352
2192
|
const se_DateFilterList = (input, context) => {
|
|
2353
2193
|
return input
|
|
@@ -2356,177 +2196,53 @@ const se_DateFilterList = (input, context) => {
|
|
|
2356
2196
|
return se_DateFilter(entry, context);
|
|
2357
2197
|
});
|
|
2358
2198
|
};
|
|
2359
|
-
const se_Destination = (input, context) => {
|
|
2360
|
-
return {
|
|
2361
|
-
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
2362
|
-
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
2363
|
-
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
2364
|
-
};
|
|
2365
|
-
};
|
|
2366
|
-
const se_DisableResourceTypeList = (input, context) => {
|
|
2367
|
-
return input
|
|
2368
|
-
.filter((e) => e != null)
|
|
2369
|
-
.map((entry) => {
|
|
2370
|
-
return entry;
|
|
2371
|
-
});
|
|
2372
|
-
};
|
|
2373
|
-
const se_Ec2InstanceAggregation = (input, context) => {
|
|
2374
|
-
return {
|
|
2375
|
-
...(input.amis != null && { amis: se_StringFilterList(input.amis, context) }),
|
|
2376
|
-
...(input.instanceIds != null && { instanceIds: se_StringFilterList(input.instanceIds, context) }),
|
|
2377
|
-
...(input.instanceTags != null && { instanceTags: se_MapFilterList(input.instanceTags, context) }),
|
|
2378
|
-
...(input.operatingSystems != null && { operatingSystems: se_StringFilterList(input.operatingSystems, context) }),
|
|
2379
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2380
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2381
|
-
};
|
|
2382
|
-
};
|
|
2383
|
-
const se_EcrConfiguration = (input, context) => {
|
|
2384
|
-
return {
|
|
2385
|
-
...(input.rescanDuration != null && { rescanDuration: input.rescanDuration }),
|
|
2386
|
-
};
|
|
2387
|
-
};
|
|
2388
|
-
const se_EnableResourceTypeList = (input, context) => {
|
|
2389
|
-
return input
|
|
2390
|
-
.filter((e) => e != null)
|
|
2391
|
-
.map((entry) => {
|
|
2392
|
-
return entry;
|
|
2393
|
-
});
|
|
2394
|
-
};
|
|
2395
|
-
const se_FilterArnList = (input, context) => {
|
|
2396
|
-
return input
|
|
2397
|
-
.filter((e) => e != null)
|
|
2398
|
-
.map((entry) => {
|
|
2399
|
-
return entry;
|
|
2400
|
-
});
|
|
2401
|
-
};
|
|
2402
2199
|
const se_FilterCriteria = (input, context) => {
|
|
2403
|
-
return {
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
}),
|
|
2443
|
-
...(input.lambdaFunctionRuntime != null && {
|
|
2444
|
-
lambdaFunctionRuntime: se_StringFilterList(input.lambdaFunctionRuntime, context),
|
|
2445
|
-
}),
|
|
2446
|
-
...(input.lastObservedAt != null && { lastObservedAt: se_DateFilterList(input.lastObservedAt, context) }),
|
|
2447
|
-
...(input.networkProtocol != null && { networkProtocol: se_StringFilterList(input.networkProtocol, context) }),
|
|
2448
|
-
...(input.portRange != null && { portRange: se_PortRangeFilterList(input.portRange, context) }),
|
|
2449
|
-
...(input.relatedVulnerabilities != null && {
|
|
2450
|
-
relatedVulnerabilities: se_StringFilterList(input.relatedVulnerabilities, context),
|
|
2451
|
-
}),
|
|
2452
|
-
...(input.resourceId != null && { resourceId: se_StringFilterList(input.resourceId, context) }),
|
|
2453
|
-
...(input.resourceTags != null && { resourceTags: se_MapFilterList(input.resourceTags, context) }),
|
|
2454
|
-
...(input.resourceType != null && { resourceType: se_StringFilterList(input.resourceType, context) }),
|
|
2455
|
-
...(input.severity != null && { severity: se_StringFilterList(input.severity, context) }),
|
|
2456
|
-
...(input.title != null && { title: se_StringFilterList(input.title, context) }),
|
|
2457
|
-
...(input.updatedAt != null && { updatedAt: se_DateFilterList(input.updatedAt, context) }),
|
|
2458
|
-
...(input.vendorSeverity != null && { vendorSeverity: se_StringFilterList(input.vendorSeverity, context) }),
|
|
2459
|
-
...(input.vulnerabilityId != null && { vulnerabilityId: se_StringFilterList(input.vulnerabilityId, context) }),
|
|
2460
|
-
...(input.vulnerabilitySource != null && {
|
|
2461
|
-
vulnerabilitySource: se_StringFilterList(input.vulnerabilitySource, context),
|
|
2462
|
-
}),
|
|
2463
|
-
...(input.vulnerablePackages != null && {
|
|
2464
|
-
vulnerablePackages: se_PackageFilterList(input.vulnerablePackages, context),
|
|
2465
|
-
}),
|
|
2466
|
-
};
|
|
2467
|
-
};
|
|
2468
|
-
const se_FindingTypeAggregation = (input, context) => {
|
|
2469
|
-
return {
|
|
2470
|
-
...(input.findingType != null && { findingType: input.findingType }),
|
|
2471
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2472
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2473
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2474
|
-
};
|
|
2475
|
-
};
|
|
2476
|
-
const se_ImageLayerAggregation = (input, context) => {
|
|
2477
|
-
return {
|
|
2478
|
-
...(input.layerHashes != null && { layerHashes: se_StringFilterList(input.layerHashes, context) }),
|
|
2479
|
-
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2480
|
-
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2481
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2482
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2483
|
-
};
|
|
2484
|
-
};
|
|
2485
|
-
const se_LambdaFunctionAggregation = (input, context) => {
|
|
2486
|
-
return {
|
|
2487
|
-
...(input.functionNames != null && { functionNames: se_StringFilterList(input.functionNames, context) }),
|
|
2488
|
-
...(input.functionTags != null && { functionTags: se_MapFilterList(input.functionTags, context) }),
|
|
2489
|
-
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2490
|
-
...(input.runtimes != null && { runtimes: se_StringFilterList(input.runtimes, context) }),
|
|
2491
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2492
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2493
|
-
};
|
|
2494
|
-
};
|
|
2495
|
-
const se_LambdaLayerAggregation = (input, context) => {
|
|
2496
|
-
return {
|
|
2497
|
-
...(input.functionNames != null && { functionNames: se_StringFilterList(input.functionNames, context) }),
|
|
2498
|
-
...(input.layerArns != null && { layerArns: se_StringFilterList(input.layerArns, context) }),
|
|
2499
|
-
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2500
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2501
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2502
|
-
};
|
|
2503
|
-
};
|
|
2504
|
-
const se_MapFilter = (input, context) => {
|
|
2505
|
-
return {
|
|
2506
|
-
...(input.comparison != null && { comparison: input.comparison }),
|
|
2507
|
-
...(input.key != null && { key: input.key }),
|
|
2508
|
-
...(input.value != null && { value: input.value }),
|
|
2509
|
-
};
|
|
2510
|
-
};
|
|
2511
|
-
const se_MapFilterList = (input, context) => {
|
|
2512
|
-
return input
|
|
2513
|
-
.filter((e) => e != null)
|
|
2514
|
-
.map((entry) => {
|
|
2515
|
-
return se_MapFilter(entry, context);
|
|
2516
|
-
});
|
|
2517
|
-
};
|
|
2518
|
-
const se_MeteringAccountIdList = (input, context) => {
|
|
2519
|
-
return input
|
|
2520
|
-
.filter((e) => e != null)
|
|
2521
|
-
.map((entry) => {
|
|
2522
|
-
return entry;
|
|
2200
|
+
return take(input, {
|
|
2201
|
+
awsAccountId: _json,
|
|
2202
|
+
componentId: _json,
|
|
2203
|
+
componentType: _json,
|
|
2204
|
+
ec2InstanceImageId: _json,
|
|
2205
|
+
ec2InstanceSubnetId: _json,
|
|
2206
|
+
ec2InstanceVpcId: _json,
|
|
2207
|
+
ecrImageArchitecture: _json,
|
|
2208
|
+
ecrImageHash: _json,
|
|
2209
|
+
ecrImagePushedAt: (_) => se_DateFilterList(_, context),
|
|
2210
|
+
ecrImageRegistry: _json,
|
|
2211
|
+
ecrImageRepositoryName: _json,
|
|
2212
|
+
ecrImageTags: _json,
|
|
2213
|
+
exploitAvailable: _json,
|
|
2214
|
+
findingArn: _json,
|
|
2215
|
+
findingStatus: _json,
|
|
2216
|
+
findingType: _json,
|
|
2217
|
+
firstObservedAt: (_) => se_DateFilterList(_, context),
|
|
2218
|
+
fixAvailable: _json,
|
|
2219
|
+
inspectorScore: (_) => se_NumberFilterList(_, context),
|
|
2220
|
+
lambdaFunctionExecutionRoleArn: _json,
|
|
2221
|
+
lambdaFunctionLastModifiedAt: (_) => se_DateFilterList(_, context),
|
|
2222
|
+
lambdaFunctionLayers: _json,
|
|
2223
|
+
lambdaFunctionName: _json,
|
|
2224
|
+
lambdaFunctionRuntime: _json,
|
|
2225
|
+
lastObservedAt: (_) => se_DateFilterList(_, context),
|
|
2226
|
+
networkProtocol: _json,
|
|
2227
|
+
portRange: _json,
|
|
2228
|
+
relatedVulnerabilities: _json,
|
|
2229
|
+
resourceId: _json,
|
|
2230
|
+
resourceTags: _json,
|
|
2231
|
+
resourceType: _json,
|
|
2232
|
+
severity: _json,
|
|
2233
|
+
title: _json,
|
|
2234
|
+
updatedAt: (_) => se_DateFilterList(_, context),
|
|
2235
|
+
vendorSeverity: _json,
|
|
2236
|
+
vulnerabilityId: _json,
|
|
2237
|
+
vulnerabilitySource: _json,
|
|
2238
|
+
vulnerablePackages: (_) => se_PackageFilterList(_, context),
|
|
2523
2239
|
});
|
|
2524
2240
|
};
|
|
2525
2241
|
const se_NumberFilter = (input, context) => {
|
|
2526
|
-
return {
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
};
|
|
2242
|
+
return take(input, {
|
|
2243
|
+
lowerInclusive: __serializeFloat,
|
|
2244
|
+
upperInclusive: __serializeFloat,
|
|
2245
|
+
});
|
|
2530
2246
|
};
|
|
2531
2247
|
const se_NumberFilterList = (input, context) => {
|
|
2532
2248
|
return input
|
|
@@ -2535,25 +2251,16 @@ const se_NumberFilterList = (input, context) => {
|
|
|
2535
2251
|
return se_NumberFilter(entry, context);
|
|
2536
2252
|
});
|
|
2537
2253
|
};
|
|
2538
|
-
const se_PackageAggregation = (input, context) => {
|
|
2539
|
-
return {
|
|
2540
|
-
...(input.packageNames != null && { packageNames: se_StringFilterList(input.packageNames, context) }),
|
|
2541
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2542
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2543
|
-
};
|
|
2544
|
-
};
|
|
2545
2254
|
const se_PackageFilter = (input, context) => {
|
|
2546
|
-
return {
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
...(input.version != null && { version: se_StringFilter(input.version, context) }),
|
|
2556
|
-
};
|
|
2255
|
+
return take(input, {
|
|
2256
|
+
architecture: _json,
|
|
2257
|
+
epoch: (_) => se_NumberFilter(_, context),
|
|
2258
|
+
name: _json,
|
|
2259
|
+
release: _json,
|
|
2260
|
+
sourceLambdaLayerArn: _json,
|
|
2261
|
+
sourceLayerHash: _json,
|
|
2262
|
+
version: _json,
|
|
2263
|
+
});
|
|
2557
2264
|
};
|
|
2558
2265
|
const se_PackageFilterList = (input, context) => {
|
|
2559
2266
|
return input
|
|
@@ -2562,141 +2269,35 @@ const se_PackageFilterList = (input, context) => {
|
|
|
2562
2269
|
return se_PackageFilter(entry, context);
|
|
2563
2270
|
});
|
|
2564
2271
|
};
|
|
2565
|
-
const se_PortRangeFilter = (input, context) => {
|
|
2566
|
-
return {
|
|
2567
|
-
...(input.beginInclusive != null && { beginInclusive: input.beginInclusive }),
|
|
2568
|
-
...(input.endInclusive != null && { endInclusive: input.endInclusive }),
|
|
2569
|
-
};
|
|
2570
|
-
};
|
|
2571
|
-
const se_PortRangeFilterList = (input, context) => {
|
|
2572
|
-
return input
|
|
2573
|
-
.filter((e) => e != null)
|
|
2574
|
-
.map((entry) => {
|
|
2575
|
-
return se_PortRangeFilter(entry, context);
|
|
2576
|
-
});
|
|
2577
|
-
};
|
|
2578
|
-
const se_RepositoryAggregation = (input, context) => {
|
|
2579
|
-
return {
|
|
2580
|
-
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2581
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2582
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2583
|
-
};
|
|
2584
|
-
};
|
|
2585
|
-
const se_SortCriteria = (input, context) => {
|
|
2586
|
-
return {
|
|
2587
|
-
...(input.field != null && { field: input.field }),
|
|
2588
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2589
|
-
};
|
|
2590
|
-
};
|
|
2591
|
-
const se_StringFilter = (input, context) => {
|
|
2592
|
-
return {
|
|
2593
|
-
...(input.comparison != null && { comparison: input.comparison }),
|
|
2594
|
-
...(input.value != null && { value: input.value }),
|
|
2595
|
-
};
|
|
2596
|
-
};
|
|
2597
|
-
const se_StringFilterList = (input, context) => {
|
|
2598
|
-
return input
|
|
2599
|
-
.filter((e) => e != null)
|
|
2600
|
-
.map((entry) => {
|
|
2601
|
-
return se_StringFilter(entry, context);
|
|
2602
|
-
});
|
|
2603
|
-
};
|
|
2604
|
-
const se_TagMap = (input, context) => {
|
|
2605
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2606
|
-
if (value === null) {
|
|
2607
|
-
return acc;
|
|
2608
|
-
}
|
|
2609
|
-
acc[key] = value;
|
|
2610
|
-
return acc;
|
|
2611
|
-
}, {});
|
|
2612
|
-
};
|
|
2613
|
-
const se_TitleAggregation = (input, context) => {
|
|
2614
|
-
return {
|
|
2615
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2616
|
-
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2617
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2618
|
-
...(input.titles != null && { titles: se_StringFilterList(input.titles, context) }),
|
|
2619
|
-
...(input.vulnerabilityIds != null && { vulnerabilityIds: se_StringFilterList(input.vulnerabilityIds, context) }),
|
|
2620
|
-
};
|
|
2621
|
-
};
|
|
2622
|
-
const se_UsageAccountIdList = (input, context) => {
|
|
2623
|
-
return input
|
|
2624
|
-
.filter((e) => e != null)
|
|
2625
|
-
.map((entry) => {
|
|
2626
|
-
return entry;
|
|
2627
|
-
});
|
|
2628
|
-
};
|
|
2629
|
-
const de_Account = (output, context) => {
|
|
2630
|
-
return {
|
|
2631
|
-
accountId: __expectString(output.accountId),
|
|
2632
|
-
resourceStatus: output.resourceStatus != null ? de_ResourceStatus(output.resourceStatus, context) : undefined,
|
|
2633
|
-
status: __expectString(output.status),
|
|
2634
|
-
};
|
|
2635
|
-
};
|
|
2636
|
-
const de_AccountAggregationResponse = (output, context) => {
|
|
2637
|
-
return {
|
|
2638
|
-
accountId: __expectString(output.accountId),
|
|
2639
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
2640
|
-
};
|
|
2641
|
-
};
|
|
2642
|
-
const de_AccountList = (output, context) => {
|
|
2643
|
-
const retVal = (output || [])
|
|
2644
|
-
.filter((e) => e != null)
|
|
2645
|
-
.map((entry) => {
|
|
2646
|
-
if (entry === null) {
|
|
2647
|
-
return null;
|
|
2648
|
-
}
|
|
2649
|
-
return de_Account(entry, context);
|
|
2650
|
-
});
|
|
2651
|
-
return retVal;
|
|
2652
|
-
};
|
|
2653
|
-
const de_AccountState = (output, context) => {
|
|
2654
|
-
return {
|
|
2655
|
-
accountId: __expectString(output.accountId),
|
|
2656
|
-
resourceState: output.resourceState != null ? de_ResourceState(output.resourceState, context) : undefined,
|
|
2657
|
-
state: output.state != null ? de_State(output.state, context) : undefined,
|
|
2658
|
-
};
|
|
2659
|
-
};
|
|
2660
|
-
const de_AccountStateList = (output, context) => {
|
|
2661
|
-
const retVal = (output || [])
|
|
2662
|
-
.filter((e) => e != null)
|
|
2663
|
-
.map((entry) => {
|
|
2664
|
-
if (entry === null) {
|
|
2665
|
-
return null;
|
|
2666
|
-
}
|
|
2667
|
-
return de_AccountState(entry, context);
|
|
2668
|
-
});
|
|
2669
|
-
return retVal;
|
|
2670
|
-
};
|
|
2671
2272
|
const de_AggregationResponse = (output, context) => {
|
|
2672
2273
|
if (output.accountAggregation != null) {
|
|
2673
2274
|
return {
|
|
2674
|
-
accountAggregation:
|
|
2275
|
+
accountAggregation: _json(output.accountAggregation),
|
|
2675
2276
|
};
|
|
2676
2277
|
}
|
|
2677
2278
|
if (output.amiAggregation != null) {
|
|
2678
2279
|
return {
|
|
2679
|
-
amiAggregation:
|
|
2280
|
+
amiAggregation: _json(output.amiAggregation),
|
|
2680
2281
|
};
|
|
2681
2282
|
}
|
|
2682
2283
|
if (output.awsEcrContainerAggregation != null) {
|
|
2683
2284
|
return {
|
|
2684
|
-
awsEcrContainerAggregation:
|
|
2285
|
+
awsEcrContainerAggregation: _json(output.awsEcrContainerAggregation),
|
|
2685
2286
|
};
|
|
2686
2287
|
}
|
|
2687
2288
|
if (output.ec2InstanceAggregation != null) {
|
|
2688
2289
|
return {
|
|
2689
|
-
ec2InstanceAggregation:
|
|
2290
|
+
ec2InstanceAggregation: _json(output.ec2InstanceAggregation),
|
|
2690
2291
|
};
|
|
2691
2292
|
}
|
|
2692
2293
|
if (output.findingTypeAggregation != null) {
|
|
2693
2294
|
return {
|
|
2694
|
-
findingTypeAggregation:
|
|
2295
|
+
findingTypeAggregation: _json(output.findingTypeAggregation),
|
|
2695
2296
|
};
|
|
2696
2297
|
}
|
|
2697
2298
|
if (output.imageLayerAggregation != null) {
|
|
2698
2299
|
return {
|
|
2699
|
-
imageLayerAggregation:
|
|
2300
|
+
imageLayerAggregation: _json(output.imageLayerAggregation),
|
|
2700
2301
|
};
|
|
2701
2302
|
}
|
|
2702
2303
|
if (output.lambdaFunctionAggregation != null) {
|
|
@@ -2706,22 +2307,22 @@ const de_AggregationResponse = (output, context) => {
|
|
|
2706
2307
|
}
|
|
2707
2308
|
if (output.lambdaLayerAggregation != null) {
|
|
2708
2309
|
return {
|
|
2709
|
-
lambdaLayerAggregation:
|
|
2310
|
+
lambdaLayerAggregation: _json(output.lambdaLayerAggregation),
|
|
2710
2311
|
};
|
|
2711
2312
|
}
|
|
2712
2313
|
if (output.packageAggregation != null) {
|
|
2713
2314
|
return {
|
|
2714
|
-
packageAggregation:
|
|
2315
|
+
packageAggregation: _json(output.packageAggregation),
|
|
2715
2316
|
};
|
|
2716
2317
|
}
|
|
2717
2318
|
if (output.repositoryAggregation != null) {
|
|
2718
2319
|
return {
|
|
2719
|
-
repositoryAggregation:
|
|
2320
|
+
repositoryAggregation: _json(output.repositoryAggregation),
|
|
2720
2321
|
};
|
|
2721
2322
|
}
|
|
2722
2323
|
if (output.titleAggregation != null) {
|
|
2723
2324
|
return {
|
|
2724
|
-
titleAggregation:
|
|
2325
|
+
titleAggregation: _json(output.titleAggregation),
|
|
2725
2326
|
};
|
|
2726
2327
|
}
|
|
2727
2328
|
return { $unknown: Object.entries(output)[0] };
|
|
@@ -2730,1021 +2331,366 @@ const de_AggregationResponseList = (output, context) => {
|
|
|
2730
2331
|
const retVal = (output || [])
|
|
2731
2332
|
.filter((e) => e != null)
|
|
2732
2333
|
.map((entry) => {
|
|
2733
|
-
if (entry === null) {
|
|
2734
|
-
return null;
|
|
2735
|
-
}
|
|
2736
2334
|
return de_AggregationResponse(__expectUnion(entry), context);
|
|
2737
2335
|
});
|
|
2738
2336
|
return retVal;
|
|
2739
2337
|
};
|
|
2740
|
-
const
|
|
2741
|
-
return {
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
if (entry === null) {
|
|
2753
|
-
return null;
|
|
2754
|
-
}
|
|
2755
|
-
return __expectString(entry);
|
|
2338
|
+
const de_AwsEc2InstanceDetails = (output, context) => {
|
|
2339
|
+
return take(output, {
|
|
2340
|
+
iamInstanceProfileArn: __expectString,
|
|
2341
|
+
imageId: __expectString,
|
|
2342
|
+
ipV4Addresses: _json,
|
|
2343
|
+
ipV6Addresses: _json,
|
|
2344
|
+
keyName: __expectString,
|
|
2345
|
+
launchedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2346
|
+
platform: __expectString,
|
|
2347
|
+
subnetId: __expectString,
|
|
2348
|
+
type: __expectString,
|
|
2349
|
+
vpcId: __expectString,
|
|
2756
2350
|
});
|
|
2757
|
-
return retVal;
|
|
2758
|
-
};
|
|
2759
|
-
const de_AutoEnable = (output, context) => {
|
|
2760
|
-
return {
|
|
2761
|
-
ec2: __expectBoolean(output.ec2),
|
|
2762
|
-
ecr: __expectBoolean(output.ecr),
|
|
2763
|
-
lambda: __expectBoolean(output.lambda),
|
|
2764
|
-
};
|
|
2765
|
-
};
|
|
2766
|
-
const de_AwsEc2InstanceDetails = (output, context) => {
|
|
2767
|
-
return {
|
|
2768
|
-
iamInstanceProfileArn: __expectString(output.iamInstanceProfileArn),
|
|
2769
|
-
imageId: __expectString(output.imageId),
|
|
2770
|
-
ipV4Addresses: output.ipV4Addresses != null ? de_IpV4AddressList(output.ipV4Addresses, context) : undefined,
|
|
2771
|
-
ipV6Addresses: output.ipV6Addresses != null ? de_IpV6AddressList(output.ipV6Addresses, context) : undefined,
|
|
2772
|
-
keyName: __expectString(output.keyName),
|
|
2773
|
-
launchedAt: output.launchedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.launchedAt))) : undefined,
|
|
2774
|
-
platform: __expectString(output.platform),
|
|
2775
|
-
subnetId: __expectString(output.subnetId),
|
|
2776
|
-
type: __expectString(output.type),
|
|
2777
|
-
vpcId: __expectString(output.vpcId),
|
|
2778
|
-
};
|
|
2779
|
-
};
|
|
2780
|
-
const de_AwsEcrContainerAggregationResponse = (output, context) => {
|
|
2781
|
-
return {
|
|
2782
|
-
accountId: __expectString(output.accountId),
|
|
2783
|
-
architecture: __expectString(output.architecture),
|
|
2784
|
-
imageSha: __expectString(output.imageSha),
|
|
2785
|
-
imageTags: output.imageTags != null ? de_StringList(output.imageTags, context) : undefined,
|
|
2786
|
-
repository: __expectString(output.repository),
|
|
2787
|
-
resourceId: __expectString(output.resourceId),
|
|
2788
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
2789
|
-
};
|
|
2790
2351
|
};
|
|
2791
2352
|
const de_AwsEcrContainerImageDetails = (output, context) => {
|
|
2792
|
-
return {
|
|
2793
|
-
architecture: __expectString
|
|
2794
|
-
author: __expectString
|
|
2795
|
-
imageHash: __expectString
|
|
2796
|
-
imageTags:
|
|
2797
|
-
platform: __expectString
|
|
2798
|
-
pushedAt:
|
|
2799
|
-
registry: __expectString
|
|
2800
|
-
repositoryName: __expectString
|
|
2801
|
-
};
|
|
2802
|
-
};
|
|
2803
|
-
const de_AwsLambdaFunctionDetails = (output, context) => {
|
|
2804
|
-
return {
|
|
2805
|
-
architectures: output.architectures != null ? de_ArchitectureList(output.architectures, context) : undefined,
|
|
2806
|
-
codeSha256: __expectString(output.codeSha256),
|
|
2807
|
-
executionRoleArn: __expectString(output.executionRoleArn),
|
|
2808
|
-
functionName: __expectString(output.functionName),
|
|
2809
|
-
lastModifiedAt: output.lastModifiedAt != null
|
|
2810
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedAt)))
|
|
2811
|
-
: undefined,
|
|
2812
|
-
layers: output.layers != null ? de_LayerList(output.layers, context) : undefined,
|
|
2813
|
-
packageType: __expectString(output.packageType),
|
|
2814
|
-
runtime: __expectString(output.runtime),
|
|
2815
|
-
version: __expectString(output.version),
|
|
2816
|
-
vpcConfig: output.vpcConfig != null ? de_LambdaVpcConfig(output.vpcConfig, context) : undefined,
|
|
2817
|
-
};
|
|
2818
|
-
};
|
|
2819
|
-
const de_Counts = (output, context) => {
|
|
2820
|
-
return {
|
|
2821
|
-
count: __expectLong(output.count),
|
|
2822
|
-
groupKey: __expectString(output.groupKey),
|
|
2823
|
-
};
|
|
2824
|
-
};
|
|
2825
|
-
const de_CountsList = (output, context) => {
|
|
2826
|
-
const retVal = (output || [])
|
|
2827
|
-
.filter((e) => e != null)
|
|
2828
|
-
.map((entry) => {
|
|
2829
|
-
if (entry === null) {
|
|
2830
|
-
return null;
|
|
2831
|
-
}
|
|
2832
|
-
return de_Counts(entry, context);
|
|
2353
|
+
return take(output, {
|
|
2354
|
+
architecture: __expectString,
|
|
2355
|
+
author: __expectString,
|
|
2356
|
+
imageHash: __expectString,
|
|
2357
|
+
imageTags: _json,
|
|
2358
|
+
platform: __expectString,
|
|
2359
|
+
pushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2360
|
+
registry: __expectString,
|
|
2361
|
+
repositoryName: __expectString,
|
|
2833
2362
|
});
|
|
2834
|
-
return retVal;
|
|
2835
|
-
};
|
|
2836
|
-
const de_CoveredResource = (output, context) => {
|
|
2837
|
-
return {
|
|
2838
|
-
accountId: __expectString(output.accountId),
|
|
2839
|
-
resourceId: __expectString(output.resourceId),
|
|
2840
|
-
resourceMetadata: output.resourceMetadata != null ? de_ResourceScanMetadata(output.resourceMetadata, context) : undefined,
|
|
2841
|
-
resourceType: __expectString(output.resourceType),
|
|
2842
|
-
scanStatus: output.scanStatus != null ? de_ScanStatus(output.scanStatus, context) : undefined,
|
|
2843
|
-
scanType: __expectString(output.scanType),
|
|
2844
|
-
};
|
|
2845
2363
|
};
|
|
2846
|
-
const
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2364
|
+
const de_AwsLambdaFunctionDetails = (output, context) => {
|
|
2365
|
+
return take(output, {
|
|
2366
|
+
architectures: _json,
|
|
2367
|
+
codeSha256: __expectString,
|
|
2368
|
+
executionRoleArn: __expectString,
|
|
2369
|
+
functionName: __expectString,
|
|
2370
|
+
lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2371
|
+
layers: _json,
|
|
2372
|
+
packageType: __expectString,
|
|
2373
|
+
runtime: __expectString,
|
|
2374
|
+
version: __expectString,
|
|
2375
|
+
vpcConfig: _json,
|
|
2854
2376
|
});
|
|
2855
|
-
return retVal;
|
|
2856
2377
|
};
|
|
2857
2378
|
const de_CvssScore = (output, context) => {
|
|
2858
|
-
return {
|
|
2859
|
-
baseScore: __limitedParseDouble
|
|
2860
|
-
scoringVector: __expectString
|
|
2861
|
-
source: __expectString
|
|
2862
|
-
version: __expectString
|
|
2863
|
-
};
|
|
2864
|
-
};
|
|
2865
|
-
const de_CvssScoreAdjustment = (output, context) => {
|
|
2866
|
-
return {
|
|
2867
|
-
metric: __expectString(output.metric),
|
|
2868
|
-
reason: __expectString(output.reason),
|
|
2869
|
-
};
|
|
2870
|
-
};
|
|
2871
|
-
const de_CvssScoreAdjustmentList = (output, context) => {
|
|
2872
|
-
const retVal = (output || [])
|
|
2873
|
-
.filter((e) => e != null)
|
|
2874
|
-
.map((entry) => {
|
|
2875
|
-
if (entry === null) {
|
|
2876
|
-
return null;
|
|
2877
|
-
}
|
|
2878
|
-
return de_CvssScoreAdjustment(entry, context);
|
|
2379
|
+
return take(output, {
|
|
2380
|
+
baseScore: __limitedParseDouble,
|
|
2381
|
+
scoringVector: __expectString,
|
|
2382
|
+
source: __expectString,
|
|
2383
|
+
version: __expectString,
|
|
2879
2384
|
});
|
|
2880
|
-
return retVal;
|
|
2881
2385
|
};
|
|
2882
2386
|
const de_CvssScoreDetails = (output, context) => {
|
|
2883
|
-
return {
|
|
2884
|
-
adjustments:
|
|
2885
|
-
cvssSource: __expectString
|
|
2886
|
-
score: __limitedParseDouble
|
|
2887
|
-
scoreSource: __expectString
|
|
2888
|
-
scoringVector: __expectString
|
|
2889
|
-
version: __expectString
|
|
2890
|
-
};
|
|
2387
|
+
return take(output, {
|
|
2388
|
+
adjustments: _json,
|
|
2389
|
+
cvssSource: __expectString,
|
|
2390
|
+
score: __limitedParseDouble,
|
|
2391
|
+
scoreSource: __expectString,
|
|
2392
|
+
scoringVector: __expectString,
|
|
2393
|
+
version: __expectString,
|
|
2394
|
+
});
|
|
2891
2395
|
};
|
|
2892
2396
|
const de_CvssScoreList = (output, context) => {
|
|
2893
2397
|
const retVal = (output || [])
|
|
2894
2398
|
.filter((e) => e != null)
|
|
2895
2399
|
.map((entry) => {
|
|
2896
|
-
if (entry === null) {
|
|
2897
|
-
return null;
|
|
2898
|
-
}
|
|
2899
2400
|
return de_CvssScore(entry, context);
|
|
2900
2401
|
});
|
|
2901
2402
|
return retVal;
|
|
2902
2403
|
};
|
|
2903
2404
|
const de_DateFilter = (output, context) => {
|
|
2904
|
-
return {
|
|
2905
|
-
endInclusive:
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
startInclusive: output.startInclusive != null
|
|
2909
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startInclusive)))
|
|
2910
|
-
: undefined,
|
|
2911
|
-
};
|
|
2405
|
+
return take(output, {
|
|
2406
|
+
endInclusive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2407
|
+
startInclusive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2408
|
+
});
|
|
2912
2409
|
};
|
|
2913
2410
|
const de_DateFilterList = (output, context) => {
|
|
2914
2411
|
const retVal = (output || [])
|
|
2915
2412
|
.filter((e) => e != null)
|
|
2916
2413
|
.map((entry) => {
|
|
2917
|
-
if (entry === null) {
|
|
2918
|
-
return null;
|
|
2919
|
-
}
|
|
2920
2414
|
return de_DateFilter(entry, context);
|
|
2921
2415
|
});
|
|
2922
2416
|
return retVal;
|
|
2923
2417
|
};
|
|
2924
|
-
const de_DelegatedAdmin = (output, context) => {
|
|
2925
|
-
return {
|
|
2926
|
-
accountId: __expectString(output.accountId),
|
|
2927
|
-
relationshipStatus: __expectString(output.relationshipStatus),
|
|
2928
|
-
};
|
|
2929
|
-
};
|
|
2930
|
-
const de_DelegatedAdminAccount = (output, context) => {
|
|
2931
|
-
return {
|
|
2932
|
-
accountId: __expectString(output.accountId),
|
|
2933
|
-
status: __expectString(output.status),
|
|
2934
|
-
};
|
|
2935
|
-
};
|
|
2936
|
-
const de_DelegatedAdminAccountList = (output, context) => {
|
|
2937
|
-
const retVal = (output || [])
|
|
2938
|
-
.filter((e) => e != null)
|
|
2939
|
-
.map((entry) => {
|
|
2940
|
-
if (entry === null) {
|
|
2941
|
-
return null;
|
|
2942
|
-
}
|
|
2943
|
-
return de_DelegatedAdminAccount(entry, context);
|
|
2944
|
-
});
|
|
2945
|
-
return retVal;
|
|
2946
|
-
};
|
|
2947
|
-
const de_Destination = (output, context) => {
|
|
2948
|
-
return {
|
|
2949
|
-
bucketName: __expectString(output.bucketName),
|
|
2950
|
-
keyPrefix: __expectString(output.keyPrefix),
|
|
2951
|
-
kmsKeyArn: __expectString(output.kmsKeyArn),
|
|
2952
|
-
};
|
|
2953
|
-
};
|
|
2954
|
-
const de_Ec2InstanceAggregationResponse = (output, context) => {
|
|
2955
|
-
return {
|
|
2956
|
-
accountId: __expectString(output.accountId),
|
|
2957
|
-
ami: __expectString(output.ami),
|
|
2958
|
-
instanceId: __expectString(output.instanceId),
|
|
2959
|
-
instanceTags: output.instanceTags != null ? de_TagMap(output.instanceTags, context) : undefined,
|
|
2960
|
-
networkFindings: __expectLong(output.networkFindings),
|
|
2961
|
-
operatingSystem: __expectString(output.operatingSystem),
|
|
2962
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
2963
|
-
};
|
|
2964
|
-
};
|
|
2965
|
-
const de_Ec2Metadata = (output, context) => {
|
|
2966
|
-
return {
|
|
2967
|
-
amiId: __expectString(output.amiId),
|
|
2968
|
-
platform: __expectString(output.platform),
|
|
2969
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
2970
|
-
};
|
|
2971
|
-
};
|
|
2972
2418
|
const de_EcrConfigurationState = (output, context) => {
|
|
2973
|
-
return {
|
|
2974
|
-
rescanDurationState:
|
|
2975
|
-
};
|
|
2976
|
-
};
|
|
2977
|
-
const de_EcrContainerImageMetadata = (output, context) => {
|
|
2978
|
-
return {
|
|
2979
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
2980
|
-
};
|
|
2981
|
-
};
|
|
2982
|
-
const de_EcrRepositoryMetadata = (output, context) => {
|
|
2983
|
-
return {
|
|
2984
|
-
name: __expectString(output.name),
|
|
2985
|
-
scanFrequency: __expectString(output.scanFrequency),
|
|
2986
|
-
};
|
|
2419
|
+
return take(output, {
|
|
2420
|
+
rescanDurationState: (_) => de_EcrRescanDurationState(_, context),
|
|
2421
|
+
});
|
|
2987
2422
|
};
|
|
2988
2423
|
const de_EcrRescanDurationState = (output, context) => {
|
|
2989
|
-
return {
|
|
2990
|
-
rescanDuration: __expectString
|
|
2991
|
-
status: __expectString
|
|
2992
|
-
updatedAt:
|
|
2993
|
-
};
|
|
2424
|
+
return take(output, {
|
|
2425
|
+
rescanDuration: __expectString,
|
|
2426
|
+
status: __expectString,
|
|
2427
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2428
|
+
});
|
|
2994
2429
|
};
|
|
2995
2430
|
const de_ExploitabilityDetails = (output, context) => {
|
|
2996
|
-
return {
|
|
2997
|
-
lastKnownExploitAt:
|
|
2998
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastKnownExploitAt)))
|
|
2999
|
-
: undefined,
|
|
3000
|
-
};
|
|
3001
|
-
};
|
|
3002
|
-
const de_FailedAccount = (output, context) => {
|
|
3003
|
-
return {
|
|
3004
|
-
accountId: __expectString(output.accountId),
|
|
3005
|
-
errorCode: __expectString(output.errorCode),
|
|
3006
|
-
errorMessage: __expectString(output.errorMessage),
|
|
3007
|
-
resourceStatus: output.resourceStatus != null ? de_ResourceStatus(output.resourceStatus, context) : undefined,
|
|
3008
|
-
status: __expectString(output.status),
|
|
3009
|
-
};
|
|
3010
|
-
};
|
|
3011
|
-
const de_FailedAccountList = (output, context) => {
|
|
3012
|
-
const retVal = (output || [])
|
|
3013
|
-
.filter((e) => e != null)
|
|
3014
|
-
.map((entry) => {
|
|
3015
|
-
if (entry === null) {
|
|
3016
|
-
return null;
|
|
3017
|
-
}
|
|
3018
|
-
return de_FailedAccount(entry, context);
|
|
2431
|
+
return take(output, {
|
|
2432
|
+
lastKnownExploitAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3019
2433
|
});
|
|
3020
|
-
return retVal;
|
|
3021
2434
|
};
|
|
3022
2435
|
const de_Filter = (output, context) => {
|
|
3023
|
-
return {
|
|
3024
|
-
action: __expectString
|
|
3025
|
-
arn: __expectString
|
|
3026
|
-
createdAt:
|
|
3027
|
-
criteria:
|
|
3028
|
-
description: __expectString
|
|
3029
|
-
name: __expectString
|
|
3030
|
-
ownerId: __expectString
|
|
3031
|
-
reason: __expectString
|
|
3032
|
-
tags:
|
|
3033
|
-
updatedAt:
|
|
3034
|
-
};
|
|
2436
|
+
return take(output, {
|
|
2437
|
+
action: __expectString,
|
|
2438
|
+
arn: __expectString,
|
|
2439
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2440
|
+
criteria: (_) => de_FilterCriteria(_, context),
|
|
2441
|
+
description: __expectString,
|
|
2442
|
+
name: __expectString,
|
|
2443
|
+
ownerId: __expectString,
|
|
2444
|
+
reason: __expectString,
|
|
2445
|
+
tags: _json,
|
|
2446
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2447
|
+
});
|
|
3035
2448
|
};
|
|
3036
2449
|
const de_FilterCriteria = (output, context) => {
|
|
3037
|
-
return {
|
|
3038
|
-
awsAccountId:
|
|
3039
|
-
componentId:
|
|
3040
|
-
componentType:
|
|
3041
|
-
ec2InstanceImageId:
|
|
3042
|
-
ec2InstanceSubnetId:
|
|
3043
|
-
ec2InstanceVpcId:
|
|
3044
|
-
ecrImageArchitecture:
|
|
3045
|
-
ecrImageHash:
|
|
3046
|
-
ecrImagePushedAt:
|
|
3047
|
-
ecrImageRegistry:
|
|
3048
|
-
ecrImageRepositoryName:
|
|
3049
|
-
ecrImageTags:
|
|
3050
|
-
exploitAvailable:
|
|
3051
|
-
findingArn:
|
|
3052
|
-
findingStatus:
|
|
3053
|
-
findingType:
|
|
3054
|
-
firstObservedAt:
|
|
3055
|
-
fixAvailable:
|
|
3056
|
-
inspectorScore:
|
|
3057
|
-
lambdaFunctionExecutionRoleArn:
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
vulnerabilityId: output.vulnerabilityId != null ? de_StringFilterList(output.vulnerabilityId, context) : undefined,
|
|
3078
|
-
vulnerabilitySource: output.vulnerabilitySource != null ? de_StringFilterList(output.vulnerabilitySource, context) : undefined,
|
|
3079
|
-
vulnerablePackages: output.vulnerablePackages != null ? de_PackageFilterList(output.vulnerablePackages, context) : undefined,
|
|
3080
|
-
};
|
|
2450
|
+
return take(output, {
|
|
2451
|
+
awsAccountId: _json,
|
|
2452
|
+
componentId: _json,
|
|
2453
|
+
componentType: _json,
|
|
2454
|
+
ec2InstanceImageId: _json,
|
|
2455
|
+
ec2InstanceSubnetId: _json,
|
|
2456
|
+
ec2InstanceVpcId: _json,
|
|
2457
|
+
ecrImageArchitecture: _json,
|
|
2458
|
+
ecrImageHash: _json,
|
|
2459
|
+
ecrImagePushedAt: (_) => de_DateFilterList(_, context),
|
|
2460
|
+
ecrImageRegistry: _json,
|
|
2461
|
+
ecrImageRepositoryName: _json,
|
|
2462
|
+
ecrImageTags: _json,
|
|
2463
|
+
exploitAvailable: _json,
|
|
2464
|
+
findingArn: _json,
|
|
2465
|
+
findingStatus: _json,
|
|
2466
|
+
findingType: _json,
|
|
2467
|
+
firstObservedAt: (_) => de_DateFilterList(_, context),
|
|
2468
|
+
fixAvailable: _json,
|
|
2469
|
+
inspectorScore: (_) => de_NumberFilterList(_, context),
|
|
2470
|
+
lambdaFunctionExecutionRoleArn: _json,
|
|
2471
|
+
lambdaFunctionLastModifiedAt: (_) => de_DateFilterList(_, context),
|
|
2472
|
+
lambdaFunctionLayers: _json,
|
|
2473
|
+
lambdaFunctionName: _json,
|
|
2474
|
+
lambdaFunctionRuntime: _json,
|
|
2475
|
+
lastObservedAt: (_) => de_DateFilterList(_, context),
|
|
2476
|
+
networkProtocol: _json,
|
|
2477
|
+
portRange: _json,
|
|
2478
|
+
relatedVulnerabilities: _json,
|
|
2479
|
+
resourceId: _json,
|
|
2480
|
+
resourceTags: _json,
|
|
2481
|
+
resourceType: _json,
|
|
2482
|
+
severity: _json,
|
|
2483
|
+
title: _json,
|
|
2484
|
+
updatedAt: (_) => de_DateFilterList(_, context),
|
|
2485
|
+
vendorSeverity: _json,
|
|
2486
|
+
vulnerabilityId: _json,
|
|
2487
|
+
vulnerabilitySource: _json,
|
|
2488
|
+
vulnerablePackages: (_) => de_PackageFilterList(_, context),
|
|
2489
|
+
});
|
|
3081
2490
|
};
|
|
3082
2491
|
const de_FilterList = (output, context) => {
|
|
3083
2492
|
const retVal = (output || [])
|
|
3084
2493
|
.filter((e) => e != null)
|
|
3085
2494
|
.map((entry) => {
|
|
3086
|
-
if (entry === null) {
|
|
3087
|
-
return null;
|
|
3088
|
-
}
|
|
3089
2495
|
return de_Filter(entry, context);
|
|
3090
2496
|
});
|
|
3091
2497
|
return retVal;
|
|
3092
2498
|
};
|
|
3093
2499
|
const de_Finding = (output, context) => {
|
|
3094
|
-
return {
|
|
3095
|
-
awsAccountId: __expectString
|
|
3096
|
-
description: __expectString
|
|
3097
|
-
exploitAvailable: __expectString
|
|
3098
|
-
exploitabilityDetails:
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
: undefined,
|
|
3116
|
-
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
3117
|
-
? de_PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
3118
|
-
: undefined,
|
|
3119
|
-
remediation: output.remediation != null ? de_Remediation(output.remediation, context) : undefined,
|
|
3120
|
-
resources: output.resources != null ? de_ResourceList(output.resources, context) : undefined,
|
|
3121
|
-
severity: __expectString(output.severity),
|
|
3122
|
-
status: __expectString(output.status),
|
|
3123
|
-
title: __expectString(output.title),
|
|
3124
|
-
type: __expectString(output.type),
|
|
3125
|
-
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3126
|
-
};
|
|
2500
|
+
return take(output, {
|
|
2501
|
+
awsAccountId: __expectString,
|
|
2502
|
+
description: __expectString,
|
|
2503
|
+
exploitAvailable: __expectString,
|
|
2504
|
+
exploitabilityDetails: (_) => de_ExploitabilityDetails(_, context),
|
|
2505
|
+
findingArn: __expectString,
|
|
2506
|
+
firstObservedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2507
|
+
fixAvailable: __expectString,
|
|
2508
|
+
inspectorScore: __limitedParseDouble,
|
|
2509
|
+
inspectorScoreDetails: (_) => de_InspectorScoreDetails(_, context),
|
|
2510
|
+
lastObservedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2511
|
+
networkReachabilityDetails: _json,
|
|
2512
|
+
packageVulnerabilityDetails: (_) => de_PackageVulnerabilityDetails(_, context),
|
|
2513
|
+
remediation: _json,
|
|
2514
|
+
resources: (_) => de_ResourceList(_, context),
|
|
2515
|
+
severity: __expectString,
|
|
2516
|
+
status: __expectString,
|
|
2517
|
+
title: __expectString,
|
|
2518
|
+
type: __expectString,
|
|
2519
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2520
|
+
});
|
|
3127
2521
|
};
|
|
3128
2522
|
const de_FindingList = (output, context) => {
|
|
3129
2523
|
const retVal = (output || [])
|
|
3130
2524
|
.filter((e) => e != null)
|
|
3131
2525
|
.map((entry) => {
|
|
3132
|
-
if (entry === null) {
|
|
3133
|
-
return null;
|
|
3134
|
-
}
|
|
3135
2526
|
return de_Finding(entry, context);
|
|
3136
2527
|
});
|
|
3137
2528
|
return retVal;
|
|
3138
2529
|
};
|
|
3139
|
-
const de_FindingTypeAggregationResponse = (output, context) => {
|
|
3140
|
-
return {
|
|
3141
|
-
accountId: __expectString(output.accountId),
|
|
3142
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3143
|
-
};
|
|
3144
|
-
};
|
|
3145
2530
|
const de_FreeTrialAccountInfo = (output, context) => {
|
|
3146
|
-
return {
|
|
3147
|
-
accountId: __expectString
|
|
3148
|
-
freeTrialInfo:
|
|
3149
|
-
};
|
|
2531
|
+
return take(output, {
|
|
2532
|
+
accountId: __expectString,
|
|
2533
|
+
freeTrialInfo: (_) => de_FreeTrialInfoList(_, context),
|
|
2534
|
+
});
|
|
3150
2535
|
};
|
|
3151
2536
|
const de_FreeTrialAccountInfoList = (output, context) => {
|
|
3152
2537
|
const retVal = (output || [])
|
|
3153
2538
|
.filter((e) => e != null)
|
|
3154
2539
|
.map((entry) => {
|
|
3155
|
-
if (entry === null) {
|
|
3156
|
-
return null;
|
|
3157
|
-
}
|
|
3158
2540
|
return de_FreeTrialAccountInfo(entry, context);
|
|
3159
2541
|
});
|
|
3160
2542
|
return retVal;
|
|
3161
2543
|
};
|
|
3162
2544
|
const de_FreeTrialInfo = (output, context) => {
|
|
3163
|
-
return {
|
|
3164
|
-
end:
|
|
3165
|
-
start:
|
|
3166
|
-
status: __expectString
|
|
3167
|
-
type: __expectString
|
|
3168
|
-
};
|
|
3169
|
-
};
|
|
3170
|
-
const de_FreeTrialInfoError = (output, context) => {
|
|
3171
|
-
return {
|
|
3172
|
-
accountId: __expectString(output.accountId),
|
|
3173
|
-
code: __expectString(output.code),
|
|
3174
|
-
message: __expectString(output.message),
|
|
3175
|
-
};
|
|
3176
|
-
};
|
|
3177
|
-
const de_FreeTrialInfoErrorList = (output, context) => {
|
|
3178
|
-
const retVal = (output || [])
|
|
3179
|
-
.filter((e) => e != null)
|
|
3180
|
-
.map((entry) => {
|
|
3181
|
-
if (entry === null) {
|
|
3182
|
-
return null;
|
|
3183
|
-
}
|
|
3184
|
-
return de_FreeTrialInfoError(entry, context);
|
|
2545
|
+
return take(output, {
|
|
2546
|
+
end: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2547
|
+
start: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2548
|
+
status: __expectString,
|
|
2549
|
+
type: __expectString,
|
|
3185
2550
|
});
|
|
3186
|
-
return retVal;
|
|
3187
2551
|
};
|
|
3188
2552
|
const de_FreeTrialInfoList = (output, context) => {
|
|
3189
2553
|
const retVal = (output || [])
|
|
3190
2554
|
.filter((e) => e != null)
|
|
3191
2555
|
.map((entry) => {
|
|
3192
|
-
if (entry === null) {
|
|
3193
|
-
return null;
|
|
3194
|
-
}
|
|
3195
2556
|
return de_FreeTrialInfo(entry, context);
|
|
3196
2557
|
});
|
|
3197
2558
|
return retVal;
|
|
3198
2559
|
};
|
|
3199
|
-
const de_ImageLayerAggregationResponse = (output, context) => {
|
|
3200
|
-
return {
|
|
3201
|
-
accountId: __expectString(output.accountId),
|
|
3202
|
-
layerHash: __expectString(output.layerHash),
|
|
3203
|
-
repository: __expectString(output.repository),
|
|
3204
|
-
resourceId: __expectString(output.resourceId),
|
|
3205
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3206
|
-
};
|
|
3207
|
-
};
|
|
3208
|
-
const de_ImageTagList = (output, context) => {
|
|
3209
|
-
const retVal = (output || [])
|
|
3210
|
-
.filter((e) => e != null)
|
|
3211
|
-
.map((entry) => {
|
|
3212
|
-
if (entry === null) {
|
|
3213
|
-
return null;
|
|
3214
|
-
}
|
|
3215
|
-
return __expectString(entry);
|
|
3216
|
-
});
|
|
3217
|
-
return retVal;
|
|
3218
|
-
};
|
|
3219
2560
|
const de_InspectorScoreDetails = (output, context) => {
|
|
3220
|
-
return {
|
|
3221
|
-
adjustedCvss:
|
|
3222
|
-
};
|
|
3223
|
-
};
|
|
3224
|
-
const de_IpV4AddressList = (output, context) => {
|
|
3225
|
-
const retVal = (output || [])
|
|
3226
|
-
.filter((e) => e != null)
|
|
3227
|
-
.map((entry) => {
|
|
3228
|
-
if (entry === null) {
|
|
3229
|
-
return null;
|
|
3230
|
-
}
|
|
3231
|
-
return __expectString(entry);
|
|
2561
|
+
return take(output, {
|
|
2562
|
+
adjustedCvss: (_) => de_CvssScoreDetails(_, context),
|
|
3232
2563
|
});
|
|
3233
|
-
return retVal;
|
|
3234
|
-
};
|
|
3235
|
-
const de_IpV6AddressList = (output, context) => {
|
|
3236
|
-
const retVal = (output || [])
|
|
3237
|
-
.filter((e) => e != null)
|
|
3238
|
-
.map((entry) => {
|
|
3239
|
-
if (entry === null) {
|
|
3240
|
-
return null;
|
|
3241
|
-
}
|
|
3242
|
-
return __expectString(entry);
|
|
3243
|
-
});
|
|
3244
|
-
return retVal;
|
|
3245
2564
|
};
|
|
3246
2565
|
const de_LambdaFunctionAggregationResponse = (output, context) => {
|
|
3247
|
-
return {
|
|
3248
|
-
accountId: __expectString
|
|
3249
|
-
functionName: __expectString
|
|
3250
|
-
lambdaTags:
|
|
3251
|
-
lastModifiedAt:
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
runtime: __expectString(output.runtime),
|
|
3256
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3257
|
-
};
|
|
3258
|
-
};
|
|
3259
|
-
const de_LambdaFunctionMetadata = (output, context) => {
|
|
3260
|
-
return {
|
|
3261
|
-
functionName: __expectString(output.functionName),
|
|
3262
|
-
functionTags: output.functionTags != null ? de_TagMap(output.functionTags, context) : undefined,
|
|
3263
|
-
layers: output.layers != null ? de_LambdaLayerList(output.layers, context) : undefined,
|
|
3264
|
-
runtime: __expectString(output.runtime),
|
|
3265
|
-
};
|
|
3266
|
-
};
|
|
3267
|
-
const de_LambdaLayerAggregationResponse = (output, context) => {
|
|
3268
|
-
return {
|
|
3269
|
-
accountId: __expectString(output.accountId),
|
|
3270
|
-
functionName: __expectString(output.functionName),
|
|
3271
|
-
layerArn: __expectString(output.layerArn),
|
|
3272
|
-
resourceId: __expectString(output.resourceId),
|
|
3273
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3274
|
-
};
|
|
3275
|
-
};
|
|
3276
|
-
const de_LambdaLayerList = (output, context) => {
|
|
3277
|
-
const retVal = (output || [])
|
|
3278
|
-
.filter((e) => e != null)
|
|
3279
|
-
.map((entry) => {
|
|
3280
|
-
if (entry === null) {
|
|
3281
|
-
return null;
|
|
3282
|
-
}
|
|
3283
|
-
return __expectString(entry);
|
|
3284
|
-
});
|
|
3285
|
-
return retVal;
|
|
3286
|
-
};
|
|
3287
|
-
const de_LambdaVpcConfig = (output, context) => {
|
|
3288
|
-
return {
|
|
3289
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIdList(output.securityGroupIds, context) : undefined,
|
|
3290
|
-
subnetIds: output.subnetIds != null ? de_SubnetIdList(output.subnetIds, context) : undefined,
|
|
3291
|
-
vpcId: __expectString(output.vpcId),
|
|
3292
|
-
};
|
|
3293
|
-
};
|
|
3294
|
-
const de_LayerList = (output, context) => {
|
|
3295
|
-
const retVal = (output || [])
|
|
3296
|
-
.filter((e) => e != null)
|
|
3297
|
-
.map((entry) => {
|
|
3298
|
-
if (entry === null) {
|
|
3299
|
-
return null;
|
|
3300
|
-
}
|
|
3301
|
-
return __expectString(entry);
|
|
2566
|
+
return take(output, {
|
|
2567
|
+
accountId: __expectString,
|
|
2568
|
+
functionName: __expectString,
|
|
2569
|
+
lambdaTags: _json,
|
|
2570
|
+
lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2571
|
+
resourceId: __expectString,
|
|
2572
|
+
runtime: __expectString,
|
|
2573
|
+
severityCounts: _json,
|
|
3302
2574
|
});
|
|
3303
|
-
return retVal;
|
|
3304
|
-
};
|
|
3305
|
-
const de_MapFilter = (output, context) => {
|
|
3306
|
-
return {
|
|
3307
|
-
comparison: __expectString(output.comparison),
|
|
3308
|
-
key: __expectString(output.key),
|
|
3309
|
-
value: __expectString(output.value),
|
|
3310
|
-
};
|
|
3311
|
-
};
|
|
3312
|
-
const de_MapFilterList = (output, context) => {
|
|
3313
|
-
const retVal = (output || [])
|
|
3314
|
-
.filter((e) => e != null)
|
|
3315
|
-
.map((entry) => {
|
|
3316
|
-
if (entry === null) {
|
|
3317
|
-
return null;
|
|
3318
|
-
}
|
|
3319
|
-
return de_MapFilter(entry, context);
|
|
3320
|
-
});
|
|
3321
|
-
return retVal;
|
|
3322
2575
|
};
|
|
3323
2576
|
const de_Member = (output, context) => {
|
|
3324
|
-
return {
|
|
3325
|
-
accountId: __expectString
|
|
3326
|
-
delegatedAdminAccountId: __expectString
|
|
3327
|
-
relationshipStatus: __expectString
|
|
3328
|
-
updatedAt:
|
|
3329
|
-
};
|
|
2577
|
+
return take(output, {
|
|
2578
|
+
accountId: __expectString,
|
|
2579
|
+
delegatedAdminAccountId: __expectString,
|
|
2580
|
+
relationshipStatus: __expectString,
|
|
2581
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2582
|
+
});
|
|
3330
2583
|
};
|
|
3331
2584
|
const de_MemberList = (output, context) => {
|
|
3332
2585
|
const retVal = (output || [])
|
|
3333
2586
|
.filter((e) => e != null)
|
|
3334
2587
|
.map((entry) => {
|
|
3335
|
-
if (entry === null) {
|
|
3336
|
-
return null;
|
|
3337
|
-
}
|
|
3338
2588
|
return de_Member(entry, context);
|
|
3339
2589
|
});
|
|
3340
2590
|
return retVal;
|
|
3341
2591
|
};
|
|
3342
|
-
const de_NetworkPath = (output, context) => {
|
|
3343
|
-
return {
|
|
3344
|
-
steps: output.steps != null ? de_StepList(output.steps, context) : undefined,
|
|
3345
|
-
};
|
|
3346
|
-
};
|
|
3347
|
-
const de_NetworkReachabilityDetails = (output, context) => {
|
|
3348
|
-
return {
|
|
3349
|
-
networkPath: output.networkPath != null ? de_NetworkPath(output.networkPath, context) : undefined,
|
|
3350
|
-
openPortRange: output.openPortRange != null ? de_PortRange(output.openPortRange, context) : undefined,
|
|
3351
|
-
protocol: __expectString(output.protocol),
|
|
3352
|
-
};
|
|
3353
|
-
};
|
|
3354
|
-
const de_NonEmptyStringList = (output, context) => {
|
|
3355
|
-
const retVal = (output || [])
|
|
3356
|
-
.filter((e) => e != null)
|
|
3357
|
-
.map((entry) => {
|
|
3358
|
-
if (entry === null) {
|
|
3359
|
-
return null;
|
|
3360
|
-
}
|
|
3361
|
-
return __expectString(entry);
|
|
3362
|
-
});
|
|
3363
|
-
return retVal;
|
|
3364
|
-
};
|
|
3365
2592
|
const de_NumberFilter = (output, context) => {
|
|
3366
|
-
return {
|
|
3367
|
-
lowerInclusive: __limitedParseDouble
|
|
3368
|
-
upperInclusive: __limitedParseDouble
|
|
3369
|
-
};
|
|
2593
|
+
return take(output, {
|
|
2594
|
+
lowerInclusive: __limitedParseDouble,
|
|
2595
|
+
upperInclusive: __limitedParseDouble,
|
|
2596
|
+
});
|
|
3370
2597
|
};
|
|
3371
2598
|
const de_NumberFilterList = (output, context) => {
|
|
3372
2599
|
const retVal = (output || [])
|
|
3373
2600
|
.filter((e) => e != null)
|
|
3374
2601
|
.map((entry) => {
|
|
3375
|
-
if (entry === null) {
|
|
3376
|
-
return null;
|
|
3377
|
-
}
|
|
3378
2602
|
return de_NumberFilter(entry, context);
|
|
3379
2603
|
});
|
|
3380
2604
|
return retVal;
|
|
3381
2605
|
};
|
|
3382
|
-
const de_PackageAggregationResponse = (output, context) => {
|
|
3383
|
-
return {
|
|
3384
|
-
accountId: __expectString(output.accountId),
|
|
3385
|
-
packageName: __expectString(output.packageName),
|
|
3386
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3387
|
-
};
|
|
3388
|
-
};
|
|
3389
2606
|
const de_PackageFilter = (output, context) => {
|
|
3390
|
-
return {
|
|
3391
|
-
architecture:
|
|
3392
|
-
epoch:
|
|
3393
|
-
name:
|
|
3394
|
-
release:
|
|
3395
|
-
sourceLambdaLayerArn:
|
|
3396
|
-
sourceLayerHash:
|
|
3397
|
-
version:
|
|
3398
|
-
};
|
|
2607
|
+
return take(output, {
|
|
2608
|
+
architecture: _json,
|
|
2609
|
+
epoch: (_) => de_NumberFilter(_, context),
|
|
2610
|
+
name: _json,
|
|
2611
|
+
release: _json,
|
|
2612
|
+
sourceLambdaLayerArn: _json,
|
|
2613
|
+
sourceLayerHash: _json,
|
|
2614
|
+
version: _json,
|
|
2615
|
+
});
|
|
3399
2616
|
};
|
|
3400
2617
|
const de_PackageFilterList = (output, context) => {
|
|
3401
2618
|
const retVal = (output || [])
|
|
3402
2619
|
.filter((e) => e != null)
|
|
3403
2620
|
.map((entry) => {
|
|
3404
|
-
if (entry === null) {
|
|
3405
|
-
return null;
|
|
3406
|
-
}
|
|
3407
2621
|
return de_PackageFilter(entry, context);
|
|
3408
2622
|
});
|
|
3409
2623
|
return retVal;
|
|
3410
2624
|
};
|
|
3411
2625
|
const de_PackageVulnerabilityDetails = (output, context) => {
|
|
3412
|
-
return {
|
|
3413
|
-
cvss:
|
|
3414
|
-
referenceUrls:
|
|
3415
|
-
relatedVulnerabilities:
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
vendorSeverity: __expectString(output.vendorSeverity),
|
|
3424
|
-
vendorUpdatedAt: output.vendorUpdatedAt != null
|
|
3425
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
|
|
3426
|
-
: undefined,
|
|
3427
|
-
vulnerabilityId: __expectString(output.vulnerabilityId),
|
|
3428
|
-
vulnerablePackages: output.vulnerablePackages != null ? de_VulnerablePackageList(output.vulnerablePackages, context) : undefined,
|
|
3429
|
-
};
|
|
3430
|
-
};
|
|
3431
|
-
const de_Permission = (output, context) => {
|
|
3432
|
-
return {
|
|
3433
|
-
operation: __expectString(output.operation),
|
|
3434
|
-
service: __expectString(output.service),
|
|
3435
|
-
};
|
|
3436
|
-
};
|
|
3437
|
-
const de_Permissions = (output, context) => {
|
|
3438
|
-
const retVal = (output || [])
|
|
3439
|
-
.filter((e) => e != null)
|
|
3440
|
-
.map((entry) => {
|
|
3441
|
-
if (entry === null) {
|
|
3442
|
-
return null;
|
|
3443
|
-
}
|
|
3444
|
-
return de_Permission(entry, context);
|
|
3445
|
-
});
|
|
3446
|
-
return retVal;
|
|
3447
|
-
};
|
|
3448
|
-
const de_PortRange = (output, context) => {
|
|
3449
|
-
return {
|
|
3450
|
-
begin: __expectInt32(output.begin),
|
|
3451
|
-
end: __expectInt32(output.end),
|
|
3452
|
-
};
|
|
3453
|
-
};
|
|
3454
|
-
const de_PortRangeFilter = (output, context) => {
|
|
3455
|
-
return {
|
|
3456
|
-
beginInclusive: __expectInt32(output.beginInclusive),
|
|
3457
|
-
endInclusive: __expectInt32(output.endInclusive),
|
|
3458
|
-
};
|
|
3459
|
-
};
|
|
3460
|
-
const de_PortRangeFilterList = (output, context) => {
|
|
3461
|
-
const retVal = (output || [])
|
|
3462
|
-
.filter((e) => e != null)
|
|
3463
|
-
.map((entry) => {
|
|
3464
|
-
if (entry === null) {
|
|
3465
|
-
return null;
|
|
3466
|
-
}
|
|
3467
|
-
return de_PortRangeFilter(entry, context);
|
|
2626
|
+
return take(output, {
|
|
2627
|
+
cvss: (_) => de_CvssScoreList(_, context),
|
|
2628
|
+
referenceUrls: _json,
|
|
2629
|
+
relatedVulnerabilities: _json,
|
|
2630
|
+
source: __expectString,
|
|
2631
|
+
sourceUrl: __expectString,
|
|
2632
|
+
vendorCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2633
|
+
vendorSeverity: __expectString,
|
|
2634
|
+
vendorUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2635
|
+
vulnerabilityId: __expectString,
|
|
2636
|
+
vulnerablePackages: _json,
|
|
3468
2637
|
});
|
|
3469
|
-
return retVal;
|
|
3470
|
-
};
|
|
3471
|
-
const de_Recommendation = (output, context) => {
|
|
3472
|
-
return {
|
|
3473
|
-
Url: __expectString(output.Url),
|
|
3474
|
-
text: __expectString(output.text),
|
|
3475
|
-
};
|
|
3476
|
-
};
|
|
3477
|
-
const de_Remediation = (output, context) => {
|
|
3478
|
-
return {
|
|
3479
|
-
recommendation: output.recommendation != null ? de_Recommendation(output.recommendation, context) : undefined,
|
|
3480
|
-
};
|
|
3481
|
-
};
|
|
3482
|
-
const de_RepositoryAggregationResponse = (output, context) => {
|
|
3483
|
-
return {
|
|
3484
|
-
accountId: __expectString(output.accountId),
|
|
3485
|
-
affectedImages: __expectLong(output.affectedImages),
|
|
3486
|
-
repository: __expectString(output.repository),
|
|
3487
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3488
|
-
};
|
|
3489
2638
|
};
|
|
3490
2639
|
const de_Resource = (output, context) => {
|
|
3491
|
-
return {
|
|
3492
|
-
details:
|
|
3493
|
-
id: __expectString
|
|
3494
|
-
partition: __expectString
|
|
3495
|
-
region: __expectString
|
|
3496
|
-
tags:
|
|
3497
|
-
type: __expectString
|
|
3498
|
-
};
|
|
2640
|
+
return take(output, {
|
|
2641
|
+
details: (_) => de_ResourceDetails(_, context),
|
|
2642
|
+
id: __expectString,
|
|
2643
|
+
partition: __expectString,
|
|
2644
|
+
region: __expectString,
|
|
2645
|
+
tags: _json,
|
|
2646
|
+
type: __expectString,
|
|
2647
|
+
});
|
|
3499
2648
|
};
|
|
3500
2649
|
const de_ResourceDetails = (output, context) => {
|
|
3501
|
-
return {
|
|
3502
|
-
awsEc2Instance:
|
|
3503
|
-
awsEcrContainerImage:
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
awsLambdaFunction: output.awsLambdaFunction != null ? de_AwsLambdaFunctionDetails(output.awsLambdaFunction, context) : undefined,
|
|
3507
|
-
};
|
|
2650
|
+
return take(output, {
|
|
2651
|
+
awsEc2Instance: (_) => de_AwsEc2InstanceDetails(_, context),
|
|
2652
|
+
awsEcrContainerImage: (_) => de_AwsEcrContainerImageDetails(_, context),
|
|
2653
|
+
awsLambdaFunction: (_) => de_AwsLambdaFunctionDetails(_, context),
|
|
2654
|
+
});
|
|
3508
2655
|
};
|
|
3509
2656
|
const de_ResourceList = (output, context) => {
|
|
3510
2657
|
const retVal = (output || [])
|
|
3511
2658
|
.filter((e) => e != null)
|
|
3512
2659
|
.map((entry) => {
|
|
3513
|
-
if (entry === null) {
|
|
3514
|
-
return null;
|
|
3515
|
-
}
|
|
3516
2660
|
return de_Resource(entry, context);
|
|
3517
2661
|
});
|
|
3518
2662
|
return retVal;
|
|
3519
2663
|
};
|
|
3520
|
-
const de_ResourceScanMetadata = (output, context) => {
|
|
3521
|
-
return {
|
|
3522
|
-
ec2: output.ec2 != null ? de_Ec2Metadata(output.ec2, context) : undefined,
|
|
3523
|
-
ecrImage: output.ecrImage != null ? de_EcrContainerImageMetadata(output.ecrImage, context) : undefined,
|
|
3524
|
-
ecrRepository: output.ecrRepository != null ? de_EcrRepositoryMetadata(output.ecrRepository, context) : undefined,
|
|
3525
|
-
lambdaFunction: output.lambdaFunction != null ? de_LambdaFunctionMetadata(output.lambdaFunction, context) : undefined,
|
|
3526
|
-
};
|
|
3527
|
-
};
|
|
3528
|
-
const de_ResourceState = (output, context) => {
|
|
3529
|
-
return {
|
|
3530
|
-
ec2: output.ec2 != null ? de_State(output.ec2, context) : undefined,
|
|
3531
|
-
ecr: output.ecr != null ? de_State(output.ecr, context) : undefined,
|
|
3532
|
-
lambda: output.lambda != null ? de_State(output.lambda, context) : undefined,
|
|
3533
|
-
};
|
|
3534
|
-
};
|
|
3535
|
-
const de_ResourceStatus = (output, context) => {
|
|
3536
|
-
return {
|
|
3537
|
-
ec2: __expectString(output.ec2),
|
|
3538
|
-
ecr: __expectString(output.ecr),
|
|
3539
|
-
lambda: __expectString(output.lambda),
|
|
3540
|
-
};
|
|
3541
|
-
};
|
|
3542
|
-
const de_ScanStatus = (output, context) => {
|
|
3543
|
-
return {
|
|
3544
|
-
reason: __expectString(output.reason),
|
|
3545
|
-
statusCode: __expectString(output.statusCode),
|
|
3546
|
-
};
|
|
3547
|
-
};
|
|
3548
|
-
const de_SecurityGroupIdList = (output, context) => {
|
|
3549
|
-
const retVal = (output || [])
|
|
3550
|
-
.filter((e) => e != null)
|
|
3551
|
-
.map((entry) => {
|
|
3552
|
-
if (entry === null) {
|
|
3553
|
-
return null;
|
|
3554
|
-
}
|
|
3555
|
-
return __expectString(entry);
|
|
3556
|
-
});
|
|
3557
|
-
return retVal;
|
|
3558
|
-
};
|
|
3559
|
-
const de_SeverityCounts = (output, context) => {
|
|
3560
|
-
return {
|
|
3561
|
-
all: __expectLong(output.all),
|
|
3562
|
-
critical: __expectLong(output.critical),
|
|
3563
|
-
high: __expectLong(output.high),
|
|
3564
|
-
medium: __expectLong(output.medium),
|
|
3565
|
-
};
|
|
3566
|
-
};
|
|
3567
|
-
const de_State = (output, context) => {
|
|
3568
|
-
return {
|
|
3569
|
-
errorCode: __expectString(output.errorCode),
|
|
3570
|
-
errorMessage: __expectString(output.errorMessage),
|
|
3571
|
-
status: __expectString(output.status),
|
|
3572
|
-
};
|
|
3573
|
-
};
|
|
3574
|
-
const de_Step = (output, context) => {
|
|
3575
|
-
return {
|
|
3576
|
-
componentId: __expectString(output.componentId),
|
|
3577
|
-
componentType: __expectString(output.componentType),
|
|
3578
|
-
};
|
|
3579
|
-
};
|
|
3580
|
-
const de_StepList = (output, context) => {
|
|
3581
|
-
const retVal = (output || [])
|
|
3582
|
-
.filter((e) => e != null)
|
|
3583
|
-
.map((entry) => {
|
|
3584
|
-
if (entry === null) {
|
|
3585
|
-
return null;
|
|
3586
|
-
}
|
|
3587
|
-
return de_Step(entry, context);
|
|
3588
|
-
});
|
|
3589
|
-
return retVal;
|
|
3590
|
-
};
|
|
3591
|
-
const de_StringFilter = (output, context) => {
|
|
3592
|
-
return {
|
|
3593
|
-
comparison: __expectString(output.comparison),
|
|
3594
|
-
value: __expectString(output.value),
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
const de_StringFilterList = (output, context) => {
|
|
3598
|
-
const retVal = (output || [])
|
|
3599
|
-
.filter((e) => e != null)
|
|
3600
|
-
.map((entry) => {
|
|
3601
|
-
if (entry === null) {
|
|
3602
|
-
return null;
|
|
3603
|
-
}
|
|
3604
|
-
return de_StringFilter(entry, context);
|
|
3605
|
-
});
|
|
3606
|
-
return retVal;
|
|
3607
|
-
};
|
|
3608
|
-
const de_StringList = (output, context) => {
|
|
3609
|
-
const retVal = (output || [])
|
|
3610
|
-
.filter((e) => e != null)
|
|
3611
|
-
.map((entry) => {
|
|
3612
|
-
if (entry === null) {
|
|
3613
|
-
return null;
|
|
3614
|
-
}
|
|
3615
|
-
return __expectString(entry);
|
|
3616
|
-
});
|
|
3617
|
-
return retVal;
|
|
3618
|
-
};
|
|
3619
|
-
const de_SubnetIdList = (output, context) => {
|
|
3620
|
-
const retVal = (output || [])
|
|
3621
|
-
.filter((e) => e != null)
|
|
3622
|
-
.map((entry) => {
|
|
3623
|
-
if (entry === null) {
|
|
3624
|
-
return null;
|
|
3625
|
-
}
|
|
3626
|
-
return __expectString(entry);
|
|
3627
|
-
});
|
|
3628
|
-
return retVal;
|
|
3629
|
-
};
|
|
3630
|
-
const de_TagList = (output, context) => {
|
|
3631
|
-
const retVal = (output || [])
|
|
3632
|
-
.filter((e) => e != null)
|
|
3633
|
-
.map((entry) => {
|
|
3634
|
-
if (entry === null) {
|
|
3635
|
-
return null;
|
|
3636
|
-
}
|
|
3637
|
-
return __expectString(entry);
|
|
3638
|
-
});
|
|
3639
|
-
return retVal;
|
|
3640
|
-
};
|
|
3641
|
-
const de_TagMap = (output, context) => {
|
|
3642
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3643
|
-
if (value === null) {
|
|
3644
|
-
return acc;
|
|
3645
|
-
}
|
|
3646
|
-
acc[key] = __expectString(value);
|
|
3647
|
-
return acc;
|
|
3648
|
-
}, {});
|
|
3649
|
-
};
|
|
3650
|
-
const de_TitleAggregationResponse = (output, context) => {
|
|
3651
|
-
return {
|
|
3652
|
-
accountId: __expectString(output.accountId),
|
|
3653
|
-
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3654
|
-
title: __expectString(output.title),
|
|
3655
|
-
vulnerabilityId: __expectString(output.vulnerabilityId),
|
|
3656
|
-
};
|
|
3657
|
-
};
|
|
3658
2664
|
const de_Usage = (output, context) => {
|
|
3659
|
-
return {
|
|
3660
|
-
currency: __expectString
|
|
3661
|
-
estimatedMonthlyCost: __limitedParseDouble
|
|
3662
|
-
total: __limitedParseDouble
|
|
3663
|
-
type: __expectString
|
|
3664
|
-
};
|
|
2665
|
+
return take(output, {
|
|
2666
|
+
currency: __expectString,
|
|
2667
|
+
estimatedMonthlyCost: __limitedParseDouble,
|
|
2668
|
+
total: __limitedParseDouble,
|
|
2669
|
+
type: __expectString,
|
|
2670
|
+
});
|
|
3665
2671
|
};
|
|
3666
2672
|
const de_UsageList = (output, context) => {
|
|
3667
2673
|
const retVal = (output || [])
|
|
3668
2674
|
.filter((e) => e != null)
|
|
3669
2675
|
.map((entry) => {
|
|
3670
|
-
if (entry === null) {
|
|
3671
|
-
return null;
|
|
3672
|
-
}
|
|
3673
2676
|
return de_Usage(entry, context);
|
|
3674
2677
|
});
|
|
3675
2678
|
return retVal;
|
|
3676
2679
|
};
|
|
3677
2680
|
const de_UsageTotal = (output, context) => {
|
|
3678
|
-
return {
|
|
3679
|
-
accountId: __expectString
|
|
3680
|
-
usage:
|
|
3681
|
-
};
|
|
2681
|
+
return take(output, {
|
|
2682
|
+
accountId: __expectString,
|
|
2683
|
+
usage: (_) => de_UsageList(_, context),
|
|
2684
|
+
});
|
|
3682
2685
|
};
|
|
3683
2686
|
const de_UsageTotalList = (output, context) => {
|
|
3684
2687
|
const retVal = (output || [])
|
|
3685
2688
|
.filter((e) => e != null)
|
|
3686
2689
|
.map((entry) => {
|
|
3687
|
-
if (entry === null) {
|
|
3688
|
-
return null;
|
|
3689
|
-
}
|
|
3690
2690
|
return de_UsageTotal(entry, context);
|
|
3691
2691
|
});
|
|
3692
2692
|
return retVal;
|
|
3693
2693
|
};
|
|
3694
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
3695
|
-
return {
|
|
3696
|
-
message: __expectString(output.message),
|
|
3697
|
-
name: __expectString(output.name),
|
|
3698
|
-
};
|
|
3699
|
-
};
|
|
3700
|
-
const de_ValidationExceptionFields = (output, context) => {
|
|
3701
|
-
const retVal = (output || [])
|
|
3702
|
-
.filter((e) => e != null)
|
|
3703
|
-
.map((entry) => {
|
|
3704
|
-
if (entry === null) {
|
|
3705
|
-
return null;
|
|
3706
|
-
}
|
|
3707
|
-
return de_ValidationExceptionField(entry, context);
|
|
3708
|
-
});
|
|
3709
|
-
return retVal;
|
|
3710
|
-
};
|
|
3711
|
-
const de_VulnerabilityIdList = (output, context) => {
|
|
3712
|
-
const retVal = (output || [])
|
|
3713
|
-
.filter((e) => e != null)
|
|
3714
|
-
.map((entry) => {
|
|
3715
|
-
if (entry === null) {
|
|
3716
|
-
return null;
|
|
3717
|
-
}
|
|
3718
|
-
return __expectString(entry);
|
|
3719
|
-
});
|
|
3720
|
-
return retVal;
|
|
3721
|
-
};
|
|
3722
|
-
const de_VulnerablePackage = (output, context) => {
|
|
3723
|
-
return {
|
|
3724
|
-
arch: __expectString(output.arch),
|
|
3725
|
-
epoch: __expectInt32(output.epoch),
|
|
3726
|
-
filePath: __expectString(output.filePath),
|
|
3727
|
-
fixedInVersion: __expectString(output.fixedInVersion),
|
|
3728
|
-
name: __expectString(output.name),
|
|
3729
|
-
packageManager: __expectString(output.packageManager),
|
|
3730
|
-
release: __expectString(output.release),
|
|
3731
|
-
remediation: __expectString(output.remediation),
|
|
3732
|
-
sourceLambdaLayerArn: __expectString(output.sourceLambdaLayerArn),
|
|
3733
|
-
sourceLayerHash: __expectString(output.sourceLayerHash),
|
|
3734
|
-
version: __expectString(output.version),
|
|
3735
|
-
};
|
|
3736
|
-
};
|
|
3737
|
-
const de_VulnerablePackageList = (output, context) => {
|
|
3738
|
-
const retVal = (output || [])
|
|
3739
|
-
.filter((e) => e != null)
|
|
3740
|
-
.map((entry) => {
|
|
3741
|
-
if (entry === null) {
|
|
3742
|
-
return null;
|
|
3743
|
-
}
|
|
3744
|
-
return de_VulnerablePackage(entry, context);
|
|
3745
|
-
});
|
|
3746
|
-
return retVal;
|
|
3747
|
-
};
|
|
3748
2694
|
const deserializeMetadata = (output) => ({
|
|
3749
2695
|
httpStatusCode: output.statusCode,
|
|
3750
2696
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|