@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.
- 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/AcceptAdministratorInvitationCommand.d.ts +4 -0
- package/dist-types/commands/AcceptInvitationCommand.d.ts +4 -0
- package/dist-types/commands/BatchDisableStandardsCommand.d.ts +18 -0
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +18 -0
- package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +23 -0
- package/dist-types/commands/BatchGetStandardsControlAssociationsCommand.d.ts +33 -0
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +14 -0
- package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +21 -0
- package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +17 -0
- package/dist-types/commands/CreateActionTargetCommand.d.ts +6 -0
- package/dist-types/commands/CreateFindingAggregatorCommand.d.ts +11 -0
- package/dist-types/commands/CreateInsightCommand.d.ts +6 -0
- package/dist-types/commands/CreateMembersCommand.d.ts +11 -0
- package/dist-types/commands/DeclineInvitationsCommand.d.ts +11 -0
- package/dist-types/commands/DeleteActionTargetCommand.d.ts +6 -0
- package/dist-types/commands/DeleteFindingAggregatorCommand.d.ts +4 -0
- package/dist-types/commands/DeleteInsightCommand.d.ts +6 -0
- package/dist-types/commands/DeleteInvitationsCommand.d.ts +11 -0
- package/dist-types/commands/DeleteMembersCommand.d.ts +11 -0
- package/dist-types/commands/DescribeActionTargetsCommand.d.ts +13 -0
- package/dist-types/commands/DescribeHubCommand.d.ts +9 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +8 -0
- package/dist-types/commands/DescribeProductsCommand.d.ts +23 -0
- package/dist-types/commands/DescribeStandardsCommand.d.ts +18 -0
- package/dist-types/commands/DescribeStandardsControlsCommand.d.ts +22 -0
- package/dist-types/commands/DisableImportFindingsForProductCommand.d.ts +4 -0
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +4 -0
- package/dist-types/commands/DisableSecurityHubCommand.d.ts +4 -0
- package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +4 -0
- package/dist-types/commands/DisassociateFromMasterAccountCommand.d.ts +4 -0
- package/dist-types/commands/DisassociateMembersCommand.d.ts +4 -0
- package/dist-types/commands/EnableImportFindingsForProductCommand.d.ts +6 -0
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +4 -0
- package/dist-types/commands/EnableSecurityHubCommand.d.ts +4 -0
- package/dist-types/commands/GetAdministratorAccountCommand.d.ts +11 -0
- package/dist-types/commands/GetEnabledStandardsCommand.d.ts +19 -0
- package/dist-types/commands/GetFindingAggregatorCommand.d.ts +11 -0
- package/dist-types/commands/GetFindingHistoryCommand.d.ts +157 -0
- package/dist-types/commands/GetFindingsCommand.d.ts +3760 -0
- package/dist-types/commands/GetInsightResultsCommand.d.ts +15 -0
- package/dist-types/commands/GetInsightsCommand.d.ts +264 -0
- package/dist-types/commands/GetInvitationsCountCommand.d.ts +6 -0
- package/dist-types/commands/GetMasterAccountCommand.d.ts +11 -0
- package/dist-types/commands/GetMembersCommand.d.ts +22 -0
- package/dist-types/commands/InviteMembersCommand.d.ts +11 -0
- package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +9 -0
- package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +11 -0
- package/dist-types/commands/ListInvitationsCommand.d.ts +14 -0
- package/dist-types/commands/ListMembersCommand.d.ts +17 -0
- package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +12 -0
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +16 -0
- package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +21 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateActionTargetCommand.d.ts +4 -0
- package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +11 -0
- package/dist-types/commands/UpdateFindingsCommand.d.ts +4 -0
- package/dist-types/commands/UpdateInsightCommand.d.ts +4 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/UpdateStandardsControlCommand.d.ts +4 -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 +7 -7
|
@@ -32,6 +32,8 @@ export interface DisableOrganizationAdminAccountCommandOutput extends DisableOrg
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new DisableOrganizationAdminAccountCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // {};
|
|
36
|
+
*
|
|
35
37
|
* ```
|
|
36
38
|
*
|
|
37
39
|
* @param DisableOrganizationAdminAccountCommandInput - {@link DisableOrganizationAdminAccountCommandInput}
|
|
@@ -54,6 +56,8 @@ export interface DisableOrganizationAdminAccountCommandOutput extends DisableOrg
|
|
|
54
56
|
* <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
|
|
55
57
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
56
58
|
*
|
|
59
|
+
* @throws {@link SecurityHubServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
57
61
|
*
|
|
58
62
|
* @example To remove a Security Hub administrator account
|
|
59
63
|
* ```javascript
|
|
@@ -37,6 +37,8 @@ export interface DisableSecurityHubCommandOutput extends DisableSecurityHubRespo
|
|
|
37
37
|
* const input = {};
|
|
38
38
|
* const command = new DisableSecurityHubCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // {};
|
|
41
|
+
*
|
|
40
42
|
* ```
|
|
41
43
|
*
|
|
42
44
|
* @param DisableSecurityHubCommandInput - {@link DisableSecurityHubCommandInput}
|
|
@@ -58,6 +60,8 @@ export interface DisableSecurityHubCommandOutput extends DisableSecurityHubRespo
|
|
|
58
60
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
61
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
60
62
|
*
|
|
63
|
+
* @throws {@link SecurityHubServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
61
65
|
*
|
|
62
66
|
* @example To deactivate Security Hub
|
|
63
67
|
* ```javascript
|
|
@@ -33,6 +33,8 @@ export interface DisassociateFromAdministratorAccountCommandOutput extends Disas
|
|
|
33
33
|
* const input = {};
|
|
34
34
|
* const command = new DisassociateFromAdministratorAccountCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // {};
|
|
37
|
+
*
|
|
36
38
|
* ```
|
|
37
39
|
*
|
|
38
40
|
* @param DisassociateFromAdministratorAccountCommandInput - {@link DisassociateFromAdministratorAccountCommandInput}
|
|
@@ -58,6 +60,8 @@ export interface DisassociateFromAdministratorAccountCommandOutput extends Disas
|
|
|
58
60
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
61
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
60
62
|
*
|
|
63
|
+
* @throws {@link SecurityHubServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
61
65
|
*
|
|
62
66
|
* @example To disassociate requesting account from administrator account
|
|
63
67
|
* ```javascript
|
|
@@ -37,6 +37,8 @@ export interface DisassociateFromMasterAccountCommandOutput extends Disassociate
|
|
|
37
37
|
* const input = {};
|
|
38
38
|
* const command = new DisassociateFromMasterAccountCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // {};
|
|
41
|
+
*
|
|
40
42
|
* ```
|
|
41
43
|
*
|
|
42
44
|
* @param DisassociateFromMasterAccountCommandInput - {@link DisassociateFromMasterAccountCommandInput}
|
|
@@ -62,6 +64,8 @@ export interface DisassociateFromMasterAccountCommandOutput extends Disassociate
|
|
|
62
64
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
65
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
64
66
|
*
|
|
67
|
+
* @throws {@link SecurityHubServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
65
69
|
*
|
|
66
70
|
*/
|
|
67
71
|
export declare class DisassociateFromMasterAccountCommand extends $Command<DisassociateFromMasterAccountCommandInput, DisassociateFromMasterAccountCommandOutput, SecurityHubClientResolvedConfig> {
|
|
@@ -35,6 +35,8 @@ export interface DisassociateMembersCommandOutput extends DisassociateMembersRes
|
|
|
35
35
|
* };
|
|
36
36
|
* const command = new DisassociateMembersCommand(input);
|
|
37
37
|
* const response = await client.send(command);
|
|
38
|
+
* // {};
|
|
39
|
+
*
|
|
38
40
|
* ```
|
|
39
41
|
*
|
|
40
42
|
* @param DisassociateMembersCommandInput - {@link DisassociateMembersCommandInput}
|
|
@@ -60,6 +62,8 @@ export interface DisassociateMembersCommandOutput extends DisassociateMembersRes
|
|
|
60
62
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
63
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
62
64
|
*
|
|
65
|
+
* @throws {@link SecurityHubServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
63
67
|
*
|
|
64
68
|
* @example To disassociate member accounts from administrator account
|
|
65
69
|
* ```javascript
|
|
@@ -34,6 +34,10 @@ export interface EnableImportFindingsForProductCommandOutput extends EnableImpor
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new EnableImportFindingsForProductCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // EnableImportFindingsForProductResponse
|
|
38
|
+
* // ProductSubscriptionArn: "STRING_VALUE",
|
|
39
|
+
* // };
|
|
40
|
+
*
|
|
37
41
|
* ```
|
|
38
42
|
*
|
|
39
43
|
* @param EnableImportFindingsForProductCommandInput - {@link EnableImportFindingsForProductCommandInput}
|
|
@@ -59,6 +63,8 @@ export interface EnableImportFindingsForProductCommandOutput extends EnableImpor
|
|
|
59
63
|
* @throws {@link ResourceConflictException} (client fault)
|
|
60
64
|
* <p>The resource specified in the request conflicts with an existing resource.</p>
|
|
61
65
|
*
|
|
66
|
+
* @throws {@link SecurityHubServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
62
68
|
*
|
|
63
69
|
* @example To activate an integration
|
|
64
70
|
* ```javascript
|
|
@@ -32,6 +32,8 @@ export interface EnableOrganizationAdminAccountCommandOutput extends EnableOrgan
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new EnableOrganizationAdminAccountCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // {};
|
|
36
|
+
*
|
|
35
37
|
* ```
|
|
36
38
|
*
|
|
37
39
|
* @param EnableOrganizationAdminAccountCommandInput - {@link EnableOrganizationAdminAccountCommandInput}
|
|
@@ -54,6 +56,8 @@ export interface EnableOrganizationAdminAccountCommandOutput extends EnableOrgan
|
|
|
54
56
|
* <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
|
|
55
57
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
56
58
|
*
|
|
59
|
+
* @throws {@link SecurityHubServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
57
61
|
*
|
|
58
62
|
* @example To designate a Security Hub administrator
|
|
59
63
|
* ```javascript
|
|
@@ -54,6 +54,8 @@ export interface EnableSecurityHubCommandOutput extends EnableSecurityHubRespons
|
|
|
54
54
|
* };
|
|
55
55
|
* const command = new EnableSecurityHubCommand(input);
|
|
56
56
|
* const response = await client.send(command);
|
|
57
|
+
* // {};
|
|
58
|
+
*
|
|
57
59
|
* ```
|
|
58
60
|
*
|
|
59
61
|
* @param EnableSecurityHubCommandInput - {@link EnableSecurityHubCommandInput}
|
|
@@ -78,6 +80,8 @@ export interface EnableSecurityHubCommandOutput extends EnableSecurityHubRespons
|
|
|
78
80
|
* @throws {@link ResourceConflictException} (client fault)
|
|
79
81
|
* <p>The resource specified in the request conflicts with an existing resource.</p>
|
|
80
82
|
*
|
|
83
|
+
* @throws {@link SecurityHubServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
81
85
|
*
|
|
82
86
|
* @example To activate Security Hub
|
|
83
87
|
* ```javascript
|
|
@@ -31,6 +31,15 @@ export interface GetAdministratorAccountCommandOutput extends GetAdministratorAc
|
|
|
31
31
|
* const input = {};
|
|
32
32
|
* const command = new GetAdministratorAccountCommand(input);
|
|
33
33
|
* const response = await client.send(command);
|
|
34
|
+
* // { // GetAdministratorAccountResponse
|
|
35
|
+
* // Administrator: { // Invitation
|
|
36
|
+
* // AccountId: "STRING_VALUE",
|
|
37
|
+
* // InvitationId: "STRING_VALUE",
|
|
38
|
+
* // InvitedAt: new Date("TIMESTAMP"),
|
|
39
|
+
* // MemberStatus: "STRING_VALUE",
|
|
40
|
+
* // },
|
|
41
|
+
* // };
|
|
42
|
+
*
|
|
34
43
|
* ```
|
|
35
44
|
*
|
|
36
45
|
* @param GetAdministratorAccountCommandInput - {@link GetAdministratorAccountCommandInput}
|
|
@@ -56,6 +65,8 @@ export interface GetAdministratorAccountCommandOutput extends GetAdministratorAc
|
|
|
56
65
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
57
66
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
58
67
|
*
|
|
68
|
+
* @throws {@link SecurityHubServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
59
70
|
*
|
|
60
71
|
* @example To get details about the Security Hub administrator account
|
|
61
72
|
* ```javascript
|
|
@@ -35,6 +35,23 @@ export interface GetEnabledStandardsCommandOutput extends GetEnabledStandardsRes
|
|
|
35
35
|
* };
|
|
36
36
|
* const command = new GetEnabledStandardsCommand(input);
|
|
37
37
|
* const response = await client.send(command);
|
|
38
|
+
* // { // GetEnabledStandardsResponse
|
|
39
|
+
* // StandardsSubscriptions: [ // StandardsSubscriptions
|
|
40
|
+
* // { // StandardsSubscription
|
|
41
|
+
* // StandardsSubscriptionArn: "STRING_VALUE", // required
|
|
42
|
+
* // StandardsArn: "STRING_VALUE", // required
|
|
43
|
+
* // StandardsInput: { // StandardsInputParameterMap // required
|
|
44
|
+
* // "<keys>": "STRING_VALUE",
|
|
45
|
+
* // },
|
|
46
|
+
* // StandardsStatus: "PENDING" || "READY" || "FAILED" || "DELETING" || "INCOMPLETE", // required
|
|
47
|
+
* // StandardsStatusReason: { // StandardsStatusReason
|
|
48
|
+
* // StatusReasonCode: "NO_AVAILABLE_CONFIGURATION_RECORDER" || "INTERNAL_ERROR", // required
|
|
49
|
+
* // },
|
|
50
|
+
* // },
|
|
51
|
+
* // ],
|
|
52
|
+
* // NextToken: "STRING_VALUE",
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
38
55
|
* ```
|
|
39
56
|
*
|
|
40
57
|
* @param GetEnabledStandardsCommandInput - {@link GetEnabledStandardsCommandInput}
|
|
@@ -57,6 +74,8 @@ export interface GetEnabledStandardsCommandOutput extends GetEnabledStandardsRes
|
|
|
57
74
|
* <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
|
|
58
75
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
59
76
|
*
|
|
77
|
+
* @throws {@link SecurityHubServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
60
79
|
*
|
|
61
80
|
* @example To return a list of enabled standards
|
|
62
81
|
* ```javascript
|
|
@@ -31,6 +31,15 @@ export interface GetFindingAggregatorCommandOutput extends GetFindingAggregatorR
|
|
|
31
31
|
* };
|
|
32
32
|
* const command = new GetFindingAggregatorCommand(input);
|
|
33
33
|
* const response = await client.send(command);
|
|
34
|
+
* // { // GetFindingAggregatorResponse
|
|
35
|
+
* // FindingAggregatorArn: "STRING_VALUE",
|
|
36
|
+
* // FindingAggregationRegion: "STRING_VALUE",
|
|
37
|
+
* // RegionLinkingMode: "STRING_VALUE",
|
|
38
|
+
* // Regions: [ // StringList
|
|
39
|
+
* // "STRING_VALUE",
|
|
40
|
+
* // ],
|
|
41
|
+
* // };
|
|
42
|
+
*
|
|
34
43
|
* ```
|
|
35
44
|
*
|
|
36
45
|
* @param GetFindingAggregatorCommandInput - {@link GetFindingAggregatorCommandInput}
|
|
@@ -59,6 +68,8 @@ export interface GetFindingAggregatorCommandOutput extends GetFindingAggregatorR
|
|
|
59
68
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
60
69
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
61
70
|
*
|
|
71
|
+
* @throws {@link SecurityHubServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
62
73
|
*
|
|
63
74
|
* @example To get cross-Region aggregation details
|
|
64
75
|
* ```javascript
|
|
@@ -0,0 +1,157 @@
|
|
|
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 { GetFindingHistoryRequest, GetFindingHistoryResponse } from "../models/models_2";
|
|
5
|
+
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link GetFindingHistoryCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface GetFindingHistoryCommandInput extends GetFindingHistoryRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link GetFindingHistoryCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetFindingHistoryCommandOutput extends GetFindingHistoryResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>
|
|
23
|
+
* Returns history for a Security Hub finding in the last 90 days. The history includes changes made to any fields in
|
|
24
|
+
* the Amazon Web Services Security Finding Format (ASFF).
|
|
25
|
+
* </p>
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { SecurityHubClient, GetFindingHistoryCommand } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
30
|
+
* // const { SecurityHubClient, GetFindingHistoryCommand } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
31
|
+
* const client = new SecurityHubClient(config);
|
|
32
|
+
* const input = { // GetFindingHistoryRequest
|
|
33
|
+
* FindingIdentifier: { // AwsSecurityFindingIdentifier
|
|
34
|
+
* Id: "STRING_VALUE", // required
|
|
35
|
+
* ProductArn: "STRING_VALUE", // required
|
|
36
|
+
* },
|
|
37
|
+
* StartTime: new Date("TIMESTAMP"),
|
|
38
|
+
* EndTime: new Date("TIMESTAMP"),
|
|
39
|
+
* NextToken: "STRING_VALUE",
|
|
40
|
+
* MaxResults: Number("int"),
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetFindingHistoryCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetFindingHistoryResponse
|
|
45
|
+
* // Records: [ // FindingHistoryRecordList
|
|
46
|
+
* // { // FindingHistoryRecord
|
|
47
|
+
* // FindingIdentifier: { // AwsSecurityFindingIdentifier
|
|
48
|
+
* // Id: "STRING_VALUE", // required
|
|
49
|
+
* // ProductArn: "STRING_VALUE", // required
|
|
50
|
+
* // },
|
|
51
|
+
* // UpdateTime: new Date("TIMESTAMP"),
|
|
52
|
+
* // FindingCreated: true || false,
|
|
53
|
+
* // UpdateSource: { // FindingHistoryUpdateSource
|
|
54
|
+
* // Type: "BATCH_UPDATE_FINDINGS" || "BATCH_IMPORT_FINDINGS",
|
|
55
|
+
* // Identity: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // Updates: [ // FindingHistoryUpdatesList
|
|
58
|
+
* // { // FindingHistoryUpdate
|
|
59
|
+
* // UpdatedField: "STRING_VALUE",
|
|
60
|
+
* // OldValue: "STRING_VALUE",
|
|
61
|
+
* // NewValue: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // NextToken: "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // NextToken: "STRING_VALUE",
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param GetFindingHistoryCommandInput - {@link GetFindingHistoryCommandInput}
|
|
73
|
+
* @returns {@link GetFindingHistoryCommandOutput}
|
|
74
|
+
* @see {@link GetFindingHistoryCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link GetFindingHistoryCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalException} (server fault)
|
|
79
|
+
* <p>Internal server error.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InvalidAccessException} (client fault)
|
|
82
|
+
* <p>The account doesn't have permission to perform this action.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
85
|
+
* <p>The request was rejected because you supplied an invalid or out-of-range value for an
|
|
86
|
+
* input parameter.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
89
|
+
* <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
|
|
90
|
+
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link SecurityHubServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
94
|
+
*
|
|
95
|
+
* @example To get finding history
|
|
96
|
+
* ```javascript
|
|
97
|
+
* // The following example retrieves the history of the specified finding during the specified time frame. If the time frame permits, Security Hub returns finding history for the last 90 days.
|
|
98
|
+
* const input = {
|
|
99
|
+
* "EndTime": "2021-09-31T15:53:35.573Z",
|
|
100
|
+
* "FindingIdentifier": {
|
|
101
|
+
* "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
102
|
+
* "ProductArn": "arn:aws:securityhub:us-west-2:123456789012:product/123456789012/default"
|
|
103
|
+
* },
|
|
104
|
+
* "MaxResults": 2,
|
|
105
|
+
* "StartTime": "2021-09-30T15:53:35.573Z"
|
|
106
|
+
* };
|
|
107
|
+
* const command = new GetFindingHistoryCommand(input);
|
|
108
|
+
* const response = await client.send(command);
|
|
109
|
+
* /* response ==
|
|
110
|
+
* {
|
|
111
|
+
* "Records": [
|
|
112
|
+
* {
|
|
113
|
+
* "FindingCreated": false,
|
|
114
|
+
* "FindingIdentifier": {
|
|
115
|
+
* "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
116
|
+
* "ProductArn": "arn:aws:securityhub:us-west-2:123456789012:product/123456789012/default"
|
|
117
|
+
* },
|
|
118
|
+
* "UpdateSource": {
|
|
119
|
+
* "Identity": "arn:aws:iam::444455556666:role/Admin",
|
|
120
|
+
* "Type": "BATCH_UPDATE_FINDINGS"
|
|
121
|
+
* },
|
|
122
|
+
* "UpdateTime": "2021-09-31T15:52:25.573Z",
|
|
123
|
+
* "Updates": [
|
|
124
|
+
* {
|
|
125
|
+
* "NewValue": "MEDIUM",
|
|
126
|
+
* "OldValue": "HIGH",
|
|
127
|
+
* "UpdatedField": "Severity"
|
|
128
|
+
* }
|
|
129
|
+
* ]
|
|
130
|
+
* }
|
|
131
|
+
* ]
|
|
132
|
+
* }
|
|
133
|
+
* *\/
|
|
134
|
+
* // example id: to-get-finding-history-1680270012186
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
export declare class GetFindingHistoryCommand extends $Command<GetFindingHistoryCommandInput, GetFindingHistoryCommandOutput, SecurityHubClientResolvedConfig> {
|
|
139
|
+
readonly input: GetFindingHistoryCommandInput;
|
|
140
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
constructor(input: GetFindingHistoryCommandInput);
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetFindingHistoryCommandInput, GetFindingHistoryCommandOutput>;
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
private serialize;
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
156
|
+
private deserialize;
|
|
157
|
+
}
|