@aws-sdk/client-kafkaconnect 3.53.0 → 3.55.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 (50) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/KafkaConnect.js +15 -0
  3. package/dist-cjs/KafkaConnectClient.js +13 -13
  4. package/dist-cjs/commands/CreateConnectorCommand.js +3 -3
  5. package/dist-cjs/commands/CreateCustomPluginCommand.js +3 -3
  6. package/dist-cjs/commands/CreateWorkerConfigurationCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteConnectorCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteCustomPluginCommand.js +36 -0
  9. package/dist-cjs/commands/DescribeConnectorCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeCustomPluginCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeWorkerConfigurationCommand.js +3 -3
  12. package/dist-cjs/commands/ListConnectorsCommand.js +3 -3
  13. package/dist-cjs/commands/ListCustomPluginsCommand.js +3 -3
  14. package/dist-cjs/commands/ListWorkerConfigurationsCommand.js +3 -3
  15. package/dist-cjs/commands/UpdateConnectorCommand.js +3 -3
  16. package/dist-cjs/commands/index.js +1 -0
  17. package/dist-cjs/endpoints.js +1 -1
  18. package/dist-cjs/models/models_0.js +27 -1
  19. package/dist-cjs/protocols/Aws_restJson1.js +233 -134
  20. package/dist-cjs/runtimeConfig.browser.js +4 -4
  21. package/dist-cjs/runtimeConfig.js +9 -9
  22. package/dist-cjs/runtimeConfig.native.js +1 -1
  23. package/dist-es/KafkaConnect.js +26 -11
  24. package/dist-es/commands/DeleteCustomPluginCommand.js +39 -0
  25. package/dist-es/commands/index.js +1 -0
  26. package/dist-es/models/models_0.js +20 -5
  27. package/dist-es/pagination/ListConnectorsPaginator.js +4 -4
  28. package/dist-es/pagination/ListCustomPluginsPaginator.js +4 -4
  29. package/dist-es/pagination/ListWorkerConfigurationsPaginator.js +4 -4
  30. package/dist-es/protocols/Aws_restJson1.js +140 -11
  31. package/dist-types/KafkaConnect.d.ts +10 -1
  32. package/dist-types/KafkaConnectClient.d.ts +5 -4
  33. package/dist-types/commands/DeleteCustomPluginCommand.d.ts +35 -0
  34. package/dist-types/commands/ListConnectorsCommand.d.ts +3 -1
  35. package/dist-types/commands/index.d.ts +1 -0
  36. package/dist-types/models/models_0.d.ts +179 -58
  37. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  38. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  39. package/dist-types/runtimeConfig.d.ts +1 -1
  40. package/dist-types/runtimeConfig.native.d.ts +3 -3
  41. package/dist-types/ts3.4/KafkaConnect.d.ts +5 -0
  42. package/dist-types/ts3.4/KafkaConnectClient.d.ts +5 -4
  43. package/dist-types/ts3.4/commands/DeleteCustomPluginCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +33 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  47. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  48. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  49. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  50. package/package.json +34 -34
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateConnectorCommand = function (input, conte
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors";
17
17
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacity !== undefined &&
18
18
  input.capacity !== null && { capacity: serializeAws_restJson1Capacity(input.capacity, context) })), (input.connectorConfiguration !== undefined &&
19
19
  input.connectorConfiguration !== null && {
@@ -56,7 +56,7 @@ export var serializeAws_restJson1CreateCustomPluginCommand = function (input, co
56
56
  headers = {
57
57
  "content-type": "application/json",
58
58
  };
59
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
59
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
60
60
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.location !== undefined &&
61
61
  input.location !== null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) })), (input.name !== undefined && input.name !== null && { name: input.name })));
62
62
  return [2, new __HttpRequest({
@@ -81,7 +81,7 @@ export var serializeAws_restJson1CreateWorkerConfigurationCommand = function (in
81
81
  headers = {
82
82
  "content-type": "application/json",
83
83
  };
84
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
84
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
85
85
  body = JSON.stringify(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.propertiesFileContent !== undefined &&
86
86
  input.propertiesFileContent !== null && { propertiesFileContent: input.propertiesFileContent })));
87
87
  return [2, new __HttpRequest({
@@ -104,7 +104,7 @@ export var serializeAws_restJson1DeleteConnectorCommand = function (input, conte
104
104
  case 1:
105
105
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
106
106
  headers = {};
107
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
107
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
108
108
  if (input.connectorArn !== undefined) {
109
109
  labelValue = input.connectorArn;
110
110
  if (labelValue.length <= 0) {
@@ -129,6 +129,37 @@ export var serializeAws_restJson1DeleteConnectorCommand = function (input, conte
129
129
  }
130
130
  });
131
131
  }); };
132
+ export var serializeAws_restJson1DeleteCustomPluginCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
133
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
134
+ return __generator(this, function (_c) {
135
+ switch (_c.label) {
136
+ case 0: return [4, context.endpoint()];
137
+ case 1:
138
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
139
+ headers = {};
140
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins/{customPluginArn}";
141
+ if (input.customPluginArn !== undefined) {
142
+ labelValue = input.customPluginArn;
143
+ if (labelValue.length <= 0) {
144
+ throw new Error("Empty value provided for input HTTP label: customPluginArn.");
145
+ }
146
+ resolvedPath = resolvedPath.replace("{customPluginArn}", __extendedEncodeURIComponent(labelValue));
147
+ }
148
+ else {
149
+ throw new Error("No value provided for input HTTP label: customPluginArn.");
150
+ }
151
+ return [2, new __HttpRequest({
152
+ protocol: protocol,
153
+ hostname: hostname,
154
+ port: port,
155
+ method: "DELETE",
156
+ headers: headers,
157
+ path: resolvedPath,
158
+ body: body,
159
+ })];
160
+ }
161
+ });
162
+ }); };
132
163
  export var serializeAws_restJson1DescribeConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
133
164
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
134
165
  return __generator(this, function (_c) {
@@ -137,7 +168,7 @@ export var serializeAws_restJson1DescribeConnectorCommand = function (input, con
137
168
  case 1:
138
169
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
139
170
  headers = {};
140
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
171
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
141
172
  if (input.connectorArn !== undefined) {
142
173
  labelValue = input.connectorArn;
143
174
  if (labelValue.length <= 0) {
@@ -168,7 +199,7 @@ export var serializeAws_restJson1DescribeCustomPluginCommand = function (input,
168
199
  case 1:
169
200
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
170
201
  headers = {};
171
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins/{customPluginArn}";
202
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins/{customPluginArn}";
172
203
  if (input.customPluginArn !== undefined) {
173
204
  labelValue = input.customPluginArn;
174
205
  if (labelValue.length <= 0) {
@@ -199,7 +230,7 @@ export var serializeAws_restJson1DescribeWorkerConfigurationCommand = function (
199
230
  case 1:
200
231
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
201
232
  headers = {};
202
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
233
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
203
234
  "/v1/worker-configurations/{workerConfigurationArn}";
204
235
  if (input.workerConfigurationArn !== undefined) {
205
236
  labelValue = input.workerConfigurationArn;
@@ -231,7 +262,7 @@ export var serializeAws_restJson1ListConnectorsCommand = function (input, contex
231
262
  case 1:
232
263
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
233
264
  headers = {};
234
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors";
265
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors";
235
266
  query = __assign(__assign(__assign({}, (input.connectorNamePrefix !== undefined && { connectorNamePrefix: input.connectorNamePrefix })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
236
267
  return [2, new __HttpRequest({
237
268
  protocol: protocol,
@@ -254,7 +285,7 @@ export var serializeAws_restJson1ListCustomPluginsCommand = function (input, con
254
285
  case 1:
255
286
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
256
287
  headers = {};
257
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
288
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
258
289
  query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
259
290
  return [2, new __HttpRequest({
260
291
  protocol: protocol,
@@ -277,7 +308,7 @@ export var serializeAws_restJson1ListWorkerConfigurationsCommand = function (inp
277
308
  case 1:
278
309
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
279
310
  headers = {};
280
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
311
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
281
312
  query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
282
313
  return [2, new __HttpRequest({
283
314
  protocol: protocol,
@@ -302,7 +333,7 @@ export var serializeAws_restJson1UpdateConnectorCommand = function (input, conte
302
333
  headers = {
303
334
  "content-type": "application/json",
304
335
  };
305
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
336
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
306
337
  if (input.connectorArn !== undefined) {
307
338
  labelValue = input.connectorArn;
308
339
  if (labelValue.length <= 0) {
@@ -697,6 +728,90 @@ var deserializeAws_restJson1DeleteConnectorCommandError = function (output, cont
697
728
  }
698
729
  });
699
730
  }); };
731
+ export var deserializeAws_restJson1DeleteCustomPluginCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
732
+ var contents, data, _a, _b;
733
+ return __generator(this, function (_c) {
734
+ switch (_c.label) {
735
+ case 0:
736
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
737
+ return [2, deserializeAws_restJson1DeleteCustomPluginCommandError(output, context)];
738
+ }
739
+ contents = {
740
+ $metadata: deserializeMetadata(output),
741
+ customPluginArn: undefined,
742
+ customPluginState: undefined,
743
+ };
744
+ _a = __expectNonNull;
745
+ _b = __expectObject;
746
+ return [4, parseBody(output.body, context)];
747
+ case 1:
748
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
749
+ if (data.customPluginArn !== undefined && data.customPluginArn !== null) {
750
+ contents.customPluginArn = __expectString(data.customPluginArn);
751
+ }
752
+ if (data.customPluginState !== undefined && data.customPluginState !== null) {
753
+ contents.customPluginState = __expectString(data.customPluginState);
754
+ }
755
+ return [2, Promise.resolve(contents)];
756
+ }
757
+ });
758
+ }); };
759
+ var deserializeAws_restJson1DeleteCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
760
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
761
+ var _c;
762
+ return __generator(this, function (_d) {
763
+ switch (_d.label) {
764
+ case 0:
765
+ _a = [__assign({}, output)];
766
+ _c = {};
767
+ return [4, parseBody(output.body, context)];
768
+ case 1:
769
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
770
+ errorCode = "UnknownError";
771
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
772
+ _b = errorCode;
773
+ switch (_b) {
774
+ case "BadRequestException": return [3, 2];
775
+ case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
776
+ case "ForbiddenException": return [3, 4];
777
+ case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
778
+ case "InternalServerErrorException": return [3, 6];
779
+ case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
780
+ case "NotFoundException": return [3, 8];
781
+ case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
782
+ case "ServiceUnavailableException": return [3, 10];
783
+ case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
784
+ case "TooManyRequestsException": return [3, 12];
785
+ case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
786
+ case "UnauthorizedException": return [3, 14];
787
+ case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
788
+ }
789
+ return [3, 16];
790
+ case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
791
+ case 3: throw _d.sent();
792
+ case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
793
+ case 5: throw _d.sent();
794
+ case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
795
+ case 7: throw _d.sent();
796
+ case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
797
+ case 9: throw _d.sent();
798
+ case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
799
+ case 11: throw _d.sent();
800
+ case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
801
+ case 13: throw _d.sent();
802
+ case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
803
+ case 15: throw _d.sent();
804
+ case 16:
805
+ parsedBody = parsedOutput.body;
806
+ response = new __BaseException({
807
+ name: parsedBody.code || parsedBody.Code || errorCode,
808
+ $fault: "client",
809
+ $metadata: deserializeMetadata(output),
810
+ });
811
+ throw __decorateServiceException(response, parsedBody);
812
+ }
813
+ });
814
+ }); };
700
815
  export var deserializeAws_restJson1DescribeConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
701
816
  var contents, data, _a, _b;
702
817
  return __generator(this, function (_c) {
@@ -722,6 +837,7 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
722
837
  logDelivery: undefined,
723
838
  plugins: undefined,
724
839
  serviceExecutionRoleArn: undefined,
840
+ stateDescription: undefined,
725
841
  workerConfiguration: undefined,
726
842
  };
727
843
  _a = __expectNonNull;
@@ -774,6 +890,9 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
774
890
  if (data.serviceExecutionRoleArn !== undefined && data.serviceExecutionRoleArn !== null) {
775
891
  contents.serviceExecutionRoleArn = __expectString(data.serviceExecutionRoleArn);
776
892
  }
893
+ if (data.stateDescription !== undefined && data.stateDescription !== null) {
894
+ contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
895
+ }
777
896
  if (data.workerConfiguration !== undefined && data.workerConfiguration !== null) {
778
897
  contents.workerConfiguration = deserializeAws_restJson1WorkerConfigurationDescription(data.workerConfiguration, context);
779
898
  }
@@ -853,6 +972,7 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
853
972
  description: undefined,
854
973
  latestRevision: undefined,
855
974
  name: undefined,
975
+ stateDescription: undefined,
856
976
  };
857
977
  _a = __expectNonNull;
858
978
  _b = __expectObject;
@@ -877,6 +997,9 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
877
997
  if (data.name !== undefined && data.name !== null) {
878
998
  contents.name = __expectString(data.name);
879
999
  }
1000
+ if (data.stateDescription !== undefined && data.stateDescription !== null) {
1001
+ contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
1002
+ }
880
1003
  return [2, Promise.resolve(contents)];
881
1004
  }
882
1005
  });
@@ -1875,6 +1998,12 @@ var deserializeAws_restJson1ScaleOutPolicyDescription = function (output, contex
1875
1998
  cpuUtilizationPercentage: __expectInt32(output.cpuUtilizationPercentage),
1876
1999
  };
1877
2000
  };
2001
+ var deserializeAws_restJson1StateDescription = function (output, context) {
2002
+ return {
2003
+ code: __expectString(output.code),
2004
+ message: __expectString(output.message),
2005
+ };
2006
+ };
1878
2007
  var deserializeAws_restJson1VpcDescription = function (output, context) {
1879
2008
  return {
1880
2009
  securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
@@ -3,6 +3,7 @@ import { CreateConnectorCommandInput, CreateConnectorCommandOutput } from "./com
3
3
  import { CreateCustomPluginCommandInput, CreateCustomPluginCommandOutput } from "./commands/CreateCustomPluginCommand";
4
4
  import { CreateWorkerConfigurationCommandInput, CreateWorkerConfigurationCommandOutput } from "./commands/CreateWorkerConfigurationCommand";
5
5
  import { DeleteConnectorCommandInput, DeleteConnectorCommandOutput } from "./commands/DeleteConnectorCommand";
6
+ import { DeleteCustomPluginCommandInput, DeleteCustomPluginCommandOutput } from "./commands/DeleteCustomPluginCommand";
6
7
  import { DescribeConnectorCommandInput, DescribeConnectorCommandOutput } from "./commands/DescribeConnectorCommand";
7
8
  import { DescribeCustomPluginCommandInput, DescribeCustomPluginCommandOutput } from "./commands/DescribeCustomPluginCommand";
8
9
  import { DescribeWorkerConfigurationCommandInput, DescribeWorkerConfigurationCommandOutput } from "./commands/DescribeWorkerConfigurationCommand";
@@ -39,6 +40,12 @@ export declare class KafkaConnect extends KafkaConnectClient {
39
40
  deleteConnector(args: DeleteConnectorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectorCommandOutput>;
40
41
  deleteConnector(args: DeleteConnectorCommandInput, cb: (err: any, data?: DeleteConnectorCommandOutput) => void): void;
41
42
  deleteConnector(args: DeleteConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectorCommandOutput) => void): void;
43
+ /**
44
+ * <p>Deletes a custom plugin.</p>
45
+ */
46
+ deleteCustomPlugin(args: DeleteCustomPluginCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCustomPluginCommandOutput>;
47
+ deleteCustomPlugin(args: DeleteCustomPluginCommandInput, cb: (err: any, data?: DeleteCustomPluginCommandOutput) => void): void;
48
+ deleteCustomPlugin(args: DeleteCustomPluginCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCustomPluginCommandOutput) => void): void;
42
49
  /**
43
50
  * <p>Returns summary information about the connector.</p>
44
51
  */
@@ -58,7 +65,9 @@ export declare class KafkaConnect extends KafkaConnectClient {
58
65
  describeWorkerConfiguration(args: DescribeWorkerConfigurationCommandInput, cb: (err: any, data?: DescribeWorkerConfigurationCommandOutput) => void): void;
59
66
  describeWorkerConfiguration(args: DescribeWorkerConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeWorkerConfigurationCommandOutput) => void): void;
60
67
  /**
61
- * <p>Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.</p>
68
+ * <p>Returns a list of all the connectors in this account and Region. The list is limited to
69
+ * connectors whose name starts with the specified prefix. The response also includes a
70
+ * description of each of the listed connectors.</p>
62
71
  */
63
72
  listConnectors(args: ListConnectorsCommandInput, options?: __HttpHandlerOptions): Promise<ListConnectorsCommandOutput>;
64
73
  listConnectors(args: ListConnectorsCommandInput, cb: (err: any, data?: ListConnectorsCommandOutput) => void): void;
@@ -5,11 +5,12 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateConnectorCommandInput, CreateConnectorCommandOutput } from "./commands/CreateConnectorCommand";
10
10
  import { CreateCustomPluginCommandInput, CreateCustomPluginCommandOutput } from "./commands/CreateCustomPluginCommand";
11
11
  import { CreateWorkerConfigurationCommandInput, CreateWorkerConfigurationCommandOutput } from "./commands/CreateWorkerConfigurationCommand";
12
12
  import { DeleteConnectorCommandInput, DeleteConnectorCommandOutput } from "./commands/DeleteConnectorCommand";
13
+ import { DeleteCustomPluginCommandInput, DeleteCustomPluginCommandOutput } from "./commands/DeleteCustomPluginCommand";
13
14
  import { DescribeConnectorCommandInput, DescribeConnectorCommandOutput } from "./commands/DescribeConnectorCommand";
14
15
  import { DescribeCustomPluginCommandInput, DescribeCustomPluginCommandOutput } from "./commands/DescribeCustomPluginCommand";
15
16
  import { DescribeWorkerConfigurationCommandInput, DescribeWorkerConfigurationCommandOutput } from "./commands/DescribeWorkerConfigurationCommand";
@@ -17,8 +18,8 @@ import { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "./comma
17
18
  import { ListCustomPluginsCommandInput, ListCustomPluginsCommandOutput } from "./commands/ListCustomPluginsCommand";
18
19
  import { ListWorkerConfigurationsCommandInput, ListWorkerConfigurationsCommandOutput } from "./commands/ListWorkerConfigurationsCommand";
19
20
  import { UpdateConnectorCommandInput, UpdateConnectorCommandOutput } from "./commands/UpdateConnectorCommand";
20
- export declare type ServiceInputTypes = CreateConnectorCommandInput | CreateCustomPluginCommandInput | CreateWorkerConfigurationCommandInput | DeleteConnectorCommandInput | DescribeConnectorCommandInput | DescribeCustomPluginCommandInput | DescribeWorkerConfigurationCommandInput | ListConnectorsCommandInput | ListCustomPluginsCommandInput | ListWorkerConfigurationsCommandInput | UpdateConnectorCommandInput;
21
- export declare type ServiceOutputTypes = CreateConnectorCommandOutput | CreateCustomPluginCommandOutput | CreateWorkerConfigurationCommandOutput | DeleteConnectorCommandOutput | DescribeConnectorCommandOutput | DescribeCustomPluginCommandOutput | DescribeWorkerConfigurationCommandOutput | ListConnectorsCommandOutput | ListCustomPluginsCommandOutput | ListWorkerConfigurationsCommandOutput | UpdateConnectorCommandOutput;
21
+ export declare type ServiceInputTypes = CreateConnectorCommandInput | CreateCustomPluginCommandInput | CreateWorkerConfigurationCommandInput | DeleteConnectorCommandInput | DeleteCustomPluginCommandInput | DescribeConnectorCommandInput | DescribeCustomPluginCommandInput | DescribeWorkerConfigurationCommandInput | ListConnectorsCommandInput | ListCustomPluginsCommandInput | ListWorkerConfigurationsCommandInput | UpdateConnectorCommandInput;
22
+ export declare type ServiceOutputTypes = CreateConnectorCommandOutput | CreateCustomPluginCommandOutput | CreateWorkerConfigurationCommandOutput | DeleteConnectorCommandOutput | DeleteCustomPluginCommandOutput | DescribeConnectorCommandOutput | DescribeCustomPluginCommandOutput | DescribeWorkerConfigurationCommandOutput | ListConnectorsCommandOutput | ListCustomPluginsCommandOutput | ListWorkerConfigurationsCommandOutput | UpdateConnectorCommandOutput;
22
23
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
23
24
  /**
24
25
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -39,7 +40,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
39
40
  * A function that can calculate the length of a request body.
40
41
  * @internal
41
42
  */
42
- bodyLengthChecker?: (body: any) => number | undefined;
43
+ bodyLengthChecker?: __BodyLengthCalculator;
43
44
  /**
44
45
  * A function that converts a stream into an array of bytes.
45
46
  * @internal
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { KafkaConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaConnectClient";
4
+ import { DeleteCustomPluginRequest, DeleteCustomPluginResponse } from "../models/models_0";
5
+ export interface DeleteCustomPluginCommandInput extends DeleteCustomPluginRequest {
6
+ }
7
+ export interface DeleteCustomPluginCommandOutput extends DeleteCustomPluginResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Deletes a custom plugin.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { KafkaConnectClient, DeleteCustomPluginCommand } from "@aws-sdk/client-kafkaconnect"; // ES Modules import
15
+ * // const { KafkaConnectClient, DeleteCustomPluginCommand } = require("@aws-sdk/client-kafkaconnect"); // CommonJS import
16
+ * const client = new KafkaConnectClient(config);
17
+ * const command = new DeleteCustomPluginCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link DeleteCustomPluginCommandInput} for command's `input` shape.
22
+ * @see {@link DeleteCustomPluginCommandOutput} for command's `response` shape.
23
+ * @see {@link KafkaConnectClientResolvedConfig | config} for KafkaConnectClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class DeleteCustomPluginCommand extends $Command<DeleteCustomPluginCommandInput, DeleteCustomPluginCommandOutput, KafkaConnectClientResolvedConfig> {
27
+ readonly input: DeleteCustomPluginCommandInput;
28
+ constructor(input: DeleteCustomPluginCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KafkaConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteCustomPluginCommandInput, DeleteCustomPluginCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -7,7 +7,9 @@ export interface ListConnectorsCommandInput extends ListConnectorsRequest {
7
7
  export interface ListConnectorsCommandOutput extends ListConnectorsResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.</p>
10
+ * <p>Returns a list of all the connectors in this account and Region. The list is limited to
11
+ * connectors whose name starts with the specified prefix. The response also includes a
12
+ * description of each of the listed connectors.</p>
11
13
  * @example
12
14
  * Use a bare-bones client and the command you need to make an API call.
13
15
  * ```javascript
@@ -2,6 +2,7 @@ export * from "./CreateConnectorCommand";
2
2
  export * from "./CreateCustomPluginCommand";
3
3
  export * from "./CreateWorkerConfigurationCommand";
4
4
  export * from "./DeleteConnectorCommand";
5
+ export * from "./DeleteCustomPluginCommand";
5
6
  export * from "./DescribeConnectorCommand";
6
7
  export * from "./DescribeCustomPluginCommand";
7
8
  export * from "./DescribeWorkerConfigurationCommand";