@aws-sdk/client-inspector2 3.828.0 → 3.831.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -0
- package/dist-cjs/index.js +1297 -313
- package/dist-es/Inspector2.js +30 -0
- package/dist-es/commands/BatchAssociateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/CreateCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/CreateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/DeleteCodeSecurityIntegrationCommand.js +22 -0
- package/dist-es/commands/DeleteCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/GetCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/GetCodeSecurityScanCommand.js +22 -0
- package/dist-es/commands/GetCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityIntegrationsCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityScanConfigurationAssociationsCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityScanConfigurationsCommand.js +22 -0
- package/dist-es/commands/StartCodeSecurityScanCommand.js +22 -0
- package/dist-es/commands/UpdateCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/UpdateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/models/models_0.js +153 -120
- package/dist-es/models/models_1.js +110 -0
- package/dist-es/protocols/Aws_restJson1.js +509 -3
- package/dist-types/Inspector2.d.ts +107 -0
- package/dist-types/Inspector2Client.d.ts +17 -2
- package/dist-types/commands/AssociateMemberCommand.d.ts +6 -1
- package/dist-types/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
- package/dist-types/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
- package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -1
- package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +4 -1
- package/dist-types/commands/BatchGetFindingDetailsCommand.d.ts +2 -0
- package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +2 -0
- package/dist-types/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
- package/dist-types/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
- package/dist-types/commands/CancelFindingsReportCommand.d.ts +4 -1
- package/dist-types/commands/CancelSbomExportCommand.d.ts +4 -1
- package/dist-types/commands/CreateCisScanConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/CreateCodeSecurityIntegrationCommand.d.ts +111 -0
- package/dist-types/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +116 -0
- package/dist-types/commands/CreateFilterCommand.d.ts +6 -1
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -2
- package/dist-types/commands/CreateSbomExportCommand.d.ts +4 -1
- package/dist-types/commands/DeleteCisScanConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/DeleteCodeSecurityIntegrationCommand.d.ts +91 -0
- package/dist-types/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/DeleteFilterCommand.d.ts +4 -1
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/DisableCommand.d.ts +8 -3
- package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +6 -2
- package/dist-types/commands/DisassociateMemberCommand.d.ts +2 -0
- package/dist-types/commands/EnableCommand.d.ts +6 -1
- package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +6 -2
- package/dist-types/commands/GetCisScanReportCommand.d.ts +5 -2
- package/dist-types/commands/GetCisScanResultDetailsCommand.d.ts +3 -1
- package/dist-types/commands/GetClustersForImageCommand.d.ts +3 -1
- package/dist-types/commands/GetCodeSecurityIntegrationCommand.d.ts +104 -0
- package/dist-types/commands/GetCodeSecurityScanCommand.d.ts +107 -0
- package/dist-types/commands/GetCodeSecurityScanConfigurationCommand.d.ts +115 -0
- package/dist-types/commands/GetConfigurationCommand.d.ts +3 -2
- package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +5 -2
- package/dist-types/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +7 -4
- package/dist-types/commands/GetEncryptionKeyCommand.d.ts +5 -2
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +7 -2
- package/dist-types/commands/GetMemberCommand.d.ts +5 -2
- package/dist-types/commands/GetSbomExportCommand.d.ts +5 -3
- package/dist-types/commands/ListAccountPermissionsCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScansCommand.d.ts +2 -0
- package/dist-types/commands/ListCodeSecurityIntegrationsCommand.d.ts +102 -0
- package/dist-types/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +113 -0
- package/dist-types/commands/ListCoverageCommand.d.ts +37 -0
- package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +4 -0
- package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +3 -2
- package/dist-types/commands/ListFiltersCommand.d.ts +4 -0
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +16 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +7 -0
- package/dist-types/commands/ListMembersCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/ListUsageTotalsCommand.d.ts +2 -0
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +6 -2
- package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +2 -0
- package/dist-types/commands/SendCisSessionHealthCommand.d.ts +7 -6
- package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +7 -6
- package/dist-types/commands/StartCisSessionCommand.d.ts +7 -6
- package/dist-types/commands/StartCodeSecurityScanCommand.d.ts +99 -0
- package/dist-types/commands/StopCisSessionCommand.d.ts +7 -6
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateCisScanConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateCodeSecurityIntegrationCommand.d.ts +109 -0
- package/dist-types/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +109 -0
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +5 -1
- package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +6 -2
- package/dist-types/commands/UpdateFilterCommand.d.ts +6 -1
- package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/models/models_0.d.ts +2059 -1859
- package/dist-types/models/models_1.d.ts +1582 -49
- package/dist-types/protocols/Aws_restJson1.d.ts +135 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/Inspector2.d.ts +299 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +90 -0
- package/dist-types/ts3.4/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCisScanReportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCisScanResultDetailsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetClustersForImageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeSecurityScanCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetDelegatedAdminAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetFindingsReportStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListCodeSecurityIntegrationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartCodeSecurityScanCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
- package/dist-types/ts3.4/models/models_0.d.ts +420 -328
- package/dist-types/ts3.4/models/models_1.d.ts +445 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +180 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +2 -2
|
@@ -17,6 +17,32 @@ export const se_AssociateMemberCommand = async (input, context) => {
|
|
|
17
17
|
b.m("POST").h(headers).b(body);
|
|
18
18
|
return b.build();
|
|
19
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
|
+
};
|
|
20
46
|
export const se_BatchGetAccountStatusCommand = async (input, context) => {
|
|
21
47
|
const b = rb(input, context);
|
|
22
48
|
const headers = {
|
|
@@ -138,6 +164,39 @@ export const se_CreateCisScanConfigurationCommand = async (input, context) => {
|
|
|
138
164
|
b.m("POST").h(headers).b(body);
|
|
139
165
|
return b.build();
|
|
140
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
|
+
};
|
|
141
200
|
export const se_CreateFilterCommand = async (input, context) => {
|
|
142
201
|
const b = rb(input, context);
|
|
143
202
|
const headers = {
|
|
@@ -199,6 +258,32 @@ export const se_DeleteCisScanConfigurationCommand = async (input, context) => {
|
|
|
199
258
|
b.m("POST").h(headers).b(body);
|
|
200
259
|
return b.build();
|
|
201
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
|
+
};
|
|
202
287
|
export const se_DeleteFilterCommand = async (input, context) => {
|
|
203
288
|
const b = rb(input, context);
|
|
204
289
|
const headers = {
|
|
@@ -339,6 +424,47 @@ export const se_GetClustersForImageCommand = async (input, context) => {
|
|
|
339
424
|
b.m("POST").h(headers).b(body);
|
|
340
425
|
return b.build();
|
|
341
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
|
+
};
|
|
342
468
|
export const se_GetConfigurationCommand = async (input, context) => {
|
|
343
469
|
const b = rb(input, context);
|
|
344
470
|
const headers = {};
|
|
@@ -500,6 +626,47 @@ export const se_ListCisScansCommand = async (input, context) => {
|
|
|
500
626
|
b.m("POST").h(headers).b(body);
|
|
501
627
|
return b.build();
|
|
502
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
|
+
};
|
|
503
670
|
export const se_ListCoverageCommand = async (input, context) => {
|
|
504
671
|
const b = rb(input, context);
|
|
505
672
|
const headers = {
|
|
@@ -703,6 +870,20 @@ export const se_StartCisSessionCommand = async (input, context) => {
|
|
|
703
870
|
b.m("PUT").h(headers).b(body);
|
|
704
871
|
return b.build();
|
|
705
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
|
+
};
|
|
706
887
|
export const se_StopCisSessionCommand = async (input, context) => {
|
|
707
888
|
const b = rb(input, context);
|
|
708
889
|
const headers = {
|
|
@@ -761,6 +942,34 @@ export const se_UpdateCisScanConfigurationCommand = async (input, context) => {
|
|
|
761
942
|
b.m("POST").h(headers).b(body);
|
|
762
943
|
return b.build();
|
|
763
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
|
+
};
|
|
764
973
|
export const se_UpdateConfigurationCommand = async (input, context) => {
|
|
765
974
|
const b = rb(input, context);
|
|
766
975
|
const headers = {
|
|
@@ -862,6 +1071,36 @@ export const de_AssociateMemberCommand = async (output, context) => {
|
|
|
862
1071
|
Object.assign(contents, doc);
|
|
863
1072
|
return contents;
|
|
864
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
|
+
};
|
|
865
1104
|
export const de_BatchGetAccountStatusCommand = async (output, context) => {
|
|
866
1105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
867
1106
|
return de_CommandError(output, context);
|
|
@@ -994,6 +1233,36 @@ export const de_CreateCisScanConfigurationCommand = async (output, context) => {
|
|
|
994
1233
|
Object.assign(contents, doc);
|
|
995
1234
|
return contents;
|
|
996
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
|
+
};
|
|
997
1266
|
export const de_CreateFilterCommand = async (output, context) => {
|
|
998
1267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
999
1268
|
return de_CommandError(output, context);
|
|
@@ -1050,6 +1319,34 @@ export const de_DeleteCisScanConfigurationCommand = async (output, context) => {
|
|
|
1050
1319
|
Object.assign(contents, doc);
|
|
1051
1320
|
return contents;
|
|
1052
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
|
+
};
|
|
1053
1350
|
export const de_DeleteFilterCommand = async (output, context) => {
|
|
1054
1351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1055
1352
|
return de_CommandError(output, context);
|
|
@@ -1196,6 +1493,70 @@ export const de_GetClustersForImageCommand = async (output, context) => {
|
|
|
1196
1493
|
Object.assign(contents, doc);
|
|
1197
1494
|
return contents;
|
|
1198
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
|
+
};
|
|
1199
1560
|
export const de_GetConfigurationCommand = async (output, context) => {
|
|
1200
1561
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1201
1562
|
return de_CommandError(output, context);
|
|
@@ -1384,6 +1745,51 @@ export const de_ListCisScansCommand = async (output, context) => {
|
|
|
1384
1745
|
Object.assign(contents, doc);
|
|
1385
1746
|
return contents;
|
|
1386
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
|
+
};
|
|
1387
1793
|
export const de_ListCoverageCommand = async (output, context) => {
|
|
1388
1794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1389
1795
|
return de_CommandError(output, context);
|
|
@@ -1575,6 +1981,21 @@ export const de_StartCisSessionCommand = async (output, context) => {
|
|
|
1575
1981
|
await collectBody(output.body, context);
|
|
1576
1982
|
return contents;
|
|
1577
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
|
+
};
|
|
1578
1999
|
export const de_StopCisSessionCommand = async (output, context) => {
|
|
1579
2000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1580
2001
|
return de_CommandError(output, context);
|
|
@@ -1619,6 +2040,35 @@ export const de_UpdateCisScanConfigurationCommand = async (output, context) => {
|
|
|
1619
2040
|
Object.assign(contents, doc);
|
|
1620
2041
|
return contents;
|
|
1621
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
|
+
};
|
|
1622
2072
|
export const de_UpdateConfigurationCommand = async (output, context) => {
|
|
1623
2073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1624
2074
|
return de_CommandError(output, context);
|
|
@@ -1716,15 +2166,15 @@ const de_CommandError = async (output, context) => {
|
|
|
1716
2166
|
case "ValidationException":
|
|
1717
2167
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1718
2168
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2169
|
+
case "ConflictException":
|
|
2170
|
+
case "com.amazonaws.inspector2#ConflictException":
|
|
2171
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1719
2172
|
case "ResourceNotFoundException":
|
|
1720
2173
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1721
2174
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1722
2175
|
case "BadRequestException":
|
|
1723
2176
|
case "com.amazonaws.inspector2#BadRequestException":
|
|
1724
2177
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "ConflictException":
|
|
1726
|
-
case "com.amazonaws.inspector2#ConflictException":
|
|
1727
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1728
2178
|
default:
|
|
1729
2179
|
const parsedBody = parsedOutput.body;
|
|
1730
2180
|
return throwDefaultError({
|
|
@@ -1855,6 +2305,7 @@ const se_AggregationRequest = (input, context) => {
|
|
|
1855
2305
|
awsEcrContainerAggregation: (value) => ({
|
|
1856
2306
|
awsEcrContainerAggregation: se_AwsEcrContainerAggregation(value, context),
|
|
1857
2307
|
}),
|
|
2308
|
+
codeRepositoryAggregation: (value) => ({ codeRepositoryAggregation: _json(value) }),
|
|
1858
2309
|
ec2InstanceAggregation: (value) => ({ ec2InstanceAggregation: _json(value) }),
|
|
1859
2310
|
findingTypeAggregation: (value) => ({ findingTypeAggregation: _json(value) }),
|
|
1860
2311
|
imageLayerAggregation: (value) => ({ imageLayerAggregation: _json(value) }),
|
|
@@ -1922,6 +2373,9 @@ const se_CoverageDateFilterList = (input, context) => {
|
|
|
1922
2373
|
const se_CoverageFilterCriteria = (input, context) => {
|
|
1923
2374
|
return take(input, {
|
|
1924
2375
|
accountId: _json,
|
|
2376
|
+
codeRepositoryProjectName: _json,
|
|
2377
|
+
codeRepositoryProviderType: _json,
|
|
2378
|
+
codeRepositoryProviderTypeVisibility: _json,
|
|
1925
2379
|
ec2InstanceTags: _json,
|
|
1926
2380
|
ecrImageInUseCount: _json,
|
|
1927
2381
|
ecrImageLastInUseAt: (_) => se_CoverageDateFilterList(_, context),
|
|
@@ -1932,6 +2386,7 @@ const se_CoverageFilterCriteria = (input, context) => {
|
|
|
1932
2386
|
lambdaFunctionRuntime: _json,
|
|
1933
2387
|
lambdaFunctionTags: _json,
|
|
1934
2388
|
lastScannedAt: (_) => se_CoverageDateFilterList(_, context),
|
|
2389
|
+
lastScannedCommitId: _json,
|
|
1935
2390
|
resourceId: _json,
|
|
1936
2391
|
resourceType: _json,
|
|
1937
2392
|
scanMode: _json,
|
|
@@ -1956,6 +2411,8 @@ const se_DateFilterList = (input, context) => {
|
|
|
1956
2411
|
const se_FilterCriteria = (input, context) => {
|
|
1957
2412
|
return take(input, {
|
|
1958
2413
|
awsAccountId: _json,
|
|
2414
|
+
codeRepositoryProjectName: _json,
|
|
2415
|
+
codeRepositoryProviderType: _json,
|
|
1959
2416
|
codeVulnerabilityDetectorName: _json,
|
|
1960
2417
|
codeVulnerabilityDetectorTags: _json,
|
|
1961
2418
|
codeVulnerabilityFilePath: _json,
|
|
@@ -2063,6 +2520,11 @@ const de_AggregationResponse = (output, context) => {
|
|
|
2063
2520
|
awsEcrContainerAggregation: de_AwsEcrContainerAggregationResponse(output.awsEcrContainerAggregation, context),
|
|
2064
2521
|
};
|
|
2065
2522
|
}
|
|
2523
|
+
if (output.codeRepositoryAggregation != null) {
|
|
2524
|
+
return {
|
|
2525
|
+
codeRepositoryAggregation: _json(output.codeRepositoryAggregation),
|
|
2526
|
+
};
|
|
2527
|
+
}
|
|
2066
2528
|
if (output.ec2InstanceAggregation != null) {
|
|
2067
2529
|
return {
|
|
2068
2530
|
ec2InstanceAggregation: _json(output.ec2InstanceAggregation),
|
|
@@ -2235,6 +2697,36 @@ const de_ClusterInformationList = (output, context) => {
|
|
|
2235
2697
|
});
|
|
2236
2698
|
return retVal;
|
|
2237
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
|
+
};
|
|
2238
2730
|
const de_CoveredResource = (output, context) => {
|
|
2239
2731
|
return take(output, {
|
|
2240
2732
|
accountId: __expectString,
|
|
@@ -2367,6 +2859,8 @@ const de_Filter = (output, context) => {
|
|
|
2367
2859
|
const de_FilterCriteria = (output, context) => {
|
|
2368
2860
|
return take(output, {
|
|
2369
2861
|
awsAccountId: _json,
|
|
2862
|
+
codeRepositoryProjectName: _json,
|
|
2863
|
+
codeRepositoryProviderType: _json,
|
|
2370
2864
|
codeVulnerabilityDetectorName: _json,
|
|
2371
2865
|
codeVulnerabilityDetectorTags: _json,
|
|
2372
2866
|
codeVulnerabilityFilePath: _json,
|
|
@@ -2510,6 +3004,14 @@ const de_InspectorScoreDetails = (output, context) => {
|
|
|
2510
3004
|
adjustedCvss: (_) => de_CvssScoreDetails(_, context),
|
|
2511
3005
|
});
|
|
2512
3006
|
};
|
|
3007
|
+
const de_IntegrationSummaries = (output, context) => {
|
|
3008
|
+
const retVal = (output || [])
|
|
3009
|
+
.filter((e) => e != null)
|
|
3010
|
+
.map((entry) => {
|
|
3011
|
+
return de_CodeSecurityIntegrationSummary(entry, context);
|
|
3012
|
+
});
|
|
3013
|
+
return retVal;
|
|
3014
|
+
};
|
|
2513
3015
|
const de_LambdaFunctionAggregationResponse = (output, context) => {
|
|
2514
3016
|
return take(output, {
|
|
2515
3017
|
accountId: __expectString,
|
|
@@ -2600,6 +3102,7 @@ const de_ResourceDetails = (output, context) => {
|
|
|
2600
3102
|
awsEc2Instance: (_) => de_AwsEc2InstanceDetails(_, context),
|
|
2601
3103
|
awsEcrContainerImage: (_) => de_AwsEcrContainerImageDetails(_, context),
|
|
2602
3104
|
awsLambdaFunction: (_) => de_AwsLambdaFunctionDetails(_, context),
|
|
3105
|
+
codeRepository: _json,
|
|
2603
3106
|
});
|
|
2604
3107
|
};
|
|
2605
3108
|
const de_ResourceList = (output, context) => {
|
|
@@ -2612,6 +3115,7 @@ const de_ResourceList = (output, context) => {
|
|
|
2612
3115
|
};
|
|
2613
3116
|
const de_ResourceScanMetadata = (output, context) => {
|
|
2614
3117
|
return take(output, {
|
|
3118
|
+
codeRepository: (_) => de_CodeRepositoryMetadata(_, context),
|
|
2615
3119
|
ec2: _json,
|
|
2616
3120
|
ecrImage: (_) => de_EcrContainerImageMetadata(_, context),
|
|
2617
3121
|
ecrRepository: _json,
|
|
@@ -2684,6 +3188,8 @@ const deserializeMetadata = (output) => ({
|
|
|
2684
3188
|
cfId: output.headers["x-amz-cf-id"],
|
|
2685
3189
|
});
|
|
2686
3190
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3191
|
+
const _mR = "maxResults";
|
|
3192
|
+
const _nT = "nextToken";
|
|
2687
3193
|
const _rAS = "retryAfterSeconds";
|
|
2688
3194
|
const _rT = "resourceType";
|
|
2689
3195
|
const _ra = "retry-after";
|