@aws-sdk/client-datasync 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +50 -44
- package/dist-es/DataSync.js +178 -185
- package/dist-es/DataSyncClient.js +22 -28
- package/dist-es/commands/CancelTaskExecutionCommand.js +21 -28
- package/dist-es/commands/CreateAgentCommand.js +21 -28
- package/dist-es/commands/CreateLocationEfsCommand.js +21 -28
- package/dist-es/commands/CreateLocationFsxLustreCommand.js +21 -28
- package/dist-es/commands/CreateLocationFsxOntapCommand.js +21 -28
- package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +21 -28
- package/dist-es/commands/CreateLocationFsxWindowsCommand.js +21 -28
- package/dist-es/commands/CreateLocationHdfsCommand.js +21 -28
- package/dist-es/commands/CreateLocationNfsCommand.js +21 -28
- package/dist-es/commands/CreateLocationObjectStorageCommand.js +21 -28
- package/dist-es/commands/CreateLocationS3Command.js +21 -28
- package/dist-es/commands/CreateLocationSmbCommand.js +21 -28
- package/dist-es/commands/CreateTaskCommand.js +21 -28
- package/dist-es/commands/DeleteAgentCommand.js +21 -28
- package/dist-es/commands/DeleteLocationCommand.js +21 -28
- package/dist-es/commands/DeleteTaskCommand.js +21 -28
- package/dist-es/commands/DescribeAgentCommand.js +21 -28
- package/dist-es/commands/DescribeLocationEfsCommand.js +21 -28
- package/dist-es/commands/DescribeLocationFsxLustreCommand.js +21 -28
- package/dist-es/commands/DescribeLocationFsxOntapCommand.js +21 -28
- package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +21 -28
- package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +21 -28
- package/dist-es/commands/DescribeLocationHdfsCommand.js +21 -28
- package/dist-es/commands/DescribeLocationNfsCommand.js +21 -28
- package/dist-es/commands/DescribeLocationObjectStorageCommand.js +21 -28
- package/dist-es/commands/DescribeLocationS3Command.js +21 -28
- package/dist-es/commands/DescribeLocationSmbCommand.js +21 -28
- package/dist-es/commands/DescribeTaskCommand.js +21 -28
- package/dist-es/commands/DescribeTaskExecutionCommand.js +21 -28
- package/dist-es/commands/ListAgentsCommand.js +21 -28
- package/dist-es/commands/ListLocationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTaskExecutionsCommand.js +21 -28
- package/dist-es/commands/ListTasksCommand.js +21 -28
- package/dist-es/commands/StartTaskExecutionCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAgentCommand.js +21 -28
- package/dist-es/commands/UpdateLocationHdfsCommand.js +21 -28
- package/dist-es/commands/UpdateLocationNfsCommand.js +21 -28
- package/dist-es/commands/UpdateLocationObjectStorageCommand.js +21 -28
- package/dist-es/commands/UpdateLocationSmbCommand.js +21 -28
- package/dist-es/commands/UpdateTaskCommand.js +21 -28
- package/dist-es/commands/UpdateTaskExecutionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DataSyncServiceException.js +5 -10
- package/dist-es/models/models_0.js +366 -136
- package/dist-es/pagination/ListAgentsPaginator.js +25 -68
- package/dist-es/pagination/ListLocationsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/pagination/ListTaskExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListTasksPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2608 -3275
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-datasync
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-datasync
|
|
@@ -463,7 +463,7 @@ exports.deserializeAws_json1_1CancelTaskExecutionCommand = deserializeAws_json1_
|
|
|
463
463
|
const deserializeAws_json1_1CancelTaskExecutionCommandError = async (output, context) => {
|
|
464
464
|
const parsedOutput = {
|
|
465
465
|
...output,
|
|
466
|
-
body: await
|
|
466
|
+
body: await parseErrorBody(output.body, context),
|
|
467
467
|
};
|
|
468
468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
469
|
switch (errorCode) {
|
|
@@ -500,7 +500,7 @@ exports.deserializeAws_json1_1CreateAgentCommand = deserializeAws_json1_1CreateA
|
|
|
500
500
|
const deserializeAws_json1_1CreateAgentCommandError = async (output, context) => {
|
|
501
501
|
const parsedOutput = {
|
|
502
502
|
...output,
|
|
503
|
-
body: await
|
|
503
|
+
body: await parseErrorBody(output.body, context),
|
|
504
504
|
};
|
|
505
505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
506
|
switch (errorCode) {
|
|
@@ -537,7 +537,7 @@ exports.deserializeAws_json1_1CreateLocationEfsCommand = deserializeAws_json1_1C
|
|
|
537
537
|
const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, context) => {
|
|
538
538
|
const parsedOutput = {
|
|
539
539
|
...output,
|
|
540
|
-
body: await
|
|
540
|
+
body: await parseErrorBody(output.body, context),
|
|
541
541
|
};
|
|
542
542
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
543
543
|
switch (errorCode) {
|
|
@@ -574,7 +574,7 @@ exports.deserializeAws_json1_1CreateLocationFsxLustreCommand = deserializeAws_js
|
|
|
574
574
|
const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output, context) => {
|
|
575
575
|
const parsedOutput = {
|
|
576
576
|
...output,
|
|
577
|
-
body: await
|
|
577
|
+
body: await parseErrorBody(output.body, context),
|
|
578
578
|
};
|
|
579
579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
580
580
|
switch (errorCode) {
|
|
@@ -611,7 +611,7 @@ exports.deserializeAws_json1_1CreateLocationFsxOntapCommand = deserializeAws_jso
|
|
|
611
611
|
const deserializeAws_json1_1CreateLocationFsxOntapCommandError = async (output, context) => {
|
|
612
612
|
const parsedOutput = {
|
|
613
613
|
...output,
|
|
614
|
-
body: await
|
|
614
|
+
body: await parseErrorBody(output.body, context),
|
|
615
615
|
};
|
|
616
616
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
617
|
switch (errorCode) {
|
|
@@ -648,7 +648,7 @@ exports.deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = deserializeAws_j
|
|
|
648
648
|
const deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
649
649
|
const parsedOutput = {
|
|
650
650
|
...output,
|
|
651
|
-
body: await
|
|
651
|
+
body: await parseErrorBody(output.body, context),
|
|
652
652
|
};
|
|
653
653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
654
|
switch (errorCode) {
|
|
@@ -685,7 +685,7 @@ exports.deserializeAws_json1_1CreateLocationFsxWindowsCommand = deserializeAws_j
|
|
|
685
685
|
const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output, context) => {
|
|
686
686
|
const parsedOutput = {
|
|
687
687
|
...output,
|
|
688
|
-
body: await
|
|
688
|
+
body: await parseErrorBody(output.body, context),
|
|
689
689
|
};
|
|
690
690
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
691
691
|
switch (errorCode) {
|
|
@@ -722,7 +722,7 @@ exports.deserializeAws_json1_1CreateLocationHdfsCommand = deserializeAws_json1_1
|
|
|
722
722
|
const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, context) => {
|
|
723
723
|
const parsedOutput = {
|
|
724
724
|
...output,
|
|
725
|
-
body: await
|
|
725
|
+
body: await parseErrorBody(output.body, context),
|
|
726
726
|
};
|
|
727
727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
728
|
switch (errorCode) {
|
|
@@ -759,7 +759,7 @@ exports.deserializeAws_json1_1CreateLocationNfsCommand = deserializeAws_json1_1C
|
|
|
759
759
|
const deserializeAws_json1_1CreateLocationNfsCommandError = async (output, context) => {
|
|
760
760
|
const parsedOutput = {
|
|
761
761
|
...output,
|
|
762
|
-
body: await
|
|
762
|
+
body: await parseErrorBody(output.body, context),
|
|
763
763
|
};
|
|
764
764
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
765
|
switch (errorCode) {
|
|
@@ -796,7 +796,7 @@ exports.deserializeAws_json1_1CreateLocationObjectStorageCommand = deserializeAw
|
|
|
796
796
|
const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (output, context) => {
|
|
797
797
|
const parsedOutput = {
|
|
798
798
|
...output,
|
|
799
|
-
body: await
|
|
799
|
+
body: await parseErrorBody(output.body, context),
|
|
800
800
|
};
|
|
801
801
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
802
|
switch (errorCode) {
|
|
@@ -833,7 +833,7 @@ exports.deserializeAws_json1_1CreateLocationS3Command = deserializeAws_json1_1Cr
|
|
|
833
833
|
const deserializeAws_json1_1CreateLocationS3CommandError = async (output, context) => {
|
|
834
834
|
const parsedOutput = {
|
|
835
835
|
...output,
|
|
836
|
-
body: await
|
|
836
|
+
body: await parseErrorBody(output.body, context),
|
|
837
837
|
};
|
|
838
838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
839
|
switch (errorCode) {
|
|
@@ -870,7 +870,7 @@ exports.deserializeAws_json1_1CreateLocationSmbCommand = deserializeAws_json1_1C
|
|
|
870
870
|
const deserializeAws_json1_1CreateLocationSmbCommandError = async (output, context) => {
|
|
871
871
|
const parsedOutput = {
|
|
872
872
|
...output,
|
|
873
|
-
body: await
|
|
873
|
+
body: await parseErrorBody(output.body, context),
|
|
874
874
|
};
|
|
875
875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
876
|
switch (errorCode) {
|
|
@@ -907,7 +907,7 @@ exports.deserializeAws_json1_1CreateTaskCommand = deserializeAws_json1_1CreateTa
|
|
|
907
907
|
const deserializeAws_json1_1CreateTaskCommandError = async (output, context) => {
|
|
908
908
|
const parsedOutput = {
|
|
909
909
|
...output,
|
|
910
|
-
body: await
|
|
910
|
+
body: await parseErrorBody(output.body, context),
|
|
911
911
|
};
|
|
912
912
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
913
|
switch (errorCode) {
|
|
@@ -944,7 +944,7 @@ exports.deserializeAws_json1_1DeleteAgentCommand = deserializeAws_json1_1DeleteA
|
|
|
944
944
|
const deserializeAws_json1_1DeleteAgentCommandError = async (output, context) => {
|
|
945
945
|
const parsedOutput = {
|
|
946
946
|
...output,
|
|
947
|
-
body: await
|
|
947
|
+
body: await parseErrorBody(output.body, context),
|
|
948
948
|
};
|
|
949
949
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
950
|
switch (errorCode) {
|
|
@@ -981,7 +981,7 @@ exports.deserializeAws_json1_1DeleteLocationCommand = deserializeAws_json1_1Dele
|
|
|
981
981
|
const deserializeAws_json1_1DeleteLocationCommandError = async (output, context) => {
|
|
982
982
|
const parsedOutput = {
|
|
983
983
|
...output,
|
|
984
|
-
body: await
|
|
984
|
+
body: await parseErrorBody(output.body, context),
|
|
985
985
|
};
|
|
986
986
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
987
|
switch (errorCode) {
|
|
@@ -1018,7 +1018,7 @@ exports.deserializeAws_json1_1DeleteTaskCommand = deserializeAws_json1_1DeleteTa
|
|
|
1018
1018
|
const deserializeAws_json1_1DeleteTaskCommandError = async (output, context) => {
|
|
1019
1019
|
const parsedOutput = {
|
|
1020
1020
|
...output,
|
|
1021
|
-
body: await
|
|
1021
|
+
body: await parseErrorBody(output.body, context),
|
|
1022
1022
|
};
|
|
1023
1023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
1024
|
switch (errorCode) {
|
|
@@ -1055,7 +1055,7 @@ exports.deserializeAws_json1_1DescribeAgentCommand = deserializeAws_json1_1Descr
|
|
|
1055
1055
|
const deserializeAws_json1_1DescribeAgentCommandError = async (output, context) => {
|
|
1056
1056
|
const parsedOutput = {
|
|
1057
1057
|
...output,
|
|
1058
|
-
body: await
|
|
1058
|
+
body: await parseErrorBody(output.body, context),
|
|
1059
1059
|
};
|
|
1060
1060
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
1061
|
switch (errorCode) {
|
|
@@ -1092,7 +1092,7 @@ exports.deserializeAws_json1_1DescribeLocationEfsCommand = deserializeAws_json1_
|
|
|
1092
1092
|
const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, context) => {
|
|
1093
1093
|
const parsedOutput = {
|
|
1094
1094
|
...output,
|
|
1095
|
-
body: await
|
|
1095
|
+
body: await parseErrorBody(output.body, context),
|
|
1096
1096
|
};
|
|
1097
1097
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
1098
|
switch (errorCode) {
|
|
@@ -1129,7 +1129,7 @@ exports.deserializeAws_json1_1DescribeLocationFsxLustreCommand = deserializeAws_
|
|
|
1129
1129
|
const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (output, context) => {
|
|
1130
1130
|
const parsedOutput = {
|
|
1131
1131
|
...output,
|
|
1132
|
-
body: await
|
|
1132
|
+
body: await parseErrorBody(output.body, context),
|
|
1133
1133
|
};
|
|
1134
1134
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
1135
|
switch (errorCode) {
|
|
@@ -1166,7 +1166,7 @@ exports.deserializeAws_json1_1DescribeLocationFsxOntapCommand = deserializeAws_j
|
|
|
1166
1166
|
const deserializeAws_json1_1DescribeLocationFsxOntapCommandError = async (output, context) => {
|
|
1167
1167
|
const parsedOutput = {
|
|
1168
1168
|
...output,
|
|
1169
|
-
body: await
|
|
1169
|
+
body: await parseErrorBody(output.body, context),
|
|
1170
1170
|
};
|
|
1171
1171
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
1172
|
switch (errorCode) {
|
|
@@ -1203,7 +1203,7 @@ exports.deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand = deserializeAws
|
|
|
1203
1203
|
const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
1204
1204
|
const parsedOutput = {
|
|
1205
1205
|
...output,
|
|
1206
|
-
body: await
|
|
1206
|
+
body: await parseErrorBody(output.body, context),
|
|
1207
1207
|
};
|
|
1208
1208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
1209
|
switch (errorCode) {
|
|
@@ -1240,7 +1240,7 @@ exports.deserializeAws_json1_1DescribeLocationFsxWindowsCommand = deserializeAws
|
|
|
1240
1240
|
const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (output, context) => {
|
|
1241
1241
|
const parsedOutput = {
|
|
1242
1242
|
...output,
|
|
1243
|
-
body: await
|
|
1243
|
+
body: await parseErrorBody(output.body, context),
|
|
1244
1244
|
};
|
|
1245
1245
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
1246
|
switch (errorCode) {
|
|
@@ -1277,7 +1277,7 @@ exports.deserializeAws_json1_1DescribeLocationHdfsCommand = deserializeAws_json1
|
|
|
1277
1277
|
const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, context) => {
|
|
1278
1278
|
const parsedOutput = {
|
|
1279
1279
|
...output,
|
|
1280
|
-
body: await
|
|
1280
|
+
body: await parseErrorBody(output.body, context),
|
|
1281
1281
|
};
|
|
1282
1282
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
1283
|
switch (errorCode) {
|
|
@@ -1314,7 +1314,7 @@ exports.deserializeAws_json1_1DescribeLocationNfsCommand = deserializeAws_json1_
|
|
|
1314
1314
|
const deserializeAws_json1_1DescribeLocationNfsCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
|
-
body: await
|
|
1317
|
+
body: await parseErrorBody(output.body, context),
|
|
1318
1318
|
};
|
|
1319
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
switch (errorCode) {
|
|
@@ -1351,7 +1351,7 @@ exports.deserializeAws_json1_1DescribeLocationObjectStorageCommand = deserialize
|
|
|
1351
1351
|
const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (output, context) => {
|
|
1352
1352
|
const parsedOutput = {
|
|
1353
1353
|
...output,
|
|
1354
|
-
body: await
|
|
1354
|
+
body: await parseErrorBody(output.body, context),
|
|
1355
1355
|
};
|
|
1356
1356
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1357
|
switch (errorCode) {
|
|
@@ -1388,7 +1388,7 @@ exports.deserializeAws_json1_1DescribeLocationS3Command = deserializeAws_json1_1
|
|
|
1388
1388
|
const deserializeAws_json1_1DescribeLocationS3CommandError = async (output, context) => {
|
|
1389
1389
|
const parsedOutput = {
|
|
1390
1390
|
...output,
|
|
1391
|
-
body: await
|
|
1391
|
+
body: await parseErrorBody(output.body, context),
|
|
1392
1392
|
};
|
|
1393
1393
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
1394
|
switch (errorCode) {
|
|
@@ -1425,7 +1425,7 @@ exports.deserializeAws_json1_1DescribeLocationSmbCommand = deserializeAws_json1_
|
|
|
1425
1425
|
const deserializeAws_json1_1DescribeLocationSmbCommandError = async (output, context) => {
|
|
1426
1426
|
const parsedOutput = {
|
|
1427
1427
|
...output,
|
|
1428
|
-
body: await
|
|
1428
|
+
body: await parseErrorBody(output.body, context),
|
|
1429
1429
|
};
|
|
1430
1430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1431
1431
|
switch (errorCode) {
|
|
@@ -1462,7 +1462,7 @@ exports.deserializeAws_json1_1DescribeTaskCommand = deserializeAws_json1_1Descri
|
|
|
1462
1462
|
const deserializeAws_json1_1DescribeTaskCommandError = async (output, context) => {
|
|
1463
1463
|
const parsedOutput = {
|
|
1464
1464
|
...output,
|
|
1465
|
-
body: await
|
|
1465
|
+
body: await parseErrorBody(output.body, context),
|
|
1466
1466
|
};
|
|
1467
1467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
1468
|
switch (errorCode) {
|
|
@@ -1499,7 +1499,7 @@ exports.deserializeAws_json1_1DescribeTaskExecutionCommand = deserializeAws_json
|
|
|
1499
1499
|
const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (output, context) => {
|
|
1500
1500
|
const parsedOutput = {
|
|
1501
1501
|
...output,
|
|
1502
|
-
body: await
|
|
1502
|
+
body: await parseErrorBody(output.body, context),
|
|
1503
1503
|
};
|
|
1504
1504
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
1505
|
switch (errorCode) {
|
|
@@ -1536,7 +1536,7 @@ exports.deserializeAws_json1_1ListAgentsCommand = deserializeAws_json1_1ListAgen
|
|
|
1536
1536
|
const deserializeAws_json1_1ListAgentsCommandError = async (output, context) => {
|
|
1537
1537
|
const parsedOutput = {
|
|
1538
1538
|
...output,
|
|
1539
|
-
body: await
|
|
1539
|
+
body: await parseErrorBody(output.body, context),
|
|
1540
1540
|
};
|
|
1541
1541
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
1542
|
switch (errorCode) {
|
|
@@ -1573,7 +1573,7 @@ exports.deserializeAws_json1_1ListLocationsCommand = deserializeAws_json1_1ListL
|
|
|
1573
1573
|
const deserializeAws_json1_1ListLocationsCommandError = async (output, context) => {
|
|
1574
1574
|
const parsedOutput = {
|
|
1575
1575
|
...output,
|
|
1576
|
-
body: await
|
|
1576
|
+
body: await parseErrorBody(output.body, context),
|
|
1577
1577
|
};
|
|
1578
1578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
1579
|
switch (errorCode) {
|
|
@@ -1610,7 +1610,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1610
1610
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1611
1611
|
const parsedOutput = {
|
|
1612
1612
|
...output,
|
|
1613
|
-
body: await
|
|
1613
|
+
body: await parseErrorBody(output.body, context),
|
|
1614
1614
|
};
|
|
1615
1615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
1616
|
switch (errorCode) {
|
|
@@ -1647,7 +1647,7 @@ exports.deserializeAws_json1_1ListTaskExecutionsCommand = deserializeAws_json1_1
|
|
|
1647
1647
|
const deserializeAws_json1_1ListTaskExecutionsCommandError = async (output, context) => {
|
|
1648
1648
|
const parsedOutput = {
|
|
1649
1649
|
...output,
|
|
1650
|
-
body: await
|
|
1650
|
+
body: await parseErrorBody(output.body, context),
|
|
1651
1651
|
};
|
|
1652
1652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
1653
|
switch (errorCode) {
|
|
@@ -1684,7 +1684,7 @@ exports.deserializeAws_json1_1ListTasksCommand = deserializeAws_json1_1ListTasks
|
|
|
1684
1684
|
const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
1685
1685
|
const parsedOutput = {
|
|
1686
1686
|
...output,
|
|
1687
|
-
body: await
|
|
1687
|
+
body: await parseErrorBody(output.body, context),
|
|
1688
1688
|
};
|
|
1689
1689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1690
|
switch (errorCode) {
|
|
@@ -1721,7 +1721,7 @@ exports.deserializeAws_json1_1StartTaskExecutionCommand = deserializeAws_json1_1
|
|
|
1721
1721
|
const deserializeAws_json1_1StartTaskExecutionCommandError = async (output, context) => {
|
|
1722
1722
|
const parsedOutput = {
|
|
1723
1723
|
...output,
|
|
1724
|
-
body: await
|
|
1724
|
+
body: await parseErrorBody(output.body, context),
|
|
1725
1725
|
};
|
|
1726
1726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
1727
|
switch (errorCode) {
|
|
@@ -1758,7 +1758,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1758
1758
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1759
1759
|
const parsedOutput = {
|
|
1760
1760
|
...output,
|
|
1761
|
-
body: await
|
|
1761
|
+
body: await parseErrorBody(output.body, context),
|
|
1762
1762
|
};
|
|
1763
1763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
1764
|
switch (errorCode) {
|
|
@@ -1795,7 +1795,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1795
1795
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1796
1796
|
const parsedOutput = {
|
|
1797
1797
|
...output,
|
|
1798
|
-
body: await
|
|
1798
|
+
body: await parseErrorBody(output.body, context),
|
|
1799
1799
|
};
|
|
1800
1800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
1801
|
switch (errorCode) {
|
|
@@ -1832,7 +1832,7 @@ exports.deserializeAws_json1_1UpdateAgentCommand = deserializeAws_json1_1UpdateA
|
|
|
1832
1832
|
const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) => {
|
|
1833
1833
|
const parsedOutput = {
|
|
1834
1834
|
...output,
|
|
1835
|
-
body: await
|
|
1835
|
+
body: await parseErrorBody(output.body, context),
|
|
1836
1836
|
};
|
|
1837
1837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
1838
|
switch (errorCode) {
|
|
@@ -1869,7 +1869,7 @@ exports.deserializeAws_json1_1UpdateLocationHdfsCommand = deserializeAws_json1_1
|
|
|
1869
1869
|
const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, context) => {
|
|
1870
1870
|
const parsedOutput = {
|
|
1871
1871
|
...output,
|
|
1872
|
-
body: await
|
|
1872
|
+
body: await parseErrorBody(output.body, context),
|
|
1873
1873
|
};
|
|
1874
1874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1875
1875
|
switch (errorCode) {
|
|
@@ -1906,7 +1906,7 @@ exports.deserializeAws_json1_1UpdateLocationNfsCommand = deserializeAws_json1_1U
|
|
|
1906
1906
|
const deserializeAws_json1_1UpdateLocationNfsCommandError = async (output, context) => {
|
|
1907
1907
|
const parsedOutput = {
|
|
1908
1908
|
...output,
|
|
1909
|
-
body: await
|
|
1909
|
+
body: await parseErrorBody(output.body, context),
|
|
1910
1910
|
};
|
|
1911
1911
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1912
|
switch (errorCode) {
|
|
@@ -1943,7 +1943,7 @@ exports.deserializeAws_json1_1UpdateLocationObjectStorageCommand = deserializeAw
|
|
|
1943
1943
|
const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (output, context) => {
|
|
1944
1944
|
const parsedOutput = {
|
|
1945
1945
|
...output,
|
|
1946
|
-
body: await
|
|
1946
|
+
body: await parseErrorBody(output.body, context),
|
|
1947
1947
|
};
|
|
1948
1948
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
1949
|
switch (errorCode) {
|
|
@@ -1980,7 +1980,7 @@ exports.deserializeAws_json1_1UpdateLocationSmbCommand = deserializeAws_json1_1U
|
|
|
1980
1980
|
const deserializeAws_json1_1UpdateLocationSmbCommandError = async (output, context) => {
|
|
1981
1981
|
const parsedOutput = {
|
|
1982
1982
|
...output,
|
|
1983
|
-
body: await
|
|
1983
|
+
body: await parseErrorBody(output.body, context),
|
|
1984
1984
|
};
|
|
1985
1985
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
1986
|
switch (errorCode) {
|
|
@@ -2017,7 +2017,7 @@ exports.deserializeAws_json1_1UpdateTaskCommand = deserializeAws_json1_1UpdateTa
|
|
|
2017
2017
|
const deserializeAws_json1_1UpdateTaskCommandError = async (output, context) => {
|
|
2018
2018
|
const parsedOutput = {
|
|
2019
2019
|
...output,
|
|
2020
|
-
body: await
|
|
2020
|
+
body: await parseErrorBody(output.body, context),
|
|
2021
2021
|
};
|
|
2022
2022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
2023
|
switch (errorCode) {
|
|
@@ -2054,7 +2054,7 @@ exports.deserializeAws_json1_1UpdateTaskExecutionCommand = deserializeAws_json1_
|
|
|
2054
2054
|
const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (output, context) => {
|
|
2055
2055
|
const parsedOutput = {
|
|
2056
2056
|
...output,
|
|
2057
|
-
body: await
|
|
2057
|
+
body: await parseErrorBody(output.body, context),
|
|
2058
2058
|
};
|
|
2059
2059
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
2060
|
switch (errorCode) {
|
|
@@ -3320,6 +3320,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3320
3320
|
}
|
|
3321
3321
|
return {};
|
|
3322
3322
|
});
|
|
3323
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3324
|
+
var _a;
|
|
3325
|
+
const value = await parseBody(errorBody, context);
|
|
3326
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3327
|
+
return value;
|
|
3328
|
+
};
|
|
3323
3329
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3324
3330
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3325
3331
|
const sanitizeErrorCode = (rawValue) => {
|