@aws-sdk/client-kafkaconnect 3.53.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/KafkaConnect.js +15 -0
- package/dist-cjs/commands/DeleteCustomPluginCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +27 -1
- package/dist-cjs/protocols/Aws_restJson1.js +100 -1
- package/dist-es/KafkaConnect.js +15 -0
- package/dist-es/commands/DeleteCustomPluginCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +20 -5
- package/dist-es/protocols/Aws_restJson1.js +129 -0
- package/dist-types/KafkaConnect.d.ts +10 -1
- package/dist-types/KafkaConnectClient.d.ts +5 -4
- package/dist-types/commands/DeleteCustomPluginCommand.d.ts +35 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +3 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +179 -58
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/KafkaConnect.d.ts +5 -0
- package/dist-types/ts3.4/KafkaConnectClient.d.ts +5 -4
- package/dist-types/ts3.4/commands/DeleteCustomPluginCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +33 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/KafkaConnect.js
CHANGED
|
@@ -5,6 +5,7 @@ const CreateConnectorCommand_1 = require("./commands/CreateConnectorCommand");
|
|
|
5
5
|
const CreateCustomPluginCommand_1 = require("./commands/CreateCustomPluginCommand");
|
|
6
6
|
const CreateWorkerConfigurationCommand_1 = require("./commands/CreateWorkerConfigurationCommand");
|
|
7
7
|
const DeleteConnectorCommand_1 = require("./commands/DeleteConnectorCommand");
|
|
8
|
+
const DeleteCustomPluginCommand_1 = require("./commands/DeleteCustomPluginCommand");
|
|
8
9
|
const DescribeConnectorCommand_1 = require("./commands/DescribeConnectorCommand");
|
|
9
10
|
const DescribeCustomPluginCommand_1 = require("./commands/DescribeCustomPluginCommand");
|
|
10
11
|
const DescribeWorkerConfigurationCommand_1 = require("./commands/DescribeWorkerConfigurationCommand");
|
|
@@ -70,6 +71,20 @@ class KafkaConnect extends KafkaConnectClient_1.KafkaConnectClient {
|
|
|
70
71
|
return this.send(command, optionsOrCb);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
74
|
+
deleteCustomPlugin(args, optionsOrCb, cb) {
|
|
75
|
+
const command = new DeleteCustomPluginCommand_1.DeleteCustomPluginCommand(args);
|
|
76
|
+
if (typeof optionsOrCb === "function") {
|
|
77
|
+
this.send(command, optionsOrCb);
|
|
78
|
+
}
|
|
79
|
+
else if (typeof cb === "function") {
|
|
80
|
+
if (typeof optionsOrCb !== "object")
|
|
81
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
82
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
return this.send(command, optionsOrCb);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
73
88
|
describeConnector(args, optionsOrCb, cb) {
|
|
74
89
|
const command = new DescribeConnectorCommand_1.DescribeConnectorCommand(args);
|
|
75
90
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteCustomPluginCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteCustomPluginCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KafkaConnectClient";
|
|
18
|
+
const commandName = "DeleteCustomPluginCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteCustomPluginRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteCustomPluginResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1DeleteCustomPluginCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1DeleteCustomPluginCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteCustomPluginCommand = DeleteCustomPluginCommand;
|
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./CreateConnectorCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./CreateCustomPluginCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateWorkerConfigurationCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./DeleteConnectorCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeleteCustomPluginCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DescribeConnectorCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DescribeCustomPluginCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DescribeWorkerConfigurationCommand"), exports);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KafkaClusterClientAuthentication = exports.KafkaCluster = exports.ConflictException = exports.CloudWatchLogsLogDelivery = exports.CapacityUpdate = exports.ProvisionedCapacityUpdate = exports.Capacity = exports.ProvisionedCapacity = exports.BadRequestException = exports.AutoScalingUpdate = exports.ScaleOutPolicyUpdate = exports.ScaleInPolicyUpdate = exports.AutoScaling = exports.ScaleOutPolicy = exports.ScaleInPolicy = exports.ApacheKafkaCluster = exports.Vpc = exports.WorkerConfigurationSummary = exports.WorkerConfigurationRevisionSummary = exports.Plugin = exports.CustomPlugin = exports.CustomPluginSummary = exports.CustomPluginRevisionSummary = exports.CustomPluginLocationDescription = exports.S3LocationDescription = exports.CustomPluginFileDescription = exports.CustomPluginContentType = exports.CustomPluginState = exports.ConnectorSummary = exports.WorkerConfigurationDescription = exports.PluginDescription = exports.CustomPluginDescription = exports.LogDeliveryDescription = exports.WorkerLogDeliveryDescription = exports.S3LogDeliveryDescription = exports.FirehoseLogDeliveryDescription = exports.CloudWatchLogsLogDeliveryDescription = exports.KafkaClusterEncryptionInTransitDescription = exports.KafkaClusterEncryptionInTransitType = exports.KafkaClusterClientAuthenticationDescription = exports.KafkaClusterClientAuthenticationType = exports.KafkaClusterDescription = exports.ApacheKafkaClusterDescription = exports.VpcDescription = exports.ConnectorState = exports.CapacityDescription = exports.ProvisionedCapacityDescription = exports.AutoScalingDescription = exports.ScaleOutPolicyDescription = exports.ScaleInPolicyDescription = void 0;
|
|
4
|
-
exports.UpdateConnectorResponse = exports.UpdateConnectorRequest = exports.ListWorkerConfigurationsResponse = exports.ListWorkerConfigurationsRequest = exports.ListCustomPluginsResponse = exports.ListCustomPluginsRequest = exports.ListConnectorsResponse = exports.ListConnectorsRequest = exports.DescribeWorkerConfigurationResponse = exports.WorkerConfigurationRevisionDescription = exports.DescribeWorkerConfigurationRequest = exports.DescribeCustomPluginResponse = exports.DescribeCustomPluginRequest = exports.DescribeConnectorResponse = exports.DescribeConnectorRequest = exports.DeleteConnectorResponse = exports.DeleteConnectorRequest = exports.CreateWorkerConfigurationResponse = exports.CreateWorkerConfigurationRequest = exports.CreateCustomPluginResponse = exports.CreateCustomPluginRequest = exports.CustomPluginLocation = exports.S3Location = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.CreateConnectorResponse = exports.CreateConnectorRequest = exports.WorkerConfiguration = exports.LogDelivery = exports.WorkerLogDelivery = exports.S3LogDelivery = exports.FirehoseLogDelivery = exports.KafkaClusterEncryptionInTransit = void 0;
|
|
4
|
+
exports.UpdateConnectorResponse = exports.UpdateConnectorRequest = exports.ListWorkerConfigurationsResponse = exports.ListWorkerConfigurationsRequest = exports.ListCustomPluginsResponse = exports.ListCustomPluginsRequest = exports.ListConnectorsResponse = exports.ListConnectorsRequest = exports.DescribeWorkerConfigurationResponse = exports.WorkerConfigurationRevisionDescription = exports.DescribeWorkerConfigurationRequest = exports.DescribeCustomPluginResponse = exports.DescribeCustomPluginRequest = exports.DescribeConnectorResponse = exports.StateDescription = exports.DescribeConnectorRequest = exports.DeleteCustomPluginResponse = exports.DeleteCustomPluginRequest = exports.DeleteConnectorResponse = exports.DeleteConnectorRequest = exports.CreateWorkerConfigurationResponse = exports.CreateWorkerConfigurationRequest = exports.CreateCustomPluginResponse = exports.CreateCustomPluginRequest = exports.CustomPluginLocation = exports.S3Location = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.CreateConnectorResponse = exports.CreateConnectorRequest = exports.WorkerConfiguration = exports.LogDelivery = exports.WorkerLogDelivery = exports.S3LogDelivery = exports.FirehoseLogDelivery = exports.KafkaClusterEncryptionInTransit = void 0;
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
6
|
const KafkaConnectServiceException_1 = require("./KafkaConnectServiceException");
|
|
6
7
|
var ScaleInPolicyDescription;
|
|
7
8
|
(function (ScaleInPolicyDescription) {
|
|
@@ -359,6 +360,7 @@ var CreateConnectorRequest;
|
|
|
359
360
|
(function (CreateConnectorRequest) {
|
|
360
361
|
CreateConnectorRequest.filterSensitiveLog = (obj) => ({
|
|
361
362
|
...obj,
|
|
363
|
+
...(obj.connectorConfiguration && { connectorConfiguration: smithy_client_1.SENSITIVE_STRING }),
|
|
362
364
|
});
|
|
363
365
|
})(CreateConnectorRequest = exports.CreateConnectorRequest || (exports.CreateConnectorRequest = {}));
|
|
364
366
|
var CreateConnectorResponse;
|
|
@@ -473,6 +475,7 @@ var CreateWorkerConfigurationRequest;
|
|
|
473
475
|
(function (CreateWorkerConfigurationRequest) {
|
|
474
476
|
CreateWorkerConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
475
477
|
...obj,
|
|
478
|
+
...(obj.propertiesFileContent && { propertiesFileContent: smithy_client_1.SENSITIVE_STRING }),
|
|
476
479
|
});
|
|
477
480
|
})(CreateWorkerConfigurationRequest = exports.CreateWorkerConfigurationRequest || (exports.CreateWorkerConfigurationRequest = {}));
|
|
478
481
|
var CreateWorkerConfigurationResponse;
|
|
@@ -493,16 +496,35 @@ var DeleteConnectorResponse;
|
|
|
493
496
|
...obj,
|
|
494
497
|
});
|
|
495
498
|
})(DeleteConnectorResponse = exports.DeleteConnectorResponse || (exports.DeleteConnectorResponse = {}));
|
|
499
|
+
var DeleteCustomPluginRequest;
|
|
500
|
+
(function (DeleteCustomPluginRequest) {
|
|
501
|
+
DeleteCustomPluginRequest.filterSensitiveLog = (obj) => ({
|
|
502
|
+
...obj,
|
|
503
|
+
});
|
|
504
|
+
})(DeleteCustomPluginRequest = exports.DeleteCustomPluginRequest || (exports.DeleteCustomPluginRequest = {}));
|
|
505
|
+
var DeleteCustomPluginResponse;
|
|
506
|
+
(function (DeleteCustomPluginResponse) {
|
|
507
|
+
DeleteCustomPluginResponse.filterSensitiveLog = (obj) => ({
|
|
508
|
+
...obj,
|
|
509
|
+
});
|
|
510
|
+
})(DeleteCustomPluginResponse = exports.DeleteCustomPluginResponse || (exports.DeleteCustomPluginResponse = {}));
|
|
496
511
|
var DescribeConnectorRequest;
|
|
497
512
|
(function (DescribeConnectorRequest) {
|
|
498
513
|
DescribeConnectorRequest.filterSensitiveLog = (obj) => ({
|
|
499
514
|
...obj,
|
|
500
515
|
});
|
|
501
516
|
})(DescribeConnectorRequest = exports.DescribeConnectorRequest || (exports.DescribeConnectorRequest = {}));
|
|
517
|
+
var StateDescription;
|
|
518
|
+
(function (StateDescription) {
|
|
519
|
+
StateDescription.filterSensitiveLog = (obj) => ({
|
|
520
|
+
...obj,
|
|
521
|
+
});
|
|
522
|
+
})(StateDescription = exports.StateDescription || (exports.StateDescription = {}));
|
|
502
523
|
var DescribeConnectorResponse;
|
|
503
524
|
(function (DescribeConnectorResponse) {
|
|
504
525
|
DescribeConnectorResponse.filterSensitiveLog = (obj) => ({
|
|
505
526
|
...obj,
|
|
527
|
+
...(obj.connectorConfiguration && { connectorConfiguration: smithy_client_1.SENSITIVE_STRING }),
|
|
506
528
|
});
|
|
507
529
|
})(DescribeConnectorResponse = exports.DescribeConnectorResponse || (exports.DescribeConnectorResponse = {}));
|
|
508
530
|
var DescribeCustomPluginRequest;
|
|
@@ -527,12 +549,16 @@ var WorkerConfigurationRevisionDescription;
|
|
|
527
549
|
(function (WorkerConfigurationRevisionDescription) {
|
|
528
550
|
WorkerConfigurationRevisionDescription.filterSensitiveLog = (obj) => ({
|
|
529
551
|
...obj,
|
|
552
|
+
...(obj.propertiesFileContent && { propertiesFileContent: smithy_client_1.SENSITIVE_STRING }),
|
|
530
553
|
});
|
|
531
554
|
})(WorkerConfigurationRevisionDescription = exports.WorkerConfigurationRevisionDescription || (exports.WorkerConfigurationRevisionDescription = {}));
|
|
532
555
|
var DescribeWorkerConfigurationResponse;
|
|
533
556
|
(function (DescribeWorkerConfigurationResponse) {
|
|
534
557
|
DescribeWorkerConfigurationResponse.filterSensitiveLog = (obj) => ({
|
|
535
558
|
...obj,
|
|
559
|
+
...(obj.latestRevision && {
|
|
560
|
+
latestRevision: WorkerConfigurationRevisionDescription.filterSensitiveLog(obj.latestRevision),
|
|
561
|
+
}),
|
|
536
562
|
});
|
|
537
563
|
})(DescribeWorkerConfigurationResponse = exports.DescribeWorkerConfigurationResponse || (exports.DescribeWorkerConfigurationResponse = {}));
|
|
538
564
|
var ListConnectorsRequest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateConnectorCommand = exports.deserializeAws_restJson1ListWorkerConfigurationsCommand = exports.deserializeAws_restJson1ListCustomPluginsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1DescribeWorkerConfigurationCommand = exports.deserializeAws_restJson1DescribeCustomPluginCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteConnectorCommand = exports.deserializeAws_restJson1CreateWorkerConfigurationCommand = exports.deserializeAws_restJson1CreateCustomPluginCommand = exports.deserializeAws_restJson1CreateConnectorCommand = exports.serializeAws_restJson1UpdateConnectorCommand = exports.serializeAws_restJson1ListWorkerConfigurationsCommand = exports.serializeAws_restJson1ListCustomPluginsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1DescribeWorkerConfigurationCommand = exports.serializeAws_restJson1DescribeCustomPluginCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteConnectorCommand = exports.serializeAws_restJson1CreateWorkerConfigurationCommand = exports.serializeAws_restJson1CreateCustomPluginCommand = exports.serializeAws_restJson1CreateConnectorCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateConnectorCommand = exports.deserializeAws_restJson1ListWorkerConfigurationsCommand = exports.deserializeAws_restJson1ListCustomPluginsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1DescribeWorkerConfigurationCommand = exports.deserializeAws_restJson1DescribeCustomPluginCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteCustomPluginCommand = exports.deserializeAws_restJson1DeleteConnectorCommand = exports.deserializeAws_restJson1CreateWorkerConfigurationCommand = exports.deserializeAws_restJson1CreateCustomPluginCommand = exports.deserializeAws_restJson1CreateConnectorCommand = exports.serializeAws_restJson1UpdateConnectorCommand = exports.serializeAws_restJson1ListWorkerConfigurationsCommand = exports.serializeAws_restJson1ListCustomPluginsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1DescribeWorkerConfigurationCommand = exports.serializeAws_restJson1DescribeCustomPluginCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteCustomPluginCommand = exports.serializeAws_restJson1DeleteConnectorCommand = exports.serializeAws_restJson1CreateWorkerConfigurationCommand = exports.serializeAws_restJson1CreateCustomPluginCommand = exports.serializeAws_restJson1CreateConnectorCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const KafkaConnectServiceException_1 = require("../models/KafkaConnectServiceException");
|
|
@@ -135,6 +135,32 @@ const serializeAws_restJson1DeleteConnectorCommand = async (input, context) => {
|
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
137
|
exports.serializeAws_restJson1DeleteConnectorCommand = serializeAws_restJson1DeleteConnectorCommand;
|
|
138
|
+
const serializeAws_restJson1DeleteCustomPluginCommand = async (input, context) => {
|
|
139
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
|
+
const headers = {};
|
|
141
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins/{customPluginArn}";
|
|
142
|
+
if (input.customPluginArn !== undefined) {
|
|
143
|
+
const labelValue = input.customPluginArn;
|
|
144
|
+
if (labelValue.length <= 0) {
|
|
145
|
+
throw new Error("Empty value provided for input HTTP label: customPluginArn.");
|
|
146
|
+
}
|
|
147
|
+
resolvedPath = resolvedPath.replace("{customPluginArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
throw new Error("No value provided for input HTTP label: customPluginArn.");
|
|
151
|
+
}
|
|
152
|
+
let body;
|
|
153
|
+
return new protocol_http_1.HttpRequest({
|
|
154
|
+
protocol,
|
|
155
|
+
hostname,
|
|
156
|
+
port,
|
|
157
|
+
method: "DELETE",
|
|
158
|
+
headers,
|
|
159
|
+
path: resolvedPath,
|
|
160
|
+
body,
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
exports.serializeAws_restJson1DeleteCustomPluginCommand = serializeAws_restJson1DeleteCustomPluginCommand;
|
|
138
164
|
const serializeAws_restJson1DescribeConnectorCommand = async (input, context) => {
|
|
139
165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
166
|
const headers = {};
|
|
@@ -579,6 +605,65 @@ const deserializeAws_restJson1DeleteConnectorCommandError = async (output, conte
|
|
|
579
605
|
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
580
606
|
}
|
|
581
607
|
};
|
|
608
|
+
const deserializeAws_restJson1DeleteCustomPluginCommand = async (output, context) => {
|
|
609
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
+
return deserializeAws_restJson1DeleteCustomPluginCommandError(output, context);
|
|
611
|
+
}
|
|
612
|
+
const contents = {
|
|
613
|
+
$metadata: deserializeMetadata(output),
|
|
614
|
+
customPluginArn: undefined,
|
|
615
|
+
customPluginState: undefined,
|
|
616
|
+
};
|
|
617
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
618
|
+
if (data.customPluginArn !== undefined && data.customPluginArn !== null) {
|
|
619
|
+
contents.customPluginArn = smithy_client_1.expectString(data.customPluginArn);
|
|
620
|
+
}
|
|
621
|
+
if (data.customPluginState !== undefined && data.customPluginState !== null) {
|
|
622
|
+
contents.customPluginState = smithy_client_1.expectString(data.customPluginState);
|
|
623
|
+
}
|
|
624
|
+
return Promise.resolve(contents);
|
|
625
|
+
};
|
|
626
|
+
exports.deserializeAws_restJson1DeleteCustomPluginCommand = deserializeAws_restJson1DeleteCustomPluginCommand;
|
|
627
|
+
const deserializeAws_restJson1DeleteCustomPluginCommandError = async (output, context) => {
|
|
628
|
+
const parsedOutput = {
|
|
629
|
+
...output,
|
|
630
|
+
body: await parseBody(output.body, context),
|
|
631
|
+
};
|
|
632
|
+
let response;
|
|
633
|
+
let errorCode = "UnknownError";
|
|
634
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
|
+
switch (errorCode) {
|
|
636
|
+
case "BadRequestException":
|
|
637
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
638
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
639
|
+
case "ForbiddenException":
|
|
640
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
641
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
642
|
+
case "InternalServerErrorException":
|
|
643
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
644
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
645
|
+
case "NotFoundException":
|
|
646
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
647
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
648
|
+
case "ServiceUnavailableException":
|
|
649
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
650
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
651
|
+
case "TooManyRequestsException":
|
|
652
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
653
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
654
|
+
case "UnauthorizedException":
|
|
655
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
656
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
657
|
+
default:
|
|
658
|
+
const parsedBody = parsedOutput.body;
|
|
659
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
660
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
661
|
+
$fault: "client",
|
|
662
|
+
$metadata: deserializeMetadata(output),
|
|
663
|
+
});
|
|
664
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
665
|
+
}
|
|
666
|
+
};
|
|
582
667
|
const deserializeAws_restJson1DescribeConnectorCommand = async (output, context) => {
|
|
583
668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
669
|
return deserializeAws_restJson1DescribeConnectorCommandError(output, context);
|
|
@@ -600,6 +685,7 @@ const deserializeAws_restJson1DescribeConnectorCommand = async (output, context)
|
|
|
600
685
|
logDelivery: undefined,
|
|
601
686
|
plugins: undefined,
|
|
602
687
|
serviceExecutionRoleArn: undefined,
|
|
688
|
+
stateDescription: undefined,
|
|
603
689
|
workerConfiguration: undefined,
|
|
604
690
|
};
|
|
605
691
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
@@ -648,6 +734,9 @@ const deserializeAws_restJson1DescribeConnectorCommand = async (output, context)
|
|
|
648
734
|
if (data.serviceExecutionRoleArn !== undefined && data.serviceExecutionRoleArn !== null) {
|
|
649
735
|
contents.serviceExecutionRoleArn = smithy_client_1.expectString(data.serviceExecutionRoleArn);
|
|
650
736
|
}
|
|
737
|
+
if (data.stateDescription !== undefined && data.stateDescription !== null) {
|
|
738
|
+
contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
|
|
739
|
+
}
|
|
651
740
|
if (data.workerConfiguration !== undefined && data.workerConfiguration !== null) {
|
|
652
741
|
contents.workerConfiguration = deserializeAws_restJson1WorkerConfigurationDescription(data.workerConfiguration, context);
|
|
653
742
|
}
|
|
@@ -706,6 +795,7 @@ const deserializeAws_restJson1DescribeCustomPluginCommand = async (output, conte
|
|
|
706
795
|
description: undefined,
|
|
707
796
|
latestRevision: undefined,
|
|
708
797
|
name: undefined,
|
|
798
|
+
stateDescription: undefined,
|
|
709
799
|
};
|
|
710
800
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
711
801
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
@@ -726,6 +816,9 @@ const deserializeAws_restJson1DescribeCustomPluginCommand = async (output, conte
|
|
|
726
816
|
if (data.name !== undefined && data.name !== null) {
|
|
727
817
|
contents.name = smithy_client_1.expectString(data.name);
|
|
728
818
|
}
|
|
819
|
+
if (data.stateDescription !== undefined && data.stateDescription !== null) {
|
|
820
|
+
contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
|
|
821
|
+
}
|
|
729
822
|
return Promise.resolve(contents);
|
|
730
823
|
};
|
|
731
824
|
exports.deserializeAws_restJson1DescribeCustomPluginCommand = deserializeAws_restJson1DescribeCustomPluginCommand;
|
|
@@ -1658,6 +1751,12 @@ const deserializeAws_restJson1ScaleOutPolicyDescription = (output, context) => {
|
|
|
1658
1751
|
cpuUtilizationPercentage: smithy_client_1.expectInt32(output.cpuUtilizationPercentage),
|
|
1659
1752
|
};
|
|
1660
1753
|
};
|
|
1754
|
+
const deserializeAws_restJson1StateDescription = (output, context) => {
|
|
1755
|
+
return {
|
|
1756
|
+
code: smithy_client_1.expectString(output.code),
|
|
1757
|
+
message: smithy_client_1.expectString(output.message),
|
|
1758
|
+
};
|
|
1759
|
+
};
|
|
1661
1760
|
const deserializeAws_restJson1VpcDescription = (output, context) => {
|
|
1662
1761
|
return {
|
|
1663
1762
|
securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
|
package/dist-es/KafkaConnect.js
CHANGED
|
@@ -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";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
3
|
import { KafkaConnectServiceException as __BaseException } from "./KafkaConnectServiceException";
|
|
3
4
|
export var ScaleInPolicyDescription;
|
|
4
5
|
(function (ScaleInPolicyDescription) {
|
|
@@ -254,7 +255,7 @@ export var WorkerConfiguration;
|
|
|
254
255
|
})(WorkerConfiguration || (WorkerConfiguration = {}));
|
|
255
256
|
export var CreateConnectorRequest;
|
|
256
257
|
(function (CreateConnectorRequest) {
|
|
257
|
-
CreateConnectorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
258
|
+
CreateConnectorRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.connectorConfiguration && { connectorConfiguration: SENSITIVE_STRING }))); };
|
|
258
259
|
})(CreateConnectorRequest || (CreateConnectorRequest = {}));
|
|
259
260
|
export var CreateConnectorResponse;
|
|
260
261
|
(function (CreateConnectorResponse) {
|
|
@@ -350,7 +351,7 @@ export var CreateCustomPluginResponse;
|
|
|
350
351
|
})(CreateCustomPluginResponse || (CreateCustomPluginResponse = {}));
|
|
351
352
|
export var CreateWorkerConfigurationRequest;
|
|
352
353
|
(function (CreateWorkerConfigurationRequest) {
|
|
353
|
-
CreateWorkerConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
354
|
+
CreateWorkerConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.propertiesFileContent && { propertiesFileContent: SENSITIVE_STRING }))); };
|
|
354
355
|
})(CreateWorkerConfigurationRequest || (CreateWorkerConfigurationRequest = {}));
|
|
355
356
|
export var CreateWorkerConfigurationResponse;
|
|
356
357
|
(function (CreateWorkerConfigurationResponse) {
|
|
@@ -364,13 +365,25 @@ export var DeleteConnectorResponse;
|
|
|
364
365
|
(function (DeleteConnectorResponse) {
|
|
365
366
|
DeleteConnectorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
366
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 = {}));
|
|
367
376
|
export var DescribeConnectorRequest;
|
|
368
377
|
(function (DescribeConnectorRequest) {
|
|
369
378
|
DescribeConnectorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
370
379
|
})(DescribeConnectorRequest || (DescribeConnectorRequest = {}));
|
|
380
|
+
export var StateDescription;
|
|
381
|
+
(function (StateDescription) {
|
|
382
|
+
StateDescription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
383
|
+
})(StateDescription || (StateDescription = {}));
|
|
371
384
|
export var DescribeConnectorResponse;
|
|
372
385
|
(function (DescribeConnectorResponse) {
|
|
373
|
-
DescribeConnectorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
386
|
+
DescribeConnectorResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.connectorConfiguration && { connectorConfiguration: SENSITIVE_STRING }))); };
|
|
374
387
|
})(DescribeConnectorResponse || (DescribeConnectorResponse = {}));
|
|
375
388
|
export var DescribeCustomPluginRequest;
|
|
376
389
|
(function (DescribeCustomPluginRequest) {
|
|
@@ -386,11 +399,13 @@ export var DescribeWorkerConfigurationRequest;
|
|
|
386
399
|
})(DescribeWorkerConfigurationRequest || (DescribeWorkerConfigurationRequest = {}));
|
|
387
400
|
export var WorkerConfigurationRevisionDescription;
|
|
388
401
|
(function (WorkerConfigurationRevisionDescription) {
|
|
389
|
-
WorkerConfigurationRevisionDescription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
402
|
+
WorkerConfigurationRevisionDescription.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.propertiesFileContent && { propertiesFileContent: SENSITIVE_STRING }))); };
|
|
390
403
|
})(WorkerConfigurationRevisionDescription || (WorkerConfigurationRevisionDescription = {}));
|
|
391
404
|
export var DescribeWorkerConfigurationResponse;
|
|
392
405
|
(function (DescribeWorkerConfigurationResponse) {
|
|
393
|
-
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
|
+
}))); };
|
|
394
409
|
})(DescribeWorkerConfigurationResponse || (DescribeWorkerConfigurationResponse = {}));
|
|
395
410
|
export var ListConnectorsRequest;
|
|
396
411
|
(function (ListConnectorsRequest) {
|