@aws-sdk/client-inspector2 3.353.0 → 3.357.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 +56 -0
- package/dist-cjs/Inspector2.js +14 -0
- package/dist-cjs/commands/BatchGetCodeSnippetCommand.js +46 -0
- package/dist-cjs/commands/CancelSbomExportCommand.js +46 -0
- package/dist-cjs/commands/CreateSbomExportCommand.js +46 -0
- package/dist-cjs/commands/GetEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/GetSbomExportCommand.js +46 -0
- package/dist-cjs/commands/ResetEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/UpdateEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +28 -2
- package/dist-cjs/protocols/Aws_restJson1.js +492 -13
- package/dist-es/Inspector2.js +14 -0
- package/dist-es/commands/BatchGetCodeSnippetCommand.js +42 -0
- package/dist-es/commands/CancelSbomExportCommand.js +42 -0
- package/dist-es/commands/CreateSbomExportCommand.js +42 -0
- package/dist-es/commands/GetEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/GetSbomExportCommand.js +42 -0
- package/dist-es/commands/ResetEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/UpdateEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +26 -0
- package/dist-es/protocols/Aws_restJson1.js +472 -7
- package/dist-types/Inspector2.d.ts +49 -0
- package/dist-types/Inspector2Client.d.ts +10 -3
- package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -0
- package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +113 -0
- package/dist-types/commands/CancelSbomExportCommand.d.ts +89 -0
- package/dist-types/commands/CreateFilterCommand.d.ts +9 -0
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -0
- package/dist-types/commands/CreateSbomExportCommand.d.ts +141 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DisableCommand.d.ts +2 -0
- package/dist-types/commands/EnableCommand.d.ts +2 -0
- package/dist-types/commands/GetEncryptionKeyCommand.d.ts +90 -0
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +9 -0
- package/dist-types/commands/GetSbomExportCommand.d.ts +145 -0
- package/dist-types/commands/ListFiltersCommand.d.ts +9 -0
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +1 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +33 -0
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +88 -0
- package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +89 -0
- package/dist-types/commands/UpdateFilterCommand.d.ts +9 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +485 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/Inspector2.d.ts +119 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchGetCodeSnippetCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CancelSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ResetEncryptionKeyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateEncryptionKeyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +153 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +28 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateOrgEc2DeepInspectionConfigurationCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateFilterCommand = exports.de_UpdateEc2DeepInspectionConfigurationCommand = exports.de_UpdateConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchVulnerabilitiesCommand = exports.de_ListUsageTotalsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMembersCommand = exports.de_ListFindingsCommand = exports.de_ListFindingAggregationsCommand = exports.de_ListFiltersCommand = exports.de_ListDelegatedAdminAccountsCommand = exports.de_ListCoverageStatisticsCommand = exports.de_ListCoverageCommand = exports.de_ListAccountPermissionsCommand = exports.de_GetMemberCommand = exports.de_GetFindingsReportStatusCommand = exports.de_GetEc2DeepInspectionConfigurationCommand = exports.de_GetDelegatedAdminAccountCommand = exports.de_GetConfigurationCommand = exports.de_EnableDelegatedAdminAccountCommand = exports.de_EnableCommand = exports.de_DisassociateMemberCommand = void 0;
|
|
3
|
+
exports.de_BatchGetMemberEc2DeepInspectionStatusCommand = exports.de_BatchGetFreeTrialInfoCommand = exports.de_BatchGetCodeSnippetCommand = exports.de_BatchGetAccountStatusCommand = exports.de_AssociateMemberCommand = exports.se_UpdateOrgEc2DeepInspectionConfigurationCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateFilterCommand = exports.se_UpdateEncryptionKeyCommand = exports.se_UpdateEc2DeepInspectionConfigurationCommand = exports.se_UpdateConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchVulnerabilitiesCommand = exports.se_ResetEncryptionKeyCommand = exports.se_ListUsageTotalsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListMembersCommand = exports.se_ListFindingsCommand = exports.se_ListFindingAggregationsCommand = exports.se_ListFiltersCommand = exports.se_ListDelegatedAdminAccountsCommand = exports.se_ListCoverageStatisticsCommand = exports.se_ListCoverageCommand = exports.se_ListAccountPermissionsCommand = exports.se_GetSbomExportCommand = exports.se_GetMemberCommand = exports.se_GetFindingsReportStatusCommand = exports.se_GetEncryptionKeyCommand = exports.se_GetEc2DeepInspectionConfigurationCommand = exports.se_GetDelegatedAdminAccountCommand = exports.se_GetConfigurationCommand = exports.se_EnableDelegatedAdminAccountCommand = exports.se_EnableCommand = exports.se_DisassociateMemberCommand = exports.se_DisableDelegatedAdminAccountCommand = exports.se_DisableCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DeleteFilterCommand = exports.se_CreateSbomExportCommand = exports.se_CreateFindingsReportCommand = exports.se_CreateFilterCommand = exports.se_CancelSbomExportCommand = exports.se_CancelFindingsReportCommand = exports.se_BatchUpdateMemberEc2DeepInspectionStatusCommand = exports.se_BatchGetMemberEc2DeepInspectionStatusCommand = exports.se_BatchGetFreeTrialInfoCommand = exports.se_BatchGetCodeSnippetCommand = exports.se_BatchGetAccountStatusCommand = exports.se_AssociateMemberCommand = void 0;
|
|
4
|
+
exports.de_UpdateOrgEc2DeepInspectionConfigurationCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateFilterCommand = exports.de_UpdateEncryptionKeyCommand = exports.de_UpdateEc2DeepInspectionConfigurationCommand = exports.de_UpdateConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchVulnerabilitiesCommand = exports.de_ResetEncryptionKeyCommand = exports.de_ListUsageTotalsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMembersCommand = exports.de_ListFindingsCommand = exports.de_ListFindingAggregationsCommand = exports.de_ListFiltersCommand = exports.de_ListDelegatedAdminAccountsCommand = exports.de_ListCoverageStatisticsCommand = exports.de_ListCoverageCommand = exports.de_ListAccountPermissionsCommand = exports.de_GetSbomExportCommand = exports.de_GetMemberCommand = exports.de_GetFindingsReportStatusCommand = exports.de_GetEncryptionKeyCommand = exports.de_GetEc2DeepInspectionConfigurationCommand = exports.de_GetDelegatedAdminAccountCommand = exports.de_GetConfigurationCommand = exports.de_EnableDelegatedAdminAccountCommand = exports.de_EnableCommand = exports.de_DisassociateMemberCommand = exports.de_DisableDelegatedAdminAccountCommand = exports.de_DisableCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DeleteFilterCommand = exports.de_CreateSbomExportCommand = exports.de_CreateFindingsReportCommand = exports.de_CreateFilterCommand = exports.de_CancelSbomExportCommand = exports.de_CancelFindingsReportCommand = exports.de_BatchUpdateMemberEc2DeepInspectionStatusCommand = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -49,6 +49,27 @@ const se_BatchGetAccountStatusCommand = async (input, context) => {
|
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
exports.se_BatchGetAccountStatusCommand = se_BatchGetAccountStatusCommand;
|
|
52
|
+
const se_BatchGetCodeSnippetCommand = async (input, context) => {
|
|
53
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
54
|
+
const headers = {
|
|
55
|
+
"content-type": "application/json",
|
|
56
|
+
};
|
|
57
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codesnippet/batchget";
|
|
58
|
+
let body;
|
|
59
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
|
+
findingArns: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
+
}));
|
|
62
|
+
return new protocol_http_1.HttpRequest({
|
|
63
|
+
protocol,
|
|
64
|
+
hostname,
|
|
65
|
+
port,
|
|
66
|
+
method: "POST",
|
|
67
|
+
headers,
|
|
68
|
+
path: resolvedPath,
|
|
69
|
+
body,
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
exports.se_BatchGetCodeSnippetCommand = se_BatchGetCodeSnippetCommand;
|
|
52
73
|
const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
|
|
53
74
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
54
75
|
const headers = {
|
|
@@ -134,6 +155,27 @@ const se_CancelFindingsReportCommand = async (input, context) => {
|
|
|
134
155
|
});
|
|
135
156
|
};
|
|
136
157
|
exports.se_CancelFindingsReportCommand = se_CancelFindingsReportCommand;
|
|
158
|
+
const se_CancelSbomExportCommand = async (input, context) => {
|
|
159
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/json",
|
|
162
|
+
};
|
|
163
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sbomexport/cancel";
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
166
|
+
reportId: [],
|
|
167
|
+
}));
|
|
168
|
+
return new protocol_http_1.HttpRequest({
|
|
169
|
+
protocol,
|
|
170
|
+
hostname,
|
|
171
|
+
port,
|
|
172
|
+
method: "POST",
|
|
173
|
+
headers,
|
|
174
|
+
path: resolvedPath,
|
|
175
|
+
body,
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
exports.se_CancelSbomExportCommand = se_CancelSbomExportCommand;
|
|
137
179
|
const se_CreateFilterCommand = async (input, context) => {
|
|
138
180
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
181
|
const headers = {
|
|
@@ -183,6 +225,29 @@ const se_CreateFindingsReportCommand = async (input, context) => {
|
|
|
183
225
|
});
|
|
184
226
|
};
|
|
185
227
|
exports.se_CreateFindingsReportCommand = se_CreateFindingsReportCommand;
|
|
228
|
+
const se_CreateSbomExportCommand = async (input, context) => {
|
|
229
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
230
|
+
const headers = {
|
|
231
|
+
"content-type": "application/json",
|
|
232
|
+
};
|
|
233
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sbomexport/create";
|
|
234
|
+
let body;
|
|
235
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
236
|
+
reportFormat: [],
|
|
237
|
+
resourceFilterCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
238
|
+
s3Destination: (_) => (0, smithy_client_1._json)(_),
|
|
239
|
+
}));
|
|
240
|
+
return new protocol_http_1.HttpRequest({
|
|
241
|
+
protocol,
|
|
242
|
+
hostname,
|
|
243
|
+
port,
|
|
244
|
+
method: "POST",
|
|
245
|
+
headers,
|
|
246
|
+
path: resolvedPath,
|
|
247
|
+
body,
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
exports.se_CreateSbomExportCommand = se_CreateSbomExportCommand;
|
|
186
251
|
const se_DeleteFilterCommand = async (input, context) => {
|
|
187
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
188
253
|
const headers = {
|
|
@@ -389,6 +454,27 @@ const se_GetEc2DeepInspectionConfigurationCommand = async (input, context) => {
|
|
|
389
454
|
});
|
|
390
455
|
};
|
|
391
456
|
exports.se_GetEc2DeepInspectionConfigurationCommand = se_GetEc2DeepInspectionConfigurationCommand;
|
|
457
|
+
const se_GetEncryptionKeyCommand = async (input, context) => {
|
|
458
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
459
|
+
const headers = {};
|
|
460
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/encryptionkey/get";
|
|
461
|
+
const query = (0, smithy_client_1.map)({
|
|
462
|
+
scanType: [, (0, smithy_client_1.expectNonNull)(input.scanType, `scanType`)],
|
|
463
|
+
resourceType: [, (0, smithy_client_1.expectNonNull)(input.resourceType, `resourceType`)],
|
|
464
|
+
});
|
|
465
|
+
let body;
|
|
466
|
+
return new protocol_http_1.HttpRequest({
|
|
467
|
+
protocol,
|
|
468
|
+
hostname,
|
|
469
|
+
port,
|
|
470
|
+
method: "GET",
|
|
471
|
+
headers,
|
|
472
|
+
path: resolvedPath,
|
|
473
|
+
query,
|
|
474
|
+
body,
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
exports.se_GetEncryptionKeyCommand = se_GetEncryptionKeyCommand;
|
|
392
478
|
const se_GetFindingsReportStatusCommand = async (input, context) => {
|
|
393
479
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
480
|
const headers = {
|
|
@@ -431,6 +517,27 @@ const se_GetMemberCommand = async (input, context) => {
|
|
|
431
517
|
});
|
|
432
518
|
};
|
|
433
519
|
exports.se_GetMemberCommand = se_GetMemberCommand;
|
|
520
|
+
const se_GetSbomExportCommand = async (input, context) => {
|
|
521
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
|
+
const headers = {
|
|
523
|
+
"content-type": "application/json",
|
|
524
|
+
};
|
|
525
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sbomexport/get";
|
|
526
|
+
let body;
|
|
527
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
528
|
+
reportId: [],
|
|
529
|
+
}));
|
|
530
|
+
return new protocol_http_1.HttpRequest({
|
|
531
|
+
protocol,
|
|
532
|
+
hostname,
|
|
533
|
+
port,
|
|
534
|
+
method: "POST",
|
|
535
|
+
headers,
|
|
536
|
+
path: resolvedPath,
|
|
537
|
+
body,
|
|
538
|
+
});
|
|
539
|
+
};
|
|
540
|
+
exports.se_GetSbomExportCommand = se_GetSbomExportCommand;
|
|
434
541
|
const se_ListAccountPermissionsCommand = async (input, context) => {
|
|
435
542
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
436
543
|
const headers = {
|
|
@@ -658,6 +765,28 @@ const se_ListUsageTotalsCommand = async (input, context) => {
|
|
|
658
765
|
});
|
|
659
766
|
};
|
|
660
767
|
exports.se_ListUsageTotalsCommand = se_ListUsageTotalsCommand;
|
|
768
|
+
const se_ResetEncryptionKeyCommand = async (input, context) => {
|
|
769
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
770
|
+
const headers = {
|
|
771
|
+
"content-type": "application/json",
|
|
772
|
+
};
|
|
773
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/encryptionkey/reset";
|
|
774
|
+
let body;
|
|
775
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
776
|
+
resourceType: [],
|
|
777
|
+
scanType: [],
|
|
778
|
+
}));
|
|
779
|
+
return new protocol_http_1.HttpRequest({
|
|
780
|
+
protocol,
|
|
781
|
+
hostname,
|
|
782
|
+
port,
|
|
783
|
+
method: "PUT",
|
|
784
|
+
headers,
|
|
785
|
+
path: resolvedPath,
|
|
786
|
+
body,
|
|
787
|
+
});
|
|
788
|
+
};
|
|
789
|
+
exports.se_ResetEncryptionKeyCommand = se_ResetEncryptionKeyCommand;
|
|
661
790
|
const se_SearchVulnerabilitiesCommand = async (input, context) => {
|
|
662
791
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
663
792
|
const headers = {
|
|
@@ -769,6 +898,29 @@ const se_UpdateEc2DeepInspectionConfigurationCommand = async (input, context) =>
|
|
|
769
898
|
});
|
|
770
899
|
};
|
|
771
900
|
exports.se_UpdateEc2DeepInspectionConfigurationCommand = se_UpdateEc2DeepInspectionConfigurationCommand;
|
|
901
|
+
const se_UpdateEncryptionKeyCommand = async (input, context) => {
|
|
902
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
903
|
+
const headers = {
|
|
904
|
+
"content-type": "application/json",
|
|
905
|
+
};
|
|
906
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/encryptionkey/update";
|
|
907
|
+
let body;
|
|
908
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
909
|
+
kmsKeyId: [],
|
|
910
|
+
resourceType: [],
|
|
911
|
+
scanType: [],
|
|
912
|
+
}));
|
|
913
|
+
return new protocol_http_1.HttpRequest({
|
|
914
|
+
protocol,
|
|
915
|
+
hostname,
|
|
916
|
+
port,
|
|
917
|
+
method: "PUT",
|
|
918
|
+
headers,
|
|
919
|
+
path: resolvedPath,
|
|
920
|
+
body,
|
|
921
|
+
});
|
|
922
|
+
};
|
|
923
|
+
exports.se_UpdateEncryptionKeyCommand = se_UpdateEncryptionKeyCommand;
|
|
772
924
|
const se_UpdateFilterCommand = async (input, context) => {
|
|
773
925
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
774
926
|
const headers = {
|
|
@@ -928,6 +1080,50 @@ const de_BatchGetAccountStatusCommandError = async (output, context) => {
|
|
|
928
1080
|
});
|
|
929
1081
|
}
|
|
930
1082
|
};
|
|
1083
|
+
const de_BatchGetCodeSnippetCommand = async (output, context) => {
|
|
1084
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1085
|
+
return de_BatchGetCodeSnippetCommandError(output, context);
|
|
1086
|
+
}
|
|
1087
|
+
const contents = (0, smithy_client_1.map)({
|
|
1088
|
+
$metadata: deserializeMetadata(output),
|
|
1089
|
+
});
|
|
1090
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1091
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1092
|
+
codeSnippetResults: smithy_client_1._json,
|
|
1093
|
+
errors: smithy_client_1._json,
|
|
1094
|
+
});
|
|
1095
|
+
Object.assign(contents, doc);
|
|
1096
|
+
return contents;
|
|
1097
|
+
};
|
|
1098
|
+
exports.de_BatchGetCodeSnippetCommand = de_BatchGetCodeSnippetCommand;
|
|
1099
|
+
const de_BatchGetCodeSnippetCommandError = async (output, context) => {
|
|
1100
|
+
const parsedOutput = {
|
|
1101
|
+
...output,
|
|
1102
|
+
body: await parseErrorBody(output.body, context),
|
|
1103
|
+
};
|
|
1104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
|
+
switch (errorCode) {
|
|
1106
|
+
case "AccessDeniedException":
|
|
1107
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1108
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1109
|
+
case "InternalServerException":
|
|
1110
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1111
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1112
|
+
case "ThrottlingException":
|
|
1113
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1114
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1115
|
+
case "ValidationException":
|
|
1116
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1117
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1118
|
+
default:
|
|
1119
|
+
const parsedBody = parsedOutput.body;
|
|
1120
|
+
return throwDefaultError({
|
|
1121
|
+
output,
|
|
1122
|
+
parsedBody,
|
|
1123
|
+
errorCode,
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
931
1127
|
const de_BatchGetFreeTrialInfoCommand = async (output, context) => {
|
|
932
1128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
1129
|
return de_BatchGetFreeTrialInfoCommandError(output, context);
|
|
@@ -1106,6 +1302,52 @@ const de_CancelFindingsReportCommandError = async (output, context) => {
|
|
|
1106
1302
|
});
|
|
1107
1303
|
}
|
|
1108
1304
|
};
|
|
1305
|
+
const de_CancelSbomExportCommand = async (output, context) => {
|
|
1306
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
|
+
return de_CancelSbomExportCommandError(output, context);
|
|
1308
|
+
}
|
|
1309
|
+
const contents = (0, smithy_client_1.map)({
|
|
1310
|
+
$metadata: deserializeMetadata(output),
|
|
1311
|
+
});
|
|
1312
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1313
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1314
|
+
reportId: smithy_client_1.expectString,
|
|
1315
|
+
});
|
|
1316
|
+
Object.assign(contents, doc);
|
|
1317
|
+
return contents;
|
|
1318
|
+
};
|
|
1319
|
+
exports.de_CancelSbomExportCommand = de_CancelSbomExportCommand;
|
|
1320
|
+
const de_CancelSbomExportCommandError = async (output, context) => {
|
|
1321
|
+
const parsedOutput = {
|
|
1322
|
+
...output,
|
|
1323
|
+
body: await parseErrorBody(output.body, context),
|
|
1324
|
+
};
|
|
1325
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
+
switch (errorCode) {
|
|
1327
|
+
case "AccessDeniedException":
|
|
1328
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1329
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1330
|
+
case "InternalServerException":
|
|
1331
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1332
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1333
|
+
case "ResourceNotFoundException":
|
|
1334
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1335
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1336
|
+
case "ThrottlingException":
|
|
1337
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1338
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1339
|
+
case "ValidationException":
|
|
1340
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1341
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1342
|
+
default:
|
|
1343
|
+
const parsedBody = parsedOutput.body;
|
|
1344
|
+
return throwDefaultError({
|
|
1345
|
+
output,
|
|
1346
|
+
parsedBody,
|
|
1347
|
+
errorCode,
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
};
|
|
1109
1351
|
const de_CreateFilterCommand = async (output, context) => {
|
|
1110
1352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1111
1353
|
return de_CreateFilterCommandError(output, context);
|
|
@@ -1201,6 +1443,52 @@ const de_CreateFindingsReportCommandError = async (output, context) => {
|
|
|
1201
1443
|
});
|
|
1202
1444
|
}
|
|
1203
1445
|
};
|
|
1446
|
+
const de_CreateSbomExportCommand = async (output, context) => {
|
|
1447
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1448
|
+
return de_CreateSbomExportCommandError(output, context);
|
|
1449
|
+
}
|
|
1450
|
+
const contents = (0, smithy_client_1.map)({
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
});
|
|
1453
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1454
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1455
|
+
reportId: smithy_client_1.expectString,
|
|
1456
|
+
});
|
|
1457
|
+
Object.assign(contents, doc);
|
|
1458
|
+
return contents;
|
|
1459
|
+
};
|
|
1460
|
+
exports.de_CreateSbomExportCommand = de_CreateSbomExportCommand;
|
|
1461
|
+
const de_CreateSbomExportCommandError = async (output, context) => {
|
|
1462
|
+
const parsedOutput = {
|
|
1463
|
+
...output,
|
|
1464
|
+
body: await parseErrorBody(output.body, context),
|
|
1465
|
+
};
|
|
1466
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
+
switch (errorCode) {
|
|
1468
|
+
case "AccessDeniedException":
|
|
1469
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1470
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1471
|
+
case "InternalServerException":
|
|
1472
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1473
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1474
|
+
case "ResourceNotFoundException":
|
|
1475
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1476
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1477
|
+
case "ThrottlingException":
|
|
1478
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1479
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1480
|
+
case "ValidationException":
|
|
1481
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1482
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1483
|
+
default:
|
|
1484
|
+
const parsedBody = parsedOutput.body;
|
|
1485
|
+
return throwDefaultError({
|
|
1486
|
+
output,
|
|
1487
|
+
parsedBody,
|
|
1488
|
+
errorCode,
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1204
1492
|
const de_DeleteFilterCommand = async (output, context) => {
|
|
1205
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1206
1494
|
return de_DeleteFilterCommandError(output, context);
|
|
@@ -1658,6 +1946,52 @@ const de_GetEc2DeepInspectionConfigurationCommandError = async (output, context)
|
|
|
1658
1946
|
});
|
|
1659
1947
|
}
|
|
1660
1948
|
};
|
|
1949
|
+
const de_GetEncryptionKeyCommand = async (output, context) => {
|
|
1950
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1951
|
+
return de_GetEncryptionKeyCommandError(output, context);
|
|
1952
|
+
}
|
|
1953
|
+
const contents = (0, smithy_client_1.map)({
|
|
1954
|
+
$metadata: deserializeMetadata(output),
|
|
1955
|
+
});
|
|
1956
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1957
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1958
|
+
kmsKeyId: smithy_client_1.expectString,
|
|
1959
|
+
});
|
|
1960
|
+
Object.assign(contents, doc);
|
|
1961
|
+
return contents;
|
|
1962
|
+
};
|
|
1963
|
+
exports.de_GetEncryptionKeyCommand = de_GetEncryptionKeyCommand;
|
|
1964
|
+
const de_GetEncryptionKeyCommandError = async (output, context) => {
|
|
1965
|
+
const parsedOutput = {
|
|
1966
|
+
...output,
|
|
1967
|
+
body: await parseErrorBody(output.body, context),
|
|
1968
|
+
};
|
|
1969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
|
+
switch (errorCode) {
|
|
1971
|
+
case "AccessDeniedException":
|
|
1972
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1973
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1974
|
+
case "InternalServerException":
|
|
1975
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1976
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1977
|
+
case "ResourceNotFoundException":
|
|
1978
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1979
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1980
|
+
case "ThrottlingException":
|
|
1981
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1982
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1983
|
+
case "ValidationException":
|
|
1984
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1985
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1986
|
+
default:
|
|
1987
|
+
const parsedBody = parsedOutput.body;
|
|
1988
|
+
return throwDefaultError({
|
|
1989
|
+
output,
|
|
1990
|
+
parsedBody,
|
|
1991
|
+
errorCode,
|
|
1992
|
+
});
|
|
1993
|
+
}
|
|
1994
|
+
};
|
|
1661
1995
|
const de_GetFindingsReportStatusCommand = async (output, context) => {
|
|
1662
1996
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1663
1997
|
return de_GetFindingsReportStatusCommandError(output, context);
|
|
@@ -1755,6 +2089,58 @@ const de_GetMemberCommandError = async (output, context) => {
|
|
|
1755
2089
|
});
|
|
1756
2090
|
}
|
|
1757
2091
|
};
|
|
2092
|
+
const de_GetSbomExportCommand = async (output, context) => {
|
|
2093
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
|
+
return de_GetSbomExportCommandError(output, context);
|
|
2095
|
+
}
|
|
2096
|
+
const contents = (0, smithy_client_1.map)({
|
|
2097
|
+
$metadata: deserializeMetadata(output),
|
|
2098
|
+
});
|
|
2099
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2100
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2101
|
+
errorCode: smithy_client_1.expectString,
|
|
2102
|
+
errorMessage: smithy_client_1.expectString,
|
|
2103
|
+
filterCriteria: smithy_client_1._json,
|
|
2104
|
+
format: smithy_client_1.expectString,
|
|
2105
|
+
reportId: smithy_client_1.expectString,
|
|
2106
|
+
s3Destination: smithy_client_1._json,
|
|
2107
|
+
status: smithy_client_1.expectString,
|
|
2108
|
+
});
|
|
2109
|
+
Object.assign(contents, doc);
|
|
2110
|
+
return contents;
|
|
2111
|
+
};
|
|
2112
|
+
exports.de_GetSbomExportCommand = de_GetSbomExportCommand;
|
|
2113
|
+
const de_GetSbomExportCommandError = async (output, context) => {
|
|
2114
|
+
const parsedOutput = {
|
|
2115
|
+
...output,
|
|
2116
|
+
body: await parseErrorBody(output.body, context),
|
|
2117
|
+
};
|
|
2118
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
|
+
switch (errorCode) {
|
|
2120
|
+
case "AccessDeniedException":
|
|
2121
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2122
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2123
|
+
case "InternalServerException":
|
|
2124
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2125
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2126
|
+
case "ResourceNotFoundException":
|
|
2127
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2128
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2129
|
+
case "ThrottlingException":
|
|
2130
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2131
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2132
|
+
case "ValidationException":
|
|
2133
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2134
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2135
|
+
default:
|
|
2136
|
+
const parsedBody = parsedOutput.body;
|
|
2137
|
+
return throwDefaultError({
|
|
2138
|
+
output,
|
|
2139
|
+
parsedBody,
|
|
2140
|
+
errorCode,
|
|
2141
|
+
});
|
|
2142
|
+
}
|
|
2143
|
+
};
|
|
1758
2144
|
const de_ListAccountPermissionsCommand = async (output, context) => {
|
|
1759
2145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1760
2146
|
return de_ListAccountPermissionsCommandError(output, context);
|
|
@@ -2184,6 +2570,48 @@ const de_ListUsageTotalsCommandError = async (output, context) => {
|
|
|
2184
2570
|
});
|
|
2185
2571
|
}
|
|
2186
2572
|
};
|
|
2573
|
+
const de_ResetEncryptionKeyCommand = async (output, context) => {
|
|
2574
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2575
|
+
return de_ResetEncryptionKeyCommandError(output, context);
|
|
2576
|
+
}
|
|
2577
|
+
const contents = (0, smithy_client_1.map)({
|
|
2578
|
+
$metadata: deserializeMetadata(output),
|
|
2579
|
+
});
|
|
2580
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2581
|
+
return contents;
|
|
2582
|
+
};
|
|
2583
|
+
exports.de_ResetEncryptionKeyCommand = de_ResetEncryptionKeyCommand;
|
|
2584
|
+
const de_ResetEncryptionKeyCommandError = async (output, context) => {
|
|
2585
|
+
const parsedOutput = {
|
|
2586
|
+
...output,
|
|
2587
|
+
body: await parseErrorBody(output.body, context),
|
|
2588
|
+
};
|
|
2589
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2590
|
+
switch (errorCode) {
|
|
2591
|
+
case "AccessDeniedException":
|
|
2592
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2593
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2594
|
+
case "InternalServerException":
|
|
2595
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2596
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2597
|
+
case "ResourceNotFoundException":
|
|
2598
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2599
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2600
|
+
case "ThrottlingException":
|
|
2601
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2602
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2603
|
+
case "ValidationException":
|
|
2604
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2605
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2606
|
+
default:
|
|
2607
|
+
const parsedBody = parsedOutput.body;
|
|
2608
|
+
return throwDefaultError({
|
|
2609
|
+
output,
|
|
2610
|
+
parsedBody,
|
|
2611
|
+
errorCode,
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
};
|
|
2187
2615
|
const de_SearchVulnerabilitiesCommand = async (output, context) => {
|
|
2188
2616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2189
2617
|
return de_SearchVulnerabilitiesCommandError(output, context);
|
|
@@ -2235,7 +2663,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2235
2663
|
const contents = (0, smithy_client_1.map)({
|
|
2236
2664
|
$metadata: deserializeMetadata(output),
|
|
2237
2665
|
});
|
|
2238
|
-
await collectBody(output.body, context);
|
|
2666
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2239
2667
|
return contents;
|
|
2240
2668
|
};
|
|
2241
2669
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
@@ -2277,7 +2705,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2277
2705
|
const contents = (0, smithy_client_1.map)({
|
|
2278
2706
|
$metadata: deserializeMetadata(output),
|
|
2279
2707
|
});
|
|
2280
|
-
await collectBody(output.body, context);
|
|
2708
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2281
2709
|
return contents;
|
|
2282
2710
|
};
|
|
2283
2711
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
@@ -2316,7 +2744,7 @@ const de_UpdateConfigurationCommand = async (output, context) => {
|
|
|
2316
2744
|
const contents = (0, smithy_client_1.map)({
|
|
2317
2745
|
$metadata: deserializeMetadata(output),
|
|
2318
2746
|
});
|
|
2319
|
-
await collectBody(output.body, context);
|
|
2747
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2320
2748
|
return contents;
|
|
2321
2749
|
};
|
|
2322
2750
|
exports.de_UpdateConfigurationCommand = de_UpdateConfigurationCommand;
|
|
@@ -2394,6 +2822,48 @@ const de_UpdateEc2DeepInspectionConfigurationCommandError = async (output, conte
|
|
|
2394
2822
|
});
|
|
2395
2823
|
}
|
|
2396
2824
|
};
|
|
2825
|
+
const de_UpdateEncryptionKeyCommand = async (output, context) => {
|
|
2826
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2827
|
+
return de_UpdateEncryptionKeyCommandError(output, context);
|
|
2828
|
+
}
|
|
2829
|
+
const contents = (0, smithy_client_1.map)({
|
|
2830
|
+
$metadata: deserializeMetadata(output),
|
|
2831
|
+
});
|
|
2832
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2833
|
+
return contents;
|
|
2834
|
+
};
|
|
2835
|
+
exports.de_UpdateEncryptionKeyCommand = de_UpdateEncryptionKeyCommand;
|
|
2836
|
+
const de_UpdateEncryptionKeyCommandError = async (output, context) => {
|
|
2837
|
+
const parsedOutput = {
|
|
2838
|
+
...output,
|
|
2839
|
+
body: await parseErrorBody(output.body, context),
|
|
2840
|
+
};
|
|
2841
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2842
|
+
switch (errorCode) {
|
|
2843
|
+
case "AccessDeniedException":
|
|
2844
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2845
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2846
|
+
case "InternalServerException":
|
|
2847
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2848
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2849
|
+
case "ResourceNotFoundException":
|
|
2850
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2851
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2852
|
+
case "ThrottlingException":
|
|
2853
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2854
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2855
|
+
case "ValidationException":
|
|
2856
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2857
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2858
|
+
default:
|
|
2859
|
+
const parsedBody = parsedOutput.body;
|
|
2860
|
+
return throwDefaultError({
|
|
2861
|
+
output,
|
|
2862
|
+
parsedBody,
|
|
2863
|
+
errorCode,
|
|
2864
|
+
});
|
|
2865
|
+
}
|
|
2866
|
+
};
|
|
2397
2867
|
const de_UpdateFilterCommand = async (output, context) => {
|
|
2398
2868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2399
2869
|
return de_UpdateFilterCommandError(output, context);
|
|
@@ -2490,7 +2960,7 @@ const de_UpdateOrgEc2DeepInspectionConfigurationCommand = async (output, context
|
|
|
2490
2960
|
const contents = (0, smithy_client_1.map)({
|
|
2491
2961
|
$metadata: deserializeMetadata(output),
|
|
2492
2962
|
});
|
|
2493
|
-
await collectBody(output.body, context);
|
|
2963
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2494
2964
|
return contents;
|
|
2495
2965
|
};
|
|
2496
2966
|
exports.de_UpdateOrgEc2DeepInspectionConfigurationCommand = de_UpdateOrgEc2DeepInspectionConfigurationCommand;
|
|
@@ -2688,6 +3158,9 @@ const se_DateFilterList = (input, context) => {
|
|
|
2688
3158
|
const se_FilterCriteria = (input, context) => {
|
|
2689
3159
|
return (0, smithy_client_1.take)(input, {
|
|
2690
3160
|
awsAccountId: smithy_client_1._json,
|
|
3161
|
+
codeVulnerabilityDetectorName: smithy_client_1._json,
|
|
3162
|
+
codeVulnerabilityDetectorTags: smithy_client_1._json,
|
|
3163
|
+
codeVulnerabilityFilePath: smithy_client_1._json,
|
|
2691
3164
|
componentId: smithy_client_1._json,
|
|
2692
3165
|
componentType: smithy_client_1._json,
|
|
2693
3166
|
ec2InstanceImageId: smithy_client_1._json,
|
|
@@ -2699,6 +3172,7 @@ const se_FilterCriteria = (input, context) => {
|
|
|
2699
3172
|
ecrImageRegistry: smithy_client_1._json,
|
|
2700
3173
|
ecrImageRepositoryName: smithy_client_1._json,
|
|
2701
3174
|
ecrImageTags: smithy_client_1._json,
|
|
3175
|
+
epssScore: (_) => se_NumberFilterList(_, context),
|
|
2702
3176
|
exploitAvailable: smithy_client_1._json,
|
|
2703
3177
|
findingArn: smithy_client_1._json,
|
|
2704
3178
|
findingStatus: smithy_client_1._json,
|
|
@@ -2967,6 +3441,11 @@ const de_Epss = (output, context) => {
|
|
|
2967
3441
|
score: smithy_client_1.limitedParseDouble,
|
|
2968
3442
|
});
|
|
2969
3443
|
};
|
|
3444
|
+
const de_EpssDetails = (output, context) => {
|
|
3445
|
+
return (0, smithy_client_1.take)(output, {
|
|
3446
|
+
score: smithy_client_1.limitedParseDouble,
|
|
3447
|
+
});
|
|
3448
|
+
};
|
|
2970
3449
|
const de_ExploitabilityDetails = (output, context) => {
|
|
2971
3450
|
return (0, smithy_client_1.take)(output, {
|
|
2972
3451
|
lastKnownExploitAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -2995,6 +3474,9 @@ const de_Filter = (output, context) => {
|
|
|
2995
3474
|
const de_FilterCriteria = (output, context) => {
|
|
2996
3475
|
return (0, smithy_client_1.take)(output, {
|
|
2997
3476
|
awsAccountId: smithy_client_1._json,
|
|
3477
|
+
codeVulnerabilityDetectorName: smithy_client_1._json,
|
|
3478
|
+
codeVulnerabilityDetectorTags: smithy_client_1._json,
|
|
3479
|
+
codeVulnerabilityFilePath: smithy_client_1._json,
|
|
2998
3480
|
componentId: smithy_client_1._json,
|
|
2999
3481
|
componentType: smithy_client_1._json,
|
|
3000
3482
|
ec2InstanceImageId: smithy_client_1._json,
|
|
@@ -3006,6 +3488,7 @@ const de_FilterCriteria = (output, context) => {
|
|
|
3006
3488
|
ecrImageRegistry: smithy_client_1._json,
|
|
3007
3489
|
ecrImageRepositoryName: smithy_client_1._json,
|
|
3008
3490
|
ecrImageTags: smithy_client_1._json,
|
|
3491
|
+
epssScore: (_) => de_NumberFilterList(_, context),
|
|
3009
3492
|
exploitAvailable: smithy_client_1._json,
|
|
3010
3493
|
findingArn: smithy_client_1._json,
|
|
3011
3494
|
findingStatus: smithy_client_1._json,
|
|
@@ -3045,7 +3528,9 @@ const de_FilterList = (output, context) => {
|
|
|
3045
3528
|
const de_Finding = (output, context) => {
|
|
3046
3529
|
return (0, smithy_client_1.take)(output, {
|
|
3047
3530
|
awsAccountId: smithy_client_1.expectString,
|
|
3531
|
+
codeVulnerabilityDetails: smithy_client_1._json,
|
|
3048
3532
|
description: smithy_client_1.expectString,
|
|
3533
|
+
epss: (_) => de_EpssDetails(_, context),
|
|
3049
3534
|
exploitAvailable: smithy_client_1.expectString,
|
|
3050
3535
|
exploitabilityDetails: (_) => de_ExploitabilityDetails(_, context),
|
|
3051
3536
|
findingArn: smithy_client_1.expectString,
|
|
@@ -3272,13 +3757,7 @@ const deserializeMetadata = (output) => ({
|
|
|
3272
3757
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3273
3758
|
cfId: output.headers["x-amz-cf-id"],
|
|
3274
3759
|
});
|
|
3275
|
-
const
|
|
3276
|
-
if (streamBody instanceof Uint8Array) {
|
|
3277
|
-
return Promise.resolve(streamBody);
|
|
3278
|
-
}
|
|
3279
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3280
|
-
};
|
|
3281
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3760
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3282
3761
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3283
3762
|
value !== null &&
|
|
3284
3763
|
value !== "" &&
|