@aws-sdk/client-securityhub 3.276.0 → 3.279.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 (92) hide show
  1. package/README.md +14 -17
  2. package/dist-cjs/SecurityHub.js +75 -0
  3. package/dist-cjs/commands/BatchGetSecurityControlsCommand.js +46 -0
  4. package/dist-cjs/commands/BatchGetStandardsControlAssociationsCommand.js +46 -0
  5. package/dist-cjs/commands/BatchUpdateStandardsControlAssociationsCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteFindingAggregatorCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteInsightCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteInvitationsCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteMembersCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeActionTargetsCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeHubCommand.js +3 -3
  12. package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +3 -3
  13. package/dist-cjs/commands/DescribeProductsCommand.js +1 -2
  14. package/dist-cjs/commands/ListSecurityControlDefinitionsCommand.js +46 -0
  15. package/dist-cjs/commands/ListStandardsControlAssociationsCommand.js +46 -0
  16. package/dist-cjs/commands/index.js +5 -0
  17. package/dist-cjs/models/models_0.js +11 -10
  18. package/dist-cjs/models/models_1.js +81 -76
  19. package/dist-cjs/models/models_2.js +102 -9
  20. package/dist-cjs/pagination/ListSecurityControlDefinitionsPaginator.js +36 -0
  21. package/dist-cjs/pagination/ListStandardsControlAssociationsPaginator.js +36 -0
  22. package/dist-cjs/pagination/index.js +2 -0
  23. package/dist-cjs/protocols/Aws_restJson1.js +557 -3
  24. package/dist-es/SecurityHub.js +75 -0
  25. package/dist-es/commands/BatchGetSecurityControlsCommand.js +42 -0
  26. package/dist-es/commands/BatchGetStandardsControlAssociationsCommand.js +42 -0
  27. package/dist-es/commands/BatchUpdateStandardsControlAssociationsCommand.js +42 -0
  28. package/dist-es/commands/DeleteFindingAggregatorCommand.js +1 -1
  29. package/dist-es/commands/DeleteInsightCommand.js +1 -1
  30. package/dist-es/commands/DeleteInvitationsCommand.js +1 -1
  31. package/dist-es/commands/DeleteMembersCommand.js +1 -1
  32. package/dist-es/commands/DescribeActionTargetsCommand.js +1 -1
  33. package/dist-es/commands/DescribeHubCommand.js +1 -1
  34. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +1 -1
  35. package/dist-es/commands/DescribeProductsCommand.js +1 -2
  36. package/dist-es/commands/ListSecurityControlDefinitionsCommand.js +42 -0
  37. package/dist-es/commands/ListStandardsControlAssociationsCommand.js +42 -0
  38. package/dist-es/commands/index.js +5 -0
  39. package/dist-es/models/models_0.js +5 -3
  40. package/dist-es/models/models_1.js +57 -50
  41. package/dist-es/models/models_2.js +77 -7
  42. package/dist-es/pagination/ListSecurityControlDefinitionsPaginator.js +32 -0
  43. package/dist-es/pagination/ListStandardsControlAssociationsPaginator.js +32 -0
  44. package/dist-es/pagination/index.js +2 -0
  45. package/dist-es/protocols/Aws_restJson1.js +544 -0
  46. package/dist-types/SecurityHub.d.ts +59 -17
  47. package/dist-types/SecurityHubClient.d.ts +21 -19
  48. package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +39 -0
  49. package/dist-types/commands/BatchGetStandardsControlAssociationsCommand.d.ts +39 -0
  50. package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +39 -0
  51. package/dist-types/commands/DeleteFindingAggregatorCommand.d.ts +1 -1
  52. package/dist-types/commands/DeleteInsightCommand.d.ts +1 -1
  53. package/dist-types/commands/DeleteInvitationsCommand.d.ts +1 -1
  54. package/dist-types/commands/DeleteMembersCommand.d.ts +1 -1
  55. package/dist-types/commands/DescribeActionTargetsCommand.d.ts +1 -1
  56. package/dist-types/commands/DescribeHubCommand.d.ts +1 -1
  57. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -1
  58. package/dist-types/commands/DescribeProductsCommand.d.ts +1 -2
  59. package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +39 -0
  60. package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +39 -0
  61. package/dist-types/commands/index.d.ts +5 -0
  62. package/dist-types/models/models_0.d.ts +18 -25
  63. package/dist-types/models/models_1.d.ts +370 -260
  64. package/dist-types/models/models_2.d.ts +513 -8
  65. package/dist-types/pagination/ListSecurityControlDefinitionsPaginator.d.ts +4 -0
  66. package/dist-types/pagination/ListStandardsControlAssociationsPaginator.d.ts +4 -0
  67. package/dist-types/pagination/index.d.ts +2 -0
  68. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  69. package/dist-types/ts3.4/SecurityHub.d.ts +97 -0
  70. package/dist-types/ts3.4/SecurityHubClient.d.ts +30 -0
  71. package/dist-types/ts3.4/commands/BatchGetSecurityControlsCommand.d.ts +41 -0
  72. package/dist-types/ts3.4/commands/BatchGetStandardsControlAssociationsCommand.d.ts +41 -0
  73. package/dist-types/ts3.4/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +41 -0
  74. package/dist-types/ts3.4/commands/DeleteFindingAggregatorCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/DeleteInsightCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/DeleteInvitationsCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/DeleteMembersCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/DescribeActionTargetsCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/DescribeHubCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/DescribeProductsCommand.d.ts +4 -2
  82. package/dist-types/ts3.4/commands/ListSecurityControlDefinitionsCommand.d.ts +41 -0
  83. package/dist-types/ts3.4/commands/ListStandardsControlAssociationsCommand.d.ts +41 -0
  84. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +4 -6
  86. package/dist-types/ts3.4/models/models_1.d.ts +137 -118
  87. package/dist-types/ts3.4/models/models_2.d.ts +184 -8
  88. package/dist-types/ts3.4/pagination/ListSecurityControlDefinitionsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListStandardsControlAssociationsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  92. package/package.json +7 -7
package/README.md CHANGED
@@ -9,19 +9,16 @@
9
9
 
10
10
  AWS SDK for JavaScript SecurityHub Client for Node.js, Browser and React Native.
11
11
 
12
- <p>Security Hub provides you with a comprehensive view of the security state of your Amazon Web Services environment and resources. It also provides you with the readiness status
13
- of your environment based on controls from supported security standards. Security Hub collects
14
- security data from Amazon Web Services accounts, services, and integrated third-party products and helps
15
- you analyze security trends in your environment to identify the highest priority security
16
- issues. For more information about Security Hub, see the <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html">
17
- <i>Security HubUser
18
- Guide</i>
19
- </a>.</p>
20
- <p>When you use operations in the Security Hub API, the requests are executed only in the Amazon Web Services
21
- Region that is currently active or in the specific Amazon Web Services Region that you specify in your
22
- request. Any configuration or settings change that results from the operation is applied
23
- only to that Region. To make the same change in other Regions, execute the same command for
24
- each Region to apply the change to.</p>
12
+ <p>Security Hub provides you with a comprehensive view of the security state of
13
+ your Amazon Web Services environment and resources. It also provides you with the readiness
14
+ status of your environment based on controls from supported security standards. Security Hub collects security data from Amazon Web Services accounts, services, and
15
+ integrated third-party products and helps you analyze security trends in your environment
16
+ to identify the highest priority security issues. For more information about Security Hub, see the <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html">Security HubUser
17
+ Guide</a>.</p>
18
+ <p>When you use operations in the Security Hub API, the requests are executed only in
19
+ the Amazon Web Services Region that is currently active or in the specific Amazon Web Services Region that you specify in your request. Any configuration or settings change
20
+ that results from the operation is applied only to that Region. To make the same change in
21
+ other Regions, run the same command for each Region in which you want to apply the change.</p>
25
22
  <p>For example, if your Region is set to <code>us-west-2</code>, when you use <code>CreateMembers</code> to add a member account to Security Hub, the association of
26
23
  the member account with the administrator account is created only in the <code>us-west-2</code>
27
24
  Region. Security Hub must be enabled for the member account in the same Region that the invitation
@@ -30,8 +27,8 @@ was sent from.</p>
30
27
  <ul>
31
28
  <li>
32
29
  <p>
33
- <code>BatchEnableStandards</code> - <code>RateLimit</code> of 1
34
- request per second, <code>BurstLimit</code> of 1 request per second.</p>
30
+ <code>BatchEnableStandards</code> - <code>RateLimit</code> of 1 request per
31
+ second. <code>BurstLimit</code> of 1 request per second.</p>
35
32
  </li>
36
33
  <li>
37
34
  <p>
@@ -50,8 +47,8 @@ request per second, <code>BurstLimit</code> of 1 request per second.</p>
50
47
  </li>
51
48
  <li>
52
49
  <p>
53
- <code>UpdateStandardsControl</code> - <code>RateLimit</code> of
54
- 1 request per second, <code>BurstLimit</code> of 5 requests per second.</p>
50
+ <code>UpdateStandardsControl</code> - <code>RateLimit</code> of 1 request per
51
+ second. <code>BurstLimit</code> of 5 requests per second.</p>
55
52
  </li>
56
53
  <li>
57
54
  <p>All other operations - <code>RateLimit</code> of 10 requests per second.
@@ -5,8 +5,11 @@ const AcceptAdministratorInvitationCommand_1 = require("./commands/AcceptAdminis
5
5
  const AcceptInvitationCommand_1 = require("./commands/AcceptInvitationCommand");
6
6
  const BatchDisableStandardsCommand_1 = require("./commands/BatchDisableStandardsCommand");
7
7
  const BatchEnableStandardsCommand_1 = require("./commands/BatchEnableStandardsCommand");
8
+ const BatchGetSecurityControlsCommand_1 = require("./commands/BatchGetSecurityControlsCommand");
9
+ const BatchGetStandardsControlAssociationsCommand_1 = require("./commands/BatchGetStandardsControlAssociationsCommand");
8
10
  const BatchImportFindingsCommand_1 = require("./commands/BatchImportFindingsCommand");
9
11
  const BatchUpdateFindingsCommand_1 = require("./commands/BatchUpdateFindingsCommand");
12
+ const BatchUpdateStandardsControlAssociationsCommand_1 = require("./commands/BatchUpdateStandardsControlAssociationsCommand");
10
13
  const CreateActionTargetCommand_1 = require("./commands/CreateActionTargetCommand");
11
14
  const CreateFindingAggregatorCommand_1 = require("./commands/CreateFindingAggregatorCommand");
12
15
  const CreateInsightCommand_1 = require("./commands/CreateInsightCommand");
@@ -47,6 +50,8 @@ const ListFindingAggregatorsCommand_1 = require("./commands/ListFindingAggregato
47
50
  const ListInvitationsCommand_1 = require("./commands/ListInvitationsCommand");
48
51
  const ListMembersCommand_1 = require("./commands/ListMembersCommand");
49
52
  const ListOrganizationAdminAccountsCommand_1 = require("./commands/ListOrganizationAdminAccountsCommand");
53
+ const ListSecurityControlDefinitionsCommand_1 = require("./commands/ListSecurityControlDefinitionsCommand");
54
+ const ListStandardsControlAssociationsCommand_1 = require("./commands/ListStandardsControlAssociationsCommand");
50
55
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
51
56
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
52
57
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
@@ -115,6 +120,34 @@ class SecurityHub extends SecurityHubClient_1.SecurityHubClient {
115
120
  return this.send(command, optionsOrCb);
116
121
  }
117
122
  }
123
+ batchGetSecurityControls(args, optionsOrCb, cb) {
124
+ const command = new BatchGetSecurityControlsCommand_1.BatchGetSecurityControlsCommand(args);
125
+ if (typeof optionsOrCb === "function") {
126
+ this.send(command, optionsOrCb);
127
+ }
128
+ else if (typeof cb === "function") {
129
+ if (typeof optionsOrCb !== "object")
130
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
+ this.send(command, optionsOrCb || {}, cb);
132
+ }
133
+ else {
134
+ return this.send(command, optionsOrCb);
135
+ }
136
+ }
137
+ batchGetStandardsControlAssociations(args, optionsOrCb, cb) {
138
+ const command = new BatchGetStandardsControlAssociationsCommand_1.BatchGetStandardsControlAssociationsCommand(args);
139
+ if (typeof optionsOrCb === "function") {
140
+ this.send(command, optionsOrCb);
141
+ }
142
+ else if (typeof cb === "function") {
143
+ if (typeof optionsOrCb !== "object")
144
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
+ this.send(command, optionsOrCb || {}, cb);
146
+ }
147
+ else {
148
+ return this.send(command, optionsOrCb);
149
+ }
150
+ }
118
151
  batchImportFindings(args, optionsOrCb, cb) {
119
152
  const command = new BatchImportFindingsCommand_1.BatchImportFindingsCommand(args);
120
153
  if (typeof optionsOrCb === "function") {
@@ -143,6 +176,20 @@ class SecurityHub extends SecurityHubClient_1.SecurityHubClient {
143
176
  return this.send(command, optionsOrCb);
144
177
  }
145
178
  }
179
+ batchUpdateStandardsControlAssociations(args, optionsOrCb, cb) {
180
+ const command = new BatchUpdateStandardsControlAssociationsCommand_1.BatchUpdateStandardsControlAssociationsCommand(args);
181
+ if (typeof optionsOrCb === "function") {
182
+ this.send(command, optionsOrCb);
183
+ }
184
+ else if (typeof cb === "function") {
185
+ if (typeof optionsOrCb !== "object")
186
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
+ this.send(command, optionsOrCb || {}, cb);
188
+ }
189
+ else {
190
+ return this.send(command, optionsOrCb);
191
+ }
192
+ }
146
193
  createActionTarget(args, optionsOrCb, cb) {
147
194
  const command = new CreateActionTargetCommand_1.CreateActionTargetCommand(args);
148
195
  if (typeof optionsOrCb === "function") {
@@ -703,6 +750,34 @@ class SecurityHub extends SecurityHubClient_1.SecurityHubClient {
703
750
  return this.send(command, optionsOrCb);
704
751
  }
705
752
  }
753
+ listSecurityControlDefinitions(args, optionsOrCb, cb) {
754
+ const command = new ListSecurityControlDefinitionsCommand_1.ListSecurityControlDefinitionsCommand(args);
755
+ if (typeof optionsOrCb === "function") {
756
+ this.send(command, optionsOrCb);
757
+ }
758
+ else if (typeof cb === "function") {
759
+ if (typeof optionsOrCb !== "object")
760
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
761
+ this.send(command, optionsOrCb || {}, cb);
762
+ }
763
+ else {
764
+ return this.send(command, optionsOrCb);
765
+ }
766
+ }
767
+ listStandardsControlAssociations(args, optionsOrCb, cb) {
768
+ const command = new ListStandardsControlAssociationsCommand_1.ListStandardsControlAssociationsCommand(args);
769
+ if (typeof optionsOrCb === "function") {
770
+ this.send(command, optionsOrCb);
771
+ }
772
+ else if (typeof cb === "function") {
773
+ if (typeof optionsOrCb !== "object")
774
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
775
+ this.send(command, optionsOrCb || {}, cb);
776
+ }
777
+ else {
778
+ return this.send(command, optionsOrCb);
779
+ }
780
+ }
706
781
  listTagsForResource(args, optionsOrCb, cb) {
707
782
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
708
783
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchGetSecurityControlsCommand = 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
+ const models_1_1 = require("../models/models_1");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchGetSecurityControlsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
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, BatchGetSecurityControlsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "BatchGetSecurityControlsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_1_1.BatchGetSecurityControlsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.BatchGetSecurityControlsResponseFilterSensitiveLog,
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.serializeAws_restJson1BatchGetSecurityControlsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchGetSecurityControlsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchGetSecurityControlsCommand = BatchGetSecurityControlsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchGetStandardsControlAssociationsCommand = 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
+ const models_1_1 = require("../models/models_1");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchGetStandardsControlAssociationsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
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, BatchGetStandardsControlAssociationsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "BatchGetStandardsControlAssociationsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_1_1.BatchGetStandardsControlAssociationsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.BatchGetStandardsControlAssociationsResponseFilterSensitiveLog,
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.serializeAws_restJson1BatchGetStandardsControlAssociationsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchGetStandardsControlAssociationsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchGetStandardsControlAssociationsCommand = BatchGetStandardsControlAssociationsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchUpdateStandardsControlAssociationsCommand = 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
+ const models_1_1 = require("../models/models_1");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchUpdateStandardsControlAssociationsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
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, BatchUpdateStandardsControlAssociationsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "BatchUpdateStandardsControlAssociationsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_1_1.BatchUpdateStandardsControlAssociationsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.BatchUpdateStandardsControlAssociationsResponseFilterSensitiveLog,
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.serializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchUpdateStandardsControlAssociationsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchUpdateStandardsControlAssociationsCommand = BatchUpdateStandardsControlAssociationsCommand;
@@ -4,7 +4,7 @@ exports.DeleteFindingAggregatorCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
7
+ const models_2_1 = require("../models/models_2");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DeleteFindingAggregatorCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class DeleteFindingAggregatorCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_1_1.DeleteFindingAggregatorRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_1_1.DeleteFindingAggregatorResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DeleteFindingAggregatorRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.DeleteFindingAggregatorResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.DeleteInsightCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
7
+ const models_2_1 = require("../models/models_2");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DeleteInsightCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class DeleteInsightCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_1_1.DeleteInsightRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_1_1.DeleteInsightResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DeleteInsightRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.DeleteInsightResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.DeleteInvitationsCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
7
+ const models_2_1 = require("../models/models_2");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DeleteInvitationsCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class DeleteInvitationsCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_1_1.DeleteInvitationsRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_1_1.DeleteInvitationsResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DeleteInvitationsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.DeleteInvitationsResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.DeleteMembersCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
7
+ const models_2_1 = require("../models/models_2");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DeleteMembersCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class DeleteMembersCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_1_1.DeleteMembersRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_1_1.DeleteMembersResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DeleteMembersRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.DeleteMembersResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.DescribeActionTargetsCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
7
+ const models_2_1 = require("../models/models_2");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DescribeActionTargetsCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class DescribeActionTargetsCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_1_1.DescribeActionTargetsRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_1_1.DescribeActionTargetsResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DescribeActionTargetsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.DescribeActionTargetsResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.DescribeHubCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
7
+ const models_2_1 = require("../models/models_2");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DescribeHubCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class DescribeHubCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_1_1.DescribeHubRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_1_1.DescribeHubResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DescribeHubRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.DescribeHubResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.DescribeOrganizationConfigurationCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
7
+ const models_2_1 = require("../models/models_2");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DescribeOrganizationConfigurationCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class DescribeOrganizationConfigurationCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_1_1.DescribeOrganizationConfigurationRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_1_1.DescribeOrganizationConfigurationResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DescribeOrganizationConfigurationRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.DescribeOrganizationConfigurationResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,6 @@ exports.DescribeProductsCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
8
7
  const models_2_1 = require("../models/models_2");
9
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
9
  class DescribeProductsCommand extends smithy_client_1.Command {
@@ -31,7 +30,7 @@ class DescribeProductsCommand extends smithy_client_1.Command {
31
30
  logger,
32
31
  clientName,
33
32
  commandName,
34
- inputFilterSensitiveLog: models_1_1.DescribeProductsRequestFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DescribeProductsRequestFilterSensitiveLog,
35
34
  outputFilterSensitiveLog: models_2_1.DescribeProductsResponseFilterSensitiveLog,
36
35
  };
37
36
  const { requestHandler } = configuration;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListSecurityControlDefinitionsCommand = 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
+ const models_2_1 = require("../models/models_2");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListSecurityControlDefinitionsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
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, ListSecurityControlDefinitionsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "ListSecurityControlDefinitionsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_2_1.ListSecurityControlDefinitionsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.ListSecurityControlDefinitionsResponseFilterSensitiveLog,
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.serializeAws_restJson1ListSecurityControlDefinitionsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListSecurityControlDefinitionsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListSecurityControlDefinitionsCommand = ListSecurityControlDefinitionsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListStandardsControlAssociationsCommand = 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
+ const models_2_1 = require("../models/models_2");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListStandardsControlAssociationsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
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, ListStandardsControlAssociationsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityHubClient";
28
+ const commandName = "ListStandardsControlAssociationsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_2_1.ListStandardsControlAssociationsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.ListStandardsControlAssociationsResponseFilterSensitiveLog,
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.serializeAws_restJson1ListStandardsControlAssociationsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListStandardsControlAssociationsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListStandardsControlAssociationsCommand = ListStandardsControlAssociationsCommand;
@@ -5,8 +5,11 @@ tslib_1.__exportStar(require("./AcceptAdministratorInvitationCommand"), exports)
5
5
  tslib_1.__exportStar(require("./AcceptInvitationCommand"), exports);
6
6
  tslib_1.__exportStar(require("./BatchDisableStandardsCommand"), exports);
7
7
  tslib_1.__exportStar(require("./BatchEnableStandardsCommand"), exports);
8
+ tslib_1.__exportStar(require("./BatchGetSecurityControlsCommand"), exports);
9
+ tslib_1.__exportStar(require("./BatchGetStandardsControlAssociationsCommand"), exports);
8
10
  tslib_1.__exportStar(require("./BatchImportFindingsCommand"), exports);
9
11
  tslib_1.__exportStar(require("./BatchUpdateFindingsCommand"), exports);
12
+ tslib_1.__exportStar(require("./BatchUpdateStandardsControlAssociationsCommand"), exports);
10
13
  tslib_1.__exportStar(require("./CreateActionTargetCommand"), exports);
11
14
  tslib_1.__exportStar(require("./CreateFindingAggregatorCommand"), exports);
12
15
  tslib_1.__exportStar(require("./CreateInsightCommand"), exports);
@@ -47,6 +50,8 @@ tslib_1.__exportStar(require("./ListFindingAggregatorsCommand"), exports);
47
50
  tslib_1.__exportStar(require("./ListInvitationsCommand"), exports);
48
51
  tslib_1.__exportStar(require("./ListMembersCommand"), exports);
49
52
  tslib_1.__exportStar(require("./ListOrganizationAdminAccountsCommand"), exports);
53
+ tslib_1.__exportStar(require("./ListSecurityControlDefinitionsCommand"), exports);
54
+ tslib_1.__exportStar(require("./ListStandardsControlAssociationsCommand"), exports);
50
55
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
51
56
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
52
57
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);