@aws-sdk/client-securityhub 3.830.0 → 3.835.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 +208 -0
- package/dist-cjs/index.js +1956 -51
- package/dist-es/SecurityHub.js +52 -0
- package/dist-es/commands/BatchUpdateFindingsV2Command.js +22 -0
- package/dist-es/commands/ConnectorRegistrationsV2Command.js +22 -0
- package/dist-es/commands/CreateAggregatorV2Command.js +22 -0
- package/dist-es/commands/CreateAutomationRuleV2Command.js +22 -0
- package/dist-es/commands/CreateConnectorV2Command.js +23 -0
- package/dist-es/commands/CreateTicketV2Command.js +22 -0
- package/dist-es/commands/DeleteAggregatorV2Command.js +22 -0
- package/dist-es/commands/DeleteAutomationRuleV2Command.js +22 -0
- package/dist-es/commands/DeleteConnectorV2Command.js +22 -0
- package/dist-es/commands/DescribeProductsV2Command.js +22 -0
- package/dist-es/commands/DescribeSecurityHubV2Command.js +22 -0
- package/dist-es/commands/DisableSecurityHubV2Command.js +22 -0
- package/dist-es/commands/EnableSecurityHubV2Command.js +22 -0
- package/dist-es/commands/GetAggregatorV2Command.js +22 -0
- package/dist-es/commands/GetAutomationRuleV2Command.js +22 -0
- package/dist-es/commands/GetConnectorV2Command.js +22 -0
- package/dist-es/commands/GetFindingStatisticsV2Command.js +22 -0
- package/dist-es/commands/GetFindingsV2Command.js +22 -0
- package/dist-es/commands/GetResourcesStatisticsV2Command.js +22 -0
- package/dist-es/commands/GetResourcesV2Command.js +22 -0
- package/dist-es/commands/ListAggregatorsV2Command.js +22 -0
- package/dist-es/commands/ListAutomationRulesV2Command.js +22 -0
- package/dist-es/commands/ListConnectorsV2Command.js +22 -0
- package/dist-es/commands/UpdateAggregatorV2Command.js +22 -0
- package/dist-es/commands/UpdateAutomationRuleV2Command.js +22 -0
- package/dist-es/commands/UpdateConnectorV2Command.js +23 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/models/models_2.js +193 -19
- package/dist-es/models/models_3.js +101 -0
- package/dist-es/pagination/DescribeProductsV2Paginator.js +4 -0
- package/dist-es/pagination/GetFindingsV2Paginator.js +4 -0
- package/dist-es/pagination/GetResourcesV2Paginator.js +4 -0
- package/dist-es/pagination/ListAggregatorsV2Paginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1071 -32
- package/dist-types/SecurityHub.d.ts +192 -0
- package/dist-types/SecurityHubClient.d.ts +28 -2
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +5 -5
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +5 -5
- package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +16 -12
- package/dist-types/commands/BatchUpdateFindingsV2Command.d.ts +129 -0
- package/dist-types/commands/ConnectorRegistrationsV2Command.d.ts +96 -0
- package/dist-types/commands/CreateAggregatorV2Command.d.ts +106 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +5 -5
- package/dist-types/commands/CreateAutomationRuleV2Command.d.ts +174 -0
- package/dist-types/commands/CreateConnectorV2Command.d.ts +112 -0
- package/dist-types/commands/CreateInsightCommand.d.ts +5 -5
- package/dist-types/commands/CreateTicketV2Command.d.ts +97 -0
- package/dist-types/commands/DeleteAggregatorV2Command.d.ts +92 -0
- package/dist-types/commands/DeleteAutomationRuleV2Command.d.ts +92 -0
- package/dist-types/commands/DeleteConnectorV2Command.d.ts +92 -0
- package/dist-types/commands/DescribeProductsV2Command.d.ts +107 -0
- package/dist-types/commands/DescribeSecurityHubV2Command.d.ts +87 -0
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +1 -0
- package/dist-types/commands/DisableSecurityHubV2Command.d.ts +84 -0
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +6 -2
- package/dist-types/commands/EnableSecurityHubV2Command.d.ts +90 -0
- package/dist-types/commands/GetAggregatorV2Command.d.ts +99 -0
- package/dist-types/commands/GetAutomationRuleV2Command.d.ts +176 -0
- package/dist-types/commands/GetConnectorV2Command.d.ts +119 -0
- package/dist-types/commands/GetFindingHistoryCommand.d.ts +8 -2
- package/dist-types/commands/GetFindingStatisticsV2Command.d.ts +169 -0
- package/dist-types/commands/GetFindingsCommand.d.ts +7 -6
- package/dist-types/commands/GetFindingsV2Command.d.ts +163 -0
- package/dist-types/commands/GetInsightResultsCommand.d.ts +1 -1
- package/dist-types/commands/GetInsightsCommand.d.ts +6 -6
- package/dist-types/commands/GetInvitationsCountCommand.d.ts +1 -1
- package/dist-types/commands/GetMasterAccountCommand.d.ts +1 -1
- package/dist-types/commands/GetMembersCommand.d.ts +1 -1
- package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +162 -0
- package/dist-types/commands/GetResourcesV2Command.d.ts +190 -0
- package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +1 -1
- package/dist-types/commands/InviteMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListAggregatorsV2Command.d.ts +100 -0
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +1 -1
- package/dist-types/commands/ListAutomationRulesV2Command.d.ts +109 -0
- package/dist-types/commands/ListConfigurationPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListConnectorsV2Command.d.ts +110 -0
- package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +1 -1
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +3 -1
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +1 -1
- package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
- package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateActionTargetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAggregatorV2Command.d.ts +103 -0
- package/dist-types/commands/UpdateAutomationRuleV2Command.d.ts +171 -0
- package/dist-types/commands/UpdateConfigurationPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConnectorV2Command.d.ts +99 -0
- package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFindingsCommand.d.ts +6 -6
- package/dist-types/commands/UpdateInsightCommand.d.ts +6 -6
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSecurityControlCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateStandardsControlCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +166 -320
- package/dist-types/models/models_1.d.ts +319 -343
- package/dist-types/models/models_2.d.ts +2465 -2269
- package/dist-types/models/models_3.d.ts +2386 -0
- package/dist-types/pagination/DescribeProductsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/GetFindingsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/GetResourcesV2Paginator.d.ts +7 -0
- package/dist-types/pagination/ListAggregatorsV2Paginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +234 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +452 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +156 -0
- package/dist-types/ts3.4/commands/BatchUpdateFindingsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/ConnectorRegistrationsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAggregatorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomationRuleV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateConnectorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateTicketV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteAggregatorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAutomationRuleV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteConnectorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeProductsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeSecurityHubV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisableSecurityHubV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EnableSecurityHubV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAggregatorV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetAutomationRuleV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConnectorV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetFindingStatisticsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetFindingsV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetInsightResultsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInsightsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInvitationsCountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMasterAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetResourcesStatisticsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourcesV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InviteMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAggregatorsV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAutomationRulesV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListConfigurationPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListConfigurationPolicyAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListConnectorsV2Command.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListEnabledProductsForImportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFindingAggregatorsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityControlDefinitionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListStandardsControlAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateActionTargetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAggregatorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateAutomationRuleV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateConnectorV2Command.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateFindingAggregatorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFindingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateInsightCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSecurityControlCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSecurityHubConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateStandardsControlCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +50 -57
- package/dist-types/ts3.4/models/models_1.d.ts +57 -66
- package/dist-types/ts3.4/models/models_2.d.ts +522 -310
- package/dist-types/ts3.4/models/models_3.d.ts +626 -0
- package/dist-types/ts3.4/pagination/DescribeProductsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetFindingsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetResourcesV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAggregatorsV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +312 -0
- package/package.json +14 -12
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetConnectorV2Request, GetConnectorV2Response } from "../models/models_2";
|
|
4
|
+
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetConnectorV2Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetConnectorV2CommandInput extends GetConnectorV2Request {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetConnectorV2Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetConnectorV2CommandOutput extends GetConnectorV2Response, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetConnectorV2Command_base: {
|
|
25
|
+
new (input: GetConnectorV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetConnectorV2CommandInput, GetConnectorV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetConnectorV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetConnectorV2CommandInput, GetConnectorV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Grants permission to retrieve details for a connectorV2 based on connector id. This API is in preview release and subject to change.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SecurityHubClient, GetConnectorV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
35
|
+
* // const { SecurityHubClient, GetConnectorV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
36
|
+
* const client = new SecurityHubClient(config);
|
|
37
|
+
* const input = { // GetConnectorV2Request
|
|
38
|
+
* ConnectorId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetConnectorV2Command(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetConnectorV2Response
|
|
43
|
+
* // ConnectorArn: "STRING_VALUE",
|
|
44
|
+
* // ConnectorId: "STRING_VALUE", // required
|
|
45
|
+
* // Name: "STRING_VALUE", // required
|
|
46
|
+
* // Description: "STRING_VALUE",
|
|
47
|
+
* // KmsKeyArn: "STRING_VALUE",
|
|
48
|
+
* // CreatedAt: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // LastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
50
|
+
* // Health: { // HealthCheck
|
|
51
|
+
* // ConnectorStatus: "CONNECTED" || "FAILED_TO_CONNECT" || "PENDING_CONFIGURATION" || "PENDING_AUTHORIZATION", // required
|
|
52
|
+
* // Message: "STRING_VALUE",
|
|
53
|
+
* // LastCheckedAt: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // },
|
|
55
|
+
* // ProviderDetail: { // ProviderDetail Union: only one key present
|
|
56
|
+
* // JiraCloud: { // JiraCloudDetail
|
|
57
|
+
* // CloudId: "STRING_VALUE",
|
|
58
|
+
* // ProjectKey: "STRING_VALUE",
|
|
59
|
+
* // Domain: "STRING_VALUE",
|
|
60
|
+
* // AuthUrl: "STRING_VALUE",
|
|
61
|
+
* // AuthStatus: "ACTIVE" || "FAILED",
|
|
62
|
+
* // },
|
|
63
|
+
* // ServiceNow: { // ServiceNowDetail
|
|
64
|
+
* // InstanceName: "STRING_VALUE",
|
|
65
|
+
* // ClientId: "STRING_VALUE",
|
|
66
|
+
* // AuthStatus: "ACTIVE" || "FAILED", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // },
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param GetConnectorV2CommandInput - {@link GetConnectorV2CommandInput}
|
|
74
|
+
* @returns {@link GetConnectorV2CommandOutput}
|
|
75
|
+
* @see {@link GetConnectorV2CommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link GetConnectorV2CommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
80
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ConflictException} (client fault)
|
|
83
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link InternalServerException} (server fault)
|
|
86
|
+
* <p>
|
|
87
|
+
* The request has failed due to an internal failure of the service.
|
|
88
|
+
* </p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
91
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
94
|
+
* <p>
|
|
95
|
+
* The limit on the number of requests per second was exceeded.
|
|
96
|
+
* </p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ValidationException} (client fault)
|
|
99
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link SecurityHubServiceException}
|
|
102
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
103
|
+
*
|
|
104
|
+
*
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
export declare class GetConnectorV2Command extends GetConnectorV2Command_base {
|
|
108
|
+
/** @internal type navigation helper, not in runtime. */
|
|
109
|
+
protected static __types: {
|
|
110
|
+
api: {
|
|
111
|
+
input: GetConnectorV2Request;
|
|
112
|
+
output: GetConnectorV2Response;
|
|
113
|
+
};
|
|
114
|
+
sdk: {
|
|
115
|
+
input: GetConnectorV2CommandInput;
|
|
116
|
+
output: GetConnectorV2CommandOutput;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -28,9 +28,15 @@ declare const GetFindingHistoryCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>
|
|
31
|
-
* Returns history
|
|
32
|
-
* the Amazon Web Services Security Finding Format (ASFF)
|
|
31
|
+
* Returns the history of a Security Hub finding for the past 90 days. The history includes changes made to any fields in
|
|
32
|
+
* the Amazon Web Services Security Finding Format (ASFF) except top-level timestamp fields, such as the <code>CreatedAt</code> and
|
|
33
|
+
* <code>UpdatedAt</code> fields.
|
|
33
34
|
* </p>
|
|
35
|
+
* <p>This operation might return fewer results than the maximum number of results (<code>MaxResults</code>) specified in a request, even
|
|
36
|
+
* when more results are available. If this occurs, the response includes a <code>NextToken</code> value, which you should use to retrieve
|
|
37
|
+
* the next set of results in the response. The presence of a <code>NextToken</code> value in a response doesn't necessarily indicate
|
|
38
|
+
* that the results are incomplete. However, you should continue to specify a <code>NextToken</code> value until you receive a
|
|
39
|
+
* response that doesn't include this value.</p>
|
|
34
40
|
* @example
|
|
35
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
42
|
* ```javascript
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetFindingStatisticsV2Request, GetFindingStatisticsV2Response } from "../models/models_3";
|
|
4
|
+
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetFindingStatisticsV2Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetFindingStatisticsV2CommandInput extends GetFindingStatisticsV2Request {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetFindingStatisticsV2Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetFindingStatisticsV2CommandOutput extends GetFindingStatisticsV2Response, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetFindingStatisticsV2Command_base: {
|
|
25
|
+
new (input: GetFindingStatisticsV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingStatisticsV2CommandInput, GetFindingStatisticsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetFindingStatisticsV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingStatisticsV2CommandInput, GetFindingStatisticsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns aggregated statistical data about findings.
|
|
31
|
+
* <code>GetFindingStatisticsV2</code> use <code>securityhub:GetAdhocInsightResults</code> in the <code>Action</code> element of an IAM policy statement.
|
|
32
|
+
* You must have permission to perform the <code>s</code> action. This API is in private preview and subject to change.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityHubClient, GetFindingStatisticsV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
37
|
+
* // const { SecurityHubClient, GetFindingStatisticsV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
38
|
+
* const client = new SecurityHubClient(config);
|
|
39
|
+
* const input = { // GetFindingStatisticsV2Request
|
|
40
|
+
* GroupByRules: [ // GroupByRules // required
|
|
41
|
+
* { // GroupByRule
|
|
42
|
+
* Filters: { // OcsfFindingFilters
|
|
43
|
+
* CompositeFilters: [ // CompositeFilterList
|
|
44
|
+
* { // CompositeFilter
|
|
45
|
+
* StringFilters: [ // OcsfStringFilterList
|
|
46
|
+
* { // OcsfStringFilter
|
|
47
|
+
* FieldName: "metadata.uid" || "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name",
|
|
48
|
+
* Filter: { // StringFilter
|
|
49
|
+
* Value: "STRING_VALUE",
|
|
50
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
51
|
+
* },
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* DateFilters: [ // OcsfDateFilterList
|
|
55
|
+
* { // OcsfDateFilter
|
|
56
|
+
* FieldName: "finding_info.created_time_dt" || "finding_info.first_seen_time_dt" || "finding_info.last_seen_time_dt" || "finding_info.modified_time_dt",
|
|
57
|
+
* Filter: { // DateFilter
|
|
58
|
+
* Start: "STRING_VALUE",
|
|
59
|
+
* End: "STRING_VALUE",
|
|
60
|
+
* DateRange: { // DateRange
|
|
61
|
+
* Value: Number("int"),
|
|
62
|
+
* Unit: "DAYS",
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* ],
|
|
67
|
+
* BooleanFilters: [ // OcsfBooleanFilterList
|
|
68
|
+
* { // OcsfBooleanFilter
|
|
69
|
+
* FieldName: "compliance.assessments.meets_criteria" || "vulnerabilities.is_exploit_available" || "vulnerabilities.is_fix_available",
|
|
70
|
+
* Filter: { // BooleanFilter
|
|
71
|
+
* Value: true || false,
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* NumberFilters: [ // OcsfNumberFilterList
|
|
76
|
+
* { // OcsfNumberFilter
|
|
77
|
+
* FieldName: "activity_id" || "compliance.status_id" || "confidence_score" || "severity_id" || "status_id" || "finding_info.related_events_count",
|
|
78
|
+
* Filter: { // NumberFilter
|
|
79
|
+
* Gte: Number("double"),
|
|
80
|
+
* Lte: Number("double"),
|
|
81
|
+
* Eq: Number("double"),
|
|
82
|
+
* Gt: Number("double"),
|
|
83
|
+
* Lt: Number("double"),
|
|
84
|
+
* },
|
|
85
|
+
* },
|
|
86
|
+
* ],
|
|
87
|
+
* MapFilters: [ // OcsfMapFilterList
|
|
88
|
+
* { // OcsfMapFilter
|
|
89
|
+
* FieldName: "resources.tags",
|
|
90
|
+
* Filter: { // MapFilter
|
|
91
|
+
* Key: "STRING_VALUE",
|
|
92
|
+
* Value: "STRING_VALUE",
|
|
93
|
+
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
94
|
+
* },
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* Operator: "AND" || "OR",
|
|
98
|
+
* },
|
|
99
|
+
* ],
|
|
100
|
+
* CompositeOperator: "AND" || "OR",
|
|
101
|
+
* },
|
|
102
|
+
* GroupByField: "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.name" || "compliance.status" || "compliance.control" || "finding_info.title" || "finding_info.types" || "metadata.product.name" || "metadata.product.uid" || "resources.type" || "resources.uid" || "severity" || "status" || "vulnerabilities.fix_coverage" || "class_name", // required
|
|
103
|
+
* },
|
|
104
|
+
* ],
|
|
105
|
+
* SortOrder: "asc" || "desc",
|
|
106
|
+
* MaxStatisticResults: Number("int"),
|
|
107
|
+
* };
|
|
108
|
+
* const command = new GetFindingStatisticsV2Command(input);
|
|
109
|
+
* const response = await client.send(command);
|
|
110
|
+
* // { // GetFindingStatisticsV2Response
|
|
111
|
+
* // GroupByResults: [ // GroupByResults
|
|
112
|
+
* // { // GroupByResult
|
|
113
|
+
* // GroupByField: "STRING_VALUE",
|
|
114
|
+
* // GroupByValues: [ // GroupByValues
|
|
115
|
+
* // { // GroupByValue
|
|
116
|
+
* // FieldValue: "STRING_VALUE",
|
|
117
|
+
* // Count: Number("int"),
|
|
118
|
+
* // },
|
|
119
|
+
* // ],
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
122
|
+
* // };
|
|
123
|
+
*
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* @param GetFindingStatisticsV2CommandInput - {@link GetFindingStatisticsV2CommandInput}
|
|
127
|
+
* @returns {@link GetFindingStatisticsV2CommandOutput}
|
|
128
|
+
* @see {@link GetFindingStatisticsV2CommandInput} for command's `input` shape.
|
|
129
|
+
* @see {@link GetFindingStatisticsV2CommandOutput} for command's `response` shape.
|
|
130
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
133
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link ConflictException} (client fault)
|
|
136
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link InternalServerException} (server fault)
|
|
139
|
+
* <p>
|
|
140
|
+
* The request has failed due to an internal failure of the service.
|
|
141
|
+
* </p>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
144
|
+
* <p>
|
|
145
|
+
* The limit on the number of requests per second was exceeded.
|
|
146
|
+
* </p>
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link ValidationException} (client fault)
|
|
149
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link SecurityHubServiceException}
|
|
152
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
153
|
+
*
|
|
154
|
+
*
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
export declare class GetFindingStatisticsV2Command extends GetFindingStatisticsV2Command_base {
|
|
158
|
+
/** @internal type navigation helper, not in runtime. */
|
|
159
|
+
protected static __types: {
|
|
160
|
+
api: {
|
|
161
|
+
input: GetFindingStatisticsV2Request;
|
|
162
|
+
output: GetFindingStatisticsV2Response;
|
|
163
|
+
};
|
|
164
|
+
sdk: {
|
|
165
|
+
input: GetFindingStatisticsV2CommandInput;
|
|
166
|
+
output: GetFindingStatisticsV2CommandOutput;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { GetFindingsRequest
|
|
3
|
+
import { GetFindingsRequest } from "../models/models_2";
|
|
4
|
+
import { GetFindingsResponse } from "../models/models_3";
|
|
4
5
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
@@ -40,31 +41,31 @@ declare const GetFindingsCommand_base: {
|
|
|
40
41
|
* ProductArn: [ // StringFilterList
|
|
41
42
|
* { // StringFilter
|
|
42
43
|
* Value: "STRING_VALUE",
|
|
43
|
-
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
44
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
44
45
|
* },
|
|
45
46
|
* ],
|
|
46
47
|
* AwsAccountId: [
|
|
47
48
|
* {
|
|
48
49
|
* Value: "STRING_VALUE",
|
|
49
|
-
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
50
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
50
51
|
* },
|
|
51
52
|
* ],
|
|
52
53
|
* Id: [
|
|
53
54
|
* {
|
|
54
55
|
* Value: "STRING_VALUE",
|
|
55
|
-
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
56
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
56
57
|
* },
|
|
57
58
|
* ],
|
|
58
59
|
* GeneratorId: [
|
|
59
60
|
* {
|
|
60
61
|
* Value: "STRING_VALUE",
|
|
61
|
-
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
62
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
62
63
|
* },
|
|
63
64
|
* ],
|
|
64
65
|
* Region: [
|
|
65
66
|
* {
|
|
66
67
|
* Value: "STRING_VALUE",
|
|
67
|
-
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
68
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
68
69
|
* },
|
|
69
70
|
* ],
|
|
70
71
|
* Type: "<StringFilterList>",
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetFindingsV2Request, GetFindingsV2Response } from "../models/models_3";
|
|
4
|
+
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetFindingsV2Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetFindingsV2CommandInput extends GetFindingsV2Request {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetFindingsV2Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetFindingsV2CommandOutput extends GetFindingsV2Response, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetFindingsV2Command_base: {
|
|
25
|
+
new (input: GetFindingsV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetFindingsV2CommandInput, GetFindingsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetFindingsV2CommandInput]): import("@smithy/smithy-client").CommandImpl<GetFindingsV2CommandInput, GetFindingsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Return a list of findings that match the specified criteria.
|
|
31
|
+
* <code>GetFindings</code> and <code>GetFindingsV2</code> both use <code>securityhub:GetFindings</code> in the <code>Action</code> element of an IAM policy statement.
|
|
32
|
+
* You must have permission to perform the <code>securityhub:GetFindings</code> action. This API is in private preview and subject to change.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SecurityHubClient, GetFindingsV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
37
|
+
* // const { SecurityHubClient, GetFindingsV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
38
|
+
* const client = new SecurityHubClient(config);
|
|
39
|
+
* const input = { // GetFindingsV2Request
|
|
40
|
+
* Filters: { // OcsfFindingFilters
|
|
41
|
+
* CompositeFilters: [ // CompositeFilterList
|
|
42
|
+
* { // CompositeFilter
|
|
43
|
+
* StringFilters: [ // OcsfStringFilterList
|
|
44
|
+
* { // OcsfStringFilter
|
|
45
|
+
* FieldName: "metadata.uid" || "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name",
|
|
46
|
+
* Filter: { // StringFilter
|
|
47
|
+
* Value: "STRING_VALUE",
|
|
48
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* DateFilters: [ // OcsfDateFilterList
|
|
53
|
+
* { // OcsfDateFilter
|
|
54
|
+
* FieldName: "finding_info.created_time_dt" || "finding_info.first_seen_time_dt" || "finding_info.last_seen_time_dt" || "finding_info.modified_time_dt",
|
|
55
|
+
* Filter: { // DateFilter
|
|
56
|
+
* Start: "STRING_VALUE",
|
|
57
|
+
* End: "STRING_VALUE",
|
|
58
|
+
* DateRange: { // DateRange
|
|
59
|
+
* Value: Number("int"),
|
|
60
|
+
* Unit: "DAYS",
|
|
61
|
+
* },
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* ],
|
|
65
|
+
* BooleanFilters: [ // OcsfBooleanFilterList
|
|
66
|
+
* { // OcsfBooleanFilter
|
|
67
|
+
* FieldName: "compliance.assessments.meets_criteria" || "vulnerabilities.is_exploit_available" || "vulnerabilities.is_fix_available",
|
|
68
|
+
* Filter: { // BooleanFilter
|
|
69
|
+
* Value: true || false,
|
|
70
|
+
* },
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* NumberFilters: [ // OcsfNumberFilterList
|
|
74
|
+
* { // OcsfNumberFilter
|
|
75
|
+
* FieldName: "activity_id" || "compliance.status_id" || "confidence_score" || "severity_id" || "status_id" || "finding_info.related_events_count",
|
|
76
|
+
* Filter: { // NumberFilter
|
|
77
|
+
* Gte: Number("double"),
|
|
78
|
+
* Lte: Number("double"),
|
|
79
|
+
* Eq: Number("double"),
|
|
80
|
+
* Gt: Number("double"),
|
|
81
|
+
* Lt: Number("double"),
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
84
|
+
* ],
|
|
85
|
+
* MapFilters: [ // OcsfMapFilterList
|
|
86
|
+
* { // OcsfMapFilter
|
|
87
|
+
* FieldName: "resources.tags",
|
|
88
|
+
* Filter: { // MapFilter
|
|
89
|
+
* Key: "STRING_VALUE",
|
|
90
|
+
* Value: "STRING_VALUE",
|
|
91
|
+
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* Operator: "AND" || "OR",
|
|
96
|
+
* },
|
|
97
|
+
* ],
|
|
98
|
+
* CompositeOperator: "AND" || "OR",
|
|
99
|
+
* },
|
|
100
|
+
* SortCriteria: [ // SortCriteria
|
|
101
|
+
* { // SortCriterion
|
|
102
|
+
* Field: "STRING_VALUE",
|
|
103
|
+
* SortOrder: "asc" || "desc",
|
|
104
|
+
* },
|
|
105
|
+
* ],
|
|
106
|
+
* NextToken: "STRING_VALUE",
|
|
107
|
+
* MaxResults: Number("int"),
|
|
108
|
+
* };
|
|
109
|
+
* const command = new GetFindingsV2Command(input);
|
|
110
|
+
* const response = await client.send(command);
|
|
111
|
+
* // { // GetFindingsV2Response
|
|
112
|
+
* // Findings: [ // OcsfFindingsList
|
|
113
|
+
* // "DOCUMENT_VALUE",
|
|
114
|
+
* // ],
|
|
115
|
+
* // NextToken: "STRING_VALUE",
|
|
116
|
+
* // };
|
|
117
|
+
*
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @param GetFindingsV2CommandInput - {@link GetFindingsV2CommandInput}
|
|
121
|
+
* @returns {@link GetFindingsV2CommandOutput}
|
|
122
|
+
* @see {@link GetFindingsV2CommandInput} for command's `input` shape.
|
|
123
|
+
* @see {@link GetFindingsV2CommandOutput} for command's `response` shape.
|
|
124
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
127
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link ConflictException} (client fault)
|
|
130
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link InternalServerException} (server fault)
|
|
133
|
+
* <p>
|
|
134
|
+
* The request has failed due to an internal failure of the service.
|
|
135
|
+
* </p>
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
138
|
+
* <p>
|
|
139
|
+
* The limit on the number of requests per second was exceeded.
|
|
140
|
+
* </p>
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link ValidationException} (client fault)
|
|
143
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link SecurityHubServiceException}
|
|
146
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
147
|
+
*
|
|
148
|
+
*
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
export declare class GetFindingsV2Command extends GetFindingsV2Command_base {
|
|
152
|
+
/** @internal type navigation helper, not in runtime. */
|
|
153
|
+
protected static __types: {
|
|
154
|
+
api: {
|
|
155
|
+
input: GetFindingsV2Request;
|
|
156
|
+
output: GetFindingsV2Response;
|
|
157
|
+
};
|
|
158
|
+
sdk: {
|
|
159
|
+
input: GetFindingsV2CommandInput;
|
|
160
|
+
output: GetFindingsV2CommandOutput;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { GetInsightResultsRequest, GetInsightResultsResponse } from "../models/
|
|
3
|
+
import { GetInsightResultsRequest, GetInsightResultsResponse } from "../models/models_3";
|
|
4
4
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { GetInsightsRequest, GetInsightsResponse } from "../models/
|
|
3
|
+
import { GetInsightsRequest, GetInsightsResponse } from "../models/models_3";
|
|
4
4
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -52,31 +52,31 @@ declare const GetInsightsCommand_base: {
|
|
|
52
52
|
* // ProductArn: [ // StringFilterList
|
|
53
53
|
* // { // StringFilter
|
|
54
54
|
* // Value: "STRING_VALUE",
|
|
55
|
-
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
55
|
+
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
56
56
|
* // },
|
|
57
57
|
* // ],
|
|
58
58
|
* // AwsAccountId: [
|
|
59
59
|
* // {
|
|
60
60
|
* // Value: "STRING_VALUE",
|
|
61
|
-
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
61
|
+
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
62
62
|
* // },
|
|
63
63
|
* // ],
|
|
64
64
|
* // Id: [
|
|
65
65
|
* // {
|
|
66
66
|
* // Value: "STRING_VALUE",
|
|
67
|
-
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
67
|
+
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
68
68
|
* // },
|
|
69
69
|
* // ],
|
|
70
70
|
* // GeneratorId: [
|
|
71
71
|
* // {
|
|
72
72
|
* // Value: "STRING_VALUE",
|
|
73
|
-
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
73
|
+
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
74
74
|
* // },
|
|
75
75
|
* // ],
|
|
76
76
|
* // Region: [
|
|
77
77
|
* // {
|
|
78
78
|
* // Value: "STRING_VALUE",
|
|
79
|
-
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
79
|
+
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
80
80
|
* // },
|
|
81
81
|
* // ],
|
|
82
82
|
* // Type: "<StringFilterList>",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { GetInvitationsCountRequest, GetInvitationsCountResponse } from "../models/
|
|
3
|
+
import { GetInvitationsCountRequest, GetInvitationsCountResponse } from "../models/models_3";
|
|
4
4
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { GetMasterAccountRequest, GetMasterAccountResponse } from "../models/
|
|
3
|
+
import { GetMasterAccountRequest, GetMasterAccountResponse } from "../models/models_3";
|
|
4
4
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { GetMembersRequest, GetMembersResponse } from "../models/
|
|
3
|
+
import { GetMembersRequest, GetMembersResponse } from "../models/models_3";
|
|
4
4
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|