@aws-sdk/client-inspector2 3.354.0 → 3.357.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist-cjs/Inspector2.js +14 -0
- package/dist-cjs/commands/BatchGetCodeSnippetCommand.js +46 -0
- package/dist-cjs/commands/CancelSbomExportCommand.js +46 -0
- package/dist-cjs/commands/CreateSbomExportCommand.js +46 -0
- package/dist-cjs/commands/GetEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/GetSbomExportCommand.js +46 -0
- package/dist-cjs/commands/ResetEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/UpdateEncryptionKeyCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +28 -2
- package/dist-cjs/protocols/Aws_restJson1.js +492 -13
- package/dist-es/Inspector2.js +14 -0
- package/dist-es/commands/BatchGetCodeSnippetCommand.js +42 -0
- package/dist-es/commands/CancelSbomExportCommand.js +42 -0
- package/dist-es/commands/CreateSbomExportCommand.js +42 -0
- package/dist-es/commands/GetEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/GetSbomExportCommand.js +42 -0
- package/dist-es/commands/ResetEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/UpdateEncryptionKeyCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +26 -0
- package/dist-es/protocols/Aws_restJson1.js +472 -7
- package/dist-types/Inspector2.d.ts +49 -0
- package/dist-types/Inspector2Client.d.ts +10 -3
- package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -0
- package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +113 -0
- package/dist-types/commands/CancelSbomExportCommand.d.ts +89 -0
- package/dist-types/commands/CreateFilterCommand.d.ts +9 -0
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -0
- package/dist-types/commands/CreateSbomExportCommand.d.ts +141 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DisableCommand.d.ts +2 -0
- package/dist-types/commands/EnableCommand.d.ts +2 -0
- package/dist-types/commands/GetEncryptionKeyCommand.d.ts +90 -0
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +9 -0
- package/dist-types/commands/GetSbomExportCommand.d.ts +145 -0
- package/dist-types/commands/ListFiltersCommand.d.ts +9 -0
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +1 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +33 -0
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +88 -0
- package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +89 -0
- package/dist-types/commands/UpdateFilterCommand.d.ts +9 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +485 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/Inspector2.d.ts +119 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchGetCodeSnippetCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CancelSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ResetEncryptionKeyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateEncryptionKeyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +153 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +28 -28
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { AssociateMemberCommandInput, AssociateMemberCommandOutput } from "./commands/AssociateMemberCommand";
|
|
3
3
|
import { BatchGetAccountStatusCommandInput, BatchGetAccountStatusCommandOutput } from "./commands/BatchGetAccountStatusCommand";
|
|
4
|
+
import { BatchGetCodeSnippetCommandInput, BatchGetCodeSnippetCommandOutput } from "./commands/BatchGetCodeSnippetCommand";
|
|
4
5
|
import { BatchGetFreeTrialInfoCommandInput, BatchGetFreeTrialInfoCommandOutput } from "./commands/BatchGetFreeTrialInfoCommand";
|
|
5
6
|
import { BatchGetMemberEc2DeepInspectionStatusCommandInput, BatchGetMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
6
7
|
import { BatchUpdateMemberEc2DeepInspectionStatusCommandInput, BatchUpdateMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
7
8
|
import { CancelFindingsReportCommandInput, CancelFindingsReportCommandOutput } from "./commands/CancelFindingsReportCommand";
|
|
9
|
+
import { CancelSbomExportCommandInput, CancelSbomExportCommandOutput } from "./commands/CancelSbomExportCommand";
|
|
8
10
|
import { CreateFilterCommandInput, CreateFilterCommandOutput } from "./commands/CreateFilterCommand";
|
|
9
11
|
import { CreateFindingsReportCommandInput, CreateFindingsReportCommandOutput } from "./commands/CreateFindingsReportCommand";
|
|
12
|
+
import { CreateSbomExportCommandInput, CreateSbomExportCommandOutput } from "./commands/CreateSbomExportCommand";
|
|
10
13
|
import { DeleteFilterCommandInput, DeleteFilterCommandOutput } from "./commands/DeleteFilterCommand";
|
|
11
14
|
import { DescribeOrganizationConfigurationCommandInput, DescribeOrganizationConfigurationCommandOutput } from "./commands/DescribeOrganizationConfigurationCommand";
|
|
12
15
|
import { DisableCommandInput, DisableCommandOutput } from "./commands/DisableCommand";
|
|
@@ -17,8 +20,10 @@ import { EnableDelegatedAdminAccountCommandInput, EnableDelegatedAdminAccountCom
|
|
|
17
20
|
import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "./commands/GetConfigurationCommand";
|
|
18
21
|
import { GetDelegatedAdminAccountCommandInput, GetDelegatedAdminAccountCommandOutput } from "./commands/GetDelegatedAdminAccountCommand";
|
|
19
22
|
import { GetEc2DeepInspectionConfigurationCommandInput, GetEc2DeepInspectionConfigurationCommandOutput } from "./commands/GetEc2DeepInspectionConfigurationCommand";
|
|
23
|
+
import { GetEncryptionKeyCommandInput, GetEncryptionKeyCommandOutput } from "./commands/GetEncryptionKeyCommand";
|
|
20
24
|
import { GetFindingsReportStatusCommandInput, GetFindingsReportStatusCommandOutput } from "./commands/GetFindingsReportStatusCommand";
|
|
21
25
|
import { GetMemberCommandInput, GetMemberCommandOutput } from "./commands/GetMemberCommand";
|
|
26
|
+
import { GetSbomExportCommandInput, GetSbomExportCommandOutput } from "./commands/GetSbomExportCommand";
|
|
22
27
|
import { ListAccountPermissionsCommandInput, ListAccountPermissionsCommandOutput } from "./commands/ListAccountPermissionsCommand";
|
|
23
28
|
import { ListCoverageCommandInput, ListCoverageCommandOutput } from "./commands/ListCoverageCommand";
|
|
24
29
|
import { ListCoverageStatisticsCommandInput, ListCoverageStatisticsCommandOutput } from "./commands/ListCoverageStatisticsCommand";
|
|
@@ -29,11 +34,13 @@ import { ListFindingsCommandInput, ListFindingsCommandOutput } from "./commands/
|
|
|
29
34
|
import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
|
|
30
35
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
31
36
|
import { ListUsageTotalsCommandInput, ListUsageTotalsCommandOutput } from "./commands/ListUsageTotalsCommand";
|
|
37
|
+
import { ResetEncryptionKeyCommandInput, ResetEncryptionKeyCommandOutput } from "./commands/ResetEncryptionKeyCommand";
|
|
32
38
|
import { SearchVulnerabilitiesCommandInput, SearchVulnerabilitiesCommandOutput } from "./commands/SearchVulnerabilitiesCommand";
|
|
33
39
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
34
40
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
35
41
|
import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
|
|
36
42
|
import { UpdateEc2DeepInspectionConfigurationCommandInput, UpdateEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateEc2DeepInspectionConfigurationCommand";
|
|
43
|
+
import { UpdateEncryptionKeyCommandInput, UpdateEncryptionKeyCommandOutput } from "./commands/UpdateEncryptionKeyCommand";
|
|
37
44
|
import { UpdateFilterCommandInput, UpdateFilterCommandOutput } from "./commands/UpdateFilterCommand";
|
|
38
45
|
import { UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput } from "./commands/UpdateOrganizationConfigurationCommand";
|
|
39
46
|
import { UpdateOrgEc2DeepInspectionConfigurationCommandInput, UpdateOrgEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateOrgEc2DeepInspectionConfigurationCommand";
|
|
@@ -51,6 +58,12 @@ export interface Inspector2 {
|
|
|
51
58
|
batchGetAccountStatus(args: BatchGetAccountStatusCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetAccountStatusCommandOutput>;
|
|
52
59
|
batchGetAccountStatus(args: BatchGetAccountStatusCommandInput, cb: (err: any, data?: BatchGetAccountStatusCommandOutput) => void): void;
|
|
53
60
|
batchGetAccountStatus(args: BatchGetAccountStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetAccountStatusCommandOutput) => void): void;
|
|
61
|
+
/**
|
|
62
|
+
* @see {@link BatchGetCodeSnippetCommand}
|
|
63
|
+
*/
|
|
64
|
+
batchGetCodeSnippet(args: BatchGetCodeSnippetCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetCodeSnippetCommandOutput>;
|
|
65
|
+
batchGetCodeSnippet(args: BatchGetCodeSnippetCommandInput, cb: (err: any, data?: BatchGetCodeSnippetCommandOutput) => void): void;
|
|
66
|
+
batchGetCodeSnippet(args: BatchGetCodeSnippetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetCodeSnippetCommandOutput) => void): void;
|
|
54
67
|
/**
|
|
55
68
|
* @see {@link BatchGetFreeTrialInfoCommand}
|
|
56
69
|
*/
|
|
@@ -75,6 +88,12 @@ export interface Inspector2 {
|
|
|
75
88
|
cancelFindingsReport(args: CancelFindingsReportCommandInput, options?: __HttpHandlerOptions): Promise<CancelFindingsReportCommandOutput>;
|
|
76
89
|
cancelFindingsReport(args: CancelFindingsReportCommandInput, cb: (err: any, data?: CancelFindingsReportCommandOutput) => void): void;
|
|
77
90
|
cancelFindingsReport(args: CancelFindingsReportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelFindingsReportCommandOutput) => void): void;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link CancelSbomExportCommand}
|
|
93
|
+
*/
|
|
94
|
+
cancelSbomExport(args: CancelSbomExportCommandInput, options?: __HttpHandlerOptions): Promise<CancelSbomExportCommandOutput>;
|
|
95
|
+
cancelSbomExport(args: CancelSbomExportCommandInput, cb: (err: any, data?: CancelSbomExportCommandOutput) => void): void;
|
|
96
|
+
cancelSbomExport(args: CancelSbomExportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelSbomExportCommandOutput) => void): void;
|
|
78
97
|
/**
|
|
79
98
|
* @see {@link CreateFilterCommand}
|
|
80
99
|
*/
|
|
@@ -87,6 +106,12 @@ export interface Inspector2 {
|
|
|
87
106
|
createFindingsReport(args: CreateFindingsReportCommandInput, options?: __HttpHandlerOptions): Promise<CreateFindingsReportCommandOutput>;
|
|
88
107
|
createFindingsReport(args: CreateFindingsReportCommandInput, cb: (err: any, data?: CreateFindingsReportCommandOutput) => void): void;
|
|
89
108
|
createFindingsReport(args: CreateFindingsReportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFindingsReportCommandOutput) => void): void;
|
|
109
|
+
/**
|
|
110
|
+
* @see {@link CreateSbomExportCommand}
|
|
111
|
+
*/
|
|
112
|
+
createSbomExport(args: CreateSbomExportCommandInput, options?: __HttpHandlerOptions): Promise<CreateSbomExportCommandOutput>;
|
|
113
|
+
createSbomExport(args: CreateSbomExportCommandInput, cb: (err: any, data?: CreateSbomExportCommandOutput) => void): void;
|
|
114
|
+
createSbomExport(args: CreateSbomExportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSbomExportCommandOutput) => void): void;
|
|
90
115
|
/**
|
|
91
116
|
* @see {@link DeleteFilterCommand}
|
|
92
117
|
*/
|
|
@@ -147,6 +172,12 @@ export interface Inspector2 {
|
|
|
147
172
|
getEc2DeepInspectionConfiguration(args: GetEc2DeepInspectionConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetEc2DeepInspectionConfigurationCommandOutput>;
|
|
148
173
|
getEc2DeepInspectionConfiguration(args: GetEc2DeepInspectionConfigurationCommandInput, cb: (err: any, data?: GetEc2DeepInspectionConfigurationCommandOutput) => void): void;
|
|
149
174
|
getEc2DeepInspectionConfiguration(args: GetEc2DeepInspectionConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEc2DeepInspectionConfigurationCommandOutput) => void): void;
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link GetEncryptionKeyCommand}
|
|
177
|
+
*/
|
|
178
|
+
getEncryptionKey(args: GetEncryptionKeyCommandInput, options?: __HttpHandlerOptions): Promise<GetEncryptionKeyCommandOutput>;
|
|
179
|
+
getEncryptionKey(args: GetEncryptionKeyCommandInput, cb: (err: any, data?: GetEncryptionKeyCommandOutput) => void): void;
|
|
180
|
+
getEncryptionKey(args: GetEncryptionKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEncryptionKeyCommandOutput) => void): void;
|
|
150
181
|
/**
|
|
151
182
|
* @see {@link GetFindingsReportStatusCommand}
|
|
152
183
|
*/
|
|
@@ -159,6 +190,12 @@ export interface Inspector2 {
|
|
|
159
190
|
getMember(args: GetMemberCommandInput, options?: __HttpHandlerOptions): Promise<GetMemberCommandOutput>;
|
|
160
191
|
getMember(args: GetMemberCommandInput, cb: (err: any, data?: GetMemberCommandOutput) => void): void;
|
|
161
192
|
getMember(args: GetMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMemberCommandOutput) => void): void;
|
|
193
|
+
/**
|
|
194
|
+
* @see {@link GetSbomExportCommand}
|
|
195
|
+
*/
|
|
196
|
+
getSbomExport(args: GetSbomExportCommandInput, options?: __HttpHandlerOptions): Promise<GetSbomExportCommandOutput>;
|
|
197
|
+
getSbomExport(args: GetSbomExportCommandInput, cb: (err: any, data?: GetSbomExportCommandOutput) => void): void;
|
|
198
|
+
getSbomExport(args: GetSbomExportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSbomExportCommandOutput) => void): void;
|
|
162
199
|
/**
|
|
163
200
|
* @see {@link ListAccountPermissionsCommand}
|
|
164
201
|
*/
|
|
@@ -219,6 +256,12 @@ export interface Inspector2 {
|
|
|
219
256
|
listUsageTotals(args: ListUsageTotalsCommandInput, options?: __HttpHandlerOptions): Promise<ListUsageTotalsCommandOutput>;
|
|
220
257
|
listUsageTotals(args: ListUsageTotalsCommandInput, cb: (err: any, data?: ListUsageTotalsCommandOutput) => void): void;
|
|
221
258
|
listUsageTotals(args: ListUsageTotalsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUsageTotalsCommandOutput) => void): void;
|
|
259
|
+
/**
|
|
260
|
+
* @see {@link ResetEncryptionKeyCommand}
|
|
261
|
+
*/
|
|
262
|
+
resetEncryptionKey(args: ResetEncryptionKeyCommandInput, options?: __HttpHandlerOptions): Promise<ResetEncryptionKeyCommandOutput>;
|
|
263
|
+
resetEncryptionKey(args: ResetEncryptionKeyCommandInput, cb: (err: any, data?: ResetEncryptionKeyCommandOutput) => void): void;
|
|
264
|
+
resetEncryptionKey(args: ResetEncryptionKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResetEncryptionKeyCommandOutput) => void): void;
|
|
222
265
|
/**
|
|
223
266
|
* @see {@link SearchVulnerabilitiesCommand}
|
|
224
267
|
*/
|
|
@@ -249,6 +292,12 @@ export interface Inspector2 {
|
|
|
249
292
|
updateEc2DeepInspectionConfiguration(args: UpdateEc2DeepInspectionConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEc2DeepInspectionConfigurationCommandOutput>;
|
|
250
293
|
updateEc2DeepInspectionConfiguration(args: UpdateEc2DeepInspectionConfigurationCommandInput, cb: (err: any, data?: UpdateEc2DeepInspectionConfigurationCommandOutput) => void): void;
|
|
251
294
|
updateEc2DeepInspectionConfiguration(args: UpdateEc2DeepInspectionConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEc2DeepInspectionConfigurationCommandOutput) => void): void;
|
|
295
|
+
/**
|
|
296
|
+
* @see {@link UpdateEncryptionKeyCommand}
|
|
297
|
+
*/
|
|
298
|
+
updateEncryptionKey(args: UpdateEncryptionKeyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEncryptionKeyCommandOutput>;
|
|
299
|
+
updateEncryptionKey(args: UpdateEncryptionKeyCommandInput, cb: (err: any, data?: UpdateEncryptionKeyCommandOutput) => void): void;
|
|
300
|
+
updateEncryptionKey(args: UpdateEncryptionKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEncryptionKeyCommandOutput) => void): void;
|
|
252
301
|
/**
|
|
253
302
|
* @see {@link UpdateFilterCommand}
|
|
254
303
|
*/
|
|
@@ -10,12 +10,15 @@ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
|
10
10
|
import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, StreamCollector as __StreamCollector } from "@smithy/types";
|
|
11
11
|
import { AssociateMemberCommandInput, AssociateMemberCommandOutput } from "./commands/AssociateMemberCommand";
|
|
12
12
|
import { BatchGetAccountStatusCommandInput, BatchGetAccountStatusCommandOutput } from "./commands/BatchGetAccountStatusCommand";
|
|
13
|
+
import { BatchGetCodeSnippetCommandInput, BatchGetCodeSnippetCommandOutput } from "./commands/BatchGetCodeSnippetCommand";
|
|
13
14
|
import { BatchGetFreeTrialInfoCommandInput, BatchGetFreeTrialInfoCommandOutput } from "./commands/BatchGetFreeTrialInfoCommand";
|
|
14
15
|
import { BatchGetMemberEc2DeepInspectionStatusCommandInput, BatchGetMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
15
16
|
import { BatchUpdateMemberEc2DeepInspectionStatusCommandInput, BatchUpdateMemberEc2DeepInspectionStatusCommandOutput } from "./commands/BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
16
17
|
import { CancelFindingsReportCommandInput, CancelFindingsReportCommandOutput } from "./commands/CancelFindingsReportCommand";
|
|
18
|
+
import { CancelSbomExportCommandInput, CancelSbomExportCommandOutput } from "./commands/CancelSbomExportCommand";
|
|
17
19
|
import { CreateFilterCommandInput, CreateFilterCommandOutput } from "./commands/CreateFilterCommand";
|
|
18
20
|
import { CreateFindingsReportCommandInput, CreateFindingsReportCommandOutput } from "./commands/CreateFindingsReportCommand";
|
|
21
|
+
import { CreateSbomExportCommandInput, CreateSbomExportCommandOutput } from "./commands/CreateSbomExportCommand";
|
|
19
22
|
import { DeleteFilterCommandInput, DeleteFilterCommandOutput } from "./commands/DeleteFilterCommand";
|
|
20
23
|
import { DescribeOrganizationConfigurationCommandInput, DescribeOrganizationConfigurationCommandOutput } from "./commands/DescribeOrganizationConfigurationCommand";
|
|
21
24
|
import { DisableCommandInput, DisableCommandOutput } from "./commands/DisableCommand";
|
|
@@ -26,8 +29,10 @@ import { EnableDelegatedAdminAccountCommandInput, EnableDelegatedAdminAccountCom
|
|
|
26
29
|
import { GetConfigurationCommandInput, GetConfigurationCommandOutput } from "./commands/GetConfigurationCommand";
|
|
27
30
|
import { GetDelegatedAdminAccountCommandInput, GetDelegatedAdminAccountCommandOutput } from "./commands/GetDelegatedAdminAccountCommand";
|
|
28
31
|
import { GetEc2DeepInspectionConfigurationCommandInput, GetEc2DeepInspectionConfigurationCommandOutput } from "./commands/GetEc2DeepInspectionConfigurationCommand";
|
|
32
|
+
import { GetEncryptionKeyCommandInput, GetEncryptionKeyCommandOutput } from "./commands/GetEncryptionKeyCommand";
|
|
29
33
|
import { GetFindingsReportStatusCommandInput, GetFindingsReportStatusCommandOutput } from "./commands/GetFindingsReportStatusCommand";
|
|
30
34
|
import { GetMemberCommandInput, GetMemberCommandOutput } from "./commands/GetMemberCommand";
|
|
35
|
+
import { GetSbomExportCommandInput, GetSbomExportCommandOutput } from "./commands/GetSbomExportCommand";
|
|
31
36
|
import { ListAccountPermissionsCommandInput, ListAccountPermissionsCommandOutput } from "./commands/ListAccountPermissionsCommand";
|
|
32
37
|
import { ListCoverageCommandInput, ListCoverageCommandOutput } from "./commands/ListCoverageCommand";
|
|
33
38
|
import { ListCoverageStatisticsCommandInput, ListCoverageStatisticsCommandOutput } from "./commands/ListCoverageStatisticsCommand";
|
|
@@ -38,11 +43,13 @@ import { ListFindingsCommandInput, ListFindingsCommandOutput } from "./commands/
|
|
|
38
43
|
import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
|
|
39
44
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
40
45
|
import { ListUsageTotalsCommandInput, ListUsageTotalsCommandOutput } from "./commands/ListUsageTotalsCommand";
|
|
46
|
+
import { ResetEncryptionKeyCommandInput, ResetEncryptionKeyCommandOutput } from "./commands/ResetEncryptionKeyCommand";
|
|
41
47
|
import { SearchVulnerabilitiesCommandInput, SearchVulnerabilitiesCommandOutput } from "./commands/SearchVulnerabilitiesCommand";
|
|
42
48
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
43
49
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
44
50
|
import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
|
|
45
51
|
import { UpdateEc2DeepInspectionConfigurationCommandInput, UpdateEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateEc2DeepInspectionConfigurationCommand";
|
|
52
|
+
import { UpdateEncryptionKeyCommandInput, UpdateEncryptionKeyCommandOutput } from "./commands/UpdateEncryptionKeyCommand";
|
|
46
53
|
import { UpdateFilterCommandInput, UpdateFilterCommandOutput } from "./commands/UpdateFilterCommand";
|
|
47
54
|
import { UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput } from "./commands/UpdateOrganizationConfigurationCommand";
|
|
48
55
|
import { UpdateOrgEc2DeepInspectionConfigurationCommandInput, UpdateOrgEc2DeepInspectionConfigurationCommandOutput } from "./commands/UpdateOrgEc2DeepInspectionConfigurationCommand";
|
|
@@ -51,11 +58,11 @@ export { __Client };
|
|
|
51
58
|
/**
|
|
52
59
|
* @public
|
|
53
60
|
*/
|
|
54
|
-
export type ServiceInputTypes = AssociateMemberCommandInput | BatchGetAccountStatusCommandInput | BatchGetFreeTrialInfoCommandInput | BatchGetMemberEc2DeepInspectionStatusCommandInput | BatchUpdateMemberEc2DeepInspectionStatusCommandInput | CancelFindingsReportCommandInput | CreateFilterCommandInput | CreateFindingsReportCommandInput | DeleteFilterCommandInput | DescribeOrganizationConfigurationCommandInput | DisableCommandInput | DisableDelegatedAdminAccountCommandInput | DisassociateMemberCommandInput | EnableCommandInput | EnableDelegatedAdminAccountCommandInput | GetConfigurationCommandInput | GetDelegatedAdminAccountCommandInput | GetEc2DeepInspectionConfigurationCommandInput | GetFindingsReportStatusCommandInput | GetMemberCommandInput | ListAccountPermissionsCommandInput | ListCoverageCommandInput | ListCoverageStatisticsCommandInput | ListDelegatedAdminAccountsCommandInput | ListFiltersCommandInput | ListFindingAggregationsCommandInput | ListFindingsCommandInput | ListMembersCommandInput | ListTagsForResourceCommandInput | ListUsageTotalsCommandInput | SearchVulnerabilitiesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigurationCommandInput | UpdateEc2DeepInspectionConfigurationCommandInput | UpdateFilterCommandInput | UpdateOrgEc2DeepInspectionConfigurationCommandInput | UpdateOrganizationConfigurationCommandInput;
|
|
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;
|
|
55
62
|
/**
|
|
56
63
|
* @public
|
|
57
64
|
*/
|
|
58
|
-
export type ServiceOutputTypes = AssociateMemberCommandOutput | BatchGetAccountStatusCommandOutput | BatchGetFreeTrialInfoCommandOutput | BatchGetMemberEc2DeepInspectionStatusCommandOutput | BatchUpdateMemberEc2DeepInspectionStatusCommandOutput | CancelFindingsReportCommandOutput | CreateFilterCommandOutput | CreateFindingsReportCommandOutput | DeleteFilterCommandOutput | DescribeOrganizationConfigurationCommandOutput | DisableCommandOutput | DisableDelegatedAdminAccountCommandOutput | DisassociateMemberCommandOutput | EnableCommandOutput | EnableDelegatedAdminAccountCommandOutput | GetConfigurationCommandOutput | GetDelegatedAdminAccountCommandOutput | GetEc2DeepInspectionConfigurationCommandOutput | GetFindingsReportStatusCommandOutput | GetMemberCommandOutput | ListAccountPermissionsCommandOutput | ListCoverageCommandOutput | ListCoverageStatisticsCommandOutput | ListDelegatedAdminAccountsCommandOutput | ListFiltersCommandOutput | ListFindingAggregationsCommandOutput | ListFindingsCommandOutput | ListMembersCommandOutput | ListTagsForResourceCommandOutput | ListUsageTotalsCommandOutput | SearchVulnerabilitiesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigurationCommandOutput | UpdateEc2DeepInspectionConfigurationCommandOutput | UpdateFilterCommandOutput | UpdateOrgEc2DeepInspectionConfigurationCommandOutput | UpdateOrganizationConfigurationCommandOutput;
|
|
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;
|
|
59
66
|
/**
|
|
60
67
|
* @public
|
|
61
68
|
*/
|
|
@@ -111,7 +118,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
111
118
|
*/
|
|
112
119
|
runtime?: string;
|
|
113
120
|
/**
|
|
114
|
-
* Disable
|
|
121
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
115
122
|
* trait of an operation.
|
|
116
123
|
*/
|
|
117
124
|
disableHostPrefix?: boolean;
|
|
@@ -62,6 +62,11 @@ export interface BatchGetAccountStatusCommandOutput extends BatchGetAccountStatu
|
|
|
62
62
|
* // errorCode: "STRING_VALUE", // required
|
|
63
63
|
* // errorMessage: "STRING_VALUE", // required
|
|
64
64
|
* // },
|
|
65
|
+
* // lambdaCode: {
|
|
66
|
+
* // status: "STRING_VALUE", // required
|
|
67
|
+
* // errorCode: "STRING_VALUE", // required
|
|
68
|
+
* // errorMessage: "STRING_VALUE", // required
|
|
69
|
+
* // },
|
|
65
70
|
* // },
|
|
66
71
|
* // },
|
|
67
72
|
* // ],
|
|
@@ -73,6 +78,7 @@ export interface BatchGetAccountStatusCommandOutput extends BatchGetAccountStatu
|
|
|
73
78
|
* // ec2: "STRING_VALUE", // required
|
|
74
79
|
* // ecr: "STRING_VALUE", // required
|
|
75
80
|
* // lambda: "STRING_VALUE",
|
|
81
|
+
* // lambdaCode: "STRING_VALUE",
|
|
76
82
|
* // },
|
|
77
83
|
* // errorCode: "STRING_VALUE", // required
|
|
78
84
|
* // errorMessage: "STRING_VALUE", // required
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
5
|
+
import { BatchGetCodeSnippetRequest, BatchGetCodeSnippetResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchGetCodeSnippetCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetCodeSnippetCommandInput extends BatchGetCodeSnippetRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetCodeSnippetCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetCodeSnippetCommandOutput extends BatchGetCodeSnippetResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { Inspector2Client, BatchGetCodeSnippetCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
31
|
+
* // const { Inspector2Client, BatchGetCodeSnippetCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
32
|
+
* const client = new Inspector2Client(config);
|
|
33
|
+
* const input = { // BatchGetCodeSnippetRequest
|
|
34
|
+
* findingArns: [ // FindingArns // required
|
|
35
|
+
* "STRING_VALUE",
|
|
36
|
+
* ],
|
|
37
|
+
* };
|
|
38
|
+
* const command = new BatchGetCodeSnippetCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // BatchGetCodeSnippetResponse
|
|
41
|
+
* // codeSnippetResults: [ // CodeSnippetResultList
|
|
42
|
+
* // { // CodeSnippetResult
|
|
43
|
+
* // findingArn: "STRING_VALUE",
|
|
44
|
+
* // startLine: Number("int"),
|
|
45
|
+
* // endLine: Number("int"),
|
|
46
|
+
* // codeSnippet: [ // CodeLineList
|
|
47
|
+
* // { // CodeLine
|
|
48
|
+
* // content: "STRING_VALUE", // required
|
|
49
|
+
* // lineNumber: Number("int"), // required
|
|
50
|
+
* // },
|
|
51
|
+
* // ],
|
|
52
|
+
* // suggestedFixes: [ // SuggestedFixes
|
|
53
|
+
* // { // SuggestedFix
|
|
54
|
+
* // description: "STRING_VALUE",
|
|
55
|
+
* // code: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // errors: [ // CodeSnippetErrorList
|
|
61
|
+
* // { // CodeSnippetError
|
|
62
|
+
* // findingArn: "STRING_VALUE", // required
|
|
63
|
+
* // errorCode: "STRING_VALUE", // required
|
|
64
|
+
* // errorMessage: "STRING_VALUE", // required
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // };
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param BatchGetCodeSnippetCommandInput - {@link BatchGetCodeSnippetCommandInput}
|
|
72
|
+
* @returns {@link BatchGetCodeSnippetCommandOutput}
|
|
73
|
+
* @see {@link BatchGetCodeSnippetCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link BatchGetCodeSnippetCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
78
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InternalServerException} (server fault)
|
|
81
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
84
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ValidationException} (client fault)
|
|
87
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
88
|
+
* inputs.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link Inspector2ServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
export declare class BatchGetCodeSnippetCommand extends $Command<BatchGetCodeSnippetCommandInput, BatchGetCodeSnippetCommandOutput, Inspector2ClientResolvedConfig> {
|
|
95
|
+
readonly input: BatchGetCodeSnippetCommandInput;
|
|
96
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
97
|
+
/**
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
constructor(input: BatchGetCodeSnippetCommandInput);
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetCodeSnippetCommandInput, BatchGetCodeSnippetCommandOutput>;
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
private serialize;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
private deserialize;
|
|
113
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
5
|
+
import { CancelSbomExportRequest, CancelSbomExportResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CancelSbomExportCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CancelSbomExportCommandInput extends CancelSbomExportRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CancelSbomExportCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CancelSbomExportCommandOutput extends CancelSbomExportResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Cancels a software bill of materials (SBOM) report.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { Inspector2Client, CancelSbomExportCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
31
|
+
* // const { Inspector2Client, CancelSbomExportCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
32
|
+
* const client = new Inspector2Client(config);
|
|
33
|
+
* const input = { // CancelSbomExportRequest
|
|
34
|
+
* reportId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new CancelSbomExportCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // CancelSbomExportResponse
|
|
39
|
+
* // reportId: "STRING_VALUE",
|
|
40
|
+
* // };
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param CancelSbomExportCommandInput - {@link CancelSbomExportCommandInput}
|
|
45
|
+
* @returns {@link CancelSbomExportCommandOutput}
|
|
46
|
+
* @see {@link CancelSbomExportCommandInput} for command's `input` shape.
|
|
47
|
+
* @see {@link CancelSbomExportCommandOutput} for command's `response` shape.
|
|
48
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
51
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link InternalServerException} (server fault)
|
|
54
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
57
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
60
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ValidationException} (client fault)
|
|
63
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
64
|
+
* inputs.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link Inspector2ServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export declare class CancelSbomExportCommand extends $Command<CancelSbomExportCommandInput, CancelSbomExportCommandOutput, Inspector2ClientResolvedConfig> {
|
|
71
|
+
readonly input: CancelSbomExportCommandInput;
|
|
72
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
73
|
+
/**
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
constructor(input: CancelSbomExportCommandInput);
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelSbomExportCommandInput, CancelSbomExportCommandOutput>;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
private serialize;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
private deserialize;
|
|
89
|
+
}
|
|
@@ -151,6 +151,15 @@ export interface CreateFilterCommandOutput extends CreateFilterResponse, __Metad
|
|
|
151
151
|
* ],
|
|
152
152
|
* lambdaFunctionExecutionRoleArn: "<StringFilterList>",
|
|
153
153
|
* exploitAvailable: "<StringFilterList>",
|
|
154
|
+
* codeVulnerabilityDetectorName: "<StringFilterList>",
|
|
155
|
+
* codeVulnerabilityDetectorTags: "<StringFilterList>",
|
|
156
|
+
* codeVulnerabilityFilePath: "<StringFilterList>",
|
|
157
|
+
* epssScore: [
|
|
158
|
+
* {
|
|
159
|
+
* upperInclusive: Number("double"),
|
|
160
|
+
* lowerInclusive: Number("double"),
|
|
161
|
+
* },
|
|
162
|
+
* ],
|
|
154
163
|
* },
|
|
155
164
|
* name: "STRING_VALUE", // required
|
|
156
165
|
* tags: { // TagMap
|
|
@@ -149,6 +149,15 @@ export interface CreateFindingsReportCommandOutput extends CreateFindingsReportR
|
|
|
149
149
|
* ],
|
|
150
150
|
* lambdaFunctionExecutionRoleArn: "<StringFilterList>",
|
|
151
151
|
* exploitAvailable: "<StringFilterList>",
|
|
152
|
+
* codeVulnerabilityDetectorName: "<StringFilterList>",
|
|
153
|
+
* codeVulnerabilityDetectorTags: "<StringFilterList>",
|
|
154
|
+
* codeVulnerabilityFilePath: "<StringFilterList>",
|
|
155
|
+
* epssScore: [
|
|
156
|
+
* {
|
|
157
|
+
* upperInclusive: Number("double"),
|
|
158
|
+
* lowerInclusive: Number("double"),
|
|
159
|
+
* },
|
|
160
|
+
* ],
|
|
152
161
|
* },
|
|
153
162
|
* reportFormat: "STRING_VALUE", // required
|
|
154
163
|
* s3Destination: { // Destination
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client";
|
|
5
|
+
import { CreateSbomExportRequest, CreateSbomExportResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateSbomExportCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateSbomExportCommandInput extends CreateSbomExportRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateSbomExportCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateSbomExportCommandOutput extends CreateSbomExportResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates a software bill of materials (SBOM) report.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { Inspector2Client, CreateSbomExportCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
31
|
+
* // const { Inspector2Client, CreateSbomExportCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
32
|
+
* const client = new Inspector2Client(config);
|
|
33
|
+
* const input = { // CreateSbomExportRequest
|
|
34
|
+
* resourceFilterCriteria: { // ResourceFilterCriteria
|
|
35
|
+
* accountId: [ // ResourceStringFilterList
|
|
36
|
+
* { // ResourceStringFilter
|
|
37
|
+
* comparison: "STRING_VALUE", // required
|
|
38
|
+
* value: "STRING_VALUE", // required
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* resourceId: [
|
|
42
|
+
* {
|
|
43
|
+
* comparison: "STRING_VALUE", // required
|
|
44
|
+
* value: "STRING_VALUE", // required
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* resourceType: [
|
|
48
|
+
* {
|
|
49
|
+
* comparison: "STRING_VALUE", // required
|
|
50
|
+
* value: "STRING_VALUE", // required
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* ecrRepositoryName: [
|
|
54
|
+
* {
|
|
55
|
+
* comparison: "STRING_VALUE", // required
|
|
56
|
+
* value: "STRING_VALUE", // required
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* lambdaFunctionName: [
|
|
60
|
+
* {
|
|
61
|
+
* comparison: "STRING_VALUE", // required
|
|
62
|
+
* value: "STRING_VALUE", // required
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* ecrImageTags: "<ResourceStringFilterList>",
|
|
66
|
+
* ec2InstanceTags: [ // ResourceMapFilterList
|
|
67
|
+
* { // ResourceMapFilter
|
|
68
|
+
* comparison: "STRING_VALUE", // required
|
|
69
|
+
* key: "STRING_VALUE", // required
|
|
70
|
+
* value: "STRING_VALUE",
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* lambdaFunctionTags: [
|
|
74
|
+
* {
|
|
75
|
+
* comparison: "STRING_VALUE", // required
|
|
76
|
+
* key: "STRING_VALUE", // required
|
|
77
|
+
* value: "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* ],
|
|
80
|
+
* },
|
|
81
|
+
* reportFormat: "STRING_VALUE", // required
|
|
82
|
+
* s3Destination: { // Destination
|
|
83
|
+
* bucketName: "STRING_VALUE", // required
|
|
84
|
+
* keyPrefix: "STRING_VALUE",
|
|
85
|
+
* kmsKeyArn: "STRING_VALUE", // required
|
|
86
|
+
* },
|
|
87
|
+
* };
|
|
88
|
+
* const command = new CreateSbomExportCommand(input);
|
|
89
|
+
* const response = await client.send(command);
|
|
90
|
+
* // { // CreateSbomExportResponse
|
|
91
|
+
* // reportId: "STRING_VALUE",
|
|
92
|
+
* // };
|
|
93
|
+
*
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @param CreateSbomExportCommandInput - {@link CreateSbomExportCommandInput}
|
|
97
|
+
* @returns {@link CreateSbomExportCommandOutput}
|
|
98
|
+
* @see {@link CreateSbomExportCommandInput} for command's `input` shape.
|
|
99
|
+
* @see {@link CreateSbomExportCommandOutput} for command's `response` shape.
|
|
100
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
103
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link InternalServerException} (server fault)
|
|
106
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
109
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
112
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ValidationException} (client fault)
|
|
115
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
116
|
+
* inputs.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link Inspector2ServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
export declare class CreateSbomExportCommand extends $Command<CreateSbomExportCommandInput, CreateSbomExportCommandOutput, Inspector2ClientResolvedConfig> {
|
|
123
|
+
readonly input: CreateSbomExportCommandInput;
|
|
124
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
constructor(input: CreateSbomExportCommandInput);
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateSbomExportCommandInput, CreateSbomExportCommandOutput>;
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
private serialize;
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
private deserialize;
|
|
141
|
+
}
|
|
@@ -38,6 +38,7 @@ export interface DescribeOrganizationConfigurationCommandOutput extends Describe
|
|
|
38
38
|
* // ec2: true || false, // required
|
|
39
39
|
* // ecr: true || false, // required
|
|
40
40
|
* // lambda: true || false,
|
|
41
|
+
* // lambdaCode: true || false,
|
|
41
42
|
* // },
|
|
42
43
|
* // maxAccountLimitReached: true || false,
|
|
43
44
|
* // };
|
|
@@ -50,6 +50,7 @@ export interface DisableCommandOutput extends DisableResponse, __MetadataBearer
|
|
|
50
50
|
* // ec2: "STRING_VALUE", // required
|
|
51
51
|
* // ecr: "STRING_VALUE", // required
|
|
52
52
|
* // lambda: "STRING_VALUE",
|
|
53
|
+
* // lambdaCode: "STRING_VALUE",
|
|
53
54
|
* // },
|
|
54
55
|
* // },
|
|
55
56
|
* // ],
|
|
@@ -61,6 +62,7 @@ export interface DisableCommandOutput extends DisableResponse, __MetadataBearer
|
|
|
61
62
|
* // ec2: "STRING_VALUE", // required
|
|
62
63
|
* // ecr: "STRING_VALUE", // required
|
|
63
64
|
* // lambda: "STRING_VALUE",
|
|
65
|
+
* // lambdaCode: "STRING_VALUE",
|
|
64
66
|
* // },
|
|
65
67
|
* // errorCode: "STRING_VALUE", // required
|
|
66
68
|
* // errorMessage: "STRING_VALUE", // required
|
|
@@ -50,6 +50,7 @@ export interface EnableCommandOutput extends EnableResponse, __MetadataBearer {
|
|
|
50
50
|
* // ec2: "STRING_VALUE", // required
|
|
51
51
|
* // ecr: "STRING_VALUE", // required
|
|
52
52
|
* // lambda: "STRING_VALUE",
|
|
53
|
+
* // lambdaCode: "STRING_VALUE",
|
|
53
54
|
* // },
|
|
54
55
|
* // },
|
|
55
56
|
* // ],
|
|
@@ -61,6 +62,7 @@ export interface EnableCommandOutput extends EnableResponse, __MetadataBearer {
|
|
|
61
62
|
* // ec2: "STRING_VALUE", // required
|
|
62
63
|
* // ecr: "STRING_VALUE", // required
|
|
63
64
|
* // lambda: "STRING_VALUE",
|
|
65
|
+
* // lambdaCode: "STRING_VALUE",
|
|
64
66
|
* // },
|
|
65
67
|
* // errorCode: "STRING_VALUE", // required
|
|
66
68
|
* // errorMessage: "STRING_VALUE", // required
|