@aws-sdk/client-inspector2 3.378.0 → 3.381.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 +8 -0
- package/dist-cjs/Inspector2.js +2 -0
- package/dist-cjs/commands/BatchGetFindingDetailsCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +8 -2
- package/dist-cjs/protocols/Aws_restJson1.js +89 -2
- package/dist-es/Inspector2.js +2 -0
- package/dist-es/commands/BatchGetFindingDetailsCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +86 -1
- package/dist-types/Inspector2.d.ts +7 -0
- package/dist-types/Inspector2Client.d.ts +3 -2
- package/dist-types/commands/BatchGetFindingDetailsCommand.d.ts +129 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +152 -34
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/ts3.4/Inspector2.d.ts +17 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +6 -0
- package/dist-types/ts3.4/commands/BatchGetFindingDetailsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -9
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -227,6 +227,14 @@ BatchGetCodeSnippet
|
|
|
227
227
|
|
|
228
228
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/batchgetcodesnippetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetcodesnippetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetcodesnippetcommandoutput.html)
|
|
229
229
|
|
|
230
|
+
</details>
|
|
231
|
+
<details>
|
|
232
|
+
<summary>
|
|
233
|
+
BatchGetFindingDetails
|
|
234
|
+
</summary>
|
|
235
|
+
|
|
236
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/classes/batchgetfindingdetailscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetfindingdetailscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-inspector2/interfaces/batchgetfindingdetailscommandoutput.html)
|
|
237
|
+
|
|
230
238
|
</details>
|
|
231
239
|
<details>
|
|
232
240
|
<summary>
|
package/dist-cjs/Inspector2.js
CHANGED
|
@@ -5,6 +5,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
5
5
|
const AssociateMemberCommand_1 = require("./commands/AssociateMemberCommand");
|
|
6
6
|
const BatchGetAccountStatusCommand_1 = require("./commands/BatchGetAccountStatusCommand");
|
|
7
7
|
const BatchGetCodeSnippetCommand_1 = require("./commands/BatchGetCodeSnippetCommand");
|
|
8
|
+
const BatchGetFindingDetailsCommand_1 = require("./commands/BatchGetFindingDetailsCommand");
|
|
8
9
|
const BatchGetFreeTrialInfoCommand_1 = require("./commands/BatchGetFreeTrialInfoCommand");
|
|
9
10
|
const BatchGetMemberEc2DeepInspectionStatusCommand_1 = require("./commands/BatchGetMemberEc2DeepInspectionStatusCommand");
|
|
10
11
|
const BatchUpdateMemberEc2DeepInspectionStatusCommand_1 = require("./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand");
|
|
@@ -52,6 +53,7 @@ const commands = {
|
|
|
52
53
|
AssociateMemberCommand: AssociateMemberCommand_1.AssociateMemberCommand,
|
|
53
54
|
BatchGetAccountStatusCommand: BatchGetAccountStatusCommand_1.BatchGetAccountStatusCommand,
|
|
54
55
|
BatchGetCodeSnippetCommand: BatchGetCodeSnippetCommand_1.BatchGetCodeSnippetCommand,
|
|
56
|
+
BatchGetFindingDetailsCommand: BatchGetFindingDetailsCommand_1.BatchGetFindingDetailsCommand,
|
|
55
57
|
BatchGetFreeTrialInfoCommand: BatchGetFreeTrialInfoCommand_1.BatchGetFreeTrialInfoCommand,
|
|
56
58
|
BatchGetMemberEc2DeepInspectionStatusCommand: BatchGetMemberEc2DeepInspectionStatusCommand_1.BatchGetMemberEc2DeepInspectionStatusCommand,
|
|
57
59
|
BatchUpdateMemberEc2DeepInspectionStatusCommand: BatchUpdateMemberEc2DeepInspectionStatusCommand_1.BatchUpdateMemberEc2DeepInspectionStatusCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchGetFindingDetailsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class BatchGetFindingDetailsCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetFindingDetailsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "Inspector2Client";
|
|
28
|
+
const commandName = "BatchGetFindingDetailsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_BatchGetFindingDetailsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_BatchGetFindingDetailsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.BatchGetFindingDetailsCommand = BatchGetFindingDetailsCommand;
|
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./AssociateMemberCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./BatchGetAccountStatusCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./BatchGetCodeSnippetCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./BatchGetFindingDetailsCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./BatchGetFreeTrialInfoCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./BatchGetMemberEc2DeepInspectionStatusCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./BatchUpdateMemberEc2DeepInspectionStatusCommand"), exports);
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
5
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.VulnerabilitySource = exports.UsageType = exports.SortField = exports.Operation = exports.Service = exports.ReportingErrorCode = exports.FindingType = exports.FindingStatus = exports.Severity = exports.ResourceType = exports.PackageManager = exports.NetworkProtocol = exports.FixAvailable = exports.ExternalReportStatus = exports.ExploitAvailable = exports.EcrRescanDurationStatus = exports.EcrRescanDuration = exports.ResourceScanType = exports.DelegatedAdminStatus = exports.RelationshipStatus = exports.Currency = exports.ResourceMapComparison = exports.ResourceStringComparison = void 0;
|
|
3
|
+
exports.ReportFormat = exports.ServiceQuotaExceededException = exports.FilterAction = exports.ScanType = exports.ScanStatusCode = exports.ScanStatusReason = exports.EcrScanFrequency = exports.Ec2Platform = exports.CoverageResourceType = exports.CoverageMapComparison = exports.CoverageStringComparison = exports.GroupKey = exports.ConflictException = exports.Ec2DeepInspectionStatus = exports.FreeTrialInfoErrorCode = exports.FreeTrialType = exports.FreeTrialStatus = exports.FindingDetailsErrorCode = exports.CodeSnippetErrorCode = exports.ResourceNotFoundException = exports.BadRequestException = exports.Runtime = exports.PackageType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.InternalServerException = exports.Architecture = exports.AggregationType = exports.AggregationResponse = exports.AggregationRequest = exports.TitleSortBy = exports.RepositorySortBy = exports.PackageSortBy = exports.LambdaLayerSortBy = exports.LambdaFunctionSortBy = exports.ImageLayerSortBy = exports.FindingTypeSortBy = exports.Ec2InstanceSortBy = exports.MapComparison = exports.AwsEcrContainerSortBy = exports.AmiSortBy = exports.StringComparison = exports.ErrorCode = exports.SortOrder = exports.AccountSortBy = exports.AggregationResourceType = exports.AggregationFindingType = exports.Status = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.VulnerabilitySource = exports.UsageType = exports.SortField = exports.Operation = exports.Service = exports.ReportingErrorCode = exports.FindingType = exports.FindingStatus = exports.Severity = exports.ResourceType = exports.PackageManager = exports.NetworkProtocol = exports.FixAvailable = exports.ExternalReportStatus = exports.ExploitAvailable = exports.EcrRescanDurationStatus = exports.EcrRescanDuration = exports.ResourceScanType = exports.DelegatedAdminStatus = exports.RelationshipStatus = exports.Currency = exports.ResourceMapComparison = exports.ResourceStringComparison = exports.SbomReportFormat = void 0;
|
|
5
5
|
const Inspector2ServiceException_1 = require("./Inspector2ServiceException");
|
|
6
6
|
class AccessDeniedException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
7
7
|
constructor(opts) {
|
|
@@ -298,6 +298,12 @@ exports.CodeSnippetErrorCode = {
|
|
|
298
298
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
299
299
|
INVALID_INPUT: "INVALID_INPUT",
|
|
300
300
|
};
|
|
301
|
+
exports.FindingDetailsErrorCode = {
|
|
302
|
+
ACCESS_DENIED: "ACCESS_DENIED",
|
|
303
|
+
FINDING_DETAILS_NOT_FOUND: "FINDING_DETAILS_NOT_FOUND",
|
|
304
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
305
|
+
INVALID_INPUT: "INVALID_INPUT",
|
|
306
|
+
};
|
|
301
307
|
exports.FreeTrialStatus = {
|
|
302
308
|
ACTIVE: "ACTIVE",
|
|
303
309
|
INACTIVE: "INACTIVE",
|
|
@@ -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_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;
|
|
3
|
+
exports.de_BatchGetFindingDetailsCommand = 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_BatchGetFindingDetailsCommand = 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 = exports.de_BatchGetMemberEc2DeepInspectionStatusCommand = exports.de_BatchGetFreeTrialInfoCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -70,6 +70,27 @@ const se_BatchGetCodeSnippetCommand = async (input, context) => {
|
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
exports.se_BatchGetCodeSnippetCommand = se_BatchGetCodeSnippetCommand;
|
|
73
|
+
const se_BatchGetFindingDetailsCommand = async (input, context) => {
|
|
74
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
75
|
+
const headers = {
|
|
76
|
+
"content-type": "application/json",
|
|
77
|
+
};
|
|
78
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/details/batch/get";
|
|
79
|
+
let body;
|
|
80
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
81
|
+
findingArns: (_) => (0, smithy_client_1._json)(_),
|
|
82
|
+
}));
|
|
83
|
+
return new protocol_http_1.HttpRequest({
|
|
84
|
+
protocol,
|
|
85
|
+
hostname,
|
|
86
|
+
port,
|
|
87
|
+
method: "POST",
|
|
88
|
+
headers,
|
|
89
|
+
path: resolvedPath,
|
|
90
|
+
body,
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
exports.se_BatchGetFindingDetailsCommand = se_BatchGetFindingDetailsCommand;
|
|
73
94
|
const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
|
|
74
95
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
75
96
|
const headers = {
|
|
@@ -1124,6 +1145,50 @@ const de_BatchGetCodeSnippetCommandError = async (output, context) => {
|
|
|
1124
1145
|
});
|
|
1125
1146
|
}
|
|
1126
1147
|
};
|
|
1148
|
+
const de_BatchGetFindingDetailsCommand = async (output, context) => {
|
|
1149
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
|
+
return de_BatchGetFindingDetailsCommandError(output, context);
|
|
1151
|
+
}
|
|
1152
|
+
const contents = (0, smithy_client_1.map)({
|
|
1153
|
+
$metadata: deserializeMetadata(output),
|
|
1154
|
+
});
|
|
1155
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1156
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1157
|
+
errors: smithy_client_1._json,
|
|
1158
|
+
findingDetails: (_) => de_FindingDetails(_, context),
|
|
1159
|
+
});
|
|
1160
|
+
Object.assign(contents, doc);
|
|
1161
|
+
return contents;
|
|
1162
|
+
};
|
|
1163
|
+
exports.de_BatchGetFindingDetailsCommand = de_BatchGetFindingDetailsCommand;
|
|
1164
|
+
const de_BatchGetFindingDetailsCommandError = async (output, context) => {
|
|
1165
|
+
const parsedOutput = {
|
|
1166
|
+
...output,
|
|
1167
|
+
body: await parseErrorBody(output.body, context),
|
|
1168
|
+
};
|
|
1169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
|
+
switch (errorCode) {
|
|
1171
|
+
case "AccessDeniedException":
|
|
1172
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1173
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1174
|
+
case "InternalServerException":
|
|
1175
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1176
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1177
|
+
case "ThrottlingException":
|
|
1178
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1179
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1180
|
+
case "ValidationException":
|
|
1181
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1182
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1183
|
+
default:
|
|
1184
|
+
const parsedBody = parsedOutput.body;
|
|
1185
|
+
return throwDefaultError({
|
|
1186
|
+
output,
|
|
1187
|
+
parsedBody,
|
|
1188
|
+
errorCode,
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1127
1192
|
const de_BatchGetFreeTrialInfoCommand = async (output, context) => {
|
|
1128
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1129
1194
|
return de_BatchGetFreeTrialInfoCommandError(output, context);
|
|
@@ -3550,6 +3615,28 @@ const de_Finding = (output, context) => {
|
|
|
3550
3615
|
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3551
3616
|
});
|
|
3552
3617
|
};
|
|
3618
|
+
const de_FindingDetail = (output, context) => {
|
|
3619
|
+
return (0, smithy_client_1.take)(output, {
|
|
3620
|
+
cisaData: (_) => de_CisaData(_, context),
|
|
3621
|
+
cwes: smithy_client_1._json,
|
|
3622
|
+
epssScore: smithy_client_1.limitedParseDouble,
|
|
3623
|
+
evidences: smithy_client_1._json,
|
|
3624
|
+
exploitObserved: (_) => de_ExploitObserved(_, context),
|
|
3625
|
+
findingArn: smithy_client_1.expectString,
|
|
3626
|
+
referenceUrls: smithy_client_1._json,
|
|
3627
|
+
riskScore: smithy_client_1.expectInt32,
|
|
3628
|
+
tools: smithy_client_1._json,
|
|
3629
|
+
ttps: smithy_client_1._json,
|
|
3630
|
+
});
|
|
3631
|
+
};
|
|
3632
|
+
const de_FindingDetails = (output, context) => {
|
|
3633
|
+
const retVal = (output || [])
|
|
3634
|
+
.filter((e) => e != null)
|
|
3635
|
+
.map((entry) => {
|
|
3636
|
+
return de_FindingDetail(entry, context);
|
|
3637
|
+
});
|
|
3638
|
+
return retVal;
|
|
3639
|
+
};
|
|
3553
3640
|
const de_FindingList = (output, context) => {
|
|
3554
3641
|
const retVal = (output || [])
|
|
3555
3642
|
.filter((e) => e != null)
|
package/dist-es/Inspector2.js
CHANGED
|
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
|
|
|
2
2
|
import { AssociateMemberCommand, } from "./commands/AssociateMemberCommand";
|
|
3
3
|
import { BatchGetAccountStatusCommand, } from "./commands/BatchGetAccountStatusCommand";
|
|
4
4
|
import { BatchGetCodeSnippetCommand, } from "./commands/BatchGetCodeSnippetCommand";
|
|
5
|
+
import { BatchGetFindingDetailsCommand, } from "./commands/BatchGetFindingDetailsCommand";
|
|
5
6
|
import { BatchGetFreeTrialInfoCommand, } from "./commands/BatchGetFreeTrialInfoCommand";
|
|
6
7
|
import { BatchGetMemberEc2DeepInspectionStatusCommand, } from "./commands/BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
7
8
|
import { BatchUpdateMemberEc2DeepInspectionStatusCommand, } from "./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
@@ -49,6 +50,7 @@ const commands = {
|
|
|
49
50
|
AssociateMemberCommand,
|
|
50
51
|
BatchGetAccountStatusCommand,
|
|
51
52
|
BatchGetCodeSnippetCommand,
|
|
53
|
+
BatchGetFindingDetailsCommand,
|
|
52
54
|
BatchGetFreeTrialInfoCommand,
|
|
53
55
|
BatchGetMemberEc2DeepInspectionStatusCommand,
|
|
54
56
|
BatchUpdateMemberEc2DeepInspectionStatusCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_BatchGetFindingDetailsCommand, se_BatchGetFindingDetailsCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class BatchGetFindingDetailsCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, BatchGetFindingDetailsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "Inspector2Client";
|
|
25
|
+
const commandName = "BatchGetFindingDetailsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_BatchGetFindingDetailsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_BatchGetFindingDetailsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssociateMemberCommand";
|
|
2
2
|
export * from "./BatchGetAccountStatusCommand";
|
|
3
3
|
export * from "./BatchGetCodeSnippetCommand";
|
|
4
|
+
export * from "./BatchGetFindingDetailsCommand";
|
|
4
5
|
export * from "./BatchGetFreeTrialInfoCommand";
|
|
5
6
|
export * from "./BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
6
7
|
export * from "./BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
2
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -288,6 +288,12 @@ export const CodeSnippetErrorCode = {
|
|
|
288
288
|
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
289
289
|
INVALID_INPUT: "INVALID_INPUT",
|
|
290
290
|
};
|
|
291
|
+
export const FindingDetailsErrorCode = {
|
|
292
|
+
ACCESS_DENIED: "ACCESS_DENIED",
|
|
293
|
+
FINDING_DETAILS_NOT_FOUND: "FINDING_DETAILS_NOT_FOUND",
|
|
294
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
295
|
+
INVALID_INPUT: "INVALID_INPUT",
|
|
296
|
+
};
|
|
291
297
|
export const FreeTrialStatus = {
|
|
292
298
|
ACTIVE: "ACTIVE",
|
|
293
299
|
INACTIVE: "INACTIVE",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
2
|
+
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, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { Inspector2ServiceException as __BaseException } from "../models/Inspector2ServiceException";
|
|
5
5
|
import { AccessDeniedException, BadRequestException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -63,6 +63,26 @@ export const se_BatchGetCodeSnippetCommand = async (input, context) => {
|
|
|
63
63
|
body,
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
+
export const se_BatchGetFindingDetailsCommand = async (input, context) => {
|
|
67
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
68
|
+
const headers = {
|
|
69
|
+
"content-type": "application/json",
|
|
70
|
+
};
|
|
71
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/details/batch/get";
|
|
72
|
+
let body;
|
|
73
|
+
body = JSON.stringify(take(input, {
|
|
74
|
+
findingArns: (_) => _json(_),
|
|
75
|
+
}));
|
|
76
|
+
return new __HttpRequest({
|
|
77
|
+
protocol,
|
|
78
|
+
hostname,
|
|
79
|
+
port,
|
|
80
|
+
method: "POST",
|
|
81
|
+
headers,
|
|
82
|
+
path: resolvedPath,
|
|
83
|
+
body,
|
|
84
|
+
});
|
|
85
|
+
};
|
|
66
86
|
export const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
|
|
67
87
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
68
88
|
const headers = {
|
|
@@ -1072,6 +1092,49 @@ const de_BatchGetCodeSnippetCommandError = async (output, context) => {
|
|
|
1072
1092
|
});
|
|
1073
1093
|
}
|
|
1074
1094
|
};
|
|
1095
|
+
export const de_BatchGetFindingDetailsCommand = async (output, context) => {
|
|
1096
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
|
+
return de_BatchGetFindingDetailsCommandError(output, context);
|
|
1098
|
+
}
|
|
1099
|
+
const contents = map({
|
|
1100
|
+
$metadata: deserializeMetadata(output),
|
|
1101
|
+
});
|
|
1102
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1103
|
+
const doc = take(data, {
|
|
1104
|
+
errors: _json,
|
|
1105
|
+
findingDetails: (_) => de_FindingDetails(_, context),
|
|
1106
|
+
});
|
|
1107
|
+
Object.assign(contents, doc);
|
|
1108
|
+
return contents;
|
|
1109
|
+
};
|
|
1110
|
+
const de_BatchGetFindingDetailsCommandError = async (output, context) => {
|
|
1111
|
+
const parsedOutput = {
|
|
1112
|
+
...output,
|
|
1113
|
+
body: await parseErrorBody(output.body, context),
|
|
1114
|
+
};
|
|
1115
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
|
+
switch (errorCode) {
|
|
1117
|
+
case "AccessDeniedException":
|
|
1118
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1119
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1120
|
+
case "InternalServerException":
|
|
1121
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1122
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1123
|
+
case "ThrottlingException":
|
|
1124
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1125
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1126
|
+
case "ValidationException":
|
|
1127
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
1128
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1129
|
+
default:
|
|
1130
|
+
const parsedBody = parsedOutput.body;
|
|
1131
|
+
return throwDefaultError({
|
|
1132
|
+
output,
|
|
1133
|
+
parsedBody,
|
|
1134
|
+
errorCode,
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
};
|
|
1075
1138
|
export const de_BatchGetFreeTrialInfoCommand = async (output, context) => {
|
|
1076
1139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1077
1140
|
return de_BatchGetFreeTrialInfoCommandError(output, context);
|
|
@@ -3456,6 +3519,28 @@ const de_Finding = (output, context) => {
|
|
|
3456
3519
|
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3457
3520
|
});
|
|
3458
3521
|
};
|
|
3522
|
+
const de_FindingDetail = (output, context) => {
|
|
3523
|
+
return take(output, {
|
|
3524
|
+
cisaData: (_) => de_CisaData(_, context),
|
|
3525
|
+
cwes: _json,
|
|
3526
|
+
epssScore: __limitedParseDouble,
|
|
3527
|
+
evidences: _json,
|
|
3528
|
+
exploitObserved: (_) => de_ExploitObserved(_, context),
|
|
3529
|
+
findingArn: __expectString,
|
|
3530
|
+
referenceUrls: _json,
|
|
3531
|
+
riskScore: __expectInt32,
|
|
3532
|
+
tools: _json,
|
|
3533
|
+
ttps: _json,
|
|
3534
|
+
});
|
|
3535
|
+
};
|
|
3536
|
+
const de_FindingDetails = (output, context) => {
|
|
3537
|
+
const retVal = (output || [])
|
|
3538
|
+
.filter((e) => e != null)
|
|
3539
|
+
.map((entry) => {
|
|
3540
|
+
return de_FindingDetail(entry, context);
|
|
3541
|
+
});
|
|
3542
|
+
return retVal;
|
|
3543
|
+
};
|
|
3459
3544
|
const de_FindingList = (output, context) => {
|
|
3460
3545
|
const retVal = (output || [])
|
|
3461
3546
|
.filter((e) => e != null)
|
|
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
|
2
2
|
import { AssociateMemberCommandInput, AssociateMemberCommandOutput } from "./commands/AssociateMemberCommand";
|
|
3
3
|
import { BatchGetAccountStatusCommandInput, BatchGetAccountStatusCommandOutput } from "./commands/BatchGetAccountStatusCommand";
|
|
4
4
|
import { BatchGetCodeSnippetCommandInput, BatchGetCodeSnippetCommandOutput } from "./commands/BatchGetCodeSnippetCommand";
|
|
5
|
+
import { BatchGetFindingDetailsCommandInput, BatchGetFindingDetailsCommandOutput } from "./commands/BatchGetFindingDetailsCommand";
|
|
5
6
|
import { BatchGetFreeTrialInfoCommandInput, BatchGetFreeTrialInfoCommandOutput } from "./commands/BatchGetFreeTrialInfoCommand";
|
|
6
7
|
import { BatchGetMemberEc2DeepInspectionStatusCommandInput, BatchGetMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
7
8
|
import { BatchUpdateMemberEc2DeepInspectionStatusCommandInput, BatchUpdateMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
@@ -64,6 +65,12 @@ export interface Inspector2 {
|
|
|
64
65
|
batchGetCodeSnippet(args: BatchGetCodeSnippetCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetCodeSnippetCommandOutput>;
|
|
65
66
|
batchGetCodeSnippet(args: BatchGetCodeSnippetCommandInput, cb: (err: any, data?: BatchGetCodeSnippetCommandOutput) => void): void;
|
|
66
67
|
batchGetCodeSnippet(args: BatchGetCodeSnippetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetCodeSnippetCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link BatchGetFindingDetailsCommand}
|
|
70
|
+
*/
|
|
71
|
+
batchGetFindingDetails(args: BatchGetFindingDetailsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetFindingDetailsCommandOutput>;
|
|
72
|
+
batchGetFindingDetails(args: BatchGetFindingDetailsCommandInput, cb: (err: any, data?: BatchGetFindingDetailsCommandOutput) => void): void;
|
|
73
|
+
batchGetFindingDetails(args: BatchGetFindingDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetFindingDetailsCommandOutput) => void): void;
|
|
67
74
|
/**
|
|
68
75
|
* @see {@link BatchGetFreeTrialInfoCommand}
|
|
69
76
|
*/
|
|
@@ -11,6 +11,7 @@ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as
|
|
|
11
11
|
import { AssociateMemberCommandInput, AssociateMemberCommandOutput } from "./commands/AssociateMemberCommand";
|
|
12
12
|
import { BatchGetAccountStatusCommandInput, BatchGetAccountStatusCommandOutput } from "./commands/BatchGetAccountStatusCommand";
|
|
13
13
|
import { BatchGetCodeSnippetCommandInput, BatchGetCodeSnippetCommandOutput } from "./commands/BatchGetCodeSnippetCommand";
|
|
14
|
+
import { BatchGetFindingDetailsCommandInput, BatchGetFindingDetailsCommandOutput } from "./commands/BatchGetFindingDetailsCommand";
|
|
14
15
|
import { BatchGetFreeTrialInfoCommandInput, BatchGetFreeTrialInfoCommandOutput } from "./commands/BatchGetFreeTrialInfoCommand";
|
|
15
16
|
import { BatchGetMemberEc2DeepInspectionStatusCommandInput, BatchGetMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
16
17
|
import { BatchUpdateMemberEc2DeepInspectionStatusCommandInput, BatchUpdateMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
@@ -58,11 +59,11 @@ export { __Client };
|
|
|
58
59
|
/**
|
|
59
60
|
* @public
|
|
60
61
|
*/
|
|
61
|
-
export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetCodeSnippetCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CancelSbomExportCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | CreateSbomExportCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetEncryptionKeyCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | GetSbomExportCommandInput | ListAccountPermissionsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | ResetEncryptionKeyCommandInput | SearchVulnerabilitiesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateEncryptionKeyCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
|
|
62
|
+
export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetCodeSnippetCommandInput | BatchGetFindingDetailsCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CancelSbomExportCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | CreateSbomExportCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetEncryptionKeyCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | GetSbomExportCommandInput | ListAccountPermissionsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | ResetEncryptionKeyCommandInput | SearchVulnerabilitiesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateEncryptionKeyCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
|
|
62
63
|
/**
|
|
63
64
|
* @public
|
|
64
65
|
*/
|
|
65
|
-
export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetCodeSnippetCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CancelSbomExportCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | CreateSbomExportCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetEncryptionKeyCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | GetSbomExportCommandOutput | ListAccountPermissionsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | ResetEncryptionKeyCommandOutput | SearchVulnerabilitiesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateEncryptionKeyCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
|
|
66
|
+
export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetCodeSnippetCommandOutput | BatchGetFindingDetailsCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CancelSbomExportCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | CreateSbomExportCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetEncryptionKeyCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | GetSbomExportCommandOutput | ListAccountPermissionsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | ResetEncryptionKeyCommandOutput | SearchVulnerabilitiesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateEncryptionKeyCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
|
|
66
67
|
/**
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
5
|
+
import { BatchGetFindingDetailsRequest, BatchGetFindingDetailsResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchGetFindingDetailsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetFindingDetailsCommandInput extends BatchGetFindingDetailsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetFindingDetailsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetFindingDetailsCommandOutput extends BatchGetFindingDetailsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Gets vulnerability details for findings.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { Inspector2Client, BatchGetFindingDetailsCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
31
|
+
* // const { Inspector2Client, BatchGetFindingDetailsCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
32
|
+
* const client = new Inspector2Client(config);
|
|
33
|
+
* const input = { // BatchGetFindingDetailsRequest
|
|
34
|
+
* findingArns: [ // FindingArnList // required
|
|
35
|
+
* "STRING_VALUE",
|
|
36
|
+
* ],
|
|
37
|
+
* };
|
|
38
|
+
* const command = new BatchGetFindingDetailsCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // BatchGetFindingDetailsResponse
|
|
41
|
+
* // findingDetails: [ // FindingDetails
|
|
42
|
+
* // { // FindingDetail
|
|
43
|
+
* // findingArn: "STRING_VALUE",
|
|
44
|
+
* // cisaData: { // CisaData
|
|
45
|
+
* // dateAdded: new Date("TIMESTAMP"),
|
|
46
|
+
* // dateDue: new Date("TIMESTAMP"),
|
|
47
|
+
* // action: "STRING_VALUE",
|
|
48
|
+
* // },
|
|
49
|
+
* // riskScore: Number("int"),
|
|
50
|
+
* // evidences: [ // EvidenceList
|
|
51
|
+
* // { // Evidence
|
|
52
|
+
* // evidenceRule: "STRING_VALUE",
|
|
53
|
+
* // evidenceDetail: "STRING_VALUE",
|
|
54
|
+
* // severity: "STRING_VALUE",
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // ttps: [ // Ttps
|
|
58
|
+
* // "STRING_VALUE",
|
|
59
|
+
* // ],
|
|
60
|
+
* // tools: [ // Tools
|
|
61
|
+
* // "STRING_VALUE",
|
|
62
|
+
* // ],
|
|
63
|
+
* // exploitObserved: { // ExploitObserved
|
|
64
|
+
* // lastSeen: new Date("TIMESTAMP"),
|
|
65
|
+
* // firstSeen: new Date("TIMESTAMP"),
|
|
66
|
+
* // },
|
|
67
|
+
* // referenceUrls: [ // VulnerabilityReferenceUrls
|
|
68
|
+
* // "STRING_VALUE",
|
|
69
|
+
* // ],
|
|
70
|
+
* // cwes: [ // Cwes
|
|
71
|
+
* // "STRING_VALUE",
|
|
72
|
+
* // ],
|
|
73
|
+
* // epssScore: Number("double"),
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // errors: [ // FindingDetailsErrorList
|
|
77
|
+
* // { // FindingDetailsError
|
|
78
|
+
* // findingArn: "STRING_VALUE", // required
|
|
79
|
+
* // errorCode: "STRING_VALUE", // required
|
|
80
|
+
* // errorMessage: "STRING_VALUE", // required
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // };
|
|
84
|
+
*
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @param BatchGetFindingDetailsCommandInput - {@link BatchGetFindingDetailsCommandInput}
|
|
88
|
+
* @returns {@link BatchGetFindingDetailsCommandOutput}
|
|
89
|
+
* @see {@link BatchGetFindingDetailsCommandInput} for command's `input` shape.
|
|
90
|
+
* @see {@link BatchGetFindingDetailsCommandOutput} for command's `response` shape.
|
|
91
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
94
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link InternalServerException} (server fault)
|
|
97
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
100
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ValidationException} (client fault)
|
|
103
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
104
|
+
* inputs.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link Inspector2ServiceException}
|
|
107
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
export declare class BatchGetFindingDetailsCommand extends $Command<BatchGetFindingDetailsCommandInput, BatchGetFindingDetailsCommandOutput, Inspector2ClientResolvedConfig> {
|
|
111
|
+
readonly input: BatchGetFindingDetailsCommandInput;
|
|
112
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
constructor(input: BatchGetFindingDetailsCommandInput);
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetFindingDetailsCommandInput, BatchGetFindingDetailsCommandOutput>;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
private serialize;
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
private deserialize;
|
|
129
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssociateMemberCommand";
|
|
2
2
|
export * from "./BatchGetAccountStatusCommand";
|
|
3
3
|
export * from "./BatchGetCodeSnippetCommand";
|
|
4
|
+
export * from "./BatchGetFindingDetailsCommand";
|
|
4
5
|
export * from "./BatchGetFreeTrialInfoCommand";
|
|
5
6
|
export * from "./BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
6
7
|
export * from "./BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export interface ClientInputEndpointParameters {
|
|
3
6
|
region?: string | Provider<string>;
|
|
4
7
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1975,6 +1975,156 @@ export interface BatchGetCodeSnippetResponse {
|
|
|
1975
1975
|
*/
|
|
1976
1976
|
errors?: CodeSnippetError[];
|
|
1977
1977
|
}
|
|
1978
|
+
/**
|
|
1979
|
+
* @public
|
|
1980
|
+
*/
|
|
1981
|
+
export interface BatchGetFindingDetailsRequest {
|
|
1982
|
+
/**
|
|
1983
|
+
* <p>A list of finding ARNs.</p>
|
|
1984
|
+
*/
|
|
1985
|
+
findingArns: string[] | undefined;
|
|
1986
|
+
}
|
|
1987
|
+
/**
|
|
1988
|
+
* @public
|
|
1989
|
+
* @enum
|
|
1990
|
+
*/
|
|
1991
|
+
export declare const FindingDetailsErrorCode: {
|
|
1992
|
+
readonly ACCESS_DENIED: "ACCESS_DENIED";
|
|
1993
|
+
readonly FINDING_DETAILS_NOT_FOUND: "FINDING_DETAILS_NOT_FOUND";
|
|
1994
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
1995
|
+
readonly INVALID_INPUT: "INVALID_INPUT";
|
|
1996
|
+
};
|
|
1997
|
+
/**
|
|
1998
|
+
* @public
|
|
1999
|
+
*/
|
|
2000
|
+
export type FindingDetailsErrorCode = (typeof FindingDetailsErrorCode)[keyof typeof FindingDetailsErrorCode];
|
|
2001
|
+
/**
|
|
2002
|
+
* @public
|
|
2003
|
+
* <p>Details about an error encountered when trying to return vulnerability data for a finding.</p>
|
|
2004
|
+
*/
|
|
2005
|
+
export interface FindingDetailsError {
|
|
2006
|
+
/**
|
|
2007
|
+
* <p>The finding ARN that returned an error.</p>
|
|
2008
|
+
*/
|
|
2009
|
+
findingArn: string | undefined;
|
|
2010
|
+
/**
|
|
2011
|
+
* <p>The error code.</p>
|
|
2012
|
+
*/
|
|
2013
|
+
errorCode: FindingDetailsErrorCode | string | undefined;
|
|
2014
|
+
/**
|
|
2015
|
+
* <p>The error message.</p>
|
|
2016
|
+
*/
|
|
2017
|
+
errorMessage: string | undefined;
|
|
2018
|
+
}
|
|
2019
|
+
/**
|
|
2020
|
+
* @public
|
|
2021
|
+
* <p>The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.</p>
|
|
2022
|
+
*/
|
|
2023
|
+
export interface CisaData {
|
|
2024
|
+
/**
|
|
2025
|
+
* <p>The date and time CISA added this vulnerability to their catalogue.</p>
|
|
2026
|
+
*/
|
|
2027
|
+
dateAdded?: Date;
|
|
2028
|
+
/**
|
|
2029
|
+
* <p>The date and time CISA expects a fix to have been provided vulnerability.</p>
|
|
2030
|
+
*/
|
|
2031
|
+
dateDue?: Date;
|
|
2032
|
+
/**
|
|
2033
|
+
* <p>The remediation action recommended by CISA for this vulnerability.</p>
|
|
2034
|
+
*/
|
|
2035
|
+
action?: string;
|
|
2036
|
+
}
|
|
2037
|
+
/**
|
|
2038
|
+
* @public
|
|
2039
|
+
* <p>Details of the evidence for a vulnerability identified in a finding.</p>
|
|
2040
|
+
*/
|
|
2041
|
+
export interface Evidence {
|
|
2042
|
+
/**
|
|
2043
|
+
* <p>The evidence rule.</p>
|
|
2044
|
+
*/
|
|
2045
|
+
evidenceRule?: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* <p>The evidence details.</p>
|
|
2048
|
+
*/
|
|
2049
|
+
evidenceDetail?: string;
|
|
2050
|
+
/**
|
|
2051
|
+
* <p>The evidence severity.</p>
|
|
2052
|
+
*/
|
|
2053
|
+
severity?: string;
|
|
2054
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
* @public
|
|
2057
|
+
* <p>Contains information on when this exploit was observed.</p>
|
|
2058
|
+
*/
|
|
2059
|
+
export interface ExploitObserved {
|
|
2060
|
+
/**
|
|
2061
|
+
* <p>The date an time when the exploit was last seen.</p>
|
|
2062
|
+
*/
|
|
2063
|
+
lastSeen?: Date;
|
|
2064
|
+
/**
|
|
2065
|
+
* <p>The date an time when the exploit was first seen.</p>
|
|
2066
|
+
*/
|
|
2067
|
+
firstSeen?: Date;
|
|
2068
|
+
}
|
|
2069
|
+
/**
|
|
2070
|
+
* @public
|
|
2071
|
+
* <p>Details of the vulnerability identified in a finding.</p>
|
|
2072
|
+
*/
|
|
2073
|
+
export interface FindingDetail {
|
|
2074
|
+
/**
|
|
2075
|
+
* <p>The finding ARN that the vulnerability details are associated with.</p>
|
|
2076
|
+
*/
|
|
2077
|
+
findingArn?: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* <p>The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.</p>
|
|
2080
|
+
*/
|
|
2081
|
+
cisaData?: CisaData;
|
|
2082
|
+
/**
|
|
2083
|
+
* <p>The risk score of the vulnerability.</p>
|
|
2084
|
+
*/
|
|
2085
|
+
riskScore?: number;
|
|
2086
|
+
/**
|
|
2087
|
+
* <p>Information on the evidence of the vulnerability.</p>
|
|
2088
|
+
*/
|
|
2089
|
+
evidences?: Evidence[];
|
|
2090
|
+
/**
|
|
2091
|
+
* <p>The MITRE adversary tactics, techniques, or procedures (TTPs) associated with the vulnerability.</p>
|
|
2092
|
+
*/
|
|
2093
|
+
ttps?: string[];
|
|
2094
|
+
/**
|
|
2095
|
+
* <p>The known malware tools or kits that can exploit the vulnerability.</p>
|
|
2096
|
+
*/
|
|
2097
|
+
tools?: string[];
|
|
2098
|
+
/**
|
|
2099
|
+
* <p>Contains information on when this exploit was observed.</p>
|
|
2100
|
+
*/
|
|
2101
|
+
exploitObserved?: ExploitObserved;
|
|
2102
|
+
/**
|
|
2103
|
+
* <p>The reference URLs for the vulnerability data.</p>
|
|
2104
|
+
*/
|
|
2105
|
+
referenceUrls?: string[];
|
|
2106
|
+
/**
|
|
2107
|
+
* <p>The Common Weakness Enumerations (CWEs) associated with the vulnerability.</p>
|
|
2108
|
+
*/
|
|
2109
|
+
cwes?: string[];
|
|
2110
|
+
/**
|
|
2111
|
+
* <p>The Exploit Prediction Scoring System (EPSS) score of the vulnerability.</p>
|
|
2112
|
+
*/
|
|
2113
|
+
epssScore?: number;
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* @public
|
|
2117
|
+
*/
|
|
2118
|
+
export interface BatchGetFindingDetailsResponse {
|
|
2119
|
+
/**
|
|
2120
|
+
* <p>A finding's vulnerability details.</p>
|
|
2121
|
+
*/
|
|
2122
|
+
findingDetails?: FindingDetail[];
|
|
2123
|
+
/**
|
|
2124
|
+
* <p>Error information for findings that details could not be returned for.</p>
|
|
2125
|
+
*/
|
|
2126
|
+
errors?: FindingDetailsError[];
|
|
2127
|
+
}
|
|
1978
2128
|
/**
|
|
1979
2129
|
* @public
|
|
1980
2130
|
*/
|
|
@@ -2242,24 +2392,6 @@ export interface CancelSbomExportResponse {
|
|
|
2242
2392
|
*/
|
|
2243
2393
|
reportId?: string;
|
|
2244
2394
|
}
|
|
2245
|
-
/**
|
|
2246
|
-
* @public
|
|
2247
|
-
* <p>The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.</p>
|
|
2248
|
-
*/
|
|
2249
|
-
export interface CisaData {
|
|
2250
|
-
/**
|
|
2251
|
-
* <p>The date and time CISA added this vulnerability to their catalogue.</p>
|
|
2252
|
-
*/
|
|
2253
|
-
dateAdded?: Date;
|
|
2254
|
-
/**
|
|
2255
|
-
* <p>The date and time CISA expects a fix to have been provided vulnerability.</p>
|
|
2256
|
-
*/
|
|
2257
|
-
dateDue?: Date;
|
|
2258
|
-
/**
|
|
2259
|
-
* <p>The remediation action recommended by CISA for this vulnerability.</p>
|
|
2260
|
-
*/
|
|
2261
|
-
action?: string;
|
|
2262
|
-
}
|
|
2263
2395
|
/**
|
|
2264
2396
|
* @public
|
|
2265
2397
|
* <p>Contains information on where a code vulnerability is located in your Lambda function.</p>
|
|
@@ -2916,7 +3048,7 @@ export interface FilterCriteria {
|
|
|
2916
3048
|
*/
|
|
2917
3049
|
portRange?: PortRangeFilter[];
|
|
2918
3050
|
/**
|
|
2919
|
-
* <p>Details on
|
|
3051
|
+
* <p>Details on network protocol used to filter findings.</p>
|
|
2920
3052
|
*/
|
|
2921
3053
|
networkProtocol?: StringFilter[];
|
|
2922
3054
|
/**
|
|
@@ -3073,7 +3205,7 @@ export interface Destination {
|
|
|
3073
3205
|
*/
|
|
3074
3206
|
bucketName: string | undefined;
|
|
3075
3207
|
/**
|
|
3076
|
-
* <p>The prefix
|
|
3208
|
+
* <p>The prefix that the findings will be written under.</p>
|
|
3077
3209
|
*/
|
|
3078
3210
|
keyPrefix?: string;
|
|
3079
3211
|
/**
|
|
@@ -3679,20 +3811,6 @@ export declare const ExploitAvailable: {
|
|
|
3679
3811
|
* @public
|
|
3680
3812
|
*/
|
|
3681
3813
|
export type ExploitAvailable = (typeof ExploitAvailable)[keyof typeof ExploitAvailable];
|
|
3682
|
-
/**
|
|
3683
|
-
* @public
|
|
3684
|
-
* <p>Contains information on when this exploit was observed.</p>
|
|
3685
|
-
*/
|
|
3686
|
-
export interface ExploitObserved {
|
|
3687
|
-
/**
|
|
3688
|
-
* <p>The date an time when the exploit was last seen.</p>
|
|
3689
|
-
*/
|
|
3690
|
-
lastSeen?: Date;
|
|
3691
|
-
/**
|
|
3692
|
-
* <p>The date an time when the exploit was first seen.</p>
|
|
3693
|
-
*/
|
|
3694
|
-
firstSeen?: Date;
|
|
3695
|
-
}
|
|
3696
3814
|
/**
|
|
3697
3815
|
* @public
|
|
3698
3816
|
* @enum
|
|
@@ -3,6 +3,7 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
|
3
3
|
import { AssociateMemberCommandInput, AssociateMemberCommandOutput } from "../commands/AssociateMemberCommand";
|
|
4
4
|
import { BatchGetAccountStatusCommandInput, BatchGetAccountStatusCommandOutput } from "../commands/BatchGetAccountStatusCommand";
|
|
5
5
|
import { BatchGetCodeSnippetCommandInput, BatchGetCodeSnippetCommandOutput } from "../commands/BatchGetCodeSnippetCommand";
|
|
6
|
+
import { BatchGetFindingDetailsCommandInput, BatchGetFindingDetailsCommandOutput } from "../commands/BatchGetFindingDetailsCommand";
|
|
6
7
|
import { BatchGetFreeTrialInfoCommandInput, BatchGetFreeTrialInfoCommandOutput } from "../commands/BatchGetFreeTrialInfoCommand";
|
|
7
8
|
import { BatchGetMemberEc2DeepInspectionStatusCommandInput, BatchGetMemberEc2DeepInspectionStatusCommandOutput } from "../commands/BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
8
9
|
import { BatchUpdateMemberEc2DeepInspectionStatusCommandInput, BatchUpdateMemberEc2DeepInspectionStatusCommandOutput } from "../commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
@@ -57,6 +58,10 @@ export declare const se_BatchGetAccountStatusCommand: (input: BatchGetAccountSta
|
|
|
57
58
|
* serializeAws_restJson1BatchGetCodeSnippetCommand
|
|
58
59
|
*/
|
|
59
60
|
export declare const se_BatchGetCodeSnippetCommand: (input: BatchGetCodeSnippetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
61
|
+
/**
|
|
62
|
+
* serializeAws_restJson1BatchGetFindingDetailsCommand
|
|
63
|
+
*/
|
|
64
|
+
export declare const se_BatchGetFindingDetailsCommand: (input: BatchGetFindingDetailsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
60
65
|
/**
|
|
61
66
|
* serializeAws_restJson1BatchGetFreeTrialInfoCommand
|
|
62
67
|
*/
|
|
@@ -237,6 +242,10 @@ export declare const de_BatchGetAccountStatusCommand: (output: __HttpResponse, c
|
|
|
237
242
|
* deserializeAws_restJson1BatchGetCodeSnippetCommand
|
|
238
243
|
*/
|
|
239
244
|
export declare const de_BatchGetCodeSnippetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetCodeSnippetCommandOutput>;
|
|
245
|
+
/**
|
|
246
|
+
* deserializeAws_restJson1BatchGetFindingDetailsCommand
|
|
247
|
+
*/
|
|
248
|
+
export declare const de_BatchGetFindingDetailsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetFindingDetailsCommandOutput>;
|
|
240
249
|
/**
|
|
241
250
|
* deserializeAws_restJson1BatchGetFreeTrialInfoCommand
|
|
242
251
|
*/
|
|
@@ -36,7 +36,9 @@ export declare const getRuntimeConfig: (config: Inspector2ClientConfig) => {
|
|
|
36
36
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
37
37
|
signingEscapePath?: boolean | undefined;
|
|
38
38
|
systemClockOffset?: number | undefined;
|
|
39
|
-
signingRegion?: string | undefined;
|
|
39
|
+
signingRegion?: string | undefined; /**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
40
42
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
41
43
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
42
44
|
};
|
|
@@ -11,6 +11,10 @@ import {
|
|
|
11
11
|
BatchGetCodeSnippetCommandInput,
|
|
12
12
|
BatchGetCodeSnippetCommandOutput,
|
|
13
13
|
} from "./commands/BatchGetCodeSnippetCommand";
|
|
14
|
+
import {
|
|
15
|
+
BatchGetFindingDetailsCommandInput,
|
|
16
|
+
BatchGetFindingDetailsCommandOutput,
|
|
17
|
+
} from "./commands/BatchGetFindingDetailsCommand";
|
|
14
18
|
import {
|
|
15
19
|
BatchGetFreeTrialInfoCommandInput,
|
|
16
20
|
BatchGetFreeTrialInfoCommandOutput,
|
|
@@ -220,6 +224,19 @@ export interface Inspector2 {
|
|
|
220
224
|
options: __HttpHandlerOptions,
|
|
221
225
|
cb: (err: any, data?: BatchGetCodeSnippetCommandOutput) => void
|
|
222
226
|
): void;
|
|
227
|
+
batchGetFindingDetails(
|
|
228
|
+
args: BatchGetFindingDetailsCommandInput,
|
|
229
|
+
options?: __HttpHandlerOptions
|
|
230
|
+
): Promise<BatchGetFindingDetailsCommandOutput>;
|
|
231
|
+
batchGetFindingDetails(
|
|
232
|
+
args: BatchGetFindingDetailsCommandInput,
|
|
233
|
+
cb: (err: any, data?: BatchGetFindingDetailsCommandOutput) => void
|
|
234
|
+
): void;
|
|
235
|
+
batchGetFindingDetails(
|
|
236
|
+
args: BatchGetFindingDetailsCommandInput,
|
|
237
|
+
options: __HttpHandlerOptions,
|
|
238
|
+
cb: (err: any, data?: BatchGetFindingDetailsCommandOutput) => void
|
|
239
|
+
): void;
|
|
223
240
|
batchGetFreeTrialInfo(
|
|
224
241
|
args: BatchGetFreeTrialInfoCommandInput,
|
|
225
242
|
options?: __HttpHandlerOptions
|
|
@@ -56,6 +56,10 @@ import {
|
|
|
56
56
|
BatchGetCodeSnippetCommandInput,
|
|
57
57
|
BatchGetCodeSnippetCommandOutput,
|
|
58
58
|
} from "./commands/BatchGetCodeSnippetCommand";
|
|
59
|
+
import {
|
|
60
|
+
BatchGetFindingDetailsCommandInput,
|
|
61
|
+
BatchGetFindingDetailsCommandOutput,
|
|
62
|
+
} from "./commands/BatchGetFindingDetailsCommand";
|
|
59
63
|
import {
|
|
60
64
|
BatchGetFreeTrialInfoCommandInput,
|
|
61
65
|
BatchGetFreeTrialInfoCommandOutput,
|
|
@@ -234,6 +238,7 @@ export type ServiceInputTypes =
|
|
|
234
238
|
| AssociateMemberCommandInput
|
|
235
239
|
| BatchGetAccountStatusCommandInput
|
|
236
240
|
| BatchGetCodeSnippetCommandInput
|
|
241
|
+
| BatchGetFindingDetailsCommandInput
|
|
237
242
|
| BatchGetFreeTrialInfoCommandInput
|
|
238
243
|
| BatchGetMemberEc2DeepInspectionStatusCommandInput
|
|
239
244
|
| BatchUpdateMemberEc2DeepInspectionStatusCommandInput
|
|
@@ -280,6 +285,7 @@ export type ServiceOutputTypes =
|
|
|
280
285
|
| AssociateMemberCommandOutput
|
|
281
286
|
| BatchGetAccountStatusCommandOutput
|
|
282
287
|
| BatchGetCodeSnippetCommandOutput
|
|
288
|
+
| BatchGetFindingDetailsCommandOutput
|
|
283
289
|
| BatchGetFreeTrialInfoCommandOutput
|
|
284
290
|
| BatchGetMemberEc2DeepInspectionStatusCommandOutput
|
|
285
291
|
| BatchUpdateMemberEc2DeepInspectionStatusCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
Inspector2ClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../Inspector2Client";
|
|
14
|
+
import {
|
|
15
|
+
BatchGetFindingDetailsRequest,
|
|
16
|
+
BatchGetFindingDetailsResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface BatchGetFindingDetailsCommandInput
|
|
20
|
+
extends BatchGetFindingDetailsRequest {}
|
|
21
|
+
export interface BatchGetFindingDetailsCommandOutput
|
|
22
|
+
extends BatchGetFindingDetailsResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class BatchGetFindingDetailsCommand extends $Command<
|
|
25
|
+
BatchGetFindingDetailsCommandInput,
|
|
26
|
+
BatchGetFindingDetailsCommandOutput,
|
|
27
|
+
Inspector2ClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: BatchGetFindingDetailsCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: BatchGetFindingDetailsCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: Inspector2ClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
BatchGetFindingDetailsCommandInput,
|
|
38
|
+
BatchGetFindingDetailsCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssociateMemberCommand";
|
|
2
2
|
export * from "./BatchGetAccountStatusCommand";
|
|
3
3
|
export * from "./BatchGetCodeSnippetCommand";
|
|
4
|
+
export * from "./BatchGetFindingDetailsCommand";
|
|
4
5
|
export * from "./BatchGetFreeTrialInfoCommand";
|
|
5
6
|
export * from "./BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
6
7
|
export * from "./BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
@@ -928,6 +928,52 @@ export interface BatchGetCodeSnippetResponse {
|
|
|
928
928
|
codeSnippetResults?: CodeSnippetResult[];
|
|
929
929
|
errors?: CodeSnippetError[];
|
|
930
930
|
}
|
|
931
|
+
export interface BatchGetFindingDetailsRequest {
|
|
932
|
+
findingArns: string[] | undefined;
|
|
933
|
+
}
|
|
934
|
+
export declare const FindingDetailsErrorCode: {
|
|
935
|
+
readonly ACCESS_DENIED: "ACCESS_DENIED";
|
|
936
|
+
readonly FINDING_DETAILS_NOT_FOUND: "FINDING_DETAILS_NOT_FOUND";
|
|
937
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
938
|
+
readonly INVALID_INPUT: "INVALID_INPUT";
|
|
939
|
+
};
|
|
940
|
+
export type FindingDetailsErrorCode =
|
|
941
|
+
(typeof FindingDetailsErrorCode)[keyof typeof FindingDetailsErrorCode];
|
|
942
|
+
export interface FindingDetailsError {
|
|
943
|
+
findingArn: string | undefined;
|
|
944
|
+
errorCode: FindingDetailsErrorCode | string | undefined;
|
|
945
|
+
errorMessage: string | undefined;
|
|
946
|
+
}
|
|
947
|
+
export interface CisaData {
|
|
948
|
+
dateAdded?: Date;
|
|
949
|
+
dateDue?: Date;
|
|
950
|
+
action?: string;
|
|
951
|
+
}
|
|
952
|
+
export interface Evidence {
|
|
953
|
+
evidenceRule?: string;
|
|
954
|
+
evidenceDetail?: string;
|
|
955
|
+
severity?: string;
|
|
956
|
+
}
|
|
957
|
+
export interface ExploitObserved {
|
|
958
|
+
lastSeen?: Date;
|
|
959
|
+
firstSeen?: Date;
|
|
960
|
+
}
|
|
961
|
+
export interface FindingDetail {
|
|
962
|
+
findingArn?: string;
|
|
963
|
+
cisaData?: CisaData;
|
|
964
|
+
riskScore?: number;
|
|
965
|
+
evidences?: Evidence[];
|
|
966
|
+
ttps?: string[];
|
|
967
|
+
tools?: string[];
|
|
968
|
+
exploitObserved?: ExploitObserved;
|
|
969
|
+
referenceUrls?: string[];
|
|
970
|
+
cwes?: string[];
|
|
971
|
+
epssScore?: number;
|
|
972
|
+
}
|
|
973
|
+
export interface BatchGetFindingDetailsResponse {
|
|
974
|
+
findingDetails?: FindingDetail[];
|
|
975
|
+
errors?: FindingDetailsError[];
|
|
976
|
+
}
|
|
931
977
|
export interface BatchGetFreeTrialInfoRequest {
|
|
932
978
|
accountIds: string[] | undefined;
|
|
933
979
|
}
|
|
@@ -1017,11 +1063,6 @@ export interface CancelSbomExportRequest {
|
|
|
1017
1063
|
export interface CancelSbomExportResponse {
|
|
1018
1064
|
reportId?: string;
|
|
1019
1065
|
}
|
|
1020
|
-
export interface CisaData {
|
|
1021
|
-
dateAdded?: Date;
|
|
1022
|
-
dateDue?: Date;
|
|
1023
|
-
action?: string;
|
|
1024
|
-
}
|
|
1025
1066
|
export interface CodeFilePath {
|
|
1026
1067
|
fileName: string | undefined;
|
|
1027
1068
|
filePath: string | undefined;
|
|
@@ -1500,10 +1541,6 @@ export declare const ExploitAvailable: {
|
|
|
1500
1541
|
};
|
|
1501
1542
|
export type ExploitAvailable =
|
|
1502
1543
|
(typeof ExploitAvailable)[keyof typeof ExploitAvailable];
|
|
1503
|
-
export interface ExploitObserved {
|
|
1504
|
-
lastSeen?: Date;
|
|
1505
|
-
firstSeen?: Date;
|
|
1506
|
-
}
|
|
1507
1544
|
export declare const ExternalReportStatus: {
|
|
1508
1545
|
readonly CANCELLED: "CANCELLED";
|
|
1509
1546
|
readonly FAILED: "FAILED";
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
BatchGetCodeSnippetCommandInput,
|
|
16
16
|
BatchGetCodeSnippetCommandOutput,
|
|
17
17
|
} from "../commands/BatchGetCodeSnippetCommand";
|
|
18
|
+
import {
|
|
19
|
+
BatchGetFindingDetailsCommandInput,
|
|
20
|
+
BatchGetFindingDetailsCommandOutput,
|
|
21
|
+
} from "../commands/BatchGetFindingDetailsCommand";
|
|
18
22
|
import {
|
|
19
23
|
BatchGetFreeTrialInfoCommandInput,
|
|
20
24
|
BatchGetFreeTrialInfoCommandOutput,
|
|
@@ -195,6 +199,10 @@ export declare const se_BatchGetCodeSnippetCommand: (
|
|
|
195
199
|
input: BatchGetCodeSnippetCommandInput,
|
|
196
200
|
context: __SerdeContext
|
|
197
201
|
) => Promise<__HttpRequest>;
|
|
202
|
+
export declare const se_BatchGetFindingDetailsCommand: (
|
|
203
|
+
input: BatchGetFindingDetailsCommandInput,
|
|
204
|
+
context: __SerdeContext
|
|
205
|
+
) => Promise<__HttpRequest>;
|
|
198
206
|
export declare const se_BatchGetFreeTrialInfoCommand: (
|
|
199
207
|
input: BatchGetFreeTrialInfoCommandInput,
|
|
200
208
|
context: __SerdeContext
|
|
@@ -375,6 +383,10 @@ export declare const de_BatchGetCodeSnippetCommand: (
|
|
|
375
383
|
output: __HttpResponse,
|
|
376
384
|
context: __SerdeContext
|
|
377
385
|
) => Promise<BatchGetCodeSnippetCommandOutput>;
|
|
386
|
+
export declare const de_BatchGetFindingDetailsCommand: (
|
|
387
|
+
output: __HttpResponse,
|
|
388
|
+
context: __SerdeContext
|
|
389
|
+
) => Promise<BatchGetFindingDetailsCommandOutput>;
|
|
378
390
|
export declare const de_BatchGetFreeTrialInfoCommand: (
|
|
379
391
|
output: __HttpResponse,
|
|
380
392
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.381.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.379.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.379.1",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.379.1",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.378.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.378.0",
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.379.1",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.379.1",
|
|
31
31
|
"@aws-sdk/types": "3.378.0",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.378.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.378.0",
|