@aws-sdk/client-datasync 3.52.0 → 3.54.1
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/DataSyncServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +32 -3
- package/dist-cjs/protocols/Aws_json1_1.js +274 -903
- package/dist-es/index.js +1 -0
- package/dist-es/models/DataSyncServiceException.js +12 -0
- package/dist-es/models/models_0.js +28 -1
- package/dist-es/protocols/Aws_json1_1.js +675 -1060
- package/dist-types/DataSyncClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DataSyncServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +16 -9
- 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/DataSyncClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DataSyncServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +12 -9
- 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 +27 -27
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1CreateLocationSmbCommand = exports.deserializeAws_
|
|
|
4
4
|
exports.deserializeAws_json1_1UpdateTaskExecutionCommand = exports.deserializeAws_json1_1UpdateTaskCommand = exports.deserializeAws_json1_1UpdateLocationSmbCommand = exports.deserializeAws_json1_1UpdateLocationObjectStorageCommand = exports.deserializeAws_json1_1UpdateLocationNfsCommand = exports.deserializeAws_json1_1UpdateLocationHdfsCommand = exports.deserializeAws_json1_1UpdateAgentCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartTaskExecutionCommand = exports.deserializeAws_json1_1ListTasksCommand = exports.deserializeAws_json1_1ListTaskExecutionsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListLocationsCommand = exports.deserializeAws_json1_1ListAgentsCommand = exports.deserializeAws_json1_1DescribeTaskExecutionCommand = exports.deserializeAws_json1_1DescribeTaskCommand = exports.deserializeAws_json1_1DescribeLocationSmbCommand = exports.deserializeAws_json1_1DescribeLocationS3Command = exports.deserializeAws_json1_1DescribeLocationObjectStorageCommand = exports.deserializeAws_json1_1DescribeLocationNfsCommand = exports.deserializeAws_json1_1DescribeLocationHdfsCommand = exports.deserializeAws_json1_1DescribeLocationFsxWindowsCommand = exports.deserializeAws_json1_1DescribeLocationFsxLustreCommand = exports.deserializeAws_json1_1DescribeLocationEfsCommand = exports.deserializeAws_json1_1DescribeAgentCommand = exports.deserializeAws_json1_1DeleteTaskCommand = exports.deserializeAws_json1_1DeleteLocationCommand = exports.deserializeAws_json1_1DeleteAgentCommand = exports.deserializeAws_json1_1CreateTaskCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const DataSyncServiceException_1 = require("../models/DataSyncServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_json1_1CancelTaskExecutionCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -429,35 +431,19 @@ const deserializeAws_json1_1CancelTaskExecutionCommandError = async (output, con
|
|
|
429
431
|
switch (errorCode) {
|
|
430
432
|
case "InternalException":
|
|
431
433
|
case "com.amazonaws.datasync#InternalException":
|
|
432
|
-
|
|
433
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
434
|
-
name: errorCode,
|
|
435
|
-
$metadata: deserializeMetadata(output),
|
|
436
|
-
};
|
|
437
|
-
break;
|
|
434
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
438
435
|
case "InvalidRequestException":
|
|
439
436
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
440
|
-
|
|
441
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
442
|
-
name: errorCode,
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
};
|
|
445
|
-
break;
|
|
437
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
446
438
|
default:
|
|
447
439
|
const parsedBody = parsedOutput.body;
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
...parsedBody,
|
|
451
|
-
name: `${errorCode}`,
|
|
452
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
440
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
441
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
453
442
|
$fault: "client",
|
|
454
443
|
$metadata: deserializeMetadata(output),
|
|
455
|
-
};
|
|
444
|
+
});
|
|
445
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
456
446
|
}
|
|
457
|
-
const message = response.message || response.Message || errorCode;
|
|
458
|
-
response.message = message;
|
|
459
|
-
delete response.Message;
|
|
460
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
461
447
|
};
|
|
462
448
|
const deserializeAws_json1_1CreateAgentCommand = async (output, context) => {
|
|
463
449
|
if (output.statusCode >= 300) {
|
|
@@ -484,35 +470,19 @@ const deserializeAws_json1_1CreateAgentCommandError = async (output, context) =>
|
|
|
484
470
|
switch (errorCode) {
|
|
485
471
|
case "InternalException":
|
|
486
472
|
case "com.amazonaws.datasync#InternalException":
|
|
487
|
-
|
|
488
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
489
|
-
name: errorCode,
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
};
|
|
492
|
-
break;
|
|
473
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
493
474
|
case "InvalidRequestException":
|
|
494
475
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
495
|
-
|
|
496
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
497
|
-
name: errorCode,
|
|
498
|
-
$metadata: deserializeMetadata(output),
|
|
499
|
-
};
|
|
500
|
-
break;
|
|
476
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
501
477
|
default:
|
|
502
478
|
const parsedBody = parsedOutput.body;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
...parsedBody,
|
|
506
|
-
name: `${errorCode}`,
|
|
507
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
479
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
480
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
508
481
|
$fault: "client",
|
|
509
482
|
$metadata: deserializeMetadata(output),
|
|
510
|
-
};
|
|
483
|
+
});
|
|
484
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
511
485
|
}
|
|
512
|
-
const message = response.message || response.Message || errorCode;
|
|
513
|
-
response.message = message;
|
|
514
|
-
delete response.Message;
|
|
515
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
516
486
|
};
|
|
517
487
|
const deserializeAws_json1_1CreateLocationEfsCommand = async (output, context) => {
|
|
518
488
|
if (output.statusCode >= 300) {
|
|
@@ -539,35 +509,19 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, conte
|
|
|
539
509
|
switch (errorCode) {
|
|
540
510
|
case "InternalException":
|
|
541
511
|
case "com.amazonaws.datasync#InternalException":
|
|
542
|
-
|
|
543
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
544
|
-
name: errorCode,
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
};
|
|
547
|
-
break;
|
|
512
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
548
513
|
case "InvalidRequestException":
|
|
549
514
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
550
|
-
|
|
551
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
552
|
-
name: errorCode,
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
};
|
|
555
|
-
break;
|
|
515
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
556
516
|
default:
|
|
557
517
|
const parsedBody = parsedOutput.body;
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
...parsedBody,
|
|
561
|
-
name: `${errorCode}`,
|
|
562
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
518
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
519
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
563
520
|
$fault: "client",
|
|
564
521
|
$metadata: deserializeMetadata(output),
|
|
565
|
-
};
|
|
522
|
+
});
|
|
523
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
566
524
|
}
|
|
567
|
-
const message = response.message || response.Message || errorCode;
|
|
568
|
-
response.message = message;
|
|
569
|
-
delete response.Message;
|
|
570
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
571
525
|
};
|
|
572
526
|
const deserializeAws_json1_1CreateLocationFsxLustreCommand = async (output, context) => {
|
|
573
527
|
if (output.statusCode >= 300) {
|
|
@@ -594,35 +548,19 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
|
|
|
594
548
|
switch (errorCode) {
|
|
595
549
|
case "InternalException":
|
|
596
550
|
case "com.amazonaws.datasync#InternalException":
|
|
597
|
-
|
|
598
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
599
|
-
name: errorCode,
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
};
|
|
602
|
-
break;
|
|
551
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
603
552
|
case "InvalidRequestException":
|
|
604
553
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
605
|
-
|
|
606
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
607
|
-
name: errorCode,
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
};
|
|
610
|
-
break;
|
|
554
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
611
555
|
default:
|
|
612
556
|
const parsedBody = parsedOutput.body;
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
...parsedBody,
|
|
616
|
-
name: `${errorCode}`,
|
|
617
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
557
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
558
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
618
559
|
$fault: "client",
|
|
619
560
|
$metadata: deserializeMetadata(output),
|
|
620
|
-
};
|
|
561
|
+
});
|
|
562
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
621
563
|
}
|
|
622
|
-
const message = response.message || response.Message || errorCode;
|
|
623
|
-
response.message = message;
|
|
624
|
-
delete response.Message;
|
|
625
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
626
564
|
};
|
|
627
565
|
const deserializeAws_json1_1CreateLocationFsxWindowsCommand = async (output, context) => {
|
|
628
566
|
if (output.statusCode >= 300) {
|
|
@@ -649,35 +587,19 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output
|
|
|
649
587
|
switch (errorCode) {
|
|
650
588
|
case "InternalException":
|
|
651
589
|
case "com.amazonaws.datasync#InternalException":
|
|
652
|
-
|
|
653
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
654
|
-
name: errorCode,
|
|
655
|
-
$metadata: deserializeMetadata(output),
|
|
656
|
-
};
|
|
657
|
-
break;
|
|
590
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
658
591
|
case "InvalidRequestException":
|
|
659
592
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
660
|
-
|
|
661
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
662
|
-
name: errorCode,
|
|
663
|
-
$metadata: deserializeMetadata(output),
|
|
664
|
-
};
|
|
665
|
-
break;
|
|
593
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
666
594
|
default:
|
|
667
595
|
const parsedBody = parsedOutput.body;
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
...parsedBody,
|
|
671
|
-
name: `${errorCode}`,
|
|
672
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
596
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
597
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
673
598
|
$fault: "client",
|
|
674
599
|
$metadata: deserializeMetadata(output),
|
|
675
|
-
};
|
|
600
|
+
});
|
|
601
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
676
602
|
}
|
|
677
|
-
const message = response.message || response.Message || errorCode;
|
|
678
|
-
response.message = message;
|
|
679
|
-
delete response.Message;
|
|
680
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
681
603
|
};
|
|
682
604
|
const deserializeAws_json1_1CreateLocationHdfsCommand = async (output, context) => {
|
|
683
605
|
if (output.statusCode >= 300) {
|
|
@@ -704,35 +626,19 @@ const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, cont
|
|
|
704
626
|
switch (errorCode) {
|
|
705
627
|
case "InternalException":
|
|
706
628
|
case "com.amazonaws.datasync#InternalException":
|
|
707
|
-
|
|
708
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
709
|
-
name: errorCode,
|
|
710
|
-
$metadata: deserializeMetadata(output),
|
|
711
|
-
};
|
|
712
|
-
break;
|
|
629
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
713
630
|
case "InvalidRequestException":
|
|
714
631
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
715
|
-
|
|
716
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
717
|
-
name: errorCode,
|
|
718
|
-
$metadata: deserializeMetadata(output),
|
|
719
|
-
};
|
|
720
|
-
break;
|
|
632
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
721
633
|
default:
|
|
722
634
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
...parsedBody,
|
|
726
|
-
name: `${errorCode}`,
|
|
727
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
635
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
636
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
728
637
|
$fault: "client",
|
|
729
638
|
$metadata: deserializeMetadata(output),
|
|
730
|
-
};
|
|
639
|
+
});
|
|
640
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
731
641
|
}
|
|
732
|
-
const message = response.message || response.Message || errorCode;
|
|
733
|
-
response.message = message;
|
|
734
|
-
delete response.Message;
|
|
735
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
736
642
|
};
|
|
737
643
|
const deserializeAws_json1_1CreateLocationNfsCommand = async (output, context) => {
|
|
738
644
|
if (output.statusCode >= 300) {
|
|
@@ -759,35 +665,19 @@ const deserializeAws_json1_1CreateLocationNfsCommandError = async (output, conte
|
|
|
759
665
|
switch (errorCode) {
|
|
760
666
|
case "InternalException":
|
|
761
667
|
case "com.amazonaws.datasync#InternalException":
|
|
762
|
-
|
|
763
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
764
|
-
name: errorCode,
|
|
765
|
-
$metadata: deserializeMetadata(output),
|
|
766
|
-
};
|
|
767
|
-
break;
|
|
668
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
768
669
|
case "InvalidRequestException":
|
|
769
670
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
770
|
-
|
|
771
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
772
|
-
name: errorCode,
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
};
|
|
775
|
-
break;
|
|
671
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
776
672
|
default:
|
|
777
673
|
const parsedBody = parsedOutput.body;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
...parsedBody,
|
|
781
|
-
name: `${errorCode}`,
|
|
782
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
674
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
675
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
783
676
|
$fault: "client",
|
|
784
677
|
$metadata: deserializeMetadata(output),
|
|
785
|
-
};
|
|
678
|
+
});
|
|
679
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
786
680
|
}
|
|
787
|
-
const message = response.message || response.Message || errorCode;
|
|
788
|
-
response.message = message;
|
|
789
|
-
delete response.Message;
|
|
790
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
791
681
|
};
|
|
792
682
|
const deserializeAws_json1_1CreateLocationObjectStorageCommand = async (output, context) => {
|
|
793
683
|
if (output.statusCode >= 300) {
|
|
@@ -814,35 +704,19 @@ const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (out
|
|
|
814
704
|
switch (errorCode) {
|
|
815
705
|
case "InternalException":
|
|
816
706
|
case "com.amazonaws.datasync#InternalException":
|
|
817
|
-
|
|
818
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
819
|
-
name: errorCode,
|
|
820
|
-
$metadata: deserializeMetadata(output),
|
|
821
|
-
};
|
|
822
|
-
break;
|
|
707
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
823
708
|
case "InvalidRequestException":
|
|
824
709
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
825
|
-
|
|
826
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
827
|
-
name: errorCode,
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
};
|
|
830
|
-
break;
|
|
710
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
831
711
|
default:
|
|
832
712
|
const parsedBody = parsedOutput.body;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
...parsedBody,
|
|
836
|
-
name: `${errorCode}`,
|
|
837
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
713
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
714
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
838
715
|
$fault: "client",
|
|
839
716
|
$metadata: deserializeMetadata(output),
|
|
840
|
-
};
|
|
717
|
+
});
|
|
718
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
841
719
|
}
|
|
842
|
-
const message = response.message || response.Message || errorCode;
|
|
843
|
-
response.message = message;
|
|
844
|
-
delete response.Message;
|
|
845
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
846
720
|
};
|
|
847
721
|
const deserializeAws_json1_1CreateLocationS3Command = async (output, context) => {
|
|
848
722
|
if (output.statusCode >= 300) {
|
|
@@ -869,35 +743,19 @@ const deserializeAws_json1_1CreateLocationS3CommandError = async (output, contex
|
|
|
869
743
|
switch (errorCode) {
|
|
870
744
|
case "InternalException":
|
|
871
745
|
case "com.amazonaws.datasync#InternalException":
|
|
872
|
-
|
|
873
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
874
|
-
name: errorCode,
|
|
875
|
-
$metadata: deserializeMetadata(output),
|
|
876
|
-
};
|
|
877
|
-
break;
|
|
746
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
878
747
|
case "InvalidRequestException":
|
|
879
748
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
880
|
-
|
|
881
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
882
|
-
name: errorCode,
|
|
883
|
-
$metadata: deserializeMetadata(output),
|
|
884
|
-
};
|
|
885
|
-
break;
|
|
749
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
886
750
|
default:
|
|
887
751
|
const parsedBody = parsedOutput.body;
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
...parsedBody,
|
|
891
|
-
name: `${errorCode}`,
|
|
892
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
752
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
753
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
893
754
|
$fault: "client",
|
|
894
755
|
$metadata: deserializeMetadata(output),
|
|
895
|
-
};
|
|
756
|
+
});
|
|
757
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
896
758
|
}
|
|
897
|
-
const message = response.message || response.Message || errorCode;
|
|
898
|
-
response.message = message;
|
|
899
|
-
delete response.Message;
|
|
900
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
901
759
|
};
|
|
902
760
|
const deserializeAws_json1_1CreateLocationSmbCommand = async (output, context) => {
|
|
903
761
|
if (output.statusCode >= 300) {
|
|
@@ -924,35 +782,19 @@ const deserializeAws_json1_1CreateLocationSmbCommandError = async (output, conte
|
|
|
924
782
|
switch (errorCode) {
|
|
925
783
|
case "InternalException":
|
|
926
784
|
case "com.amazonaws.datasync#InternalException":
|
|
927
|
-
|
|
928
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
929
|
-
name: errorCode,
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
};
|
|
932
|
-
break;
|
|
785
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
933
786
|
case "InvalidRequestException":
|
|
934
787
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
935
|
-
|
|
936
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
937
|
-
name: errorCode,
|
|
938
|
-
$metadata: deserializeMetadata(output),
|
|
939
|
-
};
|
|
940
|
-
break;
|
|
788
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
941
789
|
default:
|
|
942
790
|
const parsedBody = parsedOutput.body;
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
...parsedBody,
|
|
946
|
-
name: `${errorCode}`,
|
|
947
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
791
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
792
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
948
793
|
$fault: "client",
|
|
949
794
|
$metadata: deserializeMetadata(output),
|
|
950
|
-
};
|
|
795
|
+
});
|
|
796
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
951
797
|
}
|
|
952
|
-
const message = response.message || response.Message || errorCode;
|
|
953
|
-
response.message = message;
|
|
954
|
-
delete response.Message;
|
|
955
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
956
798
|
};
|
|
957
799
|
const deserializeAws_json1_1CreateTaskCommand = async (output, context) => {
|
|
958
800
|
if (output.statusCode >= 300) {
|
|
@@ -979,35 +821,19 @@ const deserializeAws_json1_1CreateTaskCommandError = async (output, context) =>
|
|
|
979
821
|
switch (errorCode) {
|
|
980
822
|
case "InternalException":
|
|
981
823
|
case "com.amazonaws.datasync#InternalException":
|
|
982
|
-
|
|
983
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
984
|
-
name: errorCode,
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
};
|
|
987
|
-
break;
|
|
824
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
988
825
|
case "InvalidRequestException":
|
|
989
826
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
990
|
-
|
|
991
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
992
|
-
name: errorCode,
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
};
|
|
995
|
-
break;
|
|
827
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
996
828
|
default:
|
|
997
829
|
const parsedBody = parsedOutput.body;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
...parsedBody,
|
|
1001
|
-
name: `${errorCode}`,
|
|
1002
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
830
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
831
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1003
832
|
$fault: "client",
|
|
1004
833
|
$metadata: deserializeMetadata(output),
|
|
1005
|
-
};
|
|
834
|
+
});
|
|
835
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1006
836
|
}
|
|
1007
|
-
const message = response.message || response.Message || errorCode;
|
|
1008
|
-
response.message = message;
|
|
1009
|
-
delete response.Message;
|
|
1010
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1011
837
|
};
|
|
1012
838
|
const deserializeAws_json1_1DeleteAgentCommand = async (output, context) => {
|
|
1013
839
|
if (output.statusCode >= 300) {
|
|
@@ -1034,35 +860,19 @@ const deserializeAws_json1_1DeleteAgentCommandError = async (output, context) =>
|
|
|
1034
860
|
switch (errorCode) {
|
|
1035
861
|
case "InternalException":
|
|
1036
862
|
case "com.amazonaws.datasync#InternalException":
|
|
1037
|
-
|
|
1038
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1039
|
-
name: errorCode,
|
|
1040
|
-
$metadata: deserializeMetadata(output),
|
|
1041
|
-
};
|
|
1042
|
-
break;
|
|
863
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1043
864
|
case "InvalidRequestException":
|
|
1044
865
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1045
|
-
|
|
1046
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1047
|
-
name: errorCode,
|
|
1048
|
-
$metadata: deserializeMetadata(output),
|
|
1049
|
-
};
|
|
1050
|
-
break;
|
|
866
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1051
867
|
default:
|
|
1052
868
|
const parsedBody = parsedOutput.body;
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
...parsedBody,
|
|
1056
|
-
name: `${errorCode}`,
|
|
1057
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
869
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
870
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1058
871
|
$fault: "client",
|
|
1059
872
|
$metadata: deserializeMetadata(output),
|
|
1060
|
-
};
|
|
873
|
+
});
|
|
874
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1061
875
|
}
|
|
1062
|
-
const message = response.message || response.Message || errorCode;
|
|
1063
|
-
response.message = message;
|
|
1064
|
-
delete response.Message;
|
|
1065
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1066
876
|
};
|
|
1067
877
|
const deserializeAws_json1_1DeleteLocationCommand = async (output, context) => {
|
|
1068
878
|
if (output.statusCode >= 300) {
|
|
@@ -1089,35 +899,19 @@ const deserializeAws_json1_1DeleteLocationCommandError = async (output, context)
|
|
|
1089
899
|
switch (errorCode) {
|
|
1090
900
|
case "InternalException":
|
|
1091
901
|
case "com.amazonaws.datasync#InternalException":
|
|
1092
|
-
|
|
1093
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1094
|
-
name: errorCode,
|
|
1095
|
-
$metadata: deserializeMetadata(output),
|
|
1096
|
-
};
|
|
1097
|
-
break;
|
|
902
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1098
903
|
case "InvalidRequestException":
|
|
1099
904
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1100
|
-
|
|
1101
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1102
|
-
name: errorCode,
|
|
1103
|
-
$metadata: deserializeMetadata(output),
|
|
1104
|
-
};
|
|
1105
|
-
break;
|
|
905
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1106
906
|
default:
|
|
1107
907
|
const parsedBody = parsedOutput.body;
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
...parsedBody,
|
|
1111
|
-
name: `${errorCode}`,
|
|
1112
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
908
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
909
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1113
910
|
$fault: "client",
|
|
1114
911
|
$metadata: deserializeMetadata(output),
|
|
1115
|
-
};
|
|
912
|
+
});
|
|
913
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1116
914
|
}
|
|
1117
|
-
const message = response.message || response.Message || errorCode;
|
|
1118
|
-
response.message = message;
|
|
1119
|
-
delete response.Message;
|
|
1120
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1121
915
|
};
|
|
1122
916
|
const deserializeAws_json1_1DeleteTaskCommand = async (output, context) => {
|
|
1123
917
|
if (output.statusCode >= 300) {
|
|
@@ -1144,35 +938,19 @@ const deserializeAws_json1_1DeleteTaskCommandError = async (output, context) =>
|
|
|
1144
938
|
switch (errorCode) {
|
|
1145
939
|
case "InternalException":
|
|
1146
940
|
case "com.amazonaws.datasync#InternalException":
|
|
1147
|
-
|
|
1148
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1149
|
-
name: errorCode,
|
|
1150
|
-
$metadata: deserializeMetadata(output),
|
|
1151
|
-
};
|
|
1152
|
-
break;
|
|
941
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1153
942
|
case "InvalidRequestException":
|
|
1154
943
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1155
|
-
|
|
1156
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1157
|
-
name: errorCode,
|
|
1158
|
-
$metadata: deserializeMetadata(output),
|
|
1159
|
-
};
|
|
1160
|
-
break;
|
|
944
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1161
945
|
default:
|
|
1162
946
|
const parsedBody = parsedOutput.body;
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
...parsedBody,
|
|
1166
|
-
name: `${errorCode}`,
|
|
1167
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
947
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1168
949
|
$fault: "client",
|
|
1169
950
|
$metadata: deserializeMetadata(output),
|
|
1170
|
-
};
|
|
951
|
+
});
|
|
952
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1171
953
|
}
|
|
1172
|
-
const message = response.message || response.Message || errorCode;
|
|
1173
|
-
response.message = message;
|
|
1174
|
-
delete response.Message;
|
|
1175
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1176
954
|
};
|
|
1177
955
|
const deserializeAws_json1_1DescribeAgentCommand = async (output, context) => {
|
|
1178
956
|
if (output.statusCode >= 300) {
|
|
@@ -1199,35 +977,19 @@ const deserializeAws_json1_1DescribeAgentCommandError = async (output, context)
|
|
|
1199
977
|
switch (errorCode) {
|
|
1200
978
|
case "InternalException":
|
|
1201
979
|
case "com.amazonaws.datasync#InternalException":
|
|
1202
|
-
|
|
1203
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1204
|
-
name: errorCode,
|
|
1205
|
-
$metadata: deserializeMetadata(output),
|
|
1206
|
-
};
|
|
1207
|
-
break;
|
|
980
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1208
981
|
case "InvalidRequestException":
|
|
1209
982
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1210
|
-
|
|
1211
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1212
|
-
name: errorCode,
|
|
1213
|
-
$metadata: deserializeMetadata(output),
|
|
1214
|
-
};
|
|
1215
|
-
break;
|
|
983
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1216
984
|
default:
|
|
1217
985
|
const parsedBody = parsedOutput.body;
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
...parsedBody,
|
|
1221
|
-
name: `${errorCode}`,
|
|
1222
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
986
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
987
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1223
988
|
$fault: "client",
|
|
1224
989
|
$metadata: deserializeMetadata(output),
|
|
1225
|
-
};
|
|
990
|
+
});
|
|
991
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1226
992
|
}
|
|
1227
|
-
const message = response.message || response.Message || errorCode;
|
|
1228
|
-
response.message = message;
|
|
1229
|
-
delete response.Message;
|
|
1230
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1231
993
|
};
|
|
1232
994
|
const deserializeAws_json1_1DescribeLocationEfsCommand = async (output, context) => {
|
|
1233
995
|
if (output.statusCode >= 300) {
|
|
@@ -1254,35 +1016,19 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, con
|
|
|
1254
1016
|
switch (errorCode) {
|
|
1255
1017
|
case "InternalException":
|
|
1256
1018
|
case "com.amazonaws.datasync#InternalException":
|
|
1257
|
-
|
|
1258
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
1019
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1263
1020
|
case "InvalidRequestException":
|
|
1264
1021
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1265
|
-
|
|
1266
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1267
|
-
name: errorCode,
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
};
|
|
1270
|
-
break;
|
|
1022
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1271
1023
|
default:
|
|
1272
1024
|
const parsedBody = parsedOutput.body;
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
...parsedBody,
|
|
1276
|
-
name: `${errorCode}`,
|
|
1277
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1025
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1026
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1278
1027
|
$fault: "client",
|
|
1279
1028
|
$metadata: deserializeMetadata(output),
|
|
1280
|
-
};
|
|
1029
|
+
});
|
|
1030
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1281
1031
|
}
|
|
1282
|
-
const message = response.message || response.Message || errorCode;
|
|
1283
|
-
response.message = message;
|
|
1284
|
-
delete response.Message;
|
|
1285
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1286
1032
|
};
|
|
1287
1033
|
const deserializeAws_json1_1DescribeLocationFsxLustreCommand = async (output, context) => {
|
|
1288
1034
|
if (output.statusCode >= 300) {
|
|
@@ -1309,35 +1055,19 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
|
|
|
1309
1055
|
switch (errorCode) {
|
|
1310
1056
|
case "InternalException":
|
|
1311
1057
|
case "com.amazonaws.datasync#InternalException":
|
|
1312
|
-
|
|
1313
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1314
|
-
name: errorCode,
|
|
1315
|
-
$metadata: deserializeMetadata(output),
|
|
1316
|
-
};
|
|
1317
|
-
break;
|
|
1058
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1318
1059
|
case "InvalidRequestException":
|
|
1319
1060
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1320
|
-
|
|
1321
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1322
|
-
name: errorCode,
|
|
1323
|
-
$metadata: deserializeMetadata(output),
|
|
1324
|
-
};
|
|
1325
|
-
break;
|
|
1061
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1326
1062
|
default:
|
|
1327
1063
|
const parsedBody = parsedOutput.body;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
...parsedBody,
|
|
1331
|
-
name: `${errorCode}`,
|
|
1332
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1064
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1065
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1333
1066
|
$fault: "client",
|
|
1334
1067
|
$metadata: deserializeMetadata(output),
|
|
1335
|
-
};
|
|
1068
|
+
});
|
|
1069
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1336
1070
|
}
|
|
1337
|
-
const message = response.message || response.Message || errorCode;
|
|
1338
|
-
response.message = message;
|
|
1339
|
-
delete response.Message;
|
|
1340
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1341
1071
|
};
|
|
1342
1072
|
const deserializeAws_json1_1DescribeLocationFsxWindowsCommand = async (output, context) => {
|
|
1343
1073
|
if (output.statusCode >= 300) {
|
|
@@ -1364,35 +1094,19 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (outp
|
|
|
1364
1094
|
switch (errorCode) {
|
|
1365
1095
|
case "InternalException":
|
|
1366
1096
|
case "com.amazonaws.datasync#InternalException":
|
|
1367
|
-
|
|
1368
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1369
|
-
name: errorCode,
|
|
1370
|
-
$metadata: deserializeMetadata(output),
|
|
1371
|
-
};
|
|
1372
|
-
break;
|
|
1097
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1373
1098
|
case "InvalidRequestException":
|
|
1374
1099
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1375
|
-
|
|
1376
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1377
|
-
name: errorCode,
|
|
1378
|
-
$metadata: deserializeMetadata(output),
|
|
1379
|
-
};
|
|
1380
|
-
break;
|
|
1100
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1381
1101
|
default:
|
|
1382
1102
|
const parsedBody = parsedOutput.body;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
...parsedBody,
|
|
1386
|
-
name: `${errorCode}`,
|
|
1387
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1103
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1104
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1388
1105
|
$fault: "client",
|
|
1389
1106
|
$metadata: deserializeMetadata(output),
|
|
1390
|
-
};
|
|
1107
|
+
});
|
|
1108
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1391
1109
|
}
|
|
1392
|
-
const message = response.message || response.Message || errorCode;
|
|
1393
|
-
response.message = message;
|
|
1394
|
-
delete response.Message;
|
|
1395
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1396
1110
|
};
|
|
1397
1111
|
const deserializeAws_json1_1DescribeLocationHdfsCommand = async (output, context) => {
|
|
1398
1112
|
if (output.statusCode >= 300) {
|
|
@@ -1419,35 +1133,19 @@ const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, co
|
|
|
1419
1133
|
switch (errorCode) {
|
|
1420
1134
|
case "InternalException":
|
|
1421
1135
|
case "com.amazonaws.datasync#InternalException":
|
|
1422
|
-
|
|
1423
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1424
|
-
name: errorCode,
|
|
1425
|
-
$metadata: deserializeMetadata(output),
|
|
1426
|
-
};
|
|
1427
|
-
break;
|
|
1136
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1428
1137
|
case "InvalidRequestException":
|
|
1429
1138
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1430
|
-
|
|
1431
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1432
|
-
name: errorCode,
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
};
|
|
1435
|
-
break;
|
|
1139
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1436
1140
|
default:
|
|
1437
1141
|
const parsedBody = parsedOutput.body;
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
...parsedBody,
|
|
1441
|
-
name: `${errorCode}`,
|
|
1442
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1142
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1143
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1443
1144
|
$fault: "client",
|
|
1444
1145
|
$metadata: deserializeMetadata(output),
|
|
1445
|
-
};
|
|
1146
|
+
});
|
|
1147
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1446
1148
|
}
|
|
1447
|
-
const message = response.message || response.Message || errorCode;
|
|
1448
|
-
response.message = message;
|
|
1449
|
-
delete response.Message;
|
|
1450
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1451
1149
|
};
|
|
1452
1150
|
const deserializeAws_json1_1DescribeLocationNfsCommand = async (output, context) => {
|
|
1453
1151
|
if (output.statusCode >= 300) {
|
|
@@ -1474,35 +1172,19 @@ const deserializeAws_json1_1DescribeLocationNfsCommandError = async (output, con
|
|
|
1474
1172
|
switch (errorCode) {
|
|
1475
1173
|
case "InternalException":
|
|
1476
1174
|
case "com.amazonaws.datasync#InternalException":
|
|
1477
|
-
|
|
1478
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1479
|
-
name: errorCode,
|
|
1480
|
-
$metadata: deserializeMetadata(output),
|
|
1481
|
-
};
|
|
1482
|
-
break;
|
|
1175
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1483
1176
|
case "InvalidRequestException":
|
|
1484
1177
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1485
|
-
|
|
1486
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1487
|
-
name: errorCode,
|
|
1488
|
-
$metadata: deserializeMetadata(output),
|
|
1489
|
-
};
|
|
1490
|
-
break;
|
|
1178
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1491
1179
|
default:
|
|
1492
1180
|
const parsedBody = parsedOutput.body;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
...parsedBody,
|
|
1496
|
-
name: `${errorCode}`,
|
|
1497
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1181
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1182
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1498
1183
|
$fault: "client",
|
|
1499
1184
|
$metadata: deserializeMetadata(output),
|
|
1500
|
-
};
|
|
1185
|
+
});
|
|
1186
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1501
1187
|
}
|
|
1502
|
-
const message = response.message || response.Message || errorCode;
|
|
1503
|
-
response.message = message;
|
|
1504
|
-
delete response.Message;
|
|
1505
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1506
1188
|
};
|
|
1507
1189
|
const deserializeAws_json1_1DescribeLocationObjectStorageCommand = async (output, context) => {
|
|
1508
1190
|
if (output.statusCode >= 300) {
|
|
@@ -1529,35 +1211,19 @@ const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (o
|
|
|
1529
1211
|
switch (errorCode) {
|
|
1530
1212
|
case "InternalException":
|
|
1531
1213
|
case "com.amazonaws.datasync#InternalException":
|
|
1532
|
-
|
|
1533
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1534
|
-
name: errorCode,
|
|
1535
|
-
$metadata: deserializeMetadata(output),
|
|
1536
|
-
};
|
|
1537
|
-
break;
|
|
1214
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1538
1215
|
case "InvalidRequestException":
|
|
1539
1216
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1540
|
-
|
|
1541
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1542
|
-
name: errorCode,
|
|
1543
|
-
$metadata: deserializeMetadata(output),
|
|
1544
|
-
};
|
|
1545
|
-
break;
|
|
1217
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1546
1218
|
default:
|
|
1547
1219
|
const parsedBody = parsedOutput.body;
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
...parsedBody,
|
|
1551
|
-
name: `${errorCode}`,
|
|
1552
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1220
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1221
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1553
1222
|
$fault: "client",
|
|
1554
1223
|
$metadata: deserializeMetadata(output),
|
|
1555
|
-
};
|
|
1224
|
+
});
|
|
1225
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1556
1226
|
}
|
|
1557
|
-
const message = response.message || response.Message || errorCode;
|
|
1558
|
-
response.message = message;
|
|
1559
|
-
delete response.Message;
|
|
1560
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1561
1227
|
};
|
|
1562
1228
|
const deserializeAws_json1_1DescribeLocationS3Command = async (output, context) => {
|
|
1563
1229
|
if (output.statusCode >= 300) {
|
|
@@ -1584,35 +1250,19 @@ const deserializeAws_json1_1DescribeLocationS3CommandError = async (output, cont
|
|
|
1584
1250
|
switch (errorCode) {
|
|
1585
1251
|
case "InternalException":
|
|
1586
1252
|
case "com.amazonaws.datasync#InternalException":
|
|
1587
|
-
|
|
1588
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1589
|
-
name: errorCode,
|
|
1590
|
-
$metadata: deserializeMetadata(output),
|
|
1591
|
-
};
|
|
1592
|
-
break;
|
|
1253
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1593
1254
|
case "InvalidRequestException":
|
|
1594
1255
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1595
|
-
|
|
1596
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1597
|
-
name: errorCode,
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
};
|
|
1600
|
-
break;
|
|
1256
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1601
1257
|
default:
|
|
1602
1258
|
const parsedBody = parsedOutput.body;
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
...parsedBody,
|
|
1606
|
-
name: `${errorCode}`,
|
|
1607
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1259
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1260
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1608
1261
|
$fault: "client",
|
|
1609
1262
|
$metadata: deserializeMetadata(output),
|
|
1610
|
-
};
|
|
1263
|
+
});
|
|
1264
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1611
1265
|
}
|
|
1612
|
-
const message = response.message || response.Message || errorCode;
|
|
1613
|
-
response.message = message;
|
|
1614
|
-
delete response.Message;
|
|
1615
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1616
1266
|
};
|
|
1617
1267
|
const deserializeAws_json1_1DescribeLocationSmbCommand = async (output, context) => {
|
|
1618
1268
|
if (output.statusCode >= 300) {
|
|
@@ -1639,35 +1289,19 @@ const deserializeAws_json1_1DescribeLocationSmbCommandError = async (output, con
|
|
|
1639
1289
|
switch (errorCode) {
|
|
1640
1290
|
case "InternalException":
|
|
1641
1291
|
case "com.amazonaws.datasync#InternalException":
|
|
1642
|
-
|
|
1643
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1644
|
-
name: errorCode,
|
|
1645
|
-
$metadata: deserializeMetadata(output),
|
|
1646
|
-
};
|
|
1647
|
-
break;
|
|
1292
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1648
1293
|
case "InvalidRequestException":
|
|
1649
1294
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1650
|
-
|
|
1651
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1652
|
-
name: errorCode,
|
|
1653
|
-
$metadata: deserializeMetadata(output),
|
|
1654
|
-
};
|
|
1655
|
-
break;
|
|
1295
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1656
1296
|
default:
|
|
1657
1297
|
const parsedBody = parsedOutput.body;
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
...parsedBody,
|
|
1661
|
-
name: `${errorCode}`,
|
|
1662
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1298
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1299
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1663
1300
|
$fault: "client",
|
|
1664
1301
|
$metadata: deserializeMetadata(output),
|
|
1665
|
-
};
|
|
1302
|
+
});
|
|
1303
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1666
1304
|
}
|
|
1667
|
-
const message = response.message || response.Message || errorCode;
|
|
1668
|
-
response.message = message;
|
|
1669
|
-
delete response.Message;
|
|
1670
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1671
1305
|
};
|
|
1672
1306
|
const deserializeAws_json1_1DescribeTaskCommand = async (output, context) => {
|
|
1673
1307
|
if (output.statusCode >= 300) {
|
|
@@ -1694,35 +1328,19 @@ const deserializeAws_json1_1DescribeTaskCommandError = async (output, context) =
|
|
|
1694
1328
|
switch (errorCode) {
|
|
1695
1329
|
case "InternalException":
|
|
1696
1330
|
case "com.amazonaws.datasync#InternalException":
|
|
1697
|
-
|
|
1698
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1699
|
-
name: errorCode,
|
|
1700
|
-
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1702
|
-
break;
|
|
1331
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1703
1332
|
case "InvalidRequestException":
|
|
1704
1333
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1705
|
-
|
|
1706
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1707
|
-
name: errorCode,
|
|
1708
|
-
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1710
|
-
break;
|
|
1334
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1711
1335
|
default:
|
|
1712
1336
|
const parsedBody = parsedOutput.body;
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
...parsedBody,
|
|
1716
|
-
name: `${errorCode}`,
|
|
1717
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1337
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1338
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1718
1339
|
$fault: "client",
|
|
1719
1340
|
$metadata: deserializeMetadata(output),
|
|
1720
|
-
};
|
|
1341
|
+
});
|
|
1342
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1721
1343
|
}
|
|
1722
|
-
const message = response.message || response.Message || errorCode;
|
|
1723
|
-
response.message = message;
|
|
1724
|
-
delete response.Message;
|
|
1725
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1726
1344
|
};
|
|
1727
1345
|
const deserializeAws_json1_1DescribeTaskExecutionCommand = async (output, context) => {
|
|
1728
1346
|
if (output.statusCode >= 300) {
|
|
@@ -1749,35 +1367,19 @@ const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (output, c
|
|
|
1749
1367
|
switch (errorCode) {
|
|
1750
1368
|
case "InternalException":
|
|
1751
1369
|
case "com.amazonaws.datasync#InternalException":
|
|
1752
|
-
|
|
1753
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1754
|
-
name: errorCode,
|
|
1755
|
-
$metadata: deserializeMetadata(output),
|
|
1756
|
-
};
|
|
1757
|
-
break;
|
|
1370
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1758
1371
|
case "InvalidRequestException":
|
|
1759
1372
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1760
|
-
|
|
1761
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1762
|
-
name: errorCode,
|
|
1763
|
-
$metadata: deserializeMetadata(output),
|
|
1764
|
-
};
|
|
1765
|
-
break;
|
|
1373
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1766
1374
|
default:
|
|
1767
1375
|
const parsedBody = parsedOutput.body;
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
...parsedBody,
|
|
1771
|
-
name: `${errorCode}`,
|
|
1772
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1376
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1377
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1773
1378
|
$fault: "client",
|
|
1774
1379
|
$metadata: deserializeMetadata(output),
|
|
1775
|
-
};
|
|
1380
|
+
});
|
|
1381
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1776
1382
|
}
|
|
1777
|
-
const message = response.message || response.Message || errorCode;
|
|
1778
|
-
response.message = message;
|
|
1779
|
-
delete response.Message;
|
|
1780
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1781
1383
|
};
|
|
1782
1384
|
const deserializeAws_json1_1ListAgentsCommand = async (output, context) => {
|
|
1783
1385
|
if (output.statusCode >= 300) {
|
|
@@ -1804,35 +1406,19 @@ const deserializeAws_json1_1ListAgentsCommandError = async (output, context) =>
|
|
|
1804
1406
|
switch (errorCode) {
|
|
1805
1407
|
case "InternalException":
|
|
1806
1408
|
case "com.amazonaws.datasync#InternalException":
|
|
1807
|
-
|
|
1808
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1809
|
-
name: errorCode,
|
|
1810
|
-
$metadata: deserializeMetadata(output),
|
|
1811
|
-
};
|
|
1812
|
-
break;
|
|
1409
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1813
1410
|
case "InvalidRequestException":
|
|
1814
1411
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1815
|
-
|
|
1816
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1817
|
-
name: errorCode,
|
|
1818
|
-
$metadata: deserializeMetadata(output),
|
|
1819
|
-
};
|
|
1820
|
-
break;
|
|
1412
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1821
1413
|
default:
|
|
1822
1414
|
const parsedBody = parsedOutput.body;
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
...parsedBody,
|
|
1826
|
-
name: `${errorCode}`,
|
|
1827
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1415
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1416
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1828
1417
|
$fault: "client",
|
|
1829
1418
|
$metadata: deserializeMetadata(output),
|
|
1830
|
-
};
|
|
1419
|
+
});
|
|
1420
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1831
1421
|
}
|
|
1832
|
-
const message = response.message || response.Message || errorCode;
|
|
1833
|
-
response.message = message;
|
|
1834
|
-
delete response.Message;
|
|
1835
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1836
1422
|
};
|
|
1837
1423
|
const deserializeAws_json1_1ListLocationsCommand = async (output, context) => {
|
|
1838
1424
|
if (output.statusCode >= 300) {
|
|
@@ -1859,35 +1445,19 @@ const deserializeAws_json1_1ListLocationsCommandError = async (output, context)
|
|
|
1859
1445
|
switch (errorCode) {
|
|
1860
1446
|
case "InternalException":
|
|
1861
1447
|
case "com.amazonaws.datasync#InternalException":
|
|
1862
|
-
|
|
1863
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1864
|
-
name: errorCode,
|
|
1865
|
-
$metadata: deserializeMetadata(output),
|
|
1866
|
-
};
|
|
1867
|
-
break;
|
|
1448
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1868
1449
|
case "InvalidRequestException":
|
|
1869
1450
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1870
|
-
|
|
1871
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1872
|
-
name: errorCode,
|
|
1873
|
-
$metadata: deserializeMetadata(output),
|
|
1874
|
-
};
|
|
1875
|
-
break;
|
|
1451
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1876
1452
|
default:
|
|
1877
1453
|
const parsedBody = parsedOutput.body;
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
...parsedBody,
|
|
1881
|
-
name: `${errorCode}`,
|
|
1882
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1454
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1455
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1883
1456
|
$fault: "client",
|
|
1884
1457
|
$metadata: deserializeMetadata(output),
|
|
1885
|
-
};
|
|
1458
|
+
});
|
|
1459
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1886
1460
|
}
|
|
1887
|
-
const message = response.message || response.Message || errorCode;
|
|
1888
|
-
response.message = message;
|
|
1889
|
-
delete response.Message;
|
|
1890
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1891
1461
|
};
|
|
1892
1462
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1893
1463
|
if (output.statusCode >= 300) {
|
|
@@ -1914,35 +1484,19 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1914
1484
|
switch (errorCode) {
|
|
1915
1485
|
case "InternalException":
|
|
1916
1486
|
case "com.amazonaws.datasync#InternalException":
|
|
1917
|
-
|
|
1918
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1919
|
-
name: errorCode,
|
|
1920
|
-
$metadata: deserializeMetadata(output),
|
|
1921
|
-
};
|
|
1922
|
-
break;
|
|
1487
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1923
1488
|
case "InvalidRequestException":
|
|
1924
1489
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1925
|
-
|
|
1926
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1927
|
-
name: errorCode,
|
|
1928
|
-
$metadata: deserializeMetadata(output),
|
|
1929
|
-
};
|
|
1930
|
-
break;
|
|
1490
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1931
1491
|
default:
|
|
1932
1492
|
const parsedBody = parsedOutput.body;
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
...parsedBody,
|
|
1936
|
-
name: `${errorCode}`,
|
|
1937
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1493
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1494
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1938
1495
|
$fault: "client",
|
|
1939
1496
|
$metadata: deserializeMetadata(output),
|
|
1940
|
-
};
|
|
1497
|
+
});
|
|
1498
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1941
1499
|
}
|
|
1942
|
-
const message = response.message || response.Message || errorCode;
|
|
1943
|
-
response.message = message;
|
|
1944
|
-
delete response.Message;
|
|
1945
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1946
1500
|
};
|
|
1947
1501
|
const deserializeAws_json1_1ListTaskExecutionsCommand = async (output, context) => {
|
|
1948
1502
|
if (output.statusCode >= 300) {
|
|
@@ -1969,35 +1523,19 @@ const deserializeAws_json1_1ListTaskExecutionsCommandError = async (output, cont
|
|
|
1969
1523
|
switch (errorCode) {
|
|
1970
1524
|
case "InternalException":
|
|
1971
1525
|
case "com.amazonaws.datasync#InternalException":
|
|
1972
|
-
|
|
1973
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1974
|
-
name: errorCode,
|
|
1975
|
-
$metadata: deserializeMetadata(output),
|
|
1976
|
-
};
|
|
1977
|
-
break;
|
|
1526
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1978
1527
|
case "InvalidRequestException":
|
|
1979
1528
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1980
|
-
|
|
1981
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1982
|
-
name: errorCode,
|
|
1983
|
-
$metadata: deserializeMetadata(output),
|
|
1984
|
-
};
|
|
1985
|
-
break;
|
|
1529
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1986
1530
|
default:
|
|
1987
1531
|
const parsedBody = parsedOutput.body;
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
...parsedBody,
|
|
1991
|
-
name: `${errorCode}`,
|
|
1992
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1532
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1533
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1993
1534
|
$fault: "client",
|
|
1994
1535
|
$metadata: deserializeMetadata(output),
|
|
1995
|
-
};
|
|
1536
|
+
});
|
|
1537
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1996
1538
|
}
|
|
1997
|
-
const message = response.message || response.Message || errorCode;
|
|
1998
|
-
response.message = message;
|
|
1999
|
-
delete response.Message;
|
|
2000
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2001
1539
|
};
|
|
2002
1540
|
const deserializeAws_json1_1ListTasksCommand = async (output, context) => {
|
|
2003
1541
|
if (output.statusCode >= 300) {
|
|
@@ -2024,35 +1562,19 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
|
2024
1562
|
switch (errorCode) {
|
|
2025
1563
|
case "InternalException":
|
|
2026
1564
|
case "com.amazonaws.datasync#InternalException":
|
|
2027
|
-
|
|
2028
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2029
|
-
name: errorCode,
|
|
2030
|
-
$metadata: deserializeMetadata(output),
|
|
2031
|
-
};
|
|
2032
|
-
break;
|
|
1565
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2033
1566
|
case "InvalidRequestException":
|
|
2034
1567
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2035
|
-
|
|
2036
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2037
|
-
name: errorCode,
|
|
2038
|
-
$metadata: deserializeMetadata(output),
|
|
2039
|
-
};
|
|
2040
|
-
break;
|
|
1568
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2041
1569
|
default:
|
|
2042
1570
|
const parsedBody = parsedOutput.body;
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
...parsedBody,
|
|
2046
|
-
name: `${errorCode}`,
|
|
2047
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1571
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1572
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2048
1573
|
$fault: "client",
|
|
2049
1574
|
$metadata: deserializeMetadata(output),
|
|
2050
|
-
};
|
|
1575
|
+
});
|
|
1576
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2051
1577
|
}
|
|
2052
|
-
const message = response.message || response.Message || errorCode;
|
|
2053
|
-
response.message = message;
|
|
2054
|
-
delete response.Message;
|
|
2055
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2056
1578
|
};
|
|
2057
1579
|
const deserializeAws_json1_1StartTaskExecutionCommand = async (output, context) => {
|
|
2058
1580
|
if (output.statusCode >= 300) {
|
|
@@ -2079,35 +1601,19 @@ const deserializeAws_json1_1StartTaskExecutionCommandError = async (output, cont
|
|
|
2079
1601
|
switch (errorCode) {
|
|
2080
1602
|
case "InternalException":
|
|
2081
1603
|
case "com.amazonaws.datasync#InternalException":
|
|
2082
|
-
|
|
2083
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2084
|
-
name: errorCode,
|
|
2085
|
-
$metadata: deserializeMetadata(output),
|
|
2086
|
-
};
|
|
2087
|
-
break;
|
|
1604
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2088
1605
|
case "InvalidRequestException":
|
|
2089
1606
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2090
|
-
|
|
2091
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2092
|
-
name: errorCode,
|
|
2093
|
-
$metadata: deserializeMetadata(output),
|
|
2094
|
-
};
|
|
2095
|
-
break;
|
|
1607
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2096
1608
|
default:
|
|
2097
1609
|
const parsedBody = parsedOutput.body;
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
...parsedBody,
|
|
2101
|
-
name: `${errorCode}`,
|
|
2102
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1610
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1611
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2103
1612
|
$fault: "client",
|
|
2104
1613
|
$metadata: deserializeMetadata(output),
|
|
2105
|
-
};
|
|
1614
|
+
});
|
|
1615
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2106
1616
|
}
|
|
2107
|
-
const message = response.message || response.Message || errorCode;
|
|
2108
|
-
response.message = message;
|
|
2109
|
-
delete response.Message;
|
|
2110
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2111
1617
|
};
|
|
2112
1618
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
2113
1619
|
if (output.statusCode >= 300) {
|
|
@@ -2134,35 +1640,19 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2134
1640
|
switch (errorCode) {
|
|
2135
1641
|
case "InternalException":
|
|
2136
1642
|
case "com.amazonaws.datasync#InternalException":
|
|
2137
|
-
|
|
2138
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2139
|
-
name: errorCode,
|
|
2140
|
-
$metadata: deserializeMetadata(output),
|
|
2141
|
-
};
|
|
2142
|
-
break;
|
|
1643
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2143
1644
|
case "InvalidRequestException":
|
|
2144
1645
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2145
|
-
|
|
2146
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2147
|
-
name: errorCode,
|
|
2148
|
-
$metadata: deserializeMetadata(output),
|
|
2149
|
-
};
|
|
2150
|
-
break;
|
|
1646
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2151
1647
|
default:
|
|
2152
1648
|
const parsedBody = parsedOutput.body;
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
...parsedBody,
|
|
2156
|
-
name: `${errorCode}`,
|
|
2157
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1649
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1650
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2158
1651
|
$fault: "client",
|
|
2159
1652
|
$metadata: deserializeMetadata(output),
|
|
2160
|
-
};
|
|
1653
|
+
});
|
|
1654
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2161
1655
|
}
|
|
2162
|
-
const message = response.message || response.Message || errorCode;
|
|
2163
|
-
response.message = message;
|
|
2164
|
-
delete response.Message;
|
|
2165
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2166
1656
|
};
|
|
2167
1657
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
2168
1658
|
if (output.statusCode >= 300) {
|
|
@@ -2189,35 +1679,19 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2189
1679
|
switch (errorCode) {
|
|
2190
1680
|
case "InternalException":
|
|
2191
1681
|
case "com.amazonaws.datasync#InternalException":
|
|
2192
|
-
|
|
2193
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2194
|
-
name: errorCode,
|
|
2195
|
-
$metadata: deserializeMetadata(output),
|
|
2196
|
-
};
|
|
2197
|
-
break;
|
|
1682
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2198
1683
|
case "InvalidRequestException":
|
|
2199
1684
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2200
|
-
|
|
2201
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2202
|
-
name: errorCode,
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
};
|
|
2205
|
-
break;
|
|
1685
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2206
1686
|
default:
|
|
2207
1687
|
const parsedBody = parsedOutput.body;
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
...parsedBody,
|
|
2211
|
-
name: `${errorCode}`,
|
|
2212
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1688
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1689
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2213
1690
|
$fault: "client",
|
|
2214
1691
|
$metadata: deserializeMetadata(output),
|
|
2215
|
-
};
|
|
1692
|
+
});
|
|
1693
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2216
1694
|
}
|
|
2217
|
-
const message = response.message || response.Message || errorCode;
|
|
2218
|
-
response.message = message;
|
|
2219
|
-
delete response.Message;
|
|
2220
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2221
1695
|
};
|
|
2222
1696
|
const deserializeAws_json1_1UpdateAgentCommand = async (output, context) => {
|
|
2223
1697
|
if (output.statusCode >= 300) {
|
|
@@ -2244,35 +1718,19 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) =>
|
|
|
2244
1718
|
switch (errorCode) {
|
|
2245
1719
|
case "InternalException":
|
|
2246
1720
|
case "com.amazonaws.datasync#InternalException":
|
|
2247
|
-
|
|
2248
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2249
|
-
name: errorCode,
|
|
2250
|
-
$metadata: deserializeMetadata(output),
|
|
2251
|
-
};
|
|
2252
|
-
break;
|
|
1721
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2253
1722
|
case "InvalidRequestException":
|
|
2254
1723
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2255
|
-
|
|
2256
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2257
|
-
name: errorCode,
|
|
2258
|
-
$metadata: deserializeMetadata(output),
|
|
2259
|
-
};
|
|
2260
|
-
break;
|
|
1724
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2261
1725
|
default:
|
|
2262
1726
|
const parsedBody = parsedOutput.body;
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
...parsedBody,
|
|
2266
|
-
name: `${errorCode}`,
|
|
2267
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1727
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1728
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2268
1729
|
$fault: "client",
|
|
2269
1730
|
$metadata: deserializeMetadata(output),
|
|
2270
|
-
};
|
|
1731
|
+
});
|
|
1732
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2271
1733
|
}
|
|
2272
|
-
const message = response.message || response.Message || errorCode;
|
|
2273
|
-
response.message = message;
|
|
2274
|
-
delete response.Message;
|
|
2275
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2276
1734
|
};
|
|
2277
1735
|
const deserializeAws_json1_1UpdateLocationHdfsCommand = async (output, context) => {
|
|
2278
1736
|
if (output.statusCode >= 300) {
|
|
@@ -2299,35 +1757,19 @@ const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, cont
|
|
|
2299
1757
|
switch (errorCode) {
|
|
2300
1758
|
case "InternalException":
|
|
2301
1759
|
case "com.amazonaws.datasync#InternalException":
|
|
2302
|
-
|
|
2303
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2304
|
-
name: errorCode,
|
|
2305
|
-
$metadata: deserializeMetadata(output),
|
|
2306
|
-
};
|
|
2307
|
-
break;
|
|
1760
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2308
1761
|
case "InvalidRequestException":
|
|
2309
1762
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2310
|
-
|
|
2311
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2312
|
-
name: errorCode,
|
|
2313
|
-
$metadata: deserializeMetadata(output),
|
|
2314
|
-
};
|
|
2315
|
-
break;
|
|
1763
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2316
1764
|
default:
|
|
2317
1765
|
const parsedBody = parsedOutput.body;
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
...parsedBody,
|
|
2321
|
-
name: `${errorCode}`,
|
|
2322
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1766
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1767
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2323
1768
|
$fault: "client",
|
|
2324
1769
|
$metadata: deserializeMetadata(output),
|
|
2325
|
-
};
|
|
1770
|
+
});
|
|
1771
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2326
1772
|
}
|
|
2327
|
-
const message = response.message || response.Message || errorCode;
|
|
2328
|
-
response.message = message;
|
|
2329
|
-
delete response.Message;
|
|
2330
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2331
1773
|
};
|
|
2332
1774
|
const deserializeAws_json1_1UpdateLocationNfsCommand = async (output, context) => {
|
|
2333
1775
|
if (output.statusCode >= 300) {
|
|
@@ -2354,35 +1796,19 @@ const deserializeAws_json1_1UpdateLocationNfsCommandError = async (output, conte
|
|
|
2354
1796
|
switch (errorCode) {
|
|
2355
1797
|
case "InternalException":
|
|
2356
1798
|
case "com.amazonaws.datasync#InternalException":
|
|
2357
|
-
|
|
2358
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2359
|
-
name: errorCode,
|
|
2360
|
-
$metadata: deserializeMetadata(output),
|
|
2361
|
-
};
|
|
2362
|
-
break;
|
|
1799
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2363
1800
|
case "InvalidRequestException":
|
|
2364
1801
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2365
|
-
|
|
2366
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2367
|
-
name: errorCode,
|
|
2368
|
-
$metadata: deserializeMetadata(output),
|
|
2369
|
-
};
|
|
2370
|
-
break;
|
|
1802
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2371
1803
|
default:
|
|
2372
1804
|
const parsedBody = parsedOutput.body;
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
...parsedBody,
|
|
2376
|
-
name: `${errorCode}`,
|
|
2377
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1805
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1806
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2378
1807
|
$fault: "client",
|
|
2379
1808
|
$metadata: deserializeMetadata(output),
|
|
2380
|
-
};
|
|
1809
|
+
});
|
|
1810
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2381
1811
|
}
|
|
2382
|
-
const message = response.message || response.Message || errorCode;
|
|
2383
|
-
response.message = message;
|
|
2384
|
-
delete response.Message;
|
|
2385
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2386
1812
|
};
|
|
2387
1813
|
const deserializeAws_json1_1UpdateLocationObjectStorageCommand = async (output, context) => {
|
|
2388
1814
|
if (output.statusCode >= 300) {
|
|
@@ -2409,35 +1835,19 @@ const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (out
|
|
|
2409
1835
|
switch (errorCode) {
|
|
2410
1836
|
case "InternalException":
|
|
2411
1837
|
case "com.amazonaws.datasync#InternalException":
|
|
2412
|
-
|
|
2413
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2414
|
-
name: errorCode,
|
|
2415
|
-
$metadata: deserializeMetadata(output),
|
|
2416
|
-
};
|
|
2417
|
-
break;
|
|
1838
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2418
1839
|
case "InvalidRequestException":
|
|
2419
1840
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2420
|
-
|
|
2421
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2422
|
-
name: errorCode,
|
|
2423
|
-
$metadata: deserializeMetadata(output),
|
|
2424
|
-
};
|
|
2425
|
-
break;
|
|
1841
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2426
1842
|
default:
|
|
2427
1843
|
const parsedBody = parsedOutput.body;
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
...parsedBody,
|
|
2431
|
-
name: `${errorCode}`,
|
|
2432
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1844
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1845
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2433
1846
|
$fault: "client",
|
|
2434
1847
|
$metadata: deserializeMetadata(output),
|
|
2435
|
-
};
|
|
1848
|
+
});
|
|
1849
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2436
1850
|
}
|
|
2437
|
-
const message = response.message || response.Message || errorCode;
|
|
2438
|
-
response.message = message;
|
|
2439
|
-
delete response.Message;
|
|
2440
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2441
1851
|
};
|
|
2442
1852
|
const deserializeAws_json1_1UpdateLocationSmbCommand = async (output, context) => {
|
|
2443
1853
|
if (output.statusCode >= 300) {
|
|
@@ -2464,35 +1874,19 @@ const deserializeAws_json1_1UpdateLocationSmbCommandError = async (output, conte
|
|
|
2464
1874
|
switch (errorCode) {
|
|
2465
1875
|
case "InternalException":
|
|
2466
1876
|
case "com.amazonaws.datasync#InternalException":
|
|
2467
|
-
|
|
2468
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2469
|
-
name: errorCode,
|
|
2470
|
-
$metadata: deserializeMetadata(output),
|
|
2471
|
-
};
|
|
2472
|
-
break;
|
|
1877
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2473
1878
|
case "InvalidRequestException":
|
|
2474
1879
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2475
|
-
|
|
2476
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2477
|
-
name: errorCode,
|
|
2478
|
-
$metadata: deserializeMetadata(output),
|
|
2479
|
-
};
|
|
2480
|
-
break;
|
|
1880
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2481
1881
|
default:
|
|
2482
1882
|
const parsedBody = parsedOutput.body;
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
...parsedBody,
|
|
2486
|
-
name: `${errorCode}`,
|
|
2487
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1883
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1884
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2488
1885
|
$fault: "client",
|
|
2489
1886
|
$metadata: deserializeMetadata(output),
|
|
2490
|
-
};
|
|
1887
|
+
});
|
|
1888
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2491
1889
|
}
|
|
2492
|
-
const message = response.message || response.Message || errorCode;
|
|
2493
|
-
response.message = message;
|
|
2494
|
-
delete response.Message;
|
|
2495
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2496
1890
|
};
|
|
2497
1891
|
const deserializeAws_json1_1UpdateTaskCommand = async (output, context) => {
|
|
2498
1892
|
if (output.statusCode >= 300) {
|
|
@@ -2519,35 +1913,19 @@ const deserializeAws_json1_1UpdateTaskCommandError = async (output, context) =>
|
|
|
2519
1913
|
switch (errorCode) {
|
|
2520
1914
|
case "InternalException":
|
|
2521
1915
|
case "com.amazonaws.datasync#InternalException":
|
|
2522
|
-
|
|
2523
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2524
|
-
name: errorCode,
|
|
2525
|
-
$metadata: deserializeMetadata(output),
|
|
2526
|
-
};
|
|
2527
|
-
break;
|
|
1916
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2528
1917
|
case "InvalidRequestException":
|
|
2529
1918
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2530
|
-
|
|
2531
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2532
|
-
name: errorCode,
|
|
2533
|
-
$metadata: deserializeMetadata(output),
|
|
2534
|
-
};
|
|
2535
|
-
break;
|
|
1919
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2536
1920
|
default:
|
|
2537
1921
|
const parsedBody = parsedOutput.body;
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
...parsedBody,
|
|
2541
|
-
name: `${errorCode}`,
|
|
2542
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1922
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1923
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2543
1924
|
$fault: "client",
|
|
2544
1925
|
$metadata: deserializeMetadata(output),
|
|
2545
|
-
};
|
|
1926
|
+
});
|
|
1927
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2546
1928
|
}
|
|
2547
|
-
const message = response.message || response.Message || errorCode;
|
|
2548
|
-
response.message = message;
|
|
2549
|
-
delete response.Message;
|
|
2550
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2551
1929
|
};
|
|
2552
1930
|
const deserializeAws_json1_1UpdateTaskExecutionCommand = async (output, context) => {
|
|
2553
1931
|
if (output.statusCode >= 300) {
|
|
@@ -2574,57 +1952,37 @@ const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (output, con
|
|
|
2574
1952
|
switch (errorCode) {
|
|
2575
1953
|
case "InternalException":
|
|
2576
1954
|
case "com.amazonaws.datasync#InternalException":
|
|
2577
|
-
|
|
2578
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2579
|
-
name: errorCode,
|
|
2580
|
-
$metadata: deserializeMetadata(output),
|
|
2581
|
-
};
|
|
2582
|
-
break;
|
|
1955
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2583
1956
|
case "InvalidRequestException":
|
|
2584
1957
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2585
|
-
|
|
2586
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2587
|
-
name: errorCode,
|
|
2588
|
-
$metadata: deserializeMetadata(output),
|
|
2589
|
-
};
|
|
2590
|
-
break;
|
|
1958
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2591
1959
|
default:
|
|
2592
1960
|
const parsedBody = parsedOutput.body;
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
...parsedBody,
|
|
2596
|
-
name: `${errorCode}`,
|
|
2597
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1961
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1962
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2598
1963
|
$fault: "client",
|
|
2599
1964
|
$metadata: deserializeMetadata(output),
|
|
2600
|
-
};
|
|
1965
|
+
});
|
|
1966
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2601
1967
|
}
|
|
2602
|
-
const message = response.message || response.Message || errorCode;
|
|
2603
|
-
response.message = message;
|
|
2604
|
-
delete response.Message;
|
|
2605
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2606
1968
|
};
|
|
2607
1969
|
const deserializeAws_json1_1InternalExceptionResponse = async (parsedOutput, context) => {
|
|
2608
1970
|
const body = parsedOutput.body;
|
|
2609
1971
|
const deserialized = deserializeAws_json1_1InternalException(body, context);
|
|
2610
|
-
const
|
|
2611
|
-
name: "InternalException",
|
|
2612
|
-
$fault: "server",
|
|
1972
|
+
const exception = new models_0_1.InternalException({
|
|
2613
1973
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2614
1974
|
...deserialized,
|
|
2615
|
-
};
|
|
2616
|
-
return
|
|
1975
|
+
});
|
|
1976
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2617
1977
|
};
|
|
2618
1978
|
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
2619
1979
|
const body = parsedOutput.body;
|
|
2620
1980
|
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
2621
|
-
const
|
|
2622
|
-
name: "InvalidRequestException",
|
|
2623
|
-
$fault: "client",
|
|
1981
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
2624
1982
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2625
1983
|
...deserialized,
|
|
2626
|
-
};
|
|
2627
|
-
return
|
|
1984
|
+
});
|
|
1985
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2628
1986
|
};
|
|
2629
1987
|
const serializeAws_json1_1AgentArnList = (input, context) => {
|
|
2630
1988
|
return input
|
|
@@ -3245,7 +2603,7 @@ const serializeAws_json1_1UpdateTaskRequest = (input, context) => {
|
|
|
3245
2603
|
};
|
|
3246
2604
|
};
|
|
3247
2605
|
const deserializeAws_json1_1AgentArnList = (output, context) => {
|
|
3248
|
-
|
|
2606
|
+
const retVal = (output || [])
|
|
3249
2607
|
.filter((e) => e != null)
|
|
3250
2608
|
.map((entry) => {
|
|
3251
2609
|
if (entry === null) {
|
|
@@ -3253,9 +2611,10 @@ const deserializeAws_json1_1AgentArnList = (output, context) => {
|
|
|
3253
2611
|
}
|
|
3254
2612
|
return smithy_client_1.expectString(entry);
|
|
3255
2613
|
});
|
|
2614
|
+
return retVal;
|
|
3256
2615
|
};
|
|
3257
2616
|
const deserializeAws_json1_1AgentList = (output, context) => {
|
|
3258
|
-
|
|
2617
|
+
const retVal = (output || [])
|
|
3259
2618
|
.filter((e) => e != null)
|
|
3260
2619
|
.map((entry) => {
|
|
3261
2620
|
if (entry === null) {
|
|
@@ -3263,6 +2622,7 @@ const deserializeAws_json1_1AgentList = (output, context) => {
|
|
|
3263
2622
|
}
|
|
3264
2623
|
return deserializeAws_json1_1AgentListEntry(entry, context);
|
|
3265
2624
|
});
|
|
2625
|
+
return retVal;
|
|
3266
2626
|
};
|
|
3267
2627
|
const deserializeAws_json1_1AgentListEntry = (output, context) => {
|
|
3268
2628
|
return {
|
|
@@ -3536,7 +2896,7 @@ const deserializeAws_json1_1DescribeTaskResponse = (output, context) => {
|
|
|
3536
2896
|
};
|
|
3537
2897
|
};
|
|
3538
2898
|
const deserializeAws_json1_1DestinationNetworkInterfaceArns = (output, context) => {
|
|
3539
|
-
|
|
2899
|
+
const retVal = (output || [])
|
|
3540
2900
|
.filter((e) => e != null)
|
|
3541
2901
|
.map((entry) => {
|
|
3542
2902
|
if (entry === null) {
|
|
@@ -3544,6 +2904,7 @@ const deserializeAws_json1_1DestinationNetworkInterfaceArns = (output, context)
|
|
|
3544
2904
|
}
|
|
3545
2905
|
return smithy_client_1.expectString(entry);
|
|
3546
2906
|
});
|
|
2907
|
+
return retVal;
|
|
3547
2908
|
};
|
|
3548
2909
|
const deserializeAws_json1_1Ec2Config = (output, context) => {
|
|
3549
2910
|
return {
|
|
@@ -3554,7 +2915,7 @@ const deserializeAws_json1_1Ec2Config = (output, context) => {
|
|
|
3554
2915
|
};
|
|
3555
2916
|
};
|
|
3556
2917
|
const deserializeAws_json1_1Ec2SecurityGroupArnList = (output, context) => {
|
|
3557
|
-
|
|
2918
|
+
const retVal = (output || [])
|
|
3558
2919
|
.filter((e) => e != null)
|
|
3559
2920
|
.map((entry) => {
|
|
3560
2921
|
if (entry === null) {
|
|
@@ -3562,9 +2923,10 @@ const deserializeAws_json1_1Ec2SecurityGroupArnList = (output, context) => {
|
|
|
3562
2923
|
}
|
|
3563
2924
|
return smithy_client_1.expectString(entry);
|
|
3564
2925
|
});
|
|
2926
|
+
return retVal;
|
|
3565
2927
|
};
|
|
3566
2928
|
const deserializeAws_json1_1FilterList = (output, context) => {
|
|
3567
|
-
|
|
2929
|
+
const retVal = (output || [])
|
|
3568
2930
|
.filter((e) => e != null)
|
|
3569
2931
|
.map((entry) => {
|
|
3570
2932
|
if (entry === null) {
|
|
@@ -3572,6 +2934,7 @@ const deserializeAws_json1_1FilterList = (output, context) => {
|
|
|
3572
2934
|
}
|
|
3573
2935
|
return deserializeAws_json1_1FilterRule(entry, context);
|
|
3574
2936
|
});
|
|
2937
|
+
return retVal;
|
|
3575
2938
|
};
|
|
3576
2939
|
const deserializeAws_json1_1FilterRule = (output, context) => {
|
|
3577
2940
|
return {
|
|
@@ -3586,7 +2949,7 @@ const deserializeAws_json1_1HdfsNameNode = (output, context) => {
|
|
|
3586
2949
|
};
|
|
3587
2950
|
};
|
|
3588
2951
|
const deserializeAws_json1_1HdfsNameNodeList = (output, context) => {
|
|
3589
|
-
|
|
2952
|
+
const retVal = (output || [])
|
|
3590
2953
|
.filter((e) => e != null)
|
|
3591
2954
|
.map((entry) => {
|
|
3592
2955
|
if (entry === null) {
|
|
@@ -3594,6 +2957,7 @@ const deserializeAws_json1_1HdfsNameNodeList = (output, context) => {
|
|
|
3594
2957
|
}
|
|
3595
2958
|
return deserializeAws_json1_1HdfsNameNode(entry, context);
|
|
3596
2959
|
});
|
|
2960
|
+
return retVal;
|
|
3597
2961
|
};
|
|
3598
2962
|
const deserializeAws_json1_1InternalException = (output, context) => {
|
|
3599
2963
|
return {
|
|
@@ -3648,7 +3012,7 @@ const deserializeAws_json1_1ListTasksResponse = (output, context) => {
|
|
|
3648
3012
|
};
|
|
3649
3013
|
};
|
|
3650
3014
|
const deserializeAws_json1_1LocationList = (output, context) => {
|
|
3651
|
-
|
|
3015
|
+
const retVal = (output || [])
|
|
3652
3016
|
.filter((e) => e != null)
|
|
3653
3017
|
.map((entry) => {
|
|
3654
3018
|
if (entry === null) {
|
|
@@ -3656,6 +3020,7 @@ const deserializeAws_json1_1LocationList = (output, context) => {
|
|
|
3656
3020
|
}
|
|
3657
3021
|
return deserializeAws_json1_1LocationListEntry(entry, context);
|
|
3658
3022
|
});
|
|
3023
|
+
return retVal;
|
|
3659
3024
|
};
|
|
3660
3025
|
const deserializeAws_json1_1LocationListEntry = (output, context) => {
|
|
3661
3026
|
return {
|
|
@@ -3694,7 +3059,7 @@ const deserializeAws_json1_1Options = (output, context) => {
|
|
|
3694
3059
|
};
|
|
3695
3060
|
};
|
|
3696
3061
|
const deserializeAws_json1_1OutputTagList = (output, context) => {
|
|
3697
|
-
|
|
3062
|
+
const retVal = (output || [])
|
|
3698
3063
|
.filter((e) => e != null)
|
|
3699
3064
|
.map((entry) => {
|
|
3700
3065
|
if (entry === null) {
|
|
@@ -3702,9 +3067,10 @@ const deserializeAws_json1_1OutputTagList = (output, context) => {
|
|
|
3702
3067
|
}
|
|
3703
3068
|
return deserializeAws_json1_1TagListEntry(entry, context);
|
|
3704
3069
|
});
|
|
3070
|
+
return retVal;
|
|
3705
3071
|
};
|
|
3706
3072
|
const deserializeAws_json1_1PLSecurityGroupArnList = (output, context) => {
|
|
3707
|
-
|
|
3073
|
+
const retVal = (output || [])
|
|
3708
3074
|
.filter((e) => e != null)
|
|
3709
3075
|
.map((entry) => {
|
|
3710
3076
|
if (entry === null) {
|
|
@@ -3712,9 +3078,10 @@ const deserializeAws_json1_1PLSecurityGroupArnList = (output, context) => {
|
|
|
3712
3078
|
}
|
|
3713
3079
|
return smithy_client_1.expectString(entry);
|
|
3714
3080
|
});
|
|
3081
|
+
return retVal;
|
|
3715
3082
|
};
|
|
3716
3083
|
const deserializeAws_json1_1PLSubnetArnList = (output, context) => {
|
|
3717
|
-
|
|
3084
|
+
const retVal = (output || [])
|
|
3718
3085
|
.filter((e) => e != null)
|
|
3719
3086
|
.map((entry) => {
|
|
3720
3087
|
if (entry === null) {
|
|
@@ -3722,6 +3089,7 @@ const deserializeAws_json1_1PLSubnetArnList = (output, context) => {
|
|
|
3722
3089
|
}
|
|
3723
3090
|
return smithy_client_1.expectString(entry);
|
|
3724
3091
|
});
|
|
3092
|
+
return retVal;
|
|
3725
3093
|
};
|
|
3726
3094
|
const deserializeAws_json1_1PrivateLinkConfig = (output, context) => {
|
|
3727
3095
|
return {
|
|
@@ -3752,7 +3120,7 @@ const deserializeAws_json1_1SmbMountOptions = (output, context) => {
|
|
|
3752
3120
|
};
|
|
3753
3121
|
};
|
|
3754
3122
|
const deserializeAws_json1_1SourceNetworkInterfaceArns = (output, context) => {
|
|
3755
|
-
|
|
3123
|
+
const retVal = (output || [])
|
|
3756
3124
|
.filter((e) => e != null)
|
|
3757
3125
|
.map((entry) => {
|
|
3758
3126
|
if (entry === null) {
|
|
@@ -3760,6 +3128,7 @@ const deserializeAws_json1_1SourceNetworkInterfaceArns = (output, context) => {
|
|
|
3760
3128
|
}
|
|
3761
3129
|
return smithy_client_1.expectString(entry);
|
|
3762
3130
|
});
|
|
3131
|
+
return retVal;
|
|
3763
3132
|
};
|
|
3764
3133
|
const deserializeAws_json1_1StartTaskExecutionResponse = (output, context) => {
|
|
3765
3134
|
return {
|
|
@@ -3776,7 +3145,7 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
3776
3145
|
return {};
|
|
3777
3146
|
};
|
|
3778
3147
|
const deserializeAws_json1_1TaskExecutionList = (output, context) => {
|
|
3779
|
-
|
|
3148
|
+
const retVal = (output || [])
|
|
3780
3149
|
.filter((e) => e != null)
|
|
3781
3150
|
.map((entry) => {
|
|
3782
3151
|
if (entry === null) {
|
|
@@ -3784,6 +3153,7 @@ const deserializeAws_json1_1TaskExecutionList = (output, context) => {
|
|
|
3784
3153
|
}
|
|
3785
3154
|
return deserializeAws_json1_1TaskExecutionListEntry(entry, context);
|
|
3786
3155
|
});
|
|
3156
|
+
return retVal;
|
|
3787
3157
|
};
|
|
3788
3158
|
const deserializeAws_json1_1TaskExecutionListEntry = (output, context) => {
|
|
3789
3159
|
return {
|
|
@@ -3805,7 +3175,7 @@ const deserializeAws_json1_1TaskExecutionResultDetail = (output, context) => {
|
|
|
3805
3175
|
};
|
|
3806
3176
|
};
|
|
3807
3177
|
const deserializeAws_json1_1TaskList = (output, context) => {
|
|
3808
|
-
|
|
3178
|
+
const retVal = (output || [])
|
|
3809
3179
|
.filter((e) => e != null)
|
|
3810
3180
|
.map((entry) => {
|
|
3811
3181
|
if (entry === null) {
|
|
@@ -3813,6 +3183,7 @@ const deserializeAws_json1_1TaskList = (output, context) => {
|
|
|
3813
3183
|
}
|
|
3814
3184
|
return deserializeAws_json1_1TaskListEntry(entry, context);
|
|
3815
3185
|
});
|
|
3186
|
+
return retVal;
|
|
3816
3187
|
};
|
|
3817
3188
|
const deserializeAws_json1_1TaskListEntry = (output, context) => {
|
|
3818
3189
|
return {
|