@aws-sdk/client-kafkaconnect 3.489.0 → 3.495.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/dist-cjs/KafkaConnect.js +1 -35
- package/dist-cjs/KafkaConnectClient.js +1 -43
- package/dist-cjs/commands/CreateConnectorCommand.js +1 -29
- package/dist-cjs/commands/CreateCustomPluginCommand.js +1 -28
- package/dist-cjs/commands/CreateWorkerConfigurationCommand.js +1 -29
- package/dist-cjs/commands/DeleteConnectorCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomPluginCommand.js +1 -28
- package/dist-cjs/commands/DescribeConnectorCommand.js +1 -29
- package/dist-cjs/commands/DescribeCustomPluginCommand.js +1 -28
- package/dist-cjs/commands/DescribeWorkerConfigurationCommand.js +1 -29
- package/dist-cjs/commands/ListConnectorsCommand.js +1 -28
- package/dist-cjs/commands/ListCustomPluginsCommand.js +1 -28
- package/dist-cjs/commands/ListWorkerConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/UpdateConnectorCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -15
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1702 -11
- package/dist-cjs/models/KafkaConnectServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -163
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListConnectorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCustomPluginsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkerConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1097
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1703 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
BadRequestException: () => BadRequestException,
|
|
25
|
+
ConflictException: () => ConflictException,
|
|
26
|
+
ConnectorState: () => ConnectorState,
|
|
27
|
+
CreateConnectorCommand: () => CreateConnectorCommand,
|
|
28
|
+
CreateConnectorRequestFilterSensitiveLog: () => CreateConnectorRequestFilterSensitiveLog,
|
|
29
|
+
CreateCustomPluginCommand: () => CreateCustomPluginCommand,
|
|
30
|
+
CreateWorkerConfigurationCommand: () => CreateWorkerConfigurationCommand,
|
|
31
|
+
CreateWorkerConfigurationRequestFilterSensitiveLog: () => CreateWorkerConfigurationRequestFilterSensitiveLog,
|
|
32
|
+
CustomPluginContentType: () => CustomPluginContentType,
|
|
33
|
+
CustomPluginState: () => CustomPluginState,
|
|
34
|
+
DeleteConnectorCommand: () => DeleteConnectorCommand,
|
|
35
|
+
DeleteCustomPluginCommand: () => DeleteCustomPluginCommand,
|
|
36
|
+
DescribeConnectorCommand: () => DescribeConnectorCommand,
|
|
37
|
+
DescribeConnectorResponseFilterSensitiveLog: () => DescribeConnectorResponseFilterSensitiveLog,
|
|
38
|
+
DescribeCustomPluginCommand: () => DescribeCustomPluginCommand,
|
|
39
|
+
DescribeWorkerConfigurationCommand: () => DescribeWorkerConfigurationCommand,
|
|
40
|
+
DescribeWorkerConfigurationResponseFilterSensitiveLog: () => DescribeWorkerConfigurationResponseFilterSensitiveLog,
|
|
41
|
+
ForbiddenException: () => ForbiddenException,
|
|
42
|
+
InternalServerErrorException: () => InternalServerErrorException,
|
|
43
|
+
KafkaClusterClientAuthenticationType: () => KafkaClusterClientAuthenticationType,
|
|
44
|
+
KafkaClusterEncryptionInTransitType: () => KafkaClusterEncryptionInTransitType,
|
|
45
|
+
KafkaConnect: () => KafkaConnect,
|
|
46
|
+
KafkaConnectClient: () => KafkaConnectClient,
|
|
47
|
+
KafkaConnectServiceException: () => KafkaConnectServiceException,
|
|
48
|
+
ListConnectorsCommand: () => ListConnectorsCommand,
|
|
49
|
+
ListCustomPluginsCommand: () => ListCustomPluginsCommand,
|
|
50
|
+
ListWorkerConfigurationsCommand: () => ListWorkerConfigurationsCommand,
|
|
51
|
+
NotFoundException: () => NotFoundException,
|
|
52
|
+
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
53
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
54
|
+
UnauthorizedException: () => UnauthorizedException,
|
|
55
|
+
UpdateConnectorCommand: () => UpdateConnectorCommand,
|
|
56
|
+
WorkerConfigurationRevisionDescriptionFilterSensitiveLog: () => WorkerConfigurationRevisionDescriptionFilterSensitiveLog,
|
|
57
|
+
__Client: () => import_smithy_client.Client,
|
|
58
|
+
paginateListConnectors: () => paginateListConnectors,
|
|
59
|
+
paginateListCustomPlugins: () => paginateListCustomPlugins,
|
|
60
|
+
paginateListWorkerConfigurations: () => paginateListWorkerConfigurations
|
|
61
|
+
});
|
|
62
|
+
module.exports = __toCommonJS(src_exports);
|
|
63
|
+
|
|
64
|
+
// src/KafkaConnectClient.ts
|
|
65
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
66
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
67
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
68
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
69
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
70
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
71
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
72
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
73
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// src/endpoint/EndpointParameters.ts
|
|
77
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
78
|
+
return {
|
|
79
|
+
...options,
|
|
80
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
81
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
82
|
+
defaultSigningName: "kafkaconnect"
|
|
83
|
+
};
|
|
84
|
+
}, "resolveClientEndpointParameters");
|
|
85
|
+
var commonParams = {
|
|
86
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
87
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
88
|
+
Region: { type: "builtInParams", name: "region" },
|
|
89
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// src/KafkaConnectClient.ts
|
|
93
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
94
|
+
|
|
95
|
+
// src/runtimeExtensions.ts
|
|
96
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
97
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
98
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
99
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
100
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
101
|
+
const extensionConfiguration = {
|
|
102
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
103
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
104
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
105
|
+
};
|
|
106
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
107
|
+
return {
|
|
108
|
+
...runtimeConfig,
|
|
109
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
110
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
111
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
112
|
+
};
|
|
113
|
+
}, "resolveRuntimeExtensions");
|
|
114
|
+
|
|
115
|
+
// src/KafkaConnectClient.ts
|
|
116
|
+
var _KafkaConnectClient = class _KafkaConnectClient extends import_smithy_client.Client {
|
|
117
|
+
constructor(...[configuration]) {
|
|
118
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
119
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
120
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
121
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
122
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
123
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
124
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
125
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
126
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
127
|
+
super(_config_8);
|
|
128
|
+
this.config = _config_8;
|
|
129
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
130
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
131
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
132
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
133
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
134
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
135
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
139
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
140
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
141
|
+
*/
|
|
142
|
+
destroy() {
|
|
143
|
+
super.destroy();
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
__name(_KafkaConnectClient, "KafkaConnectClient");
|
|
147
|
+
var KafkaConnectClient = _KafkaConnectClient;
|
|
148
|
+
|
|
149
|
+
// src/KafkaConnect.ts
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
// src/commands/CreateConnectorCommand.ts
|
|
153
|
+
|
|
154
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
155
|
+
|
|
156
|
+
var import_types = require("@smithy/types");
|
|
157
|
+
|
|
158
|
+
// src/models/models_0.ts
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
// src/models/KafkaConnectServiceException.ts
|
|
162
|
+
|
|
163
|
+
var _KafkaConnectServiceException = class _KafkaConnectServiceException extends import_smithy_client.ServiceException {
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
constructor(options) {
|
|
168
|
+
super(options);
|
|
169
|
+
Object.setPrototypeOf(this, _KafkaConnectServiceException.prototype);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
__name(_KafkaConnectServiceException, "KafkaConnectServiceException");
|
|
173
|
+
var KafkaConnectServiceException = _KafkaConnectServiceException;
|
|
174
|
+
|
|
175
|
+
// src/models/models_0.ts
|
|
176
|
+
var ConnectorState = {
|
|
177
|
+
CREATING: "CREATING",
|
|
178
|
+
DELETING: "DELETING",
|
|
179
|
+
FAILED: "FAILED",
|
|
180
|
+
RUNNING: "RUNNING",
|
|
181
|
+
UPDATING: "UPDATING"
|
|
182
|
+
};
|
|
183
|
+
var KafkaClusterClientAuthenticationType = {
|
|
184
|
+
IAM: "IAM",
|
|
185
|
+
NONE: "NONE"
|
|
186
|
+
};
|
|
187
|
+
var KafkaClusterEncryptionInTransitType = {
|
|
188
|
+
PLAINTEXT: "PLAINTEXT",
|
|
189
|
+
TLS: "TLS"
|
|
190
|
+
};
|
|
191
|
+
var CustomPluginState = {
|
|
192
|
+
ACTIVE: "ACTIVE",
|
|
193
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
194
|
+
CREATING: "CREATING",
|
|
195
|
+
DELETING: "DELETING",
|
|
196
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
197
|
+
UPDATING: "UPDATING"
|
|
198
|
+
};
|
|
199
|
+
var CustomPluginContentType = {
|
|
200
|
+
JAR: "JAR",
|
|
201
|
+
ZIP: "ZIP"
|
|
202
|
+
};
|
|
203
|
+
var _BadRequestException = class _BadRequestException extends KafkaConnectServiceException {
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
*/
|
|
207
|
+
constructor(opts) {
|
|
208
|
+
super({
|
|
209
|
+
name: "BadRequestException",
|
|
210
|
+
$fault: "client",
|
|
211
|
+
...opts
|
|
212
|
+
});
|
|
213
|
+
this.name = "BadRequestException";
|
|
214
|
+
this.$fault = "client";
|
|
215
|
+
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
__name(_BadRequestException, "BadRequestException");
|
|
219
|
+
var BadRequestException = _BadRequestException;
|
|
220
|
+
var _ConflictException = class _ConflictException extends KafkaConnectServiceException {
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
constructor(opts) {
|
|
225
|
+
super({
|
|
226
|
+
name: "ConflictException",
|
|
227
|
+
$fault: "client",
|
|
228
|
+
...opts
|
|
229
|
+
});
|
|
230
|
+
this.name = "ConflictException";
|
|
231
|
+
this.$fault = "client";
|
|
232
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
__name(_ConflictException, "ConflictException");
|
|
236
|
+
var ConflictException = _ConflictException;
|
|
237
|
+
var _ForbiddenException = class _ForbiddenException extends KafkaConnectServiceException {
|
|
238
|
+
/**
|
|
239
|
+
* @internal
|
|
240
|
+
*/
|
|
241
|
+
constructor(opts) {
|
|
242
|
+
super({
|
|
243
|
+
name: "ForbiddenException",
|
|
244
|
+
$fault: "client",
|
|
245
|
+
...opts
|
|
246
|
+
});
|
|
247
|
+
this.name = "ForbiddenException";
|
|
248
|
+
this.$fault = "client";
|
|
249
|
+
Object.setPrototypeOf(this, _ForbiddenException.prototype);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
__name(_ForbiddenException, "ForbiddenException");
|
|
253
|
+
var ForbiddenException = _ForbiddenException;
|
|
254
|
+
var _InternalServerErrorException = class _InternalServerErrorException extends KafkaConnectServiceException {
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
constructor(opts) {
|
|
259
|
+
super({
|
|
260
|
+
name: "InternalServerErrorException",
|
|
261
|
+
$fault: "server",
|
|
262
|
+
...opts
|
|
263
|
+
});
|
|
264
|
+
this.name = "InternalServerErrorException";
|
|
265
|
+
this.$fault = "server";
|
|
266
|
+
Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
__name(_InternalServerErrorException, "InternalServerErrorException");
|
|
270
|
+
var InternalServerErrorException = _InternalServerErrorException;
|
|
271
|
+
var _NotFoundException = class _NotFoundException extends KafkaConnectServiceException {
|
|
272
|
+
/**
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
constructor(opts) {
|
|
276
|
+
super({
|
|
277
|
+
name: "NotFoundException",
|
|
278
|
+
$fault: "client",
|
|
279
|
+
...opts
|
|
280
|
+
});
|
|
281
|
+
this.name = "NotFoundException";
|
|
282
|
+
this.$fault = "client";
|
|
283
|
+
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
__name(_NotFoundException, "NotFoundException");
|
|
287
|
+
var NotFoundException = _NotFoundException;
|
|
288
|
+
var _ServiceUnavailableException = class _ServiceUnavailableException extends KafkaConnectServiceException {
|
|
289
|
+
/**
|
|
290
|
+
* @internal
|
|
291
|
+
*/
|
|
292
|
+
constructor(opts) {
|
|
293
|
+
super({
|
|
294
|
+
name: "ServiceUnavailableException",
|
|
295
|
+
$fault: "server",
|
|
296
|
+
...opts
|
|
297
|
+
});
|
|
298
|
+
this.name = "ServiceUnavailableException";
|
|
299
|
+
this.$fault = "server";
|
|
300
|
+
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
304
|
+
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
305
|
+
var _TooManyRequestsException = class _TooManyRequestsException extends KafkaConnectServiceException {
|
|
306
|
+
/**
|
|
307
|
+
* @internal
|
|
308
|
+
*/
|
|
309
|
+
constructor(opts) {
|
|
310
|
+
super({
|
|
311
|
+
name: "TooManyRequestsException",
|
|
312
|
+
$fault: "client",
|
|
313
|
+
...opts
|
|
314
|
+
});
|
|
315
|
+
this.name = "TooManyRequestsException";
|
|
316
|
+
this.$fault = "client";
|
|
317
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
__name(_TooManyRequestsException, "TooManyRequestsException");
|
|
321
|
+
var TooManyRequestsException = _TooManyRequestsException;
|
|
322
|
+
var _UnauthorizedException = class _UnauthorizedException extends KafkaConnectServiceException {
|
|
323
|
+
/**
|
|
324
|
+
* @internal
|
|
325
|
+
*/
|
|
326
|
+
constructor(opts) {
|
|
327
|
+
super({
|
|
328
|
+
name: "UnauthorizedException",
|
|
329
|
+
$fault: "client",
|
|
330
|
+
...opts
|
|
331
|
+
});
|
|
332
|
+
this.name = "UnauthorizedException";
|
|
333
|
+
this.$fault = "client";
|
|
334
|
+
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
__name(_UnauthorizedException, "UnauthorizedException");
|
|
338
|
+
var UnauthorizedException = _UnauthorizedException;
|
|
339
|
+
var CreateConnectorRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
340
|
+
...obj,
|
|
341
|
+
...obj.connectorConfiguration && { connectorConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
342
|
+
}), "CreateConnectorRequestFilterSensitiveLog");
|
|
343
|
+
var CreateWorkerConfigurationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
344
|
+
...obj,
|
|
345
|
+
...obj.propertiesFileContent && { propertiesFileContent: import_smithy_client.SENSITIVE_STRING }
|
|
346
|
+
}), "CreateWorkerConfigurationRequestFilterSensitiveLog");
|
|
347
|
+
var DescribeConnectorResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
348
|
+
...obj,
|
|
349
|
+
...obj.connectorConfiguration && { connectorConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
350
|
+
}), "DescribeConnectorResponseFilterSensitiveLog");
|
|
351
|
+
var WorkerConfigurationRevisionDescriptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
352
|
+
...obj,
|
|
353
|
+
...obj.propertiesFileContent && { propertiesFileContent: import_smithy_client.SENSITIVE_STRING }
|
|
354
|
+
}), "WorkerConfigurationRevisionDescriptionFilterSensitiveLog");
|
|
355
|
+
var DescribeWorkerConfigurationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
356
|
+
...obj,
|
|
357
|
+
...obj.latestRevision && {
|
|
358
|
+
latestRevision: WorkerConfigurationRevisionDescriptionFilterSensitiveLog(obj.latestRevision)
|
|
359
|
+
}
|
|
360
|
+
}), "DescribeWorkerConfigurationResponseFilterSensitiveLog");
|
|
361
|
+
|
|
362
|
+
// src/protocols/Aws_restJson1.ts
|
|
363
|
+
var import_core = require("@smithy/core");
|
|
364
|
+
|
|
365
|
+
var se_CreateConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
366
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
367
|
+
const headers = {
|
|
368
|
+
"content-type": "application/json"
|
|
369
|
+
};
|
|
370
|
+
b.bp("/v1/connectors");
|
|
371
|
+
let body;
|
|
372
|
+
body = JSON.stringify(
|
|
373
|
+
(0, import_smithy_client.take)(input, {
|
|
374
|
+
capacity: (_) => (0, import_smithy_client._json)(_),
|
|
375
|
+
connectorConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
376
|
+
connectorDescription: [],
|
|
377
|
+
connectorName: [],
|
|
378
|
+
kafkaCluster: (_) => (0, import_smithy_client._json)(_),
|
|
379
|
+
kafkaClusterClientAuthentication: (_) => (0, import_smithy_client._json)(_),
|
|
380
|
+
kafkaClusterEncryptionInTransit: (_) => (0, import_smithy_client._json)(_),
|
|
381
|
+
kafkaConnectVersion: [],
|
|
382
|
+
logDelivery: (_) => (0, import_smithy_client._json)(_),
|
|
383
|
+
plugins: (_) => (0, import_smithy_client._json)(_),
|
|
384
|
+
serviceExecutionRoleArn: [],
|
|
385
|
+
workerConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
386
|
+
})
|
|
387
|
+
);
|
|
388
|
+
b.m("POST").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
390
|
+
}, "se_CreateConnectorCommand");
|
|
391
|
+
var se_CreateCustomPluginCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
392
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
393
|
+
const headers = {
|
|
394
|
+
"content-type": "application/json"
|
|
395
|
+
};
|
|
396
|
+
b.bp("/v1/custom-plugins");
|
|
397
|
+
let body;
|
|
398
|
+
body = JSON.stringify(
|
|
399
|
+
(0, import_smithy_client.take)(input, {
|
|
400
|
+
contentType: [],
|
|
401
|
+
description: [],
|
|
402
|
+
location: (_) => (0, import_smithy_client._json)(_),
|
|
403
|
+
name: []
|
|
404
|
+
})
|
|
405
|
+
);
|
|
406
|
+
b.m("POST").h(headers).b(body);
|
|
407
|
+
return b.build();
|
|
408
|
+
}, "se_CreateCustomPluginCommand");
|
|
409
|
+
var se_CreateWorkerConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
410
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
411
|
+
const headers = {
|
|
412
|
+
"content-type": "application/json"
|
|
413
|
+
};
|
|
414
|
+
b.bp("/v1/worker-configurations");
|
|
415
|
+
let body;
|
|
416
|
+
body = JSON.stringify(
|
|
417
|
+
(0, import_smithy_client.take)(input, {
|
|
418
|
+
description: [],
|
|
419
|
+
name: [],
|
|
420
|
+
propertiesFileContent: []
|
|
421
|
+
})
|
|
422
|
+
);
|
|
423
|
+
b.m("POST").h(headers).b(body);
|
|
424
|
+
return b.build();
|
|
425
|
+
}, "se_CreateWorkerConfigurationCommand");
|
|
426
|
+
var se_DeleteConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
427
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
428
|
+
const headers = {};
|
|
429
|
+
b.bp("/v1/connectors/{connectorArn}");
|
|
430
|
+
b.p("connectorArn", () => input.connectorArn, "{connectorArn}", false);
|
|
431
|
+
const query = (0, import_smithy_client.map)({
|
|
432
|
+
[_cV]: [, input[_cV]]
|
|
433
|
+
});
|
|
434
|
+
let body;
|
|
435
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
436
|
+
return b.build();
|
|
437
|
+
}, "se_DeleteConnectorCommand");
|
|
438
|
+
var se_DeleteCustomPluginCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
439
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
440
|
+
const headers = {};
|
|
441
|
+
b.bp("/v1/custom-plugins/{customPluginArn}");
|
|
442
|
+
b.p("customPluginArn", () => input.customPluginArn, "{customPluginArn}", false);
|
|
443
|
+
let body;
|
|
444
|
+
b.m("DELETE").h(headers).b(body);
|
|
445
|
+
return b.build();
|
|
446
|
+
}, "se_DeleteCustomPluginCommand");
|
|
447
|
+
var se_DescribeConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
448
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
449
|
+
const headers = {};
|
|
450
|
+
b.bp("/v1/connectors/{connectorArn}");
|
|
451
|
+
b.p("connectorArn", () => input.connectorArn, "{connectorArn}", false);
|
|
452
|
+
let body;
|
|
453
|
+
b.m("GET").h(headers).b(body);
|
|
454
|
+
return b.build();
|
|
455
|
+
}, "se_DescribeConnectorCommand");
|
|
456
|
+
var se_DescribeCustomPluginCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
457
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
458
|
+
const headers = {};
|
|
459
|
+
b.bp("/v1/custom-plugins/{customPluginArn}");
|
|
460
|
+
b.p("customPluginArn", () => input.customPluginArn, "{customPluginArn}", false);
|
|
461
|
+
let body;
|
|
462
|
+
b.m("GET").h(headers).b(body);
|
|
463
|
+
return b.build();
|
|
464
|
+
}, "se_DescribeCustomPluginCommand");
|
|
465
|
+
var se_DescribeWorkerConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
466
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
467
|
+
const headers = {};
|
|
468
|
+
b.bp("/v1/worker-configurations/{workerConfigurationArn}");
|
|
469
|
+
b.p("workerConfigurationArn", () => input.workerConfigurationArn, "{workerConfigurationArn}", false);
|
|
470
|
+
let body;
|
|
471
|
+
b.m("GET").h(headers).b(body);
|
|
472
|
+
return b.build();
|
|
473
|
+
}, "se_DescribeWorkerConfigurationCommand");
|
|
474
|
+
var se_ListConnectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
475
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
476
|
+
const headers = {};
|
|
477
|
+
b.bp("/v1/connectors");
|
|
478
|
+
const query = (0, import_smithy_client.map)({
|
|
479
|
+
[_cNP]: [, input[_cNP]],
|
|
480
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
481
|
+
[_nT]: [, input[_nT]]
|
|
482
|
+
});
|
|
483
|
+
let body;
|
|
484
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
485
|
+
return b.build();
|
|
486
|
+
}, "se_ListConnectorsCommand");
|
|
487
|
+
var se_ListCustomPluginsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
488
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
489
|
+
const headers = {};
|
|
490
|
+
b.bp("/v1/custom-plugins");
|
|
491
|
+
const query = (0, import_smithy_client.map)({
|
|
492
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
493
|
+
[_nT]: [, input[_nT]]
|
|
494
|
+
});
|
|
495
|
+
let body;
|
|
496
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
497
|
+
return b.build();
|
|
498
|
+
}, "se_ListCustomPluginsCommand");
|
|
499
|
+
var se_ListWorkerConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
500
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
501
|
+
const headers = {};
|
|
502
|
+
b.bp("/v1/worker-configurations");
|
|
503
|
+
const query = (0, import_smithy_client.map)({
|
|
504
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
505
|
+
[_nT]: [, input[_nT]]
|
|
506
|
+
});
|
|
507
|
+
let body;
|
|
508
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
509
|
+
return b.build();
|
|
510
|
+
}, "se_ListWorkerConfigurationsCommand");
|
|
511
|
+
var se_UpdateConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
512
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
513
|
+
const headers = {
|
|
514
|
+
"content-type": "application/json"
|
|
515
|
+
};
|
|
516
|
+
b.bp("/v1/connectors/{connectorArn}");
|
|
517
|
+
b.p("connectorArn", () => input.connectorArn, "{connectorArn}", false);
|
|
518
|
+
const query = (0, import_smithy_client.map)({
|
|
519
|
+
[_cV]: [, (0, import_smithy_client.expectNonNull)(input[_cV], `currentVersion`)]
|
|
520
|
+
});
|
|
521
|
+
let body;
|
|
522
|
+
body = JSON.stringify(
|
|
523
|
+
(0, import_smithy_client.take)(input, {
|
|
524
|
+
capacity: (_) => (0, import_smithy_client._json)(_)
|
|
525
|
+
})
|
|
526
|
+
);
|
|
527
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
528
|
+
return b.build();
|
|
529
|
+
}, "se_UpdateConnectorCommand");
|
|
530
|
+
var de_CreateConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
531
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
532
|
+
return de_CreateConnectorCommandError(output, context);
|
|
533
|
+
}
|
|
534
|
+
const contents = (0, import_smithy_client.map)({
|
|
535
|
+
$metadata: deserializeMetadata(output)
|
|
536
|
+
});
|
|
537
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
538
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
539
|
+
connectorArn: import_smithy_client.expectString,
|
|
540
|
+
connectorName: import_smithy_client.expectString,
|
|
541
|
+
connectorState: import_smithy_client.expectString
|
|
542
|
+
});
|
|
543
|
+
Object.assign(contents, doc);
|
|
544
|
+
return contents;
|
|
545
|
+
}, "de_CreateConnectorCommand");
|
|
546
|
+
var de_CreateConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
547
|
+
const parsedOutput = {
|
|
548
|
+
...output,
|
|
549
|
+
body: await parseErrorBody(output.body, context)
|
|
550
|
+
};
|
|
551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
|
+
switch (errorCode) {
|
|
553
|
+
case "BadRequestException":
|
|
554
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
555
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
556
|
+
case "ConflictException":
|
|
557
|
+
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
558
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
559
|
+
case "ForbiddenException":
|
|
560
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
561
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
562
|
+
case "InternalServerErrorException":
|
|
563
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
564
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
565
|
+
case "NotFoundException":
|
|
566
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
567
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
568
|
+
case "ServiceUnavailableException":
|
|
569
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
570
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
571
|
+
case "TooManyRequestsException":
|
|
572
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
573
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
574
|
+
case "UnauthorizedException":
|
|
575
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
576
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
577
|
+
default:
|
|
578
|
+
const parsedBody = parsedOutput.body;
|
|
579
|
+
return throwDefaultError({
|
|
580
|
+
output,
|
|
581
|
+
parsedBody,
|
|
582
|
+
errorCode
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
}, "de_CreateConnectorCommandError");
|
|
586
|
+
var de_CreateCustomPluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
587
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
|
+
return de_CreateCustomPluginCommandError(output, context);
|
|
589
|
+
}
|
|
590
|
+
const contents = (0, import_smithy_client.map)({
|
|
591
|
+
$metadata: deserializeMetadata(output)
|
|
592
|
+
});
|
|
593
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
594
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
595
|
+
customPluginArn: import_smithy_client.expectString,
|
|
596
|
+
customPluginState: import_smithy_client.expectString,
|
|
597
|
+
name: import_smithy_client.expectString,
|
|
598
|
+
revision: import_smithy_client.expectLong
|
|
599
|
+
});
|
|
600
|
+
Object.assign(contents, doc);
|
|
601
|
+
return contents;
|
|
602
|
+
}, "de_CreateCustomPluginCommand");
|
|
603
|
+
var de_CreateCustomPluginCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
604
|
+
const parsedOutput = {
|
|
605
|
+
...output,
|
|
606
|
+
body: await parseErrorBody(output.body, context)
|
|
607
|
+
};
|
|
608
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
+
switch (errorCode) {
|
|
610
|
+
case "BadRequestException":
|
|
611
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
612
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
613
|
+
case "ConflictException":
|
|
614
|
+
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
615
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
616
|
+
case "ForbiddenException":
|
|
617
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
618
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
619
|
+
case "InternalServerErrorException":
|
|
620
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
621
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
622
|
+
case "NotFoundException":
|
|
623
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
624
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
625
|
+
case "ServiceUnavailableException":
|
|
626
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
627
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
628
|
+
case "TooManyRequestsException":
|
|
629
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
630
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
631
|
+
case "UnauthorizedException":
|
|
632
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
633
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
634
|
+
default:
|
|
635
|
+
const parsedBody = parsedOutput.body;
|
|
636
|
+
return throwDefaultError({
|
|
637
|
+
output,
|
|
638
|
+
parsedBody,
|
|
639
|
+
errorCode
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
}, "de_CreateCustomPluginCommandError");
|
|
643
|
+
var de_CreateWorkerConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
644
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
645
|
+
return de_CreateWorkerConfigurationCommandError(output, context);
|
|
646
|
+
}
|
|
647
|
+
const contents = (0, import_smithy_client.map)({
|
|
648
|
+
$metadata: deserializeMetadata(output)
|
|
649
|
+
});
|
|
650
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
651
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
652
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
653
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionSummary(_, context),
|
|
654
|
+
name: import_smithy_client.expectString,
|
|
655
|
+
workerConfigurationArn: import_smithy_client.expectString
|
|
656
|
+
});
|
|
657
|
+
Object.assign(contents, doc);
|
|
658
|
+
return contents;
|
|
659
|
+
}, "de_CreateWorkerConfigurationCommand");
|
|
660
|
+
var de_CreateWorkerConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
661
|
+
const parsedOutput = {
|
|
662
|
+
...output,
|
|
663
|
+
body: await parseErrorBody(output.body, context)
|
|
664
|
+
};
|
|
665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
|
+
switch (errorCode) {
|
|
667
|
+
case "BadRequestException":
|
|
668
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
669
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
670
|
+
case "ConflictException":
|
|
671
|
+
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
672
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
673
|
+
case "ForbiddenException":
|
|
674
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
675
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
676
|
+
case "InternalServerErrorException":
|
|
677
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
678
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
679
|
+
case "NotFoundException":
|
|
680
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
681
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
682
|
+
case "ServiceUnavailableException":
|
|
683
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
684
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
685
|
+
case "TooManyRequestsException":
|
|
686
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
687
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
688
|
+
case "UnauthorizedException":
|
|
689
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
690
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
691
|
+
default:
|
|
692
|
+
const parsedBody = parsedOutput.body;
|
|
693
|
+
return throwDefaultError({
|
|
694
|
+
output,
|
|
695
|
+
parsedBody,
|
|
696
|
+
errorCode
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
}, "de_CreateWorkerConfigurationCommandError");
|
|
700
|
+
var de_DeleteConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
701
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
702
|
+
return de_DeleteConnectorCommandError(output, context);
|
|
703
|
+
}
|
|
704
|
+
const contents = (0, import_smithy_client.map)({
|
|
705
|
+
$metadata: deserializeMetadata(output)
|
|
706
|
+
});
|
|
707
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
708
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
709
|
+
connectorArn: import_smithy_client.expectString,
|
|
710
|
+
connectorState: import_smithy_client.expectString
|
|
711
|
+
});
|
|
712
|
+
Object.assign(contents, doc);
|
|
713
|
+
return contents;
|
|
714
|
+
}, "de_DeleteConnectorCommand");
|
|
715
|
+
var de_DeleteConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
+
const parsedOutput = {
|
|
717
|
+
...output,
|
|
718
|
+
body: await parseErrorBody(output.body, context)
|
|
719
|
+
};
|
|
720
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
+
switch (errorCode) {
|
|
722
|
+
case "BadRequestException":
|
|
723
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
724
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
725
|
+
case "ForbiddenException":
|
|
726
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
727
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
728
|
+
case "InternalServerErrorException":
|
|
729
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
730
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
731
|
+
case "NotFoundException":
|
|
732
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
733
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
734
|
+
case "ServiceUnavailableException":
|
|
735
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
736
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
737
|
+
case "TooManyRequestsException":
|
|
738
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
739
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
740
|
+
case "UnauthorizedException":
|
|
741
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
742
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
743
|
+
default:
|
|
744
|
+
const parsedBody = parsedOutput.body;
|
|
745
|
+
return throwDefaultError({
|
|
746
|
+
output,
|
|
747
|
+
parsedBody,
|
|
748
|
+
errorCode
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
}, "de_DeleteConnectorCommandError");
|
|
752
|
+
var de_DeleteCustomPluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
+
return de_DeleteCustomPluginCommandError(output, context);
|
|
755
|
+
}
|
|
756
|
+
const contents = (0, import_smithy_client.map)({
|
|
757
|
+
$metadata: deserializeMetadata(output)
|
|
758
|
+
});
|
|
759
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
760
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
761
|
+
customPluginArn: import_smithy_client.expectString,
|
|
762
|
+
customPluginState: import_smithy_client.expectString
|
|
763
|
+
});
|
|
764
|
+
Object.assign(contents, doc);
|
|
765
|
+
return contents;
|
|
766
|
+
}, "de_DeleteCustomPluginCommand");
|
|
767
|
+
var de_DeleteCustomPluginCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
768
|
+
const parsedOutput = {
|
|
769
|
+
...output,
|
|
770
|
+
body: await parseErrorBody(output.body, context)
|
|
771
|
+
};
|
|
772
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
|
+
switch (errorCode) {
|
|
774
|
+
case "BadRequestException":
|
|
775
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
776
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
777
|
+
case "ForbiddenException":
|
|
778
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
779
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
780
|
+
case "InternalServerErrorException":
|
|
781
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
782
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
783
|
+
case "NotFoundException":
|
|
784
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
785
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
786
|
+
case "ServiceUnavailableException":
|
|
787
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
788
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
789
|
+
case "TooManyRequestsException":
|
|
790
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
791
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
792
|
+
case "UnauthorizedException":
|
|
793
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
794
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
795
|
+
default:
|
|
796
|
+
const parsedBody = parsedOutput.body;
|
|
797
|
+
return throwDefaultError({
|
|
798
|
+
output,
|
|
799
|
+
parsedBody,
|
|
800
|
+
errorCode
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
}, "de_DeleteCustomPluginCommandError");
|
|
804
|
+
var de_DescribeConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
805
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
+
return de_DescribeConnectorCommandError(output, context);
|
|
807
|
+
}
|
|
808
|
+
const contents = (0, import_smithy_client.map)({
|
|
809
|
+
$metadata: deserializeMetadata(output)
|
|
810
|
+
});
|
|
811
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
812
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
813
|
+
capacity: import_smithy_client._json,
|
|
814
|
+
connectorArn: import_smithy_client.expectString,
|
|
815
|
+
connectorConfiguration: import_smithy_client._json,
|
|
816
|
+
connectorDescription: import_smithy_client.expectString,
|
|
817
|
+
connectorName: import_smithy_client.expectString,
|
|
818
|
+
connectorState: import_smithy_client.expectString,
|
|
819
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
820
|
+
currentVersion: import_smithy_client.expectString,
|
|
821
|
+
kafkaCluster: import_smithy_client._json,
|
|
822
|
+
kafkaClusterClientAuthentication: import_smithy_client._json,
|
|
823
|
+
kafkaClusterEncryptionInTransit: import_smithy_client._json,
|
|
824
|
+
kafkaConnectVersion: import_smithy_client.expectString,
|
|
825
|
+
logDelivery: import_smithy_client._json,
|
|
826
|
+
plugins: import_smithy_client._json,
|
|
827
|
+
serviceExecutionRoleArn: import_smithy_client.expectString,
|
|
828
|
+
stateDescription: import_smithy_client._json,
|
|
829
|
+
workerConfiguration: import_smithy_client._json
|
|
830
|
+
});
|
|
831
|
+
Object.assign(contents, doc);
|
|
832
|
+
return contents;
|
|
833
|
+
}, "de_DescribeConnectorCommand");
|
|
834
|
+
var de_DescribeConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
835
|
+
const parsedOutput = {
|
|
836
|
+
...output,
|
|
837
|
+
body: await parseErrorBody(output.body, context)
|
|
838
|
+
};
|
|
839
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
|
+
switch (errorCode) {
|
|
841
|
+
case "BadRequestException":
|
|
842
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
843
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
844
|
+
case "ForbiddenException":
|
|
845
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
846
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
847
|
+
case "InternalServerErrorException":
|
|
848
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
849
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
850
|
+
case "NotFoundException":
|
|
851
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
852
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
853
|
+
case "ServiceUnavailableException":
|
|
854
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
855
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
856
|
+
case "TooManyRequestsException":
|
|
857
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
858
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
859
|
+
case "UnauthorizedException":
|
|
860
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
861
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
862
|
+
default:
|
|
863
|
+
const parsedBody = parsedOutput.body;
|
|
864
|
+
return throwDefaultError({
|
|
865
|
+
output,
|
|
866
|
+
parsedBody,
|
|
867
|
+
errorCode
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
}, "de_DescribeConnectorCommandError");
|
|
871
|
+
var de_DescribeCustomPluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
873
|
+
return de_DescribeCustomPluginCommandError(output, context);
|
|
874
|
+
}
|
|
875
|
+
const contents = (0, import_smithy_client.map)({
|
|
876
|
+
$metadata: deserializeMetadata(output)
|
|
877
|
+
});
|
|
878
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
879
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
880
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
881
|
+
customPluginArn: import_smithy_client.expectString,
|
|
882
|
+
customPluginState: import_smithy_client.expectString,
|
|
883
|
+
description: import_smithy_client.expectString,
|
|
884
|
+
latestRevision: (_) => de_CustomPluginRevisionSummary(_, context),
|
|
885
|
+
name: import_smithy_client.expectString,
|
|
886
|
+
stateDescription: import_smithy_client._json
|
|
887
|
+
});
|
|
888
|
+
Object.assign(contents, doc);
|
|
889
|
+
return contents;
|
|
890
|
+
}, "de_DescribeCustomPluginCommand");
|
|
891
|
+
var de_DescribeCustomPluginCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
+
const parsedOutput = {
|
|
893
|
+
...output,
|
|
894
|
+
body: await parseErrorBody(output.body, context)
|
|
895
|
+
};
|
|
896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
switch (errorCode) {
|
|
898
|
+
case "BadRequestException":
|
|
899
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
900
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
901
|
+
case "ForbiddenException":
|
|
902
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
903
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
904
|
+
case "InternalServerErrorException":
|
|
905
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
906
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
907
|
+
case "NotFoundException":
|
|
908
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
909
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
910
|
+
case "ServiceUnavailableException":
|
|
911
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
912
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
913
|
+
case "TooManyRequestsException":
|
|
914
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
915
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
916
|
+
case "UnauthorizedException":
|
|
917
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
918
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
919
|
+
default:
|
|
920
|
+
const parsedBody = parsedOutput.body;
|
|
921
|
+
return throwDefaultError({
|
|
922
|
+
output,
|
|
923
|
+
parsedBody,
|
|
924
|
+
errorCode
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
}, "de_DescribeCustomPluginCommandError");
|
|
928
|
+
var de_DescribeWorkerConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
929
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
930
|
+
return de_DescribeWorkerConfigurationCommandError(output, context);
|
|
931
|
+
}
|
|
932
|
+
const contents = (0, import_smithy_client.map)({
|
|
933
|
+
$metadata: deserializeMetadata(output)
|
|
934
|
+
});
|
|
935
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
936
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
937
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
938
|
+
description: import_smithy_client.expectString,
|
|
939
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionDescription(_, context),
|
|
940
|
+
name: import_smithy_client.expectString,
|
|
941
|
+
workerConfigurationArn: import_smithy_client.expectString
|
|
942
|
+
});
|
|
943
|
+
Object.assign(contents, doc);
|
|
944
|
+
return contents;
|
|
945
|
+
}, "de_DescribeWorkerConfigurationCommand");
|
|
946
|
+
var de_DescribeWorkerConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
947
|
+
const parsedOutput = {
|
|
948
|
+
...output,
|
|
949
|
+
body: await parseErrorBody(output.body, context)
|
|
950
|
+
};
|
|
951
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
|
+
switch (errorCode) {
|
|
953
|
+
case "BadRequestException":
|
|
954
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
955
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
956
|
+
case "ForbiddenException":
|
|
957
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
958
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
959
|
+
case "InternalServerErrorException":
|
|
960
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
961
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
962
|
+
case "NotFoundException":
|
|
963
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
964
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
965
|
+
case "ServiceUnavailableException":
|
|
966
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
967
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
968
|
+
case "TooManyRequestsException":
|
|
969
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
970
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
971
|
+
case "UnauthorizedException":
|
|
972
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
973
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
974
|
+
default:
|
|
975
|
+
const parsedBody = parsedOutput.body;
|
|
976
|
+
return throwDefaultError({
|
|
977
|
+
output,
|
|
978
|
+
parsedBody,
|
|
979
|
+
errorCode
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
}, "de_DescribeWorkerConfigurationCommandError");
|
|
983
|
+
var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
984
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
+
return de_ListConnectorsCommandError(output, context);
|
|
986
|
+
}
|
|
987
|
+
const contents = (0, import_smithy_client.map)({
|
|
988
|
+
$metadata: deserializeMetadata(output)
|
|
989
|
+
});
|
|
990
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
991
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
992
|
+
connectors: (_) => de___listOfConnectorSummary(_, context),
|
|
993
|
+
nextToken: import_smithy_client.expectString
|
|
994
|
+
});
|
|
995
|
+
Object.assign(contents, doc);
|
|
996
|
+
return contents;
|
|
997
|
+
}, "de_ListConnectorsCommand");
|
|
998
|
+
var de_ListConnectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
999
|
+
const parsedOutput = {
|
|
1000
|
+
...output,
|
|
1001
|
+
body: await parseErrorBody(output.body, context)
|
|
1002
|
+
};
|
|
1003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
+
switch (errorCode) {
|
|
1005
|
+
case "BadRequestException":
|
|
1006
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1007
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1008
|
+
case "ForbiddenException":
|
|
1009
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1010
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1011
|
+
case "InternalServerErrorException":
|
|
1012
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1013
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1014
|
+
case "NotFoundException":
|
|
1015
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1016
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
+
case "ServiceUnavailableException":
|
|
1018
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1019
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1020
|
+
case "TooManyRequestsException":
|
|
1021
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1022
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1023
|
+
case "UnauthorizedException":
|
|
1024
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1025
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1026
|
+
default:
|
|
1027
|
+
const parsedBody = parsedOutput.body;
|
|
1028
|
+
return throwDefaultError({
|
|
1029
|
+
output,
|
|
1030
|
+
parsedBody,
|
|
1031
|
+
errorCode
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
}, "de_ListConnectorsCommandError");
|
|
1035
|
+
var de_ListCustomPluginsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1036
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
+
return de_ListCustomPluginsCommandError(output, context);
|
|
1038
|
+
}
|
|
1039
|
+
const contents = (0, import_smithy_client.map)({
|
|
1040
|
+
$metadata: deserializeMetadata(output)
|
|
1041
|
+
});
|
|
1042
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1043
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1044
|
+
customPlugins: (_) => de___listOfCustomPluginSummary(_, context),
|
|
1045
|
+
nextToken: import_smithy_client.expectString
|
|
1046
|
+
});
|
|
1047
|
+
Object.assign(contents, doc);
|
|
1048
|
+
return contents;
|
|
1049
|
+
}, "de_ListCustomPluginsCommand");
|
|
1050
|
+
var de_ListCustomPluginsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1051
|
+
const parsedOutput = {
|
|
1052
|
+
...output,
|
|
1053
|
+
body: await parseErrorBody(output.body, context)
|
|
1054
|
+
};
|
|
1055
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
|
+
switch (errorCode) {
|
|
1057
|
+
case "BadRequestException":
|
|
1058
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1059
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1060
|
+
case "ForbiddenException":
|
|
1061
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1062
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1063
|
+
case "InternalServerErrorException":
|
|
1064
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1065
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1066
|
+
case "NotFoundException":
|
|
1067
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1068
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1069
|
+
case "ServiceUnavailableException":
|
|
1070
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1071
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1072
|
+
case "TooManyRequestsException":
|
|
1073
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1074
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1075
|
+
case "UnauthorizedException":
|
|
1076
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1077
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1078
|
+
default:
|
|
1079
|
+
const parsedBody = parsedOutput.body;
|
|
1080
|
+
return throwDefaultError({
|
|
1081
|
+
output,
|
|
1082
|
+
parsedBody,
|
|
1083
|
+
errorCode
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
}, "de_ListCustomPluginsCommandError");
|
|
1087
|
+
var de_ListWorkerConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1088
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
+
return de_ListWorkerConfigurationsCommandError(output, context);
|
|
1090
|
+
}
|
|
1091
|
+
const contents = (0, import_smithy_client.map)({
|
|
1092
|
+
$metadata: deserializeMetadata(output)
|
|
1093
|
+
});
|
|
1094
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1095
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1096
|
+
nextToken: import_smithy_client.expectString,
|
|
1097
|
+
workerConfigurations: (_) => de___listOfWorkerConfigurationSummary(_, context)
|
|
1098
|
+
});
|
|
1099
|
+
Object.assign(contents, doc);
|
|
1100
|
+
return contents;
|
|
1101
|
+
}, "de_ListWorkerConfigurationsCommand");
|
|
1102
|
+
var de_ListWorkerConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
|
+
const parsedOutput = {
|
|
1104
|
+
...output,
|
|
1105
|
+
body: await parseErrorBody(output.body, context)
|
|
1106
|
+
};
|
|
1107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
+
switch (errorCode) {
|
|
1109
|
+
case "BadRequestException":
|
|
1110
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1111
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1112
|
+
case "ForbiddenException":
|
|
1113
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1114
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1115
|
+
case "InternalServerErrorException":
|
|
1116
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1117
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1118
|
+
case "NotFoundException":
|
|
1119
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1120
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1121
|
+
case "ServiceUnavailableException":
|
|
1122
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1123
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "TooManyRequestsException":
|
|
1125
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1126
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "UnauthorizedException":
|
|
1128
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1129
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1130
|
+
default:
|
|
1131
|
+
const parsedBody = parsedOutput.body;
|
|
1132
|
+
return throwDefaultError({
|
|
1133
|
+
output,
|
|
1134
|
+
parsedBody,
|
|
1135
|
+
errorCode
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
}, "de_ListWorkerConfigurationsCommandError");
|
|
1139
|
+
var de_UpdateConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1140
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1141
|
+
return de_UpdateConnectorCommandError(output, context);
|
|
1142
|
+
}
|
|
1143
|
+
const contents = (0, import_smithy_client.map)({
|
|
1144
|
+
$metadata: deserializeMetadata(output)
|
|
1145
|
+
});
|
|
1146
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1147
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1148
|
+
connectorArn: import_smithy_client.expectString,
|
|
1149
|
+
connectorState: import_smithy_client.expectString
|
|
1150
|
+
});
|
|
1151
|
+
Object.assign(contents, doc);
|
|
1152
|
+
return contents;
|
|
1153
|
+
}, "de_UpdateConnectorCommand");
|
|
1154
|
+
var de_UpdateConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1155
|
+
const parsedOutput = {
|
|
1156
|
+
...output,
|
|
1157
|
+
body: await parseErrorBody(output.body, context)
|
|
1158
|
+
};
|
|
1159
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1160
|
+
switch (errorCode) {
|
|
1161
|
+
case "BadRequestException":
|
|
1162
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1163
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1164
|
+
case "ForbiddenException":
|
|
1165
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1166
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1167
|
+
case "InternalServerErrorException":
|
|
1168
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1169
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1170
|
+
case "NotFoundException":
|
|
1171
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1172
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1173
|
+
case "ServiceUnavailableException":
|
|
1174
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1175
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1176
|
+
case "TooManyRequestsException":
|
|
1177
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1178
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1179
|
+
case "UnauthorizedException":
|
|
1180
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1181
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1182
|
+
default:
|
|
1183
|
+
const parsedBody = parsedOutput.body;
|
|
1184
|
+
return throwDefaultError({
|
|
1185
|
+
output,
|
|
1186
|
+
parsedBody,
|
|
1187
|
+
errorCode
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
}, "de_UpdateConnectorCommandError");
|
|
1191
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(KafkaConnectServiceException);
|
|
1192
|
+
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1193
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1194
|
+
const data = parsedOutput.body;
|
|
1195
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1196
|
+
message: import_smithy_client.expectString
|
|
1197
|
+
});
|
|
1198
|
+
Object.assign(contents, doc);
|
|
1199
|
+
const exception = new BadRequestException({
|
|
1200
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1201
|
+
...contents
|
|
1202
|
+
});
|
|
1203
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1204
|
+
}, "de_BadRequestExceptionRes");
|
|
1205
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1206
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1207
|
+
const data = parsedOutput.body;
|
|
1208
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1209
|
+
message: import_smithy_client.expectString
|
|
1210
|
+
});
|
|
1211
|
+
Object.assign(contents, doc);
|
|
1212
|
+
const exception = new ConflictException({
|
|
1213
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1214
|
+
...contents
|
|
1215
|
+
});
|
|
1216
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1217
|
+
}, "de_ConflictExceptionRes");
|
|
1218
|
+
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1219
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1220
|
+
const data = parsedOutput.body;
|
|
1221
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1222
|
+
message: import_smithy_client.expectString
|
|
1223
|
+
});
|
|
1224
|
+
Object.assign(contents, doc);
|
|
1225
|
+
const exception = new ForbiddenException({
|
|
1226
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1227
|
+
...contents
|
|
1228
|
+
});
|
|
1229
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1230
|
+
}, "de_ForbiddenExceptionRes");
|
|
1231
|
+
var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1232
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1233
|
+
const data = parsedOutput.body;
|
|
1234
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1235
|
+
message: import_smithy_client.expectString
|
|
1236
|
+
});
|
|
1237
|
+
Object.assign(contents, doc);
|
|
1238
|
+
const exception = new InternalServerErrorException({
|
|
1239
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1240
|
+
...contents
|
|
1241
|
+
});
|
|
1242
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1243
|
+
}, "de_InternalServerErrorExceptionRes");
|
|
1244
|
+
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1245
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1246
|
+
const data = parsedOutput.body;
|
|
1247
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1248
|
+
message: import_smithy_client.expectString
|
|
1249
|
+
});
|
|
1250
|
+
Object.assign(contents, doc);
|
|
1251
|
+
const exception = new NotFoundException({
|
|
1252
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1253
|
+
...contents
|
|
1254
|
+
});
|
|
1255
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1256
|
+
}, "de_NotFoundExceptionRes");
|
|
1257
|
+
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1258
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1259
|
+
const data = parsedOutput.body;
|
|
1260
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1261
|
+
message: import_smithy_client.expectString
|
|
1262
|
+
});
|
|
1263
|
+
Object.assign(contents, doc);
|
|
1264
|
+
const exception = new ServiceUnavailableException({
|
|
1265
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1266
|
+
...contents
|
|
1267
|
+
});
|
|
1268
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1269
|
+
}, "de_ServiceUnavailableExceptionRes");
|
|
1270
|
+
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1271
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1272
|
+
const data = parsedOutput.body;
|
|
1273
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1274
|
+
message: import_smithy_client.expectString
|
|
1275
|
+
});
|
|
1276
|
+
Object.assign(contents, doc);
|
|
1277
|
+
const exception = new TooManyRequestsException({
|
|
1278
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1279
|
+
...contents
|
|
1280
|
+
});
|
|
1281
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1282
|
+
}, "de_TooManyRequestsExceptionRes");
|
|
1283
|
+
var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1284
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1285
|
+
const data = parsedOutput.body;
|
|
1286
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1287
|
+
message: import_smithy_client.expectString
|
|
1288
|
+
});
|
|
1289
|
+
Object.assign(contents, doc);
|
|
1290
|
+
const exception = new UnauthorizedException({
|
|
1291
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1292
|
+
...contents
|
|
1293
|
+
});
|
|
1294
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1295
|
+
}, "de_UnauthorizedExceptionRes");
|
|
1296
|
+
var de___listOfConnectorSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1297
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1298
|
+
return de_ConnectorSummary(entry, context);
|
|
1299
|
+
});
|
|
1300
|
+
return retVal;
|
|
1301
|
+
}, "de___listOfConnectorSummary");
|
|
1302
|
+
var de___listOfCustomPluginSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1303
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1304
|
+
return de_CustomPluginSummary(entry, context);
|
|
1305
|
+
});
|
|
1306
|
+
return retVal;
|
|
1307
|
+
}, "de___listOfCustomPluginSummary");
|
|
1308
|
+
var de___listOfWorkerConfigurationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1309
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1310
|
+
return de_WorkerConfigurationSummary(entry, context);
|
|
1311
|
+
});
|
|
1312
|
+
return retVal;
|
|
1313
|
+
}, "de___listOfWorkerConfigurationSummary");
|
|
1314
|
+
var de_ConnectorSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1315
|
+
return (0, import_smithy_client.take)(output, {
|
|
1316
|
+
capacity: import_smithy_client._json,
|
|
1317
|
+
connectorArn: import_smithy_client.expectString,
|
|
1318
|
+
connectorDescription: import_smithy_client.expectString,
|
|
1319
|
+
connectorName: import_smithy_client.expectString,
|
|
1320
|
+
connectorState: import_smithy_client.expectString,
|
|
1321
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1322
|
+
currentVersion: import_smithy_client.expectString,
|
|
1323
|
+
kafkaCluster: import_smithy_client._json,
|
|
1324
|
+
kafkaClusterClientAuthentication: import_smithy_client._json,
|
|
1325
|
+
kafkaClusterEncryptionInTransit: import_smithy_client._json,
|
|
1326
|
+
kafkaConnectVersion: import_smithy_client.expectString,
|
|
1327
|
+
logDelivery: import_smithy_client._json,
|
|
1328
|
+
plugins: import_smithy_client._json,
|
|
1329
|
+
serviceExecutionRoleArn: import_smithy_client.expectString,
|
|
1330
|
+
workerConfiguration: import_smithy_client._json
|
|
1331
|
+
});
|
|
1332
|
+
}, "de_ConnectorSummary");
|
|
1333
|
+
var de_CustomPluginRevisionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1334
|
+
return (0, import_smithy_client.take)(output, {
|
|
1335
|
+
contentType: import_smithy_client.expectString,
|
|
1336
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1337
|
+
description: import_smithy_client.expectString,
|
|
1338
|
+
fileDescription: import_smithy_client._json,
|
|
1339
|
+
location: import_smithy_client._json,
|
|
1340
|
+
revision: import_smithy_client.expectLong
|
|
1341
|
+
});
|
|
1342
|
+
}, "de_CustomPluginRevisionSummary");
|
|
1343
|
+
var de_CustomPluginSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1344
|
+
return (0, import_smithy_client.take)(output, {
|
|
1345
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1346
|
+
customPluginArn: import_smithy_client.expectString,
|
|
1347
|
+
customPluginState: import_smithy_client.expectString,
|
|
1348
|
+
description: import_smithy_client.expectString,
|
|
1349
|
+
latestRevision: (_) => de_CustomPluginRevisionSummary(_, context),
|
|
1350
|
+
name: import_smithy_client.expectString
|
|
1351
|
+
});
|
|
1352
|
+
}, "de_CustomPluginSummary");
|
|
1353
|
+
var de_WorkerConfigurationRevisionDescription = /* @__PURE__ */ __name((output, context) => {
|
|
1354
|
+
return (0, import_smithy_client.take)(output, {
|
|
1355
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1356
|
+
description: import_smithy_client.expectString,
|
|
1357
|
+
propertiesFileContent: import_smithy_client.expectString,
|
|
1358
|
+
revision: import_smithy_client.expectLong
|
|
1359
|
+
});
|
|
1360
|
+
}, "de_WorkerConfigurationRevisionDescription");
|
|
1361
|
+
var de_WorkerConfigurationRevisionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1362
|
+
return (0, import_smithy_client.take)(output, {
|
|
1363
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1364
|
+
description: import_smithy_client.expectString,
|
|
1365
|
+
revision: import_smithy_client.expectLong
|
|
1366
|
+
});
|
|
1367
|
+
}, "de_WorkerConfigurationRevisionSummary");
|
|
1368
|
+
var de_WorkerConfigurationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1369
|
+
return (0, import_smithy_client.take)(output, {
|
|
1370
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1371
|
+
description: import_smithy_client.expectString,
|
|
1372
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionSummary(_, context),
|
|
1373
|
+
name: import_smithy_client.expectString,
|
|
1374
|
+
workerConfigurationArn: import_smithy_client.expectString
|
|
1375
|
+
});
|
|
1376
|
+
}, "de_WorkerConfigurationSummary");
|
|
1377
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1378
|
+
httpStatusCode: output.statusCode,
|
|
1379
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1380
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1381
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1382
|
+
}), "deserializeMetadata");
|
|
1383
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1384
|
+
var _cNP = "connectorNamePrefix";
|
|
1385
|
+
var _cV = "currentVersion";
|
|
1386
|
+
var _mR = "maxResults";
|
|
1387
|
+
var _nT = "nextToken";
|
|
1388
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1389
|
+
if (encoded.length) {
|
|
1390
|
+
return JSON.parse(encoded);
|
|
1391
|
+
}
|
|
1392
|
+
return {};
|
|
1393
|
+
}), "parseBody");
|
|
1394
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1395
|
+
const value = await parseBody(errorBody, context);
|
|
1396
|
+
value.message = value.message ?? value.Message;
|
|
1397
|
+
return value;
|
|
1398
|
+
}, "parseErrorBody");
|
|
1399
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1400
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1401
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1402
|
+
let cleanValue = rawValue;
|
|
1403
|
+
if (typeof cleanValue === "number") {
|
|
1404
|
+
cleanValue = cleanValue.toString();
|
|
1405
|
+
}
|
|
1406
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1407
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1408
|
+
}
|
|
1409
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1410
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1411
|
+
}
|
|
1412
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1413
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1414
|
+
}
|
|
1415
|
+
return cleanValue;
|
|
1416
|
+
}, "sanitizeErrorCode");
|
|
1417
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1418
|
+
if (headerKey !== void 0) {
|
|
1419
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1420
|
+
}
|
|
1421
|
+
if (data.code !== void 0) {
|
|
1422
|
+
return sanitizeErrorCode(data.code);
|
|
1423
|
+
}
|
|
1424
|
+
if (data["__type"] !== void 0) {
|
|
1425
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1426
|
+
}
|
|
1427
|
+
}, "loadRestJsonErrorCode");
|
|
1428
|
+
|
|
1429
|
+
// src/commands/CreateConnectorCommand.ts
|
|
1430
|
+
var _CreateConnectorCommand = class _CreateConnectorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1431
|
+
...commonParams
|
|
1432
|
+
}).m(function(Command, cs, config, o) {
|
|
1433
|
+
return [
|
|
1434
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1435
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1436
|
+
];
|
|
1437
|
+
}).s("KafkaConnect", "CreateConnector", {}).n("KafkaConnectClient", "CreateConnectorCommand").f(CreateConnectorRequestFilterSensitiveLog, void 0).ser(se_CreateConnectorCommand).de(de_CreateConnectorCommand).build() {
|
|
1438
|
+
};
|
|
1439
|
+
__name(_CreateConnectorCommand, "CreateConnectorCommand");
|
|
1440
|
+
var CreateConnectorCommand = _CreateConnectorCommand;
|
|
1441
|
+
|
|
1442
|
+
// src/commands/CreateCustomPluginCommand.ts
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
var _CreateCustomPluginCommand = class _CreateCustomPluginCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1448
|
+
...commonParams
|
|
1449
|
+
}).m(function(Command, cs, config, o) {
|
|
1450
|
+
return [
|
|
1451
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1452
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1453
|
+
];
|
|
1454
|
+
}).s("KafkaConnect", "CreateCustomPlugin", {}).n("KafkaConnectClient", "CreateCustomPluginCommand").f(void 0, void 0).ser(se_CreateCustomPluginCommand).de(de_CreateCustomPluginCommand).build() {
|
|
1455
|
+
};
|
|
1456
|
+
__name(_CreateCustomPluginCommand, "CreateCustomPluginCommand");
|
|
1457
|
+
var CreateCustomPluginCommand = _CreateCustomPluginCommand;
|
|
1458
|
+
|
|
1459
|
+
// src/commands/CreateWorkerConfigurationCommand.ts
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
var _CreateWorkerConfigurationCommand = class _CreateWorkerConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1465
|
+
...commonParams
|
|
1466
|
+
}).m(function(Command, cs, config, o) {
|
|
1467
|
+
return [
|
|
1468
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1469
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1470
|
+
];
|
|
1471
|
+
}).s("KafkaConnect", "CreateWorkerConfiguration", {}).n("KafkaConnectClient", "CreateWorkerConfigurationCommand").f(CreateWorkerConfigurationRequestFilterSensitiveLog, void 0).ser(se_CreateWorkerConfigurationCommand).de(de_CreateWorkerConfigurationCommand).build() {
|
|
1472
|
+
};
|
|
1473
|
+
__name(_CreateWorkerConfigurationCommand, "CreateWorkerConfigurationCommand");
|
|
1474
|
+
var CreateWorkerConfigurationCommand = _CreateWorkerConfigurationCommand;
|
|
1475
|
+
|
|
1476
|
+
// src/commands/DeleteConnectorCommand.ts
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
var _DeleteConnectorCommand = class _DeleteConnectorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1482
|
+
...commonParams
|
|
1483
|
+
}).m(function(Command, cs, config, o) {
|
|
1484
|
+
return [
|
|
1485
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1486
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1487
|
+
];
|
|
1488
|
+
}).s("KafkaConnect", "DeleteConnector", {}).n("KafkaConnectClient", "DeleteConnectorCommand").f(void 0, void 0).ser(se_DeleteConnectorCommand).de(de_DeleteConnectorCommand).build() {
|
|
1489
|
+
};
|
|
1490
|
+
__name(_DeleteConnectorCommand, "DeleteConnectorCommand");
|
|
1491
|
+
var DeleteConnectorCommand = _DeleteConnectorCommand;
|
|
1492
|
+
|
|
1493
|
+
// src/commands/DeleteCustomPluginCommand.ts
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
var _DeleteCustomPluginCommand = class _DeleteCustomPluginCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1499
|
+
...commonParams
|
|
1500
|
+
}).m(function(Command, cs, config, o) {
|
|
1501
|
+
return [
|
|
1502
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1503
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1504
|
+
];
|
|
1505
|
+
}).s("KafkaConnect", "DeleteCustomPlugin", {}).n("KafkaConnectClient", "DeleteCustomPluginCommand").f(void 0, void 0).ser(se_DeleteCustomPluginCommand).de(de_DeleteCustomPluginCommand).build() {
|
|
1506
|
+
};
|
|
1507
|
+
__name(_DeleteCustomPluginCommand, "DeleteCustomPluginCommand");
|
|
1508
|
+
var DeleteCustomPluginCommand = _DeleteCustomPluginCommand;
|
|
1509
|
+
|
|
1510
|
+
// src/commands/DescribeConnectorCommand.ts
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
var _DescribeConnectorCommand = class _DescribeConnectorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1516
|
+
...commonParams
|
|
1517
|
+
}).m(function(Command, cs, config, o) {
|
|
1518
|
+
return [
|
|
1519
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1520
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1521
|
+
];
|
|
1522
|
+
}).s("KafkaConnect", "DescribeConnector", {}).n("KafkaConnectClient", "DescribeConnectorCommand").f(void 0, DescribeConnectorResponseFilterSensitiveLog).ser(se_DescribeConnectorCommand).de(de_DescribeConnectorCommand).build() {
|
|
1523
|
+
};
|
|
1524
|
+
__name(_DescribeConnectorCommand, "DescribeConnectorCommand");
|
|
1525
|
+
var DescribeConnectorCommand = _DescribeConnectorCommand;
|
|
1526
|
+
|
|
1527
|
+
// src/commands/DescribeCustomPluginCommand.ts
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
var _DescribeCustomPluginCommand = class _DescribeCustomPluginCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1533
|
+
...commonParams
|
|
1534
|
+
}).m(function(Command, cs, config, o) {
|
|
1535
|
+
return [
|
|
1536
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1537
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1538
|
+
];
|
|
1539
|
+
}).s("KafkaConnect", "DescribeCustomPlugin", {}).n("KafkaConnectClient", "DescribeCustomPluginCommand").f(void 0, void 0).ser(se_DescribeCustomPluginCommand).de(de_DescribeCustomPluginCommand).build() {
|
|
1540
|
+
};
|
|
1541
|
+
__name(_DescribeCustomPluginCommand, "DescribeCustomPluginCommand");
|
|
1542
|
+
var DescribeCustomPluginCommand = _DescribeCustomPluginCommand;
|
|
1543
|
+
|
|
1544
|
+
// src/commands/DescribeWorkerConfigurationCommand.ts
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
var _DescribeWorkerConfigurationCommand = class _DescribeWorkerConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1550
|
+
...commonParams
|
|
1551
|
+
}).m(function(Command, cs, config, o) {
|
|
1552
|
+
return [
|
|
1553
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1554
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1555
|
+
];
|
|
1556
|
+
}).s("KafkaConnect", "DescribeWorkerConfiguration", {}).n("KafkaConnectClient", "DescribeWorkerConfigurationCommand").f(void 0, DescribeWorkerConfigurationResponseFilterSensitiveLog).ser(se_DescribeWorkerConfigurationCommand).de(de_DescribeWorkerConfigurationCommand).build() {
|
|
1557
|
+
};
|
|
1558
|
+
__name(_DescribeWorkerConfigurationCommand, "DescribeWorkerConfigurationCommand");
|
|
1559
|
+
var DescribeWorkerConfigurationCommand = _DescribeWorkerConfigurationCommand;
|
|
1560
|
+
|
|
1561
|
+
// src/commands/ListConnectorsCommand.ts
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
var _ListConnectorsCommand = class _ListConnectorsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1567
|
+
...commonParams
|
|
1568
|
+
}).m(function(Command, cs, config, o) {
|
|
1569
|
+
return [
|
|
1570
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1571
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1572
|
+
];
|
|
1573
|
+
}).s("KafkaConnect", "ListConnectors", {}).n("KafkaConnectClient", "ListConnectorsCommand").f(void 0, void 0).ser(se_ListConnectorsCommand).de(de_ListConnectorsCommand).build() {
|
|
1574
|
+
};
|
|
1575
|
+
__name(_ListConnectorsCommand, "ListConnectorsCommand");
|
|
1576
|
+
var ListConnectorsCommand = _ListConnectorsCommand;
|
|
1577
|
+
|
|
1578
|
+
// src/commands/ListCustomPluginsCommand.ts
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
var _ListCustomPluginsCommand = class _ListCustomPluginsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1584
|
+
...commonParams
|
|
1585
|
+
}).m(function(Command, cs, config, o) {
|
|
1586
|
+
return [
|
|
1587
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1588
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1589
|
+
];
|
|
1590
|
+
}).s("KafkaConnect", "ListCustomPlugins", {}).n("KafkaConnectClient", "ListCustomPluginsCommand").f(void 0, void 0).ser(se_ListCustomPluginsCommand).de(de_ListCustomPluginsCommand).build() {
|
|
1591
|
+
};
|
|
1592
|
+
__name(_ListCustomPluginsCommand, "ListCustomPluginsCommand");
|
|
1593
|
+
var ListCustomPluginsCommand = _ListCustomPluginsCommand;
|
|
1594
|
+
|
|
1595
|
+
// src/commands/ListWorkerConfigurationsCommand.ts
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
var _ListWorkerConfigurationsCommand = class _ListWorkerConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1601
|
+
...commonParams
|
|
1602
|
+
}).m(function(Command, cs, config, o) {
|
|
1603
|
+
return [
|
|
1604
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1605
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1606
|
+
];
|
|
1607
|
+
}).s("KafkaConnect", "ListWorkerConfigurations", {}).n("KafkaConnectClient", "ListWorkerConfigurationsCommand").f(void 0, void 0).ser(se_ListWorkerConfigurationsCommand).de(de_ListWorkerConfigurationsCommand).build() {
|
|
1608
|
+
};
|
|
1609
|
+
__name(_ListWorkerConfigurationsCommand, "ListWorkerConfigurationsCommand");
|
|
1610
|
+
var ListWorkerConfigurationsCommand = _ListWorkerConfigurationsCommand;
|
|
1611
|
+
|
|
1612
|
+
// src/commands/UpdateConnectorCommand.ts
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
var _UpdateConnectorCommand = class _UpdateConnectorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1618
|
+
...commonParams
|
|
1619
|
+
}).m(function(Command, cs, config, o) {
|
|
1620
|
+
return [
|
|
1621
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1622
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1623
|
+
];
|
|
1624
|
+
}).s("KafkaConnect", "UpdateConnector", {}).n("KafkaConnectClient", "UpdateConnectorCommand").f(void 0, void 0).ser(se_UpdateConnectorCommand).de(de_UpdateConnectorCommand).build() {
|
|
1625
|
+
};
|
|
1626
|
+
__name(_UpdateConnectorCommand, "UpdateConnectorCommand");
|
|
1627
|
+
var UpdateConnectorCommand = _UpdateConnectorCommand;
|
|
1628
|
+
|
|
1629
|
+
// src/KafkaConnect.ts
|
|
1630
|
+
var commands = {
|
|
1631
|
+
CreateConnectorCommand,
|
|
1632
|
+
CreateCustomPluginCommand,
|
|
1633
|
+
CreateWorkerConfigurationCommand,
|
|
1634
|
+
DeleteConnectorCommand,
|
|
1635
|
+
DeleteCustomPluginCommand,
|
|
1636
|
+
DescribeConnectorCommand,
|
|
1637
|
+
DescribeCustomPluginCommand,
|
|
1638
|
+
DescribeWorkerConfigurationCommand,
|
|
1639
|
+
ListConnectorsCommand,
|
|
1640
|
+
ListCustomPluginsCommand,
|
|
1641
|
+
ListWorkerConfigurationsCommand,
|
|
1642
|
+
UpdateConnectorCommand
|
|
1643
|
+
};
|
|
1644
|
+
var _KafkaConnect = class _KafkaConnect extends KafkaConnectClient {
|
|
1645
|
+
};
|
|
1646
|
+
__name(_KafkaConnect, "KafkaConnect");
|
|
1647
|
+
var KafkaConnect = _KafkaConnect;
|
|
1648
|
+
(0, import_smithy_client.createAggregatedClient)(commands, KafkaConnect);
|
|
1649
|
+
|
|
1650
|
+
// src/pagination/ListConnectorsPaginator.ts
|
|
1651
|
+
|
|
1652
|
+
var paginateListConnectors = (0, import_core.createPaginator)(KafkaConnectClient, ListConnectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1653
|
+
|
|
1654
|
+
// src/pagination/ListCustomPluginsPaginator.ts
|
|
1655
|
+
|
|
1656
|
+
var paginateListCustomPlugins = (0, import_core.createPaginator)(KafkaConnectClient, ListCustomPluginsCommand, "nextToken", "nextToken", "maxResults");
|
|
1657
|
+
|
|
1658
|
+
// src/pagination/ListWorkerConfigurationsPaginator.ts
|
|
1659
|
+
|
|
1660
|
+
var paginateListWorkerConfigurations = (0, import_core.createPaginator)(KafkaConnectClient, ListWorkerConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|
|
1661
|
+
|
|
1662
|
+
// src/index.ts
|
|
1663
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1664
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1665
|
+
0 && (module.exports = {
|
|
1666
|
+
BadRequestException,
|
|
1667
|
+
ConflictException,
|
|
1668
|
+
ConnectorState,
|
|
1669
|
+
CreateConnectorCommand,
|
|
1670
|
+
CreateConnectorRequestFilterSensitiveLog,
|
|
1671
|
+
CreateCustomPluginCommand,
|
|
1672
|
+
CreateWorkerConfigurationCommand,
|
|
1673
|
+
CreateWorkerConfigurationRequestFilterSensitiveLog,
|
|
1674
|
+
CustomPluginContentType,
|
|
1675
|
+
CustomPluginState,
|
|
1676
|
+
DeleteConnectorCommand,
|
|
1677
|
+
DeleteCustomPluginCommand,
|
|
1678
|
+
DescribeConnectorCommand,
|
|
1679
|
+
DescribeConnectorResponseFilterSensitiveLog,
|
|
1680
|
+
DescribeCustomPluginCommand,
|
|
1681
|
+
DescribeWorkerConfigurationCommand,
|
|
1682
|
+
DescribeWorkerConfigurationResponseFilterSensitiveLog,
|
|
1683
|
+
ForbiddenException,
|
|
1684
|
+
InternalServerErrorException,
|
|
1685
|
+
KafkaClusterClientAuthenticationType,
|
|
1686
|
+
KafkaClusterEncryptionInTransitType,
|
|
1687
|
+
KafkaConnect,
|
|
1688
|
+
KafkaConnectClient,
|
|
1689
|
+
KafkaConnectServiceException,
|
|
1690
|
+
ListConnectorsCommand,
|
|
1691
|
+
ListCustomPluginsCommand,
|
|
1692
|
+
ListWorkerConfigurationsCommand,
|
|
1693
|
+
NotFoundException,
|
|
1694
|
+
ServiceUnavailableException,
|
|
1695
|
+
TooManyRequestsException,
|
|
1696
|
+
UnauthorizedException,
|
|
1697
|
+
UpdateConnectorCommand,
|
|
1698
|
+
WorkerConfigurationRevisionDescriptionFilterSensitiveLog,
|
|
1699
|
+
__Client,
|
|
1700
|
+
paginateListConnectors,
|
|
1701
|
+
paginateListCustomPlugins,
|
|
1702
|
+
paginateListWorkerConfigurations
|
|
1703
|
+
});
|