@aws-sdk/client-inspector2 3.354.0 → 3.358.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
|
@@ -0,0 +1,90 @@
|
|
|
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 { GetEncryptionKeyRequest, GetEncryptionKeyResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetEncryptionKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetEncryptionKeyCommandInput extends GetEncryptionKeyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetEncryptionKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetEncryptionKeyCommandOutput extends GetEncryptionKeyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Gets an encryption key.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { Inspector2Client, GetEncryptionKeyCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
31
|
+
* // const { Inspector2Client, GetEncryptionKeyCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
32
|
+
* const client = new Inspector2Client(config);
|
|
33
|
+
* const input = { // GetEncryptionKeyRequest
|
|
34
|
+
* scanType: "STRING_VALUE", // required
|
|
35
|
+
* resourceType: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetEncryptionKeyCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetEncryptionKeyResponse
|
|
40
|
+
* // kmsKeyId: "STRING_VALUE", // required
|
|
41
|
+
* // };
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param GetEncryptionKeyCommandInput - {@link GetEncryptionKeyCommandInput}
|
|
46
|
+
* @returns {@link GetEncryptionKeyCommandOutput}
|
|
47
|
+
* @see {@link GetEncryptionKeyCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link GetEncryptionKeyCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link InternalServerException} (server fault)
|
|
55
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
58
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
61
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
65
|
+
* inputs.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Inspector2ServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
export declare class GetEncryptionKeyCommand extends $Command<GetEncryptionKeyCommandInput, GetEncryptionKeyCommandOutput, Inspector2ClientResolvedConfig> {
|
|
72
|
+
readonly input: GetEncryptionKeyCommandInput;
|
|
73
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
74
|
+
/**
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
constructor(input: GetEncryptionKeyCommandInput);
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetEncryptionKeyCommandInput, GetEncryptionKeyCommandOutput>;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
private serialize;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
private deserialize;
|
|
90
|
+
}
|
|
@@ -163,6 +163,15 @@ export interface GetFindingsReportStatusCommandOutput extends GetFindingsReportS
|
|
|
163
163
|
* // ],
|
|
164
164
|
* // lambdaFunctionExecutionRoleArn: "<StringFilterList>",
|
|
165
165
|
* // exploitAvailable: "<StringFilterList>",
|
|
166
|
+
* // codeVulnerabilityDetectorName: "<StringFilterList>",
|
|
167
|
+
* // codeVulnerabilityDetectorTags: "<StringFilterList>",
|
|
168
|
+
* // codeVulnerabilityFilePath: "<StringFilterList>",
|
|
169
|
+
* // epssScore: [
|
|
170
|
+
* // {
|
|
171
|
+
* // upperInclusive: Number("double"),
|
|
172
|
+
* // lowerInclusive: Number("double"),
|
|
173
|
+
* // },
|
|
174
|
+
* // ],
|
|
166
175
|
* // },
|
|
167
176
|
* // };
|
|
168
177
|
*
|
|
@@ -0,0 +1,145 @@
|
|
|
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 { GetSbomExportRequest, GetSbomExportResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetSbomExportCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetSbomExportCommandInput extends GetSbomExportRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetSbomExportCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetSbomExportCommandOutput extends GetSbomExportResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Gets details of 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, GetSbomExportCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
31
|
+
* // const { Inspector2Client, GetSbomExportCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
32
|
+
* const client = new Inspector2Client(config);
|
|
33
|
+
* const input = { // GetSbomExportRequest
|
|
34
|
+
* reportId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new GetSbomExportCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // GetSbomExportResponse
|
|
39
|
+
* // reportId: "STRING_VALUE",
|
|
40
|
+
* // format: "STRING_VALUE",
|
|
41
|
+
* // status: "STRING_VALUE",
|
|
42
|
+
* // errorCode: "STRING_VALUE",
|
|
43
|
+
* // errorMessage: "STRING_VALUE",
|
|
44
|
+
* // s3Destination: { // Destination
|
|
45
|
+
* // bucketName: "STRING_VALUE", // required
|
|
46
|
+
* // keyPrefix: "STRING_VALUE",
|
|
47
|
+
* // kmsKeyArn: "STRING_VALUE", // required
|
|
48
|
+
* // },
|
|
49
|
+
* // filterCriteria: { // ResourceFilterCriteria
|
|
50
|
+
* // accountId: [ // ResourceStringFilterList
|
|
51
|
+
* // { // ResourceStringFilter
|
|
52
|
+
* // comparison: "STRING_VALUE", // required
|
|
53
|
+
* // value: "STRING_VALUE", // required
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // resourceId: [
|
|
57
|
+
* // {
|
|
58
|
+
* // comparison: "STRING_VALUE", // required
|
|
59
|
+
* // value: "STRING_VALUE", // required
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // resourceType: [
|
|
63
|
+
* // {
|
|
64
|
+
* // comparison: "STRING_VALUE", // required
|
|
65
|
+
* // value: "STRING_VALUE", // required
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // ecrRepositoryName: [
|
|
69
|
+
* // {
|
|
70
|
+
* // comparison: "STRING_VALUE", // required
|
|
71
|
+
* // value: "STRING_VALUE", // required
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // lambdaFunctionName: [
|
|
75
|
+
* // {
|
|
76
|
+
* // comparison: "STRING_VALUE", // required
|
|
77
|
+
* // value: "STRING_VALUE", // required
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // ecrImageTags: "<ResourceStringFilterList>",
|
|
81
|
+
* // ec2InstanceTags: [ // ResourceMapFilterList
|
|
82
|
+
* // { // ResourceMapFilter
|
|
83
|
+
* // comparison: "STRING_VALUE", // required
|
|
84
|
+
* // key: "STRING_VALUE", // required
|
|
85
|
+
* // value: "STRING_VALUE",
|
|
86
|
+
* // },
|
|
87
|
+
* // ],
|
|
88
|
+
* // lambdaFunctionTags: [
|
|
89
|
+
* // {
|
|
90
|
+
* // comparison: "STRING_VALUE", // required
|
|
91
|
+
* // key: "STRING_VALUE", // required
|
|
92
|
+
* // value: "STRING_VALUE",
|
|
93
|
+
* // },
|
|
94
|
+
* // ],
|
|
95
|
+
* // },
|
|
96
|
+
* // };
|
|
97
|
+
*
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @param GetSbomExportCommandInput - {@link GetSbomExportCommandInput}
|
|
101
|
+
* @returns {@link GetSbomExportCommandOutput}
|
|
102
|
+
* @see {@link GetSbomExportCommandInput} for command's `input` shape.
|
|
103
|
+
* @see {@link GetSbomExportCommandOutput} for command's `response` shape.
|
|
104
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
107
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link InternalServerException} (server fault)
|
|
110
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
113
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
116
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ValidationException} (client fault)
|
|
119
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
120
|
+
* inputs.</p>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link Inspector2ServiceException}
|
|
123
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
export declare class GetSbomExportCommand extends $Command<GetSbomExportCommandInput, GetSbomExportCommandOutput, Inspector2ClientResolvedConfig> {
|
|
127
|
+
readonly input: GetSbomExportCommandInput;
|
|
128
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
constructor(input: GetSbomExportCommandInput);
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSbomExportCommandInput, GetSbomExportCommandOutput>;
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
private serialize;
|
|
141
|
+
/**
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
private deserialize;
|
|
145
|
+
}
|
|
@@ -164,6 +164,15 @@ export interface ListFiltersCommandOutput extends ListFiltersResponse, __Metadat
|
|
|
164
164
|
* // ],
|
|
165
165
|
* // lambdaFunctionExecutionRoleArn: "<StringFilterList>",
|
|
166
166
|
* // exploitAvailable: "<StringFilterList>",
|
|
167
|
+
* // codeVulnerabilityDetectorName: "<StringFilterList>",
|
|
168
|
+
* // codeVulnerabilityDetectorTags: "<StringFilterList>",
|
|
169
|
+
* // codeVulnerabilityFilePath: "<StringFilterList>",
|
|
170
|
+
* // epssScore: [
|
|
171
|
+
* // {
|
|
172
|
+
* // upperInclusive: Number("double"),
|
|
173
|
+
* // lowerInclusive: Number("double"),
|
|
174
|
+
* // },
|
|
175
|
+
* // ],
|
|
167
176
|
* // },
|
|
168
177
|
* // action: "STRING_VALUE", // required
|
|
169
178
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
@@ -124,6 +124,7 @@ export interface ListFindingAggregationsCommandOutput extends ListFindingAggrega
|
|
|
124
124
|
* resourceType: "STRING_VALUE",
|
|
125
125
|
* sortOrder: "STRING_VALUE",
|
|
126
126
|
* sortBy: "STRING_VALUE",
|
|
127
|
+
* findingType: "STRING_VALUE",
|
|
127
128
|
* },
|
|
128
129
|
* lambdaLayerAggregation: { // LambdaLayerAggregation
|
|
129
130
|
* functionNames: "<StringFilterList>",
|
|
@@ -151,6 +151,15 @@ export interface ListFindingsCommandOutput extends ListFindingsResponse, __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
|
* sortCriteria: { // SortCriteria
|
|
156
165
|
* field: "STRING_VALUE", // required
|
|
@@ -317,6 +326,30 @@ export interface ListFindingsCommandOutput extends ListFindingsResponse, __Metad
|
|
|
317
326
|
* // exploitabilityDetails: { // ExploitabilityDetails
|
|
318
327
|
* // lastKnownExploitAt: new Date("TIMESTAMP"),
|
|
319
328
|
* // },
|
|
329
|
+
* // codeVulnerabilityDetails: { // CodeVulnerabilityDetails
|
|
330
|
+
* // filePath: { // CodeFilePath
|
|
331
|
+
* // fileName: "STRING_VALUE", // required
|
|
332
|
+
* // filePath: "STRING_VALUE", // required
|
|
333
|
+
* // startLine: Number("int"), // required
|
|
334
|
+
* // endLine: Number("int"), // required
|
|
335
|
+
* // },
|
|
336
|
+
* // detectorTags: [ // DetectorTagList
|
|
337
|
+
* // "STRING_VALUE",
|
|
338
|
+
* // ],
|
|
339
|
+
* // referenceUrls: [ // ReferenceUrls
|
|
340
|
+
* // "STRING_VALUE",
|
|
341
|
+
* // ],
|
|
342
|
+
* // ruleId: "STRING_VALUE",
|
|
343
|
+
* // sourceLambdaLayerArn: "STRING_VALUE",
|
|
344
|
+
* // detectorId: "STRING_VALUE", // required
|
|
345
|
+
* // detectorName: "STRING_VALUE", // required
|
|
346
|
+
* // cwes: [ // CweList // required
|
|
347
|
+
* // "STRING_VALUE",
|
|
348
|
+
* // ],
|
|
349
|
+
* // },
|
|
350
|
+
* // epss: { // EpssDetails
|
|
351
|
+
* // score: Number("double"),
|
|
352
|
+
* // },
|
|
320
353
|
* // },
|
|
321
354
|
* // ],
|
|
322
355
|
* // };
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { ResetEncryptionKeyRequest, ResetEncryptionKeyResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ResetEncryptionKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ResetEncryptionKeyCommandInput extends ResetEncryptionKeyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ResetEncryptionKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ResetEncryptionKeyCommandOutput extends ResetEncryptionKeyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { Inspector2Client, ResetEncryptionKeyCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
31
|
+
* // const { Inspector2Client, ResetEncryptionKeyCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
32
|
+
* const client = new Inspector2Client(config);
|
|
33
|
+
* const input = { // ResetEncryptionKeyRequest
|
|
34
|
+
* scanType: "STRING_VALUE", // required
|
|
35
|
+
* resourceType: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new ResetEncryptionKeyCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // {};
|
|
40
|
+
*
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @param ResetEncryptionKeyCommandInput - {@link ResetEncryptionKeyCommandInput}
|
|
44
|
+
* @returns {@link ResetEncryptionKeyCommandOutput}
|
|
45
|
+
* @see {@link ResetEncryptionKeyCommandInput} for command's `input` shape.
|
|
46
|
+
* @see {@link ResetEncryptionKeyCommandOutput} for command's `response` shape.
|
|
47
|
+
* @see {@link Inspector2ClientResolvedConfig | config} for Inspector2Client's `config` shape.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
50
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link InternalServerException} (server fault)
|
|
53
|
+
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
56
|
+
* <p>The operation tried to access an invalid resource. Make sure the resource is specified correctly.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
59
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ValidationException} (client fault)
|
|
62
|
+
* <p>The request has failed validation due to missing required fields or having invalid
|
|
63
|
+
* inputs.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Inspector2ServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Inspector2 service.</p>
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
export declare class ResetEncryptionKeyCommand extends $Command<ResetEncryptionKeyCommandInput, ResetEncryptionKeyCommandOutput, Inspector2ClientResolvedConfig> {
|
|
70
|
+
readonly input: ResetEncryptionKeyCommandInput;
|
|
71
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
constructor(input: ResetEncryptionKeyCommandInput);
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ResetEncryptionKeyCommandInput, ResetEncryptionKeyCommandOutput>;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
private serialize;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
private deserialize;
|
|
88
|
+
}
|
|
@@ -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 { UpdateEncryptionKeyRequest, UpdateEncryptionKeyResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateEncryptionKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateEncryptionKeyCommandInput extends UpdateEncryptionKeyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateEncryptionKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateEncryptionKeyCommandOutput extends UpdateEncryptionKeyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates an encryption key. A <code>ResourceNotFoundException</code> means that an AWS owned key is being used for encryption.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { Inspector2Client, UpdateEncryptionKeyCommand } from "@aws-sdk/client-inspector2"; // ES Modules import
|
|
31
|
+
* // const { Inspector2Client, UpdateEncryptionKeyCommand } = require("@aws-sdk/client-inspector2"); // CommonJS import
|
|
32
|
+
* const client = new Inspector2Client(config);
|
|
33
|
+
* const input = { // UpdateEncryptionKeyRequest
|
|
34
|
+
* kmsKeyId: "STRING_VALUE", // required
|
|
35
|
+
* scanType: "STRING_VALUE", // required
|
|
36
|
+
* resourceType: "STRING_VALUE", // required
|
|
37
|
+
* };
|
|
38
|
+
* const command = new UpdateEncryptionKeyCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // {};
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param UpdateEncryptionKeyCommandInput - {@link UpdateEncryptionKeyCommandInput}
|
|
45
|
+
* @returns {@link UpdateEncryptionKeyCommandOutput}
|
|
46
|
+
* @see {@link UpdateEncryptionKeyCommandInput} for command's `input` shape.
|
|
47
|
+
* @see {@link UpdateEncryptionKeyCommandOutput} 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 UpdateEncryptionKeyCommand extends $Command<UpdateEncryptionKeyCommandInput, UpdateEncryptionKeyCommandOutput, Inspector2ClientResolvedConfig> {
|
|
71
|
+
readonly input: UpdateEncryptionKeyCommandInput;
|
|
72
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
73
|
+
/**
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
constructor(input: UpdateEncryptionKeyCommandInput);
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Inspector2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateEncryptionKeyCommandInput, UpdateEncryptionKeyCommandOutput>;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
private serialize;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
private deserialize;
|
|
89
|
+
}
|
|
@@ -151,6 +151,15 @@ export interface UpdateFilterCommandOutput extends UpdateFilterResponse, __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",
|
|
156
165
|
* filterArn: "STRING_VALUE", // required
|
|
@@ -35,6 +35,7 @@ export interface UpdateOrganizationConfigurationCommandOutput extends UpdateOrga
|
|
|
35
35
|
* ec2: true || false, // required
|
|
36
36
|
* ecr: true || false, // required
|
|
37
37
|
* lambda: true || false,
|
|
38
|
+
* lambdaCode: true || false,
|
|
38
39
|
* },
|
|
39
40
|
* };
|
|
40
41
|
* const command = new UpdateOrganizationConfigurationCommand(input);
|
|
@@ -44,6 +45,7 @@ export interface UpdateOrganizationConfigurationCommandOutput extends UpdateOrga
|
|
|
44
45
|
* // ec2: true || false, // required
|
|
45
46
|
* // ecr: true || false, // required
|
|
46
47
|
* // lambda: true || false,
|
|
48
|
+
* // lambdaCode: true || false,
|
|
47
49
|
* // },
|
|
48
50
|
* // };
|
|
49
51
|
*
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from "./AssociateMemberCommand";
|
|
2
2
|
export * from "./BatchGetAccountStatusCommand";
|
|
3
|
+
export * from "./BatchGetCodeSnippetCommand";
|
|
3
4
|
export * from "./BatchGetFreeTrialInfoCommand";
|
|
4
5
|
export * from "./BatchGetMemberEc2DeepInspectionStatusCommand";
|
|
5
6
|
export * from "./BatchUpdateMemberEc2DeepInspectionStatusCommand";
|
|
6
7
|
export * from "./CancelFindingsReportCommand";
|
|
8
|
+
export * from "./CancelSbomExportCommand";
|
|
7
9
|
export * from "./CreateFilterCommand";
|
|
8
10
|
export * from "./CreateFindingsReportCommand";
|
|
11
|
+
export * from "./CreateSbomExportCommand";
|
|
9
12
|
export * from "./DeleteFilterCommand";
|
|
10
13
|
export * from "./DescribeOrganizationConfigurationCommand";
|
|
11
14
|
export * from "./DisableCommand";
|
|
@@ -16,8 +19,10 @@ export * from "./EnableDelegatedAdminAccountCommand";
|
|
|
16
19
|
export * from "./GetConfigurationCommand";
|
|
17
20
|
export * from "./GetDelegatedAdminAccountCommand";
|
|
18
21
|
export * from "./GetEc2DeepInspectionConfigurationCommand";
|
|
22
|
+
export * from "./GetEncryptionKeyCommand";
|
|
19
23
|
export * from "./GetFindingsReportStatusCommand";
|
|
20
24
|
export * from "./GetMemberCommand";
|
|
25
|
+
export * from "./GetSbomExportCommand";
|
|
21
26
|
export * from "./ListAccountPermissionsCommand";
|
|
22
27
|
export * from "./ListCoverageCommand";
|
|
23
28
|
export * from "./ListCoverageStatisticsCommand";
|
|
@@ -28,11 +33,13 @@ export * from "./ListFindingsCommand";
|
|
|
28
33
|
export * from "./ListMembersCommand";
|
|
29
34
|
export * from "./ListTagsForResourceCommand";
|
|
30
35
|
export * from "./ListUsageTotalsCommand";
|
|
36
|
+
export * from "./ResetEncryptionKeyCommand";
|
|
31
37
|
export * from "./SearchVulnerabilitiesCommand";
|
|
32
38
|
export * from "./TagResourceCommand";
|
|
33
39
|
export * from "./UntagResourceCommand";
|
|
34
40
|
export * from "./UpdateConfigurationCommand";
|
|
35
41
|
export * from "./UpdateEc2DeepInspectionConfigurationCommand";
|
|
42
|
+
export * from "./UpdateEncryptionKeyCommand";
|
|
36
43
|
export * from "./UpdateFilterCommand";
|
|
37
44
|
export * from "./UpdateOrgEc2DeepInspectionConfigurationCommand";
|
|
38
45
|
export * from "./UpdateOrganizationConfigurationCommand";
|