@aws-sdk/client-sfn 3.218.0 → 3.222.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/dist-cjs/SFN.js +45 -0
- package/dist-cjs/commands/DescribeMapRunCommand.js +46 -0
- package/dist-cjs/commands/ListMapRunsCommand.js +46 -0
- package/dist-cjs/commands/UpdateMapRunCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +99 -17
- package/dist-cjs/pagination/ListMapRunsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +299 -1
- package/dist-es/SFN.js +45 -0
- package/dist-es/commands/DescribeMapRunCommand.js +42 -0
- package/dist-es/commands/ListMapRunsCommand.js +42 -0
- package/dist-es/commands/UpdateMapRunCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +83 -13
- package/dist-es/pagination/ListMapRunsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +293 -2
- package/dist-types/SFN.d.ts +44 -6
- package/dist-types/SFNClient.d.ts +5 -2
- package/dist-types/commands/DeleteStateMachineCommand.d.ts +5 -0
- package/dist-types/commands/DescribeExecutionCommand.d.ts +2 -2
- package/dist-types/commands/DescribeMapRunCommand.d.ts +37 -0
- package/dist-types/commands/DescribeStateMachineCommand.d.ts +4 -1
- package/dist-types/commands/DescribeStateMachineForExecutionCommand.d.ts +1 -1
- package/dist-types/commands/ListExecutionsCommand.d.ts +2 -1
- package/dist-types/commands/ListMapRunsCommand.d.ts +37 -0
- package/dist-types/commands/StartExecutionCommand.d.ts +4 -1
- package/dist-types/commands/UpdateMapRunCommand.d.ts +37 -0
- package/dist-types/commands/UpdateStateMachineCommand.d.ts +5 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +357 -20
- package/dist-types/pagination/ListMapRunsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/SFN.d.ts +51 -0
- package/dist-types/ts3.4/SFNClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DescribeMapRunCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListMapRunsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateMapRunCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +139 -7
- package/dist-types/ts3.4/pagination/ListMapRunsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
- package/package.json +29 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
-
import { ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, InvalidArn, InvalidDefinition, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, MissingRequiredParameter, ResourceNotFound, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, } from "../models/models_0";
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, InvalidArn, InvalidDefinition, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, MissingRequiredParameter, ResourceNotFound, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { SFNServiceException as __BaseException } from "../models/SFNServiceException";
|
|
5
5
|
export const serializeAws_json1_0CreateActivityCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
@@ -56,6 +56,15 @@ export const serializeAws_json1_0DescribeExecutionCommand = async (input, contex
|
|
|
56
56
|
body = JSON.stringify(serializeAws_json1_0DescribeExecutionInput(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
+
export const serializeAws_json1_0DescribeMapRunCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.0",
|
|
62
|
+
"x-amz-target": "AWSStepFunctions.DescribeMapRun",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_0DescribeMapRunInput(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
59
68
|
export const serializeAws_json1_0DescribeStateMachineCommand = async (input, context) => {
|
|
60
69
|
const headers = {
|
|
61
70
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -110,6 +119,15 @@ export const serializeAws_json1_0ListExecutionsCommand = async (input, context)
|
|
|
110
119
|
body = JSON.stringify(serializeAws_json1_0ListExecutionsInput(input, context));
|
|
111
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
121
|
};
|
|
122
|
+
export const serializeAws_json1_0ListMapRunsCommand = async (input, context) => {
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/x-amz-json-1.0",
|
|
125
|
+
"x-amz-target": "AWSStepFunctions.ListMapRuns",
|
|
126
|
+
};
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(serializeAws_json1_0ListMapRunsInput(input, context));
|
|
129
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
|
+
};
|
|
113
131
|
export const serializeAws_json1_0ListStateMachinesCommand = async (input, context) => {
|
|
114
132
|
const headers = {
|
|
115
133
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -207,6 +225,15 @@ export const serializeAws_json1_0UntagResourceCommand = async (input, context) =
|
|
|
207
225
|
body = JSON.stringify(serializeAws_json1_0UntagResourceInput(input, context));
|
|
208
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
227
|
};
|
|
228
|
+
export const serializeAws_json1_0UpdateMapRunCommand = async (input, context) => {
|
|
229
|
+
const headers = {
|
|
230
|
+
"content-type": "application/x-amz-json-1.0",
|
|
231
|
+
"x-amz-target": "AWSStepFunctions.UpdateMapRun",
|
|
232
|
+
};
|
|
233
|
+
let body;
|
|
234
|
+
body = JSON.stringify(serializeAws_json1_0UpdateMapRunInput(input, context));
|
|
235
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
|
+
};
|
|
210
237
|
export const serializeAws_json1_0UpdateStateMachineCommand = async (input, context) => {
|
|
211
238
|
const headers = {
|
|
212
239
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -371,6 +398,9 @@ const deserializeAws_json1_0DeleteStateMachineCommandError = async (output, cont
|
|
|
371
398
|
case "InvalidArn":
|
|
372
399
|
case "com.amazonaws.sfn#InvalidArn":
|
|
373
400
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
401
|
+
case "ValidationException":
|
|
402
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
403
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
374
404
|
default:
|
|
375
405
|
const parsedBody = parsedOutput.body;
|
|
376
406
|
throwDefaultError({
|
|
@@ -453,6 +483,42 @@ const deserializeAws_json1_0DescribeExecutionCommandError = async (output, conte
|
|
|
453
483
|
});
|
|
454
484
|
}
|
|
455
485
|
};
|
|
486
|
+
export const deserializeAws_json1_0DescribeMapRunCommand = async (output, context) => {
|
|
487
|
+
if (output.statusCode >= 300) {
|
|
488
|
+
return deserializeAws_json1_0DescribeMapRunCommandError(output, context);
|
|
489
|
+
}
|
|
490
|
+
const data = await parseBody(output.body, context);
|
|
491
|
+
let contents = {};
|
|
492
|
+
contents = deserializeAws_json1_0DescribeMapRunOutput(data, context);
|
|
493
|
+
const response = {
|
|
494
|
+
$metadata: deserializeMetadata(output),
|
|
495
|
+
...contents,
|
|
496
|
+
};
|
|
497
|
+
return Promise.resolve(response);
|
|
498
|
+
};
|
|
499
|
+
const deserializeAws_json1_0DescribeMapRunCommandError = async (output, context) => {
|
|
500
|
+
const parsedOutput = {
|
|
501
|
+
...output,
|
|
502
|
+
body: await parseErrorBody(output.body, context),
|
|
503
|
+
};
|
|
504
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
|
+
switch (errorCode) {
|
|
506
|
+
case "InvalidArn":
|
|
507
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
508
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
509
|
+
case "ResourceNotFound":
|
|
510
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
511
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
512
|
+
default:
|
|
513
|
+
const parsedBody = parsedOutput.body;
|
|
514
|
+
throwDefaultError({
|
|
515
|
+
output,
|
|
516
|
+
parsedBody,
|
|
517
|
+
exceptionCtor: __BaseException,
|
|
518
|
+
errorCode,
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
};
|
|
456
522
|
export const deserializeAws_json1_0DescribeStateMachineCommand = async (output, context) => {
|
|
457
523
|
if (output.statusCode >= 300) {
|
|
458
524
|
return deserializeAws_json1_0DescribeStateMachineCommandError(output, context);
|
|
@@ -662,12 +728,57 @@ const deserializeAws_json1_0ListExecutionsCommandError = async (output, context)
|
|
|
662
728
|
case "InvalidToken":
|
|
663
729
|
case "com.amazonaws.sfn#InvalidToken":
|
|
664
730
|
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
731
|
+
case "ResourceNotFound":
|
|
732
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
733
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
665
734
|
case "StateMachineDoesNotExist":
|
|
666
735
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
667
736
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
668
737
|
case "StateMachineTypeNotSupported":
|
|
669
738
|
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
670
739
|
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
740
|
+
case "ValidationException":
|
|
741
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
742
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
743
|
+
default:
|
|
744
|
+
const parsedBody = parsedOutput.body;
|
|
745
|
+
throwDefaultError({
|
|
746
|
+
output,
|
|
747
|
+
parsedBody,
|
|
748
|
+
exceptionCtor: __BaseException,
|
|
749
|
+
errorCode,
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
export const deserializeAws_json1_0ListMapRunsCommand = async (output, context) => {
|
|
754
|
+
if (output.statusCode >= 300) {
|
|
755
|
+
return deserializeAws_json1_0ListMapRunsCommandError(output, context);
|
|
756
|
+
}
|
|
757
|
+
const data = await parseBody(output.body, context);
|
|
758
|
+
let contents = {};
|
|
759
|
+
contents = deserializeAws_json1_0ListMapRunsOutput(data, context);
|
|
760
|
+
const response = {
|
|
761
|
+
$metadata: deserializeMetadata(output),
|
|
762
|
+
...contents,
|
|
763
|
+
};
|
|
764
|
+
return Promise.resolve(response);
|
|
765
|
+
};
|
|
766
|
+
const deserializeAws_json1_0ListMapRunsCommandError = async (output, context) => {
|
|
767
|
+
const parsedOutput = {
|
|
768
|
+
...output,
|
|
769
|
+
body: await parseErrorBody(output.body, context),
|
|
770
|
+
};
|
|
771
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
+
switch (errorCode) {
|
|
773
|
+
case "ExecutionDoesNotExist":
|
|
774
|
+
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
775
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
776
|
+
case "InvalidArn":
|
|
777
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
778
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
779
|
+
case "InvalidToken":
|
|
780
|
+
case "com.amazonaws.sfn#InvalidToken":
|
|
781
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
671
782
|
default:
|
|
672
783
|
const parsedBody = parsedOutput.body;
|
|
673
784
|
throwDefaultError({
|
|
@@ -908,6 +1019,9 @@ const deserializeAws_json1_0StartExecutionCommandError = async (output, context)
|
|
|
908
1019
|
case "StateMachineDoesNotExist":
|
|
909
1020
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
910
1021
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1022
|
+
case "ValidationException":
|
|
1023
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
1024
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
911
1025
|
default:
|
|
912
1026
|
const parsedBody = parsedOutput.body;
|
|
913
1027
|
throwDefaultError({
|
|
@@ -992,6 +1106,9 @@ const deserializeAws_json1_0StopExecutionCommandError = async (output, context)
|
|
|
992
1106
|
case "InvalidArn":
|
|
993
1107
|
case "com.amazonaws.sfn#InvalidArn":
|
|
994
1108
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1109
|
+
case "ValidationException":
|
|
1110
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
1111
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
995
1112
|
default:
|
|
996
1113
|
const parsedBody = parsedOutput.body;
|
|
997
1114
|
throwDefaultError({
|
|
@@ -1077,6 +1194,45 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1077
1194
|
});
|
|
1078
1195
|
}
|
|
1079
1196
|
};
|
|
1197
|
+
export const deserializeAws_json1_0UpdateMapRunCommand = async (output, context) => {
|
|
1198
|
+
if (output.statusCode >= 300) {
|
|
1199
|
+
return deserializeAws_json1_0UpdateMapRunCommandError(output, context);
|
|
1200
|
+
}
|
|
1201
|
+
const data = await parseBody(output.body, context);
|
|
1202
|
+
let contents = {};
|
|
1203
|
+
contents = deserializeAws_json1_0UpdateMapRunOutput(data, context);
|
|
1204
|
+
const response = {
|
|
1205
|
+
$metadata: deserializeMetadata(output),
|
|
1206
|
+
...contents,
|
|
1207
|
+
};
|
|
1208
|
+
return Promise.resolve(response);
|
|
1209
|
+
};
|
|
1210
|
+
const deserializeAws_json1_0UpdateMapRunCommandError = async (output, context) => {
|
|
1211
|
+
const parsedOutput = {
|
|
1212
|
+
...output,
|
|
1213
|
+
body: await parseErrorBody(output.body, context),
|
|
1214
|
+
};
|
|
1215
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
|
+
switch (errorCode) {
|
|
1217
|
+
case "InvalidArn":
|
|
1218
|
+
case "com.amazonaws.sfn#InvalidArn":
|
|
1219
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1220
|
+
case "ResourceNotFound":
|
|
1221
|
+
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1222
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1223
|
+
case "ValidationException":
|
|
1224
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
1225
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1226
|
+
default:
|
|
1227
|
+
const parsedBody = parsedOutput.body;
|
|
1228
|
+
throwDefaultError({
|
|
1229
|
+
output,
|
|
1230
|
+
parsedBody,
|
|
1231
|
+
exceptionCtor: __BaseException,
|
|
1232
|
+
errorCode,
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
};
|
|
1080
1236
|
export const deserializeAws_json1_0UpdateStateMachineCommand = async (output, context) => {
|
|
1081
1237
|
if (output.statusCode >= 300) {
|
|
1082
1238
|
return deserializeAws_json1_0UpdateStateMachineCommandError(output, context);
|
|
@@ -1118,6 +1274,9 @@ const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, cont
|
|
|
1118
1274
|
case "StateMachineDoesNotExist":
|
|
1119
1275
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1120
1276
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1277
|
+
case "ValidationException":
|
|
1278
|
+
case "com.amazonaws.sfn#ValidationException":
|
|
1279
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1121
1280
|
default:
|
|
1122
1281
|
const parsedBody = parsedOutput.body;
|
|
1123
1282
|
throwDefaultError({
|
|
@@ -1344,6 +1503,15 @@ const deserializeAws_json1_0TooManyTagsResponse = async (parsedOutput, context)
|
|
|
1344
1503
|
});
|
|
1345
1504
|
return __decorateServiceException(exception, body);
|
|
1346
1505
|
};
|
|
1506
|
+
const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1507
|
+
const body = parsedOutput.body;
|
|
1508
|
+
const deserialized = deserializeAws_json1_0ValidationException(body, context);
|
|
1509
|
+
const exception = new ValidationException({
|
|
1510
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1511
|
+
...deserialized,
|
|
1512
|
+
});
|
|
1513
|
+
return __decorateServiceException(exception, body);
|
|
1514
|
+
};
|
|
1347
1515
|
const serializeAws_json1_0CloudWatchLogsLogGroup = (input, context) => {
|
|
1348
1516
|
return {
|
|
1349
1517
|
...(input.logGroupArn != null && { logGroupArn: input.logGroupArn }),
|
|
@@ -1390,6 +1558,11 @@ const serializeAws_json1_0DescribeExecutionInput = (input, context) => {
|
|
|
1390
1558
|
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1391
1559
|
};
|
|
1392
1560
|
};
|
|
1561
|
+
const serializeAws_json1_0DescribeMapRunInput = (input, context) => {
|
|
1562
|
+
return {
|
|
1563
|
+
...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
|
|
1564
|
+
};
|
|
1565
|
+
};
|
|
1393
1566
|
const serializeAws_json1_0DescribeStateMachineForExecutionInput = (input, context) => {
|
|
1394
1567
|
return {
|
|
1395
1568
|
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
@@ -1423,12 +1596,20 @@ const serializeAws_json1_0ListActivitiesInput = (input, context) => {
|
|
|
1423
1596
|
};
|
|
1424
1597
|
const serializeAws_json1_0ListExecutionsInput = (input, context) => {
|
|
1425
1598
|
return {
|
|
1599
|
+
...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
|
|
1426
1600
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1427
1601
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1428
1602
|
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1429
1603
|
...(input.statusFilter != null && { statusFilter: input.statusFilter }),
|
|
1430
1604
|
};
|
|
1431
1605
|
};
|
|
1606
|
+
const serializeAws_json1_0ListMapRunsInput = (input, context) => {
|
|
1607
|
+
return {
|
|
1608
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1609
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1610
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1432
1613
|
const serializeAws_json1_0ListStateMachinesInput = (input, context) => {
|
|
1433
1614
|
return {
|
|
1434
1615
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
@@ -1541,6 +1722,16 @@ const serializeAws_json1_0UntagResourceInput = (input, context) => {
|
|
|
1541
1722
|
...(input.tagKeys != null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
|
|
1542
1723
|
};
|
|
1543
1724
|
};
|
|
1725
|
+
const serializeAws_json1_0UpdateMapRunInput = (input, context) => {
|
|
1726
|
+
return {
|
|
1727
|
+
...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
|
|
1728
|
+
...(input.maxConcurrency != null && { maxConcurrency: input.maxConcurrency }),
|
|
1729
|
+
...(input.toleratedFailureCount != null && { toleratedFailureCount: input.toleratedFailureCount }),
|
|
1730
|
+
...(input.toleratedFailurePercentage != null && {
|
|
1731
|
+
toleratedFailurePercentage: __serializeFloat(input.toleratedFailurePercentage),
|
|
1732
|
+
}),
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1544
1735
|
const serializeAws_json1_0UpdateStateMachineInput = (input, context) => {
|
|
1545
1736
|
return {
|
|
1546
1737
|
...(input.definition != null && { definition: input.definition }),
|
|
@@ -1680,11 +1871,14 @@ const deserializeAws_json1_0DescribeActivityOutput = (output, context) => {
|
|
|
1680
1871
|
};
|
|
1681
1872
|
const deserializeAws_json1_0DescribeExecutionOutput = (output, context) => {
|
|
1682
1873
|
return {
|
|
1874
|
+
cause: __expectString(output.cause),
|
|
1875
|
+
error: __expectString(output.error),
|
|
1683
1876
|
executionArn: __expectString(output.executionArn),
|
|
1684
1877
|
input: __expectString(output.input),
|
|
1685
1878
|
inputDetails: output.inputDetails != null
|
|
1686
1879
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.inputDetails, context)
|
|
1687
1880
|
: undefined,
|
|
1881
|
+
mapRunArn: __expectString(output.mapRunArn),
|
|
1688
1882
|
name: __expectString(output.name),
|
|
1689
1883
|
output: __expectString(output.output),
|
|
1690
1884
|
outputDetails: output.outputDetails != null
|
|
@@ -1697,12 +1891,30 @@ const deserializeAws_json1_0DescribeExecutionOutput = (output, context) => {
|
|
|
1697
1891
|
traceHeader: __expectString(output.traceHeader),
|
|
1698
1892
|
};
|
|
1699
1893
|
};
|
|
1894
|
+
const deserializeAws_json1_0DescribeMapRunOutput = (output, context) => {
|
|
1895
|
+
return {
|
|
1896
|
+
executionArn: __expectString(output.executionArn),
|
|
1897
|
+
executionCounts: output.executionCounts != null
|
|
1898
|
+
? deserializeAws_json1_0MapRunExecutionCounts(output.executionCounts, context)
|
|
1899
|
+
: undefined,
|
|
1900
|
+
itemCounts: output.itemCounts != null ? deserializeAws_json1_0MapRunItemCounts(output.itemCounts, context) : undefined,
|
|
1901
|
+
mapRunArn: __expectString(output.mapRunArn),
|
|
1902
|
+
maxConcurrency: __expectInt32(output.maxConcurrency),
|
|
1903
|
+
startDate: output.startDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate))) : undefined,
|
|
1904
|
+
status: __expectString(output.status),
|
|
1905
|
+
stopDate: output.stopDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate))) : undefined,
|
|
1906
|
+
toleratedFailureCount: __expectLong(output.toleratedFailureCount),
|
|
1907
|
+
toleratedFailurePercentage: __limitedParseFloat32(output.toleratedFailurePercentage),
|
|
1908
|
+
};
|
|
1909
|
+
};
|
|
1700
1910
|
const deserializeAws_json1_0DescribeStateMachineForExecutionOutput = (output, context) => {
|
|
1701
1911
|
return {
|
|
1702
1912
|
definition: __expectString(output.definition),
|
|
1913
|
+
label: __expectString(output.label),
|
|
1703
1914
|
loggingConfiguration: output.loggingConfiguration != null
|
|
1704
1915
|
? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
|
|
1705
1916
|
: undefined,
|
|
1917
|
+
mapRunArn: __expectString(output.mapRunArn),
|
|
1706
1918
|
name: __expectString(output.name),
|
|
1707
1919
|
roleArn: __expectString(output.roleArn),
|
|
1708
1920
|
stateMachineArn: __expectString(output.stateMachineArn),
|
|
@@ -1718,6 +1930,7 @@ const deserializeAws_json1_0DescribeStateMachineOutput = (output, context) => {
|
|
|
1718
1930
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
1719
1931
|
: undefined,
|
|
1720
1932
|
definition: __expectString(output.definition),
|
|
1933
|
+
label: __expectString(output.label),
|
|
1721
1934
|
loggingConfiguration: output.loggingConfiguration != null
|
|
1722
1935
|
? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
|
|
1723
1936
|
: undefined,
|
|
@@ -1772,6 +1985,8 @@ const deserializeAws_json1_0ExecutionList = (output, context) => {
|
|
|
1772
1985
|
const deserializeAws_json1_0ExecutionListItem = (output, context) => {
|
|
1773
1986
|
return {
|
|
1774
1987
|
executionArn: __expectString(output.executionArn),
|
|
1988
|
+
itemCount: __expectInt32(output.itemCount),
|
|
1989
|
+
mapRunArn: __expectString(output.mapRunArn),
|
|
1775
1990
|
name: __expectString(output.name),
|
|
1776
1991
|
startDate: output.startDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate))) : undefined,
|
|
1777
1992
|
stateMachineArn: __expectString(output.stateMachineArn),
|
|
@@ -1880,6 +2095,12 @@ const deserializeAws_json1_0HistoryEvent = (output, context) => {
|
|
|
1880
2095
|
mapIterationSucceededEventDetails: output.mapIterationSucceededEventDetails != null
|
|
1881
2096
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationSucceededEventDetails, context)
|
|
1882
2097
|
: undefined,
|
|
2098
|
+
mapRunFailedEventDetails: output.mapRunFailedEventDetails != null
|
|
2099
|
+
? deserializeAws_json1_0MapRunFailedEventDetails(output.mapRunFailedEventDetails, context)
|
|
2100
|
+
: undefined,
|
|
2101
|
+
mapRunStartedEventDetails: output.mapRunStartedEventDetails != null
|
|
2102
|
+
? deserializeAws_json1_0MapRunStartedEventDetails(output.mapRunStartedEventDetails, context)
|
|
2103
|
+
: undefined,
|
|
1883
2104
|
mapStateStartedEventDetails: output.mapStateStartedEventDetails != null
|
|
1884
2105
|
? deserializeAws_json1_0MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
|
|
1885
2106
|
: undefined,
|
|
@@ -2031,6 +2252,12 @@ const deserializeAws_json1_0ListExecutionsOutput = (output, context) => {
|
|
|
2031
2252
|
nextToken: __expectString(output.nextToken),
|
|
2032
2253
|
};
|
|
2033
2254
|
};
|
|
2255
|
+
const deserializeAws_json1_0ListMapRunsOutput = (output, context) => {
|
|
2256
|
+
return {
|
|
2257
|
+
mapRuns: output.mapRuns != null ? deserializeAws_json1_0MapRunList(output.mapRuns, context) : undefined,
|
|
2258
|
+
nextToken: __expectString(output.nextToken),
|
|
2259
|
+
};
|
|
2260
|
+
};
|
|
2034
2261
|
const deserializeAws_json1_0ListStateMachinesOutput = (output, context) => {
|
|
2035
2262
|
return {
|
|
2036
2263
|
nextToken: __expectString(output.nextToken),
|
|
@@ -2073,6 +2300,61 @@ const deserializeAws_json1_0MapIterationEventDetails = (output, context) => {
|
|
|
2073
2300
|
name: __expectString(output.name),
|
|
2074
2301
|
};
|
|
2075
2302
|
};
|
|
2303
|
+
const deserializeAws_json1_0MapRunExecutionCounts = (output, context) => {
|
|
2304
|
+
return {
|
|
2305
|
+
aborted: __expectLong(output.aborted),
|
|
2306
|
+
failed: __expectLong(output.failed),
|
|
2307
|
+
pending: __expectLong(output.pending),
|
|
2308
|
+
resultsWritten: __expectLong(output.resultsWritten),
|
|
2309
|
+
running: __expectLong(output.running),
|
|
2310
|
+
succeeded: __expectLong(output.succeeded),
|
|
2311
|
+
timedOut: __expectLong(output.timedOut),
|
|
2312
|
+
total: __expectLong(output.total),
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
const deserializeAws_json1_0MapRunFailedEventDetails = (output, context) => {
|
|
2316
|
+
return {
|
|
2317
|
+
cause: __expectString(output.cause),
|
|
2318
|
+
error: __expectString(output.error),
|
|
2319
|
+
};
|
|
2320
|
+
};
|
|
2321
|
+
const deserializeAws_json1_0MapRunItemCounts = (output, context) => {
|
|
2322
|
+
return {
|
|
2323
|
+
aborted: __expectLong(output.aborted),
|
|
2324
|
+
failed: __expectLong(output.failed),
|
|
2325
|
+
pending: __expectLong(output.pending),
|
|
2326
|
+
resultsWritten: __expectLong(output.resultsWritten),
|
|
2327
|
+
running: __expectLong(output.running),
|
|
2328
|
+
succeeded: __expectLong(output.succeeded),
|
|
2329
|
+
timedOut: __expectLong(output.timedOut),
|
|
2330
|
+
total: __expectLong(output.total),
|
|
2331
|
+
};
|
|
2332
|
+
};
|
|
2333
|
+
const deserializeAws_json1_0MapRunList = (output, context) => {
|
|
2334
|
+
const retVal = (output || [])
|
|
2335
|
+
.filter((e) => e != null)
|
|
2336
|
+
.map((entry) => {
|
|
2337
|
+
if (entry === null) {
|
|
2338
|
+
return null;
|
|
2339
|
+
}
|
|
2340
|
+
return deserializeAws_json1_0MapRunListItem(entry, context);
|
|
2341
|
+
});
|
|
2342
|
+
return retVal;
|
|
2343
|
+
};
|
|
2344
|
+
const deserializeAws_json1_0MapRunListItem = (output, context) => {
|
|
2345
|
+
return {
|
|
2346
|
+
executionArn: __expectString(output.executionArn),
|
|
2347
|
+
mapRunArn: __expectString(output.mapRunArn),
|
|
2348
|
+
startDate: output.startDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate))) : undefined,
|
|
2349
|
+
stateMachineArn: __expectString(output.stateMachineArn),
|
|
2350
|
+
stopDate: output.stopDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate))) : undefined,
|
|
2351
|
+
};
|
|
2352
|
+
};
|
|
2353
|
+
const deserializeAws_json1_0MapRunStartedEventDetails = (output, context) => {
|
|
2354
|
+
return {
|
|
2355
|
+
mapRunArn: __expectString(output.mapRunArn),
|
|
2356
|
+
};
|
|
2357
|
+
};
|
|
2076
2358
|
const deserializeAws_json1_0MapStateStartedEventDetails = (output, context) => {
|
|
2077
2359
|
return {
|
|
2078
2360
|
length: __expectInt32(output.length),
|
|
@@ -2315,11 +2597,20 @@ const deserializeAws_json1_0TracingConfiguration = (output, context) => {
|
|
|
2315
2597
|
const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
|
|
2316
2598
|
return {};
|
|
2317
2599
|
};
|
|
2600
|
+
const deserializeAws_json1_0UpdateMapRunOutput = (output, context) => {
|
|
2601
|
+
return {};
|
|
2602
|
+
};
|
|
2318
2603
|
const deserializeAws_json1_0UpdateStateMachineOutput = (output, context) => {
|
|
2319
2604
|
return {
|
|
2320
2605
|
updateDate: output.updateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate))) : undefined,
|
|
2321
2606
|
};
|
|
2322
2607
|
};
|
|
2608
|
+
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
2609
|
+
return {
|
|
2610
|
+
message: __expectString(output.message),
|
|
2611
|
+
reason: __expectString(output.reason),
|
|
2612
|
+
};
|
|
2613
|
+
};
|
|
2323
2614
|
const deserializeMetadata = (output) => ({
|
|
2324
2615
|
httpStatusCode: output.statusCode,
|
|
2325
2616
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-types/SFN.d.ts
CHANGED
|
@@ -5,12 +5,14 @@ import { DeleteActivityCommandInput, DeleteActivityCommandOutput } from "./comma
|
|
|
5
5
|
import { DeleteStateMachineCommandInput, DeleteStateMachineCommandOutput } from "./commands/DeleteStateMachineCommand";
|
|
6
6
|
import { DescribeActivityCommandInput, DescribeActivityCommandOutput } from "./commands/DescribeActivityCommand";
|
|
7
7
|
import { DescribeExecutionCommandInput, DescribeExecutionCommandOutput } from "./commands/DescribeExecutionCommand";
|
|
8
|
+
import { DescribeMapRunCommandInput, DescribeMapRunCommandOutput } from "./commands/DescribeMapRunCommand";
|
|
8
9
|
import { DescribeStateMachineCommandInput, DescribeStateMachineCommandOutput } from "./commands/DescribeStateMachineCommand";
|
|
9
10
|
import { DescribeStateMachineForExecutionCommandInput, DescribeStateMachineForExecutionCommandOutput } from "./commands/DescribeStateMachineForExecutionCommand";
|
|
10
11
|
import { GetActivityTaskCommandInput, GetActivityTaskCommandOutput } from "./commands/GetActivityTaskCommand";
|
|
11
12
|
import { GetExecutionHistoryCommandInput, GetExecutionHistoryCommandOutput } from "./commands/GetExecutionHistoryCommand";
|
|
12
13
|
import { ListActivitiesCommandInput, ListActivitiesCommandOutput } from "./commands/ListActivitiesCommand";
|
|
13
14
|
import { ListExecutionsCommandInput, ListExecutionsCommandOutput } from "./commands/ListExecutionsCommand";
|
|
15
|
+
import { ListMapRunsCommandInput, ListMapRunsCommandOutput } from "./commands/ListMapRunsCommand";
|
|
14
16
|
import { ListStateMachinesCommandInput, ListStateMachinesCommandOutput } from "./commands/ListStateMachinesCommand";
|
|
15
17
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
16
18
|
import { SendTaskFailureCommandInput, SendTaskFailureCommandOutput } from "./commands/SendTaskFailureCommand";
|
|
@@ -21,6 +23,7 @@ import { StartSyncExecutionCommandInput, StartSyncExecutionCommandOutput } from
|
|
|
21
23
|
import { StopExecutionCommandInput, StopExecutionCommandOutput } from "./commands/StopExecutionCommand";
|
|
22
24
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
23
25
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
26
|
+
import { UpdateMapRunCommandInput, UpdateMapRunCommandOutput } from "./commands/UpdateMapRunCommand";
|
|
24
27
|
import { UpdateStateMachineCommandInput, UpdateStateMachineCommandOutput } from "./commands/UpdateStateMachineCommand";
|
|
25
28
|
import { SFNClient } from "./SFNClient";
|
|
26
29
|
/**
|
|
@@ -98,6 +101,11 @@ export declare class SFN extends SFNClient {
|
|
|
98
101
|
/**
|
|
99
102
|
* <p>Deletes a state machine. This is an asynchronous operation: It sets the state machine's
|
|
100
103
|
* status to <code>DELETING</code> and begins the deletion process. </p>
|
|
104
|
+
*
|
|
105
|
+
* <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
|
|
106
|
+
*
|
|
107
|
+
* <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
|
|
108
|
+
*
|
|
101
109
|
* <note>
|
|
102
110
|
* <p>For <code>EXPRESS</code> state machines, the deletion will happen eventually (usually
|
|
103
111
|
* less than a minute). Running executions may emit logs after <code>DeleteStateMachine</code>
|
|
@@ -117,17 +125,26 @@ export declare class SFN extends SFNClient {
|
|
|
117
125
|
describeActivity(args: DescribeActivityCommandInput, cb: (err: any, data?: DescribeActivityCommandOutput) => void): void;
|
|
118
126
|
describeActivity(args: DescribeActivityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeActivityCommandOutput) => void): void;
|
|
119
127
|
/**
|
|
120
|
-
* <p>
|
|
128
|
+
* <p>Provides all information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata. Use this API action to return the Map Run ARN if the execution was dispatched by a Map Run.</p>
|
|
121
129
|
* <note>
|
|
122
130
|
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
123
131
|
* </note>
|
|
124
|
-
* <p>This API action is not supported by <code>EXPRESS</code> state
|
|
132
|
+
* <p>This API action is not supported by <code>EXPRESS</code> state machine executions unless they were dispatched by a Map Run.</p>
|
|
125
133
|
*/
|
|
126
134
|
describeExecution(args: DescribeExecutionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeExecutionCommandOutput>;
|
|
127
135
|
describeExecution(args: DescribeExecutionCommandInput, cb: (err: any, data?: DescribeExecutionCommandOutput) => void): void;
|
|
128
136
|
describeExecution(args: DescribeExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeExecutionCommandOutput) => void): void;
|
|
129
137
|
/**
|
|
130
|
-
* <p>
|
|
138
|
+
* <p>Provides information about a Map Run's configuration, progress, and results. For more information, see <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html">Examining Map Run</a> in the <i>Step Functions Developer Guide</i>.</p>
|
|
139
|
+
*/
|
|
140
|
+
describeMapRun(args: DescribeMapRunCommandInput, options?: __HttpHandlerOptions): Promise<DescribeMapRunCommandOutput>;
|
|
141
|
+
describeMapRun(args: DescribeMapRunCommandInput, cb: (err: any, data?: DescribeMapRunCommandOutput) => void): void;
|
|
142
|
+
describeMapRun(args: DescribeMapRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMapRunCommandOutput) => void): void;
|
|
143
|
+
/**
|
|
144
|
+
* <p>Provides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration. If the state machine ARN is a qualified state machine ARN, the response returned includes the <code>Map</code> state's label.</p>
|
|
145
|
+
*
|
|
146
|
+
* <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
|
|
147
|
+
*
|
|
131
148
|
* <note>
|
|
132
149
|
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
133
150
|
* </note>
|
|
@@ -136,7 +153,7 @@ export declare class SFN extends SFNClient {
|
|
|
136
153
|
describeStateMachine(args: DescribeStateMachineCommandInput, cb: (err: any, data?: DescribeStateMachineCommandOutput) => void): void;
|
|
137
154
|
describeStateMachine(args: DescribeStateMachineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeStateMachineCommandOutput) => void): void;
|
|
138
155
|
/**
|
|
139
|
-
* <p>
|
|
156
|
+
* <p>Provides information about a state machine's definition, its execution role ARN, and configuration. If an execution was dispatched by a Map Run, the Map Run is returned in the response. Additionally, the state machine returned will be the state machine associated with the Map Run.</p>
|
|
140
157
|
* <note>
|
|
141
158
|
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
|
|
142
159
|
* </note>
|
|
@@ -191,7 +208,8 @@ export declare class SFN extends SFNClient {
|
|
|
191
208
|
listActivities(args: ListActivitiesCommandInput, cb: (err: any, data?: ListActivitiesCommandOutput) => void): void;
|
|
192
209
|
listActivities(args: ListActivitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListActivitiesCommandOutput) => void): void;
|
|
193
210
|
/**
|
|
194
|
-
* <p>Lists
|
|
211
|
+
* <p>Lists all executions of a state machine or a Map Run. You can list all executions related to a state machine by specifying a state machine Amazon Resource Name (ARN), or those related to a Map Run by specifying a Map Run ARN.</p>
|
|
212
|
+
* <p>Results are
|
|
195
213
|
* sorted by time, with the most recent execution first.</p>
|
|
196
214
|
* <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page.
|
|
197
215
|
* Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an <i>HTTP 400 InvalidToken</i> error.</p>
|
|
@@ -203,6 +221,12 @@ export declare class SFN extends SFNClient {
|
|
|
203
221
|
listExecutions(args: ListExecutionsCommandInput, options?: __HttpHandlerOptions): Promise<ListExecutionsCommandOutput>;
|
|
204
222
|
listExecutions(args: ListExecutionsCommandInput, cb: (err: any, data?: ListExecutionsCommandOutput) => void): void;
|
|
205
223
|
listExecutions(args: ListExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExecutionsCommandOutput) => void): void;
|
|
224
|
+
/**
|
|
225
|
+
* <p>Lists all Map Runs that were started by a given state machine execution. Use this API action to obtain Map Run ARNs, and then call <code>DescribeMapRun</code> to obtain more information, if needed.</p>
|
|
226
|
+
*/
|
|
227
|
+
listMapRuns(args: ListMapRunsCommandInput, options?: __HttpHandlerOptions): Promise<ListMapRunsCommandOutput>;
|
|
228
|
+
listMapRuns(args: ListMapRunsCommandInput, cb: (err: any, data?: ListMapRunsCommandOutput) => void): void;
|
|
229
|
+
listMapRuns(args: ListMapRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMapRunsCommandOutput) => void): void;
|
|
206
230
|
/**
|
|
207
231
|
* <p>Lists the existing state machines.</p>
|
|
208
232
|
* <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page.
|
|
@@ -257,7 +281,10 @@ export declare class SFN extends SFNClient {
|
|
|
257
281
|
sendTaskSuccess(args: SendTaskSuccessCommandInput, cb: (err: any, data?: SendTaskSuccessCommandOutput) => void): void;
|
|
258
282
|
sendTaskSuccess(args: SendTaskSuccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTaskSuccessCommandOutput) => void): void;
|
|
259
283
|
/**
|
|
260
|
-
* <p>Starts a state machine execution.</p>
|
|
284
|
+
* <p>Starts a state machine execution. If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
|
|
285
|
+
*
|
|
286
|
+
* <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
|
|
287
|
+
*
|
|
261
288
|
* <note>
|
|
262
289
|
* <p>
|
|
263
290
|
* <code>StartExecution</code> is idempotent for <code>STANDARD</code> workflows. For a
|
|
@@ -314,12 +341,23 @@ export declare class SFN extends SFNClient {
|
|
|
314
341
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
315
342
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
316
343
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
344
|
+
/**
|
|
345
|
+
* <p>Updates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure.</p>
|
|
346
|
+
*/
|
|
347
|
+
updateMapRun(args: UpdateMapRunCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMapRunCommandOutput>;
|
|
348
|
+
updateMapRun(args: UpdateMapRunCommandInput, cb: (err: any, data?: UpdateMapRunCommandOutput) => void): void;
|
|
349
|
+
updateMapRun(args: UpdateMapRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMapRunCommandOutput) => void): void;
|
|
317
350
|
/**
|
|
318
351
|
* <p>Updates an existing state machine by modifying its <code>definition</code>,
|
|
319
352
|
* <code>roleArn</code>, or <code>loggingConfiguration</code>. Running executions will continue
|
|
320
353
|
* to use the previous <code>definition</code> and <code>roleArn</code>. You must include at
|
|
321
354
|
* least one of <code>definition</code> or <code>roleArn</code> or you will receive a
|
|
322
355
|
* <code>MissingRequiredParameter</code> error.</p>
|
|
356
|
+
*
|
|
357
|
+
* <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
|
|
358
|
+
*
|
|
359
|
+
* <p>A qualified state machine ARN refers to a <i>Distributed Map state</i> defined within a state machine. For example, the qualified state machine ARN <code>arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel</code> refers to a <i>Distributed Map state</i> with a label <code>mapStateLabel</code> in the state machine named <code>stateMachineName</code>.</p>
|
|
360
|
+
*
|
|
323
361
|
* <note>
|
|
324
362
|
* <p>All <code>StartExecution</code> calls within a few seconds will use the updated
|
|
325
363
|
* <code>definition</code> and <code>roleArn</code>. Executions started immediately after
|
|
@@ -13,12 +13,14 @@ import { DeleteActivityCommandInput, DeleteActivityCommandOutput } from "./comma
|
|
|
13
13
|
import { DeleteStateMachineCommandInput, DeleteStateMachineCommandOutput } from "./commands/DeleteStateMachineCommand";
|
|
14
14
|
import { DescribeActivityCommandInput, DescribeActivityCommandOutput } from "./commands/DescribeActivityCommand";
|
|
15
15
|
import { DescribeExecutionCommandInput, DescribeExecutionCommandOutput } from "./commands/DescribeExecutionCommand";
|
|
16
|
+
import { DescribeMapRunCommandInput, DescribeMapRunCommandOutput } from "./commands/DescribeMapRunCommand";
|
|
16
17
|
import { DescribeStateMachineCommandInput, DescribeStateMachineCommandOutput } from "./commands/DescribeStateMachineCommand";
|
|
17
18
|
import { DescribeStateMachineForExecutionCommandInput, DescribeStateMachineForExecutionCommandOutput } from "./commands/DescribeStateMachineForExecutionCommand";
|
|
18
19
|
import { GetActivityTaskCommandInput, GetActivityTaskCommandOutput } from "./commands/GetActivityTaskCommand";
|
|
19
20
|
import { GetExecutionHistoryCommandInput, GetExecutionHistoryCommandOutput } from "./commands/GetExecutionHistoryCommand";
|
|
20
21
|
import { ListActivitiesCommandInput, ListActivitiesCommandOutput } from "./commands/ListActivitiesCommand";
|
|
21
22
|
import { ListExecutionsCommandInput, ListExecutionsCommandOutput } from "./commands/ListExecutionsCommand";
|
|
23
|
+
import { ListMapRunsCommandInput, ListMapRunsCommandOutput } from "./commands/ListMapRunsCommand";
|
|
22
24
|
import { ListStateMachinesCommandInput, ListStateMachinesCommandOutput } from "./commands/ListStateMachinesCommand";
|
|
23
25
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
24
26
|
import { SendTaskFailureCommandInput, SendTaskFailureCommandOutput } from "./commands/SendTaskFailureCommand";
|
|
@@ -29,10 +31,11 @@ import { StartSyncExecutionCommandInput, StartSyncExecutionCommandOutput } from
|
|
|
29
31
|
import { StopExecutionCommandInput, StopExecutionCommandOutput } from "./commands/StopExecutionCommand";
|
|
30
32
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
31
33
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
34
|
+
import { UpdateMapRunCommandInput, UpdateMapRunCommandOutput } from "./commands/UpdateMapRunCommand";
|
|
32
35
|
import { UpdateStateMachineCommandInput, UpdateStateMachineCommandOutput } from "./commands/UpdateStateMachineCommand";
|
|
33
36
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
34
|
-
export declare type ServiceInputTypes = CreateActivityCommandInput | CreateStateMachineCommandInput | DeleteActivityCommandInput | DeleteStateMachineCommandInput | DescribeActivityCommandInput | DescribeExecutionCommandInput | DescribeStateMachineCommandInput | DescribeStateMachineForExecutionCommandInput | GetActivityTaskCommandInput | GetExecutionHistoryCommandInput | ListActivitiesCommandInput | ListExecutionsCommandInput | ListStateMachinesCommandInput | ListTagsForResourceCommandInput | SendTaskFailureCommandInput | SendTaskHeartbeatCommandInput | SendTaskSuccessCommandInput | StartExecutionCommandInput | StartSyncExecutionCommandInput | StopExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateStateMachineCommandInput;
|
|
35
|
-
export declare type ServiceOutputTypes = CreateActivityCommandOutput | CreateStateMachineCommandOutput | DeleteActivityCommandOutput | DeleteStateMachineCommandOutput | DescribeActivityCommandOutput | DescribeExecutionCommandOutput | DescribeStateMachineCommandOutput | DescribeStateMachineForExecutionCommandOutput | GetActivityTaskCommandOutput | GetExecutionHistoryCommandOutput | ListActivitiesCommandOutput | ListExecutionsCommandOutput | ListStateMachinesCommandOutput | ListTagsForResourceCommandOutput | SendTaskFailureCommandOutput | SendTaskHeartbeatCommandOutput | SendTaskSuccessCommandOutput | StartExecutionCommandOutput | StartSyncExecutionCommandOutput | StopExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateStateMachineCommandOutput;
|
|
37
|
+
export declare type ServiceInputTypes = CreateActivityCommandInput | CreateStateMachineCommandInput | DeleteActivityCommandInput | DeleteStateMachineCommandInput | DescribeActivityCommandInput | DescribeExecutionCommandInput | DescribeMapRunCommandInput | DescribeStateMachineCommandInput | DescribeStateMachineForExecutionCommandInput | GetActivityTaskCommandInput | GetExecutionHistoryCommandInput | ListActivitiesCommandInput | ListExecutionsCommandInput | ListMapRunsCommandInput | ListStateMachinesCommandInput | ListTagsForResourceCommandInput | SendTaskFailureCommandInput | SendTaskHeartbeatCommandInput | SendTaskSuccessCommandInput | StartExecutionCommandInput | StartSyncExecutionCommandInput | StopExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMapRunCommandInput | UpdateStateMachineCommandInput;
|
|
38
|
+
export declare type ServiceOutputTypes = CreateActivityCommandOutput | CreateStateMachineCommandOutput | DeleteActivityCommandOutput | DeleteStateMachineCommandOutput | DescribeActivityCommandOutput | DescribeExecutionCommandOutput | DescribeMapRunCommandOutput | DescribeStateMachineCommandOutput | DescribeStateMachineForExecutionCommandOutput | GetActivityTaskCommandOutput | GetExecutionHistoryCommandOutput | ListActivitiesCommandOutput | ListExecutionsCommandOutput | ListMapRunsCommandOutput | ListStateMachinesCommandOutput | ListTagsForResourceCommandOutput | SendTaskFailureCommandOutput | SendTaskHeartbeatCommandOutput | SendTaskSuccessCommandOutput | StartExecutionCommandOutput | StartSyncExecutionCommandOutput | StopExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMapRunCommandOutput | UpdateStateMachineCommandOutput;
|
|
36
39
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
37
40
|
/**
|
|
38
41
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|