@aws-sdk/client-eventbridge 3.185.0 → 3.188.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 (68) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/EventBridge.js +226 -233
  3. package/dist-es/EventBridgeClient.js +22 -28
  4. package/dist-es/commands/ActivateEventSourceCommand.js +22 -29
  5. package/dist-es/commands/CancelReplayCommand.js +21 -28
  6. package/dist-es/commands/CreateApiDestinationCommand.js +21 -28
  7. package/dist-es/commands/CreateArchiveCommand.js +21 -28
  8. package/dist-es/commands/CreateConnectionCommand.js +21 -28
  9. package/dist-es/commands/CreateEndpointCommand.js +21 -28
  10. package/dist-es/commands/CreateEventBusCommand.js +21 -28
  11. package/dist-es/commands/CreatePartnerEventSourceCommand.js +21 -28
  12. package/dist-es/commands/DeactivateEventSourceCommand.js +22 -29
  13. package/dist-es/commands/DeauthorizeConnectionCommand.js +21 -28
  14. package/dist-es/commands/DeleteApiDestinationCommand.js +21 -28
  15. package/dist-es/commands/DeleteArchiveCommand.js +21 -28
  16. package/dist-es/commands/DeleteConnectionCommand.js +21 -28
  17. package/dist-es/commands/DeleteEndpointCommand.js +21 -28
  18. package/dist-es/commands/DeleteEventBusCommand.js +22 -29
  19. package/dist-es/commands/DeletePartnerEventSourceCommand.js +22 -29
  20. package/dist-es/commands/DeleteRuleCommand.js +22 -29
  21. package/dist-es/commands/DescribeApiDestinationCommand.js +21 -28
  22. package/dist-es/commands/DescribeArchiveCommand.js +21 -28
  23. package/dist-es/commands/DescribeConnectionCommand.js +21 -28
  24. package/dist-es/commands/DescribeEndpointCommand.js +21 -28
  25. package/dist-es/commands/DescribeEventBusCommand.js +21 -28
  26. package/dist-es/commands/DescribeEventSourceCommand.js +21 -28
  27. package/dist-es/commands/DescribePartnerEventSourceCommand.js +21 -28
  28. package/dist-es/commands/DescribeReplayCommand.js +21 -28
  29. package/dist-es/commands/DescribeRuleCommand.js +21 -28
  30. package/dist-es/commands/DisableRuleCommand.js +22 -29
  31. package/dist-es/commands/EnableRuleCommand.js +22 -29
  32. package/dist-es/commands/ListApiDestinationsCommand.js +21 -28
  33. package/dist-es/commands/ListArchivesCommand.js +21 -28
  34. package/dist-es/commands/ListConnectionsCommand.js +21 -28
  35. package/dist-es/commands/ListEndpointsCommand.js +21 -28
  36. package/dist-es/commands/ListEventBusesCommand.js +21 -28
  37. package/dist-es/commands/ListEventSourcesCommand.js +21 -28
  38. package/dist-es/commands/ListPartnerEventSourceAccountsCommand.js +21 -28
  39. package/dist-es/commands/ListPartnerEventSourcesCommand.js +21 -28
  40. package/dist-es/commands/ListReplaysCommand.js +21 -28
  41. package/dist-es/commands/ListRuleNamesByTargetCommand.js +21 -28
  42. package/dist-es/commands/ListRulesCommand.js +21 -28
  43. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  44. package/dist-es/commands/ListTargetsByRuleCommand.js +21 -28
  45. package/dist-es/commands/PutEventsCommand.js +21 -28
  46. package/dist-es/commands/PutPartnerEventsCommand.js +21 -28
  47. package/dist-es/commands/PutPermissionCommand.js +22 -29
  48. package/dist-es/commands/PutRuleCommand.js +21 -28
  49. package/dist-es/commands/PutTargetsCommand.js +21 -28
  50. package/dist-es/commands/RemovePermissionCommand.js +22 -29
  51. package/dist-es/commands/RemoveTargetsCommand.js +21 -28
  52. package/dist-es/commands/StartReplayCommand.js +21 -28
  53. package/dist-es/commands/TagResourceCommand.js +21 -28
  54. package/dist-es/commands/TestEventPatternCommand.js +21 -28
  55. package/dist-es/commands/UntagResourceCommand.js +21 -28
  56. package/dist-es/commands/UpdateApiDestinationCommand.js +21 -28
  57. package/dist-es/commands/UpdateArchiveCommand.js +21 -28
  58. package/dist-es/commands/UpdateConnectionCommand.js +21 -28
  59. package/dist-es/commands/UpdateEndpointCommand.js +21 -28
  60. package/dist-es/endpoints.js +8 -8
  61. package/dist-es/models/EventBridgeServiceException.js +5 -10
  62. package/dist-es/models/models_0.js +625 -290
  63. package/dist-es/protocols/Aws_json1_1.js +3868 -4754
  64. package/dist-es/runtimeConfig.browser.js +26 -12
  65. package/dist-es/runtimeConfig.js +30 -12
  66. package/dist-es/runtimeConfig.native.js +8 -5
  67. package/dist-es/runtimeConfig.shared.js +9 -12
  68. package/package.json +35 -35
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var EventBridgeClient = (function (_super) {
13
- __extends(EventBridgeClient, _super);
14
- function EventBridgeClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class EventBridgeClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- EventBridgeClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return EventBridgeClient;
38
- }(__Client));
39
- export { EventBridgeClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { ActivateEventSourceRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ActivateEventSourceCommand, serializeAws_json1_1ActivateEventSourceCommand, } from "../protocols/Aws_json1_1";
6
- var ActivateEventSourceCommand = (function (_super) {
7
- __extends(ActivateEventSourceCommand, _super);
8
- function ActivateEventSourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ActivateEventSourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ActivateEventSourceCommand.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 = "EventBridgeClient";
18
- var commandName = "ActivateEventSourceCommand";
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 = "EventBridgeClient";
15
+ const commandName = "ActivateEventSourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ActivateEventSourceRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ActivateEventSourceCommand.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_json1_1ActivateEventSourceCommand(input, context);
33
- };
34
- ActivateEventSourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ActivateEventSourceCommand(output, context);
36
- };
37
- return ActivateEventSourceCommand;
38
- }($Command));
39
- export { ActivateEventSourceCommand };
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 { CancelReplayRequestFilterSensitiveLog, CancelReplayResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CancelReplayCommand, serializeAws_json1_1CancelReplayCommand, } from "../protocols/Aws_json1_1";
6
- var CancelReplayCommand = (function (_super) {
7
- __extends(CancelReplayCommand, _super);
8
- function CancelReplayCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelReplayCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelReplayCommand.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 = "EventBridgeClient";
18
- var commandName = "CancelReplayCommand";
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 = "EventBridgeClient";
15
+ const commandName = "CancelReplayCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelReplayRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelReplayResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelReplayCommand.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_json1_1CancelReplayCommand(input, context);
33
- };
34
- CancelReplayCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CancelReplayCommand(output, context);
36
- };
37
- return CancelReplayCommand;
38
- }($Command));
39
- export { CancelReplayCommand };
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 { CreateApiDestinationRequestFilterSensitiveLog, CreateApiDestinationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateApiDestinationCommand, serializeAws_json1_1CreateApiDestinationCommand, } from "../protocols/Aws_json1_1";
6
- var CreateApiDestinationCommand = (function (_super) {
7
- __extends(CreateApiDestinationCommand, _super);
8
- function CreateApiDestinationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateApiDestinationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateApiDestinationCommand.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 = "EventBridgeClient";
18
- var commandName = "CreateApiDestinationCommand";
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 = "EventBridgeClient";
15
+ const commandName = "CreateApiDestinationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateApiDestinationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateApiDestinationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateApiDestinationCommand.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_json1_1CreateApiDestinationCommand(input, context);
33
- };
34
- CreateApiDestinationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateApiDestinationCommand(output, context);
36
- };
37
- return CreateApiDestinationCommand;
38
- }($Command));
39
- export { CreateApiDestinationCommand };
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 { CreateArchiveRequestFilterSensitiveLog, CreateArchiveResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateArchiveCommand, serializeAws_json1_1CreateArchiveCommand, } from "../protocols/Aws_json1_1";
6
- var CreateArchiveCommand = (function (_super) {
7
- __extends(CreateArchiveCommand, _super);
8
- function CreateArchiveCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateArchiveCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateArchiveCommand.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 = "EventBridgeClient";
18
- var commandName = "CreateArchiveCommand";
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 = "EventBridgeClient";
15
+ const commandName = "CreateArchiveCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateArchiveRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateArchiveResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateArchiveCommand.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_json1_1CreateArchiveCommand(input, context);
33
- };
34
- CreateArchiveCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateArchiveCommand(output, context);
36
- };
37
- return CreateArchiveCommand;
38
- }($Command));
39
- export { CreateArchiveCommand };
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 { CreateConnectionRequestFilterSensitiveLog, CreateConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateConnectionCommand, serializeAws_json1_1CreateConnectionCommand, } from "../protocols/Aws_json1_1";
6
- var CreateConnectionCommand = (function (_super) {
7
- __extends(CreateConnectionCommand, _super);
8
- function CreateConnectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateConnectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateConnectionCommand.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 = "EventBridgeClient";
18
- var commandName = "CreateConnectionCommand";
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 = "EventBridgeClient";
15
+ const commandName = "CreateConnectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateConnectionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateConnectionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateConnectionCommand.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_json1_1CreateConnectionCommand(input, context);
33
- };
34
- CreateConnectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateConnectionCommand(output, context);
36
- };
37
- return CreateConnectionCommand;
38
- }($Command));
39
- export { CreateConnectionCommand };
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 { CreateEndpointRequestFilterSensitiveLog, CreateEndpointResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateEndpointCommand, serializeAws_json1_1CreateEndpointCommand, } from "../protocols/Aws_json1_1";
6
- var CreateEndpointCommand = (function (_super) {
7
- __extends(CreateEndpointCommand, _super);
8
- function CreateEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateEndpointCommand.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 = "EventBridgeClient";
18
- var commandName = "CreateEndpointCommand";
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 = "EventBridgeClient";
15
+ const commandName = "CreateEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateEndpointRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateEndpointResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateEndpointCommand.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_json1_1CreateEndpointCommand(input, context);
33
- };
34
- CreateEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateEndpointCommand(output, context);
36
- };
37
- return CreateEndpointCommand;
38
- }($Command));
39
- export { CreateEndpointCommand };
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 { CreateEventBusRequestFilterSensitiveLog, CreateEventBusResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateEventBusCommand, serializeAws_json1_1CreateEventBusCommand, } from "../protocols/Aws_json1_1";
6
- var CreateEventBusCommand = (function (_super) {
7
- __extends(CreateEventBusCommand, _super);
8
- function CreateEventBusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateEventBusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateEventBusCommand.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 = "EventBridgeClient";
18
- var commandName = "CreateEventBusCommand";
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 = "EventBridgeClient";
15
+ const commandName = "CreateEventBusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateEventBusRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateEventBusResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateEventBusCommand.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_json1_1CreateEventBusCommand(input, context);
33
- };
34
- CreateEventBusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateEventBusCommand(output, context);
36
- };
37
- return CreateEventBusCommand;
38
- }($Command));
39
- export { CreateEventBusCommand };
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 { CreatePartnerEventSourceRequestFilterSensitiveLog, CreatePartnerEventSourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreatePartnerEventSourceCommand, serializeAws_json1_1CreatePartnerEventSourceCommand, } from "../protocols/Aws_json1_1";
6
- var CreatePartnerEventSourceCommand = (function (_super) {
7
- __extends(CreatePartnerEventSourceCommand, _super);
8
- function CreatePartnerEventSourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreatePartnerEventSourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreatePartnerEventSourceCommand.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 = "EventBridgeClient";
18
- var commandName = "CreatePartnerEventSourceCommand";
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 = "EventBridgeClient";
15
+ const commandName = "CreatePartnerEventSourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreatePartnerEventSourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreatePartnerEventSourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreatePartnerEventSourceCommand.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_json1_1CreatePartnerEventSourceCommand(input, context);
33
- };
34
- CreatePartnerEventSourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreatePartnerEventSourceCommand(output, context);
36
- };
37
- return CreatePartnerEventSourceCommand;
38
- }($Command));
39
- export { CreatePartnerEventSourceCommand };
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 { DeactivateEventSourceRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeactivateEventSourceCommand, serializeAws_json1_1DeactivateEventSourceCommand, } from "../protocols/Aws_json1_1";
6
- var DeactivateEventSourceCommand = (function (_super) {
7
- __extends(DeactivateEventSourceCommand, _super);
8
- function DeactivateEventSourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeactivateEventSourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeactivateEventSourceCommand.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 = "EventBridgeClient";
18
- var commandName = "DeactivateEventSourceCommand";
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 = "EventBridgeClient";
15
+ const commandName = "DeactivateEventSourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeactivateEventSourceRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeactivateEventSourceCommand.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_json1_1DeactivateEventSourceCommand(input, context);
33
- };
34
- DeactivateEventSourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeactivateEventSourceCommand(output, context);
36
- };
37
- return DeactivateEventSourceCommand;
38
- }($Command));
39
- export { DeactivateEventSourceCommand };
31
+ }
32
+ }