@aws-sdk/client-kafkaconnect 3.901.0 → 3.906.0

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