v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1426173136.4 KB

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.

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

This API action is not supported by EXPRESS state machines.

post/#X-Amz-Target=AWSStepFunctions.DescribeStateMachineForExecution

Headers

X-Amz-Target'AWSStepFunctions.DescribeStateMachineForExecution' required

Request body

executionArnstring required

The Amazon Resource Name (ARN) of the execution you want state machine information for.

Response

Success

stateMachineArnstring required

The Amazon Resource Name (ARN) of the state machine associated with the execution.

namestring required

The name of the state machine associated with the execution.

definitionstring password required

The Amazon States Language definition of the state machine. See <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon States Language</a>.

roleArnstring required

The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.

updateDatestring date-time required

The date and time the state machine associated with an execution was updated. For a newly created state machine, this is the creation date.

mapRunArnstring

The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned only if the <code>executionArn</code> is a child workflow execution that was started by a Distributed Map state.

labelstring

A user-defined or an auto-generated string that identifies a <code>Map</code> state. This field is returned only if the <code>executionArn</code> is a child workflow execution that was started by a Distributed Map state.