@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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/KafkaConnect.js +15 -0
- package/dist-cjs/KafkaConnectClient.js +13 -13
- package/dist-cjs/commands/CreateConnectorCommand.js +3 -3
- package/dist-cjs/commands/CreateCustomPluginCommand.js +3 -3
- package/dist-cjs/commands/CreateWorkerConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DeleteConnectorCommand.js +3 -3
- package/dist-cjs/commands/DeleteCustomPluginCommand.js +36 -0
- package/dist-cjs/commands/DescribeConnectorCommand.js +3 -3
- package/dist-cjs/commands/DescribeCustomPluginCommand.js +3 -3
- package/dist-cjs/commands/DescribeWorkerConfigurationCommand.js +3 -3
- package/dist-cjs/commands/ListConnectorsCommand.js +3 -3
- package/dist-cjs/commands/ListCustomPluginsCommand.js +3 -3
- package/dist-cjs/commands/ListWorkerConfigurationsCommand.js +3 -3
- package/dist-cjs/commands/UpdateConnectorCommand.js +3 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +27 -1
- package/dist-cjs/protocols/Aws_restJson1.js +233 -134
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/KafkaConnect.js +26 -11
- 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/pagination/ListConnectorsPaginator.js +4 -4
- package/dist-es/pagination/ListCustomPluginsPaginator.js +4 -4
- package/dist-es/pagination/ListWorkerConfigurationsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +140 -11
- 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 +3 -3
- 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 +3 -3
- package/package.json +34 -34
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
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";
|
|
@@ -23,7 +24,7 @@ var KafkaConnect = (function (_super) {
|
|
|
23
24
|
}
|
|
24
25
|
else if (typeof cb === "function") {
|
|
25
26
|
if (typeof optionsOrCb !== "object")
|
|
26
|
-
throw new Error("Expect http options but get "
|
|
27
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
27
28
|
this.send(command, optionsOrCb || {}, cb);
|
|
28
29
|
}
|
|
29
30
|
else {
|
|
@@ -37,7 +38,7 @@ var KafkaConnect = (function (_super) {
|
|
|
37
38
|
}
|
|
38
39
|
else if (typeof cb === "function") {
|
|
39
40
|
if (typeof optionsOrCb !== "object")
|
|
40
|
-
throw new Error("Expect http options but get "
|
|
41
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
41
42
|
this.send(command, optionsOrCb || {}, cb);
|
|
42
43
|
}
|
|
43
44
|
else {
|
|
@@ -51,7 +52,7 @@ var KafkaConnect = (function (_super) {
|
|
|
51
52
|
}
|
|
52
53
|
else if (typeof cb === "function") {
|
|
53
54
|
if (typeof optionsOrCb !== "object")
|
|
54
|
-
throw new Error("Expect http options but get "
|
|
55
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
55
56
|
this.send(command, optionsOrCb || {}, cb);
|
|
56
57
|
}
|
|
57
58
|
else {
|
|
@@ -65,7 +66,21 @@ var KafkaConnect = (function (_super) {
|
|
|
65
66
|
}
|
|
66
67
|
else if (typeof cb === "function") {
|
|
67
68
|
if (typeof optionsOrCb !== "object")
|
|
68
|
-
throw new Error("Expect http options but get "
|
|
69
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
70
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
return this.send(command, optionsOrCb);
|
|
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 ".concat(typeof optionsOrCb));
|
|
69
84
|
this.send(command, optionsOrCb || {}, cb);
|
|
70
85
|
}
|
|
71
86
|
else {
|
|
@@ -79,7 +94,7 @@ var KafkaConnect = (function (_super) {
|
|
|
79
94
|
}
|
|
80
95
|
else if (typeof cb === "function") {
|
|
81
96
|
if (typeof optionsOrCb !== "object")
|
|
82
|
-
throw new Error("Expect http options but get "
|
|
97
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
83
98
|
this.send(command, optionsOrCb || {}, cb);
|
|
84
99
|
}
|
|
85
100
|
else {
|
|
@@ -93,7 +108,7 @@ var KafkaConnect = (function (_super) {
|
|
|
93
108
|
}
|
|
94
109
|
else if (typeof cb === "function") {
|
|
95
110
|
if (typeof optionsOrCb !== "object")
|
|
96
|
-
throw new Error("Expect http options but get "
|
|
111
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
97
112
|
this.send(command, optionsOrCb || {}, cb);
|
|
98
113
|
}
|
|
99
114
|
else {
|
|
@@ -107,7 +122,7 @@ var KafkaConnect = (function (_super) {
|
|
|
107
122
|
}
|
|
108
123
|
else if (typeof cb === "function") {
|
|
109
124
|
if (typeof optionsOrCb !== "object")
|
|
110
|
-
throw new Error("Expect http options but get "
|
|
125
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
111
126
|
this.send(command, optionsOrCb || {}, cb);
|
|
112
127
|
}
|
|
113
128
|
else {
|
|
@@ -121,7 +136,7 @@ var KafkaConnect = (function (_super) {
|
|
|
121
136
|
}
|
|
122
137
|
else if (typeof cb === "function") {
|
|
123
138
|
if (typeof optionsOrCb !== "object")
|
|
124
|
-
throw new Error("Expect http options but get "
|
|
139
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
125
140
|
this.send(command, optionsOrCb || {}, cb);
|
|
126
141
|
}
|
|
127
142
|
else {
|
|
@@ -135,7 +150,7 @@ var KafkaConnect = (function (_super) {
|
|
|
135
150
|
}
|
|
136
151
|
else if (typeof cb === "function") {
|
|
137
152
|
if (typeof optionsOrCb !== "object")
|
|
138
|
-
throw new Error("Expect http options but get "
|
|
153
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
139
154
|
this.send(command, optionsOrCb || {}, cb);
|
|
140
155
|
}
|
|
141
156
|
else {
|
|
@@ -149,7 +164,7 @@ var KafkaConnect = (function (_super) {
|
|
|
149
164
|
}
|
|
150
165
|
else if (typeof cb === "function") {
|
|
151
166
|
if (typeof optionsOrCb !== "object")
|
|
152
|
-
throw new Error("Expect http options but get "
|
|
167
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
153
168
|
this.send(command, optionsOrCb || {}, cb);
|
|
154
169
|
}
|
|
155
170
|
else {
|
|
@@ -163,7 +178,7 @@ var KafkaConnect = (function (_super) {
|
|
|
163
178
|
}
|
|
164
179
|
else if (typeof cb === "function") {
|
|
165
180
|
if (typeof optionsOrCb !== "object")
|
|
166
|
-
throw new Error("Expect http options but get "
|
|
181
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
167
182
|
this.send(command, optionsOrCb || {}, cb);
|
|
168
183
|
}
|
|
169
184
|
else {
|
|
@@ -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) {
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListConnectorsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListConnectorsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listConnectors.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listConnectors.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListConnectors(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof KafkaConnect)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KafkaConnectClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListCustomPluginsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListCustomPluginsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listCustomPlugins.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listCustomPlugins.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListCustomPlugins(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof KafkaConnect)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KafkaConnectClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListWorkerConfigurationsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListWorkerConfigurationsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listWorkerConfigurations.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listWorkerConfigurations.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListWorkerConfigurations(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof KafkaConnect)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof KafkaConnectClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|