@aws-sdk/client-securityhub 3.326.0 → 3.328.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/SecurityHub.js +2 -0
- package/dist-cjs/commands/GetFindingHistoryCommand.js +45 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_2.js +5 -1
- package/dist-cjs/pagination/GetFindingHistoryPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +90 -3
- package/dist-es/SecurityHub.js +2 -0
- package/dist-es/commands/GetFindingHistoryCommand.js +41 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_2.js +4 -0
- package/dist-es/pagination/GetFindingHistoryPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +85 -0
- package/dist-types/SecurityHub.d.ts +7 -0
- package/dist-types/SecurityHubClient.d.ts +3 -2
- package/dist-types/commands/GetFindingHistoryCommand.d.ts +157 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_1.d.ts +16 -16
- package/dist-types/models/models_2.d.ts +196 -1
- package/dist-types/pagination/GetFindingHistoryPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +17 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetFindingHistoryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_2.d.ts +35 -0
- package/dist-types/ts3.4/pagination/GetFindingHistoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +8 -8
|
@@ -35,6 +35,7 @@ export * from "./EnableSecurityHubCommand";
|
|
|
35
35
|
export * from "./GetAdministratorAccountCommand";
|
|
36
36
|
export * from "./GetEnabledStandardsCommand";
|
|
37
37
|
export * from "./GetFindingAggregatorCommand";
|
|
38
|
+
export * from "./GetFindingHistoryCommand";
|
|
38
39
|
export * from "./GetFindingsCommand";
|
|
39
40
|
export * from "./GetInsightResultsCommand";
|
|
40
41
|
export * from "./GetInsightsCommand";
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AwsSecurityFinding,
|
|
10
10
|
AwsSecurityFindingFilters,
|
|
11
|
+
AwsSecurityFindingIdentifier,
|
|
11
12
|
ControlFindingGenerator,
|
|
12
13
|
ControlStatus,
|
|
13
14
|
NoteUpdate,
|
|
@@ -195,6 +196,29 @@ export interface EnableSecurityHubResponse {}
|
|
|
195
196
|
export interface FindingAggregator {
|
|
196
197
|
FindingAggregatorArn?: string;
|
|
197
198
|
}
|
|
199
|
+
export interface FindingHistoryUpdate {
|
|
200
|
+
UpdatedField?: string;
|
|
201
|
+
OldValue?: string;
|
|
202
|
+
NewValue?: string;
|
|
203
|
+
}
|
|
204
|
+
export declare const FindingHistoryUpdateSourceType: {
|
|
205
|
+
readonly BATCH_IMPORT_FINDINGS: "BATCH_IMPORT_FINDINGS";
|
|
206
|
+
readonly BATCH_UPDATE_FINDINGS: "BATCH_UPDATE_FINDINGS";
|
|
207
|
+
};
|
|
208
|
+
export type FindingHistoryUpdateSourceType =
|
|
209
|
+
(typeof FindingHistoryUpdateSourceType)[keyof typeof FindingHistoryUpdateSourceType];
|
|
210
|
+
export interface FindingHistoryUpdateSource {
|
|
211
|
+
Type?: FindingHistoryUpdateSourceType | string;
|
|
212
|
+
Identity?: string;
|
|
213
|
+
}
|
|
214
|
+
export interface FindingHistoryRecord {
|
|
215
|
+
FindingIdentifier?: AwsSecurityFindingIdentifier;
|
|
216
|
+
UpdateTime?: Date;
|
|
217
|
+
FindingCreated?: boolean;
|
|
218
|
+
UpdateSource?: FindingHistoryUpdateSource;
|
|
219
|
+
Updates?: FindingHistoryUpdate[];
|
|
220
|
+
NextToken?: string;
|
|
221
|
+
}
|
|
198
222
|
export interface GetAdministratorAccountRequest {}
|
|
199
223
|
export interface Invitation {
|
|
200
224
|
AccountId?: string;
|
|
@@ -223,6 +247,17 @@ export interface GetFindingAggregatorResponse {
|
|
|
223
247
|
RegionLinkingMode?: string;
|
|
224
248
|
Regions?: string[];
|
|
225
249
|
}
|
|
250
|
+
export interface GetFindingHistoryRequest {
|
|
251
|
+
FindingIdentifier: AwsSecurityFindingIdentifier | undefined;
|
|
252
|
+
StartTime?: Date;
|
|
253
|
+
EndTime?: Date;
|
|
254
|
+
NextToken?: string;
|
|
255
|
+
MaxResults?: number;
|
|
256
|
+
}
|
|
257
|
+
export interface GetFindingHistoryResponse {
|
|
258
|
+
Records?: FindingHistoryRecord[];
|
|
259
|
+
NextToken?: string;
|
|
260
|
+
}
|
|
226
261
|
export declare const SortOrder: {
|
|
227
262
|
readonly ASCENDING: "asc";
|
|
228
263
|
readonly DESCENDING: "desc";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import {
|
|
3
|
+
GetFindingHistoryCommandInput,
|
|
4
|
+
GetFindingHistoryCommandOutput,
|
|
5
|
+
} from "../commands/GetFindingHistoryCommand";
|
|
6
|
+
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateGetFindingHistory(
|
|
8
|
+
config: SecurityHubPaginationConfiguration,
|
|
9
|
+
input: GetFindingHistoryCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<GetFindingHistoryCommandOutput>;
|
|
@@ -3,6 +3,7 @@ export * from "./DescribeProductsPaginator";
|
|
|
3
3
|
export * from "./DescribeStandardsControlsPaginator";
|
|
4
4
|
export * from "./DescribeStandardsPaginator";
|
|
5
5
|
export * from "./GetEnabledStandardsPaginator";
|
|
6
|
+
export * from "./GetFindingHistoryPaginator";
|
|
6
7
|
export * from "./GetFindingsPaginator";
|
|
7
8
|
export * from "./GetInsightsPaginator";
|
|
8
9
|
export * from "./Interfaces";
|
|
@@ -151,6 +151,10 @@ import {
|
|
|
151
151
|
GetFindingAggregatorCommandInput,
|
|
152
152
|
GetFindingAggregatorCommandOutput,
|
|
153
153
|
} from "../commands/GetFindingAggregatorCommand";
|
|
154
|
+
import {
|
|
155
|
+
GetFindingHistoryCommandInput,
|
|
156
|
+
GetFindingHistoryCommandOutput,
|
|
157
|
+
} from "../commands/GetFindingHistoryCommand";
|
|
154
158
|
import {
|
|
155
159
|
GetFindingsCommandInput,
|
|
156
160
|
GetFindingsCommandOutput,
|
|
@@ -395,6 +399,10 @@ export declare const se_GetFindingAggregatorCommand: (
|
|
|
395
399
|
input: GetFindingAggregatorCommandInput,
|
|
396
400
|
context: __SerdeContext
|
|
397
401
|
) => Promise<__HttpRequest>;
|
|
402
|
+
export declare const se_GetFindingHistoryCommand: (
|
|
403
|
+
input: GetFindingHistoryCommandInput,
|
|
404
|
+
context: __SerdeContext
|
|
405
|
+
) => Promise<__HttpRequest>;
|
|
398
406
|
export declare const se_GetFindingsCommand: (
|
|
399
407
|
input: GetFindingsCommandInput,
|
|
400
408
|
context: __SerdeContext
|
|
@@ -639,6 +647,10 @@ export declare const de_GetFindingAggregatorCommand: (
|
|
|
639
647
|
output: __HttpResponse,
|
|
640
648
|
context: __SerdeContext
|
|
641
649
|
) => Promise<GetFindingAggregatorCommandOutput>;
|
|
650
|
+
export declare const de_GetFindingHistoryCommand: (
|
|
651
|
+
output: __HttpResponse,
|
|
652
|
+
context: __SerdeContext
|
|
653
|
+
) => Promise<GetFindingHistoryCommandOutput>;
|
|
642
654
|
export declare const de_GetFindingsCommand: (
|
|
643
655
|
output: __HttpResponse,
|
|
644
656
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-securityhub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.328.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,9 +21,9 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.328.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.328.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@aws-sdk/middleware-host-header": "3.325.0",
|
|
33
33
|
"@aws-sdk/middleware-logger": "3.325.0",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "3.325.0",
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.327.0",
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.325.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.325.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.325.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.327.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.328.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
43
|
"@aws-sdk/smithy-client": "3.325.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-browser": "3.325.0",
|
|
50
50
|
"@aws-sdk/util-defaults-mode-node": "3.325.0",
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.327.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.327.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.310.0",
|