@aws-sdk/client-securityhub 3.830.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.
Files changed (194) hide show
  1. package/README.md +208 -0
  2. package/dist-cjs/index.js +1956 -51
  3. package/dist-es/SecurityHub.js +52 -0
  4. package/dist-es/commands/BatchUpdateFindingsV2Command.js +22 -0
  5. package/dist-es/commands/ConnectorRegistrationsV2Command.js +22 -0
  6. package/dist-es/commands/CreateAggregatorV2Command.js +22 -0
  7. package/dist-es/commands/CreateAutomationRuleV2Command.js +22 -0
  8. package/dist-es/commands/CreateConnectorV2Command.js +23 -0
  9. package/dist-es/commands/CreateTicketV2Command.js +22 -0
  10. package/dist-es/commands/DeleteAggregatorV2Command.js +22 -0
  11. package/dist-es/commands/DeleteAutomationRuleV2Command.js +22 -0
  12. package/dist-es/commands/DeleteConnectorV2Command.js +22 -0
  13. package/dist-es/commands/DescribeProductsV2Command.js +22 -0
  14. package/dist-es/commands/DescribeSecurityHubV2Command.js +22 -0
  15. package/dist-es/commands/DisableSecurityHubV2Command.js +22 -0
  16. package/dist-es/commands/EnableSecurityHubV2Command.js +22 -0
  17. package/dist-es/commands/GetAggregatorV2Command.js +22 -0
  18. package/dist-es/commands/GetAutomationRuleV2Command.js +22 -0
  19. package/dist-es/commands/GetConnectorV2Command.js +22 -0
  20. package/dist-es/commands/GetFindingStatisticsV2Command.js +22 -0
  21. package/dist-es/commands/GetFindingsV2Command.js +22 -0
  22. package/dist-es/commands/GetResourcesStatisticsV2Command.js +22 -0
  23. package/dist-es/commands/GetResourcesV2Command.js +22 -0
  24. package/dist-es/commands/ListAggregatorsV2Command.js +22 -0
  25. package/dist-es/commands/ListAutomationRulesV2Command.js +22 -0
  26. package/dist-es/commands/ListConnectorsV2Command.js +22 -0
  27. package/dist-es/commands/UpdateAggregatorV2Command.js +22 -0
  28. package/dist-es/commands/UpdateAutomationRuleV2Command.js +22 -0
  29. package/dist-es/commands/UpdateConnectorV2Command.js +23 -0
  30. package/dist-es/commands/index.js +26 -0
  31. package/dist-es/models/index.js +1 -0
  32. package/dist-es/models/models_0.js +13 -0
  33. package/dist-es/models/models_2.js +193 -19
  34. package/dist-es/models/models_3.js +101 -0
  35. package/dist-es/pagination/DescribeProductsV2Paginator.js +4 -0
  36. package/dist-es/pagination/GetFindingsV2Paginator.js +4 -0
  37. package/dist-es/pagination/GetResourcesV2Paginator.js +4 -0
  38. package/dist-es/pagination/ListAggregatorsV2Paginator.js +4 -0
  39. package/dist-es/pagination/index.js +4 -0
  40. package/dist-es/protocols/Aws_restJson1.js +1071 -32
  41. package/dist-types/SecurityHub.d.ts +192 -0
  42. package/dist-types/SecurityHubClient.d.ts +28 -2
  43. package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +5 -5
  44. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +5 -5
  45. package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +16 -12
  46. package/dist-types/commands/BatchUpdateFindingsV2Command.d.ts +129 -0
  47. package/dist-types/commands/ConnectorRegistrationsV2Command.d.ts +96 -0
  48. package/dist-types/commands/CreateAggregatorV2Command.d.ts +106 -0
  49. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +5 -5
  50. package/dist-types/commands/CreateAutomationRuleV2Command.d.ts +174 -0
  51. package/dist-types/commands/CreateConnectorV2Command.d.ts +112 -0
  52. package/dist-types/commands/CreateInsightCommand.d.ts +5 -5
  53. package/dist-types/commands/CreateTicketV2Command.d.ts +97 -0
  54. package/dist-types/commands/DeleteAggregatorV2Command.d.ts +92 -0
  55. package/dist-types/commands/DeleteAutomationRuleV2Command.d.ts +92 -0
  56. package/dist-types/commands/DeleteConnectorV2Command.d.ts +92 -0
  57. package/dist-types/commands/DescribeProductsV2Command.d.ts +107 -0
  58. package/dist-types/commands/DescribeSecurityHubV2Command.d.ts +87 -0
  59. package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +1 -0
  60. package/dist-types/commands/DisableSecurityHubV2Command.d.ts +84 -0
  61. package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +6 -2
  62. package/dist-types/commands/EnableSecurityHubV2Command.d.ts +90 -0
  63. package/dist-types/commands/GetAggregatorV2Command.d.ts +99 -0
  64. package/dist-types/commands/GetAutomationRuleV2Command.d.ts +176 -0
  65. package/dist-types/commands/GetConnectorV2Command.d.ts +119 -0
  66. package/dist-types/commands/GetFindingHistoryCommand.d.ts +8 -2
  67. package/dist-types/commands/GetFindingStatisticsV2Command.d.ts +169 -0
  68. package/dist-types/commands/GetFindingsCommand.d.ts +7 -6
  69. package/dist-types/commands/GetFindingsV2Command.d.ts +163 -0
  70. package/dist-types/commands/GetInsightResultsCommand.d.ts +1 -1
  71. package/dist-types/commands/GetInsightsCommand.d.ts +6 -6
  72. package/dist-types/commands/GetInvitationsCountCommand.d.ts +1 -1
  73. package/dist-types/commands/GetMasterAccountCommand.d.ts +1 -1
  74. package/dist-types/commands/GetMembersCommand.d.ts +1 -1
  75. package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +162 -0
  76. package/dist-types/commands/GetResourcesV2Command.d.ts +190 -0
  77. package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +1 -1
  78. package/dist-types/commands/InviteMembersCommand.d.ts +1 -1
  79. package/dist-types/commands/ListAggregatorsV2Command.d.ts +100 -0
  80. package/dist-types/commands/ListAutomationRulesCommand.d.ts +1 -1
  81. package/dist-types/commands/ListAutomationRulesV2Command.d.ts +109 -0
  82. package/dist-types/commands/ListConfigurationPoliciesCommand.d.ts +1 -1
  83. package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +1 -1
  84. package/dist-types/commands/ListConnectorsV2Command.d.ts +110 -0
  85. package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +1 -1
  86. package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +1 -1
  87. package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
  88. package/dist-types/commands/ListMembersCommand.d.ts +1 -1
  89. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +3 -1
  90. package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +1 -1
  91. package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +1 -1
  92. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  93. package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
  94. package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
  95. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  96. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  97. package/dist-types/commands/UpdateActionTargetCommand.d.ts +1 -1
  98. package/dist-types/commands/UpdateAggregatorV2Command.d.ts +103 -0
  99. package/dist-types/commands/UpdateAutomationRuleV2Command.d.ts +171 -0
  100. package/dist-types/commands/UpdateConfigurationPolicyCommand.d.ts +1 -1
  101. package/dist-types/commands/UpdateConnectorV2Command.d.ts +99 -0
  102. package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +1 -1
  103. package/dist-types/commands/UpdateFindingsCommand.d.ts +6 -6
  104. package/dist-types/commands/UpdateInsightCommand.d.ts +6 -6
  105. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
  106. package/dist-types/commands/UpdateSecurityControlCommand.d.ts +1 -1
  107. package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +1 -1
  108. package/dist-types/commands/UpdateStandardsControlCommand.d.ts +1 -1
  109. package/dist-types/commands/index.d.ts +26 -0
  110. package/dist-types/models/index.d.ts +1 -0
  111. package/dist-types/models/models_0.d.ts +166 -320
  112. package/dist-types/models/models_1.d.ts +319 -343
  113. package/dist-types/models/models_2.d.ts +2465 -2269
  114. package/dist-types/models/models_3.d.ts +2386 -0
  115. package/dist-types/pagination/DescribeProductsV2Paginator.d.ts +7 -0
  116. package/dist-types/pagination/GetFindingsV2Paginator.d.ts +7 -0
  117. package/dist-types/pagination/GetResourcesV2Paginator.d.ts +7 -0
  118. package/dist-types/pagination/ListAggregatorsV2Paginator.d.ts +7 -0
  119. package/dist-types/pagination/index.d.ts +4 -0
  120. package/dist-types/protocols/Aws_restJson1.d.ts +234 -0
  121. package/dist-types/ts3.4/SecurityHub.d.ts +452 -0
  122. package/dist-types/ts3.4/SecurityHubClient.d.ts +156 -0
  123. package/dist-types/ts3.4/commands/BatchUpdateFindingsV2Command.d.ts +51 -0
  124. package/dist-types/ts3.4/commands/ConnectorRegistrationsV2Command.d.ts +51 -0
  125. package/dist-types/ts3.4/commands/CreateAggregatorV2Command.d.ts +51 -0
  126. package/dist-types/ts3.4/commands/CreateAutomationRuleV2Command.d.ts +51 -0
  127. package/dist-types/ts3.4/commands/CreateConnectorV2Command.d.ts +51 -0
  128. package/dist-types/ts3.4/commands/CreateTicketV2Command.d.ts +50 -0
  129. package/dist-types/ts3.4/commands/DeleteAggregatorV2Command.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/DeleteAutomationRuleV2Command.d.ts +51 -0
  131. package/dist-types/ts3.4/commands/DeleteConnectorV2Command.d.ts +51 -0
  132. package/dist-types/ts3.4/commands/DescribeProductsV2Command.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/DescribeSecurityHubV2Command.d.ts +51 -0
  134. package/dist-types/ts3.4/commands/DisableSecurityHubV2Command.d.ts +51 -0
  135. package/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +1 -1
  136. package/dist-types/ts3.4/commands/EnableSecurityHubV2Command.d.ts +51 -0
  137. package/dist-types/ts3.4/commands/GetAggregatorV2Command.d.ts +50 -0
  138. package/dist-types/ts3.4/commands/GetAutomationRuleV2Command.d.ts +51 -0
  139. package/dist-types/ts3.4/commands/GetConnectorV2Command.d.ts +50 -0
  140. package/dist-types/ts3.4/commands/GetFindingStatisticsV2Command.d.ts +51 -0
  141. package/dist-types/ts3.4/commands/GetFindingsCommand.d.ts +2 -1
  142. package/dist-types/ts3.4/commands/GetFindingsV2Command.d.ts +50 -0
  143. package/dist-types/ts3.4/commands/GetInsightResultsCommand.d.ts +1 -1
  144. package/dist-types/ts3.4/commands/GetInsightsCommand.d.ts +1 -1
  145. package/dist-types/ts3.4/commands/GetInvitationsCountCommand.d.ts +1 -1
  146. package/dist-types/ts3.4/commands/GetMasterAccountCommand.d.ts +1 -1
  147. package/dist-types/ts3.4/commands/GetMembersCommand.d.ts +1 -1
  148. package/dist-types/ts3.4/commands/GetResourcesStatisticsV2Command.d.ts +51 -0
  149. package/dist-types/ts3.4/commands/GetResourcesV2Command.d.ts +50 -0
  150. package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +1 -1
  151. package/dist-types/ts3.4/commands/InviteMembersCommand.d.ts +1 -1
  152. package/dist-types/ts3.4/commands/ListAggregatorsV2Command.d.ts +51 -0
  153. package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +1 -1
  154. package/dist-types/ts3.4/commands/ListAutomationRulesV2Command.d.ts +51 -0
  155. package/dist-types/ts3.4/commands/ListConfigurationPoliciesCommand.d.ts +1 -1
  156. package/dist-types/ts3.4/commands/ListConfigurationPolicyAssociationsCommand.d.ts +1 -1
  157. package/dist-types/ts3.4/commands/ListConnectorsV2Command.d.ts +50 -0
  158. package/dist-types/ts3.4/commands/ListEnabledProductsForImportCommand.d.ts +1 -1
  159. package/dist-types/ts3.4/commands/ListFindingAggregatorsCommand.d.ts +1 -1
  160. package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
  161. package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
  162. package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
  163. package/dist-types/ts3.4/commands/ListSecurityControlDefinitionsCommand.d.ts +1 -1
  164. package/dist-types/ts3.4/commands/ListStandardsControlAssociationsCommand.d.ts +1 -1
  165. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  166. package/dist-types/ts3.4/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
  167. package/dist-types/ts3.4/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
  168. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  169. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  170. package/dist-types/ts3.4/commands/UpdateActionTargetCommand.d.ts +1 -1
  171. package/dist-types/ts3.4/commands/UpdateAggregatorV2Command.d.ts +51 -0
  172. package/dist-types/ts3.4/commands/UpdateAutomationRuleV2Command.d.ts +51 -0
  173. package/dist-types/ts3.4/commands/UpdateConfigurationPolicyCommand.d.ts +1 -1
  174. package/dist-types/ts3.4/commands/UpdateConnectorV2Command.d.ts +51 -0
  175. package/dist-types/ts3.4/commands/UpdateFindingAggregatorCommand.d.ts +1 -1
  176. package/dist-types/ts3.4/commands/UpdateFindingsCommand.d.ts +1 -1
  177. package/dist-types/ts3.4/commands/UpdateInsightCommand.d.ts +1 -1
  178. package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
  179. package/dist-types/ts3.4/commands/UpdateSecurityControlCommand.d.ts +1 -1
  180. package/dist-types/ts3.4/commands/UpdateSecurityHubConfigurationCommand.d.ts +1 -1
  181. package/dist-types/ts3.4/commands/UpdateStandardsControlCommand.d.ts +1 -1
  182. package/dist-types/ts3.4/commands/index.d.ts +26 -0
  183. package/dist-types/ts3.4/models/index.d.ts +1 -0
  184. package/dist-types/ts3.4/models/models_0.d.ts +50 -57
  185. package/dist-types/ts3.4/models/models_1.d.ts +57 -66
  186. package/dist-types/ts3.4/models/models_2.d.ts +522 -310
  187. package/dist-types/ts3.4/models/models_3.d.ts +626 -0
  188. package/dist-types/ts3.4/pagination/DescribeProductsV2Paginator.d.ts +11 -0
  189. package/dist-types/ts3.4/pagination/GetFindingsV2Paginator.d.ts +11 -0
  190. package/dist-types/ts3.4/pagination/GetResourcesV2Paginator.d.ts +11 -0
  191. package/dist-types/ts3.4/pagination/ListAggregatorsV2Paginator.d.ts +11 -0
  192. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  193. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +312 -0
  194. package/package.json +4 -2
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DescribeSecurityHubV2Request, DescribeSecurityHubV2Response } 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 DescribeSecurityHubV2Command}.
14
+ */
15
+ export interface DescribeSecurityHubV2CommandInput extends DescribeSecurityHubV2Request {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeSecurityHubV2Command}.
21
+ */
22
+ export interface DescribeSecurityHubV2CommandOutput extends DescribeSecurityHubV2Response, __MetadataBearer {
23
+ }
24
+ declare const DescribeSecurityHubV2Command_base: {
25
+ new (input: DescribeSecurityHubV2CommandInput): import("@smithy/smithy-client").CommandImpl<DescribeSecurityHubV2CommandInput, DescribeSecurityHubV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [DescribeSecurityHubV2CommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeSecurityHubV2CommandInput, DescribeSecurityHubV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns details about the service resource in your 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, DescribeSecurityHubV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
35
+ * // const { SecurityHubClient, DescribeSecurityHubV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
36
+ * const client = new SecurityHubClient(config);
37
+ * const input = {};
38
+ * const command = new DescribeSecurityHubV2Command(input);
39
+ * const response = await client.send(command);
40
+ * // { // DescribeSecurityHubV2Response
41
+ * // HubV2Arn: "STRING_VALUE",
42
+ * // SubscribedAt: "STRING_VALUE",
43
+ * // };
44
+ *
45
+ * ```
46
+ *
47
+ * @param DescribeSecurityHubV2CommandInput - {@link DescribeSecurityHubV2CommandInput}
48
+ * @returns {@link DescribeSecurityHubV2CommandOutput}
49
+ * @see {@link DescribeSecurityHubV2CommandInput} for command's `input` shape.
50
+ * @see {@link DescribeSecurityHubV2CommandOutput} for command's `response` shape.
51
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
52
+ *
53
+ * @throws {@link InternalServerException} (server fault)
54
+ * <p>
55
+ * The request has failed due to an internal failure of the service.
56
+ * </p>
57
+ *
58
+ * @throws {@link ResourceNotFoundException} (client fault)
59
+ * <p>The request was rejected because we can't find the specified resource.</p>
60
+ *
61
+ * @throws {@link ThrottlingException} (client fault)
62
+ * <p>
63
+ * The limit on the number of requests per second was exceeded.
64
+ * </p>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
68
+ *
69
+ * @throws {@link SecurityHubServiceException}
70
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class DescribeSecurityHubV2Command extends DescribeSecurityHubV2Command_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: {};
80
+ output: DescribeSecurityHubV2Response;
81
+ };
82
+ sdk: {
83
+ input: DescribeSecurityHubV2CommandInput;
84
+ output: DescribeSecurityHubV2CommandOutput;
85
+ };
86
+ };
87
+ }
@@ -37,6 +37,7 @@ declare const DisableOrganizationAdminAccountCommand_base: {
37
37
  * const client = new SecurityHubClient(config);
38
38
  * const input = { // DisableOrganizationAdminAccountRequest
39
39
  * AdminAccountId: "STRING_VALUE", // required
40
+ * Feature: "SecurityHub" || "SecurityHubV2",
40
41
  * };
41
42
  * const command = new DisableOrganizationAdminAccountCommand(input);
42
43
  * const response = await client.send(command);
@@ -0,0 +1,84 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DisableSecurityHubV2Request, DisableSecurityHubV2Response } 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 DisableSecurityHubV2Command}.
14
+ */
15
+ export interface DisableSecurityHubV2CommandInput extends DisableSecurityHubV2Request {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DisableSecurityHubV2Command}.
21
+ */
22
+ export interface DisableSecurityHubV2CommandOutput extends DisableSecurityHubV2Response, __MetadataBearer {
23
+ }
24
+ declare const DisableSecurityHubV2Command_base: {
25
+ new (input: DisableSecurityHubV2CommandInput): import("@smithy/smithy-client").CommandImpl<DisableSecurityHubV2CommandInput, DisableSecurityHubV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [DisableSecurityHubV2CommandInput]): import("@smithy/smithy-client").CommandImpl<DisableSecurityHubV2CommandInput, DisableSecurityHubV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region. 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, DisableSecurityHubV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
35
+ * // const { SecurityHubClient, DisableSecurityHubV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
36
+ * const client = new SecurityHubClient(config);
37
+ * const input = {};
38
+ * const command = new DisableSecurityHubV2Command(input);
39
+ * const response = await client.send(command);
40
+ * // {};
41
+ *
42
+ * ```
43
+ *
44
+ * @param DisableSecurityHubV2CommandInput - {@link DisableSecurityHubV2CommandInput}
45
+ * @returns {@link DisableSecurityHubV2CommandOutput}
46
+ * @see {@link DisableSecurityHubV2CommandInput} for command's `input` shape.
47
+ * @see {@link DisableSecurityHubV2CommandOutput} for command's `response` shape.
48
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
49
+ *
50
+ * @throws {@link AccessDeniedException} (client fault)
51
+ * <p>You don't have permission to perform the action specified in the request.</p>
52
+ *
53
+ * @throws {@link InternalServerException} (server fault)
54
+ * <p>
55
+ * The request has failed due to an internal failure of the service.
56
+ * </p>
57
+ *
58
+ * @throws {@link ThrottlingException} (client fault)
59
+ * <p>
60
+ * The limit on the number of requests per second was exceeded.
61
+ * </p>
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ * <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
65
+ *
66
+ * @throws {@link SecurityHubServiceException}
67
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
68
+ *
69
+ *
70
+ * @public
71
+ */
72
+ export declare class DisableSecurityHubV2Command extends DisableSecurityHubV2Command_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: {};
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: DisableSecurityHubV2CommandInput;
81
+ output: DisableSecurityHubV2CommandOutput;
82
+ };
83
+ };
84
+ }
@@ -37,10 +37,14 @@ declare const EnableOrganizationAdminAccountCommand_base: {
37
37
  * const client = new SecurityHubClient(config);
38
38
  * const input = { // EnableOrganizationAdminAccountRequest
39
39
  * AdminAccountId: "STRING_VALUE", // required
40
+ * Feature: "SecurityHub" || "SecurityHubV2",
40
41
  * };
41
42
  * const command = new EnableOrganizationAdminAccountCommand(input);
42
43
  * const response = await client.send(command);
43
- * // {};
44
+ * // { // EnableOrganizationAdminAccountResponse
45
+ * // AdminAccountId: "STRING_VALUE",
46
+ * // Feature: "SecurityHub" || "SecurityHubV2",
47
+ * // };
44
48
  *
45
49
  * ```
46
50
  *
@@ -91,7 +95,7 @@ export declare class EnableOrganizationAdminAccountCommand extends EnableOrganiz
91
95
  protected static __types: {
92
96
  api: {
93
97
  input: EnableOrganizationAdminAccountRequest;
94
- output: {};
98
+ output: EnableOrganizationAdminAccountResponse;
95
99
  };
96
100
  sdk: {
97
101
  input: EnableOrganizationAdminAccountCommandInput;
@@ -0,0 +1,90 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { EnableSecurityHubV2Request, EnableSecurityHubV2Response } 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 EnableSecurityHubV2Command}.
14
+ */
15
+ export interface EnableSecurityHubV2CommandInput extends EnableSecurityHubV2Request {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link EnableSecurityHubV2Command}.
21
+ */
22
+ export interface EnableSecurityHubV2CommandOutput extends EnableSecurityHubV2Response, __MetadataBearer {
23
+ }
24
+ declare const EnableSecurityHubV2Command_base: {
25
+ new (input: EnableSecurityHubV2CommandInput): import("@smithy/smithy-client").CommandImpl<EnableSecurityHubV2CommandInput, EnableSecurityHubV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [EnableSecurityHubV2CommandInput]): import("@smithy/smithy-client").CommandImpl<EnableSecurityHubV2CommandInput, EnableSecurityHubV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Enables the service in account for the current Amazon Web Services Region or specified Amazon Web Services Region. 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, EnableSecurityHubV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
35
+ * // const { SecurityHubClient, EnableSecurityHubV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
36
+ * const client = new SecurityHubClient(config);
37
+ * const input = { // EnableSecurityHubV2Request
38
+ * Tags: { // TagMap
39
+ * "<keys>": "STRING_VALUE",
40
+ * },
41
+ * };
42
+ * const command = new EnableSecurityHubV2Command(input);
43
+ * const response = await client.send(command);
44
+ * // { // EnableSecurityHubV2Response
45
+ * // HubV2Arn: "STRING_VALUE",
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param EnableSecurityHubV2CommandInput - {@link EnableSecurityHubV2CommandInput}
51
+ * @returns {@link EnableSecurityHubV2CommandOutput}
52
+ * @see {@link EnableSecurityHubV2CommandInput} for command's `input` shape.
53
+ * @see {@link EnableSecurityHubV2CommandOutput} for command's `response` shape.
54
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You don't have permission to perform the action specified in the request.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>
61
+ * The request has failed due to an internal failure of the service.
62
+ * </p>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <p>
66
+ * The limit on the number of requests per second was exceeded.
67
+ * </p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
71
+ *
72
+ * @throws {@link SecurityHubServiceException}
73
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
74
+ *
75
+ *
76
+ * @public
77
+ */
78
+ export declare class EnableSecurityHubV2Command extends EnableSecurityHubV2Command_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: EnableSecurityHubV2Request;
83
+ output: EnableSecurityHubV2Response;
84
+ };
85
+ sdk: {
86
+ input: EnableSecurityHubV2CommandInput;
87
+ output: EnableSecurityHubV2CommandOutput;
88
+ };
89
+ };
90
+ }
@@ -0,0 +1,99 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetAggregatorV2Request, GetAggregatorV2Response } 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 GetAggregatorV2Command}.
14
+ */
15
+ export interface GetAggregatorV2CommandInput extends GetAggregatorV2Request {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAggregatorV2Command}.
21
+ */
22
+ export interface GetAggregatorV2CommandOutput extends GetAggregatorV2Response, __MetadataBearer {
23
+ }
24
+ declare const GetAggregatorV2Command_base: {
25
+ new (input: GetAggregatorV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetAggregatorV2CommandInput, GetAggregatorV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetAggregatorV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetAggregatorV2CommandInput, GetAggregatorV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns the configuration of the specified Aggregator V2. 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, GetAggregatorV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
35
+ * // const { SecurityHubClient, GetAggregatorV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
36
+ * const client = new SecurityHubClient(config);
37
+ * const input = { // GetAggregatorV2Request
38
+ * AggregatorV2Arn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetAggregatorV2Command(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetAggregatorV2Response
43
+ * // AggregatorV2Arn: "STRING_VALUE",
44
+ * // AggregationRegion: "STRING_VALUE",
45
+ * // RegionLinkingMode: "STRING_VALUE",
46
+ * // LinkedRegions: [ // StringList
47
+ * // "STRING_VALUE",
48
+ * // ],
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param GetAggregatorV2CommandInput - {@link GetAggregatorV2CommandInput}
54
+ * @returns {@link GetAggregatorV2CommandOutput}
55
+ * @see {@link GetAggregatorV2CommandInput} for command's `input` shape.
56
+ * @see {@link GetAggregatorV2CommandOutput} for command's `response` shape.
57
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
58
+ *
59
+ * @throws {@link AccessDeniedException} (client fault)
60
+ * <p>You don't have permission to perform the action specified in the request.</p>
61
+ *
62
+ * @throws {@link ConflictException} (client fault)
63
+ * <p>The request causes conflict with the current state of the service resource.</p>
64
+ *
65
+ * @throws {@link InternalServerException} (server fault)
66
+ * <p>
67
+ * The request has failed due to an internal failure of the service.
68
+ * </p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The request was rejected because we can't find the specified resource.</p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>
75
+ * The limit on the number of requests per second was exceeded.
76
+ * </p>
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
80
+ *
81
+ * @throws {@link SecurityHubServiceException}
82
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class GetAggregatorV2Command extends GetAggregatorV2Command_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: GetAggregatorV2Request;
92
+ output: GetAggregatorV2Response;
93
+ };
94
+ sdk: {
95
+ input: GetAggregatorV2CommandInput;
96
+ output: GetAggregatorV2CommandOutput;
97
+ };
98
+ };
99
+ }
@@ -0,0 +1,176 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetAutomationRuleV2Request, GetAutomationRuleV2Response } 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 GetAutomationRuleV2Command}.
14
+ */
15
+ export interface GetAutomationRuleV2CommandInput extends GetAutomationRuleV2Request {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAutomationRuleV2Command}.
21
+ */
22
+ export interface GetAutomationRuleV2CommandOutput extends GetAutomationRuleV2Response, __MetadataBearer {
23
+ }
24
+ declare const GetAutomationRuleV2Command_base: {
25
+ new (input: GetAutomationRuleV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomationRuleV2CommandInput, GetAutomationRuleV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetAutomationRuleV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomationRuleV2CommandInput, GetAutomationRuleV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns an automation rule for the V2 service. 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, GetAutomationRuleV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
35
+ * // const { SecurityHubClient, GetAutomationRuleV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
36
+ * const client = new SecurityHubClient(config);
37
+ * const input = { // GetAutomationRuleV2Request
38
+ * Identifier: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetAutomationRuleV2Command(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetAutomationRuleV2Response
43
+ * // RuleArn: "STRING_VALUE",
44
+ * // RuleId: "STRING_VALUE",
45
+ * // RuleOrder: Number("float"),
46
+ * // RuleName: "STRING_VALUE",
47
+ * // RuleStatus: "ENABLED" || "DISABLED",
48
+ * // Description: "STRING_VALUE",
49
+ * // Criteria: { // Criteria Union: only one key present
50
+ * // OcsfFindingCriteria: { // OcsfFindingFilters
51
+ * // CompositeFilters: [ // CompositeFilterList
52
+ * // { // CompositeFilter
53
+ * // StringFilters: [ // OcsfStringFilterList
54
+ * // { // OcsfStringFilter
55
+ * // 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",
56
+ * // Filter: { // StringFilter
57
+ * // Value: "STRING_VALUE",
58
+ * // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
59
+ * // },
60
+ * // },
61
+ * // ],
62
+ * // DateFilters: [ // OcsfDateFilterList
63
+ * // { // OcsfDateFilter
64
+ * // FieldName: "finding_info.created_time_dt" || "finding_info.first_seen_time_dt" || "finding_info.last_seen_time_dt" || "finding_info.modified_time_dt",
65
+ * // Filter: { // DateFilter
66
+ * // Start: "STRING_VALUE",
67
+ * // End: "STRING_VALUE",
68
+ * // DateRange: { // DateRange
69
+ * // Value: Number("int"),
70
+ * // Unit: "DAYS",
71
+ * // },
72
+ * // },
73
+ * // },
74
+ * // ],
75
+ * // BooleanFilters: [ // OcsfBooleanFilterList
76
+ * // { // OcsfBooleanFilter
77
+ * // FieldName: "compliance.assessments.meets_criteria" || "vulnerabilities.is_exploit_available" || "vulnerabilities.is_fix_available",
78
+ * // Filter: { // BooleanFilter
79
+ * // Value: true || false,
80
+ * // },
81
+ * // },
82
+ * // ],
83
+ * // NumberFilters: [ // OcsfNumberFilterList
84
+ * // { // OcsfNumberFilter
85
+ * // FieldName: "activity_id" || "compliance.status_id" || "confidence_score" || "severity_id" || "status_id" || "finding_info.related_events_count",
86
+ * // Filter: { // NumberFilter
87
+ * // Gte: Number("double"),
88
+ * // Lte: Number("double"),
89
+ * // Eq: Number("double"),
90
+ * // Gt: Number("double"),
91
+ * // Lt: Number("double"),
92
+ * // },
93
+ * // },
94
+ * // ],
95
+ * // MapFilters: [ // OcsfMapFilterList
96
+ * // { // OcsfMapFilter
97
+ * // FieldName: "resources.tags",
98
+ * // Filter: { // MapFilter
99
+ * // Key: "STRING_VALUE",
100
+ * // Value: "STRING_VALUE",
101
+ * // Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
102
+ * // },
103
+ * // },
104
+ * // ],
105
+ * // Operator: "AND" || "OR",
106
+ * // },
107
+ * // ],
108
+ * // CompositeOperator: "AND" || "OR",
109
+ * // },
110
+ * // },
111
+ * // Actions: [ // AutomationRulesActionListV2
112
+ * // { // AutomationRulesActionV2
113
+ * // Type: "FINDING_FIELDS_UPDATE" || "EXTERNAL_INTEGRATION", // required
114
+ * // FindingFieldsUpdate: { // AutomationRulesFindingFieldsUpdateV2
115
+ * // SeverityId: Number("int"),
116
+ * // Comment: "STRING_VALUE",
117
+ * // StatusId: Number("int"),
118
+ * // },
119
+ * // ExternalIntegrationConfiguration: { // ExternalIntegrationConfiguration
120
+ * // ConnectorArn: "STRING_VALUE",
121
+ * // },
122
+ * // },
123
+ * // ],
124
+ * // CreatedAt: new Date("TIMESTAMP"),
125
+ * // UpdatedAt: new Date("TIMESTAMP"),
126
+ * // };
127
+ *
128
+ * ```
129
+ *
130
+ * @param GetAutomationRuleV2CommandInput - {@link GetAutomationRuleV2CommandInput}
131
+ * @returns {@link GetAutomationRuleV2CommandOutput}
132
+ * @see {@link GetAutomationRuleV2CommandInput} for command's `input` shape.
133
+ * @see {@link GetAutomationRuleV2CommandOutput} for command's `response` shape.
134
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
135
+ *
136
+ * @throws {@link AccessDeniedException} (client fault)
137
+ * <p>You don't have permission to perform the action specified in the request.</p>
138
+ *
139
+ * @throws {@link ConflictException} (client fault)
140
+ * <p>The request causes conflict with the current state of the service resource.</p>
141
+ *
142
+ * @throws {@link InternalServerException} (server fault)
143
+ * <p>
144
+ * The request has failed due to an internal failure of the service.
145
+ * </p>
146
+ *
147
+ * @throws {@link ResourceNotFoundException} (client fault)
148
+ * <p>The request was rejected because we can't find the specified resource.</p>
149
+ *
150
+ * @throws {@link ThrottlingException} (client fault)
151
+ * <p>
152
+ * The limit on the number of requests per second was exceeded.
153
+ * </p>
154
+ *
155
+ * @throws {@link ValidationException} (client fault)
156
+ * <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
157
+ *
158
+ * @throws {@link SecurityHubServiceException}
159
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
160
+ *
161
+ *
162
+ * @public
163
+ */
164
+ export declare class GetAutomationRuleV2Command extends GetAutomationRuleV2Command_base {
165
+ /** @internal type navigation helper, not in runtime. */
166
+ protected static __types: {
167
+ api: {
168
+ input: GetAutomationRuleV2Request;
169
+ output: GetAutomationRuleV2Response;
170
+ };
171
+ sdk: {
172
+ input: GetAutomationRuleV2CommandInput;
173
+ output: GetAutomationRuleV2CommandOutput;
174
+ };
175
+ };
176
+ }