@aws-sdk/client-kafkaconnect 3.141.0 → 3.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +190 -337
- package/dist-es/protocols/Aws_restJson1.js +233 -330
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { KafkaConnectServiceException as __BaseException } from "../models/KafkaConnectServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_restJson1CreateWorkerConfigurationCommand = function (in
|
|
|
86
86
|
});
|
|
87
87
|
}); };
|
|
88
88
|
export var serializeAws_restJson1DeleteConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
89
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
89
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
90
90
|
return __generator(this, function (_c) {
|
|
91
91
|
switch (_c.label) {
|
|
92
92
|
case 0: return [4, context.endpoint()];
|
|
@@ -94,17 +94,10 @@ export var serializeAws_restJson1DeleteConnectorCommand = function (input, conte
|
|
|
94
94
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
95
95
|
headers = {};
|
|
96
96
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
resolvedPath = resolvedPath.replace("{connectorArn}", __extendedEncodeURIComponent(labelValue));
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
106
|
-
}
|
|
107
|
-
query = __assign({}, (input.currentVersion !== undefined && { currentVersion: input.currentVersion }));
|
|
97
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "connectorArn", function () { return input.connectorArn; }, "{connectorArn}", false);
|
|
98
|
+
query = map({
|
|
99
|
+
currentVersion: [, input.currentVersion],
|
|
100
|
+
});
|
|
108
101
|
return [2, new __HttpRequest({
|
|
109
102
|
protocol: protocol,
|
|
110
103
|
hostname: hostname,
|
|
@@ -119,7 +112,7 @@ export var serializeAws_restJson1DeleteConnectorCommand = function (input, conte
|
|
|
119
112
|
});
|
|
120
113
|
}); };
|
|
121
114
|
export var serializeAws_restJson1DeleteCustomPluginCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
115
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
123
116
|
return __generator(this, function (_c) {
|
|
124
117
|
switch (_c.label) {
|
|
125
118
|
case 0: return [4, context.endpoint()];
|
|
@@ -127,16 +120,7 @@ export var serializeAws_restJson1DeleteCustomPluginCommand = function (input, co
|
|
|
127
120
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
128
121
|
headers = {};
|
|
129
122
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins/{customPluginArn}";
|
|
130
|
-
|
|
131
|
-
labelValue = input.customPluginArn;
|
|
132
|
-
if (labelValue.length <= 0) {
|
|
133
|
-
throw new Error("Empty value provided for input HTTP label: customPluginArn.");
|
|
134
|
-
}
|
|
135
|
-
resolvedPath = resolvedPath.replace("{customPluginArn}", __extendedEncodeURIComponent(labelValue));
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
throw new Error("No value provided for input HTTP label: customPluginArn.");
|
|
139
|
-
}
|
|
123
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "customPluginArn", function () { return input.customPluginArn; }, "{customPluginArn}", false);
|
|
140
124
|
return [2, new __HttpRequest({
|
|
141
125
|
protocol: protocol,
|
|
142
126
|
hostname: hostname,
|
|
@@ -150,7 +134,7 @@ export var serializeAws_restJson1DeleteCustomPluginCommand = function (input, co
|
|
|
150
134
|
});
|
|
151
135
|
}); };
|
|
152
136
|
export var serializeAws_restJson1DescribeConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
137
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
154
138
|
return __generator(this, function (_c) {
|
|
155
139
|
switch (_c.label) {
|
|
156
140
|
case 0: return [4, context.endpoint()];
|
|
@@ -158,16 +142,7 @@ export var serializeAws_restJson1DescribeConnectorCommand = function (input, con
|
|
|
158
142
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
159
143
|
headers = {};
|
|
160
144
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
|
|
161
|
-
|
|
162
|
-
labelValue = input.connectorArn;
|
|
163
|
-
if (labelValue.length <= 0) {
|
|
164
|
-
throw new Error("Empty value provided for input HTTP label: connectorArn.");
|
|
165
|
-
}
|
|
166
|
-
resolvedPath = resolvedPath.replace("{connectorArn}", __extendedEncodeURIComponent(labelValue));
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
170
|
-
}
|
|
145
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "connectorArn", function () { return input.connectorArn; }, "{connectorArn}", false);
|
|
171
146
|
return [2, new __HttpRequest({
|
|
172
147
|
protocol: protocol,
|
|
173
148
|
hostname: hostname,
|
|
@@ -181,7 +156,7 @@ export var serializeAws_restJson1DescribeConnectorCommand = function (input, con
|
|
|
181
156
|
});
|
|
182
157
|
}); };
|
|
183
158
|
export var serializeAws_restJson1DescribeCustomPluginCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
184
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
159
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
185
160
|
return __generator(this, function (_c) {
|
|
186
161
|
switch (_c.label) {
|
|
187
162
|
case 0: return [4, context.endpoint()];
|
|
@@ -189,16 +164,7 @@ export var serializeAws_restJson1DescribeCustomPluginCommand = function (input,
|
|
|
189
164
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
190
165
|
headers = {};
|
|
191
166
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins/{customPluginArn}";
|
|
192
|
-
|
|
193
|
-
labelValue = input.customPluginArn;
|
|
194
|
-
if (labelValue.length <= 0) {
|
|
195
|
-
throw new Error("Empty value provided for input HTTP label: customPluginArn.");
|
|
196
|
-
}
|
|
197
|
-
resolvedPath = resolvedPath.replace("{customPluginArn}", __extendedEncodeURIComponent(labelValue));
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
throw new Error("No value provided for input HTTP label: customPluginArn.");
|
|
201
|
-
}
|
|
167
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "customPluginArn", function () { return input.customPluginArn; }, "{customPluginArn}", false);
|
|
202
168
|
return [2, new __HttpRequest({
|
|
203
169
|
protocol: protocol,
|
|
204
170
|
hostname: hostname,
|
|
@@ -212,7 +178,7 @@ export var serializeAws_restJson1DescribeCustomPluginCommand = function (input,
|
|
|
212
178
|
});
|
|
213
179
|
}); };
|
|
214
180
|
export var serializeAws_restJson1DescribeWorkerConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
215
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
181
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
216
182
|
return __generator(this, function (_c) {
|
|
217
183
|
switch (_c.label) {
|
|
218
184
|
case 0: return [4, context.endpoint()];
|
|
@@ -221,16 +187,7 @@ export var serializeAws_restJson1DescribeWorkerConfigurationCommand = function (
|
|
|
221
187
|
headers = {};
|
|
222
188
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
223
189
|
"/v1/worker-configurations/{workerConfigurationArn}";
|
|
224
|
-
|
|
225
|
-
labelValue = input.workerConfigurationArn;
|
|
226
|
-
if (labelValue.length <= 0) {
|
|
227
|
-
throw new Error("Empty value provided for input HTTP label: workerConfigurationArn.");
|
|
228
|
-
}
|
|
229
|
-
resolvedPath = resolvedPath.replace("{workerConfigurationArn}", __extendedEncodeURIComponent(labelValue));
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
throw new Error("No value provided for input HTTP label: workerConfigurationArn.");
|
|
233
|
-
}
|
|
190
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "workerConfigurationArn", function () { return input.workerConfigurationArn; }, "{workerConfigurationArn}", false);
|
|
234
191
|
return [2, new __HttpRequest({
|
|
235
192
|
protocol: protocol,
|
|
236
193
|
hostname: hostname,
|
|
@@ -252,7 +209,11 @@ export var serializeAws_restJson1ListConnectorsCommand = function (input, contex
|
|
|
252
209
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
253
210
|
headers = {};
|
|
254
211
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors";
|
|
255
|
-
query =
|
|
212
|
+
query = map({
|
|
213
|
+
connectorNamePrefix: [, input.connectorNamePrefix],
|
|
214
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
215
|
+
nextToken: [, input.nextToken],
|
|
216
|
+
});
|
|
256
217
|
return [2, new __HttpRequest({
|
|
257
218
|
protocol: protocol,
|
|
258
219
|
hostname: hostname,
|
|
@@ -275,7 +236,10 @@ export var serializeAws_restJson1ListCustomPluginsCommand = function (input, con
|
|
|
275
236
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
276
237
|
headers = {};
|
|
277
238
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
|
|
278
|
-
query =
|
|
239
|
+
query = map({
|
|
240
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
241
|
+
nextToken: [, input.nextToken],
|
|
242
|
+
});
|
|
279
243
|
return [2, new __HttpRequest({
|
|
280
244
|
protocol: protocol,
|
|
281
245
|
hostname: hostname,
|
|
@@ -298,7 +262,10 @@ export var serializeAws_restJson1ListWorkerConfigurationsCommand = function (inp
|
|
|
298
262
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
299
263
|
headers = {};
|
|
300
264
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
|
|
301
|
-
query =
|
|
265
|
+
query = map({
|
|
266
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
267
|
+
nextToken: [, input.nextToken],
|
|
268
|
+
});
|
|
302
269
|
return [2, new __HttpRequest({
|
|
303
270
|
protocol: protocol,
|
|
304
271
|
hostname: hostname,
|
|
@@ -313,7 +280,7 @@ export var serializeAws_restJson1ListWorkerConfigurationsCommand = function (inp
|
|
|
313
280
|
});
|
|
314
281
|
}); };
|
|
315
282
|
export var serializeAws_restJson1UpdateConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
316
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
283
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
317
284
|
return __generator(this, function (_c) {
|
|
318
285
|
switch (_c.label) {
|
|
319
286
|
case 0: return [4, context.endpoint()];
|
|
@@ -323,17 +290,10 @@ export var serializeAws_restJson1UpdateConnectorCommand = function (input, conte
|
|
|
323
290
|
"content-type": "application/json",
|
|
324
291
|
};
|
|
325
292
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors/{connectorArn}";
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
331
|
-
resolvedPath = resolvedPath.replace("{connectorArn}", __extendedEncodeURIComponent(labelValue));
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
335
|
-
}
|
|
336
|
-
query = __assign({}, (input.currentVersion !== undefined && { currentVersion: input.currentVersion }));
|
|
293
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "connectorArn", function () { return input.connectorArn; }, "{connectorArn}", false);
|
|
294
|
+
query = map({
|
|
295
|
+
currentVersion: [, input.currentVersion],
|
|
296
|
+
});
|
|
337
297
|
body = JSON.stringify(__assign({}, (input.capacity != null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) })));
|
|
338
298
|
return [2, new __HttpRequest({
|
|
339
299
|
protocol: protocol,
|
|
@@ -356,32 +316,29 @@ export var deserializeAws_restJson1CreateConnectorCommand = function (output, co
|
|
|
356
316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
357
317
|
return [2, deserializeAws_restJson1CreateConnectorCommandError(output, context)];
|
|
358
318
|
}
|
|
359
|
-
contents = {
|
|
319
|
+
contents = map({
|
|
360
320
|
$metadata: deserializeMetadata(output),
|
|
361
|
-
|
|
362
|
-
connectorName: undefined,
|
|
363
|
-
connectorState: undefined,
|
|
364
|
-
};
|
|
321
|
+
});
|
|
365
322
|
_a = __expectNonNull;
|
|
366
323
|
_b = __expectObject;
|
|
367
324
|
return [4, parseBody(output.body, context)];
|
|
368
325
|
case 1:
|
|
369
326
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
370
|
-
if (data.connectorArn
|
|
327
|
+
if (data.connectorArn != null) {
|
|
371
328
|
contents.connectorArn = __expectString(data.connectorArn);
|
|
372
329
|
}
|
|
373
|
-
if (data.connectorName
|
|
330
|
+
if (data.connectorName != null) {
|
|
374
331
|
contents.connectorName = __expectString(data.connectorName);
|
|
375
332
|
}
|
|
376
|
-
if (data.connectorState
|
|
333
|
+
if (data.connectorState != null) {
|
|
377
334
|
contents.connectorState = __expectString(data.connectorState);
|
|
378
335
|
}
|
|
379
|
-
return [2,
|
|
336
|
+
return [2, contents];
|
|
380
337
|
}
|
|
381
338
|
});
|
|
382
339
|
}); };
|
|
383
340
|
var deserializeAws_restJson1CreateConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
384
|
-
var parsedOutput, _a,
|
|
341
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
385
342
|
var _c;
|
|
386
343
|
return __generator(this, function (_d) {
|
|
387
344
|
switch (_d.label) {
|
|
@@ -430,14 +387,14 @@ var deserializeAws_restJson1CreateConnectorCommandError = function (output, cont
|
|
|
430
387
|
case 17: throw _d.sent();
|
|
431
388
|
case 18:
|
|
432
389
|
parsedBody = parsedOutput.body;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
$metadata: $metadata,
|
|
390
|
+
throwDefaultError({
|
|
391
|
+
output: output,
|
|
392
|
+
parsedBody: parsedBody,
|
|
393
|
+
exceptionCtor: __BaseException,
|
|
394
|
+
errorCode: errorCode,
|
|
439
395
|
});
|
|
440
|
-
|
|
396
|
+
_d.label = 19;
|
|
397
|
+
case 19: return [2];
|
|
441
398
|
}
|
|
442
399
|
});
|
|
443
400
|
}); };
|
|
@@ -449,36 +406,32 @@ export var deserializeAws_restJson1CreateCustomPluginCommand = function (output,
|
|
|
449
406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
407
|
return [2, deserializeAws_restJson1CreateCustomPluginCommandError(output, context)];
|
|
451
408
|
}
|
|
452
|
-
contents = {
|
|
409
|
+
contents = map({
|
|
453
410
|
$metadata: deserializeMetadata(output),
|
|
454
|
-
|
|
455
|
-
customPluginState: undefined,
|
|
456
|
-
name: undefined,
|
|
457
|
-
revision: undefined,
|
|
458
|
-
};
|
|
411
|
+
});
|
|
459
412
|
_a = __expectNonNull;
|
|
460
413
|
_b = __expectObject;
|
|
461
414
|
return [4, parseBody(output.body, context)];
|
|
462
415
|
case 1:
|
|
463
416
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
464
|
-
if (data.customPluginArn
|
|
417
|
+
if (data.customPluginArn != null) {
|
|
465
418
|
contents.customPluginArn = __expectString(data.customPluginArn);
|
|
466
419
|
}
|
|
467
|
-
if (data.customPluginState
|
|
420
|
+
if (data.customPluginState != null) {
|
|
468
421
|
contents.customPluginState = __expectString(data.customPluginState);
|
|
469
422
|
}
|
|
470
|
-
if (data.name
|
|
423
|
+
if (data.name != null) {
|
|
471
424
|
contents.name = __expectString(data.name);
|
|
472
425
|
}
|
|
473
|
-
if (data.revision
|
|
426
|
+
if (data.revision != null) {
|
|
474
427
|
contents.revision = __expectLong(data.revision);
|
|
475
428
|
}
|
|
476
|
-
return [2,
|
|
429
|
+
return [2, contents];
|
|
477
430
|
}
|
|
478
431
|
});
|
|
479
432
|
}); };
|
|
480
433
|
var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
481
|
-
var parsedOutput, _a,
|
|
434
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
482
435
|
var _c;
|
|
483
436
|
return __generator(this, function (_d) {
|
|
484
437
|
switch (_d.label) {
|
|
@@ -527,14 +480,14 @@ var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, c
|
|
|
527
480
|
case 17: throw _d.sent();
|
|
528
481
|
case 18:
|
|
529
482
|
parsedBody = parsedOutput.body;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
$metadata: $metadata,
|
|
483
|
+
throwDefaultError({
|
|
484
|
+
output: output,
|
|
485
|
+
parsedBody: parsedBody,
|
|
486
|
+
exceptionCtor: __BaseException,
|
|
487
|
+
errorCode: errorCode,
|
|
536
488
|
});
|
|
537
|
-
|
|
489
|
+
_d.label = 19;
|
|
490
|
+
case 19: return [2];
|
|
538
491
|
}
|
|
539
492
|
});
|
|
540
493
|
}); };
|
|
@@ -546,36 +499,32 @@ export var deserializeAws_restJson1CreateWorkerConfigurationCommand = function (
|
|
|
546
499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
547
500
|
return [2, deserializeAws_restJson1CreateWorkerConfigurationCommandError(output, context)];
|
|
548
501
|
}
|
|
549
|
-
contents = {
|
|
502
|
+
contents = map({
|
|
550
503
|
$metadata: deserializeMetadata(output),
|
|
551
|
-
|
|
552
|
-
latestRevision: undefined,
|
|
553
|
-
name: undefined,
|
|
554
|
-
workerConfigurationArn: undefined,
|
|
555
|
-
};
|
|
504
|
+
});
|
|
556
505
|
_a = __expectNonNull;
|
|
557
506
|
_b = __expectObject;
|
|
558
507
|
return [4, parseBody(output.body, context)];
|
|
559
508
|
case 1:
|
|
560
509
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
561
|
-
if (data.creationTime
|
|
510
|
+
if (data.creationTime != null) {
|
|
562
511
|
contents.creationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
563
512
|
}
|
|
564
|
-
if (data.latestRevision
|
|
513
|
+
if (data.latestRevision != null) {
|
|
565
514
|
contents.latestRevision = deserializeAws_restJson1WorkerConfigurationRevisionSummary(data.latestRevision, context);
|
|
566
515
|
}
|
|
567
|
-
if (data.name
|
|
516
|
+
if (data.name != null) {
|
|
568
517
|
contents.name = __expectString(data.name);
|
|
569
518
|
}
|
|
570
|
-
if (data.workerConfigurationArn
|
|
519
|
+
if (data.workerConfigurationArn != null) {
|
|
571
520
|
contents.workerConfigurationArn = __expectString(data.workerConfigurationArn);
|
|
572
521
|
}
|
|
573
|
-
return [2,
|
|
522
|
+
return [2, contents];
|
|
574
523
|
}
|
|
575
524
|
});
|
|
576
525
|
}); };
|
|
577
526
|
var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
578
|
-
var parsedOutput, _a,
|
|
527
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
579
528
|
var _c;
|
|
580
529
|
return __generator(this, function (_d) {
|
|
581
530
|
switch (_d.label) {
|
|
@@ -624,14 +573,14 @@ var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (ou
|
|
|
624
573
|
case 17: throw _d.sent();
|
|
625
574
|
case 18:
|
|
626
575
|
parsedBody = parsedOutput.body;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
$metadata: $metadata,
|
|
576
|
+
throwDefaultError({
|
|
577
|
+
output: output,
|
|
578
|
+
parsedBody: parsedBody,
|
|
579
|
+
exceptionCtor: __BaseException,
|
|
580
|
+
errorCode: errorCode,
|
|
633
581
|
});
|
|
634
|
-
|
|
582
|
+
_d.label = 19;
|
|
583
|
+
case 19: return [2];
|
|
635
584
|
}
|
|
636
585
|
});
|
|
637
586
|
}); };
|
|
@@ -643,28 +592,26 @@ export var deserializeAws_restJson1DeleteConnectorCommand = function (output, co
|
|
|
643
592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
593
|
return [2, deserializeAws_restJson1DeleteConnectorCommandError(output, context)];
|
|
645
594
|
}
|
|
646
|
-
contents = {
|
|
595
|
+
contents = map({
|
|
647
596
|
$metadata: deserializeMetadata(output),
|
|
648
|
-
|
|
649
|
-
connectorState: undefined,
|
|
650
|
-
};
|
|
597
|
+
});
|
|
651
598
|
_a = __expectNonNull;
|
|
652
599
|
_b = __expectObject;
|
|
653
600
|
return [4, parseBody(output.body, context)];
|
|
654
601
|
case 1:
|
|
655
602
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
656
|
-
if (data.connectorArn
|
|
603
|
+
if (data.connectorArn != null) {
|
|
657
604
|
contents.connectorArn = __expectString(data.connectorArn);
|
|
658
605
|
}
|
|
659
|
-
if (data.connectorState
|
|
606
|
+
if (data.connectorState != null) {
|
|
660
607
|
contents.connectorState = __expectString(data.connectorState);
|
|
661
608
|
}
|
|
662
|
-
return [2,
|
|
609
|
+
return [2, contents];
|
|
663
610
|
}
|
|
664
611
|
});
|
|
665
612
|
}); };
|
|
666
613
|
var deserializeAws_restJson1DeleteConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
667
|
-
var parsedOutput, _a,
|
|
614
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
668
615
|
var _c;
|
|
669
616
|
return __generator(this, function (_d) {
|
|
670
617
|
switch (_d.label) {
|
|
@@ -709,14 +656,14 @@ var deserializeAws_restJson1DeleteConnectorCommandError = function (output, cont
|
|
|
709
656
|
case 15: throw _d.sent();
|
|
710
657
|
case 16:
|
|
711
658
|
parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
$metadata: $metadata,
|
|
659
|
+
throwDefaultError({
|
|
660
|
+
output: output,
|
|
661
|
+
parsedBody: parsedBody,
|
|
662
|
+
exceptionCtor: __BaseException,
|
|
663
|
+
errorCode: errorCode,
|
|
718
664
|
});
|
|
719
|
-
|
|
665
|
+
_d.label = 17;
|
|
666
|
+
case 17: return [2];
|
|
720
667
|
}
|
|
721
668
|
});
|
|
722
669
|
}); };
|
|
@@ -728,28 +675,26 @@ export var deserializeAws_restJson1DeleteCustomPluginCommand = function (output,
|
|
|
728
675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
676
|
return [2, deserializeAws_restJson1DeleteCustomPluginCommandError(output, context)];
|
|
730
677
|
}
|
|
731
|
-
contents = {
|
|
678
|
+
contents = map({
|
|
732
679
|
$metadata: deserializeMetadata(output),
|
|
733
|
-
|
|
734
|
-
customPluginState: undefined,
|
|
735
|
-
};
|
|
680
|
+
});
|
|
736
681
|
_a = __expectNonNull;
|
|
737
682
|
_b = __expectObject;
|
|
738
683
|
return [4, parseBody(output.body, context)];
|
|
739
684
|
case 1:
|
|
740
685
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
741
|
-
if (data.customPluginArn
|
|
686
|
+
if (data.customPluginArn != null) {
|
|
742
687
|
contents.customPluginArn = __expectString(data.customPluginArn);
|
|
743
688
|
}
|
|
744
|
-
if (data.customPluginState
|
|
689
|
+
if (data.customPluginState != null) {
|
|
745
690
|
contents.customPluginState = __expectString(data.customPluginState);
|
|
746
691
|
}
|
|
747
|
-
return [2,
|
|
692
|
+
return [2, contents];
|
|
748
693
|
}
|
|
749
694
|
});
|
|
750
695
|
}); };
|
|
751
696
|
var deserializeAws_restJson1DeleteCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
752
|
-
var parsedOutput, _a,
|
|
697
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
753
698
|
var _c;
|
|
754
699
|
return __generator(this, function (_d) {
|
|
755
700
|
switch (_d.label) {
|
|
@@ -794,14 +739,14 @@ var deserializeAws_restJson1DeleteCustomPluginCommandError = function (output, c
|
|
|
794
739
|
case 15: throw _d.sent();
|
|
795
740
|
case 16:
|
|
796
741
|
parsedBody = parsedOutput.body;
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
$metadata: $metadata,
|
|
742
|
+
throwDefaultError({
|
|
743
|
+
output: output,
|
|
744
|
+
parsedBody: parsedBody,
|
|
745
|
+
exceptionCtor: __BaseException,
|
|
746
|
+
errorCode: errorCode,
|
|
803
747
|
});
|
|
804
|
-
|
|
748
|
+
_d.label = 17;
|
|
749
|
+
case 17: return [2];
|
|
805
750
|
}
|
|
806
751
|
});
|
|
807
752
|
}); };
|
|
@@ -813,88 +758,71 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
|
|
|
813
758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
814
759
|
return [2, deserializeAws_restJson1DescribeConnectorCommandError(output, context)];
|
|
815
760
|
}
|
|
816
|
-
contents = {
|
|
761
|
+
contents = map({
|
|
817
762
|
$metadata: deserializeMetadata(output),
|
|
818
|
-
|
|
819
|
-
connectorArn: undefined,
|
|
820
|
-
connectorConfiguration: undefined,
|
|
821
|
-
connectorDescription: undefined,
|
|
822
|
-
connectorName: undefined,
|
|
823
|
-
connectorState: undefined,
|
|
824
|
-
creationTime: undefined,
|
|
825
|
-
currentVersion: undefined,
|
|
826
|
-
kafkaCluster: undefined,
|
|
827
|
-
kafkaClusterClientAuthentication: undefined,
|
|
828
|
-
kafkaClusterEncryptionInTransit: undefined,
|
|
829
|
-
kafkaConnectVersion: undefined,
|
|
830
|
-
logDelivery: undefined,
|
|
831
|
-
plugins: undefined,
|
|
832
|
-
serviceExecutionRoleArn: undefined,
|
|
833
|
-
stateDescription: undefined,
|
|
834
|
-
workerConfiguration: undefined,
|
|
835
|
-
};
|
|
763
|
+
});
|
|
836
764
|
_a = __expectNonNull;
|
|
837
765
|
_b = __expectObject;
|
|
838
766
|
return [4, parseBody(output.body, context)];
|
|
839
767
|
case 1:
|
|
840
768
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
841
|
-
if (data.capacity
|
|
769
|
+
if (data.capacity != null) {
|
|
842
770
|
contents.capacity = deserializeAws_restJson1CapacityDescription(data.capacity, context);
|
|
843
771
|
}
|
|
844
|
-
if (data.connectorArn
|
|
772
|
+
if (data.connectorArn != null) {
|
|
845
773
|
contents.connectorArn = __expectString(data.connectorArn);
|
|
846
774
|
}
|
|
847
|
-
if (data.connectorConfiguration
|
|
775
|
+
if (data.connectorConfiguration != null) {
|
|
848
776
|
contents.connectorConfiguration = deserializeAws_restJson1__mapOf__string(data.connectorConfiguration, context);
|
|
849
777
|
}
|
|
850
|
-
if (data.connectorDescription
|
|
778
|
+
if (data.connectorDescription != null) {
|
|
851
779
|
contents.connectorDescription = __expectString(data.connectorDescription);
|
|
852
780
|
}
|
|
853
|
-
if (data.connectorName
|
|
781
|
+
if (data.connectorName != null) {
|
|
854
782
|
contents.connectorName = __expectString(data.connectorName);
|
|
855
783
|
}
|
|
856
|
-
if (data.connectorState
|
|
784
|
+
if (data.connectorState != null) {
|
|
857
785
|
contents.connectorState = __expectString(data.connectorState);
|
|
858
786
|
}
|
|
859
|
-
if (data.creationTime
|
|
787
|
+
if (data.creationTime != null) {
|
|
860
788
|
contents.creationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
861
789
|
}
|
|
862
|
-
if (data.currentVersion
|
|
790
|
+
if (data.currentVersion != null) {
|
|
863
791
|
contents.currentVersion = __expectString(data.currentVersion);
|
|
864
792
|
}
|
|
865
|
-
if (data.kafkaCluster
|
|
793
|
+
if (data.kafkaCluster != null) {
|
|
866
794
|
contents.kafkaCluster = deserializeAws_restJson1KafkaClusterDescription(data.kafkaCluster, context);
|
|
867
795
|
}
|
|
868
|
-
if (data.kafkaClusterClientAuthentication
|
|
796
|
+
if (data.kafkaClusterClientAuthentication != null) {
|
|
869
797
|
contents.kafkaClusterClientAuthentication = deserializeAws_restJson1KafkaClusterClientAuthenticationDescription(data.kafkaClusterClientAuthentication, context);
|
|
870
798
|
}
|
|
871
|
-
if (data.kafkaClusterEncryptionInTransit
|
|
799
|
+
if (data.kafkaClusterEncryptionInTransit != null) {
|
|
872
800
|
contents.kafkaClusterEncryptionInTransit = deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription(data.kafkaClusterEncryptionInTransit, context);
|
|
873
801
|
}
|
|
874
|
-
if (data.kafkaConnectVersion
|
|
802
|
+
if (data.kafkaConnectVersion != null) {
|
|
875
803
|
contents.kafkaConnectVersion = __expectString(data.kafkaConnectVersion);
|
|
876
804
|
}
|
|
877
|
-
if (data.logDelivery
|
|
805
|
+
if (data.logDelivery != null) {
|
|
878
806
|
contents.logDelivery = deserializeAws_restJson1LogDeliveryDescription(data.logDelivery, context);
|
|
879
807
|
}
|
|
880
|
-
if (data.plugins
|
|
808
|
+
if (data.plugins != null) {
|
|
881
809
|
contents.plugins = deserializeAws_restJson1__listOfPluginDescription(data.plugins, context);
|
|
882
810
|
}
|
|
883
|
-
if (data.serviceExecutionRoleArn
|
|
811
|
+
if (data.serviceExecutionRoleArn != null) {
|
|
884
812
|
contents.serviceExecutionRoleArn = __expectString(data.serviceExecutionRoleArn);
|
|
885
813
|
}
|
|
886
|
-
if (data.stateDescription
|
|
814
|
+
if (data.stateDescription != null) {
|
|
887
815
|
contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
|
|
888
816
|
}
|
|
889
|
-
if (data.workerConfiguration
|
|
817
|
+
if (data.workerConfiguration != null) {
|
|
890
818
|
contents.workerConfiguration = deserializeAws_restJson1WorkerConfigurationDescription(data.workerConfiguration, context);
|
|
891
819
|
}
|
|
892
|
-
return [2,
|
|
820
|
+
return [2, contents];
|
|
893
821
|
}
|
|
894
822
|
});
|
|
895
823
|
}); };
|
|
896
824
|
var deserializeAws_restJson1DescribeConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
897
|
-
var parsedOutput, _a,
|
|
825
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
898
826
|
var _c;
|
|
899
827
|
return __generator(this, function (_d) {
|
|
900
828
|
switch (_d.label) {
|
|
@@ -939,14 +867,14 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
|
|
|
939
867
|
case 15: throw _d.sent();
|
|
940
868
|
case 16:
|
|
941
869
|
parsedBody = parsedOutput.body;
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
$metadata: $metadata,
|
|
870
|
+
throwDefaultError({
|
|
871
|
+
output: output,
|
|
872
|
+
parsedBody: parsedBody,
|
|
873
|
+
exceptionCtor: __BaseException,
|
|
874
|
+
errorCode: errorCode,
|
|
948
875
|
});
|
|
949
|
-
|
|
876
|
+
_d.label = 17;
|
|
877
|
+
case 17: return [2];
|
|
950
878
|
}
|
|
951
879
|
});
|
|
952
880
|
}); };
|
|
@@ -958,48 +886,41 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
|
|
|
958
886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
959
887
|
return [2, deserializeAws_restJson1DescribeCustomPluginCommandError(output, context)];
|
|
960
888
|
}
|
|
961
|
-
contents = {
|
|
889
|
+
contents = map({
|
|
962
890
|
$metadata: deserializeMetadata(output),
|
|
963
|
-
|
|
964
|
-
customPluginArn: undefined,
|
|
965
|
-
customPluginState: undefined,
|
|
966
|
-
description: undefined,
|
|
967
|
-
latestRevision: undefined,
|
|
968
|
-
name: undefined,
|
|
969
|
-
stateDescription: undefined,
|
|
970
|
-
};
|
|
891
|
+
});
|
|
971
892
|
_a = __expectNonNull;
|
|
972
893
|
_b = __expectObject;
|
|
973
894
|
return [4, parseBody(output.body, context)];
|
|
974
895
|
case 1:
|
|
975
896
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
976
|
-
if (data.creationTime
|
|
897
|
+
if (data.creationTime != null) {
|
|
977
898
|
contents.creationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
978
899
|
}
|
|
979
|
-
if (data.customPluginArn
|
|
900
|
+
if (data.customPluginArn != null) {
|
|
980
901
|
contents.customPluginArn = __expectString(data.customPluginArn);
|
|
981
902
|
}
|
|
982
|
-
if (data.customPluginState
|
|
903
|
+
if (data.customPluginState != null) {
|
|
983
904
|
contents.customPluginState = __expectString(data.customPluginState);
|
|
984
905
|
}
|
|
985
|
-
if (data.description
|
|
906
|
+
if (data.description != null) {
|
|
986
907
|
contents.description = __expectString(data.description);
|
|
987
908
|
}
|
|
988
|
-
if (data.latestRevision
|
|
909
|
+
if (data.latestRevision != null) {
|
|
989
910
|
contents.latestRevision = deserializeAws_restJson1CustomPluginRevisionSummary(data.latestRevision, context);
|
|
990
911
|
}
|
|
991
|
-
if (data.name
|
|
912
|
+
if (data.name != null) {
|
|
992
913
|
contents.name = __expectString(data.name);
|
|
993
914
|
}
|
|
994
|
-
if (data.stateDescription
|
|
915
|
+
if (data.stateDescription != null) {
|
|
995
916
|
contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
|
|
996
917
|
}
|
|
997
|
-
return [2,
|
|
918
|
+
return [2, contents];
|
|
998
919
|
}
|
|
999
920
|
});
|
|
1000
921
|
}); };
|
|
1001
922
|
var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1002
|
-
var parsedOutput, _a,
|
|
923
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1003
924
|
var _c;
|
|
1004
925
|
return __generator(this, function (_d) {
|
|
1005
926
|
switch (_d.label) {
|
|
@@ -1044,14 +965,14 @@ var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output,
|
|
|
1044
965
|
case 15: throw _d.sent();
|
|
1045
966
|
case 16:
|
|
1046
967
|
parsedBody = parsedOutput.body;
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
$metadata: $metadata,
|
|
968
|
+
throwDefaultError({
|
|
969
|
+
output: output,
|
|
970
|
+
parsedBody: parsedBody,
|
|
971
|
+
exceptionCtor: __BaseException,
|
|
972
|
+
errorCode: errorCode,
|
|
1053
973
|
});
|
|
1054
|
-
|
|
974
|
+
_d.label = 17;
|
|
975
|
+
case 17: return [2];
|
|
1055
976
|
}
|
|
1056
977
|
});
|
|
1057
978
|
}); };
|
|
@@ -1063,40 +984,35 @@ export var deserializeAws_restJson1DescribeWorkerConfigurationCommand = function
|
|
|
1063
984
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1064
985
|
return [2, deserializeAws_restJson1DescribeWorkerConfigurationCommandError(output, context)];
|
|
1065
986
|
}
|
|
1066
|
-
contents = {
|
|
987
|
+
contents = map({
|
|
1067
988
|
$metadata: deserializeMetadata(output),
|
|
1068
|
-
|
|
1069
|
-
description: undefined,
|
|
1070
|
-
latestRevision: undefined,
|
|
1071
|
-
name: undefined,
|
|
1072
|
-
workerConfigurationArn: undefined,
|
|
1073
|
-
};
|
|
989
|
+
});
|
|
1074
990
|
_a = __expectNonNull;
|
|
1075
991
|
_b = __expectObject;
|
|
1076
992
|
return [4, parseBody(output.body, context)];
|
|
1077
993
|
case 1:
|
|
1078
994
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1079
|
-
if (data.creationTime
|
|
995
|
+
if (data.creationTime != null) {
|
|
1080
996
|
contents.creationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
1081
997
|
}
|
|
1082
|
-
if (data.description
|
|
998
|
+
if (data.description != null) {
|
|
1083
999
|
contents.description = __expectString(data.description);
|
|
1084
1000
|
}
|
|
1085
|
-
if (data.latestRevision
|
|
1001
|
+
if (data.latestRevision != null) {
|
|
1086
1002
|
contents.latestRevision = deserializeAws_restJson1WorkerConfigurationRevisionDescription(data.latestRevision, context);
|
|
1087
1003
|
}
|
|
1088
|
-
if (data.name
|
|
1004
|
+
if (data.name != null) {
|
|
1089
1005
|
contents.name = __expectString(data.name);
|
|
1090
1006
|
}
|
|
1091
|
-
if (data.workerConfigurationArn
|
|
1007
|
+
if (data.workerConfigurationArn != null) {
|
|
1092
1008
|
contents.workerConfigurationArn = __expectString(data.workerConfigurationArn);
|
|
1093
1009
|
}
|
|
1094
|
-
return [2,
|
|
1010
|
+
return [2, contents];
|
|
1095
1011
|
}
|
|
1096
1012
|
});
|
|
1097
1013
|
}); };
|
|
1098
1014
|
var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1099
|
-
var parsedOutput, _a,
|
|
1015
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1100
1016
|
var _c;
|
|
1101
1017
|
return __generator(this, function (_d) {
|
|
1102
1018
|
switch (_d.label) {
|
|
@@ -1141,14 +1057,14 @@ var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (
|
|
|
1141
1057
|
case 15: throw _d.sent();
|
|
1142
1058
|
case 16:
|
|
1143
1059
|
parsedBody = parsedOutput.body;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
$metadata: $metadata,
|
|
1060
|
+
throwDefaultError({
|
|
1061
|
+
output: output,
|
|
1062
|
+
parsedBody: parsedBody,
|
|
1063
|
+
exceptionCtor: __BaseException,
|
|
1064
|
+
errorCode: errorCode,
|
|
1150
1065
|
});
|
|
1151
|
-
|
|
1066
|
+
_d.label = 17;
|
|
1067
|
+
case 17: return [2];
|
|
1152
1068
|
}
|
|
1153
1069
|
});
|
|
1154
1070
|
}); };
|
|
@@ -1160,28 +1076,26 @@ export var deserializeAws_restJson1ListConnectorsCommand = function (output, con
|
|
|
1160
1076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1161
1077
|
return [2, deserializeAws_restJson1ListConnectorsCommandError(output, context)];
|
|
1162
1078
|
}
|
|
1163
|
-
contents = {
|
|
1079
|
+
contents = map({
|
|
1164
1080
|
$metadata: deserializeMetadata(output),
|
|
1165
|
-
|
|
1166
|
-
nextToken: undefined,
|
|
1167
|
-
};
|
|
1081
|
+
});
|
|
1168
1082
|
_a = __expectNonNull;
|
|
1169
1083
|
_b = __expectObject;
|
|
1170
1084
|
return [4, parseBody(output.body, context)];
|
|
1171
1085
|
case 1:
|
|
1172
1086
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1173
|
-
if (data.connectors
|
|
1087
|
+
if (data.connectors != null) {
|
|
1174
1088
|
contents.connectors = deserializeAws_restJson1__listOfConnectorSummary(data.connectors, context);
|
|
1175
1089
|
}
|
|
1176
|
-
if (data.nextToken
|
|
1090
|
+
if (data.nextToken != null) {
|
|
1177
1091
|
contents.nextToken = __expectString(data.nextToken);
|
|
1178
1092
|
}
|
|
1179
|
-
return [2,
|
|
1093
|
+
return [2, contents];
|
|
1180
1094
|
}
|
|
1181
1095
|
});
|
|
1182
1096
|
}); };
|
|
1183
1097
|
var deserializeAws_restJson1ListConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1184
|
-
var parsedOutput, _a,
|
|
1098
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1185
1099
|
var _c;
|
|
1186
1100
|
return __generator(this, function (_d) {
|
|
1187
1101
|
switch (_d.label) {
|
|
@@ -1226,14 +1140,14 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
|
|
|
1226
1140
|
case 15: throw _d.sent();
|
|
1227
1141
|
case 16:
|
|
1228
1142
|
parsedBody = parsedOutput.body;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
$metadata: $metadata,
|
|
1143
|
+
throwDefaultError({
|
|
1144
|
+
output: output,
|
|
1145
|
+
parsedBody: parsedBody,
|
|
1146
|
+
exceptionCtor: __BaseException,
|
|
1147
|
+
errorCode: errorCode,
|
|
1235
1148
|
});
|
|
1236
|
-
|
|
1149
|
+
_d.label = 17;
|
|
1150
|
+
case 17: return [2];
|
|
1237
1151
|
}
|
|
1238
1152
|
});
|
|
1239
1153
|
}); };
|
|
@@ -1245,28 +1159,26 @@ export var deserializeAws_restJson1ListCustomPluginsCommand = function (output,
|
|
|
1245
1159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1246
1160
|
return [2, deserializeAws_restJson1ListCustomPluginsCommandError(output, context)];
|
|
1247
1161
|
}
|
|
1248
|
-
contents = {
|
|
1162
|
+
contents = map({
|
|
1249
1163
|
$metadata: deserializeMetadata(output),
|
|
1250
|
-
|
|
1251
|
-
nextToken: undefined,
|
|
1252
|
-
};
|
|
1164
|
+
});
|
|
1253
1165
|
_a = __expectNonNull;
|
|
1254
1166
|
_b = __expectObject;
|
|
1255
1167
|
return [4, parseBody(output.body, context)];
|
|
1256
1168
|
case 1:
|
|
1257
1169
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1258
|
-
if (data.customPlugins
|
|
1170
|
+
if (data.customPlugins != null) {
|
|
1259
1171
|
contents.customPlugins = deserializeAws_restJson1__listOfCustomPluginSummary(data.customPlugins, context);
|
|
1260
1172
|
}
|
|
1261
|
-
if (data.nextToken
|
|
1173
|
+
if (data.nextToken != null) {
|
|
1262
1174
|
contents.nextToken = __expectString(data.nextToken);
|
|
1263
1175
|
}
|
|
1264
|
-
return [2,
|
|
1176
|
+
return [2, contents];
|
|
1265
1177
|
}
|
|
1266
1178
|
});
|
|
1267
1179
|
}); };
|
|
1268
1180
|
var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1269
|
-
var parsedOutput, _a,
|
|
1181
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1270
1182
|
var _c;
|
|
1271
1183
|
return __generator(this, function (_d) {
|
|
1272
1184
|
switch (_d.label) {
|
|
@@ -1311,14 +1223,14 @@ var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, co
|
|
|
1311
1223
|
case 15: throw _d.sent();
|
|
1312
1224
|
case 16:
|
|
1313
1225
|
parsedBody = parsedOutput.body;
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
$metadata: $metadata,
|
|
1226
|
+
throwDefaultError({
|
|
1227
|
+
output: output,
|
|
1228
|
+
parsedBody: parsedBody,
|
|
1229
|
+
exceptionCtor: __BaseException,
|
|
1230
|
+
errorCode: errorCode,
|
|
1320
1231
|
});
|
|
1321
|
-
|
|
1232
|
+
_d.label = 17;
|
|
1233
|
+
case 17: return [2];
|
|
1322
1234
|
}
|
|
1323
1235
|
});
|
|
1324
1236
|
}); };
|
|
@@ -1330,28 +1242,26 @@ export var deserializeAws_restJson1ListWorkerConfigurationsCommand = function (o
|
|
|
1330
1242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1331
1243
|
return [2, deserializeAws_restJson1ListWorkerConfigurationsCommandError(output, context)];
|
|
1332
1244
|
}
|
|
1333
|
-
contents = {
|
|
1245
|
+
contents = map({
|
|
1334
1246
|
$metadata: deserializeMetadata(output),
|
|
1335
|
-
|
|
1336
|
-
workerConfigurations: undefined,
|
|
1337
|
-
};
|
|
1247
|
+
});
|
|
1338
1248
|
_a = __expectNonNull;
|
|
1339
1249
|
_b = __expectObject;
|
|
1340
1250
|
return [4, parseBody(output.body, context)];
|
|
1341
1251
|
case 1:
|
|
1342
1252
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1343
|
-
if (data.nextToken
|
|
1253
|
+
if (data.nextToken != null) {
|
|
1344
1254
|
contents.nextToken = __expectString(data.nextToken);
|
|
1345
1255
|
}
|
|
1346
|
-
if (data.workerConfigurations
|
|
1256
|
+
if (data.workerConfigurations != null) {
|
|
1347
1257
|
contents.workerConfigurations = deserializeAws_restJson1__listOfWorkerConfigurationSummary(data.workerConfigurations, context);
|
|
1348
1258
|
}
|
|
1349
|
-
return [2,
|
|
1259
|
+
return [2, contents];
|
|
1350
1260
|
}
|
|
1351
1261
|
});
|
|
1352
1262
|
}); };
|
|
1353
1263
|
var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1354
|
-
var parsedOutput, _a,
|
|
1264
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1355
1265
|
var _c;
|
|
1356
1266
|
return __generator(this, function (_d) {
|
|
1357
1267
|
switch (_d.label) {
|
|
@@ -1396,14 +1306,14 @@ var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (out
|
|
|
1396
1306
|
case 15: throw _d.sent();
|
|
1397
1307
|
case 16:
|
|
1398
1308
|
parsedBody = parsedOutput.body;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
$metadata: $metadata,
|
|
1309
|
+
throwDefaultError({
|
|
1310
|
+
output: output,
|
|
1311
|
+
parsedBody: parsedBody,
|
|
1312
|
+
exceptionCtor: __BaseException,
|
|
1313
|
+
errorCode: errorCode,
|
|
1405
1314
|
});
|
|
1406
|
-
|
|
1315
|
+
_d.label = 17;
|
|
1316
|
+
case 17: return [2];
|
|
1407
1317
|
}
|
|
1408
1318
|
});
|
|
1409
1319
|
}); };
|
|
@@ -1415,28 +1325,26 @@ export var deserializeAws_restJson1UpdateConnectorCommand = function (output, co
|
|
|
1415
1325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1416
1326
|
return [2, deserializeAws_restJson1UpdateConnectorCommandError(output, context)];
|
|
1417
1327
|
}
|
|
1418
|
-
contents = {
|
|
1328
|
+
contents = map({
|
|
1419
1329
|
$metadata: deserializeMetadata(output),
|
|
1420
|
-
|
|
1421
|
-
connectorState: undefined,
|
|
1422
|
-
};
|
|
1330
|
+
});
|
|
1423
1331
|
_a = __expectNonNull;
|
|
1424
1332
|
_b = __expectObject;
|
|
1425
1333
|
return [4, parseBody(output.body, context)];
|
|
1426
1334
|
case 1:
|
|
1427
1335
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1428
|
-
if (data.connectorArn
|
|
1336
|
+
if (data.connectorArn != null) {
|
|
1429
1337
|
contents.connectorArn = __expectString(data.connectorArn);
|
|
1430
1338
|
}
|
|
1431
|
-
if (data.connectorState
|
|
1339
|
+
if (data.connectorState != null) {
|
|
1432
1340
|
contents.connectorState = __expectString(data.connectorState);
|
|
1433
1341
|
}
|
|
1434
|
-
return [2,
|
|
1342
|
+
return [2, contents];
|
|
1435
1343
|
}
|
|
1436
1344
|
});
|
|
1437
1345
|
}); };
|
|
1438
1346
|
var deserializeAws_restJson1UpdateConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1439
|
-
var parsedOutput, _a,
|
|
1347
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1440
1348
|
var _c;
|
|
1441
1349
|
return __generator(this, function (_d) {
|
|
1442
1350
|
switch (_d.label) {
|
|
@@ -1481,23 +1389,24 @@ var deserializeAws_restJson1UpdateConnectorCommandError = function (output, cont
|
|
|
1481
1389
|
case 15: throw _d.sent();
|
|
1482
1390
|
case 16:
|
|
1483
1391
|
parsedBody = parsedOutput.body;
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
$metadata: $metadata,
|
|
1392
|
+
throwDefaultError({
|
|
1393
|
+
output: output,
|
|
1394
|
+
parsedBody: parsedBody,
|
|
1395
|
+
exceptionCtor: __BaseException,
|
|
1396
|
+
errorCode: errorCode,
|
|
1490
1397
|
});
|
|
1491
|
-
|
|
1398
|
+
_d.label = 17;
|
|
1399
|
+
case 17: return [2];
|
|
1492
1400
|
}
|
|
1493
1401
|
});
|
|
1494
1402
|
}); };
|
|
1403
|
+
var map = __map;
|
|
1495
1404
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1496
1405
|
var contents, data, exception;
|
|
1497
1406
|
return __generator(this, function (_a) {
|
|
1498
|
-
contents = {};
|
|
1407
|
+
contents = map({});
|
|
1499
1408
|
data = parsedOutput.body;
|
|
1500
|
-
if (data.message
|
|
1409
|
+
if (data.message != null) {
|
|
1501
1410
|
contents.message = __expectString(data.message);
|
|
1502
1411
|
}
|
|
1503
1412
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1507,9 +1416,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
1507
1416
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1508
1417
|
var contents, data, exception;
|
|
1509
1418
|
return __generator(this, function (_a) {
|
|
1510
|
-
contents = {};
|
|
1419
|
+
contents = map({});
|
|
1511
1420
|
data = parsedOutput.body;
|
|
1512
|
-
if (data.message
|
|
1421
|
+
if (data.message != null) {
|
|
1513
1422
|
contents.message = __expectString(data.message);
|
|
1514
1423
|
}
|
|
1515
1424
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1519,9 +1428,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1519
1428
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1520
1429
|
var contents, data, exception;
|
|
1521
1430
|
return __generator(this, function (_a) {
|
|
1522
|
-
contents = {};
|
|
1431
|
+
contents = map({});
|
|
1523
1432
|
data = parsedOutput.body;
|
|
1524
|
-
if (data.message
|
|
1433
|
+
if (data.message != null) {
|
|
1525
1434
|
contents.message = __expectString(data.message);
|
|
1526
1435
|
}
|
|
1527
1436
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1531,9 +1440,9 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
1531
1440
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1532
1441
|
var contents, data, exception;
|
|
1533
1442
|
return __generator(this, function (_a) {
|
|
1534
|
-
contents = {};
|
|
1443
|
+
contents = map({});
|
|
1535
1444
|
data = parsedOutput.body;
|
|
1536
|
-
if (data.message
|
|
1445
|
+
if (data.message != null) {
|
|
1537
1446
|
contents.message = __expectString(data.message);
|
|
1538
1447
|
}
|
|
1539
1448
|
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1543,9 +1452,9 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
1543
1452
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1544
1453
|
var contents, data, exception;
|
|
1545
1454
|
return __generator(this, function (_a) {
|
|
1546
|
-
contents = {};
|
|
1455
|
+
contents = map({});
|
|
1547
1456
|
data = parsedOutput.body;
|
|
1548
|
-
if (data.message
|
|
1457
|
+
if (data.message != null) {
|
|
1549
1458
|
contents.message = __expectString(data.message);
|
|
1550
1459
|
}
|
|
1551
1460
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1555,9 +1464,9 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
1555
1464
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1556
1465
|
var contents, data, exception;
|
|
1557
1466
|
return __generator(this, function (_a) {
|
|
1558
|
-
contents = {};
|
|
1467
|
+
contents = map({});
|
|
1559
1468
|
data = parsedOutput.body;
|
|
1560
|
-
if (data.message
|
|
1469
|
+
if (data.message != null) {
|
|
1561
1470
|
contents.message = __expectString(data.message);
|
|
1562
1471
|
}
|
|
1563
1472
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1567,9 +1476,9 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
1567
1476
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1568
1477
|
var contents, data, exception;
|
|
1569
1478
|
return __generator(this, function (_a) {
|
|
1570
|
-
contents = {};
|
|
1479
|
+
contents = map({});
|
|
1571
1480
|
data = parsedOutput.body;
|
|
1572
|
-
if (data.message
|
|
1481
|
+
if (data.message != null) {
|
|
1573
1482
|
contents.message = __expectString(data.message);
|
|
1574
1483
|
}
|
|
1575
1484
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1579,9 +1488,9 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
1579
1488
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1580
1489
|
var contents, data, exception;
|
|
1581
1490
|
return __generator(this, function (_a) {
|
|
1582
|
-
contents = {};
|
|
1491
|
+
contents = map({});
|
|
1583
1492
|
data = parsedOutput.body;
|
|
1584
|
-
if (data.message
|
|
1493
|
+
if (data.message != null) {
|
|
1585
1494
|
contents.message = __expectString(data.message);
|
|
1586
1495
|
}
|
|
1587
1496
|
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1592,9 +1501,6 @@ var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
|
1592
1501
|
return input
|
|
1593
1502
|
.filter(function (e) { return e != null; })
|
|
1594
1503
|
.map(function (entry) {
|
|
1595
|
-
if (entry === null) {
|
|
1596
|
-
return null;
|
|
1597
|
-
}
|
|
1598
1504
|
return entry;
|
|
1599
1505
|
});
|
|
1600
1506
|
};
|
|
@@ -1602,9 +1508,6 @@ var serializeAws_restJson1__listOfPlugin = function (input, context) {
|
|
|
1602
1508
|
return input
|
|
1603
1509
|
.filter(function (e) { return e != null; })
|
|
1604
1510
|
.map(function (entry) {
|
|
1605
|
-
if (entry === null) {
|
|
1606
|
-
return null;
|
|
1607
|
-
}
|
|
1608
1511
|
return serializeAws_restJson1Plugin(entry, context);
|
|
1609
1512
|
});
|
|
1610
1513
|
};
|