@aws-sdk/client-securityhub 3.325.0 → 3.327.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.
Files changed (94) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/SecurityHub.js +2 -0
  3. package/dist-cjs/commands/GetFindingHistoryCommand.js +45 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_2.js +5 -1
  6. package/dist-cjs/pagination/GetFindingHistoryPaginator.js +29 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +90 -3
  9. package/dist-es/SecurityHub.js +2 -0
  10. package/dist-es/commands/GetFindingHistoryCommand.js +41 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_2.js +4 -0
  13. package/dist-es/pagination/GetFindingHistoryPaginator.js +25 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +85 -0
  16. package/dist-types/SecurityHub.d.ts +7 -0
  17. package/dist-types/SecurityHubClient.d.ts +3 -2
  18. package/dist-types/commands/AcceptAdministratorInvitationCommand.d.ts +4 -0
  19. package/dist-types/commands/AcceptInvitationCommand.d.ts +4 -0
  20. package/dist-types/commands/BatchDisableStandardsCommand.d.ts +18 -0
  21. package/dist-types/commands/BatchEnableStandardsCommand.d.ts +18 -0
  22. package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +23 -0
  23. package/dist-types/commands/BatchGetStandardsControlAssociationsCommand.d.ts +33 -0
  24. package/dist-types/commands/BatchImportFindingsCommand.d.ts +14 -0
  25. package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +21 -0
  26. package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +17 -0
  27. package/dist-types/commands/CreateActionTargetCommand.d.ts +6 -0
  28. package/dist-types/commands/CreateFindingAggregatorCommand.d.ts +11 -0
  29. package/dist-types/commands/CreateInsightCommand.d.ts +6 -0
  30. package/dist-types/commands/CreateMembersCommand.d.ts +11 -0
  31. package/dist-types/commands/DeclineInvitationsCommand.d.ts +11 -0
  32. package/dist-types/commands/DeleteActionTargetCommand.d.ts +6 -0
  33. package/dist-types/commands/DeleteFindingAggregatorCommand.d.ts +4 -0
  34. package/dist-types/commands/DeleteInsightCommand.d.ts +6 -0
  35. package/dist-types/commands/DeleteInvitationsCommand.d.ts +11 -0
  36. package/dist-types/commands/DeleteMembersCommand.d.ts +11 -0
  37. package/dist-types/commands/DescribeActionTargetsCommand.d.ts +13 -0
  38. package/dist-types/commands/DescribeHubCommand.d.ts +9 -0
  39. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +8 -0
  40. package/dist-types/commands/DescribeProductsCommand.d.ts +23 -0
  41. package/dist-types/commands/DescribeStandardsCommand.d.ts +18 -0
  42. package/dist-types/commands/DescribeStandardsControlsCommand.d.ts +22 -0
  43. package/dist-types/commands/DisableImportFindingsForProductCommand.d.ts +4 -0
  44. package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +4 -0
  45. package/dist-types/commands/DisableSecurityHubCommand.d.ts +4 -0
  46. package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +4 -0
  47. package/dist-types/commands/DisassociateFromMasterAccountCommand.d.ts +4 -0
  48. package/dist-types/commands/DisassociateMembersCommand.d.ts +4 -0
  49. package/dist-types/commands/EnableImportFindingsForProductCommand.d.ts +6 -0
  50. package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +4 -0
  51. package/dist-types/commands/EnableSecurityHubCommand.d.ts +4 -0
  52. package/dist-types/commands/GetAdministratorAccountCommand.d.ts +11 -0
  53. package/dist-types/commands/GetEnabledStandardsCommand.d.ts +19 -0
  54. package/dist-types/commands/GetFindingAggregatorCommand.d.ts +11 -0
  55. package/dist-types/commands/GetFindingHistoryCommand.d.ts +157 -0
  56. package/dist-types/commands/GetFindingsCommand.d.ts +3760 -0
  57. package/dist-types/commands/GetInsightResultsCommand.d.ts +15 -0
  58. package/dist-types/commands/GetInsightsCommand.d.ts +264 -0
  59. package/dist-types/commands/GetInvitationsCountCommand.d.ts +6 -0
  60. package/dist-types/commands/GetMasterAccountCommand.d.ts +11 -0
  61. package/dist-types/commands/GetMembersCommand.d.ts +22 -0
  62. package/dist-types/commands/InviteMembersCommand.d.ts +11 -0
  63. package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +9 -0
  64. package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +11 -0
  65. package/dist-types/commands/ListInvitationsCommand.d.ts +14 -0
  66. package/dist-types/commands/ListMembersCommand.d.ts +17 -0
  67. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +12 -0
  68. package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +16 -0
  69. package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +21 -0
  70. package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -0
  71. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  72. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  73. package/dist-types/commands/UpdateActionTargetCommand.d.ts +4 -0
  74. package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +11 -0
  75. package/dist-types/commands/UpdateFindingsCommand.d.ts +4 -0
  76. package/dist-types/commands/UpdateInsightCommand.d.ts +4 -0
  77. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +4 -0
  78. package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +4 -0
  79. package/dist-types/commands/UpdateStandardsControlCommand.d.ts +4 -0
  80. package/dist-types/commands/index.d.ts +1 -0
  81. package/dist-types/models/models_1.d.ts +16 -16
  82. package/dist-types/models/models_2.d.ts +196 -1
  83. package/dist-types/pagination/GetFindingHistoryPaginator.d.ts +7 -0
  84. package/dist-types/pagination/index.d.ts +1 -0
  85. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  86. package/dist-types/ts3.4/SecurityHub.d.ts +17 -0
  87. package/dist-types/ts3.4/SecurityHubClient.d.ts +6 -0
  88. package/dist-types/ts3.4/commands/GetFindingHistoryCommand.d.ts +38 -0
  89. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  90. package/dist-types/ts3.4/models/models_2.d.ts +35 -0
  91. package/dist-types/ts3.4/pagination/GetFindingHistoryPaginator.d.ts +11 -0
  92. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  93. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  94. package/package.json +7 -7
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ GetFindingHistoryRequest,
11
+ GetFindingHistoryResponse,
12
+ } from "../models/models_2";
13
+ import {
14
+ SecurityHubClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../SecurityHubClient";
18
+ export interface GetFindingHistoryCommandInput
19
+ extends GetFindingHistoryRequest {}
20
+ export interface GetFindingHistoryCommandOutput
21
+ extends GetFindingHistoryResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetFindingHistoryCommand extends $Command<
24
+ GetFindingHistoryCommandInput,
25
+ GetFindingHistoryCommandOutput,
26
+ SecurityHubClientResolvedConfig
27
+ > {
28
+ readonly input: GetFindingHistoryCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetFindingHistoryCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: SecurityHubClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetFindingHistoryCommandInput, GetFindingHistoryCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -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.325.0",
4
+ "version": "3.327.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.325.0",
24
+ "@aws-sdk/client-sts": "3.327.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.325.0",
26
+ "@aws-sdk/credential-provider-node": "3.327.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,11 +32,11 @@
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.325.0",
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.325.0",
39
+ "@aws-sdk/middleware-user-agent": "3.327.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.321.1",
42
42
  "@aws-sdk/protocol-http": "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.319.0",
52
- "@aws-sdk/util-retry": "3.310.0",
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",