@aws-sdk/client-inspector2 3.379.1 → 3.382.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/models/models_0.d.ts +839 -34
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- 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/models/models_0.d.ts +46 -9
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +5 -5
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
|
*/
|