@aws-sdk/client-securityhub 3.350.0 → 3.352.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 (52) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/SecurityHub.js +10 -0
  3. package/dist-cjs/commands/BatchDeleteAutomationRulesCommand.js +46 -0
  4. package/dist-cjs/commands/BatchGetAutomationRulesCommand.js +46 -0
  5. package/dist-cjs/commands/BatchUpdateAutomationRulesCommand.js +46 -0
  6. package/dist-cjs/commands/CreateAutomationRuleCommand.js +46 -0
  7. package/dist-cjs/commands/ListAutomationRulesCommand.js +46 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +40 -1
  10. package/dist-cjs/models/models_1.js +1 -44
  11. package/dist-cjs/models/models_2.js +12 -1
  12. package/dist-cjs/protocols/Aws_restJson1.js +553 -3
  13. package/dist-es/SecurityHub.js +10 -0
  14. package/dist-es/commands/BatchDeleteAutomationRulesCommand.js +42 -0
  15. package/dist-es/commands/BatchGetAutomationRulesCommand.js +42 -0
  16. package/dist-es/commands/BatchUpdateAutomationRulesCommand.js +42 -0
  17. package/dist-es/commands/CreateAutomationRuleCommand.js +42 -0
  18. package/dist-es/commands/ListAutomationRulesCommand.js +42 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +39 -0
  21. package/dist-es/models/models_1.js +0 -43
  22. package/dist-es/models/models_2.js +11 -0
  23. package/dist-es/protocols/Aws_restJson1.js +540 -0
  24. package/dist-types/SecurityHub.d.ts +35 -0
  25. package/dist-types/SecurityHubClient.d.ts +7 -2
  26. package/dist-types/commands/BatchDeleteAutomationRulesCommand.d.ts +103 -0
  27. package/dist-types/commands/BatchDisableStandardsCommand.d.ts +1 -1
  28. package/dist-types/commands/BatchEnableStandardsCommand.d.ts +1 -1
  29. package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +288 -0
  30. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +282 -0
  31. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +270 -0
  32. package/dist-types/commands/ListAutomationRulesCommand.d.ts +106 -0
  33. package/dist-types/commands/index.d.ts +5 -0
  34. package/dist-types/models/models_0.d.ts +6010 -5729
  35. package/dist-types/models/models_1.d.ts +645 -439
  36. package/dist-types/models/models_2.d.ts +423 -108
  37. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  38. package/dist-types/ts3.4/SecurityHub.d.ts +85 -0
  39. package/dist-types/ts3.4/SecurityHubClient.d.ts +30 -0
  40. package/dist-types/ts3.4/commands/BatchDeleteAutomationRulesCommand.d.ts +42 -0
  41. package/dist-types/ts3.4/commands/BatchDisableStandardsCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/BatchEnableStandardsCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/BatchGetAutomationRulesCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/BatchUpdateAutomationRulesCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +39 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +167 -136
  49. package/dist-types/ts3.4/models/models_1.d.ts +145 -123
  50. package/dist-types/ts3.4/models/models_2.d.ts +112 -16
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  52. package/package.json +5 -5
package/README.md CHANGED
@@ -263,6 +263,14 @@ AcceptInvitation
263
263
 
264
264
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/acceptinvitationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/acceptinvitationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/acceptinvitationcommandoutput.html)
265
265
 
266
+ </details>
267
+ <details>
268
+ <summary>
269
+ BatchDeleteAutomationRules
270
+ </summary>
271
+
272
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchdeleteautomationrulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchdeleteautomationrulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchdeleteautomationrulescommandoutput.html)
273
+
266
274
  </details>
267
275
  <details>
268
276
  <summary>
@@ -279,6 +287,14 @@ BatchEnableStandards
279
287
 
280
288
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchenablestandardscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchenablestandardscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchenablestandardscommandoutput.html)
281
289
 
290
+ </details>
291
+ <details>
292
+ <summary>
293
+ BatchGetAutomationRules
294
+ </summary>
295
+
296
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchgetautomationrulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchgetautomationrulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchgetautomationrulescommandoutput.html)
297
+
282
298
  </details>
283
299
  <details>
284
300
  <summary>
@@ -303,6 +319,14 @@ BatchImportFindings
303
319
 
304
320
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchimportfindingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchimportfindingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchimportfindingscommandoutput.html)
305
321
 
322
+ </details>
323
+ <details>
324
+ <summary>
325
+ BatchUpdateAutomationRules
326
+ </summary>
327
+
328
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/batchupdateautomationrulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchupdateautomationrulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/batchupdateautomationrulescommandoutput.html)
329
+
306
330
  </details>
307
331
  <details>
308
332
  <summary>
@@ -327,6 +351,14 @@ CreateActionTarget
327
351
 
328
352
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/createactiontargetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/createactiontargetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/createactiontargetcommandoutput.html)
329
353
 
354
+ </details>
355
+ <details>
356
+ <summary>
357
+ CreateAutomationRule
358
+ </summary>
359
+
360
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/createautomationrulecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/createautomationrulecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/createautomationrulecommandoutput.html)
361
+
330
362
  </details>
331
363
  <details>
332
364
  <summary>
@@ -607,6 +639,14 @@ InviteMembers
607
639
 
608
640
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/invitememberscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/invitememberscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/invitememberscommandoutput.html)
609
641
 
642
+ </details>
643
+ <details>
644
+ <summary>
645
+ ListAutomationRules
646
+ </summary>
647
+
648
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/classes/listautomationrulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/listautomationrulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securityhub/interfaces/listautomationrulescommandoutput.html)
649
+
610
650
  </details>
611
651
  <details>
612
652
  <summary>
@@ -4,14 +4,18 @@ exports.SecurityHub = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const AcceptAdministratorInvitationCommand_1 = require("./commands/AcceptAdministratorInvitationCommand");
6
6
  const AcceptInvitationCommand_1 = require("./commands/AcceptInvitationCommand");
7
+ const BatchDeleteAutomationRulesCommand_1 = require("./commands/BatchDeleteAutomationRulesCommand");
7
8
  const BatchDisableStandardsCommand_1 = require("./commands/BatchDisableStandardsCommand");
8
9
  const BatchEnableStandardsCommand_1 = require("./commands/BatchEnableStandardsCommand");
10
+ const BatchGetAutomationRulesCommand_1 = require("./commands/BatchGetAutomationRulesCommand");
9
11
  const BatchGetSecurityControlsCommand_1 = require("./commands/BatchGetSecurityControlsCommand");
10
12
  const BatchGetStandardsControlAssociationsCommand_1 = require("./commands/BatchGetStandardsControlAssociationsCommand");
11
13
  const BatchImportFindingsCommand_1 = require("./commands/BatchImportFindingsCommand");
14
+ const BatchUpdateAutomationRulesCommand_1 = require("./commands/BatchUpdateAutomationRulesCommand");
12
15
  const BatchUpdateFindingsCommand_1 = require("./commands/BatchUpdateFindingsCommand");
13
16
  const BatchUpdateStandardsControlAssociationsCommand_1 = require("./commands/BatchUpdateStandardsControlAssociationsCommand");
14
17
  const CreateActionTargetCommand_1 = require("./commands/CreateActionTargetCommand");
18
+ const CreateAutomationRuleCommand_1 = require("./commands/CreateAutomationRuleCommand");
15
19
  const CreateFindingAggregatorCommand_1 = require("./commands/CreateFindingAggregatorCommand");
16
20
  const CreateInsightCommand_1 = require("./commands/CreateInsightCommand");
17
21
  const CreateMembersCommand_1 = require("./commands/CreateMembersCommand");
@@ -47,6 +51,7 @@ const GetInvitationsCountCommand_1 = require("./commands/GetInvitationsCountComm
47
51
  const GetMasterAccountCommand_1 = require("./commands/GetMasterAccountCommand");
48
52
  const GetMembersCommand_1 = require("./commands/GetMembersCommand");
49
53
  const InviteMembersCommand_1 = require("./commands/InviteMembersCommand");
54
+ const ListAutomationRulesCommand_1 = require("./commands/ListAutomationRulesCommand");
50
55
  const ListEnabledProductsForImportCommand_1 = require("./commands/ListEnabledProductsForImportCommand");
51
56
  const ListFindingAggregatorsCommand_1 = require("./commands/ListFindingAggregatorsCommand");
52
57
  const ListInvitationsCommand_1 = require("./commands/ListInvitationsCommand");
@@ -68,14 +73,18 @@ const SecurityHubClient_1 = require("./SecurityHubClient");
68
73
  const commands = {
69
74
  AcceptAdministratorInvitationCommand: AcceptAdministratorInvitationCommand_1.AcceptAdministratorInvitationCommand,
70
75
  AcceptInvitationCommand: AcceptInvitationCommand_1.AcceptInvitationCommand,
76
+ BatchDeleteAutomationRulesCommand: BatchDeleteAutomationRulesCommand_1.BatchDeleteAutomationRulesCommand,
71
77
  BatchDisableStandardsCommand: BatchDisableStandardsCommand_1.BatchDisableStandardsCommand,
72
78
  BatchEnableStandardsCommand: BatchEnableStandardsCommand_1.BatchEnableStandardsCommand,
79
+ BatchGetAutomationRulesCommand: BatchGetAutomationRulesCommand_1.BatchGetAutomationRulesCommand,
73
80
  BatchGetSecurityControlsCommand: BatchGetSecurityControlsCommand_1.BatchGetSecurityControlsCommand,
74
81
  BatchGetStandardsControlAssociationsCommand: BatchGetStandardsControlAssociationsCommand_1.BatchGetStandardsControlAssociationsCommand,
75
82
  BatchImportFindingsCommand: BatchImportFindingsCommand_1.BatchImportFindingsCommand,
83
+ BatchUpdateAutomationRulesCommand: BatchUpdateAutomationRulesCommand_1.BatchUpdateAutomationRulesCommand,
76
84
  BatchUpdateFindingsCommand: BatchUpdateFindingsCommand_1.BatchUpdateFindingsCommand,
77
85
  BatchUpdateStandardsControlAssociationsCommand: BatchUpdateStandardsControlAssociationsCommand_1.BatchUpdateStandardsControlAssociationsCommand,
78
86
  CreateActionTargetCommand: CreateActionTargetCommand_1.CreateActionTargetCommand,
87
+ CreateAutomationRuleCommand: CreateAutomationRuleCommand_1.CreateAutomationRuleCommand,
79
88
  CreateFindingAggregatorCommand: CreateFindingAggregatorCommand_1.CreateFindingAggregatorCommand,
80
89
  CreateInsightCommand: CreateInsightCommand_1.CreateInsightCommand,
81
90
  CreateMembersCommand: CreateMembersCommand_1.CreateMembersCommand,
@@ -111,6 +120,7 @@ const commands = {
111
120
  GetMasterAccountCommand: GetMasterAccountCommand_1.GetMasterAccountCommand,
112
121
  GetMembersCommand: GetMembersCommand_1.GetMembersCommand,
113
122
  InviteMembersCommand: InviteMembersCommand_1.InviteMembersCommand,
123
+ ListAutomationRulesCommand: ListAutomationRulesCommand_1.ListAutomationRulesCommand,
114
124
  ListEnabledProductsForImportCommand: ListEnabledProductsForImportCommand_1.ListEnabledProductsForImportCommand,
115
125
  ListFindingAggregatorsCommand: ListFindingAggregatorsCommand_1.ListFindingAggregatorsCommand,
116
126
  ListInvitationsCommand: ListInvitationsCommand_1.ListInvitationsCommand,
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchDeleteAutomationRulesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchDeleteAutomationRulesCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchDeleteAutomationRulesCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "BatchDeleteAutomationRulesCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_BatchDeleteAutomationRulesCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_BatchDeleteAutomationRulesCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchDeleteAutomationRulesCommand = BatchDeleteAutomationRulesCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchGetAutomationRulesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchGetAutomationRulesCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetAutomationRulesCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "BatchGetAutomationRulesCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_BatchGetAutomationRulesCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_BatchGetAutomationRulesCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchGetAutomationRulesCommand = BatchGetAutomationRulesCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchUpdateAutomationRulesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchUpdateAutomationRulesCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchUpdateAutomationRulesCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "BatchUpdateAutomationRulesCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_BatchUpdateAutomationRulesCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_BatchUpdateAutomationRulesCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchUpdateAutomationRulesCommand = BatchUpdateAutomationRulesCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAutomationRuleCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class CreateAutomationRuleCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateAutomationRuleCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "CreateAutomationRuleCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_CreateAutomationRuleCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_CreateAutomationRuleCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CreateAutomationRuleCommand = CreateAutomationRuleCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAutomationRulesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListAutomationRulesCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAutomationRulesCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "ListAutomationRulesCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_ListAutomationRulesCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_ListAutomationRulesCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListAutomationRulesCommand = ListAutomationRulesCommand;
@@ -3,14 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AcceptAdministratorInvitationCommand"), exports);
5
5
  tslib_1.__exportStar(require("./AcceptInvitationCommand"), exports);
6
+ tslib_1.__exportStar(require("./BatchDeleteAutomationRulesCommand"), exports);
6
7
  tslib_1.__exportStar(require("./BatchDisableStandardsCommand"), exports);
7
8
  tslib_1.__exportStar(require("./BatchEnableStandardsCommand"), exports);
9
+ tslib_1.__exportStar(require("./BatchGetAutomationRulesCommand"), exports);
8
10
  tslib_1.__exportStar(require("./BatchGetSecurityControlsCommand"), exports);
9
11
  tslib_1.__exportStar(require("./BatchGetStandardsControlAssociationsCommand"), exports);
10
12
  tslib_1.__exportStar(require("./BatchImportFindingsCommand"), exports);
13
+ tslib_1.__exportStar(require("./BatchUpdateAutomationRulesCommand"), exports);
11
14
  tslib_1.__exportStar(require("./BatchUpdateFindingsCommand"), exports);
12
15
  tslib_1.__exportStar(require("./BatchUpdateStandardsControlAssociationsCommand"), exports);
13
16
  tslib_1.__exportStar(require("./CreateActionTargetCommand"), exports);
17
+ tslib_1.__exportStar(require("./CreateAutomationRuleCommand"), exports);
14
18
  tslib_1.__exportStar(require("./CreateFindingAggregatorCommand"), exports);
15
19
  tslib_1.__exportStar(require("./CreateInsightCommand"), exports);
16
20
  tslib_1.__exportStar(require("./CreateMembersCommand"), exports);
@@ -46,6 +50,7 @@ tslib_1.__exportStar(require("./GetInvitationsCountCommand"), exports);
46
50
  tslib_1.__exportStar(require("./GetMasterAccountCommand"), exports);
47
51
  tslib_1.__exportStar(require("./GetMembersCommand"), exports);
48
52
  tslib_1.__exportStar(require("./InviteMembersCommand"), exports);
53
+ tslib_1.__exportStar(require("./ListAutomationRulesCommand"), exports);
49
54
  tslib_1.__exportStar(require("./ListEnabledProductsForImportCommand"), exports);
50
55
  tslib_1.__exportStar(require("./ListFindingAggregatorsCommand"), exports);
51
56
  tslib_1.__exportStar(require("./ListInvitationsCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutoEnableStandards = exports.AssociationStatus = exports.AdminStatus = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidInputException = exports.InvalidAccessException = exports.InternalException = void 0;
3
+ exports.RuleStatus = exports.MapFilterComparison = exports.DateRangeUnit = exports.StringFilterComparison = exports.AutoEnableStandards = exports.AssociationStatus = exports.AdminStatus = exports.AutomationRulesActionType = exports.WorkflowStatus = exports.VerificationState = exports.SeverityLabel = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidInputException = exports.InvalidAccessException = exports.InternalException = void 0;
4
4
  const SecurityHubServiceException_1 = require("./SecurityHubServiceException");
5
5
  class InternalException extends SecurityHubServiceException_1.SecurityHubServiceException {
6
6
  constructor(opts) {
@@ -92,6 +92,28 @@ class AccessDeniedException extends SecurityHubServiceException_1.SecurityHubSer
92
92
  }
93
93
  }
94
94
  exports.AccessDeniedException = AccessDeniedException;
95
+ exports.SeverityLabel = {
96
+ CRITICAL: "CRITICAL",
97
+ HIGH: "HIGH",
98
+ INFORMATIONAL: "INFORMATIONAL",
99
+ LOW: "LOW",
100
+ MEDIUM: "MEDIUM",
101
+ };
102
+ exports.VerificationState = {
103
+ BENIGN_POSITIVE: "BENIGN_POSITIVE",
104
+ FALSE_POSITIVE: "FALSE_POSITIVE",
105
+ TRUE_POSITIVE: "TRUE_POSITIVE",
106
+ UNKNOWN: "UNKNOWN",
107
+ };
108
+ exports.WorkflowStatus = {
109
+ NEW: "NEW",
110
+ NOTIFIED: "NOTIFIED",
111
+ RESOLVED: "RESOLVED",
112
+ SUPPRESSED: "SUPPRESSED",
113
+ };
114
+ exports.AutomationRulesActionType = {
115
+ FINDING_FIELDS_UPDATE: "FINDING_FIELDS_UPDATE",
116
+ };
95
117
  exports.AdminStatus = {
96
118
  DISABLE_IN_PROGRESS: "DISABLE_IN_PROGRESS",
97
119
  ENABLED: "ENABLED",
@@ -104,3 +126,20 @@ exports.AutoEnableStandards = {
104
126
  DEFAULT: "DEFAULT",
105
127
  NONE: "NONE",
106
128
  };
129
+ exports.StringFilterComparison = {
130
+ EQUALS: "EQUALS",
131
+ NOT_EQUALS: "NOT_EQUALS",
132
+ PREFIX: "PREFIX",
133
+ PREFIX_NOT_EQUALS: "PREFIX_NOT_EQUALS",
134
+ };
135
+ exports.DateRangeUnit = {
136
+ DAYS: "DAYS",
137
+ };
138
+ exports.MapFilterComparison = {
139
+ EQUALS: "EQUALS",
140
+ NOT_EQUALS: "NOT_EQUALS",
141
+ };
142
+ exports.RuleStatus = {
143
+ DISABLED: "DISABLED",
144
+ ENABLED: "ENABLED",
145
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatusReasonCode = exports.StandardsStatus = exports.MapFilterComparison = exports.DateRangeUnit = exports.StringFilterComparison = exports.WorkflowState = exports.WorkflowStatus = exports.VulnerabilityFixAvailable = exports.VerificationState = exports.ThreatIntelIndicatorType = exports.ThreatIntelIndicatorCategory = exports.Partition = exports.RecordState = exports.NetworkDirection = exports.MalwareType = exports.MalwareState = exports.SeverityLabel = exports.ComplianceStatus = exports.AwsS3BucketNotificationConfigurationS3KeyFilterRuleName = exports.AwsIamAccessKeyStatus = void 0;
3
+ exports.WorkflowState = exports.VulnerabilityFixAvailable = exports.ThreatIntelIndicatorType = exports.ThreatIntelIndicatorCategory = exports.Partition = exports.RecordState = exports.NetworkDirection = exports.MalwareType = exports.MalwareState = exports.ComplianceStatus = exports.AwsS3BucketNotificationConfigurationS3KeyFilterRuleName = exports.AwsIamAccessKeyStatus = void 0;
4
4
  exports.AwsIamAccessKeyStatus = {
5
5
  ACTIVE: "Active",
6
6
  INACTIVE: "Inactive",
@@ -15,13 +15,6 @@ exports.ComplianceStatus = {
15
15
  PASSED: "PASSED",
16
16
  WARNING: "WARNING",
17
17
  };
18
- exports.SeverityLabel = {
19
- CRITICAL: "CRITICAL",
20
- HIGH: "HIGH",
21
- INFORMATIONAL: "INFORMATIONAL",
22
- LOW: "LOW",
23
- MEDIUM: "MEDIUM",
24
- };
25
18
  exports.MalwareState = {
26
19
  OBSERVED: "OBSERVED",
27
20
  REMOVAL_FAILED: "REMOVAL_FAILED",
@@ -78,23 +71,11 @@ exports.ThreatIntelIndicatorType = {
78
71
  PROCESS: "PROCESS",
79
72
  URL: "URL",
80
73
  };
81
- exports.VerificationState = {
82
- BENIGN_POSITIVE: "BENIGN_POSITIVE",
83
- FALSE_POSITIVE: "FALSE_POSITIVE",
84
- TRUE_POSITIVE: "TRUE_POSITIVE",
85
- UNKNOWN: "UNKNOWN",
86
- };
87
74
  exports.VulnerabilityFixAvailable = {
88
75
  NO: "NO",
89
76
  PARTIAL: "PARTIAL",
90
77
  YES: "YES",
91
78
  };
92
- exports.WorkflowStatus = {
93
- NEW: "NEW",
94
- NOTIFIED: "NOTIFIED",
95
- RESOLVED: "RESOLVED",
96
- SUPPRESSED: "SUPPRESSED",
97
- };
98
79
  exports.WorkflowState = {
99
80
  ASSIGNED: "ASSIGNED",
100
81
  DEFERRED: "DEFERRED",
@@ -102,27 +83,3 @@ exports.WorkflowState = {
102
83
  NEW: "NEW",
103
84
  RESOLVED: "RESOLVED",
104
85
  };
105
- exports.StringFilterComparison = {
106
- EQUALS: "EQUALS",
107
- NOT_EQUALS: "NOT_EQUALS",
108
- PREFIX: "PREFIX",
109
- PREFIX_NOT_EQUALS: "PREFIX_NOT_EQUALS",
110
- };
111
- exports.DateRangeUnit = {
112
- DAYS: "DAYS",
113
- };
114
- exports.MapFilterComparison = {
115
- EQUALS: "EQUALS",
116
- NOT_EQUALS: "NOT_EQUALS",
117
- };
118
- exports.StandardsStatus = {
119
- DELETING: "DELETING",
120
- FAILED: "FAILED",
121
- INCOMPLETE: "INCOMPLETE",
122
- PENDING: "PENDING",
123
- READY: "READY",
124
- };
125
- exports.StatusReasonCode = {
126
- INTERNAL_ERROR: "INTERNAL_ERROR",
127
- NO_AVAILABLE_CONFIGURATION_RECORDER: "NO_AVAILABLE_CONFIGURATION_RECORDER",
128
- };
@@ -1,7 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RegionAvailabilityStatus = exports.SortOrder = exports.FindingHistoryUpdateSourceType = exports.IntegrationType = exports.ResourceConflictException = exports.ControlFindingGenerator = exports.UnprocessedErrorCode = exports.SeverityRating = exports.ControlStatus = void 0;
3
+ exports.RegionAvailabilityStatus = exports.SortOrder = exports.FindingHistoryUpdateSourceType = exports.IntegrationType = exports.ResourceConflictException = exports.ControlFindingGenerator = exports.UnprocessedErrorCode = exports.SeverityRating = exports.ControlStatus = exports.StatusReasonCode = exports.StandardsStatus = void 0;
4
4
  const SecurityHubServiceException_1 = require("./SecurityHubServiceException");
5
+ exports.StandardsStatus = {
6
+ DELETING: "DELETING",
7
+ FAILED: "FAILED",
8
+ INCOMPLETE: "INCOMPLETE",
9
+ PENDING: "PENDING",
10
+ READY: "READY",
11
+ };
12
+ exports.StatusReasonCode = {
13
+ INTERNAL_ERROR: "INTERNAL_ERROR",
14
+ NO_AVAILABLE_CONFIGURATION_RECORDER: "NO_AVAILABLE_CONFIGURATION_RECORDER",
15
+ };
5
16
  exports.ControlStatus = {
6
17
  DISABLED: "DISABLED",
7
18
  ENABLED: "ENABLED",