@aws-sdk/client-securityhub 3.181.0 → 3.183.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 (82) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/SecurityHub.js +226 -233
  3. package/dist-es/SecurityHubClient.js +22 -28
  4. package/dist-es/commands/AcceptAdministratorInvitationCommand.js +21 -28
  5. package/dist-es/commands/AcceptInvitationCommand.js +21 -28
  6. package/dist-es/commands/BatchDisableStandardsCommand.js +21 -28
  7. package/dist-es/commands/BatchEnableStandardsCommand.js +21 -28
  8. package/dist-es/commands/BatchImportFindingsCommand.js +21 -28
  9. package/dist-es/commands/BatchUpdateFindingsCommand.js +21 -28
  10. package/dist-es/commands/CreateActionTargetCommand.js +21 -28
  11. package/dist-es/commands/CreateFindingAggregatorCommand.js +21 -28
  12. package/dist-es/commands/CreateInsightCommand.js +21 -28
  13. package/dist-es/commands/CreateMembersCommand.js +21 -28
  14. package/dist-es/commands/DeclineInvitationsCommand.js +21 -28
  15. package/dist-es/commands/DeleteActionTargetCommand.js +21 -28
  16. package/dist-es/commands/DeleteFindingAggregatorCommand.js +21 -28
  17. package/dist-es/commands/DeleteInsightCommand.js +21 -28
  18. package/dist-es/commands/DeleteInvitationsCommand.js +21 -28
  19. package/dist-es/commands/DeleteMembersCommand.js +21 -28
  20. package/dist-es/commands/DescribeActionTargetsCommand.js +21 -28
  21. package/dist-es/commands/DescribeHubCommand.js +21 -28
  22. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
  23. package/dist-es/commands/DescribeProductsCommand.js +21 -28
  24. package/dist-es/commands/DescribeStandardsCommand.js +21 -28
  25. package/dist-es/commands/DescribeStandardsControlsCommand.js +21 -28
  26. package/dist-es/commands/DisableImportFindingsForProductCommand.js +21 -28
  27. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +21 -28
  28. package/dist-es/commands/DisableSecurityHubCommand.js +21 -28
  29. package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +21 -28
  30. package/dist-es/commands/DisassociateFromMasterAccountCommand.js +21 -28
  31. package/dist-es/commands/DisassociateMembersCommand.js +21 -28
  32. package/dist-es/commands/EnableImportFindingsForProductCommand.js +21 -28
  33. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +21 -28
  34. package/dist-es/commands/EnableSecurityHubCommand.js +21 -28
  35. package/dist-es/commands/GetAdministratorAccountCommand.js +21 -28
  36. package/dist-es/commands/GetEnabledStandardsCommand.js +21 -28
  37. package/dist-es/commands/GetFindingAggregatorCommand.js +21 -28
  38. package/dist-es/commands/GetFindingsCommand.js +21 -28
  39. package/dist-es/commands/GetInsightResultsCommand.js +21 -28
  40. package/dist-es/commands/GetInsightsCommand.js +21 -28
  41. package/dist-es/commands/GetInvitationsCountCommand.js +21 -28
  42. package/dist-es/commands/GetMasterAccountCommand.js +21 -28
  43. package/dist-es/commands/GetMembersCommand.js +21 -28
  44. package/dist-es/commands/InviteMembersCommand.js +21 -28
  45. package/dist-es/commands/ListEnabledProductsForImportCommand.js +21 -28
  46. package/dist-es/commands/ListFindingAggregatorsCommand.js +21 -28
  47. package/dist-es/commands/ListInvitationsCommand.js +21 -28
  48. package/dist-es/commands/ListMembersCommand.js +21 -28
  49. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
  50. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  51. package/dist-es/commands/TagResourceCommand.js +21 -28
  52. package/dist-es/commands/UntagResourceCommand.js +21 -28
  53. package/dist-es/commands/UpdateActionTargetCommand.js +21 -28
  54. package/dist-es/commands/UpdateFindingAggregatorCommand.js +21 -28
  55. package/dist-es/commands/UpdateFindingsCommand.js +21 -28
  56. package/dist-es/commands/UpdateInsightCommand.js +21 -28
  57. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
  58. package/dist-es/commands/UpdateSecurityHubConfigurationCommand.js +21 -28
  59. package/dist-es/commands/UpdateStandardsControlCommand.js +21 -28
  60. package/dist-es/endpoints.js +8 -8
  61. package/dist-es/models/SecurityHubServiceException.js +5 -10
  62. package/dist-es/models/models_0.js +951 -370
  63. package/dist-es/models/models_1.js +841 -290
  64. package/dist-es/models/models_2.js +93 -32
  65. package/dist-es/pagination/DescribeActionTargetsPaginator.js +25 -68
  66. package/dist-es/pagination/DescribeProductsPaginator.js +25 -68
  67. package/dist-es/pagination/DescribeStandardsControlsPaginator.js +25 -68
  68. package/dist-es/pagination/DescribeStandardsPaginator.js +25 -68
  69. package/dist-es/pagination/GetEnabledStandardsPaginator.js +25 -68
  70. package/dist-es/pagination/GetFindingsPaginator.js +25 -68
  71. package/dist-es/pagination/GetInsightsPaginator.js +25 -68
  72. package/dist-es/pagination/ListEnabledProductsForImportPaginator.js +25 -68
  73. package/dist-es/pagination/ListFindingAggregatorsPaginator.js +25 -68
  74. package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
  75. package/dist-es/pagination/ListMembersPaginator.js +25 -68
  76. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
  77. package/dist-es/protocols/Aws_restJson1.js +10756 -9674
  78. package/dist-es/runtimeConfig.browser.js +26 -12
  79. package/dist-es/runtimeConfig.js +30 -12
  80. package/dist-es/runtimeConfig.native.js +8 -5
  81. package/dist-es/runtimeConfig.shared.js +8 -11
  82. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateMembersRequestFilterSensitiveLog, CreateMembersResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1CreateMembersCommand, serializeAws_restJson1CreateMembersCommand, } from "../protocols/Aws_restJson1";
6
- var CreateMembersCommand = (function (_super) {
7
- __extends(CreateMembersCommand, _super);
8
- function CreateMembersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateMembersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateMembersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "CreateMembersCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "CreateMembersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateMembersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateMembersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateMembersCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateMembersCommand(input, context);
33
- };
34
- CreateMembersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateMembersCommand(output, context);
36
- };
37
- return CreateMembersCommand;
38
- }($Command));
39
- export { CreateMembersCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeclineInvitationsRequestFilterSensitiveLog, DeclineInvitationsResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DeclineInvitationsCommand, serializeAws_restJson1DeclineInvitationsCommand, } from "../protocols/Aws_restJson1";
6
- var DeclineInvitationsCommand = (function (_super) {
7
- __extends(DeclineInvitationsCommand, _super);
8
- function DeclineInvitationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeclineInvitationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeclineInvitationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DeclineInvitationsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DeclineInvitationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeclineInvitationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeclineInvitationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeclineInvitationsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeclineInvitationsCommand(input, context);
33
- };
34
- DeclineInvitationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeclineInvitationsCommand(output, context);
36
- };
37
- return DeclineInvitationsCommand;
38
- }($Command));
39
- export { DeclineInvitationsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteActionTargetRequestFilterSensitiveLog, DeleteActionTargetResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DeleteActionTargetCommand, serializeAws_restJson1DeleteActionTargetCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteActionTargetCommand = (function (_super) {
7
- __extends(DeleteActionTargetCommand, _super);
8
- function DeleteActionTargetCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteActionTargetCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteActionTargetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DeleteActionTargetCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DeleteActionTargetCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteActionTargetRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteActionTargetResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteActionTargetCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteActionTargetCommand(input, context);
33
- };
34
- DeleteActionTargetCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteActionTargetCommand(output, context);
36
- };
37
- return DeleteActionTargetCommand;
38
- }($Command));
39
- export { DeleteActionTargetCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteFindingAggregatorRequestFilterSensitiveLog, DeleteFindingAggregatorResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DeleteFindingAggregatorCommand, serializeAws_restJson1DeleteFindingAggregatorCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteFindingAggregatorCommand = (function (_super) {
7
- __extends(DeleteFindingAggregatorCommand, _super);
8
- function DeleteFindingAggregatorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteFindingAggregatorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteFindingAggregatorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DeleteFindingAggregatorCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DeleteFindingAggregatorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteFindingAggregatorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteFindingAggregatorResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteFindingAggregatorCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteFindingAggregatorCommand(input, context);
33
- };
34
- DeleteFindingAggregatorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteFindingAggregatorCommand(output, context);
36
- };
37
- return DeleteFindingAggregatorCommand;
38
- }($Command));
39
- export { DeleteFindingAggregatorCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteInsightRequestFilterSensitiveLog, DeleteInsightResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DeleteInsightCommand, serializeAws_restJson1DeleteInsightCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteInsightCommand = (function (_super) {
7
- __extends(DeleteInsightCommand, _super);
8
- function DeleteInsightCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteInsightCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteInsightCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DeleteInsightCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DeleteInsightCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteInsightRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteInsightResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteInsightCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteInsightCommand(input, context);
33
- };
34
- DeleteInsightCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteInsightCommand(output, context);
36
- };
37
- return DeleteInsightCommand;
38
- }($Command));
39
- export { DeleteInsightCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteInvitationsRequestFilterSensitiveLog, DeleteInvitationsResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DeleteInvitationsCommand, serializeAws_restJson1DeleteInvitationsCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteInvitationsCommand = (function (_super) {
7
- __extends(DeleteInvitationsCommand, _super);
8
- function DeleteInvitationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteInvitationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteInvitationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DeleteInvitationsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DeleteInvitationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteInvitationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteInvitationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteInvitationsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteInvitationsCommand(input, context);
33
- };
34
- DeleteInvitationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteInvitationsCommand(output, context);
36
- };
37
- return DeleteInvitationsCommand;
38
- }($Command));
39
- export { DeleteInvitationsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteMembersRequestFilterSensitiveLog, DeleteMembersResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DeleteMembersCommand, serializeAws_restJson1DeleteMembersCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteMembersCommand = (function (_super) {
7
- __extends(DeleteMembersCommand, _super);
8
- function DeleteMembersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteMembersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteMembersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DeleteMembersCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DeleteMembersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteMembersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteMembersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteMembersCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteMembersCommand(input, context);
33
- };
34
- DeleteMembersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteMembersCommand(output, context);
36
- };
37
- return DeleteMembersCommand;
38
- }($Command));
39
- export { DeleteMembersCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeActionTargetsRequestFilterSensitiveLog, DescribeActionTargetsResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DescribeActionTargetsCommand, serializeAws_restJson1DescribeActionTargetsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeActionTargetsCommand = (function (_super) {
7
- __extends(DescribeActionTargetsCommand, _super);
8
- function DescribeActionTargetsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeActionTargetsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeActionTargetsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DescribeActionTargetsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DescribeActionTargetsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeActionTargetsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeActionTargetsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeActionTargetsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeActionTargetsCommand(input, context);
33
- };
34
- DescribeActionTargetsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeActionTargetsCommand(output, context);
36
- };
37
- return DescribeActionTargetsCommand;
38
- }($Command));
39
- export { DescribeActionTargetsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeHubRequestFilterSensitiveLog, DescribeHubResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DescribeHubCommand, serializeAws_restJson1DescribeHubCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeHubCommand = (function (_super) {
7
- __extends(DescribeHubCommand, _super);
8
- function DescribeHubCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeHubCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeHubCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DescribeHubCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DescribeHubCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeHubRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeHubResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeHubCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeHubCommand(input, context);
33
- };
34
- DescribeHubCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeHubCommand(output, context);
36
- };
37
- return DescribeHubCommand;
38
- }($Command));
39
- export { DescribeHubCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeOrganizationConfigurationRequestFilterSensitiveLog, DescribeOrganizationConfigurationResponseFilterSensitiveLog, } from "../models/models_1";
5
4
  import { deserializeAws_restJson1DescribeOrganizationConfigurationCommand, serializeAws_restJson1DescribeOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeOrganizationConfigurationCommand = (function (_super) {
7
- __extends(DescribeOrganizationConfigurationCommand, _super);
8
- function DescribeOrganizationConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeOrganizationConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeOrganizationConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SecurityHubClient";
18
- var commandName = "DescribeOrganizationConfigurationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SecurityHubClient";
15
+ const commandName = "DescribeOrganizationConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeOrganizationConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeOrganizationConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeOrganizationConfigurationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeOrganizationConfigurationCommand(input, context);
33
- };
34
- DescribeOrganizationConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeOrganizationConfigurationCommand(output, context);
36
- };
37
- return DescribeOrganizationConfigurationCommand;
38
- }($Command));
39
- export { DescribeOrganizationConfigurationCommand };
31
+ }
32
+ }