@aws-sdk/client-kafkaconnect 3.51.0 → 3.54.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 (39) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/KafkaConnect.js +15 -0
  3. package/dist-cjs/commands/DeleteCustomPluginCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/index.js +3 -0
  6. package/dist-cjs/models/KafkaConnectServiceException.js +11 -0
  7. package/dist-cjs/models/models_0.js +133 -2
  8. package/dist-cjs/protocols/Aws_restJson1.js +283 -651
  9. package/dist-es/KafkaConnect.js +15 -0
  10. package/dist-es/commands/DeleteCustomPluginCommand.js +39 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/index.js +1 -0
  13. package/dist-es/models/KafkaConnectServiceException.js +12 -0
  14. package/dist-es/models/models_0.js +118 -6
  15. package/dist-es/protocols/Aws_restJson1.js +466 -704
  16. package/dist-types/KafkaConnect.d.ts +10 -1
  17. package/dist-types/KafkaConnectClient.d.ts +5 -4
  18. package/dist-types/commands/DeleteCustomPluginCommand.d.ts +35 -0
  19. package/dist-types/commands/ListConnectorsCommand.d.ts +3 -1
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/index.d.ts +1 -0
  22. package/dist-types/models/KafkaConnectServiceException.d.ts +10 -0
  23. package/dist-types/models/models_0.d.ts +237 -91
  24. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  26. package/dist-types/runtimeConfig.d.ts +1 -1
  27. package/dist-types/runtimeConfig.native.d.ts +1 -1
  28. package/dist-types/ts3.4/KafkaConnect.d.ts +5 -0
  29. package/dist-types/ts3.4/KafkaConnectClient.d.ts +5 -4
  30. package/dist-types/ts3.4/commands/DeleteCustomPluginCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  32. package/dist-types/ts3.4/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/KafkaConnectServiceException.d.ts +6 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +75 -33
  35. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  39. package/package.json +33 -33
@@ -3,6 +3,7 @@ import { CreateConnectorCommand, } from "./commands/CreateConnectorCommand";
3
3
  import { CreateCustomPluginCommand, } from "./commands/CreateCustomPluginCommand";
4
4
  import { CreateWorkerConfigurationCommand, } from "./commands/CreateWorkerConfigurationCommand";
5
5
  import { DeleteConnectorCommand, } from "./commands/DeleteConnectorCommand";
6
+ import { DeleteCustomPluginCommand, } from "./commands/DeleteCustomPluginCommand";
6
7
  import { DescribeConnectorCommand, } from "./commands/DescribeConnectorCommand";
7
8
  import { DescribeCustomPluginCommand, } from "./commands/DescribeCustomPluginCommand";
8
9
  import { DescribeWorkerConfigurationCommand, } from "./commands/DescribeWorkerConfigurationCommand";
@@ -72,6 +73,20 @@ var KafkaConnect = (function (_super) {
72
73
  return this.send(command, optionsOrCb);
73
74
  }
74
75
  };
76
+ KafkaConnect.prototype.deleteCustomPlugin = function (args, optionsOrCb, cb) {
77
+ var command = new DeleteCustomPluginCommand(args);
78
+ if (typeof optionsOrCb === "function") {
79
+ this.send(command, optionsOrCb);
80
+ }
81
+ else if (typeof cb === "function") {
82
+ if (typeof optionsOrCb !== "object")
83
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
84
+ this.send(command, optionsOrCb || {}, cb);
85
+ }
86
+ else {
87
+ return this.send(command, optionsOrCb);
88
+ }
89
+ };
75
90
  KafkaConnect.prototype.describeConnector = function (args, optionsOrCb, cb) {
76
91
  var command = new DescribeConnectorCommand(args);
77
92
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteCustomPluginRequest, DeleteCustomPluginResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteCustomPluginCommand, serializeAws_restJson1DeleteCustomPluginCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteCustomPluginCommand = (function (_super) {
7
+ __extends(DeleteCustomPluginCommand, _super);
8
+ function DeleteCustomPluginCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteCustomPluginCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KafkaConnectClient";
18
+ var commandName = "DeleteCustomPluginCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteCustomPluginRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteCustomPluginResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteCustomPluginCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteCustomPluginCommand(input, context);
33
+ };
34
+ DeleteCustomPluginCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteCustomPluginCommand(output, context);
36
+ };
37
+ return DeleteCustomPluginCommand;
38
+ }($Command));
39
+ export { DeleteCustomPluginCommand };
@@ -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";
package/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./KafkaConnectClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { KafkaConnectServiceException } from "./models/KafkaConnectServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var KafkaConnectServiceException = (function (_super) {
4
+ __extends(KafkaConnectServiceException, _super);
5
+ function KafkaConnectServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, KafkaConnectServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return KafkaConnectServiceException;
11
+ }(__ServiceException));
12
+ export { KafkaConnectServiceException };
@@ -1,4 +1,6 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { KafkaConnectServiceException as __BaseException } from "./KafkaConnectServiceException";
2
4
  export var ScaleInPolicyDescription;
3
5
  (function (ScaleInPolicyDescription) {
4
6
  ScaleInPolicyDescription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -175,6 +177,18 @@ export var AutoScalingUpdate;
175
177
  (function (AutoScalingUpdate) {
176
178
  AutoScalingUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
179
  })(AutoScalingUpdate || (AutoScalingUpdate = {}));
180
+ var BadRequestException = (function (_super) {
181
+ __extends(BadRequestException, _super);
182
+ function BadRequestException(opts) {
183
+ var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
184
+ _this.name = "BadRequestException";
185
+ _this.$fault = "client";
186
+ Object.setPrototypeOf(_this, BadRequestException.prototype);
187
+ return _this;
188
+ }
189
+ return BadRequestException;
190
+ }(__BaseException));
191
+ export { BadRequestException };
178
192
  export var ProvisionedCapacity;
179
193
  (function (ProvisionedCapacity) {
180
194
  ProvisionedCapacity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -195,6 +209,18 @@ export var CloudWatchLogsLogDelivery;
195
209
  (function (CloudWatchLogsLogDelivery) {
196
210
  CloudWatchLogsLogDelivery.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
211
  })(CloudWatchLogsLogDelivery || (CloudWatchLogsLogDelivery = {}));
212
+ var ConflictException = (function (_super) {
213
+ __extends(ConflictException, _super);
214
+ function ConflictException(opts) {
215
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
216
+ _this.name = "ConflictException";
217
+ _this.$fault = "client";
218
+ Object.setPrototypeOf(_this, ConflictException.prototype);
219
+ return _this;
220
+ }
221
+ return ConflictException;
222
+ }(__BaseException));
223
+ export { ConflictException };
198
224
  export var KafkaCluster;
199
225
  (function (KafkaCluster) {
200
226
  KafkaCluster.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -229,12 +255,84 @@ export var WorkerConfiguration;
229
255
  })(WorkerConfiguration || (WorkerConfiguration = {}));
230
256
  export var CreateConnectorRequest;
231
257
  (function (CreateConnectorRequest) {
232
- CreateConnectorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
+ CreateConnectorRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.connectorConfiguration && { connectorConfiguration: SENSITIVE_STRING }))); };
233
259
  })(CreateConnectorRequest || (CreateConnectorRequest = {}));
234
260
  export var CreateConnectorResponse;
235
261
  (function (CreateConnectorResponse) {
236
262
  CreateConnectorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
263
  })(CreateConnectorResponse || (CreateConnectorResponse = {}));
264
+ var ForbiddenException = (function (_super) {
265
+ __extends(ForbiddenException, _super);
266
+ function ForbiddenException(opts) {
267
+ var _this = _super.call(this, __assign({ name: "ForbiddenException", $fault: "client" }, opts)) || this;
268
+ _this.name = "ForbiddenException";
269
+ _this.$fault = "client";
270
+ Object.setPrototypeOf(_this, ForbiddenException.prototype);
271
+ return _this;
272
+ }
273
+ return ForbiddenException;
274
+ }(__BaseException));
275
+ export { ForbiddenException };
276
+ var InternalServerErrorException = (function (_super) {
277
+ __extends(InternalServerErrorException, _super);
278
+ function InternalServerErrorException(opts) {
279
+ var _this = _super.call(this, __assign({ name: "InternalServerErrorException", $fault: "server" }, opts)) || this;
280
+ _this.name = "InternalServerErrorException";
281
+ _this.$fault = "server";
282
+ Object.setPrototypeOf(_this, InternalServerErrorException.prototype);
283
+ return _this;
284
+ }
285
+ return InternalServerErrorException;
286
+ }(__BaseException));
287
+ export { InternalServerErrorException };
288
+ var NotFoundException = (function (_super) {
289
+ __extends(NotFoundException, _super);
290
+ function NotFoundException(opts) {
291
+ var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
292
+ _this.name = "NotFoundException";
293
+ _this.$fault = "client";
294
+ Object.setPrototypeOf(_this, NotFoundException.prototype);
295
+ return _this;
296
+ }
297
+ return NotFoundException;
298
+ }(__BaseException));
299
+ export { NotFoundException };
300
+ var ServiceUnavailableException = (function (_super) {
301
+ __extends(ServiceUnavailableException, _super);
302
+ function ServiceUnavailableException(opts) {
303
+ var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
304
+ _this.name = "ServiceUnavailableException";
305
+ _this.$fault = "server";
306
+ Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
307
+ return _this;
308
+ }
309
+ return ServiceUnavailableException;
310
+ }(__BaseException));
311
+ export { ServiceUnavailableException };
312
+ var TooManyRequestsException = (function (_super) {
313
+ __extends(TooManyRequestsException, _super);
314
+ function TooManyRequestsException(opts) {
315
+ var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
316
+ _this.name = "TooManyRequestsException";
317
+ _this.$fault = "client";
318
+ Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
319
+ return _this;
320
+ }
321
+ return TooManyRequestsException;
322
+ }(__BaseException));
323
+ export { TooManyRequestsException };
324
+ var UnauthorizedException = (function (_super) {
325
+ __extends(UnauthorizedException, _super);
326
+ function UnauthorizedException(opts) {
327
+ var _this = _super.call(this, __assign({ name: "UnauthorizedException", $fault: "client" }, opts)) || this;
328
+ _this.name = "UnauthorizedException";
329
+ _this.$fault = "client";
330
+ Object.setPrototypeOf(_this, UnauthorizedException.prototype);
331
+ return _this;
332
+ }
333
+ return UnauthorizedException;
334
+ }(__BaseException));
335
+ export { UnauthorizedException };
238
336
  export var S3Location;
239
337
  (function (S3Location) {
240
338
  S3Location.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -253,7 +351,7 @@ export var CreateCustomPluginResponse;
253
351
  })(CreateCustomPluginResponse || (CreateCustomPluginResponse = {}));
254
352
  export var CreateWorkerConfigurationRequest;
255
353
  (function (CreateWorkerConfigurationRequest) {
256
- CreateWorkerConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
354
+ CreateWorkerConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.propertiesFileContent && { propertiesFileContent: SENSITIVE_STRING }))); };
257
355
  })(CreateWorkerConfigurationRequest || (CreateWorkerConfigurationRequest = {}));
258
356
  export var CreateWorkerConfigurationResponse;
259
357
  (function (CreateWorkerConfigurationResponse) {
@@ -267,13 +365,25 @@ export var DeleteConnectorResponse;
267
365
  (function (DeleteConnectorResponse) {
268
366
  DeleteConnectorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
269
367
  })(DeleteConnectorResponse || (DeleteConnectorResponse = {}));
368
+ export var DeleteCustomPluginRequest;
369
+ (function (DeleteCustomPluginRequest) {
370
+ DeleteCustomPluginRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
371
+ })(DeleteCustomPluginRequest || (DeleteCustomPluginRequest = {}));
372
+ export var DeleteCustomPluginResponse;
373
+ (function (DeleteCustomPluginResponse) {
374
+ DeleteCustomPluginResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
375
+ })(DeleteCustomPluginResponse || (DeleteCustomPluginResponse = {}));
270
376
  export var DescribeConnectorRequest;
271
377
  (function (DescribeConnectorRequest) {
272
378
  DescribeConnectorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
273
379
  })(DescribeConnectorRequest || (DescribeConnectorRequest = {}));
380
+ export var StateDescription;
381
+ (function (StateDescription) {
382
+ StateDescription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
383
+ })(StateDescription || (StateDescription = {}));
274
384
  export var DescribeConnectorResponse;
275
385
  (function (DescribeConnectorResponse) {
276
- DescribeConnectorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
386
+ DescribeConnectorResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.connectorConfiguration && { connectorConfiguration: SENSITIVE_STRING }))); };
277
387
  })(DescribeConnectorResponse || (DescribeConnectorResponse = {}));
278
388
  export var DescribeCustomPluginRequest;
279
389
  (function (DescribeCustomPluginRequest) {
@@ -289,11 +399,13 @@ export var DescribeWorkerConfigurationRequest;
289
399
  })(DescribeWorkerConfigurationRequest || (DescribeWorkerConfigurationRequest = {}));
290
400
  export var WorkerConfigurationRevisionDescription;
291
401
  (function (WorkerConfigurationRevisionDescription) {
292
- WorkerConfigurationRevisionDescription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
402
+ WorkerConfigurationRevisionDescription.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.propertiesFileContent && { propertiesFileContent: SENSITIVE_STRING }))); };
293
403
  })(WorkerConfigurationRevisionDescription || (WorkerConfigurationRevisionDescription = {}));
294
404
  export var DescribeWorkerConfigurationResponse;
295
405
  (function (DescribeWorkerConfigurationResponse) {
296
- DescribeWorkerConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
406
+ DescribeWorkerConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.latestRevision && {
407
+ latestRevision: WorkerConfigurationRevisionDescription.filterSensitiveLog(obj.latestRevision),
408
+ }))); };
297
409
  })(DescribeWorkerConfigurationResponse || (DescribeWorkerConfigurationResponse = {}));
298
410
  export var ListConnectorsRequest;
299
411
  (function (ListConnectorsRequest) {