@aws-sdk/client-kafkaconnect 3.50.0 → 3.53.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/index.js +3 -0
- package/dist-cjs/models/KafkaConnectServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +107 -2
- package/dist-cjs/protocols/Aws_restJson1.js +184 -651
- package/dist-es/index.js +1 -0
- package/dist-es/models/KafkaConnectServiceException.js +12 -0
- package/dist-es/models/models_0.js +98 -1
- package/dist-es/protocols/Aws_restJson1.js +337 -704
- 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 +58 -33
- package/dist-types/ts3.4/KafkaConnect.d.ts +60 -0
- package/dist-types/ts3.4/KafkaConnectClient.d.ts +84 -0
- package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateCustomPluginCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWorkerConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCustomPluginCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWorkerConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCustomPluginsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWorkerConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/KafkaConnectServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1005 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListCustomPluginsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWorkerConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +35 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1UpdateConnectorCommand = exports.deserializeAws_restJson1ListWorkerConfigurationsCommand = exports.deserializeAws_restJson1ListCustomPluginsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1DescribeWorkerConfigurationCommand = exports.deserializeAws_restJson1DescribeCustomPluginCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteConnectorCommand = exports.deserializeAws_restJson1CreateWorkerConfigurationCommand = exports.deserializeAws_restJson1CreateCustomPluginCommand = exports.deserializeAws_restJson1CreateConnectorCommand = exports.serializeAws_restJson1UpdateConnectorCommand = exports.serializeAws_restJson1ListWorkerConfigurationsCommand = exports.serializeAws_restJson1ListCustomPluginsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1DescribeWorkerConfigurationCommand = exports.serializeAws_restJson1DescribeCustomPluginCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteConnectorCommand = exports.serializeAws_restJson1CreateWorkerConfigurationCommand = exports.serializeAws_restJson1CreateCustomPluginCommand = exports.serializeAws_restJson1CreateConnectorCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const KafkaConnectServiceException_1 = require("../models/KafkaConnectServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1CreateConnectorCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -346,83 +348,37 @@ const deserializeAws_restJson1CreateConnectorCommandError = async (output, conte
|
|
|
346
348
|
switch (errorCode) {
|
|
347
349
|
case "BadRequestException":
|
|
348
350
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
349
|
-
|
|
350
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
351
|
-
name: errorCode,
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
};
|
|
354
|
-
break;
|
|
351
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
355
352
|
case "ConflictException":
|
|
356
353
|
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
357
|
-
|
|
358
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
359
|
-
name: errorCode,
|
|
360
|
-
$metadata: deserializeMetadata(output),
|
|
361
|
-
};
|
|
362
|
-
break;
|
|
354
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
363
355
|
case "ForbiddenException":
|
|
364
356
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
365
|
-
|
|
366
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
367
|
-
name: errorCode,
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
};
|
|
370
|
-
break;
|
|
357
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
371
358
|
case "InternalServerErrorException":
|
|
372
359
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
373
|
-
|
|
374
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
375
|
-
name: errorCode,
|
|
376
|
-
$metadata: deserializeMetadata(output),
|
|
377
|
-
};
|
|
378
|
-
break;
|
|
360
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
379
361
|
case "NotFoundException":
|
|
380
362
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
381
|
-
|
|
382
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
383
|
-
name: errorCode,
|
|
384
|
-
$metadata: deserializeMetadata(output),
|
|
385
|
-
};
|
|
386
|
-
break;
|
|
363
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
387
364
|
case "ServiceUnavailableException":
|
|
388
365
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
389
|
-
|
|
390
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
391
|
-
name: errorCode,
|
|
392
|
-
$metadata: deserializeMetadata(output),
|
|
393
|
-
};
|
|
394
|
-
break;
|
|
366
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
395
367
|
case "TooManyRequestsException":
|
|
396
368
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
397
|
-
|
|
398
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
399
|
-
name: errorCode,
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
};
|
|
402
|
-
break;
|
|
369
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
403
370
|
case "UnauthorizedException":
|
|
404
371
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
405
|
-
|
|
406
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
407
|
-
name: errorCode,
|
|
408
|
-
$metadata: deserializeMetadata(output),
|
|
409
|
-
};
|
|
410
|
-
break;
|
|
372
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
411
373
|
default:
|
|
412
374
|
const parsedBody = parsedOutput.body;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
...parsedBody,
|
|
416
|
-
name: `${errorCode}`,
|
|
417
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
375
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
376
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
418
377
|
$fault: "client",
|
|
419
378
|
$metadata: deserializeMetadata(output),
|
|
420
|
-
};
|
|
379
|
+
});
|
|
380
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
421
381
|
}
|
|
422
|
-
const message = response.message || response.Message || errorCode;
|
|
423
|
-
response.message = message;
|
|
424
|
-
delete response.Message;
|
|
425
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
426
382
|
};
|
|
427
383
|
const deserializeAws_restJson1CreateCustomPluginCommand = async (output, context) => {
|
|
428
384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -462,83 +418,37 @@ const deserializeAws_restJson1CreateCustomPluginCommandError = async (output, co
|
|
|
462
418
|
switch (errorCode) {
|
|
463
419
|
case "BadRequestException":
|
|
464
420
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
465
|
-
|
|
466
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
467
|
-
name: errorCode,
|
|
468
|
-
$metadata: deserializeMetadata(output),
|
|
469
|
-
};
|
|
470
|
-
break;
|
|
421
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
471
422
|
case "ConflictException":
|
|
472
423
|
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
473
|
-
|
|
474
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
475
|
-
name: errorCode,
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
};
|
|
478
|
-
break;
|
|
424
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
479
425
|
case "ForbiddenException":
|
|
480
426
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
481
|
-
|
|
482
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
483
|
-
name: errorCode,
|
|
484
|
-
$metadata: deserializeMetadata(output),
|
|
485
|
-
};
|
|
486
|
-
break;
|
|
427
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
487
428
|
case "InternalServerErrorException":
|
|
488
429
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
489
|
-
|
|
490
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
491
|
-
name: errorCode,
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
};
|
|
494
|
-
break;
|
|
430
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
495
431
|
case "NotFoundException":
|
|
496
432
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
497
|
-
|
|
498
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
499
|
-
name: errorCode,
|
|
500
|
-
$metadata: deserializeMetadata(output),
|
|
501
|
-
};
|
|
502
|
-
break;
|
|
433
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
503
434
|
case "ServiceUnavailableException":
|
|
504
435
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
505
|
-
|
|
506
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
507
|
-
name: errorCode,
|
|
508
|
-
$metadata: deserializeMetadata(output),
|
|
509
|
-
};
|
|
510
|
-
break;
|
|
436
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
511
437
|
case "TooManyRequestsException":
|
|
512
438
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
513
|
-
|
|
514
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
515
|
-
name: errorCode,
|
|
516
|
-
$metadata: deserializeMetadata(output),
|
|
517
|
-
};
|
|
518
|
-
break;
|
|
439
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
519
440
|
case "UnauthorizedException":
|
|
520
441
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
521
|
-
|
|
522
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
523
|
-
name: errorCode,
|
|
524
|
-
$metadata: deserializeMetadata(output),
|
|
525
|
-
};
|
|
526
|
-
break;
|
|
442
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
527
443
|
default:
|
|
528
444
|
const parsedBody = parsedOutput.body;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
...parsedBody,
|
|
532
|
-
name: `${errorCode}`,
|
|
533
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
445
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
446
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
534
447
|
$fault: "client",
|
|
535
448
|
$metadata: deserializeMetadata(output),
|
|
536
|
-
};
|
|
449
|
+
});
|
|
450
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
537
451
|
}
|
|
538
|
-
const message = response.message || response.Message || errorCode;
|
|
539
|
-
response.message = message;
|
|
540
|
-
delete response.Message;
|
|
541
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
542
452
|
};
|
|
543
453
|
const deserializeAws_restJson1CreateWorkerConfigurationCommand = async (output, context) => {
|
|
544
454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -578,83 +488,37 @@ const deserializeAws_restJson1CreateWorkerConfigurationCommandError = async (out
|
|
|
578
488
|
switch (errorCode) {
|
|
579
489
|
case "BadRequestException":
|
|
580
490
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
581
|
-
|
|
582
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
583
|
-
name: errorCode,
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
};
|
|
586
|
-
break;
|
|
491
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
587
492
|
case "ConflictException":
|
|
588
493
|
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
589
|
-
|
|
590
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
591
|
-
name: errorCode,
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
};
|
|
594
|
-
break;
|
|
494
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
595
495
|
case "ForbiddenException":
|
|
596
496
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
597
|
-
|
|
598
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
599
|
-
name: errorCode,
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
};
|
|
602
|
-
break;
|
|
497
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
603
498
|
case "InternalServerErrorException":
|
|
604
499
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
605
|
-
|
|
606
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
607
|
-
name: errorCode,
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
};
|
|
610
|
-
break;
|
|
500
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
611
501
|
case "NotFoundException":
|
|
612
502
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
613
|
-
|
|
614
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
615
|
-
name: errorCode,
|
|
616
|
-
$metadata: deserializeMetadata(output),
|
|
617
|
-
};
|
|
618
|
-
break;
|
|
503
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
619
504
|
case "ServiceUnavailableException":
|
|
620
505
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
621
|
-
|
|
622
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
623
|
-
name: errorCode,
|
|
624
|
-
$metadata: deserializeMetadata(output),
|
|
625
|
-
};
|
|
626
|
-
break;
|
|
506
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
627
507
|
case "TooManyRequestsException":
|
|
628
508
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
629
|
-
|
|
630
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
631
|
-
name: errorCode,
|
|
632
|
-
$metadata: deserializeMetadata(output),
|
|
633
|
-
};
|
|
634
|
-
break;
|
|
509
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
635
510
|
case "UnauthorizedException":
|
|
636
511
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
637
|
-
|
|
638
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
639
|
-
name: errorCode,
|
|
640
|
-
$metadata: deserializeMetadata(output),
|
|
641
|
-
};
|
|
642
|
-
break;
|
|
512
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
643
513
|
default:
|
|
644
514
|
const parsedBody = parsedOutput.body;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
...parsedBody,
|
|
648
|
-
name: `${errorCode}`,
|
|
649
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
515
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
516
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
650
517
|
$fault: "client",
|
|
651
518
|
$metadata: deserializeMetadata(output),
|
|
652
|
-
};
|
|
519
|
+
});
|
|
520
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
653
521
|
}
|
|
654
|
-
const message = response.message || response.Message || errorCode;
|
|
655
|
-
response.message = message;
|
|
656
|
-
delete response.Message;
|
|
657
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
658
522
|
};
|
|
659
523
|
const deserializeAws_restJson1DeleteConnectorCommand = async (output, context) => {
|
|
660
524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -686,75 +550,34 @@ const deserializeAws_restJson1DeleteConnectorCommandError = async (output, conte
|
|
|
686
550
|
switch (errorCode) {
|
|
687
551
|
case "BadRequestException":
|
|
688
552
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
689
|
-
|
|
690
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
691
|
-
name: errorCode,
|
|
692
|
-
$metadata: deserializeMetadata(output),
|
|
693
|
-
};
|
|
694
|
-
break;
|
|
553
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
695
554
|
case "ForbiddenException":
|
|
696
555
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
697
|
-
|
|
698
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
699
|
-
name: errorCode,
|
|
700
|
-
$metadata: deserializeMetadata(output),
|
|
701
|
-
};
|
|
702
|
-
break;
|
|
556
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
703
557
|
case "InternalServerErrorException":
|
|
704
558
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
705
|
-
|
|
706
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
707
|
-
name: errorCode,
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
};
|
|
710
|
-
break;
|
|
559
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
711
560
|
case "NotFoundException":
|
|
712
561
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
713
|
-
|
|
714
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
715
|
-
name: errorCode,
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
};
|
|
718
|
-
break;
|
|
562
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
719
563
|
case "ServiceUnavailableException":
|
|
720
564
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
721
|
-
|
|
722
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
723
|
-
name: errorCode,
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
};
|
|
726
|
-
break;
|
|
565
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
727
566
|
case "TooManyRequestsException":
|
|
728
567
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
729
|
-
|
|
730
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
731
|
-
name: errorCode,
|
|
732
|
-
$metadata: deserializeMetadata(output),
|
|
733
|
-
};
|
|
734
|
-
break;
|
|
568
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
735
569
|
case "UnauthorizedException":
|
|
736
570
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
737
|
-
|
|
738
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
739
|
-
name: errorCode,
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
};
|
|
742
|
-
break;
|
|
571
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
743
572
|
default:
|
|
744
573
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
...parsedBody,
|
|
748
|
-
name: `${errorCode}`,
|
|
749
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
574
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
575
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
750
576
|
$fault: "client",
|
|
751
577
|
$metadata: deserializeMetadata(output),
|
|
752
|
-
};
|
|
578
|
+
});
|
|
579
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
753
580
|
}
|
|
754
|
-
const message = response.message || response.Message || errorCode;
|
|
755
|
-
response.message = message;
|
|
756
|
-
delete response.Message;
|
|
757
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
758
581
|
};
|
|
759
582
|
const deserializeAws_restJson1DescribeConnectorCommand = async (output, context) => {
|
|
760
583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -842,75 +665,34 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
|
|
|
842
665
|
switch (errorCode) {
|
|
843
666
|
case "BadRequestException":
|
|
844
667
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
845
|
-
|
|
846
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
847
|
-
name: errorCode,
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
};
|
|
850
|
-
break;
|
|
668
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
851
669
|
case "ForbiddenException":
|
|
852
670
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
853
|
-
|
|
854
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
855
|
-
name: errorCode,
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
};
|
|
858
|
-
break;
|
|
671
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
859
672
|
case "InternalServerErrorException":
|
|
860
673
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
861
|
-
|
|
862
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
863
|
-
name: errorCode,
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
};
|
|
866
|
-
break;
|
|
674
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
867
675
|
case "NotFoundException":
|
|
868
676
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
869
|
-
|
|
870
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
871
|
-
name: errorCode,
|
|
872
|
-
$metadata: deserializeMetadata(output),
|
|
873
|
-
};
|
|
874
|
-
break;
|
|
677
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
875
678
|
case "ServiceUnavailableException":
|
|
876
679
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
877
|
-
|
|
878
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
879
|
-
name: errorCode,
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
};
|
|
882
|
-
break;
|
|
680
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
883
681
|
case "TooManyRequestsException":
|
|
884
682
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
885
|
-
|
|
886
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
887
|
-
name: errorCode,
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
};
|
|
890
|
-
break;
|
|
683
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
891
684
|
case "UnauthorizedException":
|
|
892
685
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
893
|
-
|
|
894
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
895
|
-
name: errorCode,
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
};
|
|
898
|
-
break;
|
|
686
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
899
687
|
default:
|
|
900
688
|
const parsedBody = parsedOutput.body;
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
...parsedBody,
|
|
904
|
-
name: `${errorCode}`,
|
|
905
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
689
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
690
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
906
691
|
$fault: "client",
|
|
907
692
|
$metadata: deserializeMetadata(output),
|
|
908
|
-
};
|
|
693
|
+
});
|
|
694
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
909
695
|
}
|
|
910
|
-
const message = response.message || response.Message || errorCode;
|
|
911
|
-
response.message = message;
|
|
912
|
-
delete response.Message;
|
|
913
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
914
696
|
};
|
|
915
697
|
const deserializeAws_restJson1DescribeCustomPluginCommand = async (output, context) => {
|
|
916
698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -958,75 +740,34 @@ const deserializeAws_restJson1DescribeCustomPluginCommandError = async (output,
|
|
|
958
740
|
switch (errorCode) {
|
|
959
741
|
case "BadRequestException":
|
|
960
742
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
961
|
-
|
|
962
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
963
|
-
name: errorCode,
|
|
964
|
-
$metadata: deserializeMetadata(output),
|
|
965
|
-
};
|
|
966
|
-
break;
|
|
743
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
967
744
|
case "ForbiddenException":
|
|
968
745
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
969
|
-
|
|
970
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
971
|
-
name: errorCode,
|
|
972
|
-
$metadata: deserializeMetadata(output),
|
|
973
|
-
};
|
|
974
|
-
break;
|
|
746
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
975
747
|
case "InternalServerErrorException":
|
|
976
748
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
977
|
-
|
|
978
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
979
|
-
name: errorCode,
|
|
980
|
-
$metadata: deserializeMetadata(output),
|
|
981
|
-
};
|
|
982
|
-
break;
|
|
749
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
983
750
|
case "NotFoundException":
|
|
984
751
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
985
|
-
|
|
986
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
987
|
-
name: errorCode,
|
|
988
|
-
$metadata: deserializeMetadata(output),
|
|
989
|
-
};
|
|
990
|
-
break;
|
|
752
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
991
753
|
case "ServiceUnavailableException":
|
|
992
754
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
993
|
-
|
|
994
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
995
|
-
name: errorCode,
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
};
|
|
998
|
-
break;
|
|
755
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
999
756
|
case "TooManyRequestsException":
|
|
1000
757
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1001
|
-
|
|
1002
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1003
|
-
name: errorCode,
|
|
1004
|
-
$metadata: deserializeMetadata(output),
|
|
1005
|
-
};
|
|
1006
|
-
break;
|
|
758
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1007
759
|
case "UnauthorizedException":
|
|
1008
760
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1009
|
-
|
|
1010
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1011
|
-
name: errorCode,
|
|
1012
|
-
$metadata: deserializeMetadata(output),
|
|
1013
|
-
};
|
|
1014
|
-
break;
|
|
761
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1015
762
|
default:
|
|
1016
763
|
const parsedBody = parsedOutput.body;
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
...parsedBody,
|
|
1020
|
-
name: `${errorCode}`,
|
|
1021
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
764
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
765
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1022
766
|
$fault: "client",
|
|
1023
767
|
$metadata: deserializeMetadata(output),
|
|
1024
|
-
};
|
|
768
|
+
});
|
|
769
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1025
770
|
}
|
|
1026
|
-
const message = response.message || response.Message || errorCode;
|
|
1027
|
-
response.message = message;
|
|
1028
|
-
delete response.Message;
|
|
1029
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1030
771
|
};
|
|
1031
772
|
const deserializeAws_restJson1DescribeWorkerConfigurationCommand = async (output, context) => {
|
|
1032
773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1070,75 +811,34 @@ const deserializeAws_restJson1DescribeWorkerConfigurationCommandError = async (o
|
|
|
1070
811
|
switch (errorCode) {
|
|
1071
812
|
case "BadRequestException":
|
|
1072
813
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1073
|
-
|
|
1074
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1075
|
-
name: errorCode,
|
|
1076
|
-
$metadata: deserializeMetadata(output),
|
|
1077
|
-
};
|
|
1078
|
-
break;
|
|
814
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1079
815
|
case "ForbiddenException":
|
|
1080
816
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1081
|
-
|
|
1082
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1083
|
-
name: errorCode,
|
|
1084
|
-
$metadata: deserializeMetadata(output),
|
|
1085
|
-
};
|
|
1086
|
-
break;
|
|
817
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1087
818
|
case "InternalServerErrorException":
|
|
1088
819
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1089
|
-
|
|
1090
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1091
|
-
name: errorCode,
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
};
|
|
1094
|
-
break;
|
|
820
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1095
821
|
case "NotFoundException":
|
|
1096
822
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1097
|
-
|
|
1098
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1099
|
-
name: errorCode,
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
};
|
|
1102
|
-
break;
|
|
823
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1103
824
|
case "ServiceUnavailableException":
|
|
1104
825
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1105
|
-
|
|
1106
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1107
|
-
name: errorCode,
|
|
1108
|
-
$metadata: deserializeMetadata(output),
|
|
1109
|
-
};
|
|
1110
|
-
break;
|
|
826
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1111
827
|
case "TooManyRequestsException":
|
|
1112
828
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1113
|
-
|
|
1114
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1115
|
-
name: errorCode,
|
|
1116
|
-
$metadata: deserializeMetadata(output),
|
|
1117
|
-
};
|
|
1118
|
-
break;
|
|
829
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1119
830
|
case "UnauthorizedException":
|
|
1120
831
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1121
|
-
|
|
1122
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1123
|
-
name: errorCode,
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
};
|
|
1126
|
-
break;
|
|
832
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1127
833
|
default:
|
|
1128
834
|
const parsedBody = parsedOutput.body;
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
...parsedBody,
|
|
1132
|
-
name: `${errorCode}`,
|
|
1133
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
835
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
836
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1134
837
|
$fault: "client",
|
|
1135
838
|
$metadata: deserializeMetadata(output),
|
|
1136
|
-
};
|
|
839
|
+
});
|
|
840
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1137
841
|
}
|
|
1138
|
-
const message = response.message || response.Message || errorCode;
|
|
1139
|
-
response.message = message;
|
|
1140
|
-
delete response.Message;
|
|
1141
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1142
842
|
};
|
|
1143
843
|
const deserializeAws_restJson1ListConnectorsCommand = async (output, context) => {
|
|
1144
844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1170,75 +870,34 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
|
|
|
1170
870
|
switch (errorCode) {
|
|
1171
871
|
case "BadRequestException":
|
|
1172
872
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1173
|
-
|
|
1174
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1175
|
-
name: errorCode,
|
|
1176
|
-
$metadata: deserializeMetadata(output),
|
|
1177
|
-
};
|
|
1178
|
-
break;
|
|
873
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1179
874
|
case "ForbiddenException":
|
|
1180
875
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1181
|
-
|
|
1182
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1183
|
-
name: errorCode,
|
|
1184
|
-
$metadata: deserializeMetadata(output),
|
|
1185
|
-
};
|
|
1186
|
-
break;
|
|
876
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1187
877
|
case "InternalServerErrorException":
|
|
1188
878
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1189
|
-
|
|
1190
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1191
|
-
name: errorCode,
|
|
1192
|
-
$metadata: deserializeMetadata(output),
|
|
1193
|
-
};
|
|
1194
|
-
break;
|
|
879
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1195
880
|
case "NotFoundException":
|
|
1196
881
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1197
|
-
|
|
1198
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1199
|
-
name: errorCode,
|
|
1200
|
-
$metadata: deserializeMetadata(output),
|
|
1201
|
-
};
|
|
1202
|
-
break;
|
|
882
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1203
883
|
case "ServiceUnavailableException":
|
|
1204
884
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1205
|
-
|
|
1206
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1207
|
-
name: errorCode,
|
|
1208
|
-
$metadata: deserializeMetadata(output),
|
|
1209
|
-
};
|
|
1210
|
-
break;
|
|
885
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1211
886
|
case "TooManyRequestsException":
|
|
1212
887
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1213
|
-
|
|
1214
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1215
|
-
name: errorCode,
|
|
1216
|
-
$metadata: deserializeMetadata(output),
|
|
1217
|
-
};
|
|
1218
|
-
break;
|
|
888
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1219
889
|
case "UnauthorizedException":
|
|
1220
890
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1221
|
-
|
|
1222
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1223
|
-
name: errorCode,
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
};
|
|
1226
|
-
break;
|
|
891
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1227
892
|
default:
|
|
1228
893
|
const parsedBody = parsedOutput.body;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
...parsedBody,
|
|
1232
|
-
name: `${errorCode}`,
|
|
1233
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
894
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
895
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1234
896
|
$fault: "client",
|
|
1235
897
|
$metadata: deserializeMetadata(output),
|
|
1236
|
-
};
|
|
898
|
+
});
|
|
899
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1237
900
|
}
|
|
1238
|
-
const message = response.message || response.Message || errorCode;
|
|
1239
|
-
response.message = message;
|
|
1240
|
-
delete response.Message;
|
|
1241
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1242
901
|
};
|
|
1243
902
|
const deserializeAws_restJson1ListCustomPluginsCommand = async (output, context) => {
|
|
1244
903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1270,75 +929,34 @@ const deserializeAws_restJson1ListCustomPluginsCommandError = async (output, con
|
|
|
1270
929
|
switch (errorCode) {
|
|
1271
930
|
case "BadRequestException":
|
|
1272
931
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1273
|
-
|
|
1274
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1275
|
-
name: errorCode,
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
};
|
|
1278
|
-
break;
|
|
932
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1279
933
|
case "ForbiddenException":
|
|
1280
934
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1281
|
-
|
|
1282
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1283
|
-
name: errorCode,
|
|
1284
|
-
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
1286
|
-
break;
|
|
935
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1287
936
|
case "InternalServerErrorException":
|
|
1288
937
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1289
|
-
|
|
1290
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1291
|
-
name: errorCode,
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
1294
|
-
break;
|
|
938
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1295
939
|
case "NotFoundException":
|
|
1296
940
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1297
|
-
|
|
1298
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1299
|
-
name: errorCode,
|
|
1300
|
-
$metadata: deserializeMetadata(output),
|
|
1301
|
-
};
|
|
1302
|
-
break;
|
|
941
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1303
942
|
case "ServiceUnavailableException":
|
|
1304
943
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1305
|
-
|
|
1306
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1307
|
-
name: errorCode,
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
};
|
|
1310
|
-
break;
|
|
944
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1311
945
|
case "TooManyRequestsException":
|
|
1312
946
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1313
|
-
|
|
1314
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1315
|
-
name: errorCode,
|
|
1316
|
-
$metadata: deserializeMetadata(output),
|
|
1317
|
-
};
|
|
1318
|
-
break;
|
|
947
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1319
948
|
case "UnauthorizedException":
|
|
1320
949
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1321
|
-
|
|
1322
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1323
|
-
name: errorCode,
|
|
1324
|
-
$metadata: deserializeMetadata(output),
|
|
1325
|
-
};
|
|
1326
|
-
break;
|
|
950
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1327
951
|
default:
|
|
1328
952
|
const parsedBody = parsedOutput.body;
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
...parsedBody,
|
|
1332
|
-
name: `${errorCode}`,
|
|
1333
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
953
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
954
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1334
955
|
$fault: "client",
|
|
1335
956
|
$metadata: deserializeMetadata(output),
|
|
1336
|
-
};
|
|
957
|
+
});
|
|
958
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1337
959
|
}
|
|
1338
|
-
const message = response.message || response.Message || errorCode;
|
|
1339
|
-
response.message = message;
|
|
1340
|
-
delete response.Message;
|
|
1341
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1342
960
|
};
|
|
1343
961
|
const deserializeAws_restJson1ListWorkerConfigurationsCommand = async (output, context) => {
|
|
1344
962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1370,75 +988,34 @@ const deserializeAws_restJson1ListWorkerConfigurationsCommandError = async (outp
|
|
|
1370
988
|
switch (errorCode) {
|
|
1371
989
|
case "BadRequestException":
|
|
1372
990
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1373
|
-
|
|
1374
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1375
|
-
name: errorCode,
|
|
1376
|
-
$metadata: deserializeMetadata(output),
|
|
1377
|
-
};
|
|
1378
|
-
break;
|
|
991
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1379
992
|
case "ForbiddenException":
|
|
1380
993
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1381
|
-
|
|
1382
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1383
|
-
name: errorCode,
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
};
|
|
1386
|
-
break;
|
|
994
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1387
995
|
case "InternalServerErrorException":
|
|
1388
996
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1389
|
-
|
|
1390
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1391
|
-
name: errorCode,
|
|
1392
|
-
$metadata: deserializeMetadata(output),
|
|
1393
|
-
};
|
|
1394
|
-
break;
|
|
997
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1395
998
|
case "NotFoundException":
|
|
1396
999
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1397
|
-
|
|
1398
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1399
|
-
name: errorCode,
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
};
|
|
1402
|
-
break;
|
|
1000
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1403
1001
|
case "ServiceUnavailableException":
|
|
1404
1002
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1405
|
-
|
|
1406
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1407
|
-
name: errorCode,
|
|
1408
|
-
$metadata: deserializeMetadata(output),
|
|
1409
|
-
};
|
|
1410
|
-
break;
|
|
1003
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1411
1004
|
case "TooManyRequestsException":
|
|
1412
1005
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1413
|
-
|
|
1414
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1415
|
-
name: errorCode,
|
|
1416
|
-
$metadata: deserializeMetadata(output),
|
|
1417
|
-
};
|
|
1418
|
-
break;
|
|
1006
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1419
1007
|
case "UnauthorizedException":
|
|
1420
1008
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1421
|
-
|
|
1422
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1423
|
-
name: errorCode,
|
|
1424
|
-
$metadata: deserializeMetadata(output),
|
|
1425
|
-
};
|
|
1426
|
-
break;
|
|
1009
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1427
1010
|
default:
|
|
1428
1011
|
const parsedBody = parsedOutput.body;
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
...parsedBody,
|
|
1432
|
-
name: `${errorCode}`,
|
|
1433
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1012
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
1013
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1434
1014
|
$fault: "client",
|
|
1435
1015
|
$metadata: deserializeMetadata(output),
|
|
1436
|
-
};
|
|
1016
|
+
});
|
|
1017
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1437
1018
|
}
|
|
1438
|
-
const message = response.message || response.Message || errorCode;
|
|
1439
|
-
response.message = message;
|
|
1440
|
-
delete response.Message;
|
|
1441
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1442
1019
|
};
|
|
1443
1020
|
const deserializeAws_restJson1UpdateConnectorCommand = async (output, context) => {
|
|
1444
1021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1470,179 +1047,130 @@ const deserializeAws_restJson1UpdateConnectorCommandError = async (output, conte
|
|
|
1470
1047
|
switch (errorCode) {
|
|
1471
1048
|
case "BadRequestException":
|
|
1472
1049
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
1473
|
-
|
|
1474
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1475
|
-
name: errorCode,
|
|
1476
|
-
$metadata: deserializeMetadata(output),
|
|
1477
|
-
};
|
|
1478
|
-
break;
|
|
1050
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1479
1051
|
case "ForbiddenException":
|
|
1480
1052
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
1481
|
-
|
|
1482
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1483
|
-
name: errorCode,
|
|
1484
|
-
$metadata: deserializeMetadata(output),
|
|
1485
|
-
};
|
|
1486
|
-
break;
|
|
1053
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1487
1054
|
case "InternalServerErrorException":
|
|
1488
1055
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
1489
|
-
|
|
1490
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1491
|
-
name: errorCode,
|
|
1492
|
-
$metadata: deserializeMetadata(output),
|
|
1493
|
-
};
|
|
1494
|
-
break;
|
|
1056
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1495
1057
|
case "NotFoundException":
|
|
1496
1058
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
1497
|
-
|
|
1498
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1499
|
-
name: errorCode,
|
|
1500
|
-
$metadata: deserializeMetadata(output),
|
|
1501
|
-
};
|
|
1502
|
-
break;
|
|
1059
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1503
1060
|
case "ServiceUnavailableException":
|
|
1504
1061
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
1505
|
-
|
|
1506
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1507
|
-
name: errorCode,
|
|
1508
|
-
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1510
|
-
break;
|
|
1062
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1511
1063
|
case "TooManyRequestsException":
|
|
1512
1064
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
1513
|
-
|
|
1514
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1065
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1519
1066
|
case "UnauthorizedException":
|
|
1520
1067
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
1521
|
-
|
|
1522
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1523
|
-
name: errorCode,
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1526
|
-
break;
|
|
1068
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1527
1069
|
default:
|
|
1528
1070
|
const parsedBody = parsedOutput.body;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
...parsedBody,
|
|
1532
|
-
name: `${errorCode}`,
|
|
1533
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1071
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
1072
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1534
1073
|
$fault: "client",
|
|
1535
1074
|
$metadata: deserializeMetadata(output),
|
|
1536
|
-
};
|
|
1075
|
+
});
|
|
1076
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1537
1077
|
}
|
|
1538
|
-
const message = response.message || response.Message || errorCode;
|
|
1539
|
-
response.message = message;
|
|
1540
|
-
delete response.Message;
|
|
1541
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1542
1078
|
};
|
|
1543
1079
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1544
|
-
const contents = {
|
|
1545
|
-
name: "BadRequestException",
|
|
1546
|
-
$fault: "client",
|
|
1547
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1548
|
-
message: undefined,
|
|
1549
|
-
};
|
|
1080
|
+
const contents = {};
|
|
1550
1081
|
const data = parsedOutput.body;
|
|
1551
1082
|
if (data.message !== undefined && data.message !== null) {
|
|
1552
1083
|
contents.message = smithy_client_1.expectString(data.message);
|
|
1553
1084
|
}
|
|
1554
|
-
|
|
1085
|
+
const exception = new models_0_1.BadRequestException({
|
|
1086
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1087
|
+
...contents,
|
|
1088
|
+
});
|
|
1089
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1555
1090
|
};
|
|
1556
1091
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1557
|
-
const contents = {
|
|
1558
|
-
name: "ConflictException",
|
|
1559
|
-
$fault: "client",
|
|
1560
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1561
|
-
message: undefined,
|
|
1562
|
-
};
|
|
1092
|
+
const contents = {};
|
|
1563
1093
|
const data = parsedOutput.body;
|
|
1564
1094
|
if (data.message !== undefined && data.message !== null) {
|
|
1565
1095
|
contents.message = smithy_client_1.expectString(data.message);
|
|
1566
1096
|
}
|
|
1567
|
-
|
|
1097
|
+
const exception = new models_0_1.ConflictException({
|
|
1098
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1099
|
+
...contents,
|
|
1100
|
+
});
|
|
1101
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1568
1102
|
};
|
|
1569
1103
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1570
|
-
const contents = {
|
|
1571
|
-
name: "ForbiddenException",
|
|
1572
|
-
$fault: "client",
|
|
1573
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1574
|
-
message: undefined,
|
|
1575
|
-
};
|
|
1104
|
+
const contents = {};
|
|
1576
1105
|
const data = parsedOutput.body;
|
|
1577
1106
|
if (data.message !== undefined && data.message !== null) {
|
|
1578
1107
|
contents.message = smithy_client_1.expectString(data.message);
|
|
1579
1108
|
}
|
|
1580
|
-
|
|
1109
|
+
const exception = new models_0_1.ForbiddenException({
|
|
1110
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
|
+
...contents,
|
|
1112
|
+
});
|
|
1113
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1581
1114
|
};
|
|
1582
1115
|
const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1583
|
-
const contents = {
|
|
1584
|
-
name: "InternalServerErrorException",
|
|
1585
|
-
$fault: "server",
|
|
1586
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1587
|
-
message: undefined,
|
|
1588
|
-
};
|
|
1116
|
+
const contents = {};
|
|
1589
1117
|
const data = parsedOutput.body;
|
|
1590
1118
|
if (data.message !== undefined && data.message !== null) {
|
|
1591
1119
|
contents.message = smithy_client_1.expectString(data.message);
|
|
1592
1120
|
}
|
|
1593
|
-
|
|
1121
|
+
const exception = new models_0_1.InternalServerErrorException({
|
|
1122
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
|
+
...contents,
|
|
1124
|
+
});
|
|
1125
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1594
1126
|
};
|
|
1595
1127
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1596
|
-
const contents = {
|
|
1597
|
-
name: "NotFoundException",
|
|
1598
|
-
$fault: "client",
|
|
1599
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1600
|
-
message: undefined,
|
|
1601
|
-
};
|
|
1128
|
+
const contents = {};
|
|
1602
1129
|
const data = parsedOutput.body;
|
|
1603
1130
|
if (data.message !== undefined && data.message !== null) {
|
|
1604
1131
|
contents.message = smithy_client_1.expectString(data.message);
|
|
1605
1132
|
}
|
|
1606
|
-
|
|
1133
|
+
const exception = new models_0_1.NotFoundException({
|
|
1134
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1135
|
+
...contents,
|
|
1136
|
+
});
|
|
1137
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1607
1138
|
};
|
|
1608
1139
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1609
|
-
const contents = {
|
|
1610
|
-
name: "ServiceUnavailableException",
|
|
1611
|
-
$fault: "server",
|
|
1612
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1613
|
-
message: undefined,
|
|
1614
|
-
};
|
|
1140
|
+
const contents = {};
|
|
1615
1141
|
const data = parsedOutput.body;
|
|
1616
1142
|
if (data.message !== undefined && data.message !== null) {
|
|
1617
1143
|
contents.message = smithy_client_1.expectString(data.message);
|
|
1618
1144
|
}
|
|
1619
|
-
|
|
1145
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
1146
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
|
+
...contents,
|
|
1148
|
+
});
|
|
1149
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1620
1150
|
};
|
|
1621
1151
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1622
|
-
const contents = {
|
|
1623
|
-
name: "TooManyRequestsException",
|
|
1624
|
-
$fault: "client",
|
|
1625
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1626
|
-
message: undefined,
|
|
1627
|
-
};
|
|
1152
|
+
const contents = {};
|
|
1628
1153
|
const data = parsedOutput.body;
|
|
1629
1154
|
if (data.message !== undefined && data.message !== null) {
|
|
1630
1155
|
contents.message = smithy_client_1.expectString(data.message);
|
|
1631
1156
|
}
|
|
1632
|
-
|
|
1157
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
1158
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
|
+
...contents,
|
|
1160
|
+
});
|
|
1161
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1633
1162
|
};
|
|
1634
1163
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1635
|
-
const contents = {
|
|
1636
|
-
name: "UnauthorizedException",
|
|
1637
|
-
$fault: "client",
|
|
1638
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1639
|
-
message: undefined,
|
|
1640
|
-
};
|
|
1164
|
+
const contents = {};
|
|
1641
1165
|
const data = parsedOutput.body;
|
|
1642
1166
|
if (data.message !== undefined && data.message !== null) {
|
|
1643
1167
|
contents.message = smithy_client_1.expectString(data.message);
|
|
1644
1168
|
}
|
|
1645
|
-
|
|
1169
|
+
const exception = new models_0_1.UnauthorizedException({
|
|
1170
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1171
|
+
...contents,
|
|
1172
|
+
});
|
|
1173
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1646
1174
|
};
|
|
1647
1175
|
const serializeAws_restJson1__listOf__string = (input, context) => {
|
|
1648
1176
|
return input
|
|
@@ -1877,7 +1405,7 @@ const serializeAws_restJson1WorkerLogDelivery = (input, context) => {
|
|
|
1877
1405
|
};
|
|
1878
1406
|
};
|
|
1879
1407
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
1880
|
-
|
|
1408
|
+
const retVal = (output || [])
|
|
1881
1409
|
.filter((e) => e != null)
|
|
1882
1410
|
.map((entry) => {
|
|
1883
1411
|
if (entry === null) {
|
|
@@ -1885,9 +1413,10 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
1885
1413
|
}
|
|
1886
1414
|
return smithy_client_1.expectString(entry);
|
|
1887
1415
|
});
|
|
1416
|
+
return retVal;
|
|
1888
1417
|
};
|
|
1889
1418
|
const deserializeAws_restJson1__listOfConnectorSummary = (output, context) => {
|
|
1890
|
-
|
|
1419
|
+
const retVal = (output || [])
|
|
1891
1420
|
.filter((e) => e != null)
|
|
1892
1421
|
.map((entry) => {
|
|
1893
1422
|
if (entry === null) {
|
|
@@ -1895,9 +1424,10 @@ const deserializeAws_restJson1__listOfConnectorSummary = (output, context) => {
|
|
|
1895
1424
|
}
|
|
1896
1425
|
return deserializeAws_restJson1ConnectorSummary(entry, context);
|
|
1897
1426
|
});
|
|
1427
|
+
return retVal;
|
|
1898
1428
|
};
|
|
1899
1429
|
const deserializeAws_restJson1__listOfCustomPluginSummary = (output, context) => {
|
|
1900
|
-
|
|
1430
|
+
const retVal = (output || [])
|
|
1901
1431
|
.filter((e) => e != null)
|
|
1902
1432
|
.map((entry) => {
|
|
1903
1433
|
if (entry === null) {
|
|
@@ -1905,9 +1435,10 @@ const deserializeAws_restJson1__listOfCustomPluginSummary = (output, context) =>
|
|
|
1905
1435
|
}
|
|
1906
1436
|
return deserializeAws_restJson1CustomPluginSummary(entry, context);
|
|
1907
1437
|
});
|
|
1438
|
+
return retVal;
|
|
1908
1439
|
};
|
|
1909
1440
|
const deserializeAws_restJson1__listOfPluginDescription = (output, context) => {
|
|
1910
|
-
|
|
1441
|
+
const retVal = (output || [])
|
|
1911
1442
|
.filter((e) => e != null)
|
|
1912
1443
|
.map((entry) => {
|
|
1913
1444
|
if (entry === null) {
|
|
@@ -1915,9 +1446,10 @@ const deserializeAws_restJson1__listOfPluginDescription = (output, context) => {
|
|
|
1915
1446
|
}
|
|
1916
1447
|
return deserializeAws_restJson1PluginDescription(entry, context);
|
|
1917
1448
|
});
|
|
1449
|
+
return retVal;
|
|
1918
1450
|
};
|
|
1919
1451
|
const deserializeAws_restJson1__listOfWorkerConfigurationSummary = (output, context) => {
|
|
1920
|
-
|
|
1452
|
+
const retVal = (output || [])
|
|
1921
1453
|
.filter((e) => e != null)
|
|
1922
1454
|
.map((entry) => {
|
|
1923
1455
|
if (entry === null) {
|
|
@@ -1925,6 +1457,7 @@ const deserializeAws_restJson1__listOfWorkerConfigurationSummary = (output, cont
|
|
|
1925
1457
|
}
|
|
1926
1458
|
return deserializeAws_restJson1WorkerConfigurationSummary(entry, context);
|
|
1927
1459
|
});
|
|
1460
|
+
return retVal;
|
|
1928
1461
|
};
|
|
1929
1462
|
const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
1930
1463
|
return Object.entries(output).reduce((acc, [key, value]) => {
|