You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client-sfn): This release adds support for the AWS Step Functions Map state in Distributed mode. The changes include a new MapRun resource and several new and modified APIs.
@@ -267,6 +278,11 @@ export class SFN extends SFNClient {
267
278
/**
268
279
* <p>Deletes a state machine. This is an asynchronous operation: It sets the state machine's
269
280
* status to <code>DELETING</code> and begins the deletion process. </p>
281
+
*
282
+
* <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
283
+
*
284
+
* <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>
285
+
*
270
286
* <note>
271
287
* <p>For <code>EXPRESS</code> state machines, the deletion will happen eventually (usually
272
288
* less than a minute). Running executions may emit logs after <code>DeleteStateMachine</code>
@@ -338,11 +354,11 @@ export class SFN extends SFNClient {
338
354
}
339
355
340
356
/**
341
-
* <p>Describes an execution.</p>
357
+
* <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>
342
358
* <note>
343
359
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
344
360
* </note>
345
-
* <p>This API action is not supported by <code>EXPRESS</code> state machines.</p>
361
+
* <p>This API action is not supported by <code>EXPRESS</code> state machine executions unless they were dispatched by a Map Run.</p>
346
362
*/
347
363
publicdescribeExecution(
348
364
args: DescribeExecutionCommandInput,
@@ -374,7 +390,42 @@ export class SFN extends SFNClient {
374
390
}
375
391
376
392
/**
377
-
* <p>Describes a state machine.</p>
393
+
* <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>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
418
+
this.send(command,optionsOrCb||{},cb);
419
+
}else{
420
+
returnthis.send(command,optionsOrCb);
421
+
}
422
+
}
423
+
424
+
/**
425
+
* <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>
426
+
*
427
+
* <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>
428
+
*
378
429
* <note>
379
430
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
380
431
* </note>
@@ -409,7 +460,7 @@ export class SFN extends SFNClient {
409
460
}
410
461
411
462
/**
412
-
* <p>Describes the state machine associated with a specific execution.</p>
463
+
* <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>
413
464
* <note>
414
465
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
415
466
* </note>
@@ -568,7 +619,8 @@ export class SFN extends SFNClient {
568
619
}
569
620
570
621
/**
571
-
* <p>Lists the executions of a state machine that meet the filtering criteria. Results are
622
+
* <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>
623
+
* <p>Results are
572
624
* sorted by time, with the most recent execution first.</p>
573
625
* <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.
574
626
* 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>
@@ -606,6 +658,32 @@ export class SFN extends SFNClient {
606
658
}
607
659
}
608
660
661
+
/**
662
+
* <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>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
681
+
this.send(command,optionsOrCb||{},cb);
682
+
}else{
683
+
returnthis.send(command,optionsOrCb);
684
+
}
685
+
}
686
+
609
687
/**
610
688
* <p>Lists the existing state machines.</p>
611
689
* <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.
@@ -790,7 +868,10 @@ export class SFN extends SFNClient {
790
868
}
791
869
792
870
/**
793
-
* <p>Starts a state machine execution.</p>
871
+
* <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>
872
+
*
873
+
* <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>
874
+
*
794
875
* <note>
795
876
* <p>
796
877
* <code>StartExecution</code> is idempotent for <code>STANDARD</code> workflows. For a
@@ -971,12 +1052,46 @@ export class SFN extends SFNClient {
971
1052
}
972
1053
}
973
1054
1055
+
/**
1056
+
* <p>Updates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure.</p>
* <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
1092
+
*
1093
+
* <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>
1094
+
*
980
1095
* <note>
981
1096
* <p>All <code>StartExecution</code> calls within a few seconds will use the updated
982
1097
* <code>definition</code> and <code>roleArn</code>. Executions started immediately after
* <p>Deletes a state machine. This is an asynchronous operation: It sets the state machine's
33
33
* status to <code>DELETING</code> and begins the deletion process. </p>
34
+
*
35
+
* <p>If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.</p>
36
+
*
37
+
* <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>
38
+
*
34
39
* <note>
35
40
* <p>For <code>EXPRESS</code> state machines, the deletion will happen eventually (usually
36
41
* less than a minute). Running executions may emit logs after <code>DeleteStateMachine</code>
* <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>
33
33
* <note>
34
34
* <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
35
35
* </note>
36
-
* <p>This API action is not supported by <code>EXPRESS</code> state machines.</p>
36
+
* <p>This API action is not supported by <code>EXPRESS</code> state machine executions unless they were dispatched by a Map Run.</p>
37
37
* @example
38
38
* Use a bare-bones client and the command you need to make an API call.
0 commit comments