@aws-sdk/client-securityhub 3.828.0 → 3.831.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 +7 -7
- 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/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- 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 +7 -7
- 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/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +5 -3
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetResourcesStatisticsV2Request, GetResourcesStatisticsV2Response } 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 GetResourcesStatisticsV2Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcesStatisticsV2CommandInput extends GetResourcesStatisticsV2Request {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcesStatisticsV2Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcesStatisticsV2CommandOutput extends GetResourcesStatisticsV2Response, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcesStatisticsV2Command_base: {
|
|
25
|
+
new (input: GetResourcesStatisticsV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcesStatisticsV2CommandInput, GetResourcesStatisticsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetResourcesStatisticsV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcesStatisticsV2CommandInput, GetResourcesStatisticsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves statistical information about Amazon Web Services resources and their associated security findings. This API is in private preview 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, GetResourcesStatisticsV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
35
|
+
* // const { SecurityHubClient, GetResourcesStatisticsV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
36
|
+
* const client = new SecurityHubClient(config);
|
|
37
|
+
* const input = { // GetResourcesStatisticsV2Request
|
|
38
|
+
* GroupByRules: [ // ResourceGroupByRules // required
|
|
39
|
+
* { // ResourceGroupByRule
|
|
40
|
+
* GroupByField: "account_id" || "region" || "resource_category" || "resource_type" || "resource_name" || "findings_summary.finding_type", // required
|
|
41
|
+
* Filters: { // ResourcesFilters
|
|
42
|
+
* CompositeFilters: [ // ResourcesCompositeFilterList
|
|
43
|
+
* { // ResourcesCompositeFilter
|
|
44
|
+
* StringFilters: [ // ResourcesStringFilterList
|
|
45
|
+
* { // ResourcesStringFilter
|
|
46
|
+
* FieldName: "resource_arn" || "resource_id" || "account_id" || "region" || "resource_category" || "resource_type" || "resource_name" || "findings_summary.finding_type" || "findings_summary.product_name",
|
|
47
|
+
* Filter: { // StringFilter
|
|
48
|
+
* Value: "STRING_VALUE",
|
|
49
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* DateFilters: [ // ResourcesDateFilterList
|
|
54
|
+
* { // ResourcesDateFilter
|
|
55
|
+
* FieldName: "resource_detail_capture_time_dt" || "resource_creation_time_dt",
|
|
56
|
+
* Filter: { // DateFilter
|
|
57
|
+
* Start: "STRING_VALUE",
|
|
58
|
+
* End: "STRING_VALUE",
|
|
59
|
+
* DateRange: { // DateRange
|
|
60
|
+
* Value: Number("int"),
|
|
61
|
+
* Unit: "DAYS",
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* ],
|
|
66
|
+
* NumberFilters: [ // ResourcesNumberFilterList
|
|
67
|
+
* { // ResourcesNumberFilter
|
|
68
|
+
* FieldName: "findings_summary.total_findings" || "findings_summary.severities.other" || "findings_summary.severities.fatal" || "findings_summary.severities.critical" || "findings_summary.severities.high" || "findings_summary.severities.medium" || "findings_summary.severities.low" || "findings_summary.severities.informational" || "findings_summary.severities.unknown",
|
|
69
|
+
* Filter: { // NumberFilter
|
|
70
|
+
* Gte: Number("double"),
|
|
71
|
+
* Lte: Number("double"),
|
|
72
|
+
* Eq: Number("double"),
|
|
73
|
+
* Gt: Number("double"),
|
|
74
|
+
* Lt: Number("double"),
|
|
75
|
+
* },
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* MapFilters: [ // ResourcesMapFilterList
|
|
79
|
+
* { // ResourcesMapFilter
|
|
80
|
+
* FieldName: "tags",
|
|
81
|
+
* Filter: { // MapFilter
|
|
82
|
+
* Key: "STRING_VALUE",
|
|
83
|
+
* Value: "STRING_VALUE",
|
|
84
|
+
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
85
|
+
* },
|
|
86
|
+
* },
|
|
87
|
+
* ],
|
|
88
|
+
* Operator: "AND" || "OR",
|
|
89
|
+
* },
|
|
90
|
+
* ],
|
|
91
|
+
* CompositeOperator: "AND" || "OR",
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* SortOrder: "asc" || "desc",
|
|
96
|
+
* MaxStatisticResults: Number("int"),
|
|
97
|
+
* };
|
|
98
|
+
* const command = new GetResourcesStatisticsV2Command(input);
|
|
99
|
+
* const response = await client.send(command);
|
|
100
|
+
* // { // GetResourcesStatisticsV2Response
|
|
101
|
+
* // GroupByResults: [ // GroupByResults // required
|
|
102
|
+
* // { // GroupByResult
|
|
103
|
+
* // GroupByField: "STRING_VALUE",
|
|
104
|
+
* // GroupByValues: [ // GroupByValues
|
|
105
|
+
* // { // GroupByValue
|
|
106
|
+
* // FieldValue: "STRING_VALUE",
|
|
107
|
+
* // Count: Number("int"),
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
110
|
+
* // },
|
|
111
|
+
* // ],
|
|
112
|
+
* // };
|
|
113
|
+
*
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @param GetResourcesStatisticsV2CommandInput - {@link GetResourcesStatisticsV2CommandInput}
|
|
117
|
+
* @returns {@link GetResourcesStatisticsV2CommandOutput}
|
|
118
|
+
* @see {@link GetResourcesStatisticsV2CommandInput} for command's `input` shape.
|
|
119
|
+
* @see {@link GetResourcesStatisticsV2CommandOutput} for command's `response` shape.
|
|
120
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
123
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ConflictException} (client fault)
|
|
126
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link InternalServerException} (server fault)
|
|
129
|
+
* <p>
|
|
130
|
+
* The request has failed due to an internal failure of the service.
|
|
131
|
+
* </p>
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
134
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
137
|
+
* <p>
|
|
138
|
+
* The limit on the number of requests per second was exceeded.
|
|
139
|
+
* </p>
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link ValidationException} (client fault)
|
|
142
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link SecurityHubServiceException}
|
|
145
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
146
|
+
*
|
|
147
|
+
*
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
export declare class GetResourcesStatisticsV2Command extends GetResourcesStatisticsV2Command_base {
|
|
151
|
+
/** @internal type navigation helper, not in runtime. */
|
|
152
|
+
protected static __types: {
|
|
153
|
+
api: {
|
|
154
|
+
input: GetResourcesStatisticsV2Request;
|
|
155
|
+
output: GetResourcesStatisticsV2Response;
|
|
156
|
+
};
|
|
157
|
+
sdk: {
|
|
158
|
+
input: GetResourcesStatisticsV2CommandInput;
|
|
159
|
+
output: GetResourcesStatisticsV2CommandOutput;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { GetResourcesV2Request, GetResourcesV2Response } 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 GetResourcesV2Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcesV2CommandInput extends GetResourcesV2Request {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcesV2Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcesV2CommandOutput extends GetResourcesV2Response, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcesV2Command_base: {
|
|
25
|
+
new (input: GetResourcesV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcesV2CommandInput, GetResourcesV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetResourcesV2CommandInput]): import("@smithy/smithy-client").CommandImpl<GetResourcesV2CommandInput, GetResourcesV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of resources. This API is in private preview 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, GetResourcesV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
35
|
+
* // const { SecurityHubClient, GetResourcesV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
36
|
+
* const client = new SecurityHubClient(config);
|
|
37
|
+
* const input = { // GetResourcesV2Request
|
|
38
|
+
* Filters: { // ResourcesFilters
|
|
39
|
+
* CompositeFilters: [ // ResourcesCompositeFilterList
|
|
40
|
+
* { // ResourcesCompositeFilter
|
|
41
|
+
* StringFilters: [ // ResourcesStringFilterList
|
|
42
|
+
* { // ResourcesStringFilter
|
|
43
|
+
* FieldName: "resource_arn" || "resource_id" || "account_id" || "region" || "resource_category" || "resource_type" || "resource_name" || "findings_summary.finding_type" || "findings_summary.product_name",
|
|
44
|
+
* Filter: { // StringFilter
|
|
45
|
+
* Value: "STRING_VALUE",
|
|
46
|
+
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* DateFilters: [ // ResourcesDateFilterList
|
|
51
|
+
* { // ResourcesDateFilter
|
|
52
|
+
* FieldName: "resource_detail_capture_time_dt" || "resource_creation_time_dt",
|
|
53
|
+
* Filter: { // DateFilter
|
|
54
|
+
* Start: "STRING_VALUE",
|
|
55
|
+
* End: "STRING_VALUE",
|
|
56
|
+
* DateRange: { // DateRange
|
|
57
|
+
* Value: Number("int"),
|
|
58
|
+
* Unit: "DAYS",
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* NumberFilters: [ // ResourcesNumberFilterList
|
|
64
|
+
* { // ResourcesNumberFilter
|
|
65
|
+
* FieldName: "findings_summary.total_findings" || "findings_summary.severities.other" || "findings_summary.severities.fatal" || "findings_summary.severities.critical" || "findings_summary.severities.high" || "findings_summary.severities.medium" || "findings_summary.severities.low" || "findings_summary.severities.informational" || "findings_summary.severities.unknown",
|
|
66
|
+
* Filter: { // NumberFilter
|
|
67
|
+
* Gte: Number("double"),
|
|
68
|
+
* Lte: Number("double"),
|
|
69
|
+
* Eq: Number("double"),
|
|
70
|
+
* Gt: Number("double"),
|
|
71
|
+
* Lt: Number("double"),
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* MapFilters: [ // ResourcesMapFilterList
|
|
76
|
+
* { // ResourcesMapFilter
|
|
77
|
+
* FieldName: "tags",
|
|
78
|
+
* Filter: { // MapFilter
|
|
79
|
+
* Key: "STRING_VALUE",
|
|
80
|
+
* Value: "STRING_VALUE",
|
|
81
|
+
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
84
|
+
* ],
|
|
85
|
+
* Operator: "AND" || "OR",
|
|
86
|
+
* },
|
|
87
|
+
* ],
|
|
88
|
+
* CompositeOperator: "AND" || "OR",
|
|
89
|
+
* },
|
|
90
|
+
* SortCriteria: [ // SortCriteria
|
|
91
|
+
* { // SortCriterion
|
|
92
|
+
* Field: "STRING_VALUE",
|
|
93
|
+
* SortOrder: "asc" || "desc",
|
|
94
|
+
* },
|
|
95
|
+
* ],
|
|
96
|
+
* NextToken: "STRING_VALUE",
|
|
97
|
+
* MaxResults: Number("int"),
|
|
98
|
+
* };
|
|
99
|
+
* const command = new GetResourcesV2Command(input);
|
|
100
|
+
* const response = await client.send(command);
|
|
101
|
+
* // { // GetResourcesV2Response
|
|
102
|
+
* // Resources: [ // Resources // required
|
|
103
|
+
* // { // ResourceResult
|
|
104
|
+
* // ResourceArn: "STRING_VALUE",
|
|
105
|
+
* // ResourceId: "STRING_VALUE", // required
|
|
106
|
+
* // AccountId: "STRING_VALUE", // required
|
|
107
|
+
* // Region: "STRING_VALUE", // required
|
|
108
|
+
* // ResourceCategory: "Compute" || "Database" || "Storage" || "Code" || "AI/ML" || "Identity" || "Network" || "Other",
|
|
109
|
+
* // ResourceType: "STRING_VALUE",
|
|
110
|
+
* // ResourceName: "STRING_VALUE",
|
|
111
|
+
* // ResourceCreationTimeDt: "STRING_VALUE",
|
|
112
|
+
* // ResourceDetailCaptureTimeDt: "STRING_VALUE", // required
|
|
113
|
+
* // FindingsSummary: [ // ResourceFindingsSummaryList
|
|
114
|
+
* // { // ResourceFindingsSummary
|
|
115
|
+
* // FindingType: "STRING_VALUE", // required
|
|
116
|
+
* // ProductName: "STRING_VALUE", // required
|
|
117
|
+
* // TotalFindings: Number("int"), // required
|
|
118
|
+
* // Severities: { // ResourceSeverityBreakdown
|
|
119
|
+
* // Other: Number("int"),
|
|
120
|
+
* // Fatal: Number("int"),
|
|
121
|
+
* // Critical: Number("int"),
|
|
122
|
+
* // High: Number("int"),
|
|
123
|
+
* // Medium: Number("int"),
|
|
124
|
+
* // Low: Number("int"),
|
|
125
|
+
* // Informational: Number("int"),
|
|
126
|
+
* // Unknown: Number("int"),
|
|
127
|
+
* // },
|
|
128
|
+
* // },
|
|
129
|
+
* // ],
|
|
130
|
+
* // ResourceTags: [ // ResourceTagList
|
|
131
|
+
* // { // ResourceTag
|
|
132
|
+
* // Key: "STRING_VALUE", // required
|
|
133
|
+
* // Value: "STRING_VALUE", // required
|
|
134
|
+
* // },
|
|
135
|
+
* // ],
|
|
136
|
+
* // ResourceConfig: "DOCUMENT_VALUE", // required
|
|
137
|
+
* // },
|
|
138
|
+
* // ],
|
|
139
|
+
* // NextToken: "STRING_VALUE",
|
|
140
|
+
* // };
|
|
141
|
+
*
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* @param GetResourcesV2CommandInput - {@link GetResourcesV2CommandInput}
|
|
145
|
+
* @returns {@link GetResourcesV2CommandOutput}
|
|
146
|
+
* @see {@link GetResourcesV2CommandInput} for command's `input` shape.
|
|
147
|
+
* @see {@link GetResourcesV2CommandOutput} for command's `response` shape.
|
|
148
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
151
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link ConflictException} (client fault)
|
|
154
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link InternalServerException} (server fault)
|
|
157
|
+
* <p>
|
|
158
|
+
* The request has failed due to an internal failure of the service.
|
|
159
|
+
* </p>
|
|
160
|
+
*
|
|
161
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
162
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
163
|
+
*
|
|
164
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
165
|
+
* <p>
|
|
166
|
+
* The limit on the number of requests per second was exceeded.
|
|
167
|
+
* </p>
|
|
168
|
+
*
|
|
169
|
+
* @throws {@link ValidationException} (client fault)
|
|
170
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
171
|
+
*
|
|
172
|
+
* @throws {@link SecurityHubServiceException}
|
|
173
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
174
|
+
*
|
|
175
|
+
*
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
export declare class GetResourcesV2Command extends GetResourcesV2Command_base {
|
|
179
|
+
/** @internal type navigation helper, not in runtime. */
|
|
180
|
+
protected static __types: {
|
|
181
|
+
api: {
|
|
182
|
+
input: GetResourcesV2Request;
|
|
183
|
+
output: GetResourcesV2Response;
|
|
184
|
+
};
|
|
185
|
+
sdk: {
|
|
186
|
+
input: GetResourcesV2CommandInput;
|
|
187
|
+
output: GetResourcesV2CommandOutput;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
}
|
|
@@ -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 { GetSecurityControlDefinitionRequest, GetSecurityControlDefinitionResponse } from "../models/
|
|
3
|
+
import { GetSecurityControlDefinitionRequest, GetSecurityControlDefinitionResponse } 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 { InviteMembersRequest, InviteMembersResponse } from "../models/
|
|
3
|
+
import { InviteMembersRequest, InviteMembersResponse } from "../models/models_3";
|
|
4
4
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListAggregatorsV2Request, ListAggregatorsV2Response } 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 ListAggregatorsV2Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAggregatorsV2CommandInput extends ListAggregatorsV2Request {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAggregatorsV2Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAggregatorsV2CommandOutput extends ListAggregatorsV2Response, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAggregatorsV2Command_base: {
|
|
25
|
+
new (input: ListAggregatorsV2CommandInput): import("@smithy/smithy-client").CommandImpl<ListAggregatorsV2CommandInput, ListAggregatorsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListAggregatorsV2CommandInput]): import("@smithy/smithy-client").CommandImpl<ListAggregatorsV2CommandInput, ListAggregatorsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves a list of V2 aggregators. This API is in private preview 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, ListAggregatorsV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
35
|
+
* // const { SecurityHubClient, ListAggregatorsV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
36
|
+
* const client = new SecurityHubClient(config);
|
|
37
|
+
* const input = { // ListAggregatorsV2Request
|
|
38
|
+
* NextToken: "STRING_VALUE",
|
|
39
|
+
* MaxResults: Number("int"),
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListAggregatorsV2Command(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListAggregatorsV2Response
|
|
44
|
+
* // AggregatorsV2: [ // AggregatorV2List
|
|
45
|
+
* // { // AggregatorV2
|
|
46
|
+
* // AggregatorV2Arn: "STRING_VALUE",
|
|
47
|
+
* // },
|
|
48
|
+
* // ],
|
|
49
|
+
* // NextToken: "STRING_VALUE",
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param ListAggregatorsV2CommandInput - {@link ListAggregatorsV2CommandInput}
|
|
55
|
+
* @returns {@link ListAggregatorsV2CommandOutput}
|
|
56
|
+
* @see {@link ListAggregatorsV2CommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link ListAggregatorsV2CommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ConflictException} (client fault)
|
|
64
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerException} (server fault)
|
|
67
|
+
* <p>
|
|
68
|
+
* The request has failed due to an internal failure of the service.
|
|
69
|
+
* </p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>
|
|
76
|
+
* The limit on the number of requests per second was exceeded.
|
|
77
|
+
* </p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link SecurityHubServiceException}
|
|
83
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
84
|
+
*
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export declare class ListAggregatorsV2Command extends ListAggregatorsV2Command_base {
|
|
89
|
+
/** @internal type navigation helper, not in runtime. */
|
|
90
|
+
protected static __types: {
|
|
91
|
+
api: {
|
|
92
|
+
input: ListAggregatorsV2Request;
|
|
93
|
+
output: ListAggregatorsV2Response;
|
|
94
|
+
};
|
|
95
|
+
sdk: {
|
|
96
|
+
input: ListAggregatorsV2CommandInput;
|
|
97
|
+
output: ListAggregatorsV2CommandOutput;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -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 { ListAutomationRulesRequest, ListAutomationRulesResponse } from "../models/
|
|
3
|
+
import { ListAutomationRulesRequest, ListAutomationRulesResponse } from "../models/models_3";
|
|
4
4
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListAutomationRulesV2Request, ListAutomationRulesV2Response } 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 ListAutomationRulesV2Command}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAutomationRulesV2CommandInput extends ListAutomationRulesV2Request {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAutomationRulesV2Command}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAutomationRulesV2CommandOutput extends ListAutomationRulesV2Response, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAutomationRulesV2Command_base: {
|
|
25
|
+
new (input: ListAutomationRulesV2CommandInput): import("@smithy/smithy-client").CommandImpl<ListAutomationRulesV2CommandInput, ListAutomationRulesV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListAutomationRulesV2CommandInput]): import("@smithy/smithy-client").CommandImpl<ListAutomationRulesV2CommandInput, ListAutomationRulesV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of automation rules and metadata for the calling account. This API is in private preview 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, ListAutomationRulesV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
35
|
+
* // const { SecurityHubClient, ListAutomationRulesV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
36
|
+
* const client = new SecurityHubClient(config);
|
|
37
|
+
* const input = { // ListAutomationRulesV2Request
|
|
38
|
+
* NextToken: "STRING_VALUE",
|
|
39
|
+
* MaxResults: Number("int"),
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListAutomationRulesV2Command(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListAutomationRulesV2Response
|
|
44
|
+
* // Rules: [ // AutomationRulesMetadataListV2
|
|
45
|
+
* // { // AutomationRulesMetadataV2
|
|
46
|
+
* // RuleArn: "STRING_VALUE",
|
|
47
|
+
* // RuleId: "STRING_VALUE",
|
|
48
|
+
* // RuleOrder: Number("float"),
|
|
49
|
+
* // RuleName: "STRING_VALUE",
|
|
50
|
+
* // RuleStatus: "ENABLED" || "DISABLED",
|
|
51
|
+
* // Description: "STRING_VALUE",
|
|
52
|
+
* // Actions: [ // AutomationRulesActionTypeListV2
|
|
53
|
+
* // { // AutomationRulesActionTypeObjectV2
|
|
54
|
+
* // Type: "FINDING_FIELDS_UPDATE" || "EXTERNAL_INTEGRATION",
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
58
|
+
* // UpdatedAt: new Date("TIMESTAMP"),
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // NextToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListAutomationRulesV2CommandInput - {@link ListAutomationRulesV2CommandInput}
|
|
67
|
+
* @returns {@link ListAutomationRulesV2CommandOutput}
|
|
68
|
+
* @see {@link ListAutomationRulesV2CommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListAutomationRulesV2CommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ConflictException} (client fault)
|
|
76
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerException} (server fault)
|
|
79
|
+
* <p>
|
|
80
|
+
* The request has failed due to an internal failure of the service.
|
|
81
|
+
* </p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
84
|
+
* <p>
|
|
85
|
+
* The limit on the number of requests per second was exceeded.
|
|
86
|
+
* </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link SecurityHubServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
93
|
+
*
|
|
94
|
+
*
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare class ListAutomationRulesV2Command extends ListAutomationRulesV2Command_base {
|
|
98
|
+
/** @internal type navigation helper, not in runtime. */
|
|
99
|
+
protected static __types: {
|
|
100
|
+
api: {
|
|
101
|
+
input: ListAutomationRulesV2Request;
|
|
102
|
+
output: ListAutomationRulesV2Response;
|
|
103
|
+
};
|
|
104
|
+
sdk: {
|
|
105
|
+
input: ListAutomationRulesV2CommandInput;
|
|
106
|
+
output: ListAutomationRulesV2CommandOutput;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -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 { ListConfigurationPoliciesRequest, ListConfigurationPoliciesResponse } from "../models/
|
|
3
|
+
import { ListConfigurationPoliciesRequest, ListConfigurationPoliciesResponse } 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 { ListConfigurationPolicyAssociationsRequest, ListConfigurationPolicyAssociationsResponse } from "../models/
|
|
3
|
+
import { ListConfigurationPolicyAssociationsRequest, ListConfigurationPolicyAssociationsResponse } from "../models/models_3";
|
|
4
4
|
import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|