@aws-sdk/client-kafkaconnect 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/KafkaConnect.js +15 -0
- package/dist-cjs/commands/DeleteCustomPluginCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/KafkaConnectServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +133 -2
- package/dist-cjs/protocols/Aws_restJson1.js +283 -651
- package/dist-es/KafkaConnect.js +15 -0
- package/dist-es/commands/DeleteCustomPluginCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/KafkaConnectServiceException.js +12 -0
- package/dist-es/models/models_0.js +118 -6
- package/dist-es/protocols/Aws_restJson1.js +466 -704
- package/dist-types/KafkaConnect.d.ts +10 -1
- package/dist-types/KafkaConnectClient.d.ts +5 -4
- package/dist-types/commands/DeleteCustomPluginCommand.d.ts +35 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +3 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/KafkaConnectServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +237 -91
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/KafkaConnect.d.ts +5 -0
- package/dist-types/ts3.4/KafkaConnectClient.d.ts +5 -4
- package/dist-types/ts3.4/commands/DeleteCustomPluginCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/KafkaConnectServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +75 -33
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { KafkaConnectServiceException as __BaseException } from "../models/KafkaConnectServiceException";
|
|
5
|
+
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1CreateConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -127,6 +129,37 @@ export var serializeAws_restJson1DeleteConnectorCommand = function (input, conte
|
|
|
127
129
|
}
|
|
128
130
|
});
|
|
129
131
|
}); };
|
|
132
|
+
export var serializeAws_restJson1DeleteCustomPluginCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
133
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
134
|
+
return __generator(this, function (_c) {
|
|
135
|
+
switch (_c.label) {
|
|
136
|
+
case 0: return [4, context.endpoint()];
|
|
137
|
+
case 1:
|
|
138
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
139
|
+
headers = {};
|
|
140
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins/{customPluginArn}";
|
|
141
|
+
if (input.customPluginArn !== undefined) {
|
|
142
|
+
labelValue = input.customPluginArn;
|
|
143
|
+
if (labelValue.length <= 0) {
|
|
144
|
+
throw new Error("Empty value provided for input HTTP label: customPluginArn.");
|
|
145
|
+
}
|
|
146
|
+
resolvedPath = resolvedPath.replace("{customPluginArn}", __extendedEncodeURIComponent(labelValue));
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
throw new Error("No value provided for input HTTP label: customPluginArn.");
|
|
150
|
+
}
|
|
151
|
+
return [2, new __HttpRequest({
|
|
152
|
+
protocol: protocol,
|
|
153
|
+
hostname: hostname,
|
|
154
|
+
port: port,
|
|
155
|
+
method: "DELETE",
|
|
156
|
+
headers: headers,
|
|
157
|
+
path: resolvedPath,
|
|
158
|
+
body: body,
|
|
159
|
+
})];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}); };
|
|
130
163
|
export var serializeAws_restJson1DescribeConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
131
164
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
132
165
|
return __generator(this, function (_c) {
|
|
@@ -360,16 +393,16 @@ export var deserializeAws_restJson1CreateConnectorCommand = function (output, co
|
|
|
360
393
|
});
|
|
361
394
|
}); };
|
|
362
395
|
var deserializeAws_restJson1CreateConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
363
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
364
|
-
var
|
|
365
|
-
return __generator(this, function (
|
|
366
|
-
switch (
|
|
396
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
397
|
+
var _c;
|
|
398
|
+
return __generator(this, function (_d) {
|
|
399
|
+
switch (_d.label) {
|
|
367
400
|
case 0:
|
|
368
401
|
_a = [__assign({}, output)];
|
|
369
|
-
|
|
402
|
+
_c = {};
|
|
370
403
|
return [4, parseBody(output.body, context)];
|
|
371
404
|
case 1:
|
|
372
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
405
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
373
406
|
errorCode = "UnknownError";
|
|
374
407
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
375
408
|
_b = errorCode;
|
|
@@ -392,64 +425,30 @@ var deserializeAws_restJson1CreateConnectorCommandError = function (output, cont
|
|
|
392
425
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 16];
|
|
393
426
|
}
|
|
394
427
|
return [3, 18];
|
|
395
|
-
case 2:
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
case
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
case 4
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
case
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
case
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
case
|
|
411
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
412
|
-
return [3, 19];
|
|
413
|
-
case 8:
|
|
414
|
-
_f = [{}];
|
|
415
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
416
|
-
case 9:
|
|
417
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
418
|
-
return [3, 19];
|
|
419
|
-
case 10:
|
|
420
|
-
_g = [{}];
|
|
421
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
422
|
-
case 11:
|
|
423
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
424
|
-
return [3, 19];
|
|
425
|
-
case 12:
|
|
426
|
-
_h = [{}];
|
|
427
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
428
|
-
case 13:
|
|
429
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
430
|
-
return [3, 19];
|
|
431
|
-
case 14:
|
|
432
|
-
_j = [{}];
|
|
433
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
434
|
-
case 15:
|
|
435
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
436
|
-
return [3, 19];
|
|
437
|
-
case 16:
|
|
438
|
-
_k = [{}];
|
|
439
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
440
|
-
case 17:
|
|
441
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
442
|
-
return [3, 19];
|
|
428
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
429
|
+
case 3: throw _d.sent();
|
|
430
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
431
|
+
case 5: throw _d.sent();
|
|
432
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
433
|
+
case 7: throw _d.sent();
|
|
434
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
435
|
+
case 9: throw _d.sent();
|
|
436
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
437
|
+
case 11: throw _d.sent();
|
|
438
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
439
|
+
case 13: throw _d.sent();
|
|
440
|
+
case 14: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
441
|
+
case 15: throw _d.sent();
|
|
442
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
443
|
+
case 17: throw _d.sent();
|
|
443
444
|
case 18:
|
|
444
445
|
parsedBody = parsedOutput.body;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
response
|
|
451
|
-
delete response.Message;
|
|
452
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
446
|
+
response = new __BaseException({
|
|
447
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
448
|
+
$fault: "client",
|
|
449
|
+
$metadata: deserializeMetadata(output),
|
|
450
|
+
});
|
|
451
|
+
throw __decorateServiceException(response, parsedBody);
|
|
453
452
|
}
|
|
454
453
|
});
|
|
455
454
|
}); };
|
|
@@ -490,16 +489,16 @@ export var deserializeAws_restJson1CreateCustomPluginCommand = function (output,
|
|
|
490
489
|
});
|
|
491
490
|
}); };
|
|
492
491
|
var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
493
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
494
|
-
var
|
|
495
|
-
return __generator(this, function (
|
|
496
|
-
switch (
|
|
492
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
493
|
+
var _c;
|
|
494
|
+
return __generator(this, function (_d) {
|
|
495
|
+
switch (_d.label) {
|
|
497
496
|
case 0:
|
|
498
497
|
_a = [__assign({}, output)];
|
|
499
|
-
|
|
498
|
+
_c = {};
|
|
500
499
|
return [4, parseBody(output.body, context)];
|
|
501
500
|
case 1:
|
|
502
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
501
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
503
502
|
errorCode = "UnknownError";
|
|
504
503
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
504
|
_b = errorCode;
|
|
@@ -522,64 +521,30 @@ var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, c
|
|
|
522
521
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 16];
|
|
523
522
|
}
|
|
524
523
|
return [3, 18];
|
|
525
|
-
case 2:
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
case
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
case 4
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
case
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
case
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
case
|
|
541
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
542
|
-
return [3, 19];
|
|
543
|
-
case 8:
|
|
544
|
-
_f = [{}];
|
|
545
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
546
|
-
case 9:
|
|
547
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
548
|
-
return [3, 19];
|
|
549
|
-
case 10:
|
|
550
|
-
_g = [{}];
|
|
551
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
552
|
-
case 11:
|
|
553
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
554
|
-
return [3, 19];
|
|
555
|
-
case 12:
|
|
556
|
-
_h = [{}];
|
|
557
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
558
|
-
case 13:
|
|
559
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
560
|
-
return [3, 19];
|
|
561
|
-
case 14:
|
|
562
|
-
_j = [{}];
|
|
563
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
564
|
-
case 15:
|
|
565
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
566
|
-
return [3, 19];
|
|
567
|
-
case 16:
|
|
568
|
-
_k = [{}];
|
|
569
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
570
|
-
case 17:
|
|
571
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
572
|
-
return [3, 19];
|
|
524
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
525
|
+
case 3: throw _d.sent();
|
|
526
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
527
|
+
case 5: throw _d.sent();
|
|
528
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
529
|
+
case 7: throw _d.sent();
|
|
530
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
531
|
+
case 9: throw _d.sent();
|
|
532
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
533
|
+
case 11: throw _d.sent();
|
|
534
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
535
|
+
case 13: throw _d.sent();
|
|
536
|
+
case 14: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
537
|
+
case 15: throw _d.sent();
|
|
538
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
539
|
+
case 17: throw _d.sent();
|
|
573
540
|
case 18:
|
|
574
541
|
parsedBody = parsedOutput.body;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
response
|
|
581
|
-
delete response.Message;
|
|
582
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
542
|
+
response = new __BaseException({
|
|
543
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
544
|
+
$fault: "client",
|
|
545
|
+
$metadata: deserializeMetadata(output),
|
|
546
|
+
});
|
|
547
|
+
throw __decorateServiceException(response, parsedBody);
|
|
583
548
|
}
|
|
584
549
|
});
|
|
585
550
|
}); };
|
|
@@ -620,16 +585,16 @@ export var deserializeAws_restJson1CreateWorkerConfigurationCommand = function (
|
|
|
620
585
|
});
|
|
621
586
|
}); };
|
|
622
587
|
var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
623
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
624
|
-
var
|
|
625
|
-
return __generator(this, function (
|
|
626
|
-
switch (
|
|
588
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
589
|
+
var _c;
|
|
590
|
+
return __generator(this, function (_d) {
|
|
591
|
+
switch (_d.label) {
|
|
627
592
|
case 0:
|
|
628
593
|
_a = [__assign({}, output)];
|
|
629
|
-
|
|
594
|
+
_c = {};
|
|
630
595
|
return [4, parseBody(output.body, context)];
|
|
631
596
|
case 1:
|
|
632
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
597
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
633
598
|
errorCode = "UnknownError";
|
|
634
599
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
600
|
_b = errorCode;
|
|
@@ -652,64 +617,30 @@ var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (ou
|
|
|
652
617
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 16];
|
|
653
618
|
}
|
|
654
619
|
return [3, 18];
|
|
655
|
-
case 2:
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
case
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
case 4
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
case
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
case
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
case
|
|
671
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
672
|
-
return [3, 19];
|
|
673
|
-
case 8:
|
|
674
|
-
_f = [{}];
|
|
675
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
676
|
-
case 9:
|
|
677
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
678
|
-
return [3, 19];
|
|
679
|
-
case 10:
|
|
680
|
-
_g = [{}];
|
|
681
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
682
|
-
case 11:
|
|
683
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
684
|
-
return [3, 19];
|
|
685
|
-
case 12:
|
|
686
|
-
_h = [{}];
|
|
687
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
688
|
-
case 13:
|
|
689
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
690
|
-
return [3, 19];
|
|
691
|
-
case 14:
|
|
692
|
-
_j = [{}];
|
|
693
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
694
|
-
case 15:
|
|
695
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
696
|
-
return [3, 19];
|
|
697
|
-
case 16:
|
|
698
|
-
_k = [{}];
|
|
699
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
700
|
-
case 17:
|
|
701
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
702
|
-
return [3, 19];
|
|
620
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
621
|
+
case 3: throw _d.sent();
|
|
622
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
623
|
+
case 5: throw _d.sent();
|
|
624
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
625
|
+
case 7: throw _d.sent();
|
|
626
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
627
|
+
case 9: throw _d.sent();
|
|
628
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
629
|
+
case 11: throw _d.sent();
|
|
630
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
631
|
+
case 13: throw _d.sent();
|
|
632
|
+
case 14: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
633
|
+
case 15: throw _d.sent();
|
|
634
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
635
|
+
case 17: throw _d.sent();
|
|
703
636
|
case 18:
|
|
704
637
|
parsedBody = parsedOutput.body;
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
response
|
|
711
|
-
delete response.Message;
|
|
712
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
638
|
+
response = new __BaseException({
|
|
639
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
640
|
+
$fault: "client",
|
|
641
|
+
$metadata: deserializeMetadata(output),
|
|
642
|
+
});
|
|
643
|
+
throw __decorateServiceException(response, parsedBody);
|
|
713
644
|
}
|
|
714
645
|
});
|
|
715
646
|
}); };
|
|
@@ -742,16 +673,16 @@ export var deserializeAws_restJson1DeleteConnectorCommand = function (output, co
|
|
|
742
673
|
});
|
|
743
674
|
}); };
|
|
744
675
|
var deserializeAws_restJson1DeleteConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
745
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
746
|
-
var
|
|
747
|
-
return __generator(this, function (
|
|
748
|
-
switch (
|
|
676
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
677
|
+
var _c;
|
|
678
|
+
return __generator(this, function (_d) {
|
|
679
|
+
switch (_d.label) {
|
|
749
680
|
case 0:
|
|
750
681
|
_a = [__assign({}, output)];
|
|
751
|
-
|
|
682
|
+
_c = {};
|
|
752
683
|
return [4, parseBody(output.body, context)];
|
|
753
684
|
case 1:
|
|
754
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
685
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
755
686
|
errorCode = "UnknownError";
|
|
756
687
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
688
|
_b = errorCode;
|
|
@@ -772,58 +703,112 @@ var deserializeAws_restJson1DeleteConnectorCommandError = function (output, cont
|
|
|
772
703
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
773
704
|
}
|
|
774
705
|
return [3, 16];
|
|
775
|
-
case 2:
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
case
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
case 4
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
case
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
case
|
|
788
|
-
|
|
789
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
790
|
-
case 7:
|
|
791
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
792
|
-
return [3, 17];
|
|
793
|
-
case 8:
|
|
794
|
-
_f = [{}];
|
|
795
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
796
|
-
case 9:
|
|
797
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
798
|
-
return [3, 17];
|
|
799
|
-
case 10:
|
|
800
|
-
_g = [{}];
|
|
801
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
802
|
-
case 11:
|
|
803
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
804
|
-
return [3, 17];
|
|
805
|
-
case 12:
|
|
806
|
-
_h = [{}];
|
|
807
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
808
|
-
case 13:
|
|
809
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
810
|
-
return [3, 17];
|
|
811
|
-
case 14:
|
|
812
|
-
_j = [{}];
|
|
813
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
814
|
-
case 15:
|
|
815
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
816
|
-
return [3, 17];
|
|
706
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
707
|
+
case 3: throw _d.sent();
|
|
708
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
709
|
+
case 5: throw _d.sent();
|
|
710
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
711
|
+
case 7: throw _d.sent();
|
|
712
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
713
|
+
case 9: throw _d.sent();
|
|
714
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
715
|
+
case 11: throw _d.sent();
|
|
716
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
717
|
+
case 13: throw _d.sent();
|
|
718
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
719
|
+
case 15: throw _d.sent();
|
|
817
720
|
case 16:
|
|
818
721
|
parsedBody = parsedOutput.body;
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
response
|
|
825
|
-
|
|
826
|
-
|
|
722
|
+
response = new __BaseException({
|
|
723
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
724
|
+
$fault: "client",
|
|
725
|
+
$metadata: deserializeMetadata(output),
|
|
726
|
+
});
|
|
727
|
+
throw __decorateServiceException(response, parsedBody);
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
}); };
|
|
731
|
+
export var deserializeAws_restJson1DeleteCustomPluginCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
732
|
+
var contents, data, _a, _b;
|
|
733
|
+
return __generator(this, function (_c) {
|
|
734
|
+
switch (_c.label) {
|
|
735
|
+
case 0:
|
|
736
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
+
return [2, deserializeAws_restJson1DeleteCustomPluginCommandError(output, context)];
|
|
738
|
+
}
|
|
739
|
+
contents = {
|
|
740
|
+
$metadata: deserializeMetadata(output),
|
|
741
|
+
customPluginArn: undefined,
|
|
742
|
+
customPluginState: undefined,
|
|
743
|
+
};
|
|
744
|
+
_a = __expectNonNull;
|
|
745
|
+
_b = __expectObject;
|
|
746
|
+
return [4, parseBody(output.body, context)];
|
|
747
|
+
case 1:
|
|
748
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
749
|
+
if (data.customPluginArn !== undefined && data.customPluginArn !== null) {
|
|
750
|
+
contents.customPluginArn = __expectString(data.customPluginArn);
|
|
751
|
+
}
|
|
752
|
+
if (data.customPluginState !== undefined && data.customPluginState !== null) {
|
|
753
|
+
contents.customPluginState = __expectString(data.customPluginState);
|
|
754
|
+
}
|
|
755
|
+
return [2, Promise.resolve(contents)];
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
}); };
|
|
759
|
+
var deserializeAws_restJson1DeleteCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
760
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
761
|
+
var _c;
|
|
762
|
+
return __generator(this, function (_d) {
|
|
763
|
+
switch (_d.label) {
|
|
764
|
+
case 0:
|
|
765
|
+
_a = [__assign({}, output)];
|
|
766
|
+
_c = {};
|
|
767
|
+
return [4, parseBody(output.body, context)];
|
|
768
|
+
case 1:
|
|
769
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
770
|
+
errorCode = "UnknownError";
|
|
771
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
+
_b = errorCode;
|
|
773
|
+
switch (_b) {
|
|
774
|
+
case "BadRequestException": return [3, 2];
|
|
775
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
776
|
+
case "ForbiddenException": return [3, 4];
|
|
777
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
778
|
+
case "InternalServerErrorException": return [3, 6];
|
|
779
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
780
|
+
case "NotFoundException": return [3, 8];
|
|
781
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
782
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
783
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
784
|
+
case "TooManyRequestsException": return [3, 12];
|
|
785
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
786
|
+
case "UnauthorizedException": return [3, 14];
|
|
787
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
788
|
+
}
|
|
789
|
+
return [3, 16];
|
|
790
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
791
|
+
case 3: throw _d.sent();
|
|
792
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
793
|
+
case 5: throw _d.sent();
|
|
794
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
795
|
+
case 7: throw _d.sent();
|
|
796
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
797
|
+
case 9: throw _d.sent();
|
|
798
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
799
|
+
case 11: throw _d.sent();
|
|
800
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
801
|
+
case 13: throw _d.sent();
|
|
802
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
803
|
+
case 15: throw _d.sent();
|
|
804
|
+
case 16:
|
|
805
|
+
parsedBody = parsedOutput.body;
|
|
806
|
+
response = new __BaseException({
|
|
807
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
808
|
+
$fault: "client",
|
|
809
|
+
$metadata: deserializeMetadata(output),
|
|
810
|
+
});
|
|
811
|
+
throw __decorateServiceException(response, parsedBody);
|
|
827
812
|
}
|
|
828
813
|
});
|
|
829
814
|
}); };
|
|
@@ -852,6 +837,7 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
|
|
|
852
837
|
logDelivery: undefined,
|
|
853
838
|
plugins: undefined,
|
|
854
839
|
serviceExecutionRoleArn: undefined,
|
|
840
|
+
stateDescription: undefined,
|
|
855
841
|
workerConfiguration: undefined,
|
|
856
842
|
};
|
|
857
843
|
_a = __expectNonNull;
|
|
@@ -904,6 +890,9 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
|
|
|
904
890
|
if (data.serviceExecutionRoleArn !== undefined && data.serviceExecutionRoleArn !== null) {
|
|
905
891
|
contents.serviceExecutionRoleArn = __expectString(data.serviceExecutionRoleArn);
|
|
906
892
|
}
|
|
893
|
+
if (data.stateDescription !== undefined && data.stateDescription !== null) {
|
|
894
|
+
contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
|
|
895
|
+
}
|
|
907
896
|
if (data.workerConfiguration !== undefined && data.workerConfiguration !== null) {
|
|
908
897
|
contents.workerConfiguration = deserializeAws_restJson1WorkerConfigurationDescription(data.workerConfiguration, context);
|
|
909
898
|
}
|
|
@@ -912,16 +901,16 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
|
|
|
912
901
|
});
|
|
913
902
|
}); };
|
|
914
903
|
var deserializeAws_restJson1DescribeConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
915
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
916
|
-
var
|
|
917
|
-
return __generator(this, function (
|
|
918
|
-
switch (
|
|
904
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
905
|
+
var _c;
|
|
906
|
+
return __generator(this, function (_d) {
|
|
907
|
+
switch (_d.label) {
|
|
919
908
|
case 0:
|
|
920
909
|
_a = [__assign({}, output)];
|
|
921
|
-
|
|
910
|
+
_c = {};
|
|
922
911
|
return [4, parseBody(output.body, context)];
|
|
923
912
|
case 1:
|
|
924
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
913
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
925
914
|
errorCode = "UnknownError";
|
|
926
915
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
916
|
_b = errorCode;
|
|
@@ -942,58 +931,28 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
|
|
|
942
931
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
943
932
|
}
|
|
944
933
|
return [3, 16];
|
|
945
|
-
case 2:
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
case
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
case 4
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
case
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
case
|
|
958
|
-
|
|
959
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
960
|
-
case 7:
|
|
961
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
962
|
-
return [3, 17];
|
|
963
|
-
case 8:
|
|
964
|
-
_f = [{}];
|
|
965
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
966
|
-
case 9:
|
|
967
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
968
|
-
return [3, 17];
|
|
969
|
-
case 10:
|
|
970
|
-
_g = [{}];
|
|
971
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
972
|
-
case 11:
|
|
973
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
974
|
-
return [3, 17];
|
|
975
|
-
case 12:
|
|
976
|
-
_h = [{}];
|
|
977
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
978
|
-
case 13:
|
|
979
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
980
|
-
return [3, 17];
|
|
981
|
-
case 14:
|
|
982
|
-
_j = [{}];
|
|
983
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
984
|
-
case 15:
|
|
985
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
986
|
-
return [3, 17];
|
|
934
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
935
|
+
case 3: throw _d.sent();
|
|
936
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
937
|
+
case 5: throw _d.sent();
|
|
938
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
939
|
+
case 7: throw _d.sent();
|
|
940
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
941
|
+
case 9: throw _d.sent();
|
|
942
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
943
|
+
case 11: throw _d.sent();
|
|
944
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
945
|
+
case 13: throw _d.sent();
|
|
946
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
947
|
+
case 15: throw _d.sent();
|
|
987
948
|
case 16:
|
|
988
949
|
parsedBody = parsedOutput.body;
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
response
|
|
995
|
-
delete response.Message;
|
|
996
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
950
|
+
response = new __BaseException({
|
|
951
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
952
|
+
$fault: "client",
|
|
953
|
+
$metadata: deserializeMetadata(output),
|
|
954
|
+
});
|
|
955
|
+
throw __decorateServiceException(response, parsedBody);
|
|
997
956
|
}
|
|
998
957
|
});
|
|
999
958
|
}); };
|
|
@@ -1013,6 +972,7 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
|
|
|
1013
972
|
description: undefined,
|
|
1014
973
|
latestRevision: undefined,
|
|
1015
974
|
name: undefined,
|
|
975
|
+
stateDescription: undefined,
|
|
1016
976
|
};
|
|
1017
977
|
_a = __expectNonNull;
|
|
1018
978
|
_b = __expectObject;
|
|
@@ -1037,21 +997,24 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
|
|
|
1037
997
|
if (data.name !== undefined && data.name !== null) {
|
|
1038
998
|
contents.name = __expectString(data.name);
|
|
1039
999
|
}
|
|
1000
|
+
if (data.stateDescription !== undefined && data.stateDescription !== null) {
|
|
1001
|
+
contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
|
|
1002
|
+
}
|
|
1040
1003
|
return [2, Promise.resolve(contents)];
|
|
1041
1004
|
}
|
|
1042
1005
|
});
|
|
1043
1006
|
}); };
|
|
1044
1007
|
var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1045
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1046
|
-
var
|
|
1047
|
-
return __generator(this, function (
|
|
1048
|
-
switch (
|
|
1008
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1009
|
+
var _c;
|
|
1010
|
+
return __generator(this, function (_d) {
|
|
1011
|
+
switch (_d.label) {
|
|
1049
1012
|
case 0:
|
|
1050
1013
|
_a = [__assign({}, output)];
|
|
1051
|
-
|
|
1014
|
+
_c = {};
|
|
1052
1015
|
return [4, parseBody(output.body, context)];
|
|
1053
1016
|
case 1:
|
|
1054
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1017
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1055
1018
|
errorCode = "UnknownError";
|
|
1056
1019
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
1020
|
_b = errorCode;
|
|
@@ -1072,58 +1035,28 @@ var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output,
|
|
|
1072
1035
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1073
1036
|
}
|
|
1074
1037
|
return [3, 16];
|
|
1075
|
-
case 2:
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
case
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
case 4
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
case
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
case
|
|
1088
|
-
|
|
1089
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1090
|
-
case 7:
|
|
1091
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1092
|
-
return [3, 17];
|
|
1093
|
-
case 8:
|
|
1094
|
-
_f = [{}];
|
|
1095
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1096
|
-
case 9:
|
|
1097
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1098
|
-
return [3, 17];
|
|
1099
|
-
case 10:
|
|
1100
|
-
_g = [{}];
|
|
1101
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1102
|
-
case 11:
|
|
1103
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1104
|
-
return [3, 17];
|
|
1105
|
-
case 12:
|
|
1106
|
-
_h = [{}];
|
|
1107
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1108
|
-
case 13:
|
|
1109
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
-
return [3, 17];
|
|
1111
|
-
case 14:
|
|
1112
|
-
_j = [{}];
|
|
1113
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1114
|
-
case 15:
|
|
1115
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
-
return [3, 17];
|
|
1038
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1039
|
+
case 3: throw _d.sent();
|
|
1040
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1041
|
+
case 5: throw _d.sent();
|
|
1042
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1043
|
+
case 7: throw _d.sent();
|
|
1044
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1045
|
+
case 9: throw _d.sent();
|
|
1046
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1047
|
+
case 11: throw _d.sent();
|
|
1048
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1049
|
+
case 13: throw _d.sent();
|
|
1050
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1051
|
+
case 15: throw _d.sent();
|
|
1117
1052
|
case 16:
|
|
1118
1053
|
parsedBody = parsedOutput.body;
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
response
|
|
1125
|
-
delete response.Message;
|
|
1126
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1054
|
+
response = new __BaseException({
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1056
|
+
$fault: "client",
|
|
1057
|
+
$metadata: deserializeMetadata(output),
|
|
1058
|
+
});
|
|
1059
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1127
1060
|
}
|
|
1128
1061
|
});
|
|
1129
1062
|
}); };
|
|
@@ -1168,16 +1101,16 @@ export var deserializeAws_restJson1DescribeWorkerConfigurationCommand = function
|
|
|
1168
1101
|
});
|
|
1169
1102
|
}); };
|
|
1170
1103
|
var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1171
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1172
|
-
var
|
|
1173
|
-
return __generator(this, function (
|
|
1174
|
-
switch (
|
|
1104
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1105
|
+
var _c;
|
|
1106
|
+
return __generator(this, function (_d) {
|
|
1107
|
+
switch (_d.label) {
|
|
1175
1108
|
case 0:
|
|
1176
1109
|
_a = [__assign({}, output)];
|
|
1177
|
-
|
|
1110
|
+
_c = {};
|
|
1178
1111
|
return [4, parseBody(output.body, context)];
|
|
1179
1112
|
case 1:
|
|
1180
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1113
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1181
1114
|
errorCode = "UnknownError";
|
|
1182
1115
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
1116
|
_b = errorCode;
|
|
@@ -1198,58 +1131,28 @@ var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (
|
|
|
1198
1131
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1199
1132
|
}
|
|
1200
1133
|
return [3, 16];
|
|
1201
|
-
case 2:
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
case
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
case 4
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
case
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
case
|
|
1214
|
-
|
|
1215
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1216
|
-
case 7:
|
|
1217
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1218
|
-
return [3, 17];
|
|
1219
|
-
case 8:
|
|
1220
|
-
_f = [{}];
|
|
1221
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1222
|
-
case 9:
|
|
1223
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1224
|
-
return [3, 17];
|
|
1225
|
-
case 10:
|
|
1226
|
-
_g = [{}];
|
|
1227
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1228
|
-
case 11:
|
|
1229
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1230
|
-
return [3, 17];
|
|
1231
|
-
case 12:
|
|
1232
|
-
_h = [{}];
|
|
1233
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1234
|
-
case 13:
|
|
1235
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1236
|
-
return [3, 17];
|
|
1237
|
-
case 14:
|
|
1238
|
-
_j = [{}];
|
|
1239
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1240
|
-
case 15:
|
|
1241
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1242
|
-
return [3, 17];
|
|
1134
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1135
|
+
case 3: throw _d.sent();
|
|
1136
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1137
|
+
case 5: throw _d.sent();
|
|
1138
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1139
|
+
case 7: throw _d.sent();
|
|
1140
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1141
|
+
case 9: throw _d.sent();
|
|
1142
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1143
|
+
case 11: throw _d.sent();
|
|
1144
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1145
|
+
case 13: throw _d.sent();
|
|
1146
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1147
|
+
case 15: throw _d.sent();
|
|
1243
1148
|
case 16:
|
|
1244
1149
|
parsedBody = parsedOutput.body;
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
response
|
|
1251
|
-
delete response.Message;
|
|
1252
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1150
|
+
response = new __BaseException({
|
|
1151
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1152
|
+
$fault: "client",
|
|
1153
|
+
$metadata: deserializeMetadata(output),
|
|
1154
|
+
});
|
|
1155
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1253
1156
|
}
|
|
1254
1157
|
});
|
|
1255
1158
|
}); };
|
|
@@ -1282,16 +1185,16 @@ export var deserializeAws_restJson1ListConnectorsCommand = function (output, con
|
|
|
1282
1185
|
});
|
|
1283
1186
|
}); };
|
|
1284
1187
|
var deserializeAws_restJson1ListConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1285
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1286
|
-
var
|
|
1287
|
-
return __generator(this, function (
|
|
1288
|
-
switch (
|
|
1188
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1189
|
+
var _c;
|
|
1190
|
+
return __generator(this, function (_d) {
|
|
1191
|
+
switch (_d.label) {
|
|
1289
1192
|
case 0:
|
|
1290
1193
|
_a = [__assign({}, output)];
|
|
1291
|
-
|
|
1194
|
+
_c = {};
|
|
1292
1195
|
return [4, parseBody(output.body, context)];
|
|
1293
1196
|
case 1:
|
|
1294
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1197
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1295
1198
|
errorCode = "UnknownError";
|
|
1296
1199
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1200
|
_b = errorCode;
|
|
@@ -1312,58 +1215,28 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
|
|
|
1312
1215
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1313
1216
|
}
|
|
1314
1217
|
return [3, 16];
|
|
1315
|
-
case 2:
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
case
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
case 4
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
case
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
case
|
|
1328
|
-
|
|
1329
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1330
|
-
case 7:
|
|
1331
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1332
|
-
return [3, 17];
|
|
1333
|
-
case 8:
|
|
1334
|
-
_f = [{}];
|
|
1335
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1336
|
-
case 9:
|
|
1337
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1338
|
-
return [3, 17];
|
|
1339
|
-
case 10:
|
|
1340
|
-
_g = [{}];
|
|
1341
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1342
|
-
case 11:
|
|
1343
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1344
|
-
return [3, 17];
|
|
1345
|
-
case 12:
|
|
1346
|
-
_h = [{}];
|
|
1347
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1348
|
-
case 13:
|
|
1349
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1350
|
-
return [3, 17];
|
|
1351
|
-
case 14:
|
|
1352
|
-
_j = [{}];
|
|
1353
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1354
|
-
case 15:
|
|
1355
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1356
|
-
return [3, 17];
|
|
1218
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1219
|
+
case 3: throw _d.sent();
|
|
1220
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1221
|
+
case 5: throw _d.sent();
|
|
1222
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1223
|
+
case 7: throw _d.sent();
|
|
1224
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1225
|
+
case 9: throw _d.sent();
|
|
1226
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1227
|
+
case 11: throw _d.sent();
|
|
1228
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1229
|
+
case 13: throw _d.sent();
|
|
1230
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1231
|
+
case 15: throw _d.sent();
|
|
1357
1232
|
case 16:
|
|
1358
1233
|
parsedBody = parsedOutput.body;
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
response
|
|
1365
|
-
delete response.Message;
|
|
1366
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1234
|
+
response = new __BaseException({
|
|
1235
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1236
|
+
$fault: "client",
|
|
1237
|
+
$metadata: deserializeMetadata(output),
|
|
1238
|
+
});
|
|
1239
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1367
1240
|
}
|
|
1368
1241
|
});
|
|
1369
1242
|
}); };
|
|
@@ -1396,16 +1269,16 @@ export var deserializeAws_restJson1ListCustomPluginsCommand = function (output,
|
|
|
1396
1269
|
});
|
|
1397
1270
|
}); };
|
|
1398
1271
|
var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1399
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1400
|
-
var
|
|
1401
|
-
return __generator(this, function (
|
|
1402
|
-
switch (
|
|
1272
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1273
|
+
var _c;
|
|
1274
|
+
return __generator(this, function (_d) {
|
|
1275
|
+
switch (_d.label) {
|
|
1403
1276
|
case 0:
|
|
1404
1277
|
_a = [__assign({}, output)];
|
|
1405
|
-
|
|
1278
|
+
_c = {};
|
|
1406
1279
|
return [4, parseBody(output.body, context)];
|
|
1407
1280
|
case 1:
|
|
1408
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1281
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1409
1282
|
errorCode = "UnknownError";
|
|
1410
1283
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
1284
|
_b = errorCode;
|
|
@@ -1426,58 +1299,28 @@ var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, co
|
|
|
1426
1299
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1427
1300
|
}
|
|
1428
1301
|
return [3, 16];
|
|
1429
|
-
case 2:
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
case
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
case 4
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
case
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
case
|
|
1442
|
-
|
|
1443
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1444
|
-
case 7:
|
|
1445
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1446
|
-
return [3, 17];
|
|
1447
|
-
case 8:
|
|
1448
|
-
_f = [{}];
|
|
1449
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1450
|
-
case 9:
|
|
1451
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1452
|
-
return [3, 17];
|
|
1453
|
-
case 10:
|
|
1454
|
-
_g = [{}];
|
|
1455
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1456
|
-
case 11:
|
|
1457
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1458
|
-
return [3, 17];
|
|
1459
|
-
case 12:
|
|
1460
|
-
_h = [{}];
|
|
1461
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1462
|
-
case 13:
|
|
1463
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1464
|
-
return [3, 17];
|
|
1465
|
-
case 14:
|
|
1466
|
-
_j = [{}];
|
|
1467
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1468
|
-
case 15:
|
|
1469
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1470
|
-
return [3, 17];
|
|
1302
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1303
|
+
case 3: throw _d.sent();
|
|
1304
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1305
|
+
case 5: throw _d.sent();
|
|
1306
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1307
|
+
case 7: throw _d.sent();
|
|
1308
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1309
|
+
case 9: throw _d.sent();
|
|
1310
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1311
|
+
case 11: throw _d.sent();
|
|
1312
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1313
|
+
case 13: throw _d.sent();
|
|
1314
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1315
|
+
case 15: throw _d.sent();
|
|
1471
1316
|
case 16:
|
|
1472
1317
|
parsedBody = parsedOutput.body;
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
response
|
|
1479
|
-
delete response.Message;
|
|
1480
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1318
|
+
response = new __BaseException({
|
|
1319
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1320
|
+
$fault: "client",
|
|
1321
|
+
$metadata: deserializeMetadata(output),
|
|
1322
|
+
});
|
|
1323
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1481
1324
|
}
|
|
1482
1325
|
});
|
|
1483
1326
|
}); };
|
|
@@ -1510,16 +1353,16 @@ export var deserializeAws_restJson1ListWorkerConfigurationsCommand = function (o
|
|
|
1510
1353
|
});
|
|
1511
1354
|
}); };
|
|
1512
1355
|
var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1513
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1514
|
-
var
|
|
1515
|
-
return __generator(this, function (
|
|
1516
|
-
switch (
|
|
1356
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1357
|
+
var _c;
|
|
1358
|
+
return __generator(this, function (_d) {
|
|
1359
|
+
switch (_d.label) {
|
|
1517
1360
|
case 0:
|
|
1518
1361
|
_a = [__assign({}, output)];
|
|
1519
|
-
|
|
1362
|
+
_c = {};
|
|
1520
1363
|
return [4, parseBody(output.body, context)];
|
|
1521
1364
|
case 1:
|
|
1522
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1365
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1523
1366
|
errorCode = "UnknownError";
|
|
1524
1367
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
1368
|
_b = errorCode;
|
|
@@ -1540,58 +1383,28 @@ var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (out
|
|
|
1540
1383
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1541
1384
|
}
|
|
1542
1385
|
return [3, 16];
|
|
1543
|
-
case 2:
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
case
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
case 4
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
case
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
case
|
|
1556
|
-
|
|
1557
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1558
|
-
case 7:
|
|
1559
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1560
|
-
return [3, 17];
|
|
1561
|
-
case 8:
|
|
1562
|
-
_f = [{}];
|
|
1563
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1564
|
-
case 9:
|
|
1565
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1566
|
-
return [3, 17];
|
|
1567
|
-
case 10:
|
|
1568
|
-
_g = [{}];
|
|
1569
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1570
|
-
case 11:
|
|
1571
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1572
|
-
return [3, 17];
|
|
1573
|
-
case 12:
|
|
1574
|
-
_h = [{}];
|
|
1575
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1576
|
-
case 13:
|
|
1577
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1578
|
-
return [3, 17];
|
|
1579
|
-
case 14:
|
|
1580
|
-
_j = [{}];
|
|
1581
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1582
|
-
case 15:
|
|
1583
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1584
|
-
return [3, 17];
|
|
1386
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1387
|
+
case 3: throw _d.sent();
|
|
1388
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1389
|
+
case 5: throw _d.sent();
|
|
1390
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1391
|
+
case 7: throw _d.sent();
|
|
1392
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1393
|
+
case 9: throw _d.sent();
|
|
1394
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1395
|
+
case 11: throw _d.sent();
|
|
1396
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1397
|
+
case 13: throw _d.sent();
|
|
1398
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1399
|
+
case 15: throw _d.sent();
|
|
1585
1400
|
case 16:
|
|
1586
1401
|
parsedBody = parsedOutput.body;
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
response
|
|
1593
|
-
delete response.Message;
|
|
1594
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1402
|
+
response = new __BaseException({
|
|
1403
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1404
|
+
$fault: "client",
|
|
1405
|
+
$metadata: deserializeMetadata(output),
|
|
1406
|
+
});
|
|
1407
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1595
1408
|
}
|
|
1596
1409
|
});
|
|
1597
1410
|
}); };
|
|
@@ -1624,16 +1437,16 @@ export var deserializeAws_restJson1UpdateConnectorCommand = function (output, co
|
|
|
1624
1437
|
});
|
|
1625
1438
|
}); };
|
|
1626
1439
|
var deserializeAws_restJson1UpdateConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1627
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1628
|
-
var
|
|
1629
|
-
return __generator(this, function (
|
|
1630
|
-
switch (
|
|
1440
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1441
|
+
var _c;
|
|
1442
|
+
return __generator(this, function (_d) {
|
|
1443
|
+
switch (_d.label) {
|
|
1631
1444
|
case 0:
|
|
1632
1445
|
_a = [__assign({}, output)];
|
|
1633
|
-
|
|
1446
|
+
_c = {};
|
|
1634
1447
|
return [4, parseBody(output.body, context)];
|
|
1635
1448
|
case 1:
|
|
1636
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1449
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1637
1450
|
errorCode = "UnknownError";
|
|
1638
1451
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1639
1452
|
_b = errorCode;
|
|
@@ -1654,187 +1467,125 @@ var deserializeAws_restJson1UpdateConnectorCommandError = function (output, cont
|
|
|
1654
1467
|
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1655
1468
|
}
|
|
1656
1469
|
return [3, 16];
|
|
1657
|
-
case 2:
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
case
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
case 4
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
case
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
case
|
|
1670
|
-
|
|
1671
|
-
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1672
|
-
case 7:
|
|
1673
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1674
|
-
return [3, 17];
|
|
1675
|
-
case 8:
|
|
1676
|
-
_f = [{}];
|
|
1677
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1678
|
-
case 9:
|
|
1679
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1680
|
-
return [3, 17];
|
|
1681
|
-
case 10:
|
|
1682
|
-
_g = [{}];
|
|
1683
|
-
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1684
|
-
case 11:
|
|
1685
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1686
|
-
return [3, 17];
|
|
1687
|
-
case 12:
|
|
1688
|
-
_h = [{}];
|
|
1689
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1690
|
-
case 13:
|
|
1691
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1692
|
-
return [3, 17];
|
|
1693
|
-
case 14:
|
|
1694
|
-
_j = [{}];
|
|
1695
|
-
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1696
|
-
case 15:
|
|
1697
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1698
|
-
return [3, 17];
|
|
1470
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1471
|
+
case 3: throw _d.sent();
|
|
1472
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1473
|
+
case 5: throw _d.sent();
|
|
1474
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1475
|
+
case 7: throw _d.sent();
|
|
1476
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1477
|
+
case 9: throw _d.sent();
|
|
1478
|
+
case 10: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1479
|
+
case 11: throw _d.sent();
|
|
1480
|
+
case 12: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1481
|
+
case 13: throw _d.sent();
|
|
1482
|
+
case 14: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1483
|
+
case 15: throw _d.sent();
|
|
1699
1484
|
case 16:
|
|
1700
1485
|
parsedBody = parsedOutput.body;
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
response
|
|
1707
|
-
delete response.Message;
|
|
1708
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1486
|
+
response = new __BaseException({
|
|
1487
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1488
|
+
$fault: "client",
|
|
1489
|
+
$metadata: deserializeMetadata(output),
|
|
1490
|
+
});
|
|
1491
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1709
1492
|
}
|
|
1710
1493
|
});
|
|
1711
1494
|
}); };
|
|
1712
1495
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1713
|
-
var contents, data;
|
|
1496
|
+
var contents, data, exception;
|
|
1714
1497
|
return __generator(this, function (_a) {
|
|
1715
|
-
contents = {
|
|
1716
|
-
name: "BadRequestException",
|
|
1717
|
-
$fault: "client",
|
|
1718
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1719
|
-
message: undefined,
|
|
1720
|
-
};
|
|
1498
|
+
contents = {};
|
|
1721
1499
|
data = parsedOutput.body;
|
|
1722
1500
|
if (data.message !== undefined && data.message !== null) {
|
|
1723
1501
|
contents.message = __expectString(data.message);
|
|
1724
1502
|
}
|
|
1725
|
-
|
|
1503
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1504
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1726
1505
|
});
|
|
1727
1506
|
}); };
|
|
1728
1507
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1729
|
-
var contents, data;
|
|
1508
|
+
var contents, data, exception;
|
|
1730
1509
|
return __generator(this, function (_a) {
|
|
1731
|
-
contents = {
|
|
1732
|
-
name: "ConflictException",
|
|
1733
|
-
$fault: "client",
|
|
1734
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1735
|
-
message: undefined,
|
|
1736
|
-
};
|
|
1510
|
+
contents = {};
|
|
1737
1511
|
data = parsedOutput.body;
|
|
1738
1512
|
if (data.message !== undefined && data.message !== null) {
|
|
1739
1513
|
contents.message = __expectString(data.message);
|
|
1740
1514
|
}
|
|
1741
|
-
|
|
1515
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1516
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1742
1517
|
});
|
|
1743
1518
|
}); };
|
|
1744
1519
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1745
|
-
var contents, data;
|
|
1520
|
+
var contents, data, exception;
|
|
1746
1521
|
return __generator(this, function (_a) {
|
|
1747
|
-
contents = {
|
|
1748
|
-
name: "ForbiddenException",
|
|
1749
|
-
$fault: "client",
|
|
1750
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1751
|
-
message: undefined,
|
|
1752
|
-
};
|
|
1522
|
+
contents = {};
|
|
1753
1523
|
data = parsedOutput.body;
|
|
1754
1524
|
if (data.message !== undefined && data.message !== null) {
|
|
1755
1525
|
contents.message = __expectString(data.message);
|
|
1756
1526
|
}
|
|
1757
|
-
|
|
1527
|
+
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1528
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1758
1529
|
});
|
|
1759
1530
|
}); };
|
|
1760
1531
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1761
|
-
var contents, data;
|
|
1532
|
+
var contents, data, exception;
|
|
1762
1533
|
return __generator(this, function (_a) {
|
|
1763
|
-
contents = {
|
|
1764
|
-
name: "InternalServerErrorException",
|
|
1765
|
-
$fault: "server",
|
|
1766
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1767
|
-
message: undefined,
|
|
1768
|
-
};
|
|
1534
|
+
contents = {};
|
|
1769
1535
|
data = parsedOutput.body;
|
|
1770
1536
|
if (data.message !== undefined && data.message !== null) {
|
|
1771
1537
|
contents.message = __expectString(data.message);
|
|
1772
1538
|
}
|
|
1773
|
-
|
|
1539
|
+
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1540
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1774
1541
|
});
|
|
1775
1542
|
}); };
|
|
1776
1543
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1777
|
-
var contents, data;
|
|
1544
|
+
var contents, data, exception;
|
|
1778
1545
|
return __generator(this, function (_a) {
|
|
1779
|
-
contents = {
|
|
1780
|
-
name: "NotFoundException",
|
|
1781
|
-
$fault: "client",
|
|
1782
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1783
|
-
message: undefined,
|
|
1784
|
-
};
|
|
1546
|
+
contents = {};
|
|
1785
1547
|
data = parsedOutput.body;
|
|
1786
1548
|
if (data.message !== undefined && data.message !== null) {
|
|
1787
1549
|
contents.message = __expectString(data.message);
|
|
1788
1550
|
}
|
|
1789
|
-
|
|
1551
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1552
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1790
1553
|
});
|
|
1791
1554
|
}); };
|
|
1792
1555
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1793
|
-
var contents, data;
|
|
1556
|
+
var contents, data, exception;
|
|
1794
1557
|
return __generator(this, function (_a) {
|
|
1795
|
-
contents = {
|
|
1796
|
-
name: "ServiceUnavailableException",
|
|
1797
|
-
$fault: "server",
|
|
1798
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1799
|
-
message: undefined,
|
|
1800
|
-
};
|
|
1558
|
+
contents = {};
|
|
1801
1559
|
data = parsedOutput.body;
|
|
1802
1560
|
if (data.message !== undefined && data.message !== null) {
|
|
1803
1561
|
contents.message = __expectString(data.message);
|
|
1804
1562
|
}
|
|
1805
|
-
|
|
1563
|
+
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1564
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1806
1565
|
});
|
|
1807
1566
|
}); };
|
|
1808
1567
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1809
|
-
var contents, data;
|
|
1568
|
+
var contents, data, exception;
|
|
1810
1569
|
return __generator(this, function (_a) {
|
|
1811
|
-
contents = {
|
|
1812
|
-
name: "TooManyRequestsException",
|
|
1813
|
-
$fault: "client",
|
|
1814
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1815
|
-
message: undefined,
|
|
1816
|
-
};
|
|
1570
|
+
contents = {};
|
|
1817
1571
|
data = parsedOutput.body;
|
|
1818
1572
|
if (data.message !== undefined && data.message !== null) {
|
|
1819
1573
|
contents.message = __expectString(data.message);
|
|
1820
1574
|
}
|
|
1821
|
-
|
|
1575
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1576
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1822
1577
|
});
|
|
1823
1578
|
}); };
|
|
1824
1579
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1825
|
-
var contents, data;
|
|
1580
|
+
var contents, data, exception;
|
|
1826
1581
|
return __generator(this, function (_a) {
|
|
1827
|
-
contents = {
|
|
1828
|
-
name: "UnauthorizedException",
|
|
1829
|
-
$fault: "client",
|
|
1830
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1831
|
-
message: undefined,
|
|
1832
|
-
};
|
|
1582
|
+
contents = {};
|
|
1833
1583
|
data = parsedOutput.body;
|
|
1834
1584
|
if (data.message !== undefined && data.message !== null) {
|
|
1835
1585
|
contents.message = __expectString(data.message);
|
|
1836
1586
|
}
|
|
1837
|
-
|
|
1587
|
+
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1588
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1838
1589
|
});
|
|
1839
1590
|
}); };
|
|
1840
1591
|
var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
@@ -1995,7 +1746,7 @@ var serializeAws_restJson1WorkerLogDelivery = function (input, context) {
|
|
|
1995
1746
|
input.firehose !== null && { firehose: serializeAws_restJson1FirehoseLogDelivery(input.firehose, context) })), (input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }));
|
|
1996
1747
|
};
|
|
1997
1748
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
1998
|
-
|
|
1749
|
+
var retVal = (output || [])
|
|
1999
1750
|
.filter(function (e) { return e != null; })
|
|
2000
1751
|
.map(function (entry) {
|
|
2001
1752
|
if (entry === null) {
|
|
@@ -2003,9 +1754,10 @@ var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
|
2003
1754
|
}
|
|
2004
1755
|
return __expectString(entry);
|
|
2005
1756
|
});
|
|
1757
|
+
return retVal;
|
|
2006
1758
|
};
|
|
2007
1759
|
var deserializeAws_restJson1__listOfConnectorSummary = function (output, context) {
|
|
2008
|
-
|
|
1760
|
+
var retVal = (output || [])
|
|
2009
1761
|
.filter(function (e) { return e != null; })
|
|
2010
1762
|
.map(function (entry) {
|
|
2011
1763
|
if (entry === null) {
|
|
@@ -2013,9 +1765,10 @@ var deserializeAws_restJson1__listOfConnectorSummary = function (output, context
|
|
|
2013
1765
|
}
|
|
2014
1766
|
return deserializeAws_restJson1ConnectorSummary(entry, context);
|
|
2015
1767
|
});
|
|
1768
|
+
return retVal;
|
|
2016
1769
|
};
|
|
2017
1770
|
var deserializeAws_restJson1__listOfCustomPluginSummary = function (output, context) {
|
|
2018
|
-
|
|
1771
|
+
var retVal = (output || [])
|
|
2019
1772
|
.filter(function (e) { return e != null; })
|
|
2020
1773
|
.map(function (entry) {
|
|
2021
1774
|
if (entry === null) {
|
|
@@ -2023,9 +1776,10 @@ var deserializeAws_restJson1__listOfCustomPluginSummary = function (output, cont
|
|
|
2023
1776
|
}
|
|
2024
1777
|
return deserializeAws_restJson1CustomPluginSummary(entry, context);
|
|
2025
1778
|
});
|
|
1779
|
+
return retVal;
|
|
2026
1780
|
};
|
|
2027
1781
|
var deserializeAws_restJson1__listOfPluginDescription = function (output, context) {
|
|
2028
|
-
|
|
1782
|
+
var retVal = (output || [])
|
|
2029
1783
|
.filter(function (e) { return e != null; })
|
|
2030
1784
|
.map(function (entry) {
|
|
2031
1785
|
if (entry === null) {
|
|
@@ -2033,9 +1787,10 @@ var deserializeAws_restJson1__listOfPluginDescription = function (output, contex
|
|
|
2033
1787
|
}
|
|
2034
1788
|
return deserializeAws_restJson1PluginDescription(entry, context);
|
|
2035
1789
|
});
|
|
1790
|
+
return retVal;
|
|
2036
1791
|
};
|
|
2037
1792
|
var deserializeAws_restJson1__listOfWorkerConfigurationSummary = function (output, context) {
|
|
2038
|
-
|
|
1793
|
+
var retVal = (output || [])
|
|
2039
1794
|
.filter(function (e) { return e != null; })
|
|
2040
1795
|
.map(function (entry) {
|
|
2041
1796
|
if (entry === null) {
|
|
@@ -2043,6 +1798,7 @@ var deserializeAws_restJson1__listOfWorkerConfigurationSummary = function (outpu
|
|
|
2043
1798
|
}
|
|
2044
1799
|
return deserializeAws_restJson1WorkerConfigurationSummary(entry, context);
|
|
2045
1800
|
});
|
|
1801
|
+
return retVal;
|
|
2046
1802
|
};
|
|
2047
1803
|
var deserializeAws_restJson1__mapOf__string = function (output, context) {
|
|
2048
1804
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -2242,6 +1998,12 @@ var deserializeAws_restJson1ScaleOutPolicyDescription = function (output, contex
|
|
|
2242
1998
|
cpuUtilizationPercentage: __expectInt32(output.cpuUtilizationPercentage),
|
|
2243
1999
|
};
|
|
2244
2000
|
};
|
|
2001
|
+
var deserializeAws_restJson1StateDescription = function (output, context) {
|
|
2002
|
+
return {
|
|
2003
|
+
code: __expectString(output.code),
|
|
2004
|
+
message: __expectString(output.message),
|
|
2005
|
+
};
|
|
2006
|
+
};
|
|
2245
2007
|
var deserializeAws_restJson1VpcDescription = function (output, context) {
|
|
2246
2008
|
return {
|
|
2247
2009
|
securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
|