@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
|
@@ -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
|
*/
|
|
@@ -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.382.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,15 +21,15 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.382.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.382.0",
|
|
26
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
29
|
"@aws-sdk/middleware-signing": "3.379.1",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.382.0",
|
|
31
31
|
"@aws-sdk/types": "3.378.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.382.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.378.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-node": "3.378.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.0.1",
|