@aws-sdk/client-transfer 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 +64 -58
- package/dist-es/Transfer.js +234 -241
- package/dist-es/TransferClient.js +22 -28
- package/dist-es/commands/CreateAccessCommand.js +21 -28
- package/dist-es/commands/CreateAgreementCommand.js +21 -28
- package/dist-es/commands/CreateConnectorCommand.js +21 -28
- package/dist-es/commands/CreateProfileCommand.js +21 -28
- package/dist-es/commands/CreateServerCommand.js +21 -28
- package/dist-es/commands/CreateUserCommand.js +21 -28
- package/dist-es/commands/CreateWorkflowCommand.js +21 -28
- package/dist-es/commands/DeleteAccessCommand.js +22 -29
- package/dist-es/commands/DeleteAgreementCommand.js +22 -29
- package/dist-es/commands/DeleteCertificateCommand.js +22 -29
- package/dist-es/commands/DeleteConnectorCommand.js +22 -29
- package/dist-es/commands/DeleteHostKeyCommand.js +22 -29
- package/dist-es/commands/DeleteProfileCommand.js +22 -29
- package/dist-es/commands/DeleteServerCommand.js +22 -29
- package/dist-es/commands/DeleteSshPublicKeyCommand.js +22 -29
- package/dist-es/commands/DeleteUserCommand.js +22 -29
- package/dist-es/commands/DeleteWorkflowCommand.js +22 -29
- package/dist-es/commands/DescribeAccessCommand.js +21 -28
- package/dist-es/commands/DescribeAgreementCommand.js +21 -28
- package/dist-es/commands/DescribeCertificateCommand.js +21 -28
- package/dist-es/commands/DescribeConnectorCommand.js +21 -28
- package/dist-es/commands/DescribeExecutionCommand.js +21 -28
- package/dist-es/commands/DescribeHostKeyCommand.js +21 -28
- package/dist-es/commands/DescribeProfileCommand.js +21 -28
- package/dist-es/commands/DescribeSecurityPolicyCommand.js +21 -28
- package/dist-es/commands/DescribeServerCommand.js +21 -28
- package/dist-es/commands/DescribeUserCommand.js +21 -28
- package/dist-es/commands/DescribeWorkflowCommand.js +21 -28
- package/dist-es/commands/ImportCertificateCommand.js +21 -28
- package/dist-es/commands/ImportHostKeyCommand.js +21 -28
- package/dist-es/commands/ImportSshPublicKeyCommand.js +21 -28
- package/dist-es/commands/ListAccessesCommand.js +21 -28
- package/dist-es/commands/ListAgreementsCommand.js +21 -28
- package/dist-es/commands/ListCertificatesCommand.js +21 -28
- package/dist-es/commands/ListConnectorsCommand.js +21 -28
- package/dist-es/commands/ListExecutionsCommand.js +21 -28
- package/dist-es/commands/ListHostKeysCommand.js +21 -28
- package/dist-es/commands/ListProfilesCommand.js +21 -28
- package/dist-es/commands/ListSecurityPoliciesCommand.js +21 -28
- package/dist-es/commands/ListServersCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListUsersCommand.js +21 -28
- package/dist-es/commands/ListWorkflowsCommand.js +21 -28
- package/dist-es/commands/SendWorkflowStepStateCommand.js +21 -28
- package/dist-es/commands/StartFileTransferCommand.js +21 -28
- package/dist-es/commands/StartServerCommand.js +22 -29
- package/dist-es/commands/StopServerCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/TestIdentityProviderCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateAccessCommand.js +21 -28
- package/dist-es/commands/UpdateAgreementCommand.js +21 -28
- package/dist-es/commands/UpdateCertificateCommand.js +21 -28
- package/dist-es/commands/UpdateConnectorCommand.js +21 -28
- package/dist-es/commands/UpdateHostKeyCommand.js +21 -28
- package/dist-es/commands/UpdateProfileCommand.js +21 -28
- package/dist-es/commands/UpdateServerCommand.js +21 -28
- package/dist-es/commands/UpdateUserCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/TransferServiceException.js +5 -10
- package/dist-es/models/models_0.js +572 -263
- package/dist-es/pagination/ListAccessesPaginator.js +25 -68
- package/dist-es/pagination/ListAgreementsPaginator.js +25 -68
- package/dist-es/pagination/ListCertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListConnectorsPaginator.js +25 -68
- package/dist-es/pagination/ListExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListProfilesPaginator.js +25 -68
- package/dist-es/pagination/ListSecurityPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListServersPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/pagination/ListUsersPaginator.js +25 -68
- package/dist-es/pagination/ListWorkflowsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +3961 -5054
- 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/dist-es/waiters/waitForServerOffline.js +36 -56
- package/dist-es/waiters/waitForServerOnline.js +36 -56
- package/package.json +34 -34
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-transfer
|
|
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-transfer
|
|
@@ -604,7 +604,7 @@ exports.deserializeAws_json1_1CreateAccessCommand = deserializeAws_json1_1Create
|
|
|
604
604
|
const deserializeAws_json1_1CreateAccessCommandError = async (output, context) => {
|
|
605
605
|
const parsedOutput = {
|
|
606
606
|
...output,
|
|
607
|
-
body: await
|
|
607
|
+
body: await parseErrorBody(output.body, context),
|
|
608
608
|
};
|
|
609
609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
610
|
switch (errorCode) {
|
|
@@ -650,7 +650,7 @@ exports.deserializeAws_json1_1CreateAgreementCommand = deserializeAws_json1_1Cre
|
|
|
650
650
|
const deserializeAws_json1_1CreateAgreementCommandError = async (output, context) => {
|
|
651
651
|
const parsedOutput = {
|
|
652
652
|
...output,
|
|
653
|
-
body: await
|
|
653
|
+
body: await parseErrorBody(output.body, context),
|
|
654
654
|
};
|
|
655
655
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
656
|
switch (errorCode) {
|
|
@@ -696,7 +696,7 @@ exports.deserializeAws_json1_1CreateConnectorCommand = deserializeAws_json1_1Cre
|
|
|
696
696
|
const deserializeAws_json1_1CreateConnectorCommandError = async (output, context) => {
|
|
697
697
|
const parsedOutput = {
|
|
698
698
|
...output,
|
|
699
|
-
body: await
|
|
699
|
+
body: await parseErrorBody(output.body, context),
|
|
700
700
|
};
|
|
701
701
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
702
|
switch (errorCode) {
|
|
@@ -742,7 +742,7 @@ exports.deserializeAws_json1_1CreateProfileCommand = deserializeAws_json1_1Creat
|
|
|
742
742
|
const deserializeAws_json1_1CreateProfileCommandError = async (output, context) => {
|
|
743
743
|
const parsedOutput = {
|
|
744
744
|
...output,
|
|
745
|
-
body: await
|
|
745
|
+
body: await parseErrorBody(output.body, context),
|
|
746
746
|
};
|
|
747
747
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
748
748
|
switch (errorCode) {
|
|
@@ -785,7 +785,7 @@ exports.deserializeAws_json1_1CreateServerCommand = deserializeAws_json1_1Create
|
|
|
785
785
|
const deserializeAws_json1_1CreateServerCommandError = async (output, context) => {
|
|
786
786
|
const parsedOutput = {
|
|
787
787
|
...output,
|
|
788
|
-
body: await
|
|
788
|
+
body: await parseErrorBody(output.body, context),
|
|
789
789
|
};
|
|
790
790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
791
|
switch (errorCode) {
|
|
@@ -837,7 +837,7 @@ exports.deserializeAws_json1_1CreateUserCommand = deserializeAws_json1_1CreateUs
|
|
|
837
837
|
const deserializeAws_json1_1CreateUserCommandError = async (output, context) => {
|
|
838
838
|
const parsedOutput = {
|
|
839
839
|
...output,
|
|
840
|
-
body: await
|
|
840
|
+
body: await parseErrorBody(output.body, context),
|
|
841
841
|
};
|
|
842
842
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
843
|
switch (errorCode) {
|
|
@@ -883,7 +883,7 @@ exports.deserializeAws_json1_1CreateWorkflowCommand = deserializeAws_json1_1Crea
|
|
|
883
883
|
const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context) => {
|
|
884
884
|
const parsedOutput = {
|
|
885
885
|
...output,
|
|
886
|
-
body: await
|
|
886
|
+
body: await parseErrorBody(output.body, context),
|
|
887
887
|
};
|
|
888
888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
889
|
switch (errorCode) {
|
|
@@ -929,7 +929,7 @@ exports.deserializeAws_json1_1DeleteAccessCommand = deserializeAws_json1_1Delete
|
|
|
929
929
|
const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) => {
|
|
930
930
|
const parsedOutput = {
|
|
931
931
|
...output,
|
|
932
|
-
body: await
|
|
932
|
+
body: await parseErrorBody(output.body, context),
|
|
933
933
|
};
|
|
934
934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
935
|
switch (errorCode) {
|
|
@@ -969,7 +969,7 @@ exports.deserializeAws_json1_1DeleteAgreementCommand = deserializeAws_json1_1Del
|
|
|
969
969
|
const deserializeAws_json1_1DeleteAgreementCommandError = async (output, context) => {
|
|
970
970
|
const parsedOutput = {
|
|
971
971
|
...output,
|
|
972
|
-
body: await
|
|
972
|
+
body: await parseErrorBody(output.body, context),
|
|
973
973
|
};
|
|
974
974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
975
|
switch (errorCode) {
|
|
@@ -1009,7 +1009,7 @@ exports.deserializeAws_json1_1DeleteCertificateCommand = deserializeAws_json1_1D
|
|
|
1009
1009
|
const deserializeAws_json1_1DeleteCertificateCommandError = async (output, context) => {
|
|
1010
1010
|
const parsedOutput = {
|
|
1011
1011
|
...output,
|
|
1012
|
-
body: await
|
|
1012
|
+
body: await parseErrorBody(output.body, context),
|
|
1013
1013
|
};
|
|
1014
1014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1015
|
switch (errorCode) {
|
|
@@ -1049,7 +1049,7 @@ exports.deserializeAws_json1_1DeleteConnectorCommand = deserializeAws_json1_1Del
|
|
|
1049
1049
|
const deserializeAws_json1_1DeleteConnectorCommandError = async (output, context) => {
|
|
1050
1050
|
const parsedOutput = {
|
|
1051
1051
|
...output,
|
|
1052
|
-
body: await
|
|
1052
|
+
body: await parseErrorBody(output.body, context),
|
|
1053
1053
|
};
|
|
1054
1054
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
1055
|
switch (errorCode) {
|
|
@@ -1089,7 +1089,7 @@ exports.deserializeAws_json1_1DeleteHostKeyCommand = deserializeAws_json1_1Delet
|
|
|
1089
1089
|
const deserializeAws_json1_1DeleteHostKeyCommandError = async (output, context) => {
|
|
1090
1090
|
const parsedOutput = {
|
|
1091
1091
|
...output,
|
|
1092
|
-
body: await
|
|
1092
|
+
body: await parseErrorBody(output.body, context),
|
|
1093
1093
|
};
|
|
1094
1094
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
1095
|
switch (errorCode) {
|
|
@@ -1132,7 +1132,7 @@ exports.deserializeAws_json1_1DeleteProfileCommand = deserializeAws_json1_1Delet
|
|
|
1132
1132
|
const deserializeAws_json1_1DeleteProfileCommandError = async (output, context) => {
|
|
1133
1133
|
const parsedOutput = {
|
|
1134
1134
|
...output,
|
|
1135
|
-
body: await
|
|
1135
|
+
body: await parseErrorBody(output.body, context),
|
|
1136
1136
|
};
|
|
1137
1137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
1138
|
switch (errorCode) {
|
|
@@ -1172,7 +1172,7 @@ exports.deserializeAws_json1_1DeleteServerCommand = deserializeAws_json1_1Delete
|
|
|
1172
1172
|
const deserializeAws_json1_1DeleteServerCommandError = async (output, context) => {
|
|
1173
1173
|
const parsedOutput = {
|
|
1174
1174
|
...output,
|
|
1175
|
-
body: await
|
|
1175
|
+
body: await parseErrorBody(output.body, context),
|
|
1176
1176
|
};
|
|
1177
1177
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
1178
|
switch (errorCode) {
|
|
@@ -1215,7 +1215,7 @@ exports.deserializeAws_json1_1DeleteSshPublicKeyCommand = deserializeAws_json1_1
|
|
|
1215
1215
|
const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, context) => {
|
|
1216
1216
|
const parsedOutput = {
|
|
1217
1217
|
...output,
|
|
1218
|
-
body: await
|
|
1218
|
+
body: await parseErrorBody(output.body, context),
|
|
1219
1219
|
};
|
|
1220
1220
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
1221
|
switch (errorCode) {
|
|
@@ -1258,7 +1258,7 @@ exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUs
|
|
|
1258
1258
|
const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
|
|
1259
1259
|
const parsedOutput = {
|
|
1260
1260
|
...output,
|
|
1261
|
-
body: await
|
|
1261
|
+
body: await parseErrorBody(output.body, context),
|
|
1262
1262
|
};
|
|
1263
1263
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
1264
|
switch (errorCode) {
|
|
@@ -1298,7 +1298,7 @@ exports.deserializeAws_json1_1DeleteWorkflowCommand = deserializeAws_json1_1Dele
|
|
|
1298
1298
|
const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context) => {
|
|
1299
1299
|
const parsedOutput = {
|
|
1300
1300
|
...output,
|
|
1301
|
-
body: await
|
|
1301
|
+
body: await parseErrorBody(output.body, context),
|
|
1302
1302
|
};
|
|
1303
1303
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
1304
|
switch (errorCode) {
|
|
@@ -1344,7 +1344,7 @@ exports.deserializeAws_json1_1DescribeAccessCommand = deserializeAws_json1_1Desc
|
|
|
1344
1344
|
const deserializeAws_json1_1DescribeAccessCommandError = async (output, context) => {
|
|
1345
1345
|
const parsedOutput = {
|
|
1346
1346
|
...output,
|
|
1347
|
-
body: await
|
|
1347
|
+
body: await parseErrorBody(output.body, context),
|
|
1348
1348
|
};
|
|
1349
1349
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1350
1350
|
switch (errorCode) {
|
|
@@ -1387,7 +1387,7 @@ exports.deserializeAws_json1_1DescribeAgreementCommand = deserializeAws_json1_1D
|
|
|
1387
1387
|
const deserializeAws_json1_1DescribeAgreementCommandError = async (output, context) => {
|
|
1388
1388
|
const parsedOutput = {
|
|
1389
1389
|
...output,
|
|
1390
|
-
body: await
|
|
1390
|
+
body: await parseErrorBody(output.body, context),
|
|
1391
1391
|
};
|
|
1392
1392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1393
1393
|
switch (errorCode) {
|
|
@@ -1430,7 +1430,7 @@ exports.deserializeAws_json1_1DescribeCertificateCommand = deserializeAws_json1_
|
|
|
1430
1430
|
const deserializeAws_json1_1DescribeCertificateCommandError = async (output, context) => {
|
|
1431
1431
|
const parsedOutput = {
|
|
1432
1432
|
...output,
|
|
1433
|
-
body: await
|
|
1433
|
+
body: await parseErrorBody(output.body, context),
|
|
1434
1434
|
};
|
|
1435
1435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
1436
|
switch (errorCode) {
|
|
@@ -1473,7 +1473,7 @@ exports.deserializeAws_json1_1DescribeConnectorCommand = deserializeAws_json1_1D
|
|
|
1473
1473
|
const deserializeAws_json1_1DescribeConnectorCommandError = async (output, context) => {
|
|
1474
1474
|
const parsedOutput = {
|
|
1475
1475
|
...output,
|
|
1476
|
-
body: await
|
|
1476
|
+
body: await parseErrorBody(output.body, context),
|
|
1477
1477
|
};
|
|
1478
1478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
1479
|
switch (errorCode) {
|
|
@@ -1516,7 +1516,7 @@ exports.deserializeAws_json1_1DescribeExecutionCommand = deserializeAws_json1_1D
|
|
|
1516
1516
|
const deserializeAws_json1_1DescribeExecutionCommandError = async (output, context) => {
|
|
1517
1517
|
const parsedOutput = {
|
|
1518
1518
|
...output,
|
|
1519
|
-
body: await
|
|
1519
|
+
body: await parseErrorBody(output.body, context),
|
|
1520
1520
|
};
|
|
1521
1521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
1522
|
switch (errorCode) {
|
|
@@ -1559,7 +1559,7 @@ exports.deserializeAws_json1_1DescribeHostKeyCommand = deserializeAws_json1_1Des
|
|
|
1559
1559
|
const deserializeAws_json1_1DescribeHostKeyCommandError = async (output, context) => {
|
|
1560
1560
|
const parsedOutput = {
|
|
1561
1561
|
...output,
|
|
1562
|
-
body: await
|
|
1562
|
+
body: await parseErrorBody(output.body, context),
|
|
1563
1563
|
};
|
|
1564
1564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
1565
|
switch (errorCode) {
|
|
@@ -1602,7 +1602,7 @@ exports.deserializeAws_json1_1DescribeProfileCommand = deserializeAws_json1_1Des
|
|
|
1602
1602
|
const deserializeAws_json1_1DescribeProfileCommandError = async (output, context) => {
|
|
1603
1603
|
const parsedOutput = {
|
|
1604
1604
|
...output,
|
|
1605
|
-
body: await
|
|
1605
|
+
body: await parseErrorBody(output.body, context),
|
|
1606
1606
|
};
|
|
1607
1607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
1608
|
switch (errorCode) {
|
|
@@ -1645,7 +1645,7 @@ exports.deserializeAws_json1_1DescribeSecurityPolicyCommand = deserializeAws_jso
|
|
|
1645
1645
|
const deserializeAws_json1_1DescribeSecurityPolicyCommandError = async (output, context) => {
|
|
1646
1646
|
const parsedOutput = {
|
|
1647
1647
|
...output,
|
|
1648
|
-
body: await
|
|
1648
|
+
body: await parseErrorBody(output.body, context),
|
|
1649
1649
|
};
|
|
1650
1650
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
1651
|
switch (errorCode) {
|
|
@@ -1688,7 +1688,7 @@ exports.deserializeAws_json1_1DescribeServerCommand = deserializeAws_json1_1Desc
|
|
|
1688
1688
|
const deserializeAws_json1_1DescribeServerCommandError = async (output, context) => {
|
|
1689
1689
|
const parsedOutput = {
|
|
1690
1690
|
...output,
|
|
1691
|
-
body: await
|
|
1691
|
+
body: await parseErrorBody(output.body, context),
|
|
1692
1692
|
};
|
|
1693
1693
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1694
|
switch (errorCode) {
|
|
@@ -1731,7 +1731,7 @@ exports.deserializeAws_json1_1DescribeUserCommand = deserializeAws_json1_1Descri
|
|
|
1731
1731
|
const deserializeAws_json1_1DescribeUserCommandError = async (output, context) => {
|
|
1732
1732
|
const parsedOutput = {
|
|
1733
1733
|
...output,
|
|
1734
|
-
body: await
|
|
1734
|
+
body: await parseErrorBody(output.body, context),
|
|
1735
1735
|
};
|
|
1736
1736
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1737
1737
|
switch (errorCode) {
|
|
@@ -1774,7 +1774,7 @@ exports.deserializeAws_json1_1DescribeWorkflowCommand = deserializeAws_json1_1De
|
|
|
1774
1774
|
const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, context) => {
|
|
1775
1775
|
const parsedOutput = {
|
|
1776
1776
|
...output,
|
|
1777
|
-
body: await
|
|
1777
|
+
body: await parseErrorBody(output.body, context),
|
|
1778
1778
|
};
|
|
1779
1779
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1780
1780
|
switch (errorCode) {
|
|
@@ -1817,7 +1817,7 @@ exports.deserializeAws_json1_1ImportCertificateCommand = deserializeAws_json1_1I
|
|
|
1817
1817
|
const deserializeAws_json1_1ImportCertificateCommandError = async (output, context) => {
|
|
1818
1818
|
const parsedOutput = {
|
|
1819
1819
|
...output,
|
|
1820
|
-
body: await
|
|
1820
|
+
body: await parseErrorBody(output.body, context),
|
|
1821
1821
|
};
|
|
1822
1822
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
1823
|
switch (errorCode) {
|
|
@@ -1860,7 +1860,7 @@ exports.deserializeAws_json1_1ImportHostKeyCommand = deserializeAws_json1_1Impor
|
|
|
1860
1860
|
const deserializeAws_json1_1ImportHostKeyCommandError = async (output, context) => {
|
|
1861
1861
|
const parsedOutput = {
|
|
1862
1862
|
...output,
|
|
1863
|
-
body: await
|
|
1863
|
+
body: await parseErrorBody(output.body, context),
|
|
1864
1864
|
};
|
|
1865
1865
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
1866
|
switch (errorCode) {
|
|
@@ -1909,7 +1909,7 @@ exports.deserializeAws_json1_1ImportSshPublicKeyCommand = deserializeAws_json1_1
|
|
|
1909
1909
|
const deserializeAws_json1_1ImportSshPublicKeyCommandError = async (output, context) => {
|
|
1910
1910
|
const parsedOutput = {
|
|
1911
1911
|
...output,
|
|
1912
|
-
body: await
|
|
1912
|
+
body: await parseErrorBody(output.body, context),
|
|
1913
1913
|
};
|
|
1914
1914
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
1915
|
switch (errorCode) {
|
|
@@ -1958,7 +1958,7 @@ exports.deserializeAws_json1_1ListAccessesCommand = deserializeAws_json1_1ListAc
|
|
|
1958
1958
|
const deserializeAws_json1_1ListAccessesCommandError = async (output, context) => {
|
|
1959
1959
|
const parsedOutput = {
|
|
1960
1960
|
...output,
|
|
1961
|
-
body: await
|
|
1961
|
+
body: await parseErrorBody(output.body, context),
|
|
1962
1962
|
};
|
|
1963
1963
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
1964
|
switch (errorCode) {
|
|
@@ -2004,7 +2004,7 @@ exports.deserializeAws_json1_1ListAgreementsCommand = deserializeAws_json1_1List
|
|
|
2004
2004
|
const deserializeAws_json1_1ListAgreementsCommandError = async (output, context) => {
|
|
2005
2005
|
const parsedOutput = {
|
|
2006
2006
|
...output,
|
|
2007
|
-
body: await
|
|
2007
|
+
body: await parseErrorBody(output.body, context),
|
|
2008
2008
|
};
|
|
2009
2009
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2010
2010
|
switch (errorCode) {
|
|
@@ -2050,7 +2050,7 @@ exports.deserializeAws_json1_1ListCertificatesCommand = deserializeAws_json1_1Li
|
|
|
2050
2050
|
const deserializeAws_json1_1ListCertificatesCommandError = async (output, context) => {
|
|
2051
2051
|
const parsedOutput = {
|
|
2052
2052
|
...output,
|
|
2053
|
-
body: await
|
|
2053
|
+
body: await parseErrorBody(output.body, context),
|
|
2054
2054
|
};
|
|
2055
2055
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
2056
|
switch (errorCode) {
|
|
@@ -2096,7 +2096,7 @@ exports.deserializeAws_json1_1ListConnectorsCommand = deserializeAws_json1_1List
|
|
|
2096
2096
|
const deserializeAws_json1_1ListConnectorsCommandError = async (output, context) => {
|
|
2097
2097
|
const parsedOutput = {
|
|
2098
2098
|
...output,
|
|
2099
|
-
body: await
|
|
2099
|
+
body: await parseErrorBody(output.body, context),
|
|
2100
2100
|
};
|
|
2101
2101
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2102
2102
|
switch (errorCode) {
|
|
@@ -2142,7 +2142,7 @@ exports.deserializeAws_json1_1ListExecutionsCommand = deserializeAws_json1_1List
|
|
|
2142
2142
|
const deserializeAws_json1_1ListExecutionsCommandError = async (output, context) => {
|
|
2143
2143
|
const parsedOutput = {
|
|
2144
2144
|
...output,
|
|
2145
|
-
body: await
|
|
2145
|
+
body: await parseErrorBody(output.body, context),
|
|
2146
2146
|
};
|
|
2147
2147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
2148
|
switch (errorCode) {
|
|
@@ -2188,7 +2188,7 @@ exports.deserializeAws_json1_1ListHostKeysCommand = deserializeAws_json1_1ListHo
|
|
|
2188
2188
|
const deserializeAws_json1_1ListHostKeysCommandError = async (output, context) => {
|
|
2189
2189
|
const parsedOutput = {
|
|
2190
2190
|
...output,
|
|
2191
|
-
body: await
|
|
2191
|
+
body: await parseErrorBody(output.body, context),
|
|
2192
2192
|
};
|
|
2193
2193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
2194
|
switch (errorCode) {
|
|
@@ -2234,7 +2234,7 @@ exports.deserializeAws_json1_1ListProfilesCommand = deserializeAws_json1_1ListPr
|
|
|
2234
2234
|
const deserializeAws_json1_1ListProfilesCommandError = async (output, context) => {
|
|
2235
2235
|
const parsedOutput = {
|
|
2236
2236
|
...output,
|
|
2237
|
-
body: await
|
|
2237
|
+
body: await parseErrorBody(output.body, context),
|
|
2238
2238
|
};
|
|
2239
2239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
2240
|
switch (errorCode) {
|
|
@@ -2280,7 +2280,7 @@ exports.deserializeAws_json1_1ListSecurityPoliciesCommand = deserializeAws_json1
|
|
|
2280
2280
|
const deserializeAws_json1_1ListSecurityPoliciesCommandError = async (output, context) => {
|
|
2281
2281
|
const parsedOutput = {
|
|
2282
2282
|
...output,
|
|
2283
|
-
body: await
|
|
2283
|
+
body: await parseErrorBody(output.body, context),
|
|
2284
2284
|
};
|
|
2285
2285
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
2286
|
switch (errorCode) {
|
|
@@ -2323,7 +2323,7 @@ exports.deserializeAws_json1_1ListServersCommand = deserializeAws_json1_1ListSer
|
|
|
2323
2323
|
const deserializeAws_json1_1ListServersCommandError = async (output, context) => {
|
|
2324
2324
|
const parsedOutput = {
|
|
2325
2325
|
...output,
|
|
2326
|
-
body: await
|
|
2326
|
+
body: await parseErrorBody(output.body, context),
|
|
2327
2327
|
};
|
|
2328
2328
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
2329
|
switch (errorCode) {
|
|
@@ -2366,7 +2366,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2366
2366
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2367
2367
|
const parsedOutput = {
|
|
2368
2368
|
...output,
|
|
2369
|
-
body: await
|
|
2369
|
+
body: await parseErrorBody(output.body, context),
|
|
2370
2370
|
};
|
|
2371
2371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
2372
|
switch (errorCode) {
|
|
@@ -2409,7 +2409,7 @@ exports.deserializeAws_json1_1ListUsersCommand = deserializeAws_json1_1ListUsers
|
|
|
2409
2409
|
const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
2410
2410
|
const parsedOutput = {
|
|
2411
2411
|
...output,
|
|
2412
|
-
body: await
|
|
2412
|
+
body: await parseErrorBody(output.body, context),
|
|
2413
2413
|
};
|
|
2414
2414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
2415
|
switch (errorCode) {
|
|
@@ -2455,7 +2455,7 @@ exports.deserializeAws_json1_1ListWorkflowsCommand = deserializeAws_json1_1ListW
|
|
|
2455
2455
|
const deserializeAws_json1_1ListWorkflowsCommandError = async (output, context) => {
|
|
2456
2456
|
const parsedOutput = {
|
|
2457
2457
|
...output,
|
|
2458
|
-
body: await
|
|
2458
|
+
body: await parseErrorBody(output.body, context),
|
|
2459
2459
|
};
|
|
2460
2460
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2461
2461
|
switch (errorCode) {
|
|
@@ -2498,7 +2498,7 @@ exports.deserializeAws_json1_1SendWorkflowStepStateCommand = deserializeAws_json
|
|
|
2498
2498
|
const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, context) => {
|
|
2499
2499
|
const parsedOutput = {
|
|
2500
2500
|
...output,
|
|
2501
|
-
body: await
|
|
2501
|
+
body: await parseErrorBody(output.body, context),
|
|
2502
2502
|
};
|
|
2503
2503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
2504
|
switch (errorCode) {
|
|
@@ -2547,7 +2547,7 @@ exports.deserializeAws_json1_1StartFileTransferCommand = deserializeAws_json1_1S
|
|
|
2547
2547
|
const deserializeAws_json1_1StartFileTransferCommandError = async (output, context) => {
|
|
2548
2548
|
const parsedOutput = {
|
|
2549
2549
|
...output,
|
|
2550
|
-
body: await
|
|
2550
|
+
body: await parseErrorBody(output.body, context),
|
|
2551
2551
|
};
|
|
2552
2552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
2553
|
switch (errorCode) {
|
|
@@ -2590,7 +2590,7 @@ exports.deserializeAws_json1_1StartServerCommand = deserializeAws_json1_1StartSe
|
|
|
2590
2590
|
const deserializeAws_json1_1StartServerCommandError = async (output, context) => {
|
|
2591
2591
|
const parsedOutput = {
|
|
2592
2592
|
...output,
|
|
2593
|
-
body: await
|
|
2593
|
+
body: await parseErrorBody(output.body, context),
|
|
2594
2594
|
};
|
|
2595
2595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
2596
|
switch (errorCode) {
|
|
@@ -2633,7 +2633,7 @@ exports.deserializeAws_json1_1StopServerCommand = deserializeAws_json1_1StopServ
|
|
|
2633
2633
|
const deserializeAws_json1_1StopServerCommandError = async (output, context) => {
|
|
2634
2634
|
const parsedOutput = {
|
|
2635
2635
|
...output,
|
|
2636
|
-
body: await
|
|
2636
|
+
body: await parseErrorBody(output.body, context),
|
|
2637
2637
|
};
|
|
2638
2638
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2639
2639
|
switch (errorCode) {
|
|
@@ -2676,7 +2676,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2676
2676
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2677
2677
|
const parsedOutput = {
|
|
2678
2678
|
...output,
|
|
2679
|
-
body: await
|
|
2679
|
+
body: await parseErrorBody(output.body, context),
|
|
2680
2680
|
};
|
|
2681
2681
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
2682
|
switch (errorCode) {
|
|
@@ -2719,7 +2719,7 @@ exports.deserializeAws_json1_1TestIdentityProviderCommand = deserializeAws_json1
|
|
|
2719
2719
|
const deserializeAws_json1_1TestIdentityProviderCommandError = async (output, context) => {
|
|
2720
2720
|
const parsedOutput = {
|
|
2721
2721
|
...output,
|
|
2722
|
-
body: await
|
|
2722
|
+
body: await parseErrorBody(output.body, context),
|
|
2723
2723
|
};
|
|
2724
2724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2725
|
switch (errorCode) {
|
|
@@ -2759,7 +2759,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2759
2759
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2760
2760
|
const parsedOutput = {
|
|
2761
2761
|
...output,
|
|
2762
|
-
body: await
|
|
2762
|
+
body: await parseErrorBody(output.body, context),
|
|
2763
2763
|
};
|
|
2764
2764
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
2765
|
switch (errorCode) {
|
|
@@ -2802,7 +2802,7 @@ exports.deserializeAws_json1_1UpdateAccessCommand = deserializeAws_json1_1Update
|
|
|
2802
2802
|
const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) => {
|
|
2803
2803
|
const parsedOutput = {
|
|
2804
2804
|
...output,
|
|
2805
|
-
body: await
|
|
2805
|
+
body: await parseErrorBody(output.body, context),
|
|
2806
2806
|
};
|
|
2807
2807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
2808
|
switch (errorCode) {
|
|
@@ -2848,7 +2848,7 @@ exports.deserializeAws_json1_1UpdateAgreementCommand = deserializeAws_json1_1Upd
|
|
|
2848
2848
|
const deserializeAws_json1_1UpdateAgreementCommandError = async (output, context) => {
|
|
2849
2849
|
const parsedOutput = {
|
|
2850
2850
|
...output,
|
|
2851
|
-
body: await
|
|
2851
|
+
body: await parseErrorBody(output.body, context),
|
|
2852
2852
|
};
|
|
2853
2853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2854
2854
|
switch (errorCode) {
|
|
@@ -2894,7 +2894,7 @@ exports.deserializeAws_json1_1UpdateCertificateCommand = deserializeAws_json1_1U
|
|
|
2894
2894
|
const deserializeAws_json1_1UpdateCertificateCommandError = async (output, context) => {
|
|
2895
2895
|
const parsedOutput = {
|
|
2896
2896
|
...output,
|
|
2897
|
-
body: await
|
|
2897
|
+
body: await parseErrorBody(output.body, context),
|
|
2898
2898
|
};
|
|
2899
2899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2900
2900
|
switch (errorCode) {
|
|
@@ -2937,7 +2937,7 @@ exports.deserializeAws_json1_1UpdateConnectorCommand = deserializeAws_json1_1Upd
|
|
|
2937
2937
|
const deserializeAws_json1_1UpdateConnectorCommandError = async (output, context) => {
|
|
2938
2938
|
const parsedOutput = {
|
|
2939
2939
|
...output,
|
|
2940
|
-
body: await
|
|
2940
|
+
body: await parseErrorBody(output.body, context),
|
|
2941
2941
|
};
|
|
2942
2942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2943
2943
|
switch (errorCode) {
|
|
@@ -2983,7 +2983,7 @@ exports.deserializeAws_json1_1UpdateHostKeyCommand = deserializeAws_json1_1Updat
|
|
|
2983
2983
|
const deserializeAws_json1_1UpdateHostKeyCommandError = async (output, context) => {
|
|
2984
2984
|
const parsedOutput = {
|
|
2985
2985
|
...output,
|
|
2986
|
-
body: await
|
|
2986
|
+
body: await parseErrorBody(output.body, context),
|
|
2987
2987
|
};
|
|
2988
2988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
2989
|
switch (errorCode) {
|
|
@@ -3029,7 +3029,7 @@ exports.deserializeAws_json1_1UpdateProfileCommand = deserializeAws_json1_1Updat
|
|
|
3029
3029
|
const deserializeAws_json1_1UpdateProfileCommandError = async (output, context) => {
|
|
3030
3030
|
const parsedOutput = {
|
|
3031
3031
|
...output,
|
|
3032
|
-
body: await
|
|
3032
|
+
body: await parseErrorBody(output.body, context),
|
|
3033
3033
|
};
|
|
3034
3034
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3035
3035
|
switch (errorCode) {
|
|
@@ -3072,7 +3072,7 @@ exports.deserializeAws_json1_1UpdateServerCommand = deserializeAws_json1_1Update
|
|
|
3072
3072
|
const deserializeAws_json1_1UpdateServerCommandError = async (output, context) => {
|
|
3073
3073
|
const parsedOutput = {
|
|
3074
3074
|
...output,
|
|
3075
|
-
body: await
|
|
3075
|
+
body: await parseErrorBody(output.body, context),
|
|
3076
3076
|
};
|
|
3077
3077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
3078
|
switch (errorCode) {
|
|
@@ -3127,7 +3127,7 @@ exports.deserializeAws_json1_1UpdateUserCommand = deserializeAws_json1_1UpdateUs
|
|
|
3127
3127
|
const deserializeAws_json1_1UpdateUserCommandError = async (output, context) => {
|
|
3128
3128
|
const parsedOutput = {
|
|
3129
3129
|
...output,
|
|
3130
|
-
body: await
|
|
3130
|
+
body: await parseErrorBody(output.body, context),
|
|
3131
3131
|
};
|
|
3132
3132
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3133
3133
|
switch (errorCode) {
|
|
@@ -5066,6 +5066,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5066
5066
|
}
|
|
5067
5067
|
return {};
|
|
5068
5068
|
});
|
|
5069
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5070
|
+
var _a;
|
|
5071
|
+
const value = await parseBody(errorBody, context);
|
|
5072
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5073
|
+
return value;
|
|
5074
|
+
};
|
|
5069
5075
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5070
5076
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5071
5077
|
const sanitizeErrorCode = (rawValue) => {
|