@aws-sdk/client-inspector2 3.928.0 → 3.930.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.
Files changed (102) hide show
  1. package/dist-cjs/index.js +4089 -4023
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/Inspector2Client.js +2 -0
  4. package/dist-es/commands/AssociateMemberCommand.js +3 -9
  5. package/dist-es/commands/BatchAssociateCodeSecurityScanConfigurationCommand.js +3 -9
  6. package/dist-es/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.js +3 -9
  7. package/dist-es/commands/BatchGetAccountStatusCommand.js +3 -9
  8. package/dist-es/commands/BatchGetCodeSnippetCommand.js +3 -9
  9. package/dist-es/commands/BatchGetFindingDetailsCommand.js +3 -9
  10. package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +3 -9
  11. package/dist-es/commands/BatchGetMemberEc2DeepInspectionStatusCommand.js +3 -9
  12. package/dist-es/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.js +3 -9
  13. package/dist-es/commands/CancelFindingsReportCommand.js +3 -9
  14. package/dist-es/commands/CancelSbomExportCommand.js +3 -9
  15. package/dist-es/commands/CreateCisScanConfigurationCommand.js +3 -9
  16. package/dist-es/commands/CreateCodeSecurityIntegrationCommand.js +3 -10
  17. package/dist-es/commands/CreateCodeSecurityScanConfigurationCommand.js +3 -9
  18. package/dist-es/commands/CreateFilterCommand.js +3 -9
  19. package/dist-es/commands/CreateFindingsReportCommand.js +3 -9
  20. package/dist-es/commands/CreateSbomExportCommand.js +3 -9
  21. package/dist-es/commands/DeleteCisScanConfigurationCommand.js +3 -9
  22. package/dist-es/commands/DeleteCodeSecurityIntegrationCommand.js +3 -9
  23. package/dist-es/commands/DeleteCodeSecurityScanConfigurationCommand.js +3 -9
  24. package/dist-es/commands/DeleteFilterCommand.js +3 -9
  25. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -9
  26. package/dist-es/commands/DisableCommand.js +3 -9
  27. package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +3 -9
  28. package/dist-es/commands/DisassociateMemberCommand.js +3 -9
  29. package/dist-es/commands/EnableCommand.js +3 -9
  30. package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +3 -9
  31. package/dist-es/commands/GetCisScanReportCommand.js +3 -9
  32. package/dist-es/commands/GetCisScanResultDetailsCommand.js +3 -9
  33. package/dist-es/commands/GetClustersForImageCommand.js +3 -9
  34. package/dist-es/commands/GetCodeSecurityIntegrationCommand.js +3 -10
  35. package/dist-es/commands/GetCodeSecurityScanCommand.js +3 -9
  36. package/dist-es/commands/GetCodeSecurityScanConfigurationCommand.js +3 -9
  37. package/dist-es/commands/GetConfigurationCommand.js +3 -9
  38. package/dist-es/commands/GetDelegatedAdminAccountCommand.js +3 -9
  39. package/dist-es/commands/GetEc2DeepInspectionConfigurationCommand.js +3 -9
  40. package/dist-es/commands/GetEncryptionKeyCommand.js +3 -9
  41. package/dist-es/commands/GetFindingsReportStatusCommand.js +3 -9
  42. package/dist-es/commands/GetMemberCommand.js +3 -9
  43. package/dist-es/commands/GetSbomExportCommand.js +3 -9
  44. package/dist-es/commands/ListAccountPermissionsCommand.js +3 -9
  45. package/dist-es/commands/ListCisScanConfigurationsCommand.js +3 -9
  46. package/dist-es/commands/ListCisScanResultsAggregatedByChecksCommand.js +3 -9
  47. package/dist-es/commands/ListCisScanResultsAggregatedByTargetResourceCommand.js +3 -9
  48. package/dist-es/commands/ListCisScansCommand.js +3 -9
  49. package/dist-es/commands/ListCodeSecurityIntegrationsCommand.js +3 -9
  50. package/dist-es/commands/ListCodeSecurityScanConfigurationAssociationsCommand.js +3 -9
  51. package/dist-es/commands/ListCodeSecurityScanConfigurationsCommand.js +3 -9
  52. package/dist-es/commands/ListCoverageCommand.js +3 -9
  53. package/dist-es/commands/ListCoverageStatisticsCommand.js +3 -9
  54. package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +3 -9
  55. package/dist-es/commands/ListFiltersCommand.js +3 -9
  56. package/dist-es/commands/ListFindingAggregationsCommand.js +3 -9
  57. package/dist-es/commands/ListFindingsCommand.js +3 -9
  58. package/dist-es/commands/ListMembersCommand.js +3 -9
  59. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  60. package/dist-es/commands/ListUsageTotalsCommand.js +3 -9
  61. package/dist-es/commands/ResetEncryptionKeyCommand.js +3 -9
  62. package/dist-es/commands/SearchVulnerabilitiesCommand.js +3 -9
  63. package/dist-es/commands/SendCisSessionHealthCommand.js +3 -9
  64. package/dist-es/commands/SendCisSessionTelemetryCommand.js +3 -9
  65. package/dist-es/commands/StartCisSessionCommand.js +3 -9
  66. package/dist-es/commands/StartCodeSecurityScanCommand.js +3 -9
  67. package/dist-es/commands/StopCisSessionCommand.js +3 -9
  68. package/dist-es/commands/TagResourceCommand.js +3 -9
  69. package/dist-es/commands/UntagResourceCommand.js +3 -9
  70. package/dist-es/commands/UpdateCisScanConfigurationCommand.js +3 -9
  71. package/dist-es/commands/UpdateCodeSecurityIntegrationCommand.js +3 -10
  72. package/dist-es/commands/UpdateCodeSecurityScanConfigurationCommand.js +3 -9
  73. package/dist-es/commands/UpdateConfigurationCommand.js +3 -9
  74. package/dist-es/commands/UpdateEc2DeepInspectionConfigurationCommand.js +3 -9
  75. package/dist-es/commands/UpdateEncryptionKeyCommand.js +3 -9
  76. package/dist-es/commands/UpdateFilterCommand.js +3 -9
  77. package/dist-es/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.js +3 -9
  78. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -9
  79. package/dist-es/models/models_0.js +0 -120
  80. package/dist-es/models/models_1.js +0 -35
  81. package/dist-es/runtimeConfig.shared.js +2 -0
  82. package/dist-es/schemas/schemas_0.js +3848 -0
  83. package/dist-types/Inspector2Client.d.ts +10 -1
  84. package/dist-types/models/models_0.d.ts +24 -22
  85. package/dist-types/models/models_1.d.ts +4 -21
  86. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  87. package/dist-types/runtimeConfig.d.ts +1 -0
  88. package/dist-types/runtimeConfig.native.d.ts +1 -0
  89. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  90. package/dist-types/schemas/schemas_0.d.ts +550 -0
  91. package/dist-types/ts3.4/Inspector2Client.d.ts +4 -0
  92. package/dist-types/ts3.4/models/models_0.d.ts +0 -18
  93. package/dist-types/ts3.4/models/models_1.d.ts +0 -16
  94. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  95. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  97. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  98. package/dist-types/ts3.4/schemas/schemas_0.d.ts +557 -0
  99. package/package.json +33 -34
  100. package/dist-es/protocols/Aws_restJson1.js +0 -3204
  101. package/dist-types/protocols/Aws_restJson1.d.ts +0 -677
  102. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -905
@@ -1,3204 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { Inspector2ServiceException as __BaseException } from "../models/Inspector2ServiceException";
6
- import { AccessDeniedException, AggregationRequest, BadRequestException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
7
- export const se_AssociateMemberCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/members/associate");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- accountId: [],
16
- }));
17
- b.m("POST").h(headers).b(body);
18
- return b.build();
19
- };
20
- export const se_BatchAssociateCodeSecurityScanConfigurationCommand = async (input, context) => {
21
- const b = rb(input, context);
22
- const headers = {
23
- "content-type": "application/json",
24
- };
25
- b.bp("/codesecurity/scan-configuration/batch/associate");
26
- let body;
27
- body = JSON.stringify(take(input, {
28
- associateConfigurationRequests: (_) => _json(_),
29
- }));
30
- b.m("POST").h(headers).b(body);
31
- return b.build();
32
- };
33
- export const se_BatchDisassociateCodeSecurityScanConfigurationCommand = async (input, context) => {
34
- const b = rb(input, context);
35
- const headers = {
36
- "content-type": "application/json",
37
- };
38
- b.bp("/codesecurity/scan-configuration/batch/disassociate");
39
- let body;
40
- body = JSON.stringify(take(input, {
41
- disassociateConfigurationRequests: (_) => _json(_),
42
- }));
43
- b.m("POST").h(headers).b(body);
44
- return b.build();
45
- };
46
- export const se_BatchGetAccountStatusCommand = async (input, context) => {
47
- const b = rb(input, context);
48
- const headers = {
49
- "content-type": "application/json",
50
- };
51
- b.bp("/status/batch/get");
52
- let body;
53
- body = JSON.stringify(take(input, {
54
- accountIds: (_) => _json(_),
55
- }));
56
- b.m("POST").h(headers).b(body);
57
- return b.build();
58
- };
59
- export const se_BatchGetCodeSnippetCommand = async (input, context) => {
60
- const b = rb(input, context);
61
- const headers = {
62
- "content-type": "application/json",
63
- };
64
- b.bp("/codesnippet/batchget");
65
- let body;
66
- body = JSON.stringify(take(input, {
67
- findingArns: (_) => _json(_),
68
- }));
69
- b.m("POST").h(headers).b(body);
70
- return b.build();
71
- };
72
- export const se_BatchGetFindingDetailsCommand = async (input, context) => {
73
- const b = rb(input, context);
74
- const headers = {
75
- "content-type": "application/json",
76
- };
77
- b.bp("/findings/details/batch/get");
78
- let body;
79
- body = JSON.stringify(take(input, {
80
- findingArns: (_) => _json(_),
81
- }));
82
- b.m("POST").h(headers).b(body);
83
- return b.build();
84
- };
85
- export const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
86
- const b = rb(input, context);
87
- const headers = {
88
- "content-type": "application/json",
89
- };
90
- b.bp("/freetrialinfo/batchget");
91
- let body;
92
- body = JSON.stringify(take(input, {
93
- accountIds: (_) => _json(_),
94
- }));
95
- b.m("POST").h(headers).b(body);
96
- return b.build();
97
- };
98
- export const se_BatchGetMemberEc2DeepInspectionStatusCommand = async (input, context) => {
99
- const b = rb(input, context);
100
- const headers = {
101
- "content-type": "application/json",
102
- };
103
- b.bp("/ec2deepinspectionstatus/member/batch/get");
104
- let body;
105
- body = JSON.stringify(take(input, {
106
- accountIds: (_) => _json(_),
107
- }));
108
- b.m("POST").h(headers).b(body);
109
- return b.build();
110
- };
111
- export const se_BatchUpdateMemberEc2DeepInspectionStatusCommand = async (input, context) => {
112
- const b = rb(input, context);
113
- const headers = {
114
- "content-type": "application/json",
115
- };
116
- b.bp("/ec2deepinspectionstatus/member/batch/update");
117
- let body;
118
- body = JSON.stringify(take(input, {
119
- accountIds: (_) => _json(_),
120
- }));
121
- b.m("POST").h(headers).b(body);
122
- return b.build();
123
- };
124
- export const se_CancelFindingsReportCommand = async (input, context) => {
125
- const b = rb(input, context);
126
- const headers = {
127
- "content-type": "application/json",
128
- };
129
- b.bp("/reporting/cancel");
130
- let body;
131
- body = JSON.stringify(take(input, {
132
- reportId: [],
133
- }));
134
- b.m("POST").h(headers).b(body);
135
- return b.build();
136
- };
137
- export const se_CancelSbomExportCommand = async (input, context) => {
138
- const b = rb(input, context);
139
- const headers = {
140
- "content-type": "application/json",
141
- };
142
- b.bp("/sbomexport/cancel");
143
- let body;
144
- body = JSON.stringify(take(input, {
145
- reportId: [],
146
- }));
147
- b.m("POST").h(headers).b(body);
148
- return b.build();
149
- };
150
- export const se_CreateCisScanConfigurationCommand = async (input, context) => {
151
- const b = rb(input, context);
152
- const headers = {
153
- "content-type": "application/json",
154
- };
155
- b.bp("/cis/scan-configuration/create");
156
- let body;
157
- body = JSON.stringify(take(input, {
158
- scanName: [],
159
- schedule: (_) => _json(_),
160
- securityLevel: [],
161
- tags: (_) => _json(_),
162
- targets: (_) => _json(_),
163
- }));
164
- b.m("POST").h(headers).b(body);
165
- return b.build();
166
- };
167
- export const se_CreateCodeSecurityIntegrationCommand = async (input, context) => {
168
- const b = rb(input, context);
169
- const headers = {
170
- "content-type": "application/json",
171
- };
172
- b.bp("/codesecurity/integration/create");
173
- let body;
174
- body = JSON.stringify(take(input, {
175
- details: (_) => _json(_),
176
- name: [],
177
- tags: (_) => _json(_),
178
- type: [],
179
- }));
180
- b.m("POST").h(headers).b(body);
181
- return b.build();
182
- };
183
- export const se_CreateCodeSecurityScanConfigurationCommand = async (input, context) => {
184
- const b = rb(input, context);
185
- const headers = {
186
- "content-type": "application/json",
187
- };
188
- b.bp("/codesecurity/scan-configuration/create");
189
- let body;
190
- body = JSON.stringify(take(input, {
191
- configuration: (_) => _json(_),
192
- level: [],
193
- name: [],
194
- scopeSettings: (_) => _json(_),
195
- tags: (_) => _json(_),
196
- }));
197
- b.m("POST").h(headers).b(body);
198
- return b.build();
199
- };
200
- export const se_CreateFilterCommand = async (input, context) => {
201
- const b = rb(input, context);
202
- const headers = {
203
- "content-type": "application/json",
204
- };
205
- b.bp("/filters/create");
206
- let body;
207
- body = JSON.stringify(take(input, {
208
- action: [],
209
- description: [],
210
- filterCriteria: (_) => se_FilterCriteria(_, context),
211
- name: [],
212
- reason: [],
213
- tags: (_) => _json(_),
214
- }));
215
- b.m("POST").h(headers).b(body);
216
- return b.build();
217
- };
218
- export const se_CreateFindingsReportCommand = async (input, context) => {
219
- const b = rb(input, context);
220
- const headers = {
221
- "content-type": "application/json",
222
- };
223
- b.bp("/reporting/create");
224
- let body;
225
- body = JSON.stringify(take(input, {
226
- filterCriteria: (_) => se_FilterCriteria(_, context),
227
- reportFormat: [],
228
- s3Destination: (_) => _json(_),
229
- }));
230
- b.m("POST").h(headers).b(body);
231
- return b.build();
232
- };
233
- export const se_CreateSbomExportCommand = async (input, context) => {
234
- const b = rb(input, context);
235
- const headers = {
236
- "content-type": "application/json",
237
- };
238
- b.bp("/sbomexport/create");
239
- let body;
240
- body = JSON.stringify(take(input, {
241
- reportFormat: [],
242
- resourceFilterCriteria: (_) => _json(_),
243
- s3Destination: (_) => _json(_),
244
- }));
245
- b.m("POST").h(headers).b(body);
246
- return b.build();
247
- };
248
- export const se_DeleteCisScanConfigurationCommand = async (input, context) => {
249
- const b = rb(input, context);
250
- const headers = {
251
- "content-type": "application/json",
252
- };
253
- b.bp("/cis/scan-configuration/delete");
254
- let body;
255
- body = JSON.stringify(take(input, {
256
- scanConfigurationArn: [],
257
- }));
258
- b.m("POST").h(headers).b(body);
259
- return b.build();
260
- };
261
- export const se_DeleteCodeSecurityIntegrationCommand = async (input, context) => {
262
- const b = rb(input, context);
263
- const headers = {
264
- "content-type": "application/json",
265
- };
266
- b.bp("/codesecurity/integration/delete");
267
- let body;
268
- body = JSON.stringify(take(input, {
269
- integrationArn: [],
270
- }));
271
- b.m("POST").h(headers).b(body);
272
- return b.build();
273
- };
274
- export const se_DeleteCodeSecurityScanConfigurationCommand = async (input, context) => {
275
- const b = rb(input, context);
276
- const headers = {
277
- "content-type": "application/json",
278
- };
279
- b.bp("/codesecurity/scan-configuration/delete");
280
- let body;
281
- body = JSON.stringify(take(input, {
282
- scanConfigurationArn: [],
283
- }));
284
- b.m("POST").h(headers).b(body);
285
- return b.build();
286
- };
287
- export const se_DeleteFilterCommand = async (input, context) => {
288
- const b = rb(input, context);
289
- const headers = {
290
- "content-type": "application/json",
291
- };
292
- b.bp("/filters/delete");
293
- let body;
294
- body = JSON.stringify(take(input, {
295
- arn: [],
296
- }));
297
- b.m("POST").h(headers).b(body);
298
- return b.build();
299
- };
300
- export const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
301
- const b = rb(input, context);
302
- const headers = {};
303
- b.bp("/organizationconfiguration/describe");
304
- let body;
305
- b.m("POST").h(headers).b(body);
306
- return b.build();
307
- };
308
- export const se_DisableCommand = async (input, context) => {
309
- const b = rb(input, context);
310
- const headers = {
311
- "content-type": "application/json",
312
- };
313
- b.bp("/disable");
314
- let body;
315
- body = JSON.stringify(take(input, {
316
- accountIds: (_) => _json(_),
317
- resourceTypes: (_) => _json(_),
318
- }));
319
- b.m("POST").h(headers).b(body);
320
- return b.build();
321
- };
322
- export const se_DisableDelegatedAdminAccountCommand = async (input, context) => {
323
- const b = rb(input, context);
324
- const headers = {
325
- "content-type": "application/json",
326
- };
327
- b.bp("/delegatedadminaccounts/disable");
328
- let body;
329
- body = JSON.stringify(take(input, {
330
- delegatedAdminAccountId: [],
331
- }));
332
- b.m("POST").h(headers).b(body);
333
- return b.build();
334
- };
335
- export const se_DisassociateMemberCommand = async (input, context) => {
336
- const b = rb(input, context);
337
- const headers = {
338
- "content-type": "application/json",
339
- };
340
- b.bp("/members/disassociate");
341
- let body;
342
- body = JSON.stringify(take(input, {
343
- accountId: [],
344
- }));
345
- b.m("POST").h(headers).b(body);
346
- return b.build();
347
- };
348
- export const se_EnableCommand = async (input, context) => {
349
- const b = rb(input, context);
350
- const headers = {
351
- "content-type": "application/json",
352
- };
353
- b.bp("/enable");
354
- let body;
355
- body = JSON.stringify(take(input, {
356
- accountIds: (_) => _json(_),
357
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
358
- resourceTypes: (_) => _json(_),
359
- }));
360
- b.m("POST").h(headers).b(body);
361
- return b.build();
362
- };
363
- export const se_EnableDelegatedAdminAccountCommand = async (input, context) => {
364
- const b = rb(input, context);
365
- const headers = {
366
- "content-type": "application/json",
367
- };
368
- b.bp("/delegatedadminaccounts/enable");
369
- let body;
370
- body = JSON.stringify(take(input, {
371
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
372
- delegatedAdminAccountId: [],
373
- }));
374
- b.m("POST").h(headers).b(body);
375
- return b.build();
376
- };
377
- export const se_GetCisScanReportCommand = async (input, context) => {
378
- const b = rb(input, context);
379
- const headers = {
380
- "content-type": "application/json",
381
- };
382
- b.bp("/cis/scan/report/get");
383
- let body;
384
- body = JSON.stringify(take(input, {
385
- reportFormat: [],
386
- scanArn: [],
387
- targetAccounts: (_) => _json(_),
388
- }));
389
- b.m("POST").h(headers).b(body);
390
- return b.build();
391
- };
392
- export const se_GetCisScanResultDetailsCommand = async (input, context) => {
393
- const b = rb(input, context);
394
- const headers = {
395
- "content-type": "application/json",
396
- };
397
- b.bp("/cis/scan-result/details/get");
398
- let body;
399
- body = JSON.stringify(take(input, {
400
- accountId: [],
401
- filterCriteria: (_) => _json(_),
402
- maxResults: [],
403
- nextToken: [],
404
- scanArn: [],
405
- sortBy: [],
406
- sortOrder: [],
407
- targetResourceId: [],
408
- }));
409
- b.m("POST").h(headers).b(body);
410
- return b.build();
411
- };
412
- export const se_GetClustersForImageCommand = async (input, context) => {
413
- const b = rb(input, context);
414
- const headers = {
415
- "content-type": "application/json",
416
- };
417
- b.bp("/cluster/get");
418
- let body;
419
- body = JSON.stringify(take(input, {
420
- filter: (_) => _json(_),
421
- maxResults: [],
422
- nextToken: [],
423
- }));
424
- b.m("POST").h(headers).b(body);
425
- return b.build();
426
- };
427
- export const se_GetCodeSecurityIntegrationCommand = async (input, context) => {
428
- const b = rb(input, context);
429
- const headers = {
430
- "content-type": "application/json",
431
- };
432
- b.bp("/codesecurity/integration/get");
433
- let body;
434
- body = JSON.stringify(take(input, {
435
- integrationArn: [],
436
- tags: (_) => _json(_),
437
- }));
438
- b.m("POST").h(headers).b(body);
439
- return b.build();
440
- };
441
- export const se_GetCodeSecurityScanCommand = async (input, context) => {
442
- const b = rb(input, context);
443
- const headers = {
444
- "content-type": "application/json",
445
- };
446
- b.bp("/codesecurity/scan/get");
447
- let body;
448
- body = JSON.stringify(take(input, {
449
- resource: (_) => _json(_),
450
- scanId: [],
451
- }));
452
- b.m("POST").h(headers).b(body);
453
- return b.build();
454
- };
455
- export const se_GetCodeSecurityScanConfigurationCommand = async (input, context) => {
456
- const b = rb(input, context);
457
- const headers = {
458
- "content-type": "application/json",
459
- };
460
- b.bp("/codesecurity/scan-configuration/get");
461
- let body;
462
- body = JSON.stringify(take(input, {
463
- scanConfigurationArn: [],
464
- }));
465
- b.m("POST").h(headers).b(body);
466
- return b.build();
467
- };
468
- export const se_GetConfigurationCommand = async (input, context) => {
469
- const b = rb(input, context);
470
- const headers = {};
471
- b.bp("/configuration/get");
472
- let body;
473
- b.m("POST").h(headers).b(body);
474
- return b.build();
475
- };
476
- export const se_GetDelegatedAdminAccountCommand = async (input, context) => {
477
- const b = rb(input, context);
478
- const headers = {};
479
- b.bp("/delegatedadminaccounts/get");
480
- let body;
481
- b.m("POST").h(headers).b(body);
482
- return b.build();
483
- };
484
- export const se_GetEc2DeepInspectionConfigurationCommand = async (input, context) => {
485
- const b = rb(input, context);
486
- const headers = {};
487
- b.bp("/ec2deepinspectionconfiguration/get");
488
- let body;
489
- b.m("POST").h(headers).b(body);
490
- return b.build();
491
- };
492
- export const se_GetEncryptionKeyCommand = async (input, context) => {
493
- const b = rb(input, context);
494
- const headers = {};
495
- b.bp("/encryptionkey/get");
496
- const query = map({
497
- [_sT]: [, __expectNonNull(input[_sT], `scanType`)],
498
- [_rT]: [, __expectNonNull(input[_rT], `resourceType`)],
499
- });
500
- let body;
501
- b.m("GET").h(headers).q(query).b(body);
502
- return b.build();
503
- };
504
- export const se_GetFindingsReportStatusCommand = async (input, context) => {
505
- const b = rb(input, context);
506
- const headers = {
507
- "content-type": "application/json",
508
- };
509
- b.bp("/reporting/status/get");
510
- let body;
511
- body = JSON.stringify(take(input, {
512
- reportId: [],
513
- }));
514
- b.m("POST").h(headers).b(body);
515
- return b.build();
516
- };
517
- export const se_GetMemberCommand = async (input, context) => {
518
- const b = rb(input, context);
519
- const headers = {
520
- "content-type": "application/json",
521
- };
522
- b.bp("/members/get");
523
- let body;
524
- body = JSON.stringify(take(input, {
525
- accountId: [],
526
- }));
527
- b.m("POST").h(headers).b(body);
528
- return b.build();
529
- };
530
- export const se_GetSbomExportCommand = async (input, context) => {
531
- const b = rb(input, context);
532
- const headers = {
533
- "content-type": "application/json",
534
- };
535
- b.bp("/sbomexport/get");
536
- let body;
537
- body = JSON.stringify(take(input, {
538
- reportId: [],
539
- }));
540
- b.m("POST").h(headers).b(body);
541
- return b.build();
542
- };
543
- export const se_ListAccountPermissionsCommand = async (input, context) => {
544
- const b = rb(input, context);
545
- const headers = {
546
- "content-type": "application/json",
547
- };
548
- b.bp("/accountpermissions/list");
549
- let body;
550
- body = JSON.stringify(take(input, {
551
- maxResults: [],
552
- nextToken: [],
553
- service: [],
554
- }));
555
- b.m("POST").h(headers).b(body);
556
- return b.build();
557
- };
558
- export const se_ListCisScanConfigurationsCommand = async (input, context) => {
559
- const b = rb(input, context);
560
- const headers = {
561
- "content-type": "application/json",
562
- };
563
- b.bp("/cis/scan-configuration/list");
564
- let body;
565
- body = JSON.stringify(take(input, {
566
- filterCriteria: (_) => _json(_),
567
- maxResults: [],
568
- nextToken: [],
569
- sortBy: [],
570
- sortOrder: [],
571
- }));
572
- b.m("POST").h(headers).b(body);
573
- return b.build();
574
- };
575
- export const se_ListCisScanResultsAggregatedByChecksCommand = async (input, context) => {
576
- const b = rb(input, context);
577
- const headers = {
578
- "content-type": "application/json",
579
- };
580
- b.bp("/cis/scan-result/check/list");
581
- let body;
582
- body = JSON.stringify(take(input, {
583
- filterCriteria: (_) => _json(_),
584
- maxResults: [],
585
- nextToken: [],
586
- scanArn: [],
587
- sortBy: [],
588
- sortOrder: [],
589
- }));
590
- b.m("POST").h(headers).b(body);
591
- return b.build();
592
- };
593
- export const se_ListCisScanResultsAggregatedByTargetResourceCommand = async (input, context) => {
594
- const b = rb(input, context);
595
- const headers = {
596
- "content-type": "application/json",
597
- };
598
- b.bp("/cis/scan-result/resource/list");
599
- let body;
600
- body = JSON.stringify(take(input, {
601
- filterCriteria: (_) => _json(_),
602
- maxResults: [],
603
- nextToken: [],
604
- scanArn: [],
605
- sortBy: [],
606
- sortOrder: [],
607
- }));
608
- b.m("POST").h(headers).b(body);
609
- return b.build();
610
- };
611
- export const se_ListCisScansCommand = async (input, context) => {
612
- const b = rb(input, context);
613
- const headers = {
614
- "content-type": "application/json",
615
- };
616
- b.bp("/cis/scan/list");
617
- let body;
618
- body = JSON.stringify(take(input, {
619
- detailLevel: [],
620
- filterCriteria: (_) => se_ListCisScansFilterCriteria(_, context),
621
- maxResults: [],
622
- nextToken: [],
623
- sortBy: [],
624
- sortOrder: [],
625
- }));
626
- b.m("POST").h(headers).b(body);
627
- return b.build();
628
- };
629
- export const se_ListCodeSecurityIntegrationsCommand = async (input, context) => {
630
- const b = rb(input, context);
631
- const headers = {};
632
- b.bp("/codesecurity/integration/list");
633
- const query = map({
634
- [_nT]: [, input[_nT]],
635
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
636
- });
637
- let body;
638
- b.m("POST").h(headers).q(query).b(body);
639
- return b.build();
640
- };
641
- export const se_ListCodeSecurityScanConfigurationAssociationsCommand = async (input, context) => {
642
- const b = rb(input, context);
643
- const headers = {
644
- "content-type": "application/json",
645
- };
646
- b.bp("/codesecurity/scan-configuration/associations/list");
647
- const query = map({
648
- [_nT]: [, input[_nT]],
649
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
650
- });
651
- let body;
652
- body = JSON.stringify(take(input, {
653
- scanConfigurationArn: [],
654
- }));
655
- b.m("POST").h(headers).q(query).b(body);
656
- return b.build();
657
- };
658
- export const se_ListCodeSecurityScanConfigurationsCommand = async (input, context) => {
659
- const b = rb(input, context);
660
- const headers = {};
661
- b.bp("/codesecurity/scan-configuration/list");
662
- const query = map({
663
- [_nT]: [, input[_nT]],
664
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
665
- });
666
- let body;
667
- b.m("POST").h(headers).q(query).b(body);
668
- return b.build();
669
- };
670
- export const se_ListCoverageCommand = async (input, context) => {
671
- const b = rb(input, context);
672
- const headers = {
673
- "content-type": "application/json",
674
- };
675
- b.bp("/coverage/list");
676
- let body;
677
- body = JSON.stringify(take(input, {
678
- filterCriteria: (_) => se_CoverageFilterCriteria(_, context),
679
- maxResults: [],
680
- nextToken: [],
681
- }));
682
- b.m("POST").h(headers).b(body);
683
- return b.build();
684
- };
685
- export const se_ListCoverageStatisticsCommand = async (input, context) => {
686
- const b = rb(input, context);
687
- const headers = {
688
- "content-type": "application/json",
689
- };
690
- b.bp("/coverage/statistics/list");
691
- let body;
692
- body = JSON.stringify(take(input, {
693
- filterCriteria: (_) => se_CoverageFilterCriteria(_, context),
694
- groupBy: [],
695
- nextToken: [],
696
- }));
697
- b.m("POST").h(headers).b(body);
698
- return b.build();
699
- };
700
- export const se_ListDelegatedAdminAccountsCommand = async (input, context) => {
701
- const b = rb(input, context);
702
- const headers = {
703
- "content-type": "application/json",
704
- };
705
- b.bp("/delegatedadminaccounts/list");
706
- let body;
707
- body = JSON.stringify(take(input, {
708
- maxResults: [],
709
- nextToken: [],
710
- }));
711
- b.m("POST").h(headers).b(body);
712
- return b.build();
713
- };
714
- export const se_ListFiltersCommand = async (input, context) => {
715
- const b = rb(input, context);
716
- const headers = {
717
- "content-type": "application/json",
718
- };
719
- b.bp("/filters/list");
720
- let body;
721
- body = JSON.stringify(take(input, {
722
- action: [],
723
- arns: (_) => _json(_),
724
- maxResults: [],
725
- nextToken: [],
726
- }));
727
- b.m("POST").h(headers).b(body);
728
- return b.build();
729
- };
730
- export const se_ListFindingAggregationsCommand = async (input, context) => {
731
- const b = rb(input, context);
732
- const headers = {
733
- "content-type": "application/json",
734
- };
735
- b.bp("/findings/aggregation/list");
736
- let body;
737
- body = JSON.stringify(take(input, {
738
- accountIds: (_) => _json(_),
739
- aggregationRequest: (_) => se_AggregationRequest(_, context),
740
- aggregationType: [],
741
- maxResults: [],
742
- nextToken: [],
743
- }));
744
- b.m("POST").h(headers).b(body);
745
- return b.build();
746
- };
747
- export const se_ListFindingsCommand = async (input, context) => {
748
- const b = rb(input, context);
749
- const headers = {
750
- "content-type": "application/json",
751
- };
752
- b.bp("/findings/list");
753
- let body;
754
- body = JSON.stringify(take(input, {
755
- filterCriteria: (_) => se_FilterCriteria(_, context),
756
- maxResults: [],
757
- nextToken: [],
758
- sortCriteria: (_) => _json(_),
759
- }));
760
- b.m("POST").h(headers).b(body);
761
- return b.build();
762
- };
763
- export const se_ListMembersCommand = async (input, context) => {
764
- const b = rb(input, context);
765
- const headers = {
766
- "content-type": "application/json",
767
- };
768
- b.bp("/members/list");
769
- let body;
770
- body = JSON.stringify(take(input, {
771
- maxResults: [],
772
- nextToken: [],
773
- onlyAssociated: [],
774
- }));
775
- b.m("POST").h(headers).b(body);
776
- return b.build();
777
- };
778
- export const se_ListTagsForResourceCommand = async (input, context) => {
779
- const b = rb(input, context);
780
- const headers = {};
781
- b.bp("/tags/{resourceArn}");
782
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
783
- let body;
784
- b.m("GET").h(headers).b(body);
785
- return b.build();
786
- };
787
- export const se_ListUsageTotalsCommand = async (input, context) => {
788
- const b = rb(input, context);
789
- const headers = {
790
- "content-type": "application/json",
791
- };
792
- b.bp("/usage/list");
793
- let body;
794
- body = JSON.stringify(take(input, {
795
- accountIds: (_) => _json(_),
796
- maxResults: [],
797
- nextToken: [],
798
- }));
799
- b.m("POST").h(headers).b(body);
800
- return b.build();
801
- };
802
- export const se_ResetEncryptionKeyCommand = async (input, context) => {
803
- const b = rb(input, context);
804
- const headers = {
805
- "content-type": "application/json",
806
- };
807
- b.bp("/encryptionkey/reset");
808
- let body;
809
- body = JSON.stringify(take(input, {
810
- resourceType: [],
811
- scanType: [],
812
- }));
813
- b.m("PUT").h(headers).b(body);
814
- return b.build();
815
- };
816
- export const se_SearchVulnerabilitiesCommand = async (input, context) => {
817
- const b = rb(input, context);
818
- const headers = {
819
- "content-type": "application/json",
820
- };
821
- b.bp("/vulnerabilities/search");
822
- let body;
823
- body = JSON.stringify(take(input, {
824
- filterCriteria: (_) => _json(_),
825
- nextToken: [],
826
- }));
827
- b.m("POST").h(headers).b(body);
828
- return b.build();
829
- };
830
- export const se_SendCisSessionHealthCommand = async (input, context) => {
831
- const b = rb(input, context);
832
- const headers = {
833
- "content-type": "application/json",
834
- };
835
- b.bp("/cissession/health/send");
836
- let body;
837
- body = JSON.stringify(take(input, {
838
- scanJobId: [],
839
- sessionToken: [],
840
- }));
841
- b.m("PUT").h(headers).b(body);
842
- return b.build();
843
- };
844
- export const se_SendCisSessionTelemetryCommand = async (input, context) => {
845
- const b = rb(input, context);
846
- const headers = {
847
- "content-type": "application/json",
848
- };
849
- b.bp("/cissession/telemetry/send");
850
- let body;
851
- body = JSON.stringify(take(input, {
852
- messages: (_) => se_CisSessionMessages(_, context),
853
- scanJobId: [],
854
- sessionToken: [],
855
- }));
856
- b.m("PUT").h(headers).b(body);
857
- return b.build();
858
- };
859
- export const se_StartCisSessionCommand = async (input, context) => {
860
- const b = rb(input, context);
861
- const headers = {
862
- "content-type": "application/json",
863
- };
864
- b.bp("/cissession/start");
865
- let body;
866
- body = JSON.stringify(take(input, {
867
- message: (_) => _json(_),
868
- scanJobId: [],
869
- }));
870
- b.m("PUT").h(headers).b(body);
871
- return b.build();
872
- };
873
- export const se_StartCodeSecurityScanCommand = async (input, context) => {
874
- const b = rb(input, context);
875
- const headers = {
876
- "content-type": "application/json",
877
- };
878
- b.bp("/codesecurity/scan/start");
879
- let body;
880
- body = JSON.stringify(take(input, {
881
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
882
- resource: (_) => _json(_),
883
- }));
884
- b.m("POST").h(headers).b(body);
885
- return b.build();
886
- };
887
- export const se_StopCisSessionCommand = async (input, context) => {
888
- const b = rb(input, context);
889
- const headers = {
890
- "content-type": "application/json",
891
- };
892
- b.bp("/cissession/stop");
893
- let body;
894
- body = JSON.stringify(take(input, {
895
- message: (_) => _json(_),
896
- scanJobId: [],
897
- sessionToken: [],
898
- }));
899
- b.m("PUT").h(headers).b(body);
900
- return b.build();
901
- };
902
- export const se_TagResourceCommand = async (input, context) => {
903
- const b = rb(input, context);
904
- const headers = {
905
- "content-type": "application/json",
906
- };
907
- b.bp("/tags/{resourceArn}");
908
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
909
- let body;
910
- body = JSON.stringify(take(input, {
911
- tags: (_) => _json(_),
912
- }));
913
- b.m("POST").h(headers).b(body);
914
- return b.build();
915
- };
916
- export const se_UntagResourceCommand = async (input, context) => {
917
- const b = rb(input, context);
918
- const headers = {};
919
- b.bp("/tags/{resourceArn}");
920
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
921
- const query = map({
922
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
923
- });
924
- let body;
925
- b.m("DELETE").h(headers).q(query).b(body);
926
- return b.build();
927
- };
928
- export const se_UpdateCisScanConfigurationCommand = async (input, context) => {
929
- const b = rb(input, context);
930
- const headers = {
931
- "content-type": "application/json",
932
- };
933
- b.bp("/cis/scan-configuration/update");
934
- let body;
935
- body = JSON.stringify(take(input, {
936
- scanConfigurationArn: [],
937
- scanName: [],
938
- schedule: (_) => _json(_),
939
- securityLevel: [],
940
- targets: (_) => _json(_),
941
- }));
942
- b.m("POST").h(headers).b(body);
943
- return b.build();
944
- };
945
- export const se_UpdateCodeSecurityIntegrationCommand = async (input, context) => {
946
- const b = rb(input, context);
947
- const headers = {
948
- "content-type": "application/json",
949
- };
950
- b.bp("/codesecurity/integration/update");
951
- let body;
952
- body = JSON.stringify(take(input, {
953
- details: (_) => _json(_),
954
- integrationArn: [],
955
- }));
956
- b.m("POST").h(headers).b(body);
957
- return b.build();
958
- };
959
- export const se_UpdateCodeSecurityScanConfigurationCommand = async (input, context) => {
960
- const b = rb(input, context);
961
- const headers = {
962
- "content-type": "application/json",
963
- };
964
- b.bp("/codesecurity/scan-configuration/update");
965
- let body;
966
- body = JSON.stringify(take(input, {
967
- configuration: (_) => _json(_),
968
- scanConfigurationArn: [],
969
- }));
970
- b.m("POST").h(headers).b(body);
971
- return b.build();
972
- };
973
- export const se_UpdateConfigurationCommand = async (input, context) => {
974
- const b = rb(input, context);
975
- const headers = {
976
- "content-type": "application/json",
977
- };
978
- b.bp("/configuration/update");
979
- let body;
980
- body = JSON.stringify(take(input, {
981
- ec2Configuration: (_) => _json(_),
982
- ecrConfiguration: (_) => _json(_),
983
- }));
984
- b.m("POST").h(headers).b(body);
985
- return b.build();
986
- };
987
- export const se_UpdateEc2DeepInspectionConfigurationCommand = async (input, context) => {
988
- const b = rb(input, context);
989
- const headers = {
990
- "content-type": "application/json",
991
- };
992
- b.bp("/ec2deepinspectionconfiguration/update");
993
- let body;
994
- body = JSON.stringify(take(input, {
995
- activateDeepInspection: [],
996
- packagePaths: (_) => _json(_),
997
- }));
998
- b.m("POST").h(headers).b(body);
999
- return b.build();
1000
- };
1001
- export const se_UpdateEncryptionKeyCommand = async (input, context) => {
1002
- const b = rb(input, context);
1003
- const headers = {
1004
- "content-type": "application/json",
1005
- };
1006
- b.bp("/encryptionkey/update");
1007
- let body;
1008
- body = JSON.stringify(take(input, {
1009
- kmsKeyId: [],
1010
- resourceType: [],
1011
- scanType: [],
1012
- }));
1013
- b.m("PUT").h(headers).b(body);
1014
- return b.build();
1015
- };
1016
- export const se_UpdateFilterCommand = async (input, context) => {
1017
- const b = rb(input, context);
1018
- const headers = {
1019
- "content-type": "application/json",
1020
- };
1021
- b.bp("/filters/update");
1022
- let body;
1023
- body = JSON.stringify(take(input, {
1024
- action: [],
1025
- description: [],
1026
- filterArn: [],
1027
- filterCriteria: (_) => se_FilterCriteria(_, context),
1028
- name: [],
1029
- reason: [],
1030
- }));
1031
- b.m("POST").h(headers).b(body);
1032
- return b.build();
1033
- };
1034
- export const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
1035
- const b = rb(input, context);
1036
- const headers = {
1037
- "content-type": "application/json",
1038
- };
1039
- b.bp("/organizationconfiguration/update");
1040
- let body;
1041
- body = JSON.stringify(take(input, {
1042
- autoEnable: (_) => _json(_),
1043
- }));
1044
- b.m("POST").h(headers).b(body);
1045
- return b.build();
1046
- };
1047
- export const se_UpdateOrgEc2DeepInspectionConfigurationCommand = async (input, context) => {
1048
- const b = rb(input, context);
1049
- const headers = {
1050
- "content-type": "application/json",
1051
- };
1052
- b.bp("/ec2deepinspectionconfiguration/org/update");
1053
- let body;
1054
- body = JSON.stringify(take(input, {
1055
- orgPackagePaths: (_) => _json(_),
1056
- }));
1057
- b.m("POST").h(headers).b(body);
1058
- return b.build();
1059
- };
1060
- export const de_AssociateMemberCommand = async (output, context) => {
1061
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1062
- return de_CommandError(output, context);
1063
- }
1064
- const contents = map({
1065
- $metadata: deserializeMetadata(output),
1066
- });
1067
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1068
- const doc = take(data, {
1069
- accountId: __expectString,
1070
- });
1071
- Object.assign(contents, doc);
1072
- return contents;
1073
- };
1074
- export const de_BatchAssociateCodeSecurityScanConfigurationCommand = async (output, context) => {
1075
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1076
- return de_CommandError(output, context);
1077
- }
1078
- const contents = map({
1079
- $metadata: deserializeMetadata(output),
1080
- });
1081
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1082
- const doc = take(data, {
1083
- failedAssociations: _json,
1084
- successfulAssociations: _json,
1085
- });
1086
- Object.assign(contents, doc);
1087
- return contents;
1088
- };
1089
- export const de_BatchDisassociateCodeSecurityScanConfigurationCommand = async (output, context) => {
1090
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1091
- return de_CommandError(output, context);
1092
- }
1093
- const contents = map({
1094
- $metadata: deserializeMetadata(output),
1095
- });
1096
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1097
- const doc = take(data, {
1098
- failedAssociations: _json,
1099
- successfulAssociations: _json,
1100
- });
1101
- Object.assign(contents, doc);
1102
- return contents;
1103
- };
1104
- export const de_BatchGetAccountStatusCommand = async (output, context) => {
1105
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1106
- return de_CommandError(output, context);
1107
- }
1108
- const contents = map({
1109
- $metadata: deserializeMetadata(output),
1110
- });
1111
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1112
- const doc = take(data, {
1113
- accounts: _json,
1114
- failedAccounts: _json,
1115
- });
1116
- Object.assign(contents, doc);
1117
- return contents;
1118
- };
1119
- export const de_BatchGetCodeSnippetCommand = async (output, context) => {
1120
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1121
- return de_CommandError(output, context);
1122
- }
1123
- const contents = map({
1124
- $metadata: deserializeMetadata(output),
1125
- });
1126
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1127
- const doc = take(data, {
1128
- codeSnippetResults: _json,
1129
- errors: _json,
1130
- });
1131
- Object.assign(contents, doc);
1132
- return contents;
1133
- };
1134
- export const de_BatchGetFindingDetailsCommand = async (output, context) => {
1135
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1136
- return de_CommandError(output, context);
1137
- }
1138
- const contents = map({
1139
- $metadata: deserializeMetadata(output),
1140
- });
1141
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1142
- const doc = take(data, {
1143
- errors: _json,
1144
- findingDetails: (_) => de_FindingDetails(_, context),
1145
- });
1146
- Object.assign(contents, doc);
1147
- return contents;
1148
- };
1149
- export const de_BatchGetFreeTrialInfoCommand = async (output, context) => {
1150
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1151
- return de_CommandError(output, context);
1152
- }
1153
- const contents = map({
1154
- $metadata: deserializeMetadata(output),
1155
- });
1156
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1157
- const doc = take(data, {
1158
- accounts: (_) => de_FreeTrialAccountInfoList(_, context),
1159
- failedAccounts: _json,
1160
- });
1161
- Object.assign(contents, doc);
1162
- return contents;
1163
- };
1164
- export const de_BatchGetMemberEc2DeepInspectionStatusCommand = async (output, context) => {
1165
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1166
- return de_CommandError(output, context);
1167
- }
1168
- const contents = map({
1169
- $metadata: deserializeMetadata(output),
1170
- });
1171
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1172
- const doc = take(data, {
1173
- accountIds: _json,
1174
- failedAccountIds: _json,
1175
- });
1176
- Object.assign(contents, doc);
1177
- return contents;
1178
- };
1179
- export const de_BatchUpdateMemberEc2DeepInspectionStatusCommand = async (output, context) => {
1180
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1181
- return de_CommandError(output, context);
1182
- }
1183
- const contents = map({
1184
- $metadata: deserializeMetadata(output),
1185
- });
1186
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1187
- const doc = take(data, {
1188
- accountIds: _json,
1189
- failedAccountIds: _json,
1190
- });
1191
- Object.assign(contents, doc);
1192
- return contents;
1193
- };
1194
- export const de_CancelFindingsReportCommand = async (output, context) => {
1195
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1196
- return de_CommandError(output, context);
1197
- }
1198
- const contents = map({
1199
- $metadata: deserializeMetadata(output),
1200
- });
1201
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1202
- const doc = take(data, {
1203
- reportId: __expectString,
1204
- });
1205
- Object.assign(contents, doc);
1206
- return contents;
1207
- };
1208
- export const de_CancelSbomExportCommand = async (output, context) => {
1209
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1210
- return de_CommandError(output, context);
1211
- }
1212
- const contents = map({
1213
- $metadata: deserializeMetadata(output),
1214
- });
1215
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1216
- const doc = take(data, {
1217
- reportId: __expectString,
1218
- });
1219
- Object.assign(contents, doc);
1220
- return contents;
1221
- };
1222
- export const de_CreateCisScanConfigurationCommand = async (output, context) => {
1223
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1224
- return de_CommandError(output, context);
1225
- }
1226
- const contents = map({
1227
- $metadata: deserializeMetadata(output),
1228
- });
1229
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1230
- const doc = take(data, {
1231
- scanConfigurationArn: __expectString,
1232
- });
1233
- Object.assign(contents, doc);
1234
- return contents;
1235
- };
1236
- export const de_CreateCodeSecurityIntegrationCommand = async (output, context) => {
1237
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1238
- return de_CommandError(output, context);
1239
- }
1240
- const contents = map({
1241
- $metadata: deserializeMetadata(output),
1242
- });
1243
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1244
- const doc = take(data, {
1245
- authorizationUrl: __expectString,
1246
- integrationArn: __expectString,
1247
- status: __expectString,
1248
- });
1249
- Object.assign(contents, doc);
1250
- return contents;
1251
- };
1252
- export const de_CreateCodeSecurityScanConfigurationCommand = async (output, context) => {
1253
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1254
- return de_CommandError(output, context);
1255
- }
1256
- const contents = map({
1257
- $metadata: deserializeMetadata(output),
1258
- });
1259
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1260
- const doc = take(data, {
1261
- scanConfigurationArn: __expectString,
1262
- });
1263
- Object.assign(contents, doc);
1264
- return contents;
1265
- };
1266
- export const de_CreateFilterCommand = async (output, context) => {
1267
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1268
- return de_CommandError(output, context);
1269
- }
1270
- const contents = map({
1271
- $metadata: deserializeMetadata(output),
1272
- });
1273
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1274
- const doc = take(data, {
1275
- arn: __expectString,
1276
- });
1277
- Object.assign(contents, doc);
1278
- return contents;
1279
- };
1280
- export const de_CreateFindingsReportCommand = async (output, context) => {
1281
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1282
- return de_CommandError(output, context);
1283
- }
1284
- const contents = map({
1285
- $metadata: deserializeMetadata(output),
1286
- });
1287
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1288
- const doc = take(data, {
1289
- reportId: __expectString,
1290
- });
1291
- Object.assign(contents, doc);
1292
- return contents;
1293
- };
1294
- export const de_CreateSbomExportCommand = async (output, context) => {
1295
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1296
- return de_CommandError(output, context);
1297
- }
1298
- const contents = map({
1299
- $metadata: deserializeMetadata(output),
1300
- });
1301
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1302
- const doc = take(data, {
1303
- reportId: __expectString,
1304
- });
1305
- Object.assign(contents, doc);
1306
- return contents;
1307
- };
1308
- export const de_DeleteCisScanConfigurationCommand = async (output, context) => {
1309
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
- return de_CommandError(output, context);
1311
- }
1312
- const contents = map({
1313
- $metadata: deserializeMetadata(output),
1314
- });
1315
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1316
- const doc = take(data, {
1317
- scanConfigurationArn: __expectString,
1318
- });
1319
- Object.assign(contents, doc);
1320
- return contents;
1321
- };
1322
- export const de_DeleteCodeSecurityIntegrationCommand = async (output, context) => {
1323
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1324
- return de_CommandError(output, context);
1325
- }
1326
- const contents = map({
1327
- $metadata: deserializeMetadata(output),
1328
- });
1329
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1330
- const doc = take(data, {
1331
- integrationArn: __expectString,
1332
- });
1333
- Object.assign(contents, doc);
1334
- return contents;
1335
- };
1336
- export const de_DeleteCodeSecurityScanConfigurationCommand = async (output, context) => {
1337
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1338
- return de_CommandError(output, context);
1339
- }
1340
- const contents = map({
1341
- $metadata: deserializeMetadata(output),
1342
- });
1343
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1344
- const doc = take(data, {
1345
- scanConfigurationArn: __expectString,
1346
- });
1347
- Object.assign(contents, doc);
1348
- return contents;
1349
- };
1350
- export const de_DeleteFilterCommand = async (output, context) => {
1351
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
- return de_CommandError(output, context);
1353
- }
1354
- const contents = map({
1355
- $metadata: deserializeMetadata(output),
1356
- });
1357
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1358
- const doc = take(data, {
1359
- arn: __expectString,
1360
- });
1361
- Object.assign(contents, doc);
1362
- return contents;
1363
- };
1364
- export const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
1365
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1366
- return de_CommandError(output, context);
1367
- }
1368
- const contents = map({
1369
- $metadata: deserializeMetadata(output),
1370
- });
1371
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1372
- const doc = take(data, {
1373
- autoEnable: _json,
1374
- maxAccountLimitReached: __expectBoolean,
1375
- });
1376
- Object.assign(contents, doc);
1377
- return contents;
1378
- };
1379
- export const de_DisableCommand = async (output, context) => {
1380
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1381
- return de_CommandError(output, context);
1382
- }
1383
- const contents = map({
1384
- $metadata: deserializeMetadata(output),
1385
- });
1386
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1387
- const doc = take(data, {
1388
- accounts: _json,
1389
- failedAccounts: _json,
1390
- });
1391
- Object.assign(contents, doc);
1392
- return contents;
1393
- };
1394
- export const de_DisableDelegatedAdminAccountCommand = async (output, context) => {
1395
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1396
- return de_CommandError(output, context);
1397
- }
1398
- const contents = map({
1399
- $metadata: deserializeMetadata(output),
1400
- });
1401
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1402
- const doc = take(data, {
1403
- delegatedAdminAccountId: __expectString,
1404
- });
1405
- Object.assign(contents, doc);
1406
- return contents;
1407
- };
1408
- export const de_DisassociateMemberCommand = async (output, context) => {
1409
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1410
- return de_CommandError(output, context);
1411
- }
1412
- const contents = map({
1413
- $metadata: deserializeMetadata(output),
1414
- });
1415
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1416
- const doc = take(data, {
1417
- accountId: __expectString,
1418
- });
1419
- Object.assign(contents, doc);
1420
- return contents;
1421
- };
1422
- export const de_EnableCommand = async (output, context) => {
1423
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1424
- return de_CommandError(output, context);
1425
- }
1426
- const contents = map({
1427
- $metadata: deserializeMetadata(output),
1428
- });
1429
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1430
- const doc = take(data, {
1431
- accounts: _json,
1432
- failedAccounts: _json,
1433
- });
1434
- Object.assign(contents, doc);
1435
- return contents;
1436
- };
1437
- export const de_EnableDelegatedAdminAccountCommand = async (output, context) => {
1438
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1439
- return de_CommandError(output, context);
1440
- }
1441
- const contents = map({
1442
- $metadata: deserializeMetadata(output),
1443
- });
1444
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1445
- const doc = take(data, {
1446
- delegatedAdminAccountId: __expectString,
1447
- });
1448
- Object.assign(contents, doc);
1449
- return contents;
1450
- };
1451
- export const de_GetCisScanReportCommand = async (output, context) => {
1452
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1453
- return de_CommandError(output, context);
1454
- }
1455
- const contents = map({
1456
- $metadata: deserializeMetadata(output),
1457
- });
1458
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1459
- const doc = take(data, {
1460
- status: __expectString,
1461
- url: __expectString,
1462
- });
1463
- Object.assign(contents, doc);
1464
- return contents;
1465
- };
1466
- export const de_GetCisScanResultDetailsCommand = async (output, context) => {
1467
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1468
- return de_CommandError(output, context);
1469
- }
1470
- const contents = map({
1471
- $metadata: deserializeMetadata(output),
1472
- });
1473
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1474
- const doc = take(data, {
1475
- nextToken: __expectString,
1476
- scanResultDetails: _json,
1477
- });
1478
- Object.assign(contents, doc);
1479
- return contents;
1480
- };
1481
- export const de_GetClustersForImageCommand = async (output, context) => {
1482
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1483
- return de_CommandError(output, context);
1484
- }
1485
- const contents = map({
1486
- $metadata: deserializeMetadata(output),
1487
- });
1488
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1489
- const doc = take(data, {
1490
- cluster: (_) => de_ClusterInformationList(_, context),
1491
- nextToken: __expectString,
1492
- });
1493
- Object.assign(contents, doc);
1494
- return contents;
1495
- };
1496
- export const de_GetCodeSecurityIntegrationCommand = async (output, context) => {
1497
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1498
- return de_CommandError(output, context);
1499
- }
1500
- const contents = map({
1501
- $metadata: deserializeMetadata(output),
1502
- });
1503
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1504
- const doc = take(data, {
1505
- authorizationUrl: __expectString,
1506
- createdOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1507
- integrationArn: __expectString,
1508
- lastUpdateOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1509
- name: __expectString,
1510
- status: __expectString,
1511
- statusReason: __expectString,
1512
- tags: _json,
1513
- type: __expectString,
1514
- });
1515
- Object.assign(contents, doc);
1516
- return contents;
1517
- };
1518
- export const de_GetCodeSecurityScanCommand = async (output, context) => {
1519
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1520
- return de_CommandError(output, context);
1521
- }
1522
- const contents = map({
1523
- $metadata: deserializeMetadata(output),
1524
- });
1525
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1526
- const doc = take(data, {
1527
- accountId: __expectString,
1528
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1529
- lastCommitId: __expectString,
1530
- resource: (_) => _json(__expectUnion(_)),
1531
- scanId: __expectString,
1532
- status: __expectString,
1533
- statusReason: __expectString,
1534
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1535
- });
1536
- Object.assign(contents, doc);
1537
- return contents;
1538
- };
1539
- export const de_GetCodeSecurityScanConfigurationCommand = async (output, context) => {
1540
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1541
- return de_CommandError(output, context);
1542
- }
1543
- const contents = map({
1544
- $metadata: deserializeMetadata(output),
1545
- });
1546
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1547
- const doc = take(data, {
1548
- configuration: _json,
1549
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1550
- lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1551
- level: __expectString,
1552
- name: __expectString,
1553
- scanConfigurationArn: __expectString,
1554
- scopeSettings: _json,
1555
- tags: _json,
1556
- });
1557
- Object.assign(contents, doc);
1558
- return contents;
1559
- };
1560
- export const de_GetConfigurationCommand = async (output, context) => {
1561
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1562
- return de_CommandError(output, context);
1563
- }
1564
- const contents = map({
1565
- $metadata: deserializeMetadata(output),
1566
- });
1567
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1568
- const doc = take(data, {
1569
- ec2Configuration: _json,
1570
- ecrConfiguration: (_) => de_EcrConfigurationState(_, context),
1571
- });
1572
- Object.assign(contents, doc);
1573
- return contents;
1574
- };
1575
- export const de_GetDelegatedAdminAccountCommand = async (output, context) => {
1576
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1577
- return de_CommandError(output, context);
1578
- }
1579
- const contents = map({
1580
- $metadata: deserializeMetadata(output),
1581
- });
1582
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1583
- const doc = take(data, {
1584
- delegatedAdmin: _json,
1585
- });
1586
- Object.assign(contents, doc);
1587
- return contents;
1588
- };
1589
- export const de_GetEc2DeepInspectionConfigurationCommand = async (output, context) => {
1590
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1591
- return de_CommandError(output, context);
1592
- }
1593
- const contents = map({
1594
- $metadata: deserializeMetadata(output),
1595
- });
1596
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1597
- const doc = take(data, {
1598
- errorMessage: __expectString,
1599
- orgPackagePaths: _json,
1600
- packagePaths: _json,
1601
- status: __expectString,
1602
- });
1603
- Object.assign(contents, doc);
1604
- return contents;
1605
- };
1606
- export const de_GetEncryptionKeyCommand = async (output, context) => {
1607
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1608
- return de_CommandError(output, context);
1609
- }
1610
- const contents = map({
1611
- $metadata: deserializeMetadata(output),
1612
- });
1613
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1614
- const doc = take(data, {
1615
- kmsKeyId: __expectString,
1616
- });
1617
- Object.assign(contents, doc);
1618
- return contents;
1619
- };
1620
- export const de_GetFindingsReportStatusCommand = async (output, context) => {
1621
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1622
- return de_CommandError(output, context);
1623
- }
1624
- const contents = map({
1625
- $metadata: deserializeMetadata(output),
1626
- });
1627
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1628
- const doc = take(data, {
1629
- destination: _json,
1630
- errorCode: __expectString,
1631
- errorMessage: __expectString,
1632
- filterCriteria: (_) => de_FilterCriteria(_, context),
1633
- reportId: __expectString,
1634
- status: __expectString,
1635
- });
1636
- Object.assign(contents, doc);
1637
- return contents;
1638
- };
1639
- export const de_GetMemberCommand = async (output, context) => {
1640
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1641
- return de_CommandError(output, context);
1642
- }
1643
- const contents = map({
1644
- $metadata: deserializeMetadata(output),
1645
- });
1646
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1647
- const doc = take(data, {
1648
- member: (_) => de_Member(_, context),
1649
- });
1650
- Object.assign(contents, doc);
1651
- return contents;
1652
- };
1653
- export const de_GetSbomExportCommand = async (output, context) => {
1654
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1655
- return de_CommandError(output, context);
1656
- }
1657
- const contents = map({
1658
- $metadata: deserializeMetadata(output),
1659
- });
1660
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1661
- const doc = take(data, {
1662
- errorCode: __expectString,
1663
- errorMessage: __expectString,
1664
- filterCriteria: _json,
1665
- format: __expectString,
1666
- reportId: __expectString,
1667
- s3Destination: _json,
1668
- status: __expectString,
1669
- });
1670
- Object.assign(contents, doc);
1671
- return contents;
1672
- };
1673
- export const de_ListAccountPermissionsCommand = async (output, context) => {
1674
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1675
- return de_CommandError(output, context);
1676
- }
1677
- const contents = map({
1678
- $metadata: deserializeMetadata(output),
1679
- });
1680
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1681
- const doc = take(data, {
1682
- nextToken: __expectString,
1683
- permissions: _json,
1684
- });
1685
- Object.assign(contents, doc);
1686
- return contents;
1687
- };
1688
- export const de_ListCisScanConfigurationsCommand = async (output, context) => {
1689
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1690
- return de_CommandError(output, context);
1691
- }
1692
- const contents = map({
1693
- $metadata: deserializeMetadata(output),
1694
- });
1695
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1696
- const doc = take(data, {
1697
- nextToken: __expectString,
1698
- scanConfigurations: _json,
1699
- });
1700
- Object.assign(contents, doc);
1701
- return contents;
1702
- };
1703
- export const de_ListCisScanResultsAggregatedByChecksCommand = async (output, context) => {
1704
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1705
- return de_CommandError(output, context);
1706
- }
1707
- const contents = map({
1708
- $metadata: deserializeMetadata(output),
1709
- });
1710
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1711
- const doc = take(data, {
1712
- checkAggregations: _json,
1713
- nextToken: __expectString,
1714
- });
1715
- Object.assign(contents, doc);
1716
- return contents;
1717
- };
1718
- export const de_ListCisScanResultsAggregatedByTargetResourceCommand = async (output, context) => {
1719
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1720
- return de_CommandError(output, context);
1721
- }
1722
- const contents = map({
1723
- $metadata: deserializeMetadata(output),
1724
- });
1725
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1726
- const doc = take(data, {
1727
- nextToken: __expectString,
1728
- targetResourceAggregations: _json,
1729
- });
1730
- Object.assign(contents, doc);
1731
- return contents;
1732
- };
1733
- export const de_ListCisScansCommand = async (output, context) => {
1734
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1735
- return de_CommandError(output, context);
1736
- }
1737
- const contents = map({
1738
- $metadata: deserializeMetadata(output),
1739
- });
1740
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1741
- const doc = take(data, {
1742
- nextToken: __expectString,
1743
- scans: (_) => de_CisScanList(_, context),
1744
- });
1745
- Object.assign(contents, doc);
1746
- return contents;
1747
- };
1748
- export const de_ListCodeSecurityIntegrationsCommand = async (output, context) => {
1749
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1750
- return de_CommandError(output, context);
1751
- }
1752
- const contents = map({
1753
- $metadata: deserializeMetadata(output),
1754
- });
1755
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1756
- const doc = take(data, {
1757
- integrations: (_) => de_IntegrationSummaries(_, context),
1758
- nextToken: __expectString,
1759
- });
1760
- Object.assign(contents, doc);
1761
- return contents;
1762
- };
1763
- export const de_ListCodeSecurityScanConfigurationAssociationsCommand = async (output, context) => {
1764
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1765
- return de_CommandError(output, context);
1766
- }
1767
- const contents = map({
1768
- $metadata: deserializeMetadata(output),
1769
- });
1770
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1771
- const doc = take(data, {
1772
- associations: _json,
1773
- nextToken: __expectString,
1774
- });
1775
- Object.assign(contents, doc);
1776
- return contents;
1777
- };
1778
- export const de_ListCodeSecurityScanConfigurationsCommand = async (output, context) => {
1779
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1780
- return de_CommandError(output, context);
1781
- }
1782
- const contents = map({
1783
- $metadata: deserializeMetadata(output),
1784
- });
1785
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1786
- const doc = take(data, {
1787
- configurations: _json,
1788
- nextToken: __expectString,
1789
- });
1790
- Object.assign(contents, doc);
1791
- return contents;
1792
- };
1793
- export const de_ListCoverageCommand = async (output, context) => {
1794
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1795
- return de_CommandError(output, context);
1796
- }
1797
- const contents = map({
1798
- $metadata: deserializeMetadata(output),
1799
- });
1800
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1801
- const doc = take(data, {
1802
- coveredResources: (_) => de_CoveredResources(_, context),
1803
- nextToken: __expectString,
1804
- });
1805
- Object.assign(contents, doc);
1806
- return contents;
1807
- };
1808
- export const de_ListCoverageStatisticsCommand = async (output, context) => {
1809
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1810
- return de_CommandError(output, context);
1811
- }
1812
- const contents = map({
1813
- $metadata: deserializeMetadata(output),
1814
- });
1815
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1816
- const doc = take(data, {
1817
- countsByGroup: _json,
1818
- nextToken: __expectString,
1819
- totalCounts: __expectLong,
1820
- });
1821
- Object.assign(contents, doc);
1822
- return contents;
1823
- };
1824
- export const de_ListDelegatedAdminAccountsCommand = async (output, context) => {
1825
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1826
- return de_CommandError(output, context);
1827
- }
1828
- const contents = map({
1829
- $metadata: deserializeMetadata(output),
1830
- });
1831
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1832
- const doc = take(data, {
1833
- delegatedAdminAccounts: _json,
1834
- nextToken: __expectString,
1835
- });
1836
- Object.assign(contents, doc);
1837
- return contents;
1838
- };
1839
- export const de_ListFiltersCommand = async (output, context) => {
1840
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1841
- return de_CommandError(output, context);
1842
- }
1843
- const contents = map({
1844
- $metadata: deserializeMetadata(output),
1845
- });
1846
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1847
- const doc = take(data, {
1848
- filters: (_) => de_FilterList(_, context),
1849
- nextToken: __expectString,
1850
- });
1851
- Object.assign(contents, doc);
1852
- return contents;
1853
- };
1854
- export const de_ListFindingAggregationsCommand = async (output, context) => {
1855
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1856
- return de_CommandError(output, context);
1857
- }
1858
- const contents = map({
1859
- $metadata: deserializeMetadata(output),
1860
- });
1861
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1862
- const doc = take(data, {
1863
- aggregationType: __expectString,
1864
- nextToken: __expectString,
1865
- responses: (_) => de_AggregationResponseList(_, context),
1866
- });
1867
- Object.assign(contents, doc);
1868
- return contents;
1869
- };
1870
- export const de_ListFindingsCommand = async (output, context) => {
1871
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1872
- return de_CommandError(output, context);
1873
- }
1874
- const contents = map({
1875
- $metadata: deserializeMetadata(output),
1876
- });
1877
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1878
- const doc = take(data, {
1879
- findings: (_) => de_FindingList(_, context),
1880
- nextToken: __expectString,
1881
- });
1882
- Object.assign(contents, doc);
1883
- return contents;
1884
- };
1885
- export const de_ListMembersCommand = async (output, context) => {
1886
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1887
- return de_CommandError(output, context);
1888
- }
1889
- const contents = map({
1890
- $metadata: deserializeMetadata(output),
1891
- });
1892
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1893
- const doc = take(data, {
1894
- members: (_) => de_MemberList(_, context),
1895
- nextToken: __expectString,
1896
- });
1897
- Object.assign(contents, doc);
1898
- return contents;
1899
- };
1900
- export const de_ListTagsForResourceCommand = async (output, context) => {
1901
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1902
- return de_CommandError(output, context);
1903
- }
1904
- const contents = map({
1905
- $metadata: deserializeMetadata(output),
1906
- });
1907
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1908
- const doc = take(data, {
1909
- tags: _json,
1910
- });
1911
- Object.assign(contents, doc);
1912
- return contents;
1913
- };
1914
- export const de_ListUsageTotalsCommand = async (output, context) => {
1915
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1916
- return de_CommandError(output, context);
1917
- }
1918
- const contents = map({
1919
- $metadata: deserializeMetadata(output),
1920
- });
1921
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1922
- const doc = take(data, {
1923
- nextToken: __expectString,
1924
- totals: (_) => de_UsageTotalList(_, context),
1925
- });
1926
- Object.assign(contents, doc);
1927
- return contents;
1928
- };
1929
- export const de_ResetEncryptionKeyCommand = async (output, context) => {
1930
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1931
- return de_CommandError(output, context);
1932
- }
1933
- const contents = map({
1934
- $metadata: deserializeMetadata(output),
1935
- });
1936
- await collectBody(output.body, context);
1937
- return contents;
1938
- };
1939
- export const de_SearchVulnerabilitiesCommand = async (output, context) => {
1940
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1941
- return de_CommandError(output, context);
1942
- }
1943
- const contents = map({
1944
- $metadata: deserializeMetadata(output),
1945
- });
1946
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1947
- const doc = take(data, {
1948
- nextToken: __expectString,
1949
- vulnerabilities: (_) => de_Vulnerabilities(_, context),
1950
- });
1951
- Object.assign(contents, doc);
1952
- return contents;
1953
- };
1954
- export const de_SendCisSessionHealthCommand = async (output, context) => {
1955
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1956
- return de_CommandError(output, context);
1957
- }
1958
- const contents = map({
1959
- $metadata: deserializeMetadata(output),
1960
- });
1961
- await collectBody(output.body, context);
1962
- return contents;
1963
- };
1964
- export const de_SendCisSessionTelemetryCommand = async (output, context) => {
1965
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1966
- return de_CommandError(output, context);
1967
- }
1968
- const contents = map({
1969
- $metadata: deserializeMetadata(output),
1970
- });
1971
- await collectBody(output.body, context);
1972
- return contents;
1973
- };
1974
- export const de_StartCisSessionCommand = async (output, context) => {
1975
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1976
- return de_CommandError(output, context);
1977
- }
1978
- const contents = map({
1979
- $metadata: deserializeMetadata(output),
1980
- });
1981
- await collectBody(output.body, context);
1982
- return contents;
1983
- };
1984
- export const de_StartCodeSecurityScanCommand = async (output, context) => {
1985
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1986
- return de_CommandError(output, context);
1987
- }
1988
- const contents = map({
1989
- $metadata: deserializeMetadata(output),
1990
- });
1991
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1992
- const doc = take(data, {
1993
- scanId: __expectString,
1994
- status: __expectString,
1995
- });
1996
- Object.assign(contents, doc);
1997
- return contents;
1998
- };
1999
- export const de_StopCisSessionCommand = async (output, context) => {
2000
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2001
- return de_CommandError(output, context);
2002
- }
2003
- const contents = map({
2004
- $metadata: deserializeMetadata(output),
2005
- });
2006
- await collectBody(output.body, context);
2007
- return contents;
2008
- };
2009
- export const de_TagResourceCommand = async (output, context) => {
2010
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2011
- return de_CommandError(output, context);
2012
- }
2013
- const contents = map({
2014
- $metadata: deserializeMetadata(output),
2015
- });
2016
- await collectBody(output.body, context);
2017
- return contents;
2018
- };
2019
- export const de_UntagResourceCommand = async (output, context) => {
2020
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2021
- return de_CommandError(output, context);
2022
- }
2023
- const contents = map({
2024
- $metadata: deserializeMetadata(output),
2025
- });
2026
- await collectBody(output.body, context);
2027
- return contents;
2028
- };
2029
- export const de_UpdateCisScanConfigurationCommand = async (output, context) => {
2030
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2031
- return de_CommandError(output, context);
2032
- }
2033
- const contents = map({
2034
- $metadata: deserializeMetadata(output),
2035
- });
2036
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2037
- const doc = take(data, {
2038
- scanConfigurationArn: __expectString,
2039
- });
2040
- Object.assign(contents, doc);
2041
- return contents;
2042
- };
2043
- export const de_UpdateCodeSecurityIntegrationCommand = async (output, context) => {
2044
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2045
- return de_CommandError(output, context);
2046
- }
2047
- const contents = map({
2048
- $metadata: deserializeMetadata(output),
2049
- });
2050
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2051
- const doc = take(data, {
2052
- integrationArn: __expectString,
2053
- status: __expectString,
2054
- });
2055
- Object.assign(contents, doc);
2056
- return contents;
2057
- };
2058
- export const de_UpdateCodeSecurityScanConfigurationCommand = async (output, context) => {
2059
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2060
- return de_CommandError(output, context);
2061
- }
2062
- const contents = map({
2063
- $metadata: deserializeMetadata(output),
2064
- });
2065
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2066
- const doc = take(data, {
2067
- scanConfigurationArn: __expectString,
2068
- });
2069
- Object.assign(contents, doc);
2070
- return contents;
2071
- };
2072
- export const de_UpdateConfigurationCommand = async (output, context) => {
2073
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2074
- return de_CommandError(output, context);
2075
- }
2076
- const contents = map({
2077
- $metadata: deserializeMetadata(output),
2078
- });
2079
- await collectBody(output.body, context);
2080
- return contents;
2081
- };
2082
- export const de_UpdateEc2DeepInspectionConfigurationCommand = async (output, context) => {
2083
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2084
- return de_CommandError(output, context);
2085
- }
2086
- const contents = map({
2087
- $metadata: deserializeMetadata(output),
2088
- });
2089
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2090
- const doc = take(data, {
2091
- errorMessage: __expectString,
2092
- orgPackagePaths: _json,
2093
- packagePaths: _json,
2094
- status: __expectString,
2095
- });
2096
- Object.assign(contents, doc);
2097
- return contents;
2098
- };
2099
- export const de_UpdateEncryptionKeyCommand = async (output, context) => {
2100
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2101
- return de_CommandError(output, context);
2102
- }
2103
- const contents = map({
2104
- $metadata: deserializeMetadata(output),
2105
- });
2106
- await collectBody(output.body, context);
2107
- return contents;
2108
- };
2109
- export const de_UpdateFilterCommand = async (output, context) => {
2110
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2111
- return de_CommandError(output, context);
2112
- }
2113
- const contents = map({
2114
- $metadata: deserializeMetadata(output),
2115
- });
2116
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2117
- const doc = take(data, {
2118
- arn: __expectString,
2119
- });
2120
- Object.assign(contents, doc);
2121
- return contents;
2122
- };
2123
- export const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
2124
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2125
- return de_CommandError(output, context);
2126
- }
2127
- const contents = map({
2128
- $metadata: deserializeMetadata(output),
2129
- });
2130
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2131
- const doc = take(data, {
2132
- autoEnable: _json,
2133
- });
2134
- Object.assign(contents, doc);
2135
- return contents;
2136
- };
2137
- export const de_UpdateOrgEc2DeepInspectionConfigurationCommand = async (output, context) => {
2138
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2139
- return de_CommandError(output, context);
2140
- }
2141
- const contents = map({
2142
- $metadata: deserializeMetadata(output),
2143
- });
2144
- await collectBody(output.body, context);
2145
- return contents;
2146
- };
2147
- const de_CommandError = async (output, context) => {
2148
- const parsedOutput = {
2149
- ...output,
2150
- body: await parseErrorBody(output.body, context),
2151
- };
2152
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2153
- switch (errorCode) {
2154
- case "AccessDeniedException":
2155
- case "com.amazonaws.inspector2#AccessDeniedException":
2156
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2157
- case "InternalServerException":
2158
- case "com.amazonaws.inspector2#InternalServerException":
2159
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2160
- case "ServiceQuotaExceededException":
2161
- case "com.amazonaws.inspector2#ServiceQuotaExceededException":
2162
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2163
- case "ThrottlingException":
2164
- case "com.amazonaws.inspector2#ThrottlingException":
2165
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2166
- case "ValidationException":
2167
- case "com.amazonaws.inspector2#ValidationException":
2168
- throw await de_ValidationExceptionRes(parsedOutput, context);
2169
- case "ConflictException":
2170
- case "com.amazonaws.inspector2#ConflictException":
2171
- throw await de_ConflictExceptionRes(parsedOutput, context);
2172
- case "ResourceNotFoundException":
2173
- case "com.amazonaws.inspector2#ResourceNotFoundException":
2174
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2175
- case "BadRequestException":
2176
- case "com.amazonaws.inspector2#BadRequestException":
2177
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2178
- default:
2179
- const parsedBody = parsedOutput.body;
2180
- return throwDefaultError({
2181
- output,
2182
- parsedBody,
2183
- errorCode,
2184
- });
2185
- }
2186
- };
2187
- const throwDefaultError = withBaseException(__BaseException);
2188
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2189
- const contents = map({});
2190
- const data = parsedOutput.body;
2191
- const doc = take(data, {
2192
- message: __expectString,
2193
- });
2194
- Object.assign(contents, doc);
2195
- const exception = new AccessDeniedException({
2196
- $metadata: deserializeMetadata(parsedOutput),
2197
- ...contents,
2198
- });
2199
- return __decorateServiceException(exception, parsedOutput.body);
2200
- };
2201
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
2202
- const contents = map({});
2203
- const data = parsedOutput.body;
2204
- const doc = take(data, {
2205
- message: __expectString,
2206
- });
2207
- Object.assign(contents, doc);
2208
- const exception = new BadRequestException({
2209
- $metadata: deserializeMetadata(parsedOutput),
2210
- ...contents,
2211
- });
2212
- return __decorateServiceException(exception, parsedOutput.body);
2213
- };
2214
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
2215
- const contents = map({});
2216
- const data = parsedOutput.body;
2217
- const doc = take(data, {
2218
- message: __expectString,
2219
- resourceId: __expectString,
2220
- resourceType: __expectString,
2221
- });
2222
- Object.assign(contents, doc);
2223
- const exception = new ConflictException({
2224
- $metadata: deserializeMetadata(parsedOutput),
2225
- ...contents,
2226
- });
2227
- return __decorateServiceException(exception, parsedOutput.body);
2228
- };
2229
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2230
- const contents = map({
2231
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
2232
- });
2233
- const data = parsedOutput.body;
2234
- const doc = take(data, {
2235
- message: __expectString,
2236
- });
2237
- Object.assign(contents, doc);
2238
- const exception = new InternalServerException({
2239
- $metadata: deserializeMetadata(parsedOutput),
2240
- ...contents,
2241
- });
2242
- return __decorateServiceException(exception, parsedOutput.body);
2243
- };
2244
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2245
- const contents = map({});
2246
- const data = parsedOutput.body;
2247
- const doc = take(data, {
2248
- message: __expectString,
2249
- });
2250
- Object.assign(contents, doc);
2251
- const exception = new ResourceNotFoundException({
2252
- $metadata: deserializeMetadata(parsedOutput),
2253
- ...contents,
2254
- });
2255
- return __decorateServiceException(exception, parsedOutput.body);
2256
- };
2257
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2258
- const contents = map({});
2259
- const data = parsedOutput.body;
2260
- const doc = take(data, {
2261
- message: __expectString,
2262
- resourceId: __expectString,
2263
- });
2264
- Object.assign(contents, doc);
2265
- const exception = new ServiceQuotaExceededException({
2266
- $metadata: deserializeMetadata(parsedOutput),
2267
- ...contents,
2268
- });
2269
- return __decorateServiceException(exception, parsedOutput.body);
2270
- };
2271
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2272
- const contents = map({
2273
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
2274
- });
2275
- const data = parsedOutput.body;
2276
- const doc = take(data, {
2277
- message: __expectString,
2278
- });
2279
- Object.assign(contents, doc);
2280
- const exception = new ThrottlingException({
2281
- $metadata: deserializeMetadata(parsedOutput),
2282
- ...contents,
2283
- });
2284
- return __decorateServiceException(exception, parsedOutput.body);
2285
- };
2286
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2287
- const contents = map({});
2288
- const data = parsedOutput.body;
2289
- const doc = take(data, {
2290
- fields: _json,
2291
- message: __expectString,
2292
- reason: __expectString,
2293
- });
2294
- Object.assign(contents, doc);
2295
- const exception = new ValidationException({
2296
- $metadata: deserializeMetadata(parsedOutput),
2297
- ...contents,
2298
- });
2299
- return __decorateServiceException(exception, parsedOutput.body);
2300
- };
2301
- const se_AggregationRequest = (input, context) => {
2302
- return AggregationRequest.visit(input, {
2303
- accountAggregation: (value) => ({ accountAggregation: _json(value) }),
2304
- amiAggregation: (value) => ({ amiAggregation: _json(value) }),
2305
- awsEcrContainerAggregation: (value) => ({
2306
- awsEcrContainerAggregation: se_AwsEcrContainerAggregation(value, context),
2307
- }),
2308
- codeRepositoryAggregation: (value) => ({ codeRepositoryAggregation: _json(value) }),
2309
- ec2InstanceAggregation: (value) => ({ ec2InstanceAggregation: _json(value) }),
2310
- findingTypeAggregation: (value) => ({ findingTypeAggregation: _json(value) }),
2311
- imageLayerAggregation: (value) => ({ imageLayerAggregation: _json(value) }),
2312
- lambdaFunctionAggregation: (value) => ({ lambdaFunctionAggregation: _json(value) }),
2313
- lambdaLayerAggregation: (value) => ({ lambdaLayerAggregation: _json(value) }),
2314
- packageAggregation: (value) => ({ packageAggregation: _json(value) }),
2315
- repositoryAggregation: (value) => ({ repositoryAggregation: _json(value) }),
2316
- titleAggregation: (value) => ({ titleAggregation: _json(value) }),
2317
- _: (name, value) => ({ [name]: value }),
2318
- });
2319
- };
2320
- const se_AwsEcrContainerAggregation = (input, context) => {
2321
- return take(input, {
2322
- architectures: _json,
2323
- imageShas: _json,
2324
- imageTags: _json,
2325
- inUseCount: (_) => se_NumberFilterList(_, context),
2326
- lastInUseAt: (_) => se_DateFilterList(_, context),
2327
- repositories: _json,
2328
- resourceIds: _json,
2329
- sortBy: [],
2330
- sortOrder: [],
2331
- });
2332
- };
2333
- const se_CisDateFilter = (input, context) => {
2334
- return take(input, {
2335
- earliestScanStartTime: (_) => _.getTime() / 1_000,
2336
- latestScanStartTime: (_) => _.getTime() / 1_000,
2337
- });
2338
- };
2339
- const se_CisScanDateFilterList = (input, context) => {
2340
- return input
2341
- .filter((e) => e != null)
2342
- .map((entry) => {
2343
- return se_CisDateFilter(entry, context);
2344
- });
2345
- };
2346
- const se_CisSessionMessage = (input, context) => {
2347
- return take(input, {
2348
- cisRuleDetails: context.base64Encoder,
2349
- ruleId: [],
2350
- status: [],
2351
- });
2352
- };
2353
- const se_CisSessionMessages = (input, context) => {
2354
- return input
2355
- .filter((e) => e != null)
2356
- .map((entry) => {
2357
- return se_CisSessionMessage(entry, context);
2358
- });
2359
- };
2360
- const se_CoverageDateFilter = (input, context) => {
2361
- return take(input, {
2362
- endInclusive: (_) => _.getTime() / 1_000,
2363
- startInclusive: (_) => _.getTime() / 1_000,
2364
- });
2365
- };
2366
- const se_CoverageDateFilterList = (input, context) => {
2367
- return input
2368
- .filter((e) => e != null)
2369
- .map((entry) => {
2370
- return se_CoverageDateFilter(entry, context);
2371
- });
2372
- };
2373
- const se_CoverageFilterCriteria = (input, context) => {
2374
- return take(input, {
2375
- accountId: _json,
2376
- codeRepositoryProjectName: _json,
2377
- codeRepositoryProviderType: _json,
2378
- codeRepositoryProviderTypeVisibility: _json,
2379
- ec2InstanceTags: _json,
2380
- ecrImageInUseCount: _json,
2381
- ecrImageLastInUseAt: (_) => se_CoverageDateFilterList(_, context),
2382
- ecrImageTags: _json,
2383
- ecrRepositoryName: _json,
2384
- imagePulledAt: (_) => se_CoverageDateFilterList(_, context),
2385
- lambdaFunctionName: _json,
2386
- lambdaFunctionRuntime: _json,
2387
- lambdaFunctionTags: _json,
2388
- lastScannedAt: (_) => se_CoverageDateFilterList(_, context),
2389
- lastScannedCommitId: _json,
2390
- resourceId: _json,
2391
- resourceType: _json,
2392
- scanMode: _json,
2393
- scanStatusCode: _json,
2394
- scanStatusReason: _json,
2395
- scanType: _json,
2396
- });
2397
- };
2398
- const se_DateFilter = (input, context) => {
2399
- return take(input, {
2400
- endInclusive: (_) => _.getTime() / 1_000,
2401
- startInclusive: (_) => _.getTime() / 1_000,
2402
- });
2403
- };
2404
- const se_DateFilterList = (input, context) => {
2405
- return input
2406
- .filter((e) => e != null)
2407
- .map((entry) => {
2408
- return se_DateFilter(entry, context);
2409
- });
2410
- };
2411
- const se_FilterCriteria = (input, context) => {
2412
- return take(input, {
2413
- awsAccountId: _json,
2414
- codeRepositoryProjectName: _json,
2415
- codeRepositoryProviderType: _json,
2416
- codeVulnerabilityDetectorName: _json,
2417
- codeVulnerabilityDetectorTags: _json,
2418
- codeVulnerabilityFilePath: _json,
2419
- componentId: _json,
2420
- componentType: _json,
2421
- ec2InstanceImageId: _json,
2422
- ec2InstanceSubnetId: _json,
2423
- ec2InstanceVpcId: _json,
2424
- ecrImageArchitecture: _json,
2425
- ecrImageHash: _json,
2426
- ecrImageInUseCount: (_) => se_NumberFilterList(_, context),
2427
- ecrImageLastInUseAt: (_) => se_DateFilterList(_, context),
2428
- ecrImagePushedAt: (_) => se_DateFilterList(_, context),
2429
- ecrImageRegistry: _json,
2430
- ecrImageRepositoryName: _json,
2431
- ecrImageTags: _json,
2432
- epssScore: (_) => se_NumberFilterList(_, context),
2433
- exploitAvailable: _json,
2434
- findingArn: _json,
2435
- findingStatus: _json,
2436
- findingType: _json,
2437
- firstObservedAt: (_) => se_DateFilterList(_, context),
2438
- fixAvailable: _json,
2439
- inspectorScore: (_) => se_NumberFilterList(_, context),
2440
- lambdaFunctionExecutionRoleArn: _json,
2441
- lambdaFunctionLastModifiedAt: (_) => se_DateFilterList(_, context),
2442
- lambdaFunctionLayers: _json,
2443
- lambdaFunctionName: _json,
2444
- lambdaFunctionRuntime: _json,
2445
- lastObservedAt: (_) => se_DateFilterList(_, context),
2446
- networkProtocol: _json,
2447
- portRange: _json,
2448
- relatedVulnerabilities: _json,
2449
- resourceId: _json,
2450
- resourceTags: _json,
2451
- resourceType: _json,
2452
- severity: _json,
2453
- title: _json,
2454
- updatedAt: (_) => se_DateFilterList(_, context),
2455
- vendorSeverity: _json,
2456
- vulnerabilityId: _json,
2457
- vulnerabilitySource: _json,
2458
- vulnerablePackages: (_) => se_PackageFilterList(_, context),
2459
- });
2460
- };
2461
- const se_ListCisScansFilterCriteria = (input, context) => {
2462
- return take(input, {
2463
- failedChecksFilters: _json,
2464
- scanArnFilters: _json,
2465
- scanAtFilters: (_) => se_CisScanDateFilterList(_, context),
2466
- scanConfigurationArnFilters: _json,
2467
- scanNameFilters: _json,
2468
- scanStatusFilters: _json,
2469
- scheduledByFilters: _json,
2470
- targetAccountIdFilters: _json,
2471
- targetResourceIdFilters: _json,
2472
- targetResourceTagFilters: _json,
2473
- });
2474
- };
2475
- const se_NumberFilter = (input, context) => {
2476
- return take(input, {
2477
- lowerInclusive: __serializeFloat,
2478
- upperInclusive: __serializeFloat,
2479
- });
2480
- };
2481
- const se_NumberFilterList = (input, context) => {
2482
- return input
2483
- .filter((e) => e != null)
2484
- .map((entry) => {
2485
- return se_NumberFilter(entry, context);
2486
- });
2487
- };
2488
- const se_PackageFilter = (input, context) => {
2489
- return take(input, {
2490
- architecture: _json,
2491
- epoch: (_) => se_NumberFilter(_, context),
2492
- filePath: _json,
2493
- name: _json,
2494
- release: _json,
2495
- sourceLambdaLayerArn: _json,
2496
- sourceLayerHash: _json,
2497
- version: _json,
2498
- });
2499
- };
2500
- const se_PackageFilterList = (input, context) => {
2501
- return input
2502
- .filter((e) => e != null)
2503
- .map((entry) => {
2504
- return se_PackageFilter(entry, context);
2505
- });
2506
- };
2507
- const de_AggregationResponse = (output, context) => {
2508
- if (output.accountAggregation != null) {
2509
- return {
2510
- accountAggregation: _json(output.accountAggregation),
2511
- };
2512
- }
2513
- if (output.amiAggregation != null) {
2514
- return {
2515
- amiAggregation: _json(output.amiAggregation),
2516
- };
2517
- }
2518
- if (output.awsEcrContainerAggregation != null) {
2519
- return {
2520
- awsEcrContainerAggregation: de_AwsEcrContainerAggregationResponse(output.awsEcrContainerAggregation, context),
2521
- };
2522
- }
2523
- if (output.codeRepositoryAggregation != null) {
2524
- return {
2525
- codeRepositoryAggregation: _json(output.codeRepositoryAggregation),
2526
- };
2527
- }
2528
- if (output.ec2InstanceAggregation != null) {
2529
- return {
2530
- ec2InstanceAggregation: _json(output.ec2InstanceAggregation),
2531
- };
2532
- }
2533
- if (output.findingTypeAggregation != null) {
2534
- return {
2535
- findingTypeAggregation: _json(output.findingTypeAggregation),
2536
- };
2537
- }
2538
- if (output.imageLayerAggregation != null) {
2539
- return {
2540
- imageLayerAggregation: _json(output.imageLayerAggregation),
2541
- };
2542
- }
2543
- if (output.lambdaFunctionAggregation != null) {
2544
- return {
2545
- lambdaFunctionAggregation: de_LambdaFunctionAggregationResponse(output.lambdaFunctionAggregation, context),
2546
- };
2547
- }
2548
- if (output.lambdaLayerAggregation != null) {
2549
- return {
2550
- lambdaLayerAggregation: _json(output.lambdaLayerAggregation),
2551
- };
2552
- }
2553
- if (output.packageAggregation != null) {
2554
- return {
2555
- packageAggregation: _json(output.packageAggregation),
2556
- };
2557
- }
2558
- if (output.repositoryAggregation != null) {
2559
- return {
2560
- repositoryAggregation: _json(output.repositoryAggregation),
2561
- };
2562
- }
2563
- if (output.titleAggregation != null) {
2564
- return {
2565
- titleAggregation: _json(output.titleAggregation),
2566
- };
2567
- }
2568
- return { $unknown: Object.entries(output)[0] };
2569
- };
2570
- const de_AggregationResponseList = (output, context) => {
2571
- const retVal = (output || [])
2572
- .filter((e) => e != null)
2573
- .map((entry) => {
2574
- return de_AggregationResponse(__expectUnion(entry), context);
2575
- });
2576
- return retVal;
2577
- };
2578
- const de_AtigData = (output, context) => {
2579
- return take(output, {
2580
- firstSeen: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2581
- lastSeen: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2582
- targets: _json,
2583
- ttps: _json,
2584
- });
2585
- };
2586
- const de_AwsEc2InstanceDetails = (output, context) => {
2587
- return take(output, {
2588
- iamInstanceProfileArn: __expectString,
2589
- imageId: __expectString,
2590
- ipV4Addresses: _json,
2591
- ipV6Addresses: _json,
2592
- keyName: __expectString,
2593
- launchedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2594
- platform: __expectString,
2595
- subnetId: __expectString,
2596
- type: __expectString,
2597
- vpcId: __expectString,
2598
- });
2599
- };
2600
- const de_AwsEcrContainerAggregationResponse = (output, context) => {
2601
- return take(output, {
2602
- accountId: __expectString,
2603
- architecture: __expectString,
2604
- imageSha: __expectString,
2605
- imageTags: _json,
2606
- inUseCount: __expectLong,
2607
- lastInUseAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2608
- repository: __expectString,
2609
- resourceId: __expectString,
2610
- severityCounts: _json,
2611
- });
2612
- };
2613
- const de_AwsEcrContainerImageDetails = (output, context) => {
2614
- return take(output, {
2615
- architecture: __expectString,
2616
- author: __expectString,
2617
- imageHash: __expectString,
2618
- imageTags: _json,
2619
- inUseCount: __expectLong,
2620
- lastInUseAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2621
- platform: __expectString,
2622
- pushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2623
- registry: __expectString,
2624
- repositoryName: __expectString,
2625
- });
2626
- };
2627
- const de_AwsLambdaFunctionDetails = (output, context) => {
2628
- return take(output, {
2629
- architectures: _json,
2630
- codeSha256: __expectString,
2631
- executionRoleArn: __expectString,
2632
- functionName: __expectString,
2633
- lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2634
- layers: _json,
2635
- packageType: __expectString,
2636
- runtime: __expectString,
2637
- version: __expectString,
2638
- vpcConfig: _json,
2639
- });
2640
- };
2641
- const de_CisaData = (output, context) => {
2642
- return take(output, {
2643
- action: __expectString,
2644
- dateAdded: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2645
- dateDue: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2646
- });
2647
- };
2648
- const de_CisScan = (output, context) => {
2649
- return take(output, {
2650
- failedChecks: __expectInt32,
2651
- scanArn: __expectString,
2652
- scanConfigurationArn: __expectString,
2653
- scanDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2654
- scanName: __expectString,
2655
- scheduledBy: __expectString,
2656
- securityLevel: __expectString,
2657
- status: __expectString,
2658
- targets: _json,
2659
- totalChecks: __expectInt32,
2660
- });
2661
- };
2662
- const de_CisScanList = (output, context) => {
2663
- const retVal = (output || [])
2664
- .filter((e) => e != null)
2665
- .map((entry) => {
2666
- return de_CisScan(entry, context);
2667
- });
2668
- return retVal;
2669
- };
2670
- const de_ClusterDetails = (output, context) => {
2671
- return take(output, {
2672
- clusterMetadata: (_) => _json(__expectUnion(_)),
2673
- lastInUse: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2674
- runningUnitCount: __expectLong,
2675
- stoppedUnitCount: __expectLong,
2676
- });
2677
- };
2678
- const de_ClusterDetailsList = (output, context) => {
2679
- const retVal = (output || [])
2680
- .filter((e) => e != null)
2681
- .map((entry) => {
2682
- return de_ClusterDetails(entry, context);
2683
- });
2684
- return retVal;
2685
- };
2686
- const de_ClusterInformation = (output, context) => {
2687
- return take(output, {
2688
- clusterArn: __expectString,
2689
- clusterDetails: (_) => de_ClusterDetailsList(_, context),
2690
- });
2691
- };
2692
- const de_ClusterInformationList = (output, context) => {
2693
- const retVal = (output || [])
2694
- .filter((e) => e != null)
2695
- .map((entry) => {
2696
- return de_ClusterInformation(entry, context);
2697
- });
2698
- return retVal;
2699
- };
2700
- const de_CodeRepositoryMetadata = (output, context) => {
2701
- return take(output, {
2702
- integrationArn: __expectString,
2703
- lastScannedCommitId: __expectString,
2704
- onDemandScan: (_) => de_CodeRepositoryOnDemandScan(_, context),
2705
- projectName: __expectString,
2706
- providerType: __expectString,
2707
- providerTypeVisibility: __expectString,
2708
- scanConfiguration: _json,
2709
- });
2710
- };
2711
- const de_CodeRepositoryOnDemandScan = (output, context) => {
2712
- return take(output, {
2713
- lastScanAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2714
- lastScannedCommitId: __expectString,
2715
- scanStatus: _json,
2716
- });
2717
- };
2718
- const de_CodeSecurityIntegrationSummary = (output, context) => {
2719
- return take(output, {
2720
- createdOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2721
- integrationArn: __expectString,
2722
- lastUpdateOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2723
- name: __expectString,
2724
- status: __expectString,
2725
- statusReason: __expectString,
2726
- tags: _json,
2727
- type: __expectString,
2728
- });
2729
- };
2730
- const de_CoveredResource = (output, context) => {
2731
- return take(output, {
2732
- accountId: __expectString,
2733
- lastScannedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2734
- resourceId: __expectString,
2735
- resourceMetadata: (_) => de_ResourceScanMetadata(_, context),
2736
- resourceType: __expectString,
2737
- scanMode: __expectString,
2738
- scanStatus: _json,
2739
- scanType: __expectString,
2740
- });
2741
- };
2742
- const de_CoveredResources = (output, context) => {
2743
- const retVal = (output || [])
2744
- .filter((e) => e != null)
2745
- .map((entry) => {
2746
- return de_CoveredResource(entry, context);
2747
- });
2748
- return retVal;
2749
- };
2750
- const de_Cvss2 = (output, context) => {
2751
- return take(output, {
2752
- baseScore: __limitedParseDouble,
2753
- scoringVector: __expectString,
2754
- });
2755
- };
2756
- const de_Cvss3 = (output, context) => {
2757
- return take(output, {
2758
- baseScore: __limitedParseDouble,
2759
- scoringVector: __expectString,
2760
- });
2761
- };
2762
- const de_Cvss4 = (output, context) => {
2763
- return take(output, {
2764
- baseScore: __limitedParseDouble,
2765
- scoringVector: __expectString,
2766
- });
2767
- };
2768
- const de_CvssScore = (output, context) => {
2769
- return take(output, {
2770
- baseScore: __limitedParseDouble,
2771
- scoringVector: __expectString,
2772
- source: __expectString,
2773
- version: __expectString,
2774
- });
2775
- };
2776
- const de_CvssScoreDetails = (output, context) => {
2777
- return take(output, {
2778
- adjustments: _json,
2779
- cvssSource: __expectString,
2780
- score: __limitedParseDouble,
2781
- scoreSource: __expectString,
2782
- scoringVector: __expectString,
2783
- version: __expectString,
2784
- });
2785
- };
2786
- const de_CvssScoreList = (output, context) => {
2787
- const retVal = (output || [])
2788
- .filter((e) => e != null)
2789
- .map((entry) => {
2790
- return de_CvssScore(entry, context);
2791
- });
2792
- return retVal;
2793
- };
2794
- const de_DateFilter = (output, context) => {
2795
- return take(output, {
2796
- endInclusive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2797
- startInclusive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2798
- });
2799
- };
2800
- const de_DateFilterList = (output, context) => {
2801
- const retVal = (output || [])
2802
- .filter((e) => e != null)
2803
- .map((entry) => {
2804
- return de_DateFilter(entry, context);
2805
- });
2806
- return retVal;
2807
- };
2808
- const de_EcrConfigurationState = (output, context) => {
2809
- return take(output, {
2810
- rescanDurationState: (_) => de_EcrRescanDurationState(_, context),
2811
- });
2812
- };
2813
- const de_EcrContainerImageMetadata = (output, context) => {
2814
- return take(output, {
2815
- imagePulledAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2816
- inUseCount: __expectLong,
2817
- lastInUseAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2818
- tags: _json,
2819
- });
2820
- };
2821
- const de_EcrRescanDurationState = (output, context) => {
2822
- return take(output, {
2823
- pullDateRescanDuration: __expectString,
2824
- pullDateRescanMode: __expectString,
2825
- rescanDuration: __expectString,
2826
- status: __expectString,
2827
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2828
- });
2829
- };
2830
- const de_Epss = (output, context) => {
2831
- return take(output, {
2832
- score: __limitedParseDouble,
2833
- });
2834
- };
2835
- const de_EpssDetails = (output, context) => {
2836
- return take(output, {
2837
- score: __limitedParseDouble,
2838
- });
2839
- };
2840
- const de_ExploitabilityDetails = (output, context) => {
2841
- return take(output, {
2842
- lastKnownExploitAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2843
- });
2844
- };
2845
- const de_ExploitObserved = (output, context) => {
2846
- return take(output, {
2847
- firstSeen: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2848
- lastSeen: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2849
- });
2850
- };
2851
- const de_Filter = (output, context) => {
2852
- return take(output, {
2853
- action: __expectString,
2854
- arn: __expectString,
2855
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2856
- criteria: (_) => de_FilterCriteria(_, context),
2857
- description: __expectString,
2858
- name: __expectString,
2859
- ownerId: __expectString,
2860
- reason: __expectString,
2861
- tags: _json,
2862
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2863
- });
2864
- };
2865
- const de_FilterCriteria = (output, context) => {
2866
- return take(output, {
2867
- awsAccountId: _json,
2868
- codeRepositoryProjectName: _json,
2869
- codeRepositoryProviderType: _json,
2870
- codeVulnerabilityDetectorName: _json,
2871
- codeVulnerabilityDetectorTags: _json,
2872
- codeVulnerabilityFilePath: _json,
2873
- componentId: _json,
2874
- componentType: _json,
2875
- ec2InstanceImageId: _json,
2876
- ec2InstanceSubnetId: _json,
2877
- ec2InstanceVpcId: _json,
2878
- ecrImageArchitecture: _json,
2879
- ecrImageHash: _json,
2880
- ecrImageInUseCount: (_) => de_NumberFilterList(_, context),
2881
- ecrImageLastInUseAt: (_) => de_DateFilterList(_, context),
2882
- ecrImagePushedAt: (_) => de_DateFilterList(_, context),
2883
- ecrImageRegistry: _json,
2884
- ecrImageRepositoryName: _json,
2885
- ecrImageTags: _json,
2886
- epssScore: (_) => de_NumberFilterList(_, context),
2887
- exploitAvailable: _json,
2888
- findingArn: _json,
2889
- findingStatus: _json,
2890
- findingType: _json,
2891
- firstObservedAt: (_) => de_DateFilterList(_, context),
2892
- fixAvailable: _json,
2893
- inspectorScore: (_) => de_NumberFilterList(_, context),
2894
- lambdaFunctionExecutionRoleArn: _json,
2895
- lambdaFunctionLastModifiedAt: (_) => de_DateFilterList(_, context),
2896
- lambdaFunctionLayers: _json,
2897
- lambdaFunctionName: _json,
2898
- lambdaFunctionRuntime: _json,
2899
- lastObservedAt: (_) => de_DateFilterList(_, context),
2900
- networkProtocol: _json,
2901
- portRange: _json,
2902
- relatedVulnerabilities: _json,
2903
- resourceId: _json,
2904
- resourceTags: _json,
2905
- resourceType: _json,
2906
- severity: _json,
2907
- title: _json,
2908
- updatedAt: (_) => de_DateFilterList(_, context),
2909
- vendorSeverity: _json,
2910
- vulnerabilityId: _json,
2911
- vulnerabilitySource: _json,
2912
- vulnerablePackages: (_) => de_PackageFilterList(_, context),
2913
- });
2914
- };
2915
- const de_FilterList = (output, context) => {
2916
- const retVal = (output || [])
2917
- .filter((e) => e != null)
2918
- .map((entry) => {
2919
- return de_Filter(entry, context);
2920
- });
2921
- return retVal;
2922
- };
2923
- const de_Finding = (output, context) => {
2924
- return take(output, {
2925
- awsAccountId: __expectString,
2926
- codeVulnerabilityDetails: _json,
2927
- description: __expectString,
2928
- epss: (_) => de_EpssDetails(_, context),
2929
- exploitAvailable: __expectString,
2930
- exploitabilityDetails: (_) => de_ExploitabilityDetails(_, context),
2931
- findingArn: __expectString,
2932
- firstObservedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2933
- fixAvailable: __expectString,
2934
- inspectorScore: __limitedParseDouble,
2935
- inspectorScoreDetails: (_) => de_InspectorScoreDetails(_, context),
2936
- lastObservedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2937
- networkReachabilityDetails: _json,
2938
- packageVulnerabilityDetails: (_) => de_PackageVulnerabilityDetails(_, context),
2939
- remediation: _json,
2940
- resources: (_) => de_ResourceList(_, context),
2941
- severity: __expectString,
2942
- status: __expectString,
2943
- title: __expectString,
2944
- type: __expectString,
2945
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2946
- });
2947
- };
2948
- const de_FindingDetail = (output, context) => {
2949
- return take(output, {
2950
- cisaData: (_) => de_CisaData(_, context),
2951
- cwes: _json,
2952
- epssScore: __limitedParseDouble,
2953
- evidences: _json,
2954
- exploitObserved: (_) => de_ExploitObserved(_, context),
2955
- findingArn: __expectString,
2956
- referenceUrls: _json,
2957
- riskScore: __expectInt32,
2958
- tools: _json,
2959
- ttps: _json,
2960
- });
2961
- };
2962
- const de_FindingDetails = (output, context) => {
2963
- const retVal = (output || [])
2964
- .filter((e) => e != null)
2965
- .map((entry) => {
2966
- return de_FindingDetail(entry, context);
2967
- });
2968
- return retVal;
2969
- };
2970
- const de_FindingList = (output, context) => {
2971
- const retVal = (output || [])
2972
- .filter((e) => e != null)
2973
- .map((entry) => {
2974
- return de_Finding(entry, context);
2975
- });
2976
- return retVal;
2977
- };
2978
- const de_FreeTrialAccountInfo = (output, context) => {
2979
- return take(output, {
2980
- accountId: __expectString,
2981
- freeTrialInfo: (_) => de_FreeTrialInfoList(_, context),
2982
- });
2983
- };
2984
- const de_FreeTrialAccountInfoList = (output, context) => {
2985
- const retVal = (output || [])
2986
- .filter((e) => e != null)
2987
- .map((entry) => {
2988
- return de_FreeTrialAccountInfo(entry, context);
2989
- });
2990
- return retVal;
2991
- };
2992
- const de_FreeTrialInfo = (output, context) => {
2993
- return take(output, {
2994
- end: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2995
- start: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2996
- status: __expectString,
2997
- type: __expectString,
2998
- });
2999
- };
3000
- const de_FreeTrialInfoList = (output, context) => {
3001
- const retVal = (output || [])
3002
- .filter((e) => e != null)
3003
- .map((entry) => {
3004
- return de_FreeTrialInfo(entry, context);
3005
- });
3006
- return retVal;
3007
- };
3008
- const de_InspectorScoreDetails = (output, context) => {
3009
- return take(output, {
3010
- adjustedCvss: (_) => de_CvssScoreDetails(_, context),
3011
- });
3012
- };
3013
- const de_IntegrationSummaries = (output, context) => {
3014
- const retVal = (output || [])
3015
- .filter((e) => e != null)
3016
- .map((entry) => {
3017
- return de_CodeSecurityIntegrationSummary(entry, context);
3018
- });
3019
- return retVal;
3020
- };
3021
- const de_LambdaFunctionAggregationResponse = (output, context) => {
3022
- return take(output, {
3023
- accountId: __expectString,
3024
- functionName: __expectString,
3025
- lambdaTags: _json,
3026
- lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3027
- resourceId: __expectString,
3028
- runtime: __expectString,
3029
- severityCounts: _json,
3030
- });
3031
- };
3032
- const de_Member = (output, context) => {
3033
- return take(output, {
3034
- accountId: __expectString,
3035
- delegatedAdminAccountId: __expectString,
3036
- relationshipStatus: __expectString,
3037
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3038
- });
3039
- };
3040
- const de_MemberList = (output, context) => {
3041
- const retVal = (output || [])
3042
- .filter((e) => e != null)
3043
- .map((entry) => {
3044
- return de_Member(entry, context);
3045
- });
3046
- return retVal;
3047
- };
3048
- const de_NumberFilter = (output, context) => {
3049
- return take(output, {
3050
- lowerInclusive: __limitedParseDouble,
3051
- upperInclusive: __limitedParseDouble,
3052
- });
3053
- };
3054
- const de_NumberFilterList = (output, context) => {
3055
- const retVal = (output || [])
3056
- .filter((e) => e != null)
3057
- .map((entry) => {
3058
- return de_NumberFilter(entry, context);
3059
- });
3060
- return retVal;
3061
- };
3062
- const de_PackageFilter = (output, context) => {
3063
- return take(output, {
3064
- architecture: _json,
3065
- epoch: (_) => de_NumberFilter(_, context),
3066
- filePath: _json,
3067
- name: _json,
3068
- release: _json,
3069
- sourceLambdaLayerArn: _json,
3070
- sourceLayerHash: _json,
3071
- version: _json,
3072
- });
3073
- };
3074
- const de_PackageFilterList = (output, context) => {
3075
- const retVal = (output || [])
3076
- .filter((e) => e != null)
3077
- .map((entry) => {
3078
- return de_PackageFilter(entry, context);
3079
- });
3080
- return retVal;
3081
- };
3082
- const de_PackageVulnerabilityDetails = (output, context) => {
3083
- return take(output, {
3084
- cvss: (_) => de_CvssScoreList(_, context),
3085
- referenceUrls: _json,
3086
- relatedVulnerabilities: _json,
3087
- source: __expectString,
3088
- sourceUrl: __expectString,
3089
- vendorCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3090
- vendorSeverity: __expectString,
3091
- vendorUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3092
- vulnerabilityId: __expectString,
3093
- vulnerablePackages: _json,
3094
- });
3095
- };
3096
- const de_Resource = (output, context) => {
3097
- return take(output, {
3098
- details: (_) => de_ResourceDetails(_, context),
3099
- id: __expectString,
3100
- partition: __expectString,
3101
- region: __expectString,
3102
- tags: _json,
3103
- type: __expectString,
3104
- });
3105
- };
3106
- const de_ResourceDetails = (output, context) => {
3107
- return take(output, {
3108
- awsEc2Instance: (_) => de_AwsEc2InstanceDetails(_, context),
3109
- awsEcrContainerImage: (_) => de_AwsEcrContainerImageDetails(_, context),
3110
- awsLambdaFunction: (_) => de_AwsLambdaFunctionDetails(_, context),
3111
- codeRepository: _json,
3112
- });
3113
- };
3114
- const de_ResourceList = (output, context) => {
3115
- const retVal = (output || [])
3116
- .filter((e) => e != null)
3117
- .map((entry) => {
3118
- return de_Resource(entry, context);
3119
- });
3120
- return retVal;
3121
- };
3122
- const de_ResourceScanMetadata = (output, context) => {
3123
- return take(output, {
3124
- codeRepository: (_) => de_CodeRepositoryMetadata(_, context),
3125
- ec2: _json,
3126
- ecrImage: (_) => de_EcrContainerImageMetadata(_, context),
3127
- ecrRepository: _json,
3128
- lambdaFunction: _json,
3129
- });
3130
- };
3131
- const de_Usage = (output, context) => {
3132
- return take(output, {
3133
- currency: __expectString,
3134
- estimatedMonthlyCost: __limitedParseDouble,
3135
- total: __limitedParseDouble,
3136
- type: __expectString,
3137
- });
3138
- };
3139
- const de_UsageList = (output, context) => {
3140
- const retVal = (output || [])
3141
- .filter((e) => e != null)
3142
- .map((entry) => {
3143
- return de_Usage(entry, context);
3144
- });
3145
- return retVal;
3146
- };
3147
- const de_UsageTotal = (output, context) => {
3148
- return take(output, {
3149
- accountId: __expectString,
3150
- usage: (_) => de_UsageList(_, context),
3151
- });
3152
- };
3153
- const de_UsageTotalList = (output, context) => {
3154
- const retVal = (output || [])
3155
- .filter((e) => e != null)
3156
- .map((entry) => {
3157
- return de_UsageTotal(entry, context);
3158
- });
3159
- return retVal;
3160
- };
3161
- const de_Vulnerabilities = (output, context) => {
3162
- const retVal = (output || [])
3163
- .filter((e) => e != null)
3164
- .map((entry) => {
3165
- return de_Vulnerability(entry, context);
3166
- });
3167
- return retVal;
3168
- };
3169
- const de_Vulnerability = (output, context) => {
3170
- return take(output, {
3171
- atigData: (_) => de_AtigData(_, context),
3172
- cisaData: (_) => de_CisaData(_, context),
3173
- cvss2: (_) => de_Cvss2(_, context),
3174
- cvss3: (_) => de_Cvss3(_, context),
3175
- cvss4: (_) => de_Cvss4(_, context),
3176
- cwes: _json,
3177
- description: __expectString,
3178
- detectionPlatforms: _json,
3179
- epss: (_) => de_Epss(_, context),
3180
- exploitObserved: (_) => de_ExploitObserved(_, context),
3181
- id: __expectString,
3182
- referenceUrls: _json,
3183
- relatedVulnerabilities: _json,
3184
- source: __expectString,
3185
- sourceUrl: __expectString,
3186
- vendorCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3187
- vendorSeverity: __expectString,
3188
- vendorUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3189
- });
3190
- };
3191
- const deserializeMetadata = (output) => ({
3192
- httpStatusCode: output.statusCode,
3193
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3194
- extendedRequestId: output.headers["x-amz-id-2"],
3195
- cfId: output.headers["x-amz-cf-id"],
3196
- });
3197
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3198
- const _mR = "maxResults";
3199
- const _nT = "nextToken";
3200
- const _rAS = "retryAfterSeconds";
3201
- const _rT = "resourceType";
3202
- const _ra = "retry-after";
3203
- const _sT = "scanType";
3204
- const _tK = "tagKeys";