@aws-sdk/client-kafkaconnect 3.183.0 → 3.186.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 (28) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/KafkaConnect.js +57 -50
  4. package/dist-es/KafkaConnectClient.js +28 -22
  5. package/dist-es/commands/CreateConnectorCommand.js +28 -21
  6. package/dist-es/commands/CreateCustomPluginCommand.js +28 -21
  7. package/dist-es/commands/CreateWorkerConfigurationCommand.js +28 -21
  8. package/dist-es/commands/DeleteConnectorCommand.js +28 -21
  9. package/dist-es/commands/DeleteCustomPluginCommand.js +28 -21
  10. package/dist-es/commands/DescribeConnectorCommand.js +28 -21
  11. package/dist-es/commands/DescribeCustomPluginCommand.js +28 -21
  12. package/dist-es/commands/DescribeWorkerConfigurationCommand.js +28 -21
  13. package/dist-es/commands/ListConnectorsCommand.js +28 -21
  14. package/dist-es/commands/ListCustomPluginsCommand.js +28 -21
  15. package/dist-es/commands/ListWorkerConfigurationsCommand.js +28 -21
  16. package/dist-es/commands/UpdateConnectorCommand.js +28 -21
  17. package/dist-es/endpoints.js +8 -8
  18. package/dist-es/models/KafkaConnectServiceException.js +10 -5
  19. package/dist-es/models/models_0.js +168 -326
  20. package/dist-es/pagination/ListConnectorsPaginator.js +68 -25
  21. package/dist-es/pagination/ListCustomPluginsPaginator.js +68 -25
  22. package/dist-es/pagination/ListWorkerConfigurationsPaginator.js +68 -25
  23. package/dist-es/protocols/Aws_restJson1.js +1639 -1297
  24. package/dist-es/runtimeConfig.browser.js +12 -26
  25. package/dist-es/runtimeConfig.js +12 -30
  26. package/dist-es/runtimeConfig.native.js +5 -8
  27. package/dist-es/runtimeConfig.shared.js +11 -8
  28. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-kafkaconnect
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-kafkaconnect
@@ -1620,10 +1620,10 @@ const deserializeAws_restJson1WorkerLogDeliveryDescription = (output, context) =
1620
1620
  };
1621
1621
  };
1622
1622
  const deserializeMetadata = (output) => {
1623
- var _a;
1623
+ var _a, _b;
1624
1624
  return ({
1625
1625
  httpStatusCode: output.statusCode,
1626
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1626
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
1627
1627
  extendedRequestId: output.headers["x-amz-id-2"],
1628
1628
  cfId: output.headers["x-amz-cf-id"],
1629
1629
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateConnectorCommand, } from "./commands/CreateConnectorCommand";
2
3
  import { CreateCustomPluginCommand, } from "./commands/CreateCustomPluginCommand";
3
4
  import { CreateWorkerConfigurationCommand, } from "./commands/CreateWorkerConfigurationCommand";
@@ -11,173 +12,179 @@ import { ListCustomPluginsCommand, } from "./commands/ListCustomPluginsCommand";
11
12
  import { ListWorkerConfigurationsCommand, } from "./commands/ListWorkerConfigurationsCommand";
12
13
  import { UpdateConnectorCommand, } from "./commands/UpdateConnectorCommand";
13
14
  import { KafkaConnectClient } from "./KafkaConnectClient";
14
- export class KafkaConnect extends KafkaConnectClient {
15
- createConnector(args, optionsOrCb, cb) {
16
- const command = new CreateConnectorCommand(args);
15
+ var KafkaConnect = (function (_super) {
16
+ __extends(KafkaConnect, _super);
17
+ function KafkaConnect() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+ KafkaConnect.prototype.createConnector = function (args, optionsOrCb, cb) {
21
+ var command = new CreateConnectorCommand(args);
17
22
  if (typeof optionsOrCb === "function") {
18
23
  this.send(command, optionsOrCb);
19
24
  }
20
25
  else if (typeof cb === "function") {
21
26
  if (typeof optionsOrCb !== "object")
22
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
27
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
23
28
  this.send(command, optionsOrCb || {}, cb);
24
29
  }
25
30
  else {
26
31
  return this.send(command, optionsOrCb);
27
32
  }
28
- }
29
- createCustomPlugin(args, optionsOrCb, cb) {
30
- const command = new CreateCustomPluginCommand(args);
33
+ };
34
+ KafkaConnect.prototype.createCustomPlugin = function (args, optionsOrCb, cb) {
35
+ var command = new CreateCustomPluginCommand(args);
31
36
  if (typeof optionsOrCb === "function") {
32
37
  this.send(command, optionsOrCb);
33
38
  }
34
39
  else if (typeof cb === "function") {
35
40
  if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
37
42
  this.send(command, optionsOrCb || {}, cb);
38
43
  }
39
44
  else {
40
45
  return this.send(command, optionsOrCb);
41
46
  }
42
- }
43
- createWorkerConfiguration(args, optionsOrCb, cb) {
44
- const command = new CreateWorkerConfigurationCommand(args);
47
+ };
48
+ KafkaConnect.prototype.createWorkerConfiguration = function (args, optionsOrCb, cb) {
49
+ var command = new CreateWorkerConfigurationCommand(args);
45
50
  if (typeof optionsOrCb === "function") {
46
51
  this.send(command, optionsOrCb);
47
52
  }
48
53
  else if (typeof cb === "function") {
49
54
  if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
56
  this.send(command, optionsOrCb || {}, cb);
52
57
  }
53
58
  else {
54
59
  return this.send(command, optionsOrCb);
55
60
  }
56
- }
57
- deleteConnector(args, optionsOrCb, cb) {
58
- const command = new DeleteConnectorCommand(args);
61
+ };
62
+ KafkaConnect.prototype.deleteConnector = function (args, optionsOrCb, cb) {
63
+ var command = new DeleteConnectorCommand(args);
59
64
  if (typeof optionsOrCb === "function") {
60
65
  this.send(command, optionsOrCb);
61
66
  }
62
67
  else if (typeof cb === "function") {
63
68
  if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
70
  this.send(command, optionsOrCb || {}, cb);
66
71
  }
67
72
  else {
68
73
  return this.send(command, optionsOrCb);
69
74
  }
70
- }
71
- deleteCustomPlugin(args, optionsOrCb, cb) {
72
- const command = new DeleteCustomPluginCommand(args);
75
+ };
76
+ KafkaConnect.prototype.deleteCustomPlugin = function (args, optionsOrCb, cb) {
77
+ var command = new DeleteCustomPluginCommand(args);
73
78
  if (typeof optionsOrCb === "function") {
74
79
  this.send(command, optionsOrCb);
75
80
  }
76
81
  else if (typeof cb === "function") {
77
82
  if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
84
  this.send(command, optionsOrCb || {}, cb);
80
85
  }
81
86
  else {
82
87
  return this.send(command, optionsOrCb);
83
88
  }
84
- }
85
- describeConnector(args, optionsOrCb, cb) {
86
- const command = new DescribeConnectorCommand(args);
89
+ };
90
+ KafkaConnect.prototype.describeConnector = function (args, optionsOrCb, cb) {
91
+ var command = new DescribeConnectorCommand(args);
87
92
  if (typeof optionsOrCb === "function") {
88
93
  this.send(command, optionsOrCb);
89
94
  }
90
95
  else if (typeof cb === "function") {
91
96
  if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
98
  this.send(command, optionsOrCb || {}, cb);
94
99
  }
95
100
  else {
96
101
  return this.send(command, optionsOrCb);
97
102
  }
98
- }
99
- describeCustomPlugin(args, optionsOrCb, cb) {
100
- const command = new DescribeCustomPluginCommand(args);
103
+ };
104
+ KafkaConnect.prototype.describeCustomPlugin = function (args, optionsOrCb, cb) {
105
+ var command = new DescribeCustomPluginCommand(args);
101
106
  if (typeof optionsOrCb === "function") {
102
107
  this.send(command, optionsOrCb);
103
108
  }
104
109
  else if (typeof cb === "function") {
105
110
  if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
112
  this.send(command, optionsOrCb || {}, cb);
108
113
  }
109
114
  else {
110
115
  return this.send(command, optionsOrCb);
111
116
  }
112
- }
113
- describeWorkerConfiguration(args, optionsOrCb, cb) {
114
- const command = new DescribeWorkerConfigurationCommand(args);
117
+ };
118
+ KafkaConnect.prototype.describeWorkerConfiguration = function (args, optionsOrCb, cb) {
119
+ var command = new DescribeWorkerConfigurationCommand(args);
115
120
  if (typeof optionsOrCb === "function") {
116
121
  this.send(command, optionsOrCb);
117
122
  }
118
123
  else if (typeof cb === "function") {
119
124
  if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
126
  this.send(command, optionsOrCb || {}, cb);
122
127
  }
123
128
  else {
124
129
  return this.send(command, optionsOrCb);
125
130
  }
126
- }
127
- listConnectors(args, optionsOrCb, cb) {
128
- const command = new ListConnectorsCommand(args);
131
+ };
132
+ KafkaConnect.prototype.listConnectors = function (args, optionsOrCb, cb) {
133
+ var command = new ListConnectorsCommand(args);
129
134
  if (typeof optionsOrCb === "function") {
130
135
  this.send(command, optionsOrCb);
131
136
  }
132
137
  else if (typeof cb === "function") {
133
138
  if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
140
  this.send(command, optionsOrCb || {}, cb);
136
141
  }
137
142
  else {
138
143
  return this.send(command, optionsOrCb);
139
144
  }
140
- }
141
- listCustomPlugins(args, optionsOrCb, cb) {
142
- const command = new ListCustomPluginsCommand(args);
145
+ };
146
+ KafkaConnect.prototype.listCustomPlugins = function (args, optionsOrCb, cb) {
147
+ var command = new ListCustomPluginsCommand(args);
143
148
  if (typeof optionsOrCb === "function") {
144
149
  this.send(command, optionsOrCb);
145
150
  }
146
151
  else if (typeof cb === "function") {
147
152
  if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
154
  this.send(command, optionsOrCb || {}, cb);
150
155
  }
151
156
  else {
152
157
  return this.send(command, optionsOrCb);
153
158
  }
154
- }
155
- listWorkerConfigurations(args, optionsOrCb, cb) {
156
- const command = new ListWorkerConfigurationsCommand(args);
159
+ };
160
+ KafkaConnect.prototype.listWorkerConfigurations = function (args, optionsOrCb, cb) {
161
+ var command = new ListWorkerConfigurationsCommand(args);
157
162
  if (typeof optionsOrCb === "function") {
158
163
  this.send(command, optionsOrCb);
159
164
  }
160
165
  else if (typeof cb === "function") {
161
166
  if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
168
  this.send(command, optionsOrCb || {}, cb);
164
169
  }
165
170
  else {
166
171
  return this.send(command, optionsOrCb);
167
172
  }
168
- }
169
- updateConnector(args, optionsOrCb, cb) {
170
- const command = new UpdateConnectorCommand(args);
173
+ };
174
+ KafkaConnect.prototype.updateConnector = function (args, optionsOrCb, cb) {
175
+ var command = new UpdateConnectorCommand(args);
171
176
  if (typeof optionsOrCb === "function") {
172
177
  this.send(command, optionsOrCb);
173
178
  }
174
179
  else if (typeof cb === "function") {
175
180
  if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
182
  this.send(command, optionsOrCb || {}, cb);
178
183
  }
179
184
  else {
180
185
  return this.send(command, optionsOrCb);
181
186
  }
182
- }
183
- }
187
+ };
188
+ return KafkaConnect;
189
+ }(KafkaConnectClient));
190
+ export { KafkaConnect };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class KafkaConnectClient 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));
12
+ var KafkaConnectClient = (function (_super) {
13
+ __extends(KafkaConnectClient, _super);
14
+ function KafkaConnectClient(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;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ KafkaConnectClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return KafkaConnectClient;
38
+ }(__Client));
39
+ export { KafkaConnectClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateConnectorRequestFilterSensitiveLog, CreateConnectorResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateConnectorCommand, serializeAws_restJson1CreateConnectorCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateConnectorCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateConnectorCommand = (function (_super) {
7
+ __extends(CreateConnectorCommand, _super);
8
+ function CreateConnectorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateConnectorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KafkaConnectClient";
15
- const commandName = "CreateConnectorCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KafkaConnectClient";
18
+ var commandName = "CreateConnectorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateConnectorRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateConnectorResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateConnectorCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateConnectorCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateConnectorCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateConnectorCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateConnectorCommand;
38
+ }($Command));
39
+ export { CreateConnectorCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateCustomPluginRequestFilterSensitiveLog, CreateCustomPluginResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateCustomPluginCommand, serializeAws_restJson1CreateCustomPluginCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateCustomPluginCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateCustomPluginCommand = (function (_super) {
7
+ __extends(CreateCustomPluginCommand, _super);
8
+ function CreateCustomPluginCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateCustomPluginCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KafkaConnectClient";
15
- const commandName = "CreateCustomPluginCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KafkaConnectClient";
18
+ var commandName = "CreateCustomPluginCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateCustomPluginRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateCustomPluginResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateCustomPluginCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateCustomPluginCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateCustomPluginCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateCustomPluginCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateCustomPluginCommand;
38
+ }($Command));
39
+ export { CreateCustomPluginCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateWorkerConfigurationRequestFilterSensitiveLog, CreateWorkerConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateWorkerConfigurationCommand, serializeAws_restJson1CreateWorkerConfigurationCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateWorkerConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateWorkerConfigurationCommand = (function (_super) {
7
+ __extends(CreateWorkerConfigurationCommand, _super);
8
+ function CreateWorkerConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateWorkerConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KafkaConnectClient";
15
- const commandName = "CreateWorkerConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KafkaConnectClient";
18
+ var commandName = "CreateWorkerConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateWorkerConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateWorkerConfigurationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateWorkerConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateWorkerConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateWorkerConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateWorkerConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateWorkerConfigurationCommand;
38
+ }($Command));
39
+ export { CreateWorkerConfigurationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteConnectorRequestFilterSensitiveLog, DeleteConnectorResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteConnectorCommand, serializeAws_restJson1DeleteConnectorCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteConnectorCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteConnectorCommand = (function (_super) {
7
+ __extends(DeleteConnectorCommand, _super);
8
+ function DeleteConnectorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteConnectorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KafkaConnectClient";
15
- const commandName = "DeleteConnectorCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KafkaConnectClient";
18
+ var commandName = "DeleteConnectorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteConnectorRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteConnectorResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteConnectorCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteConnectorCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteConnectorCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteConnectorCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteConnectorCommand;
38
+ }($Command));
39
+ export { DeleteConnectorCommand };