@aws-sdk/client-sfn 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 +29 -23
- package/dist-es/SFN.js +94 -101
- package/dist-es/SFNClient.js +22 -28
- package/dist-es/commands/CreateActivityCommand.js +21 -28
- package/dist-es/commands/CreateStateMachineCommand.js +21 -28
- package/dist-es/commands/DeleteActivityCommand.js +21 -28
- package/dist-es/commands/DeleteStateMachineCommand.js +21 -28
- package/dist-es/commands/DescribeActivityCommand.js +21 -28
- package/dist-es/commands/DescribeExecutionCommand.js +21 -28
- package/dist-es/commands/DescribeStateMachineCommand.js +21 -28
- package/dist-es/commands/DescribeStateMachineForExecutionCommand.js +21 -28
- package/dist-es/commands/GetActivityTaskCommand.js +21 -28
- package/dist-es/commands/GetExecutionHistoryCommand.js +21 -28
- package/dist-es/commands/ListActivitiesCommand.js +21 -28
- package/dist-es/commands/ListExecutionsCommand.js +21 -28
- package/dist-es/commands/ListStateMachinesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/SendTaskFailureCommand.js +21 -28
- package/dist-es/commands/SendTaskHeartbeatCommand.js +21 -28
- package/dist-es/commands/SendTaskSuccessCommand.js +21 -28
- package/dist-es/commands/StartExecutionCommand.js +21 -28
- package/dist-es/commands/StartSyncExecutionCommand.js +21 -28
- package/dist-es/commands/StopExecutionCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateStateMachineCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SFNServiceException.js +5 -10
- package/dist-es/models/models_0.js +660 -404
- package/dist-es/pagination/GetExecutionHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListActivitiesPaginator.js +25 -68
- package/dist-es/pagination/ListExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListStateMachinesPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +1656 -2090
- 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-sfn
|
|
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-sfn
|
|
@@ -259,7 +259,7 @@ exports.deserializeAws_json1_0CreateActivityCommand = deserializeAws_json1_0Crea
|
|
|
259
259
|
const deserializeAws_json1_0CreateActivityCommandError = async (output, context) => {
|
|
260
260
|
const parsedOutput = {
|
|
261
261
|
...output,
|
|
262
|
-
body: await
|
|
262
|
+
body: await parseErrorBody(output.body, context),
|
|
263
263
|
};
|
|
264
264
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
265
265
|
switch (errorCode) {
|
|
@@ -299,7 +299,7 @@ exports.deserializeAws_json1_0CreateStateMachineCommand = deserializeAws_json1_0
|
|
|
299
299
|
const deserializeAws_json1_0CreateStateMachineCommandError = async (output, context) => {
|
|
300
300
|
const parsedOutput = {
|
|
301
301
|
...output,
|
|
302
|
-
body: await
|
|
302
|
+
body: await parseErrorBody(output.body, context),
|
|
303
303
|
};
|
|
304
304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
305
305
|
switch (errorCode) {
|
|
@@ -360,7 +360,7 @@ exports.deserializeAws_json1_0DeleteActivityCommand = deserializeAws_json1_0Dele
|
|
|
360
360
|
const deserializeAws_json1_0DeleteActivityCommandError = async (output, context) => {
|
|
361
361
|
const parsedOutput = {
|
|
362
362
|
...output,
|
|
363
|
-
body: await
|
|
363
|
+
body: await parseErrorBody(output.body, context),
|
|
364
364
|
};
|
|
365
365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
366
366
|
switch (errorCode) {
|
|
@@ -394,7 +394,7 @@ exports.deserializeAws_json1_0DeleteStateMachineCommand = deserializeAws_json1_0
|
|
|
394
394
|
const deserializeAws_json1_0DeleteStateMachineCommandError = async (output, context) => {
|
|
395
395
|
const parsedOutput = {
|
|
396
396
|
...output,
|
|
397
|
-
body: await
|
|
397
|
+
body: await parseErrorBody(output.body, context),
|
|
398
398
|
};
|
|
399
399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
400
|
switch (errorCode) {
|
|
@@ -428,7 +428,7 @@ exports.deserializeAws_json1_0DescribeActivityCommand = deserializeAws_json1_0De
|
|
|
428
428
|
const deserializeAws_json1_0DescribeActivityCommandError = async (output, context) => {
|
|
429
429
|
const parsedOutput = {
|
|
430
430
|
...output,
|
|
431
|
-
body: await
|
|
431
|
+
body: await parseErrorBody(output.body, context),
|
|
432
432
|
};
|
|
433
433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
434
|
switch (errorCode) {
|
|
@@ -465,7 +465,7 @@ exports.deserializeAws_json1_0DescribeExecutionCommand = deserializeAws_json1_0D
|
|
|
465
465
|
const deserializeAws_json1_0DescribeExecutionCommandError = async (output, context) => {
|
|
466
466
|
const parsedOutput = {
|
|
467
467
|
...output,
|
|
468
|
-
body: await
|
|
468
|
+
body: await parseErrorBody(output.body, context),
|
|
469
469
|
};
|
|
470
470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
471
|
switch (errorCode) {
|
|
@@ -502,7 +502,7 @@ exports.deserializeAws_json1_0DescribeStateMachineCommand = deserializeAws_json1
|
|
|
502
502
|
const deserializeAws_json1_0DescribeStateMachineCommandError = async (output, context) => {
|
|
503
503
|
const parsedOutput = {
|
|
504
504
|
...output,
|
|
505
|
-
body: await
|
|
505
|
+
body: await parseErrorBody(output.body, context),
|
|
506
506
|
};
|
|
507
507
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
508
508
|
switch (errorCode) {
|
|
@@ -539,7 +539,7 @@ exports.deserializeAws_json1_0DescribeStateMachineForExecutionCommand = deserial
|
|
|
539
539
|
const deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = async (output, context) => {
|
|
540
540
|
const parsedOutput = {
|
|
541
541
|
...output,
|
|
542
|
-
body: await
|
|
542
|
+
body: await parseErrorBody(output.body, context),
|
|
543
543
|
};
|
|
544
544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
545
|
switch (errorCode) {
|
|
@@ -576,7 +576,7 @@ exports.deserializeAws_json1_0GetActivityTaskCommand = deserializeAws_json1_0Get
|
|
|
576
576
|
const deserializeAws_json1_0GetActivityTaskCommandError = async (output, context) => {
|
|
577
577
|
const parsedOutput = {
|
|
578
578
|
...output,
|
|
579
|
-
body: await
|
|
579
|
+
body: await parseErrorBody(output.body, context),
|
|
580
580
|
};
|
|
581
581
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
582
|
switch (errorCode) {
|
|
@@ -616,7 +616,7 @@ exports.deserializeAws_json1_0GetExecutionHistoryCommand = deserializeAws_json1_
|
|
|
616
616
|
const deserializeAws_json1_0GetExecutionHistoryCommandError = async (output, context) => {
|
|
617
617
|
const parsedOutput = {
|
|
618
618
|
...output,
|
|
619
|
-
body: await
|
|
619
|
+
body: await parseErrorBody(output.body, context),
|
|
620
620
|
};
|
|
621
621
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
622
|
switch (errorCode) {
|
|
@@ -656,7 +656,7 @@ exports.deserializeAws_json1_0ListActivitiesCommand = deserializeAws_json1_0List
|
|
|
656
656
|
const deserializeAws_json1_0ListActivitiesCommandError = async (output, context) => {
|
|
657
657
|
const parsedOutput = {
|
|
658
658
|
...output,
|
|
659
|
-
body: await
|
|
659
|
+
body: await parseErrorBody(output.body, context),
|
|
660
660
|
};
|
|
661
661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
662
662
|
switch (errorCode) {
|
|
@@ -690,7 +690,7 @@ exports.deserializeAws_json1_0ListExecutionsCommand = deserializeAws_json1_0List
|
|
|
690
690
|
const deserializeAws_json1_0ListExecutionsCommandError = async (output, context) => {
|
|
691
691
|
const parsedOutput = {
|
|
692
692
|
...output,
|
|
693
|
-
body: await
|
|
693
|
+
body: await parseErrorBody(output.body, context),
|
|
694
694
|
};
|
|
695
695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
696
|
switch (errorCode) {
|
|
@@ -733,7 +733,7 @@ exports.deserializeAws_json1_0ListStateMachinesCommand = deserializeAws_json1_0L
|
|
|
733
733
|
const deserializeAws_json1_0ListStateMachinesCommandError = async (output, context) => {
|
|
734
734
|
const parsedOutput = {
|
|
735
735
|
...output,
|
|
736
|
-
body: await
|
|
736
|
+
body: await parseErrorBody(output.body, context),
|
|
737
737
|
};
|
|
738
738
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
739
|
switch (errorCode) {
|
|
@@ -767,7 +767,7 @@ exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
767
767
|
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
768
768
|
const parsedOutput = {
|
|
769
769
|
...output,
|
|
770
|
-
body: await
|
|
770
|
+
body: await parseErrorBody(output.body, context),
|
|
771
771
|
};
|
|
772
772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
773
|
switch (errorCode) {
|
|
@@ -804,7 +804,7 @@ exports.deserializeAws_json1_0SendTaskFailureCommand = deserializeAws_json1_0Sen
|
|
|
804
804
|
const deserializeAws_json1_0SendTaskFailureCommandError = async (output, context) => {
|
|
805
805
|
const parsedOutput = {
|
|
806
806
|
...output,
|
|
807
|
-
body: await
|
|
807
|
+
body: await parseErrorBody(output.body, context),
|
|
808
808
|
};
|
|
809
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
810
|
switch (errorCode) {
|
|
@@ -844,7 +844,7 @@ exports.deserializeAws_json1_0SendTaskHeartbeatCommand = deserializeAws_json1_0S
|
|
|
844
844
|
const deserializeAws_json1_0SendTaskHeartbeatCommandError = async (output, context) => {
|
|
845
845
|
const parsedOutput = {
|
|
846
846
|
...output,
|
|
847
|
-
body: await
|
|
847
|
+
body: await parseErrorBody(output.body, context),
|
|
848
848
|
};
|
|
849
849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
850
|
switch (errorCode) {
|
|
@@ -884,7 +884,7 @@ exports.deserializeAws_json1_0SendTaskSuccessCommand = deserializeAws_json1_0Sen
|
|
|
884
884
|
const deserializeAws_json1_0SendTaskSuccessCommandError = async (output, context) => {
|
|
885
885
|
const parsedOutput = {
|
|
886
886
|
...output,
|
|
887
|
-
body: await
|
|
887
|
+
body: await parseErrorBody(output.body, context),
|
|
888
888
|
};
|
|
889
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
890
|
switch (errorCode) {
|
|
@@ -927,7 +927,7 @@ exports.deserializeAws_json1_0StartExecutionCommand = deserializeAws_json1_0Star
|
|
|
927
927
|
const deserializeAws_json1_0StartExecutionCommandError = async (output, context) => {
|
|
928
928
|
const parsedOutput = {
|
|
929
929
|
...output,
|
|
930
|
-
body: await
|
|
930
|
+
body: await parseErrorBody(output.body, context),
|
|
931
931
|
};
|
|
932
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
933
|
switch (errorCode) {
|
|
@@ -979,7 +979,7 @@ exports.deserializeAws_json1_0StartSyncExecutionCommand = deserializeAws_json1_0
|
|
|
979
979
|
const deserializeAws_json1_0StartSyncExecutionCommandError = async (output, context) => {
|
|
980
980
|
const parsedOutput = {
|
|
981
981
|
...output,
|
|
982
|
-
body: await
|
|
982
|
+
body: await parseErrorBody(output.body, context),
|
|
983
983
|
};
|
|
984
984
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
985
|
switch (errorCode) {
|
|
@@ -1028,7 +1028,7 @@ exports.deserializeAws_json1_0StopExecutionCommand = deserializeAws_json1_0StopE
|
|
|
1028
1028
|
const deserializeAws_json1_0StopExecutionCommandError = async (output, context) => {
|
|
1029
1029
|
const parsedOutput = {
|
|
1030
1030
|
...output,
|
|
1031
|
-
body: await
|
|
1031
|
+
body: await parseErrorBody(output.body, context),
|
|
1032
1032
|
};
|
|
1033
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
1034
|
switch (errorCode) {
|
|
@@ -1065,7 +1065,7 @@ exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagReso
|
|
|
1065
1065
|
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
1066
1066
|
const parsedOutput = {
|
|
1067
1067
|
...output,
|
|
1068
|
-
body: await
|
|
1068
|
+
body: await parseErrorBody(output.body, context),
|
|
1069
1069
|
};
|
|
1070
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1071
|
switch (errorCode) {
|
|
@@ -1105,7 +1105,7 @@ exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0Untag
|
|
|
1105
1105
|
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
1106
1106
|
const parsedOutput = {
|
|
1107
1107
|
...output,
|
|
1108
|
-
body: await
|
|
1108
|
+
body: await parseErrorBody(output.body, context),
|
|
1109
1109
|
};
|
|
1110
1110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1111
|
switch (errorCode) {
|
|
@@ -1142,7 +1142,7 @@ exports.deserializeAws_json1_0UpdateStateMachineCommand = deserializeAws_json1_0
|
|
|
1142
1142
|
const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, context) => {
|
|
1143
1143
|
const parsedOutput = {
|
|
1144
1144
|
...output,
|
|
1145
|
-
body: await
|
|
1145
|
+
body: await parseErrorBody(output.body, context),
|
|
1146
1146
|
};
|
|
1147
1147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
1148
|
switch (errorCode) {
|
|
@@ -2398,6 +2398,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return {};
|
|
2400
2400
|
});
|
|
2401
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2402
|
+
var _a;
|
|
2403
|
+
const value = await parseBody(errorBody, context);
|
|
2404
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2405
|
+
return value;
|
|
2406
|
+
};
|
|
2401
2407
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2402
2408
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2403
2409
|
const sanitizeErrorCode = (rawValue) => {
|