@aws-sdk/client-swf 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_0.js +43 -37
- package/dist-es/SWF.js +150 -157
- package/dist-es/SWFClient.js +22 -28
- package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +21 -28
- package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +21 -28
- package/dist-es/commands/CountPendingActivityTasksCommand.js +21 -28
- package/dist-es/commands/CountPendingDecisionTasksCommand.js +21 -28
- package/dist-es/commands/DeprecateActivityTypeCommand.js +22 -29
- package/dist-es/commands/DeprecateDomainCommand.js +22 -29
- package/dist-es/commands/DeprecateWorkflowTypeCommand.js +22 -29
- package/dist-es/commands/DescribeActivityTypeCommand.js +21 -28
- package/dist-es/commands/DescribeDomainCommand.js +21 -28
- package/dist-es/commands/DescribeWorkflowExecutionCommand.js +21 -28
- package/dist-es/commands/DescribeWorkflowTypeCommand.js +21 -28
- package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +21 -28
- package/dist-es/commands/ListActivityTypesCommand.js +21 -28
- package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +21 -28
- package/dist-es/commands/ListDomainsCommand.js +21 -28
- package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListWorkflowTypesCommand.js +21 -28
- package/dist-es/commands/PollForActivityTaskCommand.js +21 -28
- package/dist-es/commands/PollForDecisionTaskCommand.js +21 -28
- package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +21 -28
- package/dist-es/commands/RegisterActivityTypeCommand.js +22 -29
- package/dist-es/commands/RegisterDomainCommand.js +22 -29
- package/dist-es/commands/RegisterWorkflowTypeCommand.js +22 -29
- package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +22 -29
- package/dist-es/commands/RespondActivityTaskCanceledCommand.js +22 -29
- package/dist-es/commands/RespondActivityTaskCompletedCommand.js +22 -29
- package/dist-es/commands/RespondActivityTaskFailedCommand.js +22 -29
- package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +22 -29
- package/dist-es/commands/SignalWorkflowExecutionCommand.js +22 -29
- package/dist-es/commands/StartWorkflowExecutionCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/TerminateWorkflowExecutionCommand.js +22 -29
- package/dist-es/commands/UndeprecateActivityTypeCommand.js +22 -29
- package/dist-es/commands/UndeprecateDomainCommand.js +22 -29
- package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SWFServiceException.js +5 -10
- package/dist-es/models/models_0.js +533 -252
- package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListActivityTypesPaginator.js +25 -68
- package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListDomainsPaginator.js +25 -68
- package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListWorkflowTypesPaginator.js +25 -68
- package/dist-es/pagination/PollForDecisionTaskPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +2433 -3004
- 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-swf
|
|
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-swf
|
|
@@ -393,7 +393,7 @@ exports.deserializeAws_json1_0CountClosedWorkflowExecutionsCommand = deserialize
|
|
|
393
393
|
const deserializeAws_json1_0CountClosedWorkflowExecutionsCommandError = async (output, context) => {
|
|
394
394
|
const parsedOutput = {
|
|
395
395
|
...output,
|
|
396
|
-
body: await
|
|
396
|
+
body: await parseErrorBody(output.body, context),
|
|
397
397
|
};
|
|
398
398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
399
|
switch (errorCode) {
|
|
@@ -430,7 +430,7 @@ exports.deserializeAws_json1_0CountOpenWorkflowExecutionsCommand = deserializeAw
|
|
|
430
430
|
const deserializeAws_json1_0CountOpenWorkflowExecutionsCommandError = async (output, context) => {
|
|
431
431
|
const parsedOutput = {
|
|
432
432
|
...output,
|
|
433
|
-
body: await
|
|
433
|
+
body: await parseErrorBody(output.body, context),
|
|
434
434
|
};
|
|
435
435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
436
436
|
switch (errorCode) {
|
|
@@ -467,7 +467,7 @@ exports.deserializeAws_json1_0CountPendingActivityTasksCommand = deserializeAws_
|
|
|
467
467
|
const deserializeAws_json1_0CountPendingActivityTasksCommandError = async (output, context) => {
|
|
468
468
|
const parsedOutput = {
|
|
469
469
|
...output,
|
|
470
|
-
body: await
|
|
470
|
+
body: await parseErrorBody(output.body, context),
|
|
471
471
|
};
|
|
472
472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
473
|
switch (errorCode) {
|
|
@@ -504,7 +504,7 @@ exports.deserializeAws_json1_0CountPendingDecisionTasksCommand = deserializeAws_
|
|
|
504
504
|
const deserializeAws_json1_0CountPendingDecisionTasksCommandError = async (output, context) => {
|
|
505
505
|
const parsedOutput = {
|
|
506
506
|
...output,
|
|
507
|
-
body: await
|
|
507
|
+
body: await parseErrorBody(output.body, context),
|
|
508
508
|
};
|
|
509
509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
510
510
|
switch (errorCode) {
|
|
@@ -538,7 +538,7 @@ exports.deserializeAws_json1_0DeprecateActivityTypeCommand = deserializeAws_json
|
|
|
538
538
|
const deserializeAws_json1_0DeprecateActivityTypeCommandError = async (output, context) => {
|
|
539
539
|
const parsedOutput = {
|
|
540
540
|
...output,
|
|
541
|
-
body: await
|
|
541
|
+
body: await parseErrorBody(output.body, context),
|
|
542
542
|
};
|
|
543
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
544
|
switch (errorCode) {
|
|
@@ -575,7 +575,7 @@ exports.deserializeAws_json1_0DeprecateDomainCommand = deserializeAws_json1_0Dep
|
|
|
575
575
|
const deserializeAws_json1_0DeprecateDomainCommandError = async (output, context) => {
|
|
576
576
|
const parsedOutput = {
|
|
577
577
|
...output,
|
|
578
|
-
body: await
|
|
578
|
+
body: await parseErrorBody(output.body, context),
|
|
579
579
|
};
|
|
580
580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
581
581
|
switch (errorCode) {
|
|
@@ -612,7 +612,7 @@ exports.deserializeAws_json1_0DeprecateWorkflowTypeCommand = deserializeAws_json
|
|
|
612
612
|
const deserializeAws_json1_0DeprecateWorkflowTypeCommandError = async (output, context) => {
|
|
613
613
|
const parsedOutput = {
|
|
614
614
|
...output,
|
|
615
|
-
body: await
|
|
615
|
+
body: await parseErrorBody(output.body, context),
|
|
616
616
|
};
|
|
617
617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
618
|
switch (errorCode) {
|
|
@@ -652,7 +652,7 @@ exports.deserializeAws_json1_0DescribeActivityTypeCommand = deserializeAws_json1
|
|
|
652
652
|
const deserializeAws_json1_0DescribeActivityTypeCommandError = async (output, context) => {
|
|
653
653
|
const parsedOutput = {
|
|
654
654
|
...output,
|
|
655
|
-
body: await
|
|
655
|
+
body: await parseErrorBody(output.body, context),
|
|
656
656
|
};
|
|
657
657
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
658
|
switch (errorCode) {
|
|
@@ -689,7 +689,7 @@ exports.deserializeAws_json1_0DescribeDomainCommand = deserializeAws_json1_0Desc
|
|
|
689
689
|
const deserializeAws_json1_0DescribeDomainCommandError = async (output, context) => {
|
|
690
690
|
const parsedOutput = {
|
|
691
691
|
...output,
|
|
692
|
-
body: await
|
|
692
|
+
body: await parseErrorBody(output.body, context),
|
|
693
693
|
};
|
|
694
694
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
695
|
switch (errorCode) {
|
|
@@ -726,7 +726,7 @@ exports.deserializeAws_json1_0DescribeWorkflowExecutionCommand = deserializeAws_
|
|
|
726
726
|
const deserializeAws_json1_0DescribeWorkflowExecutionCommandError = async (output, context) => {
|
|
727
727
|
const parsedOutput = {
|
|
728
728
|
...output,
|
|
729
|
-
body: await
|
|
729
|
+
body: await parseErrorBody(output.body, context),
|
|
730
730
|
};
|
|
731
731
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
732
|
switch (errorCode) {
|
|
@@ -763,7 +763,7 @@ exports.deserializeAws_json1_0DescribeWorkflowTypeCommand = deserializeAws_json1
|
|
|
763
763
|
const deserializeAws_json1_0DescribeWorkflowTypeCommandError = async (output, context) => {
|
|
764
764
|
const parsedOutput = {
|
|
765
765
|
...output,
|
|
766
|
-
body: await
|
|
766
|
+
body: await parseErrorBody(output.body, context),
|
|
767
767
|
};
|
|
768
768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
769
|
switch (errorCode) {
|
|
@@ -800,7 +800,7 @@ exports.deserializeAws_json1_0GetWorkflowExecutionHistoryCommand = deserializeAw
|
|
|
800
800
|
const deserializeAws_json1_0GetWorkflowExecutionHistoryCommandError = async (output, context) => {
|
|
801
801
|
const parsedOutput = {
|
|
802
802
|
...output,
|
|
803
|
-
body: await
|
|
803
|
+
body: await parseErrorBody(output.body, context),
|
|
804
804
|
};
|
|
805
805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
806
|
switch (errorCode) {
|
|
@@ -837,7 +837,7 @@ exports.deserializeAws_json1_0ListActivityTypesCommand = deserializeAws_json1_0L
|
|
|
837
837
|
const deserializeAws_json1_0ListActivityTypesCommandError = 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) {
|
|
@@ -874,7 +874,7 @@ exports.deserializeAws_json1_0ListClosedWorkflowExecutionsCommand = deserializeA
|
|
|
874
874
|
const deserializeAws_json1_0ListClosedWorkflowExecutionsCommandError = async (output, context) => {
|
|
875
875
|
const parsedOutput = {
|
|
876
876
|
...output,
|
|
877
|
-
body: await
|
|
877
|
+
body: await parseErrorBody(output.body, context),
|
|
878
878
|
};
|
|
879
879
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
880
|
switch (errorCode) {
|
|
@@ -911,7 +911,7 @@ exports.deserializeAws_json1_0ListDomainsCommand = deserializeAws_json1_0ListDom
|
|
|
911
911
|
const deserializeAws_json1_0ListDomainsCommandError = async (output, context) => {
|
|
912
912
|
const parsedOutput = {
|
|
913
913
|
...output,
|
|
914
|
-
body: await
|
|
914
|
+
body: await parseErrorBody(output.body, context),
|
|
915
915
|
};
|
|
916
916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
917
|
switch (errorCode) {
|
|
@@ -945,7 +945,7 @@ exports.deserializeAws_json1_0ListOpenWorkflowExecutionsCommand = deserializeAws
|
|
|
945
945
|
const deserializeAws_json1_0ListOpenWorkflowExecutionsCommandError = async (output, context) => {
|
|
946
946
|
const parsedOutput = {
|
|
947
947
|
...output,
|
|
948
|
-
body: await
|
|
948
|
+
body: await parseErrorBody(output.body, context),
|
|
949
949
|
};
|
|
950
950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
951
|
switch (errorCode) {
|
|
@@ -982,7 +982,7 @@ exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
982
982
|
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
983
983
|
const parsedOutput = {
|
|
984
984
|
...output,
|
|
985
|
-
body: await
|
|
985
|
+
body: await parseErrorBody(output.body, context),
|
|
986
986
|
};
|
|
987
987
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
988
|
switch (errorCode) {
|
|
@@ -1022,7 +1022,7 @@ exports.deserializeAws_json1_0ListWorkflowTypesCommand = deserializeAws_json1_0L
|
|
|
1022
1022
|
const deserializeAws_json1_0ListWorkflowTypesCommandError = async (output, context) => {
|
|
1023
1023
|
const parsedOutput = {
|
|
1024
1024
|
...output,
|
|
1025
|
-
body: await
|
|
1025
|
+
body: await parseErrorBody(output.body, context),
|
|
1026
1026
|
};
|
|
1027
1027
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
1028
|
switch (errorCode) {
|
|
@@ -1059,7 +1059,7 @@ exports.deserializeAws_json1_0PollForActivityTaskCommand = deserializeAws_json1_
|
|
|
1059
1059
|
const deserializeAws_json1_0PollForActivityTaskCommandError = async (output, context) => {
|
|
1060
1060
|
const parsedOutput = {
|
|
1061
1061
|
...output,
|
|
1062
|
-
body: await
|
|
1062
|
+
body: await parseErrorBody(output.body, context),
|
|
1063
1063
|
};
|
|
1064
1064
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1065
1065
|
switch (errorCode) {
|
|
@@ -1099,7 +1099,7 @@ exports.deserializeAws_json1_0PollForDecisionTaskCommand = deserializeAws_json1_
|
|
|
1099
1099
|
const deserializeAws_json1_0PollForDecisionTaskCommandError = async (output, context) => {
|
|
1100
1100
|
const parsedOutput = {
|
|
1101
1101
|
...output,
|
|
1102
|
-
body: await
|
|
1102
|
+
body: await parseErrorBody(output.body, context),
|
|
1103
1103
|
};
|
|
1104
1104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
1105
|
switch (errorCode) {
|
|
@@ -1139,7 +1139,7 @@ exports.deserializeAws_json1_0RecordActivityTaskHeartbeatCommand = deserializeAw
|
|
|
1139
1139
|
const deserializeAws_json1_0RecordActivityTaskHeartbeatCommandError = async (output, context) => {
|
|
1140
1140
|
const parsedOutput = {
|
|
1141
1141
|
...output,
|
|
1142
|
-
body: await
|
|
1142
|
+
body: await parseErrorBody(output.body, context),
|
|
1143
1143
|
};
|
|
1144
1144
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
1145
|
switch (errorCode) {
|
|
@@ -1173,7 +1173,7 @@ exports.deserializeAws_json1_0RegisterActivityTypeCommand = deserializeAws_json1
|
|
|
1173
1173
|
const deserializeAws_json1_0RegisterActivityTypeCommandError = async (output, context) => {
|
|
1174
1174
|
const parsedOutput = {
|
|
1175
1175
|
...output,
|
|
1176
|
-
body: await
|
|
1176
|
+
body: await parseErrorBody(output.body, context),
|
|
1177
1177
|
};
|
|
1178
1178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
1179
|
switch (errorCode) {
|
|
@@ -1213,7 +1213,7 @@ exports.deserializeAws_json1_0RegisterDomainCommand = deserializeAws_json1_0Regi
|
|
|
1213
1213
|
const deserializeAws_json1_0RegisterDomainCommandError = async (output, context) => {
|
|
1214
1214
|
const parsedOutput = {
|
|
1215
1215
|
...output,
|
|
1216
|
-
body: await
|
|
1216
|
+
body: await parseErrorBody(output.body, context),
|
|
1217
1217
|
};
|
|
1218
1218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
1219
|
switch (errorCode) {
|
|
@@ -1253,7 +1253,7 @@ exports.deserializeAws_json1_0RegisterWorkflowTypeCommand = deserializeAws_json1
|
|
|
1253
1253
|
const deserializeAws_json1_0RegisterWorkflowTypeCommandError = async (output, context) => {
|
|
1254
1254
|
const parsedOutput = {
|
|
1255
1255
|
...output,
|
|
1256
|
-
body: await
|
|
1256
|
+
body: await parseErrorBody(output.body, context),
|
|
1257
1257
|
};
|
|
1258
1258
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
1259
|
switch (errorCode) {
|
|
@@ -1293,7 +1293,7 @@ exports.deserializeAws_json1_0RequestCancelWorkflowExecutionCommand = deserializ
|
|
|
1293
1293
|
const deserializeAws_json1_0RequestCancelWorkflowExecutionCommandError = async (output, context) => {
|
|
1294
1294
|
const parsedOutput = {
|
|
1295
1295
|
...output,
|
|
1296
|
-
body: await
|
|
1296
|
+
body: await parseErrorBody(output.body, context),
|
|
1297
1297
|
};
|
|
1298
1298
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
1299
|
switch (errorCode) {
|
|
@@ -1327,7 +1327,7 @@ exports.deserializeAws_json1_0RespondActivityTaskCanceledCommand = deserializeAw
|
|
|
1327
1327
|
const deserializeAws_json1_0RespondActivityTaskCanceledCommandError = async (output, context) => {
|
|
1328
1328
|
const parsedOutput = {
|
|
1329
1329
|
...output,
|
|
1330
|
-
body: await
|
|
1330
|
+
body: await parseErrorBody(output.body, context),
|
|
1331
1331
|
};
|
|
1332
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1333
|
switch (errorCode) {
|
|
@@ -1361,7 +1361,7 @@ exports.deserializeAws_json1_0RespondActivityTaskCompletedCommand = deserializeA
|
|
|
1361
1361
|
const deserializeAws_json1_0RespondActivityTaskCompletedCommandError = async (output, context) => {
|
|
1362
1362
|
const parsedOutput = {
|
|
1363
1363
|
...output,
|
|
1364
|
-
body: await
|
|
1364
|
+
body: await parseErrorBody(output.body, context),
|
|
1365
1365
|
};
|
|
1366
1366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
1367
|
switch (errorCode) {
|
|
@@ -1395,7 +1395,7 @@ exports.deserializeAws_json1_0RespondActivityTaskFailedCommand = deserializeAws_
|
|
|
1395
1395
|
const deserializeAws_json1_0RespondActivityTaskFailedCommandError = async (output, context) => {
|
|
1396
1396
|
const parsedOutput = {
|
|
1397
1397
|
...output,
|
|
1398
|
-
body: await
|
|
1398
|
+
body: await parseErrorBody(output.body, context),
|
|
1399
1399
|
};
|
|
1400
1400
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
1401
|
switch (errorCode) {
|
|
@@ -1429,7 +1429,7 @@ exports.deserializeAws_json1_0RespondDecisionTaskCompletedCommand = deserializeA
|
|
|
1429
1429
|
const deserializeAws_json1_0RespondDecisionTaskCompletedCommandError = async (output, context) => {
|
|
1430
1430
|
const parsedOutput = {
|
|
1431
1431
|
...output,
|
|
1432
|
-
body: await
|
|
1432
|
+
body: await parseErrorBody(output.body, context),
|
|
1433
1433
|
};
|
|
1434
1434
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1435
1435
|
switch (errorCode) {
|
|
@@ -1463,7 +1463,7 @@ exports.deserializeAws_json1_0SignalWorkflowExecutionCommand = deserializeAws_js
|
|
|
1463
1463
|
const deserializeAws_json1_0SignalWorkflowExecutionCommandError = async (output, context) => {
|
|
1464
1464
|
const parsedOutput = {
|
|
1465
1465
|
...output,
|
|
1466
|
-
body: await
|
|
1466
|
+
body: await parseErrorBody(output.body, context),
|
|
1467
1467
|
};
|
|
1468
1468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1469
|
switch (errorCode) {
|
|
@@ -1500,7 +1500,7 @@ exports.deserializeAws_json1_0StartWorkflowExecutionCommand = deserializeAws_jso
|
|
|
1500
1500
|
const deserializeAws_json1_0StartWorkflowExecutionCommandError = async (output, context) => {
|
|
1501
1501
|
const parsedOutput = {
|
|
1502
1502
|
...output,
|
|
1503
|
-
body: await
|
|
1503
|
+
body: await parseErrorBody(output.body, context),
|
|
1504
1504
|
};
|
|
1505
1505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
1506
|
switch (errorCode) {
|
|
@@ -1546,7 +1546,7 @@ exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagReso
|
|
|
1546
1546
|
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
1547
1547
|
const parsedOutput = {
|
|
1548
1548
|
...output,
|
|
1549
|
-
body: await
|
|
1549
|
+
body: await parseErrorBody(output.body, context),
|
|
1550
1550
|
};
|
|
1551
1551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
1552
|
switch (errorCode) {
|
|
@@ -1586,7 +1586,7 @@ exports.deserializeAws_json1_0TerminateWorkflowExecutionCommand = deserializeAws
|
|
|
1586
1586
|
const deserializeAws_json1_0TerminateWorkflowExecutionCommandError = async (output, context) => {
|
|
1587
1587
|
const parsedOutput = {
|
|
1588
1588
|
...output,
|
|
1589
|
-
body: await
|
|
1589
|
+
body: await parseErrorBody(output.body, context),
|
|
1590
1590
|
};
|
|
1591
1591
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
1592
|
switch (errorCode) {
|
|
@@ -1620,7 +1620,7 @@ exports.deserializeAws_json1_0UndeprecateActivityTypeCommand = deserializeAws_js
|
|
|
1620
1620
|
const deserializeAws_json1_0UndeprecateActivityTypeCommandError = async (output, context) => {
|
|
1621
1621
|
const parsedOutput = {
|
|
1622
1622
|
...output,
|
|
1623
|
-
body: await
|
|
1623
|
+
body: await parseErrorBody(output.body, context),
|
|
1624
1624
|
};
|
|
1625
1625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1626
|
switch (errorCode) {
|
|
@@ -1657,7 +1657,7 @@ exports.deserializeAws_json1_0UndeprecateDomainCommand = deserializeAws_json1_0U
|
|
|
1657
1657
|
const deserializeAws_json1_0UndeprecateDomainCommandError = async (output, context) => {
|
|
1658
1658
|
const parsedOutput = {
|
|
1659
1659
|
...output,
|
|
1660
|
-
body: await
|
|
1660
|
+
body: await parseErrorBody(output.body, context),
|
|
1661
1661
|
};
|
|
1662
1662
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
1663
|
switch (errorCode) {
|
|
@@ -1694,7 +1694,7 @@ exports.deserializeAws_json1_0UndeprecateWorkflowTypeCommand = deserializeAws_js
|
|
|
1694
1694
|
const deserializeAws_json1_0UndeprecateWorkflowTypeCommandError = async (output, context) => {
|
|
1695
1695
|
const parsedOutput = {
|
|
1696
1696
|
...output,
|
|
1697
|
-
body: await
|
|
1697
|
+
body: await parseErrorBody(output.body, context),
|
|
1698
1698
|
};
|
|
1699
1699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
1700
|
switch (errorCode) {
|
|
@@ -1731,7 +1731,7 @@ exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0Untag
|
|
|
1731
1731
|
const deserializeAws_json1_0UntagResourceCommandError = 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) {
|
|
@@ -3462,6 +3462,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3462
3462
|
}
|
|
3463
3463
|
return {};
|
|
3464
3464
|
});
|
|
3465
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3466
|
+
var _a;
|
|
3467
|
+
const value = await parseBody(errorBody, context);
|
|
3468
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3469
|
+
return value;
|
|
3470
|
+
};
|
|
3465
3471
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3466
3472
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3467
3473
|
const sanitizeErrorCode = (rawValue) => {
|