@aws-sdk/client-datasync 3.119.0 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist-cjs/protocols/Aws_json1_1.js +485 -606
- package/dist-es/protocols/Aws_json1_1.js +351 -472
- package/package.json +26 -26
|
@@ -506,7 +506,7 @@ export var deserializeAws_json1_1CancelTaskExecutionCommand = function (output,
|
|
|
506
506
|
});
|
|
507
507
|
}); };
|
|
508
508
|
var deserializeAws_json1_1CancelTaskExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
509
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
509
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
510
510
|
var _c;
|
|
511
511
|
return __generator(this, function (_d) {
|
|
512
512
|
switch (_d.label) {
|
|
@@ -516,7 +516,6 @@ var deserializeAws_json1_1CancelTaskExecutionCommandError = function (output, co
|
|
|
516
516
|
return [4, parseBody(output.body, context)];
|
|
517
517
|
case 1:
|
|
518
518
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
519
|
-
errorCode = "UnknownError";
|
|
520
519
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
520
|
_b = errorCode;
|
|
522
521
|
switch (_b) {
|
|
@@ -532,10 +531,12 @@ var deserializeAws_json1_1CancelTaskExecutionCommandError = function (output, co
|
|
|
532
531
|
case 5: throw _d.sent();
|
|
533
532
|
case 6:
|
|
534
533
|
parsedBody = parsedOutput.body;
|
|
534
|
+
$metadata = deserializeMetadata(output);
|
|
535
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
535
536
|
response = new __BaseException({
|
|
536
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
537
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
537
538
|
$fault: "client",
|
|
538
|
-
$metadata:
|
|
539
|
+
$metadata: $metadata,
|
|
539
540
|
});
|
|
540
541
|
throw __decorateServiceException(response, parsedBody);
|
|
541
542
|
}
|
|
@@ -560,7 +561,7 @@ export var deserializeAws_json1_1CreateAgentCommand = function (output, context)
|
|
|
560
561
|
});
|
|
561
562
|
}); };
|
|
562
563
|
var deserializeAws_json1_1CreateAgentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
563
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
564
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
564
565
|
var _c;
|
|
565
566
|
return __generator(this, function (_d) {
|
|
566
567
|
switch (_d.label) {
|
|
@@ -570,7 +571,6 @@ var deserializeAws_json1_1CreateAgentCommandError = function (output, context) {
|
|
|
570
571
|
return [4, parseBody(output.body, context)];
|
|
571
572
|
case 1:
|
|
572
573
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
573
|
-
errorCode = "UnknownError";
|
|
574
574
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
575
|
_b = errorCode;
|
|
576
576
|
switch (_b) {
|
|
@@ -586,10 +586,12 @@ var deserializeAws_json1_1CreateAgentCommandError = function (output, context) {
|
|
|
586
586
|
case 5: throw _d.sent();
|
|
587
587
|
case 6:
|
|
588
588
|
parsedBody = parsedOutput.body;
|
|
589
|
+
$metadata = deserializeMetadata(output);
|
|
590
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
589
591
|
response = new __BaseException({
|
|
590
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
592
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
591
593
|
$fault: "client",
|
|
592
|
-
$metadata:
|
|
594
|
+
$metadata: $metadata,
|
|
593
595
|
});
|
|
594
596
|
throw __decorateServiceException(response, parsedBody);
|
|
595
597
|
}
|
|
@@ -614,7 +616,7 @@ export var deserializeAws_json1_1CreateLocationEfsCommand = function (output, co
|
|
|
614
616
|
});
|
|
615
617
|
}); };
|
|
616
618
|
var deserializeAws_json1_1CreateLocationEfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
617
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
619
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
618
620
|
var _c;
|
|
619
621
|
return __generator(this, function (_d) {
|
|
620
622
|
switch (_d.label) {
|
|
@@ -624,7 +626,6 @@ var deserializeAws_json1_1CreateLocationEfsCommandError = function (output, cont
|
|
|
624
626
|
return [4, parseBody(output.body, context)];
|
|
625
627
|
case 1:
|
|
626
628
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
627
|
-
errorCode = "UnknownError";
|
|
628
629
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
630
|
_b = errorCode;
|
|
630
631
|
switch (_b) {
|
|
@@ -640,10 +641,12 @@ var deserializeAws_json1_1CreateLocationEfsCommandError = function (output, cont
|
|
|
640
641
|
case 5: throw _d.sent();
|
|
641
642
|
case 6:
|
|
642
643
|
parsedBody = parsedOutput.body;
|
|
644
|
+
$metadata = deserializeMetadata(output);
|
|
645
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
643
646
|
response = new __BaseException({
|
|
644
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
647
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
645
648
|
$fault: "client",
|
|
646
|
-
$metadata:
|
|
649
|
+
$metadata: $metadata,
|
|
647
650
|
});
|
|
648
651
|
throw __decorateServiceException(response, parsedBody);
|
|
649
652
|
}
|
|
@@ -668,7 +671,7 @@ export var deserializeAws_json1_1CreateLocationFsxLustreCommand = function (outp
|
|
|
668
671
|
});
|
|
669
672
|
}); };
|
|
670
673
|
var deserializeAws_json1_1CreateLocationFsxLustreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
671
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
674
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
672
675
|
var _c;
|
|
673
676
|
return __generator(this, function (_d) {
|
|
674
677
|
switch (_d.label) {
|
|
@@ -678,7 +681,6 @@ var deserializeAws_json1_1CreateLocationFsxLustreCommandError = function (output
|
|
|
678
681
|
return [4, parseBody(output.body, context)];
|
|
679
682
|
case 1:
|
|
680
683
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
681
|
-
errorCode = "UnknownError";
|
|
682
684
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
685
|
_b = errorCode;
|
|
684
686
|
switch (_b) {
|
|
@@ -694,10 +696,12 @@ var deserializeAws_json1_1CreateLocationFsxLustreCommandError = function (output
|
|
|
694
696
|
case 5: throw _d.sent();
|
|
695
697
|
case 6:
|
|
696
698
|
parsedBody = parsedOutput.body;
|
|
699
|
+
$metadata = deserializeMetadata(output);
|
|
700
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
697
701
|
response = new __BaseException({
|
|
698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
702
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
699
703
|
$fault: "client",
|
|
700
|
-
$metadata:
|
|
704
|
+
$metadata: $metadata,
|
|
701
705
|
});
|
|
702
706
|
throw __decorateServiceException(response, parsedBody);
|
|
703
707
|
}
|
|
@@ -722,7 +726,7 @@ export var deserializeAws_json1_1CreateLocationFsxOntapCommand = function (outpu
|
|
|
722
726
|
});
|
|
723
727
|
}); };
|
|
724
728
|
var deserializeAws_json1_1CreateLocationFsxOntapCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
725
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
729
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
726
730
|
var _c;
|
|
727
731
|
return __generator(this, function (_d) {
|
|
728
732
|
switch (_d.label) {
|
|
@@ -732,7 +736,6 @@ var deserializeAws_json1_1CreateLocationFsxOntapCommandError = function (output,
|
|
|
732
736
|
return [4, parseBody(output.body, context)];
|
|
733
737
|
case 1:
|
|
734
738
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
735
|
-
errorCode = "UnknownError";
|
|
736
739
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
740
|
_b = errorCode;
|
|
738
741
|
switch (_b) {
|
|
@@ -748,10 +751,12 @@ var deserializeAws_json1_1CreateLocationFsxOntapCommandError = function (output,
|
|
|
748
751
|
case 5: throw _d.sent();
|
|
749
752
|
case 6:
|
|
750
753
|
parsedBody = parsedOutput.body;
|
|
754
|
+
$metadata = deserializeMetadata(output);
|
|
755
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
751
756
|
response = new __BaseException({
|
|
752
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
753
758
|
$fault: "client",
|
|
754
|
-
$metadata:
|
|
759
|
+
$metadata: $metadata,
|
|
755
760
|
});
|
|
756
761
|
throw __decorateServiceException(response, parsedBody);
|
|
757
762
|
}
|
|
@@ -776,7 +781,7 @@ export var deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = function (out
|
|
|
776
781
|
});
|
|
777
782
|
}); };
|
|
778
783
|
var deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
779
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
784
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
780
785
|
var _c;
|
|
781
786
|
return __generator(this, function (_d) {
|
|
782
787
|
switch (_d.label) {
|
|
@@ -786,7 +791,6 @@ var deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = function (outpu
|
|
|
786
791
|
return [4, parseBody(output.body, context)];
|
|
787
792
|
case 1:
|
|
788
793
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
789
|
-
errorCode = "UnknownError";
|
|
790
794
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
795
|
_b = errorCode;
|
|
792
796
|
switch (_b) {
|
|
@@ -802,10 +806,12 @@ var deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = function (outpu
|
|
|
802
806
|
case 5: throw _d.sent();
|
|
803
807
|
case 6:
|
|
804
808
|
parsedBody = parsedOutput.body;
|
|
809
|
+
$metadata = deserializeMetadata(output);
|
|
810
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
805
811
|
response = new __BaseException({
|
|
806
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
812
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
807
813
|
$fault: "client",
|
|
808
|
-
$metadata:
|
|
814
|
+
$metadata: $metadata,
|
|
809
815
|
});
|
|
810
816
|
throw __decorateServiceException(response, parsedBody);
|
|
811
817
|
}
|
|
@@ -830,7 +836,7 @@ export var deserializeAws_json1_1CreateLocationFsxWindowsCommand = function (out
|
|
|
830
836
|
});
|
|
831
837
|
}); };
|
|
832
838
|
var deserializeAws_json1_1CreateLocationFsxWindowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
833
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
839
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
834
840
|
var _c;
|
|
835
841
|
return __generator(this, function (_d) {
|
|
836
842
|
switch (_d.label) {
|
|
@@ -840,7 +846,6 @@ var deserializeAws_json1_1CreateLocationFsxWindowsCommandError = function (outpu
|
|
|
840
846
|
return [4, parseBody(output.body, context)];
|
|
841
847
|
case 1:
|
|
842
848
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
843
|
-
errorCode = "UnknownError";
|
|
844
849
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
850
|
_b = errorCode;
|
|
846
851
|
switch (_b) {
|
|
@@ -856,10 +861,12 @@ var deserializeAws_json1_1CreateLocationFsxWindowsCommandError = function (outpu
|
|
|
856
861
|
case 5: throw _d.sent();
|
|
857
862
|
case 6:
|
|
858
863
|
parsedBody = parsedOutput.body;
|
|
864
|
+
$metadata = deserializeMetadata(output);
|
|
865
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
859
866
|
response = new __BaseException({
|
|
860
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
867
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
861
868
|
$fault: "client",
|
|
862
|
-
$metadata:
|
|
869
|
+
$metadata: $metadata,
|
|
863
870
|
});
|
|
864
871
|
throw __decorateServiceException(response, parsedBody);
|
|
865
872
|
}
|
|
@@ -884,7 +891,7 @@ export var deserializeAws_json1_1CreateLocationHdfsCommand = function (output, c
|
|
|
884
891
|
});
|
|
885
892
|
}); };
|
|
886
893
|
var deserializeAws_json1_1CreateLocationHdfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
887
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
894
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
888
895
|
var _c;
|
|
889
896
|
return __generator(this, function (_d) {
|
|
890
897
|
switch (_d.label) {
|
|
@@ -894,7 +901,6 @@ var deserializeAws_json1_1CreateLocationHdfsCommandError = function (output, con
|
|
|
894
901
|
return [4, parseBody(output.body, context)];
|
|
895
902
|
case 1:
|
|
896
903
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
897
|
-
errorCode = "UnknownError";
|
|
898
904
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
905
|
_b = errorCode;
|
|
900
906
|
switch (_b) {
|
|
@@ -910,10 +916,12 @@ var deserializeAws_json1_1CreateLocationHdfsCommandError = function (output, con
|
|
|
910
916
|
case 5: throw _d.sent();
|
|
911
917
|
case 6:
|
|
912
918
|
parsedBody = parsedOutput.body;
|
|
919
|
+
$metadata = deserializeMetadata(output);
|
|
920
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
913
921
|
response = new __BaseException({
|
|
914
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
922
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
915
923
|
$fault: "client",
|
|
916
|
-
$metadata:
|
|
924
|
+
$metadata: $metadata,
|
|
917
925
|
});
|
|
918
926
|
throw __decorateServiceException(response, parsedBody);
|
|
919
927
|
}
|
|
@@ -938,7 +946,7 @@ export var deserializeAws_json1_1CreateLocationNfsCommand = function (output, co
|
|
|
938
946
|
});
|
|
939
947
|
}); };
|
|
940
948
|
var deserializeAws_json1_1CreateLocationNfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
941
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
949
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
942
950
|
var _c;
|
|
943
951
|
return __generator(this, function (_d) {
|
|
944
952
|
switch (_d.label) {
|
|
@@ -948,7 +956,6 @@ var deserializeAws_json1_1CreateLocationNfsCommandError = function (output, cont
|
|
|
948
956
|
return [4, parseBody(output.body, context)];
|
|
949
957
|
case 1:
|
|
950
958
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
951
|
-
errorCode = "UnknownError";
|
|
952
959
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
960
|
_b = errorCode;
|
|
954
961
|
switch (_b) {
|
|
@@ -964,10 +971,12 @@ var deserializeAws_json1_1CreateLocationNfsCommandError = function (output, cont
|
|
|
964
971
|
case 5: throw _d.sent();
|
|
965
972
|
case 6:
|
|
966
973
|
parsedBody = parsedOutput.body;
|
|
974
|
+
$metadata = deserializeMetadata(output);
|
|
975
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
967
976
|
response = new __BaseException({
|
|
968
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
977
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
969
978
|
$fault: "client",
|
|
970
|
-
$metadata:
|
|
979
|
+
$metadata: $metadata,
|
|
971
980
|
});
|
|
972
981
|
throw __decorateServiceException(response, parsedBody);
|
|
973
982
|
}
|
|
@@ -992,7 +1001,7 @@ export var deserializeAws_json1_1CreateLocationObjectStorageCommand = function (
|
|
|
992
1001
|
});
|
|
993
1002
|
}); };
|
|
994
1003
|
var deserializeAws_json1_1CreateLocationObjectStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
995
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1004
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
996
1005
|
var _c;
|
|
997
1006
|
return __generator(this, function (_d) {
|
|
998
1007
|
switch (_d.label) {
|
|
@@ -1002,7 +1011,6 @@ var deserializeAws_json1_1CreateLocationObjectStorageCommandError = function (ou
|
|
|
1002
1011
|
return [4, parseBody(output.body, context)];
|
|
1003
1012
|
case 1:
|
|
1004
1013
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1005
|
-
errorCode = "UnknownError";
|
|
1006
1014
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
1015
|
_b = errorCode;
|
|
1008
1016
|
switch (_b) {
|
|
@@ -1018,10 +1026,12 @@ var deserializeAws_json1_1CreateLocationObjectStorageCommandError = function (ou
|
|
|
1018
1026
|
case 5: throw _d.sent();
|
|
1019
1027
|
case 6:
|
|
1020
1028
|
parsedBody = parsedOutput.body;
|
|
1029
|
+
$metadata = deserializeMetadata(output);
|
|
1030
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1021
1031
|
response = new __BaseException({
|
|
1022
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1032
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1023
1033
|
$fault: "client",
|
|
1024
|
-
$metadata:
|
|
1034
|
+
$metadata: $metadata,
|
|
1025
1035
|
});
|
|
1026
1036
|
throw __decorateServiceException(response, parsedBody);
|
|
1027
1037
|
}
|
|
@@ -1046,7 +1056,7 @@ export var deserializeAws_json1_1CreateLocationS3Command = function (output, con
|
|
|
1046
1056
|
});
|
|
1047
1057
|
}); };
|
|
1048
1058
|
var deserializeAws_json1_1CreateLocationS3CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1049
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1059
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1050
1060
|
var _c;
|
|
1051
1061
|
return __generator(this, function (_d) {
|
|
1052
1062
|
switch (_d.label) {
|
|
@@ -1056,7 +1066,6 @@ var deserializeAws_json1_1CreateLocationS3CommandError = function (output, conte
|
|
|
1056
1066
|
return [4, parseBody(output.body, context)];
|
|
1057
1067
|
case 1:
|
|
1058
1068
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1059
|
-
errorCode = "UnknownError";
|
|
1060
1069
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
1070
|
_b = errorCode;
|
|
1062
1071
|
switch (_b) {
|
|
@@ -1072,10 +1081,12 @@ var deserializeAws_json1_1CreateLocationS3CommandError = function (output, conte
|
|
|
1072
1081
|
case 5: throw _d.sent();
|
|
1073
1082
|
case 6:
|
|
1074
1083
|
parsedBody = parsedOutput.body;
|
|
1084
|
+
$metadata = deserializeMetadata(output);
|
|
1085
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1075
1086
|
response = new __BaseException({
|
|
1076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1087
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1077
1088
|
$fault: "client",
|
|
1078
|
-
$metadata:
|
|
1089
|
+
$metadata: $metadata,
|
|
1079
1090
|
});
|
|
1080
1091
|
throw __decorateServiceException(response, parsedBody);
|
|
1081
1092
|
}
|
|
@@ -1100,7 +1111,7 @@ export var deserializeAws_json1_1CreateLocationSmbCommand = function (output, co
|
|
|
1100
1111
|
});
|
|
1101
1112
|
}); };
|
|
1102
1113
|
var deserializeAws_json1_1CreateLocationSmbCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1103
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1114
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1104
1115
|
var _c;
|
|
1105
1116
|
return __generator(this, function (_d) {
|
|
1106
1117
|
switch (_d.label) {
|
|
@@ -1110,7 +1121,6 @@ var deserializeAws_json1_1CreateLocationSmbCommandError = function (output, cont
|
|
|
1110
1121
|
return [4, parseBody(output.body, context)];
|
|
1111
1122
|
case 1:
|
|
1112
1123
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1113
|
-
errorCode = "UnknownError";
|
|
1114
1124
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
1125
|
_b = errorCode;
|
|
1116
1126
|
switch (_b) {
|
|
@@ -1126,10 +1136,12 @@ var deserializeAws_json1_1CreateLocationSmbCommandError = function (output, cont
|
|
|
1126
1136
|
case 5: throw _d.sent();
|
|
1127
1137
|
case 6:
|
|
1128
1138
|
parsedBody = parsedOutput.body;
|
|
1139
|
+
$metadata = deserializeMetadata(output);
|
|
1140
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1129
1141
|
response = new __BaseException({
|
|
1130
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1131
1143
|
$fault: "client",
|
|
1132
|
-
$metadata:
|
|
1144
|
+
$metadata: $metadata,
|
|
1133
1145
|
});
|
|
1134
1146
|
throw __decorateServiceException(response, parsedBody);
|
|
1135
1147
|
}
|
|
@@ -1154,7 +1166,7 @@ export var deserializeAws_json1_1CreateTaskCommand = function (output, context)
|
|
|
1154
1166
|
});
|
|
1155
1167
|
}); };
|
|
1156
1168
|
var deserializeAws_json1_1CreateTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1157
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1169
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1158
1170
|
var _c;
|
|
1159
1171
|
return __generator(this, function (_d) {
|
|
1160
1172
|
switch (_d.label) {
|
|
@@ -1164,7 +1176,6 @@ var deserializeAws_json1_1CreateTaskCommandError = function (output, context) {
|
|
|
1164
1176
|
return [4, parseBody(output.body, context)];
|
|
1165
1177
|
case 1:
|
|
1166
1178
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1167
|
-
errorCode = "UnknownError";
|
|
1168
1179
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
1180
|
_b = errorCode;
|
|
1170
1181
|
switch (_b) {
|
|
@@ -1180,10 +1191,12 @@ var deserializeAws_json1_1CreateTaskCommandError = function (output, context) {
|
|
|
1180
1191
|
case 5: throw _d.sent();
|
|
1181
1192
|
case 6:
|
|
1182
1193
|
parsedBody = parsedOutput.body;
|
|
1194
|
+
$metadata = deserializeMetadata(output);
|
|
1195
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1183
1196
|
response = new __BaseException({
|
|
1184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1197
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1185
1198
|
$fault: "client",
|
|
1186
|
-
$metadata:
|
|
1199
|
+
$metadata: $metadata,
|
|
1187
1200
|
});
|
|
1188
1201
|
throw __decorateServiceException(response, parsedBody);
|
|
1189
1202
|
}
|
|
@@ -1208,7 +1221,7 @@ export var deserializeAws_json1_1DeleteAgentCommand = function (output, context)
|
|
|
1208
1221
|
});
|
|
1209
1222
|
}); };
|
|
1210
1223
|
var deserializeAws_json1_1DeleteAgentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1211
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1224
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1212
1225
|
var _c;
|
|
1213
1226
|
return __generator(this, function (_d) {
|
|
1214
1227
|
switch (_d.label) {
|
|
@@ -1218,7 +1231,6 @@ var deserializeAws_json1_1DeleteAgentCommandError = function (output, context) {
|
|
|
1218
1231
|
return [4, parseBody(output.body, context)];
|
|
1219
1232
|
case 1:
|
|
1220
1233
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1221
|
-
errorCode = "UnknownError";
|
|
1222
1234
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1223
1235
|
_b = errorCode;
|
|
1224
1236
|
switch (_b) {
|
|
@@ -1234,10 +1246,12 @@ var deserializeAws_json1_1DeleteAgentCommandError = function (output, context) {
|
|
|
1234
1246
|
case 5: throw _d.sent();
|
|
1235
1247
|
case 6:
|
|
1236
1248
|
parsedBody = parsedOutput.body;
|
|
1249
|
+
$metadata = deserializeMetadata(output);
|
|
1250
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1237
1251
|
response = new __BaseException({
|
|
1238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1252
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1239
1253
|
$fault: "client",
|
|
1240
|
-
$metadata:
|
|
1254
|
+
$metadata: $metadata,
|
|
1241
1255
|
});
|
|
1242
1256
|
throw __decorateServiceException(response, parsedBody);
|
|
1243
1257
|
}
|
|
@@ -1262,7 +1276,7 @@ export var deserializeAws_json1_1DeleteLocationCommand = function (output, conte
|
|
|
1262
1276
|
});
|
|
1263
1277
|
}); };
|
|
1264
1278
|
var deserializeAws_json1_1DeleteLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1265
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1279
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1266
1280
|
var _c;
|
|
1267
1281
|
return __generator(this, function (_d) {
|
|
1268
1282
|
switch (_d.label) {
|
|
@@ -1272,7 +1286,6 @@ var deserializeAws_json1_1DeleteLocationCommandError = function (output, context
|
|
|
1272
1286
|
return [4, parseBody(output.body, context)];
|
|
1273
1287
|
case 1:
|
|
1274
1288
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1275
|
-
errorCode = "UnknownError";
|
|
1276
1289
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
1290
|
_b = errorCode;
|
|
1278
1291
|
switch (_b) {
|
|
@@ -1288,10 +1301,12 @@ var deserializeAws_json1_1DeleteLocationCommandError = function (output, context
|
|
|
1288
1301
|
case 5: throw _d.sent();
|
|
1289
1302
|
case 6:
|
|
1290
1303
|
parsedBody = parsedOutput.body;
|
|
1304
|
+
$metadata = deserializeMetadata(output);
|
|
1305
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1291
1306
|
response = new __BaseException({
|
|
1292
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1307
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1293
1308
|
$fault: "client",
|
|
1294
|
-
$metadata:
|
|
1309
|
+
$metadata: $metadata,
|
|
1295
1310
|
});
|
|
1296
1311
|
throw __decorateServiceException(response, parsedBody);
|
|
1297
1312
|
}
|
|
@@ -1316,7 +1331,7 @@ export var deserializeAws_json1_1DeleteTaskCommand = function (output, context)
|
|
|
1316
1331
|
});
|
|
1317
1332
|
}); };
|
|
1318
1333
|
var deserializeAws_json1_1DeleteTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1319
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1334
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1320
1335
|
var _c;
|
|
1321
1336
|
return __generator(this, function (_d) {
|
|
1322
1337
|
switch (_d.label) {
|
|
@@ -1326,7 +1341,6 @@ var deserializeAws_json1_1DeleteTaskCommandError = function (output, context) {
|
|
|
1326
1341
|
return [4, parseBody(output.body, context)];
|
|
1327
1342
|
case 1:
|
|
1328
1343
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1329
|
-
errorCode = "UnknownError";
|
|
1330
1344
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
1345
|
_b = errorCode;
|
|
1332
1346
|
switch (_b) {
|
|
@@ -1342,10 +1356,12 @@ var deserializeAws_json1_1DeleteTaskCommandError = function (output, context) {
|
|
|
1342
1356
|
case 5: throw _d.sent();
|
|
1343
1357
|
case 6:
|
|
1344
1358
|
parsedBody = parsedOutput.body;
|
|
1359
|
+
$metadata = deserializeMetadata(output);
|
|
1360
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1345
1361
|
response = new __BaseException({
|
|
1346
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1347
1363
|
$fault: "client",
|
|
1348
|
-
$metadata:
|
|
1364
|
+
$metadata: $metadata,
|
|
1349
1365
|
});
|
|
1350
1366
|
throw __decorateServiceException(response, parsedBody);
|
|
1351
1367
|
}
|
|
@@ -1370,7 +1386,7 @@ export var deserializeAws_json1_1DescribeAgentCommand = function (output, contex
|
|
|
1370
1386
|
});
|
|
1371
1387
|
}); };
|
|
1372
1388
|
var deserializeAws_json1_1DescribeAgentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1373
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1389
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1374
1390
|
var _c;
|
|
1375
1391
|
return __generator(this, function (_d) {
|
|
1376
1392
|
switch (_d.label) {
|
|
@@ -1380,7 +1396,6 @@ var deserializeAws_json1_1DescribeAgentCommandError = function (output, context)
|
|
|
1380
1396
|
return [4, parseBody(output.body, context)];
|
|
1381
1397
|
case 1:
|
|
1382
1398
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1383
|
-
errorCode = "UnknownError";
|
|
1384
1399
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
1400
|
_b = errorCode;
|
|
1386
1401
|
switch (_b) {
|
|
@@ -1396,10 +1411,12 @@ var deserializeAws_json1_1DescribeAgentCommandError = function (output, context)
|
|
|
1396
1411
|
case 5: throw _d.sent();
|
|
1397
1412
|
case 6:
|
|
1398
1413
|
parsedBody = parsedOutput.body;
|
|
1414
|
+
$metadata = deserializeMetadata(output);
|
|
1415
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1399
1416
|
response = new __BaseException({
|
|
1400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1417
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1401
1418
|
$fault: "client",
|
|
1402
|
-
$metadata:
|
|
1419
|
+
$metadata: $metadata,
|
|
1403
1420
|
});
|
|
1404
1421
|
throw __decorateServiceException(response, parsedBody);
|
|
1405
1422
|
}
|
|
@@ -1424,7 +1441,7 @@ export var deserializeAws_json1_1DescribeLocationEfsCommand = function (output,
|
|
|
1424
1441
|
});
|
|
1425
1442
|
}); };
|
|
1426
1443
|
var deserializeAws_json1_1DescribeLocationEfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1427
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1444
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1428
1445
|
var _c;
|
|
1429
1446
|
return __generator(this, function (_d) {
|
|
1430
1447
|
switch (_d.label) {
|
|
@@ -1434,7 +1451,6 @@ var deserializeAws_json1_1DescribeLocationEfsCommandError = function (output, co
|
|
|
1434
1451
|
return [4, parseBody(output.body, context)];
|
|
1435
1452
|
case 1:
|
|
1436
1453
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1437
|
-
errorCode = "UnknownError";
|
|
1438
1454
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1439
1455
|
_b = errorCode;
|
|
1440
1456
|
switch (_b) {
|
|
@@ -1450,10 +1466,12 @@ var deserializeAws_json1_1DescribeLocationEfsCommandError = function (output, co
|
|
|
1450
1466
|
case 5: throw _d.sent();
|
|
1451
1467
|
case 6:
|
|
1452
1468
|
parsedBody = parsedOutput.body;
|
|
1469
|
+
$metadata = deserializeMetadata(output);
|
|
1470
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1453
1471
|
response = new __BaseException({
|
|
1454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1472
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1455
1473
|
$fault: "client",
|
|
1456
|
-
$metadata:
|
|
1474
|
+
$metadata: $metadata,
|
|
1457
1475
|
});
|
|
1458
1476
|
throw __decorateServiceException(response, parsedBody);
|
|
1459
1477
|
}
|
|
@@ -1478,7 +1496,7 @@ export var deserializeAws_json1_1DescribeLocationFsxLustreCommand = function (ou
|
|
|
1478
1496
|
});
|
|
1479
1497
|
}); };
|
|
1480
1498
|
var deserializeAws_json1_1DescribeLocationFsxLustreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1481
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1499
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1482
1500
|
var _c;
|
|
1483
1501
|
return __generator(this, function (_d) {
|
|
1484
1502
|
switch (_d.label) {
|
|
@@ -1488,7 +1506,6 @@ var deserializeAws_json1_1DescribeLocationFsxLustreCommandError = function (outp
|
|
|
1488
1506
|
return [4, parseBody(output.body, context)];
|
|
1489
1507
|
case 1:
|
|
1490
1508
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1491
|
-
errorCode = "UnknownError";
|
|
1492
1509
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
1510
|
_b = errorCode;
|
|
1494
1511
|
switch (_b) {
|
|
@@ -1504,10 +1521,12 @@ var deserializeAws_json1_1DescribeLocationFsxLustreCommandError = function (outp
|
|
|
1504
1521
|
case 5: throw _d.sent();
|
|
1505
1522
|
case 6:
|
|
1506
1523
|
parsedBody = parsedOutput.body;
|
|
1524
|
+
$metadata = deserializeMetadata(output);
|
|
1525
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1507
1526
|
response = new __BaseException({
|
|
1508
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1509
1528
|
$fault: "client",
|
|
1510
|
-
$metadata:
|
|
1529
|
+
$metadata: $metadata,
|
|
1511
1530
|
});
|
|
1512
1531
|
throw __decorateServiceException(response, parsedBody);
|
|
1513
1532
|
}
|
|
@@ -1532,7 +1551,7 @@ export var deserializeAws_json1_1DescribeLocationFsxOntapCommand = function (out
|
|
|
1532
1551
|
});
|
|
1533
1552
|
}); };
|
|
1534
1553
|
var deserializeAws_json1_1DescribeLocationFsxOntapCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1535
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1554
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1536
1555
|
var _c;
|
|
1537
1556
|
return __generator(this, function (_d) {
|
|
1538
1557
|
switch (_d.label) {
|
|
@@ -1542,7 +1561,6 @@ var deserializeAws_json1_1DescribeLocationFsxOntapCommandError = function (outpu
|
|
|
1542
1561
|
return [4, parseBody(output.body, context)];
|
|
1543
1562
|
case 1:
|
|
1544
1563
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1545
|
-
errorCode = "UnknownError";
|
|
1546
1564
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1565
|
_b = errorCode;
|
|
1548
1566
|
switch (_b) {
|
|
@@ -1558,10 +1576,12 @@ var deserializeAws_json1_1DescribeLocationFsxOntapCommandError = function (outpu
|
|
|
1558
1576
|
case 5: throw _d.sent();
|
|
1559
1577
|
case 6:
|
|
1560
1578
|
parsedBody = parsedOutput.body;
|
|
1579
|
+
$metadata = deserializeMetadata(output);
|
|
1580
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1561
1581
|
response = new __BaseException({
|
|
1562
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1582
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1563
1583
|
$fault: "client",
|
|
1564
|
-
$metadata:
|
|
1584
|
+
$metadata: $metadata,
|
|
1565
1585
|
});
|
|
1566
1586
|
throw __decorateServiceException(response, parsedBody);
|
|
1567
1587
|
}
|
|
@@ -1586,7 +1606,7 @@ export var deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand = function (o
|
|
|
1586
1606
|
});
|
|
1587
1607
|
}); };
|
|
1588
1608
|
var deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1589
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1609
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1590
1610
|
var _c;
|
|
1591
1611
|
return __generator(this, function (_d) {
|
|
1592
1612
|
switch (_d.label) {
|
|
@@ -1596,7 +1616,6 @@ var deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = function (out
|
|
|
1596
1616
|
return [4, parseBody(output.body, context)];
|
|
1597
1617
|
case 1:
|
|
1598
1618
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1599
|
-
errorCode = "UnknownError";
|
|
1600
1619
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1601
1620
|
_b = errorCode;
|
|
1602
1621
|
switch (_b) {
|
|
@@ -1612,10 +1631,12 @@ var deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = function (out
|
|
|
1612
1631
|
case 5: throw _d.sent();
|
|
1613
1632
|
case 6:
|
|
1614
1633
|
parsedBody = parsedOutput.body;
|
|
1634
|
+
$metadata = deserializeMetadata(output);
|
|
1635
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1615
1636
|
response = new __BaseException({
|
|
1616
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1617
1638
|
$fault: "client",
|
|
1618
|
-
$metadata:
|
|
1639
|
+
$metadata: $metadata,
|
|
1619
1640
|
});
|
|
1620
1641
|
throw __decorateServiceException(response, parsedBody);
|
|
1621
1642
|
}
|
|
@@ -1640,7 +1661,7 @@ export var deserializeAws_json1_1DescribeLocationFsxWindowsCommand = function (o
|
|
|
1640
1661
|
});
|
|
1641
1662
|
}); };
|
|
1642
1663
|
var deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1643
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1664
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1644
1665
|
var _c;
|
|
1645
1666
|
return __generator(this, function (_d) {
|
|
1646
1667
|
switch (_d.label) {
|
|
@@ -1650,7 +1671,6 @@ var deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = function (out
|
|
|
1650
1671
|
return [4, parseBody(output.body, context)];
|
|
1651
1672
|
case 1:
|
|
1652
1673
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1653
|
-
errorCode = "UnknownError";
|
|
1654
1674
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
1675
|
_b = errorCode;
|
|
1656
1676
|
switch (_b) {
|
|
@@ -1666,10 +1686,12 @@ var deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = function (out
|
|
|
1666
1686
|
case 5: throw _d.sent();
|
|
1667
1687
|
case 6:
|
|
1668
1688
|
parsedBody = parsedOutput.body;
|
|
1689
|
+
$metadata = deserializeMetadata(output);
|
|
1690
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1669
1691
|
response = new __BaseException({
|
|
1670
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1671
1693
|
$fault: "client",
|
|
1672
|
-
$metadata:
|
|
1694
|
+
$metadata: $metadata,
|
|
1673
1695
|
});
|
|
1674
1696
|
throw __decorateServiceException(response, parsedBody);
|
|
1675
1697
|
}
|
|
@@ -1694,7 +1716,7 @@ export var deserializeAws_json1_1DescribeLocationHdfsCommand = function (output,
|
|
|
1694
1716
|
});
|
|
1695
1717
|
}); };
|
|
1696
1718
|
var deserializeAws_json1_1DescribeLocationHdfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1697
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1719
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1698
1720
|
var _c;
|
|
1699
1721
|
return __generator(this, function (_d) {
|
|
1700
1722
|
switch (_d.label) {
|
|
@@ -1704,7 +1726,6 @@ var deserializeAws_json1_1DescribeLocationHdfsCommandError = function (output, c
|
|
|
1704
1726
|
return [4, parseBody(output.body, context)];
|
|
1705
1727
|
case 1:
|
|
1706
1728
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1707
|
-
errorCode = "UnknownError";
|
|
1708
1729
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
1730
|
_b = errorCode;
|
|
1710
1731
|
switch (_b) {
|
|
@@ -1720,10 +1741,12 @@ var deserializeAws_json1_1DescribeLocationHdfsCommandError = function (output, c
|
|
|
1720
1741
|
case 5: throw _d.sent();
|
|
1721
1742
|
case 6:
|
|
1722
1743
|
parsedBody = parsedOutput.body;
|
|
1744
|
+
$metadata = deserializeMetadata(output);
|
|
1745
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1723
1746
|
response = new __BaseException({
|
|
1724
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1747
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1725
1748
|
$fault: "client",
|
|
1726
|
-
$metadata:
|
|
1749
|
+
$metadata: $metadata,
|
|
1727
1750
|
});
|
|
1728
1751
|
throw __decorateServiceException(response, parsedBody);
|
|
1729
1752
|
}
|
|
@@ -1748,7 +1771,7 @@ export var deserializeAws_json1_1DescribeLocationNfsCommand = function (output,
|
|
|
1748
1771
|
});
|
|
1749
1772
|
}); };
|
|
1750
1773
|
var deserializeAws_json1_1DescribeLocationNfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1751
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1774
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1752
1775
|
var _c;
|
|
1753
1776
|
return __generator(this, function (_d) {
|
|
1754
1777
|
switch (_d.label) {
|
|
@@ -1758,7 +1781,6 @@ var deserializeAws_json1_1DescribeLocationNfsCommandError = function (output, co
|
|
|
1758
1781
|
return [4, parseBody(output.body, context)];
|
|
1759
1782
|
case 1:
|
|
1760
1783
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1761
|
-
errorCode = "UnknownError";
|
|
1762
1784
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
1785
|
_b = errorCode;
|
|
1764
1786
|
switch (_b) {
|
|
@@ -1774,10 +1796,12 @@ var deserializeAws_json1_1DescribeLocationNfsCommandError = function (output, co
|
|
|
1774
1796
|
case 5: throw _d.sent();
|
|
1775
1797
|
case 6:
|
|
1776
1798
|
parsedBody = parsedOutput.body;
|
|
1799
|
+
$metadata = deserializeMetadata(output);
|
|
1800
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1777
1801
|
response = new __BaseException({
|
|
1778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1779
1803
|
$fault: "client",
|
|
1780
|
-
$metadata:
|
|
1804
|
+
$metadata: $metadata,
|
|
1781
1805
|
});
|
|
1782
1806
|
throw __decorateServiceException(response, parsedBody);
|
|
1783
1807
|
}
|
|
@@ -1802,7 +1826,7 @@ export var deserializeAws_json1_1DescribeLocationObjectStorageCommand = function
|
|
|
1802
1826
|
});
|
|
1803
1827
|
}); };
|
|
1804
1828
|
var deserializeAws_json1_1DescribeLocationObjectStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1805
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1829
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1806
1830
|
var _c;
|
|
1807
1831
|
return __generator(this, function (_d) {
|
|
1808
1832
|
switch (_d.label) {
|
|
@@ -1812,7 +1836,6 @@ var deserializeAws_json1_1DescribeLocationObjectStorageCommandError = function (
|
|
|
1812
1836
|
return [4, parseBody(output.body, context)];
|
|
1813
1837
|
case 1:
|
|
1814
1838
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1815
|
-
errorCode = "UnknownError";
|
|
1816
1839
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
1840
|
_b = errorCode;
|
|
1818
1841
|
switch (_b) {
|
|
@@ -1828,10 +1851,12 @@ var deserializeAws_json1_1DescribeLocationObjectStorageCommandError = function (
|
|
|
1828
1851
|
case 5: throw _d.sent();
|
|
1829
1852
|
case 6:
|
|
1830
1853
|
parsedBody = parsedOutput.body;
|
|
1854
|
+
$metadata = deserializeMetadata(output);
|
|
1855
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1831
1856
|
response = new __BaseException({
|
|
1832
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1857
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1833
1858
|
$fault: "client",
|
|
1834
|
-
$metadata:
|
|
1859
|
+
$metadata: $metadata,
|
|
1835
1860
|
});
|
|
1836
1861
|
throw __decorateServiceException(response, parsedBody);
|
|
1837
1862
|
}
|
|
@@ -1856,7 +1881,7 @@ export var deserializeAws_json1_1DescribeLocationS3Command = function (output, c
|
|
|
1856
1881
|
});
|
|
1857
1882
|
}); };
|
|
1858
1883
|
var deserializeAws_json1_1DescribeLocationS3CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1859
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1884
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1860
1885
|
var _c;
|
|
1861
1886
|
return __generator(this, function (_d) {
|
|
1862
1887
|
switch (_d.label) {
|
|
@@ -1866,7 +1891,6 @@ var deserializeAws_json1_1DescribeLocationS3CommandError = function (output, con
|
|
|
1866
1891
|
return [4, parseBody(output.body, context)];
|
|
1867
1892
|
case 1:
|
|
1868
1893
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1869
|
-
errorCode = "UnknownError";
|
|
1870
1894
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
1895
|
_b = errorCode;
|
|
1872
1896
|
switch (_b) {
|
|
@@ -1882,10 +1906,12 @@ var deserializeAws_json1_1DescribeLocationS3CommandError = function (output, con
|
|
|
1882
1906
|
case 5: throw _d.sent();
|
|
1883
1907
|
case 6:
|
|
1884
1908
|
parsedBody = parsedOutput.body;
|
|
1909
|
+
$metadata = deserializeMetadata(output);
|
|
1910
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1885
1911
|
response = new __BaseException({
|
|
1886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1912
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1887
1913
|
$fault: "client",
|
|
1888
|
-
$metadata:
|
|
1914
|
+
$metadata: $metadata,
|
|
1889
1915
|
});
|
|
1890
1916
|
throw __decorateServiceException(response, parsedBody);
|
|
1891
1917
|
}
|
|
@@ -1910,7 +1936,7 @@ export var deserializeAws_json1_1DescribeLocationSmbCommand = function (output,
|
|
|
1910
1936
|
});
|
|
1911
1937
|
}); };
|
|
1912
1938
|
var deserializeAws_json1_1DescribeLocationSmbCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1913
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1939
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1914
1940
|
var _c;
|
|
1915
1941
|
return __generator(this, function (_d) {
|
|
1916
1942
|
switch (_d.label) {
|
|
@@ -1920,7 +1946,6 @@ var deserializeAws_json1_1DescribeLocationSmbCommandError = function (output, co
|
|
|
1920
1946
|
return [4, parseBody(output.body, context)];
|
|
1921
1947
|
case 1:
|
|
1922
1948
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1923
|
-
errorCode = "UnknownError";
|
|
1924
1949
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
1950
|
_b = errorCode;
|
|
1926
1951
|
switch (_b) {
|
|
@@ -1936,10 +1961,12 @@ var deserializeAws_json1_1DescribeLocationSmbCommandError = function (output, co
|
|
|
1936
1961
|
case 5: throw _d.sent();
|
|
1937
1962
|
case 6:
|
|
1938
1963
|
parsedBody = parsedOutput.body;
|
|
1964
|
+
$metadata = deserializeMetadata(output);
|
|
1965
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1939
1966
|
response = new __BaseException({
|
|
1940
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1941
1968
|
$fault: "client",
|
|
1942
|
-
$metadata:
|
|
1969
|
+
$metadata: $metadata,
|
|
1943
1970
|
});
|
|
1944
1971
|
throw __decorateServiceException(response, parsedBody);
|
|
1945
1972
|
}
|
|
@@ -1964,7 +1991,7 @@ export var deserializeAws_json1_1DescribeTaskCommand = function (output, context
|
|
|
1964
1991
|
});
|
|
1965
1992
|
}); };
|
|
1966
1993
|
var deserializeAws_json1_1DescribeTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1967
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1994
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1968
1995
|
var _c;
|
|
1969
1996
|
return __generator(this, function (_d) {
|
|
1970
1997
|
switch (_d.label) {
|
|
@@ -1974,7 +2001,6 @@ var deserializeAws_json1_1DescribeTaskCommandError = function (output, context)
|
|
|
1974
2001
|
return [4, parseBody(output.body, context)];
|
|
1975
2002
|
case 1:
|
|
1976
2003
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1977
|
-
errorCode = "UnknownError";
|
|
1978
2004
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
2005
|
_b = errorCode;
|
|
1980
2006
|
switch (_b) {
|
|
@@ -1990,10 +2016,12 @@ var deserializeAws_json1_1DescribeTaskCommandError = function (output, context)
|
|
|
1990
2016
|
case 5: throw _d.sent();
|
|
1991
2017
|
case 6:
|
|
1992
2018
|
parsedBody = parsedOutput.body;
|
|
2019
|
+
$metadata = deserializeMetadata(output);
|
|
2020
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1993
2021
|
response = new __BaseException({
|
|
1994
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2022
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1995
2023
|
$fault: "client",
|
|
1996
|
-
$metadata:
|
|
2024
|
+
$metadata: $metadata,
|
|
1997
2025
|
});
|
|
1998
2026
|
throw __decorateServiceException(response, parsedBody);
|
|
1999
2027
|
}
|
|
@@ -2018,7 +2046,7 @@ export var deserializeAws_json1_1DescribeTaskExecutionCommand = function (output
|
|
|
2018
2046
|
});
|
|
2019
2047
|
}); };
|
|
2020
2048
|
var deserializeAws_json1_1DescribeTaskExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2021
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2049
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2022
2050
|
var _c;
|
|
2023
2051
|
return __generator(this, function (_d) {
|
|
2024
2052
|
switch (_d.label) {
|
|
@@ -2028,7 +2056,6 @@ var deserializeAws_json1_1DescribeTaskExecutionCommandError = function (output,
|
|
|
2028
2056
|
return [4, parseBody(output.body, context)];
|
|
2029
2057
|
case 1:
|
|
2030
2058
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2031
|
-
errorCode = "UnknownError";
|
|
2032
2059
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
2060
|
_b = errorCode;
|
|
2034
2061
|
switch (_b) {
|
|
@@ -2044,10 +2071,12 @@ var deserializeAws_json1_1DescribeTaskExecutionCommandError = function (output,
|
|
|
2044
2071
|
case 5: throw _d.sent();
|
|
2045
2072
|
case 6:
|
|
2046
2073
|
parsedBody = parsedOutput.body;
|
|
2074
|
+
$metadata = deserializeMetadata(output);
|
|
2075
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2047
2076
|
response = new __BaseException({
|
|
2048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2077
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2049
2078
|
$fault: "client",
|
|
2050
|
-
$metadata:
|
|
2079
|
+
$metadata: $metadata,
|
|
2051
2080
|
});
|
|
2052
2081
|
throw __decorateServiceException(response, parsedBody);
|
|
2053
2082
|
}
|
|
@@ -2072,7 +2101,7 @@ export var deserializeAws_json1_1ListAgentsCommand = function (output, context)
|
|
|
2072
2101
|
});
|
|
2073
2102
|
}); };
|
|
2074
2103
|
var deserializeAws_json1_1ListAgentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2075
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2104
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2076
2105
|
var _c;
|
|
2077
2106
|
return __generator(this, function (_d) {
|
|
2078
2107
|
switch (_d.label) {
|
|
@@ -2082,7 +2111,6 @@ var deserializeAws_json1_1ListAgentsCommandError = function (output, context) {
|
|
|
2082
2111
|
return [4, parseBody(output.body, context)];
|
|
2083
2112
|
case 1:
|
|
2084
2113
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2085
|
-
errorCode = "UnknownError";
|
|
2086
2114
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
2115
|
_b = errorCode;
|
|
2088
2116
|
switch (_b) {
|
|
@@ -2098,10 +2126,12 @@ var deserializeAws_json1_1ListAgentsCommandError = function (output, context) {
|
|
|
2098
2126
|
case 5: throw _d.sent();
|
|
2099
2127
|
case 6:
|
|
2100
2128
|
parsedBody = parsedOutput.body;
|
|
2129
|
+
$metadata = deserializeMetadata(output);
|
|
2130
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2101
2131
|
response = new __BaseException({
|
|
2102
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2132
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2103
2133
|
$fault: "client",
|
|
2104
|
-
$metadata:
|
|
2134
|
+
$metadata: $metadata,
|
|
2105
2135
|
});
|
|
2106
2136
|
throw __decorateServiceException(response, parsedBody);
|
|
2107
2137
|
}
|
|
@@ -2126,7 +2156,7 @@ export var deserializeAws_json1_1ListLocationsCommand = function (output, contex
|
|
|
2126
2156
|
});
|
|
2127
2157
|
}); };
|
|
2128
2158
|
var deserializeAws_json1_1ListLocationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2129
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2159
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2130
2160
|
var _c;
|
|
2131
2161
|
return __generator(this, function (_d) {
|
|
2132
2162
|
switch (_d.label) {
|
|
@@ -2136,7 +2166,6 @@ var deserializeAws_json1_1ListLocationsCommandError = function (output, context)
|
|
|
2136
2166
|
return [4, parseBody(output.body, context)];
|
|
2137
2167
|
case 1:
|
|
2138
2168
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2139
|
-
errorCode = "UnknownError";
|
|
2140
2169
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
2170
|
_b = errorCode;
|
|
2142
2171
|
switch (_b) {
|
|
@@ -2152,10 +2181,12 @@ var deserializeAws_json1_1ListLocationsCommandError = function (output, context)
|
|
|
2152
2181
|
case 5: throw _d.sent();
|
|
2153
2182
|
case 6:
|
|
2154
2183
|
parsedBody = parsedOutput.body;
|
|
2184
|
+
$metadata = deserializeMetadata(output);
|
|
2185
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2155
2186
|
response = new __BaseException({
|
|
2156
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2187
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2157
2188
|
$fault: "client",
|
|
2158
|
-
$metadata:
|
|
2189
|
+
$metadata: $metadata,
|
|
2159
2190
|
});
|
|
2160
2191
|
throw __decorateServiceException(response, parsedBody);
|
|
2161
2192
|
}
|
|
@@ -2180,7 +2211,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
2180
2211
|
});
|
|
2181
2212
|
}); };
|
|
2182
2213
|
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2183
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2214
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2184
2215
|
var _c;
|
|
2185
2216
|
return __generator(this, function (_d) {
|
|
2186
2217
|
switch (_d.label) {
|
|
@@ -2190,7 +2221,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2190
2221
|
return [4, parseBody(output.body, context)];
|
|
2191
2222
|
case 1:
|
|
2192
2223
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2193
|
-
errorCode = "UnknownError";
|
|
2194
2224
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
2225
|
_b = errorCode;
|
|
2196
2226
|
switch (_b) {
|
|
@@ -2206,10 +2236,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2206
2236
|
case 5: throw _d.sent();
|
|
2207
2237
|
case 6:
|
|
2208
2238
|
parsedBody = parsedOutput.body;
|
|
2239
|
+
$metadata = deserializeMetadata(output);
|
|
2240
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2209
2241
|
response = new __BaseException({
|
|
2210
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2242
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2211
2243
|
$fault: "client",
|
|
2212
|
-
$metadata:
|
|
2244
|
+
$metadata: $metadata,
|
|
2213
2245
|
});
|
|
2214
2246
|
throw __decorateServiceException(response, parsedBody);
|
|
2215
2247
|
}
|
|
@@ -2234,7 +2266,7 @@ export var deserializeAws_json1_1ListTaskExecutionsCommand = function (output, c
|
|
|
2234
2266
|
});
|
|
2235
2267
|
}); };
|
|
2236
2268
|
var deserializeAws_json1_1ListTaskExecutionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2237
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2269
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2238
2270
|
var _c;
|
|
2239
2271
|
return __generator(this, function (_d) {
|
|
2240
2272
|
switch (_d.label) {
|
|
@@ -2244,7 +2276,6 @@ var deserializeAws_json1_1ListTaskExecutionsCommandError = function (output, con
|
|
|
2244
2276
|
return [4, parseBody(output.body, context)];
|
|
2245
2277
|
case 1:
|
|
2246
2278
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2247
|
-
errorCode = "UnknownError";
|
|
2248
2279
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2249
2280
|
_b = errorCode;
|
|
2250
2281
|
switch (_b) {
|
|
@@ -2260,10 +2291,12 @@ var deserializeAws_json1_1ListTaskExecutionsCommandError = function (output, con
|
|
|
2260
2291
|
case 5: throw _d.sent();
|
|
2261
2292
|
case 6:
|
|
2262
2293
|
parsedBody = parsedOutput.body;
|
|
2294
|
+
$metadata = deserializeMetadata(output);
|
|
2295
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2263
2296
|
response = new __BaseException({
|
|
2264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2265
2298
|
$fault: "client",
|
|
2266
|
-
$metadata:
|
|
2299
|
+
$metadata: $metadata,
|
|
2267
2300
|
});
|
|
2268
2301
|
throw __decorateServiceException(response, parsedBody);
|
|
2269
2302
|
}
|
|
@@ -2288,7 +2321,7 @@ export var deserializeAws_json1_1ListTasksCommand = function (output, context) {
|
|
|
2288
2321
|
});
|
|
2289
2322
|
}); };
|
|
2290
2323
|
var deserializeAws_json1_1ListTasksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2291
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2324
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2292
2325
|
var _c;
|
|
2293
2326
|
return __generator(this, function (_d) {
|
|
2294
2327
|
switch (_d.label) {
|
|
@@ -2298,7 +2331,6 @@ var deserializeAws_json1_1ListTasksCommandError = function (output, context) { r
|
|
|
2298
2331
|
return [4, parseBody(output.body, context)];
|
|
2299
2332
|
case 1:
|
|
2300
2333
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2301
|
-
errorCode = "UnknownError";
|
|
2302
2334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
2335
|
_b = errorCode;
|
|
2304
2336
|
switch (_b) {
|
|
@@ -2314,10 +2346,12 @@ var deserializeAws_json1_1ListTasksCommandError = function (output, context) { r
|
|
|
2314
2346
|
case 5: throw _d.sent();
|
|
2315
2347
|
case 6:
|
|
2316
2348
|
parsedBody = parsedOutput.body;
|
|
2349
|
+
$metadata = deserializeMetadata(output);
|
|
2350
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2317
2351
|
response = new __BaseException({
|
|
2318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2352
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2319
2353
|
$fault: "client",
|
|
2320
|
-
$metadata:
|
|
2354
|
+
$metadata: $metadata,
|
|
2321
2355
|
});
|
|
2322
2356
|
throw __decorateServiceException(response, parsedBody);
|
|
2323
2357
|
}
|
|
@@ -2342,7 +2376,7 @@ export var deserializeAws_json1_1StartTaskExecutionCommand = function (output, c
|
|
|
2342
2376
|
});
|
|
2343
2377
|
}); };
|
|
2344
2378
|
var deserializeAws_json1_1StartTaskExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2345
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2379
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2346
2380
|
var _c;
|
|
2347
2381
|
return __generator(this, function (_d) {
|
|
2348
2382
|
switch (_d.label) {
|
|
@@ -2352,7 +2386,6 @@ var deserializeAws_json1_1StartTaskExecutionCommandError = function (output, con
|
|
|
2352
2386
|
return [4, parseBody(output.body, context)];
|
|
2353
2387
|
case 1:
|
|
2354
2388
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2355
|
-
errorCode = "UnknownError";
|
|
2356
2389
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
2390
|
_b = errorCode;
|
|
2358
2391
|
switch (_b) {
|
|
@@ -2368,10 +2401,12 @@ var deserializeAws_json1_1StartTaskExecutionCommandError = function (output, con
|
|
|
2368
2401
|
case 5: throw _d.sent();
|
|
2369
2402
|
case 6:
|
|
2370
2403
|
parsedBody = parsedOutput.body;
|
|
2404
|
+
$metadata = deserializeMetadata(output);
|
|
2405
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2371
2406
|
response = new __BaseException({
|
|
2372
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2373
2408
|
$fault: "client",
|
|
2374
|
-
$metadata:
|
|
2409
|
+
$metadata: $metadata,
|
|
2375
2410
|
});
|
|
2376
2411
|
throw __decorateServiceException(response, parsedBody);
|
|
2377
2412
|
}
|
|
@@ -2396,7 +2431,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
2396
2431
|
});
|
|
2397
2432
|
}); };
|
|
2398
2433
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2399
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2434
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2400
2435
|
var _c;
|
|
2401
2436
|
return __generator(this, function (_d) {
|
|
2402
2437
|
switch (_d.label) {
|
|
@@ -2406,7 +2441,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2406
2441
|
return [4, parseBody(output.body, context)];
|
|
2407
2442
|
case 1:
|
|
2408
2443
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2409
|
-
errorCode = "UnknownError";
|
|
2410
2444
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
2445
|
_b = errorCode;
|
|
2412
2446
|
switch (_b) {
|
|
@@ -2422,10 +2456,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2422
2456
|
case 5: throw _d.sent();
|
|
2423
2457
|
case 6:
|
|
2424
2458
|
parsedBody = parsedOutput.body;
|
|
2459
|
+
$metadata = deserializeMetadata(output);
|
|
2460
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2425
2461
|
response = new __BaseException({
|
|
2426
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2462
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2427
2463
|
$fault: "client",
|
|
2428
|
-
$metadata:
|
|
2464
|
+
$metadata: $metadata,
|
|
2429
2465
|
});
|
|
2430
2466
|
throw __decorateServiceException(response, parsedBody);
|
|
2431
2467
|
}
|
|
@@ -2450,7 +2486,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
2450
2486
|
});
|
|
2451
2487
|
}); };
|
|
2452
2488
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2453
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2489
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2454
2490
|
var _c;
|
|
2455
2491
|
return __generator(this, function (_d) {
|
|
2456
2492
|
switch (_d.label) {
|
|
@@ -2460,7 +2496,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2460
2496
|
return [4, parseBody(output.body, context)];
|
|
2461
2497
|
case 1:
|
|
2462
2498
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2463
|
-
errorCode = "UnknownError";
|
|
2464
2499
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2500
|
_b = errorCode;
|
|
2466
2501
|
switch (_b) {
|
|
@@ -2476,10 +2511,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2476
2511
|
case 5: throw _d.sent();
|
|
2477
2512
|
case 6:
|
|
2478
2513
|
parsedBody = parsedOutput.body;
|
|
2514
|
+
$metadata = deserializeMetadata(output);
|
|
2515
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2479
2516
|
response = new __BaseException({
|
|
2480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2517
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2481
2518
|
$fault: "client",
|
|
2482
|
-
$metadata:
|
|
2519
|
+
$metadata: $metadata,
|
|
2483
2520
|
});
|
|
2484
2521
|
throw __decorateServiceException(response, parsedBody);
|
|
2485
2522
|
}
|
|
@@ -2504,7 +2541,7 @@ export var deserializeAws_json1_1UpdateAgentCommand = function (output, context)
|
|
|
2504
2541
|
});
|
|
2505
2542
|
}); };
|
|
2506
2543
|
var deserializeAws_json1_1UpdateAgentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2507
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2544
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2508
2545
|
var _c;
|
|
2509
2546
|
return __generator(this, function (_d) {
|
|
2510
2547
|
switch (_d.label) {
|
|
@@ -2514,7 +2551,6 @@ var deserializeAws_json1_1UpdateAgentCommandError = function (output, context) {
|
|
|
2514
2551
|
return [4, parseBody(output.body, context)];
|
|
2515
2552
|
case 1:
|
|
2516
2553
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2517
|
-
errorCode = "UnknownError";
|
|
2518
2554
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2519
2555
|
_b = errorCode;
|
|
2520
2556
|
switch (_b) {
|
|
@@ -2530,10 +2566,12 @@ var deserializeAws_json1_1UpdateAgentCommandError = function (output, context) {
|
|
|
2530
2566
|
case 5: throw _d.sent();
|
|
2531
2567
|
case 6:
|
|
2532
2568
|
parsedBody = parsedOutput.body;
|
|
2569
|
+
$metadata = deserializeMetadata(output);
|
|
2570
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2533
2571
|
response = new __BaseException({
|
|
2534
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2535
2573
|
$fault: "client",
|
|
2536
|
-
$metadata:
|
|
2574
|
+
$metadata: $metadata,
|
|
2537
2575
|
});
|
|
2538
2576
|
throw __decorateServiceException(response, parsedBody);
|
|
2539
2577
|
}
|
|
@@ -2558,7 +2596,7 @@ export var deserializeAws_json1_1UpdateLocationHdfsCommand = function (output, c
|
|
|
2558
2596
|
});
|
|
2559
2597
|
}); };
|
|
2560
2598
|
var deserializeAws_json1_1UpdateLocationHdfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2561
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2599
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2562
2600
|
var _c;
|
|
2563
2601
|
return __generator(this, function (_d) {
|
|
2564
2602
|
switch (_d.label) {
|
|
@@ -2568,7 +2606,6 @@ var deserializeAws_json1_1UpdateLocationHdfsCommandError = function (output, con
|
|
|
2568
2606
|
return [4, parseBody(output.body, context)];
|
|
2569
2607
|
case 1:
|
|
2570
2608
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2571
|
-
errorCode = "UnknownError";
|
|
2572
2609
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2573
2610
|
_b = errorCode;
|
|
2574
2611
|
switch (_b) {
|
|
@@ -2584,10 +2621,12 @@ var deserializeAws_json1_1UpdateLocationHdfsCommandError = function (output, con
|
|
|
2584
2621
|
case 5: throw _d.sent();
|
|
2585
2622
|
case 6:
|
|
2586
2623
|
parsedBody = parsedOutput.body;
|
|
2624
|
+
$metadata = deserializeMetadata(output);
|
|
2625
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2587
2626
|
response = new __BaseException({
|
|
2588
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2627
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2589
2628
|
$fault: "client",
|
|
2590
|
-
$metadata:
|
|
2629
|
+
$metadata: $metadata,
|
|
2591
2630
|
});
|
|
2592
2631
|
throw __decorateServiceException(response, parsedBody);
|
|
2593
2632
|
}
|
|
@@ -2612,7 +2651,7 @@ export var deserializeAws_json1_1UpdateLocationNfsCommand = function (output, co
|
|
|
2612
2651
|
});
|
|
2613
2652
|
}); };
|
|
2614
2653
|
var deserializeAws_json1_1UpdateLocationNfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2615
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2654
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2616
2655
|
var _c;
|
|
2617
2656
|
return __generator(this, function (_d) {
|
|
2618
2657
|
switch (_d.label) {
|
|
@@ -2622,7 +2661,6 @@ var deserializeAws_json1_1UpdateLocationNfsCommandError = function (output, cont
|
|
|
2622
2661
|
return [4, parseBody(output.body, context)];
|
|
2623
2662
|
case 1:
|
|
2624
2663
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2625
|
-
errorCode = "UnknownError";
|
|
2626
2664
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2627
2665
|
_b = errorCode;
|
|
2628
2666
|
switch (_b) {
|
|
@@ -2638,10 +2676,12 @@ var deserializeAws_json1_1UpdateLocationNfsCommandError = function (output, cont
|
|
|
2638
2676
|
case 5: throw _d.sent();
|
|
2639
2677
|
case 6:
|
|
2640
2678
|
parsedBody = parsedOutput.body;
|
|
2679
|
+
$metadata = deserializeMetadata(output);
|
|
2680
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2641
2681
|
response = new __BaseException({
|
|
2642
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2682
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2643
2683
|
$fault: "client",
|
|
2644
|
-
$metadata:
|
|
2684
|
+
$metadata: $metadata,
|
|
2645
2685
|
});
|
|
2646
2686
|
throw __decorateServiceException(response, parsedBody);
|
|
2647
2687
|
}
|
|
@@ -2666,7 +2706,7 @@ export var deserializeAws_json1_1UpdateLocationObjectStorageCommand = function (
|
|
|
2666
2706
|
});
|
|
2667
2707
|
}); };
|
|
2668
2708
|
var deserializeAws_json1_1UpdateLocationObjectStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2669
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2709
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2670
2710
|
var _c;
|
|
2671
2711
|
return __generator(this, function (_d) {
|
|
2672
2712
|
switch (_d.label) {
|
|
@@ -2676,7 +2716,6 @@ var deserializeAws_json1_1UpdateLocationObjectStorageCommandError = function (ou
|
|
|
2676
2716
|
return [4, parseBody(output.body, context)];
|
|
2677
2717
|
case 1:
|
|
2678
2718
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2679
|
-
errorCode = "UnknownError";
|
|
2680
2719
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2681
2720
|
_b = errorCode;
|
|
2682
2721
|
switch (_b) {
|
|
@@ -2692,10 +2731,12 @@ var deserializeAws_json1_1UpdateLocationObjectStorageCommandError = function (ou
|
|
|
2692
2731
|
case 5: throw _d.sent();
|
|
2693
2732
|
case 6:
|
|
2694
2733
|
parsedBody = parsedOutput.body;
|
|
2734
|
+
$metadata = deserializeMetadata(output);
|
|
2735
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2695
2736
|
response = new __BaseException({
|
|
2696
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2737
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2697
2738
|
$fault: "client",
|
|
2698
|
-
$metadata:
|
|
2739
|
+
$metadata: $metadata,
|
|
2699
2740
|
});
|
|
2700
2741
|
throw __decorateServiceException(response, parsedBody);
|
|
2701
2742
|
}
|
|
@@ -2720,7 +2761,7 @@ export var deserializeAws_json1_1UpdateLocationSmbCommand = function (output, co
|
|
|
2720
2761
|
});
|
|
2721
2762
|
}); };
|
|
2722
2763
|
var deserializeAws_json1_1UpdateLocationSmbCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2723
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2764
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2724
2765
|
var _c;
|
|
2725
2766
|
return __generator(this, function (_d) {
|
|
2726
2767
|
switch (_d.label) {
|
|
@@ -2730,7 +2771,6 @@ var deserializeAws_json1_1UpdateLocationSmbCommandError = function (output, cont
|
|
|
2730
2771
|
return [4, parseBody(output.body, context)];
|
|
2731
2772
|
case 1:
|
|
2732
2773
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2733
|
-
errorCode = "UnknownError";
|
|
2734
2774
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2735
2775
|
_b = errorCode;
|
|
2736
2776
|
switch (_b) {
|
|
@@ -2746,10 +2786,12 @@ var deserializeAws_json1_1UpdateLocationSmbCommandError = function (output, cont
|
|
|
2746
2786
|
case 5: throw _d.sent();
|
|
2747
2787
|
case 6:
|
|
2748
2788
|
parsedBody = parsedOutput.body;
|
|
2789
|
+
$metadata = deserializeMetadata(output);
|
|
2790
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2749
2791
|
response = new __BaseException({
|
|
2750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2751
2793
|
$fault: "client",
|
|
2752
|
-
$metadata:
|
|
2794
|
+
$metadata: $metadata,
|
|
2753
2795
|
});
|
|
2754
2796
|
throw __decorateServiceException(response, parsedBody);
|
|
2755
2797
|
}
|
|
@@ -2774,7 +2816,7 @@ export var deserializeAws_json1_1UpdateTaskCommand = function (output, context)
|
|
|
2774
2816
|
});
|
|
2775
2817
|
}); };
|
|
2776
2818
|
var deserializeAws_json1_1UpdateTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2777
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2819
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2778
2820
|
var _c;
|
|
2779
2821
|
return __generator(this, function (_d) {
|
|
2780
2822
|
switch (_d.label) {
|
|
@@ -2784,7 +2826,6 @@ var deserializeAws_json1_1UpdateTaskCommandError = function (output, context) {
|
|
|
2784
2826
|
return [4, parseBody(output.body, context)];
|
|
2785
2827
|
case 1:
|
|
2786
2828
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2787
|
-
errorCode = "UnknownError";
|
|
2788
2829
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2789
2830
|
_b = errorCode;
|
|
2790
2831
|
switch (_b) {
|
|
@@ -2800,10 +2841,12 @@ var deserializeAws_json1_1UpdateTaskCommandError = function (output, context) {
|
|
|
2800
2841
|
case 5: throw _d.sent();
|
|
2801
2842
|
case 6:
|
|
2802
2843
|
parsedBody = parsedOutput.body;
|
|
2844
|
+
$metadata = deserializeMetadata(output);
|
|
2845
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2803
2846
|
response = new __BaseException({
|
|
2804
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2805
2848
|
$fault: "client",
|
|
2806
|
-
$metadata:
|
|
2849
|
+
$metadata: $metadata,
|
|
2807
2850
|
});
|
|
2808
2851
|
throw __decorateServiceException(response, parsedBody);
|
|
2809
2852
|
}
|
|
@@ -2828,7 +2871,7 @@ export var deserializeAws_json1_1UpdateTaskExecutionCommand = function (output,
|
|
|
2828
2871
|
});
|
|
2829
2872
|
}); };
|
|
2830
2873
|
var deserializeAws_json1_1UpdateTaskExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2831
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2874
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2832
2875
|
var _c;
|
|
2833
2876
|
return __generator(this, function (_d) {
|
|
2834
2877
|
switch (_d.label) {
|
|
@@ -2838,7 +2881,6 @@ var deserializeAws_json1_1UpdateTaskExecutionCommandError = function (output, co
|
|
|
2838
2881
|
return [4, parseBody(output.body, context)];
|
|
2839
2882
|
case 1:
|
|
2840
2883
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2841
|
-
errorCode = "UnknownError";
|
|
2842
2884
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2843
2885
|
_b = errorCode;
|
|
2844
2886
|
switch (_b) {
|
|
@@ -2854,10 +2896,12 @@ var deserializeAws_json1_1UpdateTaskExecutionCommandError = function (output, co
|
|
|
2854
2896
|
case 5: throw _d.sent();
|
|
2855
2897
|
case 6:
|
|
2856
2898
|
parsedBody = parsedOutput.body;
|
|
2899
|
+
$metadata = deserializeMetadata(output);
|
|
2900
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2857
2901
|
response = new __BaseException({
|
|
2858
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2902
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2859
2903
|
$fault: "client",
|
|
2860
|
-
$metadata:
|
|
2904
|
+
$metadata: $metadata,
|
|
2861
2905
|
});
|
|
2862
2906
|
throw __decorateServiceException(response, parsedBody);
|
|
2863
2907
|
}
|
|
@@ -2892,172 +2936,112 @@ var serializeAws_json1_1AgentArnList = function (input, context) {
|
|
|
2892
2936
|
});
|
|
2893
2937
|
};
|
|
2894
2938
|
var serializeAws_json1_1CancelTaskExecutionRequest = function (input, context) {
|
|
2895
|
-
return __assign({}, (input.TaskExecutionArn
|
|
2896
|
-
input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }));
|
|
2939
|
+
return __assign({}, (input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }));
|
|
2897
2940
|
};
|
|
2898
2941
|
var serializeAws_json1_1CreateAgentRequest = function (input, context) {
|
|
2899
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ActivationKey
|
|
2900
|
-
input.SecurityGroupArns !== null && {
|
|
2942
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ActivationKey != null && { ActivationKey: input.ActivationKey })), (input.AgentName != null && { AgentName: input.AgentName })), (input.SecurityGroupArns != null && {
|
|
2901
2943
|
SecurityGroupArns: serializeAws_json1_1PLSecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2902
|
-
})), (input.SubnetArns
|
|
2903
|
-
input.SubnetArns !== null && { SubnetArns: serializeAws_json1_1PLSubnetArnList(input.SubnetArns, context) })), (input.Tags !== undefined &&
|
|
2904
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) })), (input.VpcEndpointId !== undefined && input.VpcEndpointId !== null && { VpcEndpointId: input.VpcEndpointId }));
|
|
2944
|
+
})), (input.SubnetArns != null && { SubnetArns: serializeAws_json1_1PLSubnetArnList(input.SubnetArns, context) })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) })), (input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }));
|
|
2905
2945
|
};
|
|
2906
2946
|
var serializeAws_json1_1CreateLocationEfsRequest = function (input, context) {
|
|
2907
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPointArn
|
|
2908
|
-
input.AccessPointArn !== null && { AccessPointArn: input.AccessPointArn })), (input.Ec2Config !== undefined &&
|
|
2909
|
-
input.Ec2Config !== null && { Ec2Config: serializeAws_json1_1Ec2Config(input.Ec2Config, context) })), (input.EfsFilesystemArn !== undefined &&
|
|
2910
|
-
input.EfsFilesystemArn !== null && { EfsFilesystemArn: input.EfsFilesystemArn })), (input.FileSystemAccessRoleArn !== undefined &&
|
|
2911
|
-
input.FileSystemAccessRoleArn !== null && { FileSystemAccessRoleArn: input.FileSystemAccessRoleArn })), (input.InTransitEncryption !== undefined &&
|
|
2912
|
-
input.InTransitEncryption !== null && { InTransitEncryption: input.InTransitEncryption })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2913
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2947
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPointArn != null && { AccessPointArn: input.AccessPointArn })), (input.Ec2Config != null && { Ec2Config: serializeAws_json1_1Ec2Config(input.Ec2Config, context) })), (input.EfsFilesystemArn != null && { EfsFilesystemArn: input.EfsFilesystemArn })), (input.FileSystemAccessRoleArn != null && { FileSystemAccessRoleArn: input.FileSystemAccessRoleArn })), (input.InTransitEncryption != null && { InTransitEncryption: input.InTransitEncryption })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2914
2948
|
};
|
|
2915
2949
|
var serializeAws_json1_1CreateLocationFsxLustreRequest = function (input, context) {
|
|
2916
|
-
return __assign(__assign(__assign(__assign({}, (input.FsxFilesystemArn
|
|
2917
|
-
input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.SecurityGroupArns !== undefined &&
|
|
2918
|
-
input.SecurityGroupArns !== null && {
|
|
2950
|
+
return __assign(__assign(__assign(__assign({}, (input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.SecurityGroupArns != null && {
|
|
2919
2951
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2920
|
-
})), (input.Subdirectory
|
|
2921
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2952
|
+
})), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2922
2953
|
};
|
|
2923
2954
|
var serializeAws_json1_1CreateLocationFsxOntapRequest = function (input, context) {
|
|
2924
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Protocol
|
|
2925
|
-
input.Protocol !== null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) })), (input.SecurityGroupArns !== undefined &&
|
|
2926
|
-
input.SecurityGroupArns !== null && {
|
|
2955
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Protocol != null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) })), (input.SecurityGroupArns != null && {
|
|
2927
2956
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2928
|
-
})), (input.StorageVirtualMachineArn
|
|
2929
|
-
input.StorageVirtualMachineArn !== null && { StorageVirtualMachineArn: input.StorageVirtualMachineArn })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2930
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2957
|
+
})), (input.StorageVirtualMachineArn != null && { StorageVirtualMachineArn: input.StorageVirtualMachineArn })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2931
2958
|
};
|
|
2932
2959
|
var serializeAws_json1_1CreateLocationFsxOpenZfsRequest = function (input, context) {
|
|
2933
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.FsxFilesystemArn
|
|
2934
|
-
input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.Protocol !== undefined &&
|
|
2935
|
-
input.Protocol !== null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) })), (input.SecurityGroupArns !== undefined &&
|
|
2936
|
-
input.SecurityGroupArns !== null && {
|
|
2960
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.Protocol != null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) })), (input.SecurityGroupArns != null && {
|
|
2937
2961
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2938
|
-
})), (input.Subdirectory
|
|
2939
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2962
|
+
})), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2940
2963
|
};
|
|
2941
2964
|
var serializeAws_json1_1CreateLocationFsxWindowsRequest = function (input, context) {
|
|
2942
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Domain
|
|
2943
|
-
input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.SecurityGroupArns !== undefined &&
|
|
2944
|
-
input.SecurityGroupArns !== null && {
|
|
2965
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Domain != null && { Domain: input.Domain })), (input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.Password != null && { Password: input.Password })), (input.SecurityGroupArns != null && {
|
|
2945
2966
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2946
|
-
})), (input.Subdirectory
|
|
2947
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) })), (input.User !== undefined && input.User !== null && { User: input.User }));
|
|
2967
|
+
})), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) })), (input.User != null && { User: input.User }));
|
|
2948
2968
|
};
|
|
2949
2969
|
var serializeAws_json1_1CreateLocationHdfsRequest = function (input, context) {
|
|
2950
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns
|
|
2951
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.AuthenticationType !== undefined &&
|
|
2952
|
-
input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.BlockSize !== undefined && input.BlockSize !== null && { BlockSize: input.BlockSize })), (input.KerberosKeytab !== undefined &&
|
|
2953
|
-
input.KerberosKeytab !== null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) })), (input.KerberosKrb5Conf !== undefined &&
|
|
2954
|
-
input.KerberosKrb5Conf !== null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) })), (input.KerberosPrincipal !== undefined &&
|
|
2955
|
-
input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal })), (input.KmsKeyProviderUri !== undefined &&
|
|
2956
|
-
input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri })), (input.NameNodes !== undefined &&
|
|
2957
|
-
input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) })), (input.QopConfiguration !== undefined &&
|
|
2958
|
-
input.QopConfiguration !== null && {
|
|
2970
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType })), (input.BlockSize != null && { BlockSize: input.BlockSize })), (input.KerberosKeytab != null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) })), (input.KerberosKrb5Conf != null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) })), (input.KerberosPrincipal != null && { KerberosPrincipal: input.KerberosPrincipal })), (input.KmsKeyProviderUri != null && { KmsKeyProviderUri: input.KmsKeyProviderUri })), (input.NameNodes != null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) })), (input.QopConfiguration != null && {
|
|
2959
2971
|
QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
|
|
2960
|
-
})), (input.ReplicationFactor
|
|
2961
|
-
input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor })), (input.SimpleUser !== undefined && input.SimpleUser !== null && { SimpleUser: input.SimpleUser })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2962
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2972
|
+
})), (input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor })), (input.SimpleUser != null && { SimpleUser: input.SimpleUser })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2963
2973
|
};
|
|
2964
2974
|
var serializeAws_json1_1CreateLocationNfsRequest = function (input, context) {
|
|
2965
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.MountOptions
|
|
2966
|
-
input.MountOptions !== null && {
|
|
2975
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.MountOptions != null && {
|
|
2967
2976
|
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
2968
|
-
})), (input.OnPremConfig
|
|
2969
|
-
input.OnPremConfig !== null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) })), (input.ServerHostname !== undefined &&
|
|
2970
|
-
input.ServerHostname !== null && { ServerHostname: input.ServerHostname })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2971
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2977
|
+
})), (input.OnPremConfig != null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) })), (input.ServerHostname != null && { ServerHostname: input.ServerHostname })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2972
2978
|
};
|
|
2973
2979
|
var serializeAws_json1_1CreateLocationObjectStorageRequest = function (input, context) {
|
|
2974
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessKey
|
|
2975
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.SecretKey !== undefined && input.SecretKey !== null && { SecretKey: input.SecretKey })), (input.ServerHostname !== undefined &&
|
|
2976
|
-
input.ServerHostname !== null && { ServerHostname: input.ServerHostname })), (input.ServerPort !== undefined && input.ServerPort !== null && { ServerPort: input.ServerPort })), (input.ServerProtocol !== undefined &&
|
|
2977
|
-
input.ServerProtocol !== null && { ServerProtocol: input.ServerProtocol })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2978
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2980
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessKey != null && { AccessKey: input.AccessKey })), (input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.BucketName != null && { BucketName: input.BucketName })), (input.SecretKey != null && { SecretKey: input.SecretKey })), (input.ServerHostname != null && { ServerHostname: input.ServerHostname })), (input.ServerPort != null && { ServerPort: input.ServerPort })), (input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2979
2981
|
};
|
|
2980
2982
|
var serializeAws_json1_1CreateLocationS3Request = function (input, context) {
|
|
2981
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns
|
|
2982
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.S3BucketArn !== undefined && input.S3BucketArn !== null && { S3BucketArn: input.S3BucketArn })), (input.S3Config !== undefined &&
|
|
2983
|
-
input.S3Config !== null && { S3Config: serializeAws_json1_1S3Config(input.S3Config, context) })), (input.S3StorageClass !== undefined &&
|
|
2984
|
-
input.S3StorageClass !== null && { S3StorageClass: input.S3StorageClass })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2985
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2983
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.S3BucketArn != null && { S3BucketArn: input.S3BucketArn })), (input.S3Config != null && { S3Config: serializeAws_json1_1S3Config(input.S3Config, context) })), (input.S3StorageClass != null && { S3StorageClass: input.S3StorageClass })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2986
2984
|
};
|
|
2987
2985
|
var serializeAws_json1_1CreateLocationSmbRequest = function (input, context) {
|
|
2988
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns
|
|
2989
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.MountOptions !== undefined &&
|
|
2990
|
-
input.MountOptions !== null && {
|
|
2986
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.Domain != null && { Domain: input.Domain })), (input.MountOptions != null && {
|
|
2991
2987
|
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
2992
|
-
})), (input.Password
|
|
2993
|
-
input.ServerHostname !== null && { ServerHostname: input.ServerHostname })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2994
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) })), (input.User !== undefined && input.User !== null && { User: input.User }));
|
|
2988
|
+
})), (input.Password != null && { Password: input.Password })), (input.ServerHostname != null && { ServerHostname: input.ServerHostname })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) })), (input.User != null && { User: input.User }));
|
|
2995
2989
|
};
|
|
2996
2990
|
var serializeAws_json1_1CreateTaskRequest = function (input, context) {
|
|
2997
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogGroupArn
|
|
2998
|
-
input.CloudWatchLogGroupArn !== null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn })), (input.DestinationLocationArn !== undefined &&
|
|
2999
|
-
input.DestinationLocationArn !== null && { DestinationLocationArn: input.DestinationLocationArn })), (input.Excludes !== undefined &&
|
|
3000
|
-
input.Excludes !== null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) })), (input.Includes !== undefined &&
|
|
3001
|
-
input.Includes !== null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Options !== undefined &&
|
|
3002
|
-
input.Options !== null && { Options: serializeAws_json1_1Options(input.Options, context) })), (input.Schedule !== undefined &&
|
|
3003
|
-
input.Schedule !== null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) })), (input.SourceLocationArn !== undefined &&
|
|
3004
|
-
input.SourceLocationArn !== null && { SourceLocationArn: input.SourceLocationArn })), (input.Tags !== undefined &&
|
|
3005
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2991
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn })), (input.DestinationLocationArn != null && { DestinationLocationArn: input.DestinationLocationArn })), (input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) })), (input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) })), (input.Name != null && { Name: input.Name })), (input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) })), (input.Schedule != null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) })), (input.SourceLocationArn != null && { SourceLocationArn: input.SourceLocationArn })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
3006
2992
|
};
|
|
3007
2993
|
var serializeAws_json1_1DeleteAgentRequest = function (input, context) {
|
|
3008
|
-
return __assign({}, (input.AgentArn
|
|
2994
|
+
return __assign({}, (input.AgentArn != null && { AgentArn: input.AgentArn }));
|
|
3009
2995
|
};
|
|
3010
2996
|
var serializeAws_json1_1DeleteLocationRequest = function (input, context) {
|
|
3011
|
-
return __assign({}, (input.LocationArn
|
|
2997
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3012
2998
|
};
|
|
3013
2999
|
var serializeAws_json1_1DeleteTaskRequest = function (input, context) {
|
|
3014
|
-
return __assign({}, (input.TaskArn
|
|
3000
|
+
return __assign({}, (input.TaskArn != null && { TaskArn: input.TaskArn }));
|
|
3015
3001
|
};
|
|
3016
3002
|
var serializeAws_json1_1DescribeAgentRequest = function (input, context) {
|
|
3017
|
-
return __assign({}, (input.AgentArn
|
|
3003
|
+
return __assign({}, (input.AgentArn != null && { AgentArn: input.AgentArn }));
|
|
3018
3004
|
};
|
|
3019
3005
|
var serializeAws_json1_1DescribeLocationEfsRequest = function (input, context) {
|
|
3020
|
-
return __assign({}, (input.LocationArn
|
|
3006
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3021
3007
|
};
|
|
3022
3008
|
var serializeAws_json1_1DescribeLocationFsxLustreRequest = function (input, context) {
|
|
3023
|
-
return __assign({}, (input.LocationArn
|
|
3009
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3024
3010
|
};
|
|
3025
3011
|
var serializeAws_json1_1DescribeLocationFsxOntapRequest = function (input, context) {
|
|
3026
|
-
return __assign({}, (input.LocationArn
|
|
3012
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3027
3013
|
};
|
|
3028
3014
|
var serializeAws_json1_1DescribeLocationFsxOpenZfsRequest = function (input, context) {
|
|
3029
|
-
return __assign({}, (input.LocationArn
|
|
3015
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3030
3016
|
};
|
|
3031
3017
|
var serializeAws_json1_1DescribeLocationFsxWindowsRequest = function (input, context) {
|
|
3032
|
-
return __assign({}, (input.LocationArn
|
|
3018
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3033
3019
|
};
|
|
3034
3020
|
var serializeAws_json1_1DescribeLocationHdfsRequest = function (input, context) {
|
|
3035
|
-
return __assign({}, (input.LocationArn
|
|
3021
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3036
3022
|
};
|
|
3037
3023
|
var serializeAws_json1_1DescribeLocationNfsRequest = function (input, context) {
|
|
3038
|
-
return __assign({}, (input.LocationArn
|
|
3024
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3039
3025
|
};
|
|
3040
3026
|
var serializeAws_json1_1DescribeLocationObjectStorageRequest = function (input, context) {
|
|
3041
|
-
return __assign({}, (input.LocationArn
|
|
3027
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3042
3028
|
};
|
|
3043
3029
|
var serializeAws_json1_1DescribeLocationS3Request = function (input, context) {
|
|
3044
|
-
return __assign({}, (input.LocationArn
|
|
3030
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3045
3031
|
};
|
|
3046
3032
|
var serializeAws_json1_1DescribeLocationSmbRequest = function (input, context) {
|
|
3047
|
-
return __assign({}, (input.LocationArn
|
|
3033
|
+
return __assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn }));
|
|
3048
3034
|
};
|
|
3049
3035
|
var serializeAws_json1_1DescribeTaskExecutionRequest = function (input, context) {
|
|
3050
|
-
return __assign({}, (input.TaskExecutionArn
|
|
3051
|
-
input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }));
|
|
3036
|
+
return __assign({}, (input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }));
|
|
3052
3037
|
};
|
|
3053
3038
|
var serializeAws_json1_1DescribeTaskRequest = function (input, context) {
|
|
3054
|
-
return __assign({}, (input.TaskArn
|
|
3039
|
+
return __assign({}, (input.TaskArn != null && { TaskArn: input.TaskArn }));
|
|
3055
3040
|
};
|
|
3056
3041
|
var serializeAws_json1_1Ec2Config = function (input, context) {
|
|
3057
|
-
return __assign(__assign({}, (input.SecurityGroupArns
|
|
3058
|
-
input.SecurityGroupArns !== null && {
|
|
3042
|
+
return __assign(__assign({}, (input.SecurityGroupArns != null && {
|
|
3059
3043
|
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
3060
|
-
})), (input.SubnetArn
|
|
3044
|
+
})), (input.SubnetArn != null && { SubnetArn: input.SubnetArn }));
|
|
3061
3045
|
};
|
|
3062
3046
|
var serializeAws_json1_1Ec2SecurityGroupArnList = function (input, context) {
|
|
3063
3047
|
return input
|
|
@@ -3080,7 +3064,7 @@ var serializeAws_json1_1FilterList = function (input, context) {
|
|
|
3080
3064
|
});
|
|
3081
3065
|
};
|
|
3082
3066
|
var serializeAws_json1_1FilterRule = function (input, context) {
|
|
3083
|
-
return __assign(__assign({}, (input.FilterType
|
|
3067
|
+
return __assign(__assign({}, (input.FilterType != null && { FilterType: input.FilterType })), (input.Value != null && { Value: input.Value }));
|
|
3084
3068
|
};
|
|
3085
3069
|
var serializeAws_json1_1FilterValues = function (input, context) {
|
|
3086
3070
|
return input
|
|
@@ -3093,24 +3077,20 @@ var serializeAws_json1_1FilterValues = function (input, context) {
|
|
|
3093
3077
|
});
|
|
3094
3078
|
};
|
|
3095
3079
|
var serializeAws_json1_1FsxProtocol = function (input, context) {
|
|
3096
|
-
return __assign(__assign({}, (input.NFS
|
|
3097
|
-
input.NFS !== null && { NFS: serializeAws_json1_1FsxProtocolNfs(input.NFS, context) })), (input.SMB !== undefined &&
|
|
3098
|
-
input.SMB !== null && { SMB: serializeAws_json1_1FsxProtocolSmb(input.SMB, context) }));
|
|
3080
|
+
return __assign(__assign({}, (input.NFS != null && { NFS: serializeAws_json1_1FsxProtocolNfs(input.NFS, context) })), (input.SMB != null && { SMB: serializeAws_json1_1FsxProtocolSmb(input.SMB, context) }));
|
|
3099
3081
|
};
|
|
3100
3082
|
var serializeAws_json1_1FsxProtocolNfs = function (input, context) {
|
|
3101
|
-
return __assign({}, (input.MountOptions
|
|
3102
|
-
input.MountOptions !== null && {
|
|
3083
|
+
return __assign({}, (input.MountOptions != null && {
|
|
3103
3084
|
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
3104
3085
|
}));
|
|
3105
3086
|
};
|
|
3106
3087
|
var serializeAws_json1_1FsxProtocolSmb = function (input, context) {
|
|
3107
|
-
return __assign(__assign(__assign(__assign({}, (input.Domain
|
|
3108
|
-
input.MountOptions !== null && {
|
|
3088
|
+
return __assign(__assign(__assign(__assign({}, (input.Domain != null && { Domain: input.Domain })), (input.MountOptions != null && {
|
|
3109
3089
|
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
3110
|
-
})), (input.Password
|
|
3090
|
+
})), (input.Password != null && { Password: input.Password })), (input.User != null && { User: input.User }));
|
|
3111
3091
|
};
|
|
3112
3092
|
var serializeAws_json1_1HdfsNameNode = function (input, context) {
|
|
3113
|
-
return __assign(__assign({}, (input.Hostname
|
|
3093
|
+
return __assign(__assign({}, (input.Hostname != null && { Hostname: input.Hostname })), (input.Port != null && { Port: input.Port }));
|
|
3114
3094
|
};
|
|
3115
3095
|
var serializeAws_json1_1HdfsNameNodeList = function (input, context) {
|
|
3116
3096
|
return input
|
|
@@ -3133,25 +3113,22 @@ var serializeAws_json1_1InputTagList = function (input, context) {
|
|
|
3133
3113
|
});
|
|
3134
3114
|
};
|
|
3135
3115
|
var serializeAws_json1_1ListAgentsRequest = function (input, context) {
|
|
3136
|
-
return __assign(__assign({}, (input.MaxResults
|
|
3116
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3137
3117
|
};
|
|
3138
3118
|
var serializeAws_json1_1ListLocationsRequest = function (input, context) {
|
|
3139
|
-
return __assign(__assign(__assign({}, (input.Filters
|
|
3140
|
-
input.Filters !== null && { Filters: serializeAws_json1_1LocationFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
3119
|
+
return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1LocationFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3141
3120
|
};
|
|
3142
3121
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
3143
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
3122
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
3144
3123
|
};
|
|
3145
3124
|
var serializeAws_json1_1ListTaskExecutionsRequest = function (input, context) {
|
|
3146
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
3125
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TaskArn != null && { TaskArn: input.TaskArn }));
|
|
3147
3126
|
};
|
|
3148
3127
|
var serializeAws_json1_1ListTasksRequest = function (input, context) {
|
|
3149
|
-
return __assign(__assign(__assign({}, (input.Filters
|
|
3150
|
-
input.Filters !== null && { Filters: serializeAws_json1_1TaskFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
3128
|
+
return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1TaskFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3151
3129
|
};
|
|
3152
3130
|
var serializeAws_json1_1LocationFilter = function (input, context) {
|
|
3153
|
-
return __assign(__assign(__assign({}, (input.Name
|
|
3154
|
-
input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
|
|
3131
|
+
return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Operator != null && { Operator: input.Operator })), (input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
|
|
3155
3132
|
};
|
|
3156
3133
|
var serializeAws_json1_1LocationFilters = function (input, context) {
|
|
3157
3134
|
return input
|
|
@@ -3164,19 +3141,15 @@ var serializeAws_json1_1LocationFilters = function (input, context) {
|
|
|
3164
3141
|
});
|
|
3165
3142
|
};
|
|
3166
3143
|
var serializeAws_json1_1NfsMountOptions = function (input, context) {
|
|
3167
|
-
return __assign({}, (input.Version
|
|
3144
|
+
return __assign({}, (input.Version != null && { Version: input.Version }));
|
|
3168
3145
|
};
|
|
3169
3146
|
var serializeAws_json1_1OnPremConfig = function (input, context) {
|
|
3170
|
-
return __assign({}, (input.AgentArns
|
|
3171
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }));
|
|
3147
|
+
return __assign({}, (input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }));
|
|
3172
3148
|
};
|
|
3173
3149
|
var serializeAws_json1_1Options = function (input, context) {
|
|
3174
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Atime
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
input.PreserveDeletedFiles !== null && { PreserveDeletedFiles: input.PreserveDeletedFiles })), (input.PreserveDevices !== undefined &&
|
|
3178
|
-
input.PreserveDevices !== null && { PreserveDevices: input.PreserveDevices })), (input.SecurityDescriptorCopyFlags !== undefined &&
|
|
3179
|
-
input.SecurityDescriptorCopyFlags !== null && { SecurityDescriptorCopyFlags: input.SecurityDescriptorCopyFlags })), (input.TaskQueueing !== undefined && input.TaskQueueing !== null && { TaskQueueing: input.TaskQueueing })), (input.TransferMode !== undefined && input.TransferMode !== null && { TransferMode: input.TransferMode })), (input.Uid !== undefined && input.Uid !== null && { Uid: input.Uid })), (input.VerifyMode !== undefined && input.VerifyMode !== null && { VerifyMode: input.VerifyMode }));
|
|
3150
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Atime != null && { Atime: input.Atime })), (input.BytesPerSecond != null && { BytesPerSecond: input.BytesPerSecond })), (input.Gid != null && { Gid: input.Gid })), (input.LogLevel != null && { LogLevel: input.LogLevel })), (input.Mtime != null && { Mtime: input.Mtime })), (input.ObjectTags != null && { ObjectTags: input.ObjectTags })), (input.OverwriteMode != null && { OverwriteMode: input.OverwriteMode })), (input.PosixPermissions != null && { PosixPermissions: input.PosixPermissions })), (input.PreserveDeletedFiles != null && { PreserveDeletedFiles: input.PreserveDeletedFiles })), (input.PreserveDevices != null && { PreserveDevices: input.PreserveDevices })), (input.SecurityDescriptorCopyFlags != null && {
|
|
3151
|
+
SecurityDescriptorCopyFlags: input.SecurityDescriptorCopyFlags,
|
|
3152
|
+
})), (input.TaskQueueing != null && { TaskQueueing: input.TaskQueueing })), (input.TransferMode != null && { TransferMode: input.TransferMode })), (input.Uid != null && { Uid: input.Uid })), (input.VerifyMode != null && { VerifyMode: input.VerifyMode }));
|
|
3180
3153
|
};
|
|
3181
3154
|
var serializeAws_json1_1PLSecurityGroupArnList = function (input, context) {
|
|
3182
3155
|
return input
|
|
@@ -3199,23 +3172,18 @@ var serializeAws_json1_1PLSubnetArnList = function (input, context) {
|
|
|
3199
3172
|
});
|
|
3200
3173
|
};
|
|
3201
3174
|
var serializeAws_json1_1QopConfiguration = function (input, context) {
|
|
3202
|
-
return __assign(__assign({}, (input.DataTransferProtection
|
|
3203
|
-
input.DataTransferProtection !== null && { DataTransferProtection: input.DataTransferProtection })), (input.RpcProtection !== undefined && input.RpcProtection !== null && { RpcProtection: input.RpcProtection }));
|
|
3175
|
+
return __assign(__assign({}, (input.DataTransferProtection != null && { DataTransferProtection: input.DataTransferProtection })), (input.RpcProtection != null && { RpcProtection: input.RpcProtection }));
|
|
3204
3176
|
};
|
|
3205
3177
|
var serializeAws_json1_1S3Config = function (input, context) {
|
|
3206
|
-
return __assign({}, (input.BucketAccessRoleArn
|
|
3207
|
-
input.BucketAccessRoleArn !== null && { BucketAccessRoleArn: input.BucketAccessRoleArn }));
|
|
3178
|
+
return __assign({}, (input.BucketAccessRoleArn != null && { BucketAccessRoleArn: input.BucketAccessRoleArn }));
|
|
3208
3179
|
};
|
|
3209
3180
|
var serializeAws_json1_1SmbMountOptions = function (input, context) {
|
|
3210
|
-
return __assign({}, (input.Version
|
|
3181
|
+
return __assign({}, (input.Version != null && { Version: input.Version }));
|
|
3211
3182
|
};
|
|
3212
3183
|
var serializeAws_json1_1StartTaskExecutionRequest = function (input, context) {
|
|
3213
|
-
return __assign(__assign(__assign(__assign({}, (input.Excludes
|
|
3214
|
-
input.Excludes !== null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) })), (input.Includes !== undefined &&
|
|
3215
|
-
input.Includes !== null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) })), (input.OverrideOptions !== undefined &&
|
|
3216
|
-
input.OverrideOptions !== null && {
|
|
3184
|
+
return __assign(__assign(__assign(__assign({}, (input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) })), (input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) })), (input.OverrideOptions != null && {
|
|
3217
3185
|
OverrideOptions: serializeAws_json1_1Options(input.OverrideOptions, context),
|
|
3218
|
-
})), (input.TaskArn
|
|
3186
|
+
})), (input.TaskArn != null && { TaskArn: input.TaskArn }));
|
|
3219
3187
|
};
|
|
3220
3188
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
3221
3189
|
return input
|
|
@@ -3228,15 +3196,13 @@ var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
|
3228
3196
|
});
|
|
3229
3197
|
};
|
|
3230
3198
|
var serializeAws_json1_1TagListEntry = function (input, context) {
|
|
3231
|
-
return __assign(__assign({}, (input.Key
|
|
3199
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
3232
3200
|
};
|
|
3233
3201
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
3234
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
3235
|
-
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
3202
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
3236
3203
|
};
|
|
3237
3204
|
var serializeAws_json1_1TaskFilter = function (input, context) {
|
|
3238
|
-
return __assign(__assign(__assign({}, (input.Name
|
|
3239
|
-
input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
|
|
3205
|
+
return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Operator != null && { Operator: input.Operator })), (input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
|
|
3240
3206
|
};
|
|
3241
3207
|
var serializeAws_json1_1TaskFilters = function (input, context) {
|
|
3242
3208
|
return input
|
|
@@ -3249,61 +3215,37 @@ var serializeAws_json1_1TaskFilters = function (input, context) {
|
|
|
3249
3215
|
});
|
|
3250
3216
|
};
|
|
3251
3217
|
var serializeAws_json1_1TaskSchedule = function (input, context) {
|
|
3252
|
-
return __assign({}, (input.ScheduleExpression
|
|
3253
|
-
input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }));
|
|
3218
|
+
return __assign({}, (input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }));
|
|
3254
3219
|
};
|
|
3255
3220
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
3256
|
-
return __assign(__assign({}, (input.Keys
|
|
3257
|
-
input.Keys !== null && { Keys: serializeAws_json1_1TagKeyList(input.Keys, context) })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
3221
|
+
return __assign(__assign({}, (input.Keys != null && { Keys: serializeAws_json1_1TagKeyList(input.Keys, context) })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
3258
3222
|
};
|
|
3259
3223
|
var serializeAws_json1_1UpdateAgentRequest = function (input, context) {
|
|
3260
|
-
return __assign(__assign({}, (input.AgentArn
|
|
3224
|
+
return __assign(__assign({}, (input.AgentArn != null && { AgentArn: input.AgentArn })), (input.Name != null && { Name: input.Name }));
|
|
3261
3225
|
};
|
|
3262
3226
|
var serializeAws_json1_1UpdateLocationHdfsRequest = function (input, context) {
|
|
3263
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns
|
|
3264
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.AuthenticationType !== undefined &&
|
|
3265
|
-
input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.BlockSize !== undefined && input.BlockSize !== null && { BlockSize: input.BlockSize })), (input.KerberosKeytab !== undefined &&
|
|
3266
|
-
input.KerberosKeytab !== null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) })), (input.KerberosKrb5Conf !== undefined &&
|
|
3267
|
-
input.KerberosKrb5Conf !== null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) })), (input.KerberosPrincipal !== undefined &&
|
|
3268
|
-
input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal })), (input.KmsKeyProviderUri !== undefined &&
|
|
3269
|
-
input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri })), (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn })), (input.NameNodes !== undefined &&
|
|
3270
|
-
input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) })), (input.QopConfiguration !== undefined &&
|
|
3271
|
-
input.QopConfiguration !== null && {
|
|
3227
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType })), (input.BlockSize != null && { BlockSize: input.BlockSize })), (input.KerberosKeytab != null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) })), (input.KerberosKrb5Conf != null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) })), (input.KerberosPrincipal != null && { KerberosPrincipal: input.KerberosPrincipal })), (input.KmsKeyProviderUri != null && { KmsKeyProviderUri: input.KmsKeyProviderUri })), (input.LocationArn != null && { LocationArn: input.LocationArn })), (input.NameNodes != null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) })), (input.QopConfiguration != null && {
|
|
3272
3228
|
QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
|
|
3273
|
-
})), (input.ReplicationFactor
|
|
3274
|
-
input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor })), (input.SimpleUser !== undefined && input.SimpleUser !== null && { SimpleUser: input.SimpleUser })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }));
|
|
3229
|
+
})), (input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor })), (input.SimpleUser != null && { SimpleUser: input.SimpleUser })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory }));
|
|
3275
3230
|
};
|
|
3276
3231
|
var serializeAws_json1_1UpdateLocationNfsRequest = function (input, context) {
|
|
3277
|
-
return __assign(__assign(__assign(__assign({}, (input.LocationArn
|
|
3278
|
-
input.MountOptions !== null && {
|
|
3232
|
+
return __assign(__assign(__assign(__assign({}, (input.LocationArn != null && { LocationArn: input.LocationArn })), (input.MountOptions != null && {
|
|
3279
3233
|
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
3280
|
-
})), (input.OnPremConfig
|
|
3281
|
-
input.OnPremConfig !== null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }));
|
|
3234
|
+
})), (input.OnPremConfig != null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory }));
|
|
3282
3235
|
};
|
|
3283
3236
|
var serializeAws_json1_1UpdateLocationObjectStorageRequest = function (input, context) {
|
|
3284
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessKey
|
|
3285
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn })), (input.SecretKey !== undefined && input.SecretKey !== null && { SecretKey: input.SecretKey })), (input.ServerPort !== undefined && input.ServerPort !== null && { ServerPort: input.ServerPort })), (input.ServerProtocol !== undefined &&
|
|
3286
|
-
input.ServerProtocol !== null && { ServerProtocol: input.ServerProtocol })), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }));
|
|
3237
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessKey != null && { AccessKey: input.AccessKey })), (input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.LocationArn != null && { LocationArn: input.LocationArn })), (input.SecretKey != null && { SecretKey: input.SecretKey })), (input.ServerPort != null && { ServerPort: input.ServerPort })), (input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory }));
|
|
3287
3238
|
};
|
|
3288
3239
|
var serializeAws_json1_1UpdateLocationSmbRequest = function (input, context) {
|
|
3289
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns
|
|
3290
|
-
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn })), (input.MountOptions !== undefined &&
|
|
3291
|
-
input.MountOptions !== null && {
|
|
3240
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AgentArns != null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) })), (input.Domain != null && { Domain: input.Domain })), (input.LocationArn != null && { LocationArn: input.LocationArn })), (input.MountOptions != null && {
|
|
3292
3241
|
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
3293
|
-
})), (input.Password
|
|
3242
|
+
})), (input.Password != null && { Password: input.Password })), (input.Subdirectory != null && { Subdirectory: input.Subdirectory })), (input.User != null && { User: input.User }));
|
|
3294
3243
|
};
|
|
3295
3244
|
var serializeAws_json1_1UpdateTaskExecutionRequest = function (input, context) {
|
|
3296
|
-
return __assign(__assign({}, (input.Options
|
|
3297
|
-
input.Options !== null && { Options: serializeAws_json1_1Options(input.Options, context) })), (input.TaskExecutionArn !== undefined &&
|
|
3298
|
-
input.TaskExecutionArn !== null && { TaskExecutionArn: input.TaskExecutionArn }));
|
|
3245
|
+
return __assign(__assign({}, (input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) })), (input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }));
|
|
3299
3246
|
};
|
|
3300
3247
|
var serializeAws_json1_1UpdateTaskRequest = function (input, context) {
|
|
3301
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogGroupArn
|
|
3302
|
-
input.CloudWatchLogGroupArn !== null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn })), (input.Excludes !== undefined &&
|
|
3303
|
-
input.Excludes !== null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) })), (input.Includes !== undefined &&
|
|
3304
|
-
input.Includes !== null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Options !== undefined &&
|
|
3305
|
-
input.Options !== null && { Options: serializeAws_json1_1Options(input.Options, context) })), (input.Schedule !== undefined &&
|
|
3306
|
-
input.Schedule !== null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) })), (input.TaskArn !== undefined && input.TaskArn !== null && { TaskArn: input.TaskArn }));
|
|
3248
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn })), (input.Excludes != null && { Excludes: serializeAws_json1_1FilterList(input.Excludes, context) })), (input.Includes != null && { Includes: serializeAws_json1_1FilterList(input.Includes, context) })), (input.Name != null && { Name: input.Name })), (input.Options != null && { Options: serializeAws_json1_1Options(input.Options, context) })), (input.Schedule != null && { Schedule: serializeAws_json1_1TaskSchedule(input.Schedule, context) })), (input.TaskArn != null && { TaskArn: input.TaskArn }));
|
|
3307
3249
|
};
|
|
3308
3250
|
var deserializeAws_json1_1AgentArnList = function (output, context) {
|
|
3309
3251
|
var retVal = (output || [])
|
|
@@ -3409,15 +3351,15 @@ var deserializeAws_json1_1DeleteTaskResponse = function (output, context) {
|
|
|
3409
3351
|
var deserializeAws_json1_1DescribeAgentResponse = function (output, context) {
|
|
3410
3352
|
return {
|
|
3411
3353
|
AgentArn: __expectString(output.AgentArn),
|
|
3412
|
-
CreationTime: output.CreationTime
|
|
3354
|
+
CreationTime: output.CreationTime != null
|
|
3413
3355
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3414
3356
|
: undefined,
|
|
3415
3357
|
EndpointType: __expectString(output.EndpointType),
|
|
3416
|
-
LastConnectionTime: output.LastConnectionTime
|
|
3358
|
+
LastConnectionTime: output.LastConnectionTime != null
|
|
3417
3359
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastConnectionTime)))
|
|
3418
3360
|
: undefined,
|
|
3419
3361
|
Name: __expectString(output.Name),
|
|
3420
|
-
PrivateLinkConfig: output.PrivateLinkConfig
|
|
3362
|
+
PrivateLinkConfig: output.PrivateLinkConfig != null
|
|
3421
3363
|
? deserializeAws_json1_1PrivateLinkConfig(output.PrivateLinkConfig, context)
|
|
3422
3364
|
: undefined,
|
|
3423
3365
|
Status: __expectString(output.Status),
|
|
@@ -3426,12 +3368,10 @@ var deserializeAws_json1_1DescribeAgentResponse = function (output, context) {
|
|
|
3426
3368
|
var deserializeAws_json1_1DescribeLocationEfsResponse = function (output, context) {
|
|
3427
3369
|
return {
|
|
3428
3370
|
AccessPointArn: __expectString(output.AccessPointArn),
|
|
3429
|
-
CreationTime: output.CreationTime
|
|
3371
|
+
CreationTime: output.CreationTime != null
|
|
3430
3372
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3431
3373
|
: undefined,
|
|
3432
|
-
Ec2Config: output.Ec2Config
|
|
3433
|
-
? deserializeAws_json1_1Ec2Config(output.Ec2Config, context)
|
|
3434
|
-
: undefined,
|
|
3374
|
+
Ec2Config: output.Ec2Config != null ? deserializeAws_json1_1Ec2Config(output.Ec2Config, context) : undefined,
|
|
3435
3375
|
FileSystemAccessRoleArn: __expectString(output.FileSystemAccessRoleArn),
|
|
3436
3376
|
InTransitEncryption: __expectString(output.InTransitEncryption),
|
|
3437
3377
|
LocationArn: __expectString(output.LocationArn),
|
|
@@ -3440,28 +3380,26 @@ var deserializeAws_json1_1DescribeLocationEfsResponse = function (output, contex
|
|
|
3440
3380
|
};
|
|
3441
3381
|
var deserializeAws_json1_1DescribeLocationFsxLustreResponse = function (output, context) {
|
|
3442
3382
|
return {
|
|
3443
|
-
CreationTime: output.CreationTime
|
|
3383
|
+
CreationTime: output.CreationTime != null
|
|
3444
3384
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3445
3385
|
: undefined,
|
|
3446
3386
|
LocationArn: __expectString(output.LocationArn),
|
|
3447
3387
|
LocationUri: __expectString(output.LocationUri),
|
|
3448
|
-
SecurityGroupArns: output.SecurityGroupArns
|
|
3388
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3449
3389
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3450
3390
|
: undefined,
|
|
3451
3391
|
};
|
|
3452
3392
|
};
|
|
3453
3393
|
var deserializeAws_json1_1DescribeLocationFsxOntapResponse = function (output, context) {
|
|
3454
3394
|
return {
|
|
3455
|
-
CreationTime: output.CreationTime
|
|
3395
|
+
CreationTime: output.CreationTime != null
|
|
3456
3396
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3457
3397
|
: undefined,
|
|
3458
3398
|
FsxFilesystemArn: __expectString(output.FsxFilesystemArn),
|
|
3459
3399
|
LocationArn: __expectString(output.LocationArn),
|
|
3460
3400
|
LocationUri: __expectString(output.LocationUri),
|
|
3461
|
-
Protocol: output.Protocol
|
|
3462
|
-
|
|
3463
|
-
: undefined,
|
|
3464
|
-
SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
|
|
3401
|
+
Protocol: output.Protocol != null ? deserializeAws_json1_1FsxProtocol(output.Protocol, context) : undefined,
|
|
3402
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3465
3403
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3466
3404
|
: undefined,
|
|
3467
3405
|
StorageVirtualMachineArn: __expectString(output.StorageVirtualMachineArn),
|
|
@@ -3469,28 +3407,26 @@ var deserializeAws_json1_1DescribeLocationFsxOntapResponse = function (output, c
|
|
|
3469
3407
|
};
|
|
3470
3408
|
var deserializeAws_json1_1DescribeLocationFsxOpenZfsResponse = function (output, context) {
|
|
3471
3409
|
return {
|
|
3472
|
-
CreationTime: output.CreationTime
|
|
3410
|
+
CreationTime: output.CreationTime != null
|
|
3473
3411
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3474
3412
|
: undefined,
|
|
3475
3413
|
LocationArn: __expectString(output.LocationArn),
|
|
3476
3414
|
LocationUri: __expectString(output.LocationUri),
|
|
3477
|
-
Protocol: output.Protocol
|
|
3478
|
-
|
|
3479
|
-
: undefined,
|
|
3480
|
-
SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
|
|
3415
|
+
Protocol: output.Protocol != null ? deserializeAws_json1_1FsxProtocol(output.Protocol, context) : undefined,
|
|
3416
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3481
3417
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3482
3418
|
: undefined,
|
|
3483
3419
|
};
|
|
3484
3420
|
};
|
|
3485
3421
|
var deserializeAws_json1_1DescribeLocationFsxWindowsResponse = function (output, context) {
|
|
3486
3422
|
return {
|
|
3487
|
-
CreationTime: output.CreationTime
|
|
3423
|
+
CreationTime: output.CreationTime != null
|
|
3488
3424
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3489
3425
|
: undefined,
|
|
3490
3426
|
Domain: __expectString(output.Domain),
|
|
3491
3427
|
LocationArn: __expectString(output.LocationArn),
|
|
3492
3428
|
LocationUri: __expectString(output.LocationUri),
|
|
3493
|
-
SecurityGroupArns: output.SecurityGroupArns
|
|
3429
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3494
3430
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3495
3431
|
: undefined,
|
|
3496
3432
|
User: __expectString(output.User),
|
|
@@ -3498,22 +3434,18 @@ var deserializeAws_json1_1DescribeLocationFsxWindowsResponse = function (output,
|
|
|
3498
3434
|
};
|
|
3499
3435
|
var deserializeAws_json1_1DescribeLocationHdfsResponse = function (output, context) {
|
|
3500
3436
|
return {
|
|
3501
|
-
AgentArns: output.AgentArns
|
|
3502
|
-
? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
|
|
3503
|
-
: undefined,
|
|
3437
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3504
3438
|
AuthenticationType: __expectString(output.AuthenticationType),
|
|
3505
3439
|
BlockSize: __expectInt32(output.BlockSize),
|
|
3506
|
-
CreationTime: output.CreationTime
|
|
3440
|
+
CreationTime: output.CreationTime != null
|
|
3507
3441
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3508
3442
|
: undefined,
|
|
3509
3443
|
KerberosPrincipal: __expectString(output.KerberosPrincipal),
|
|
3510
3444
|
KmsKeyProviderUri: __expectString(output.KmsKeyProviderUri),
|
|
3511
3445
|
LocationArn: __expectString(output.LocationArn),
|
|
3512
3446
|
LocationUri: __expectString(output.LocationUri),
|
|
3513
|
-
NameNodes: output.NameNodes
|
|
3514
|
-
|
|
3515
|
-
: undefined,
|
|
3516
|
-
QopConfiguration: output.QopConfiguration !== undefined && output.QopConfiguration !== null
|
|
3447
|
+
NameNodes: output.NameNodes != null ? deserializeAws_json1_1HdfsNameNodeList(output.NameNodes, context) : undefined,
|
|
3448
|
+
QopConfiguration: output.QopConfiguration != null
|
|
3517
3449
|
? deserializeAws_json1_1QopConfiguration(output.QopConfiguration, context)
|
|
3518
3450
|
: undefined,
|
|
3519
3451
|
ReplicationFactor: __expectInt32(output.ReplicationFactor),
|
|
@@ -3522,26 +3454,20 @@ var deserializeAws_json1_1DescribeLocationHdfsResponse = function (output, conte
|
|
|
3522
3454
|
};
|
|
3523
3455
|
var deserializeAws_json1_1DescribeLocationNfsResponse = function (output, context) {
|
|
3524
3456
|
return {
|
|
3525
|
-
CreationTime: output.CreationTime
|
|
3457
|
+
CreationTime: output.CreationTime != null
|
|
3526
3458
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3527
3459
|
: undefined,
|
|
3528
3460
|
LocationArn: __expectString(output.LocationArn),
|
|
3529
3461
|
LocationUri: __expectString(output.LocationUri),
|
|
3530
|
-
MountOptions: output.MountOptions
|
|
3531
|
-
|
|
3532
|
-
: undefined,
|
|
3533
|
-
OnPremConfig: output.OnPremConfig !== undefined && output.OnPremConfig !== null
|
|
3534
|
-
? deserializeAws_json1_1OnPremConfig(output.OnPremConfig, context)
|
|
3535
|
-
: undefined,
|
|
3462
|
+
MountOptions: output.MountOptions != null ? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context) : undefined,
|
|
3463
|
+
OnPremConfig: output.OnPremConfig != null ? deserializeAws_json1_1OnPremConfig(output.OnPremConfig, context) : undefined,
|
|
3536
3464
|
};
|
|
3537
3465
|
};
|
|
3538
3466
|
var deserializeAws_json1_1DescribeLocationObjectStorageResponse = function (output, context) {
|
|
3539
3467
|
return {
|
|
3540
3468
|
AccessKey: __expectString(output.AccessKey),
|
|
3541
|
-
AgentArns: output.AgentArns
|
|
3542
|
-
|
|
3543
|
-
: undefined,
|
|
3544
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3469
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3470
|
+
CreationTime: output.CreationTime != null
|
|
3545
3471
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3546
3472
|
: undefined,
|
|
3547
3473
|
LocationArn: __expectString(output.LocationArn),
|
|
@@ -3552,34 +3478,26 @@ var deserializeAws_json1_1DescribeLocationObjectStorageResponse = function (outp
|
|
|
3552
3478
|
};
|
|
3553
3479
|
var deserializeAws_json1_1DescribeLocationS3Response = function (output, context) {
|
|
3554
3480
|
return {
|
|
3555
|
-
AgentArns: output.AgentArns
|
|
3556
|
-
|
|
3557
|
-
: undefined,
|
|
3558
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3481
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3482
|
+
CreationTime: output.CreationTime != null
|
|
3559
3483
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3560
3484
|
: undefined,
|
|
3561
3485
|
LocationArn: __expectString(output.LocationArn),
|
|
3562
3486
|
LocationUri: __expectString(output.LocationUri),
|
|
3563
|
-
S3Config: output.S3Config
|
|
3564
|
-
? deserializeAws_json1_1S3Config(output.S3Config, context)
|
|
3565
|
-
: undefined,
|
|
3487
|
+
S3Config: output.S3Config != null ? deserializeAws_json1_1S3Config(output.S3Config, context) : undefined,
|
|
3566
3488
|
S3StorageClass: __expectString(output.S3StorageClass),
|
|
3567
3489
|
};
|
|
3568
3490
|
};
|
|
3569
3491
|
var deserializeAws_json1_1DescribeLocationSmbResponse = function (output, context) {
|
|
3570
3492
|
return {
|
|
3571
|
-
AgentArns: output.AgentArns
|
|
3572
|
-
|
|
3573
|
-
: undefined,
|
|
3574
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3493
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3494
|
+
CreationTime: output.CreationTime != null
|
|
3575
3495
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3576
3496
|
: undefined,
|
|
3577
3497
|
Domain: __expectString(output.Domain),
|
|
3578
3498
|
LocationArn: __expectString(output.LocationArn),
|
|
3579
3499
|
LocationUri: __expectString(output.LocationUri),
|
|
3580
|
-
MountOptions: output.MountOptions
|
|
3581
|
-
? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context)
|
|
3582
|
-
: undefined,
|
|
3500
|
+
MountOptions: output.MountOptions != null ? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context) : undefined,
|
|
3583
3501
|
User: __expectString(output.User),
|
|
3584
3502
|
};
|
|
3585
3503
|
};
|
|
@@ -3589,22 +3507,12 @@ var deserializeAws_json1_1DescribeTaskExecutionResponse = function (output, cont
|
|
|
3589
3507
|
BytesWritten: __expectLong(output.BytesWritten),
|
|
3590
3508
|
EstimatedBytesToTransfer: __expectLong(output.EstimatedBytesToTransfer),
|
|
3591
3509
|
EstimatedFilesToTransfer: __expectLong(output.EstimatedFilesToTransfer),
|
|
3592
|
-
Excludes: output.Excludes
|
|
3593
|
-
? deserializeAws_json1_1FilterList(output.Excludes, context)
|
|
3594
|
-
: undefined,
|
|
3510
|
+
Excludes: output.Excludes != null ? deserializeAws_json1_1FilterList(output.Excludes, context) : undefined,
|
|
3595
3511
|
FilesTransferred: __expectLong(output.FilesTransferred),
|
|
3596
|
-
Includes: output.Includes
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
? deserializeAws_json1_1Options(output.Options, context)
|
|
3601
|
-
: undefined,
|
|
3602
|
-
Result: output.Result !== undefined && output.Result !== null
|
|
3603
|
-
? deserializeAws_json1_1TaskExecutionResultDetail(output.Result, context)
|
|
3604
|
-
: undefined,
|
|
3605
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
3606
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
3607
|
-
: undefined,
|
|
3512
|
+
Includes: output.Includes != null ? deserializeAws_json1_1FilterList(output.Includes, context) : undefined,
|
|
3513
|
+
Options: output.Options != null ? deserializeAws_json1_1Options(output.Options, context) : undefined,
|
|
3514
|
+
Result: output.Result != null ? deserializeAws_json1_1TaskExecutionResultDetail(output.Result, context) : undefined,
|
|
3515
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
3608
3516
|
Status: __expectString(output.Status),
|
|
3609
3517
|
TaskExecutionArn: __expectString(output.TaskExecutionArn),
|
|
3610
3518
|
};
|
|
@@ -3612,31 +3520,23 @@ var deserializeAws_json1_1DescribeTaskExecutionResponse = function (output, cont
|
|
|
3612
3520
|
var deserializeAws_json1_1DescribeTaskResponse = function (output, context) {
|
|
3613
3521
|
return {
|
|
3614
3522
|
CloudWatchLogGroupArn: __expectString(output.CloudWatchLogGroupArn),
|
|
3615
|
-
CreationTime: output.CreationTime
|
|
3523
|
+
CreationTime: output.CreationTime != null
|
|
3616
3524
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3617
3525
|
: undefined,
|
|
3618
3526
|
CurrentTaskExecutionArn: __expectString(output.CurrentTaskExecutionArn),
|
|
3619
3527
|
DestinationLocationArn: __expectString(output.DestinationLocationArn),
|
|
3620
|
-
DestinationNetworkInterfaceArns: output.DestinationNetworkInterfaceArns
|
|
3528
|
+
DestinationNetworkInterfaceArns: output.DestinationNetworkInterfaceArns != null
|
|
3621
3529
|
? deserializeAws_json1_1DestinationNetworkInterfaceArns(output.DestinationNetworkInterfaceArns, context)
|
|
3622
3530
|
: undefined,
|
|
3623
3531
|
ErrorCode: __expectString(output.ErrorCode),
|
|
3624
3532
|
ErrorDetail: __expectString(output.ErrorDetail),
|
|
3625
|
-
Excludes: output.Excludes
|
|
3626
|
-
|
|
3627
|
-
: undefined,
|
|
3628
|
-
Includes: output.Includes !== undefined && output.Includes !== null
|
|
3629
|
-
? deserializeAws_json1_1FilterList(output.Includes, context)
|
|
3630
|
-
: undefined,
|
|
3533
|
+
Excludes: output.Excludes != null ? deserializeAws_json1_1FilterList(output.Excludes, context) : undefined,
|
|
3534
|
+
Includes: output.Includes != null ? deserializeAws_json1_1FilterList(output.Includes, context) : undefined,
|
|
3631
3535
|
Name: __expectString(output.Name),
|
|
3632
|
-
Options: output.Options
|
|
3633
|
-
|
|
3634
|
-
: undefined,
|
|
3635
|
-
Schedule: output.Schedule !== undefined && output.Schedule !== null
|
|
3636
|
-
? deserializeAws_json1_1TaskSchedule(output.Schedule, context)
|
|
3637
|
-
: undefined,
|
|
3536
|
+
Options: output.Options != null ? deserializeAws_json1_1Options(output.Options, context) : undefined,
|
|
3537
|
+
Schedule: output.Schedule != null ? deserializeAws_json1_1TaskSchedule(output.Schedule, context) : undefined,
|
|
3638
3538
|
SourceLocationArn: __expectString(output.SourceLocationArn),
|
|
3639
|
-
SourceNetworkInterfaceArns: output.SourceNetworkInterfaceArns
|
|
3539
|
+
SourceNetworkInterfaceArns: output.SourceNetworkInterfaceArns != null
|
|
3640
3540
|
? deserializeAws_json1_1SourceNetworkInterfaceArns(output.SourceNetworkInterfaceArns, context)
|
|
3641
3541
|
: undefined,
|
|
3642
3542
|
Status: __expectString(output.Status),
|
|
@@ -3656,7 +3556,7 @@ var deserializeAws_json1_1DestinationNetworkInterfaceArns = function (output, co
|
|
|
3656
3556
|
};
|
|
3657
3557
|
var deserializeAws_json1_1Ec2Config = function (output, context) {
|
|
3658
3558
|
return {
|
|
3659
|
-
SecurityGroupArns: output.SecurityGroupArns
|
|
3559
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3660
3560
|
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3661
3561
|
: undefined,
|
|
3662
3562
|
SubnetArn: __expectString(output.SubnetArn),
|
|
@@ -3692,27 +3592,19 @@ var deserializeAws_json1_1FilterRule = function (output, context) {
|
|
|
3692
3592
|
};
|
|
3693
3593
|
var deserializeAws_json1_1FsxProtocol = function (output, context) {
|
|
3694
3594
|
return {
|
|
3695
|
-
NFS: output.NFS
|
|
3696
|
-
|
|
3697
|
-
: undefined,
|
|
3698
|
-
SMB: output.SMB !== undefined && output.SMB !== null
|
|
3699
|
-
? deserializeAws_json1_1FsxProtocolSmb(output.SMB, context)
|
|
3700
|
-
: undefined,
|
|
3595
|
+
NFS: output.NFS != null ? deserializeAws_json1_1FsxProtocolNfs(output.NFS, context) : undefined,
|
|
3596
|
+
SMB: output.SMB != null ? deserializeAws_json1_1FsxProtocolSmb(output.SMB, context) : undefined,
|
|
3701
3597
|
};
|
|
3702
3598
|
};
|
|
3703
3599
|
var deserializeAws_json1_1FsxProtocolNfs = function (output, context) {
|
|
3704
3600
|
return {
|
|
3705
|
-
MountOptions: output.MountOptions
|
|
3706
|
-
? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context)
|
|
3707
|
-
: undefined,
|
|
3601
|
+
MountOptions: output.MountOptions != null ? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context) : undefined,
|
|
3708
3602
|
};
|
|
3709
3603
|
};
|
|
3710
3604
|
var deserializeAws_json1_1FsxProtocolSmb = function (output, context) {
|
|
3711
3605
|
return {
|
|
3712
3606
|
Domain: __expectString(output.Domain),
|
|
3713
|
-
MountOptions: output.MountOptions
|
|
3714
|
-
? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context)
|
|
3715
|
-
: undefined,
|
|
3607
|
+
MountOptions: output.MountOptions != null ? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context) : undefined,
|
|
3716
3608
|
Password: __expectString(output.Password),
|
|
3717
3609
|
User: __expectString(output.User),
|
|
3718
3610
|
};
|
|
@@ -3749,32 +3641,26 @@ var deserializeAws_json1_1InvalidRequestException = function (output, context) {
|
|
|
3749
3641
|
};
|
|
3750
3642
|
var deserializeAws_json1_1ListAgentsResponse = function (output, context) {
|
|
3751
3643
|
return {
|
|
3752
|
-
Agents: output.Agents
|
|
3753
|
-
? deserializeAws_json1_1AgentList(output.Agents, context)
|
|
3754
|
-
: undefined,
|
|
3644
|
+
Agents: output.Agents != null ? deserializeAws_json1_1AgentList(output.Agents, context) : undefined,
|
|
3755
3645
|
NextToken: __expectString(output.NextToken),
|
|
3756
3646
|
};
|
|
3757
3647
|
};
|
|
3758
3648
|
var deserializeAws_json1_1ListLocationsResponse = function (output, context) {
|
|
3759
3649
|
return {
|
|
3760
|
-
Locations: output.Locations
|
|
3761
|
-
? deserializeAws_json1_1LocationList(output.Locations, context)
|
|
3762
|
-
: undefined,
|
|
3650
|
+
Locations: output.Locations != null ? deserializeAws_json1_1LocationList(output.Locations, context) : undefined,
|
|
3763
3651
|
NextToken: __expectString(output.NextToken),
|
|
3764
3652
|
};
|
|
3765
3653
|
};
|
|
3766
3654
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
3767
3655
|
return {
|
|
3768
3656
|
NextToken: __expectString(output.NextToken),
|
|
3769
|
-
Tags: output.Tags
|
|
3770
|
-
? deserializeAws_json1_1OutputTagList(output.Tags, context)
|
|
3771
|
-
: undefined,
|
|
3657
|
+
Tags: output.Tags != null ? deserializeAws_json1_1OutputTagList(output.Tags, context) : undefined,
|
|
3772
3658
|
};
|
|
3773
3659
|
};
|
|
3774
3660
|
var deserializeAws_json1_1ListTaskExecutionsResponse = function (output, context) {
|
|
3775
3661
|
return {
|
|
3776
3662
|
NextToken: __expectString(output.NextToken),
|
|
3777
|
-
TaskExecutions: output.TaskExecutions
|
|
3663
|
+
TaskExecutions: output.TaskExecutions != null
|
|
3778
3664
|
? deserializeAws_json1_1TaskExecutionList(output.TaskExecutions, context)
|
|
3779
3665
|
: undefined,
|
|
3780
3666
|
};
|
|
@@ -3782,9 +3668,7 @@ var deserializeAws_json1_1ListTaskExecutionsResponse = function (output, context
|
|
|
3782
3668
|
var deserializeAws_json1_1ListTasksResponse = function (output, context) {
|
|
3783
3669
|
return {
|
|
3784
3670
|
NextToken: __expectString(output.NextToken),
|
|
3785
|
-
Tasks: output.Tasks
|
|
3786
|
-
? deserializeAws_json1_1TaskList(output.Tasks, context)
|
|
3787
|
-
: undefined,
|
|
3671
|
+
Tasks: output.Tasks != null ? deserializeAws_json1_1TaskList(output.Tasks, context) : undefined,
|
|
3788
3672
|
};
|
|
3789
3673
|
};
|
|
3790
3674
|
var deserializeAws_json1_1LocationList = function (output, context) {
|
|
@@ -3811,9 +3695,7 @@ var deserializeAws_json1_1NfsMountOptions = function (output, context) {
|
|
|
3811
3695
|
};
|
|
3812
3696
|
var deserializeAws_json1_1OnPremConfig = function (output, context) {
|
|
3813
3697
|
return {
|
|
3814
|
-
AgentArns: output.AgentArns
|
|
3815
|
-
? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
|
|
3816
|
-
: undefined,
|
|
3698
|
+
AgentArns: output.AgentArns != null ? deserializeAws_json1_1AgentArnList(output.AgentArns, context) : undefined,
|
|
3817
3699
|
};
|
|
3818
3700
|
};
|
|
3819
3701
|
var deserializeAws_json1_1Options = function (output, context) {
|
|
@@ -3871,12 +3753,10 @@ var deserializeAws_json1_1PLSubnetArnList = function (output, context) {
|
|
|
3871
3753
|
var deserializeAws_json1_1PrivateLinkConfig = function (output, context) {
|
|
3872
3754
|
return {
|
|
3873
3755
|
PrivateLinkEndpoint: __expectString(output.PrivateLinkEndpoint),
|
|
3874
|
-
SecurityGroupArns: output.SecurityGroupArns
|
|
3756
|
+
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3875
3757
|
? deserializeAws_json1_1PLSecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3876
3758
|
: undefined,
|
|
3877
|
-
SubnetArns: output.SubnetArns
|
|
3878
|
-
? deserializeAws_json1_1PLSubnetArnList(output.SubnetArns, context)
|
|
3879
|
-
: undefined,
|
|
3759
|
+
SubnetArns: output.SubnetArns != null ? deserializeAws_json1_1PLSubnetArnList(output.SubnetArns, context) : undefined,
|
|
3880
3760
|
VpcEndpointId: __expectString(output.VpcEndpointId),
|
|
3881
3761
|
};
|
|
3882
3762
|
};
|
|
@@ -4072,5 +3952,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4072
3952
|
if (data["__type"] !== undefined) {
|
|
4073
3953
|
return sanitizeErrorCode(data["__type"]);
|
|
4074
3954
|
}
|
|
4075
|
-
return "";
|
|
4076
3955
|
};
|