aws.stepfunctions.describe_execution
Example SQL Queries
SELECT * FROMaws.stepfunctions.describe_executionWHERE"execution_arn" = 'VALUE';Description
Provides information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata. If you've redriven an execution, you can use this API action to return information about the redrives of that execution. In addition, you can use this API action to return the Map Run Amazon Resource Name (ARN) if the execution was dispatched by a Map Run.
If you specify a version or alias ARN when you call the StartExecution API action, DescribeExecution returns that ARN.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
Executions of an EXPRESS state machine aren't supported by DescribeExecution unless a Map Run dispatched them.
Table Definition
| Column Name | Column Data Type |
|---|---|
| execution_arn Required Input Column The Amazon Resource Name (ARN) that identifies the execution. | VARCHAR |
| included_data Input Column If your state machine definition is encrypted with a KMS key, callers must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call DescribeStateMachine API with includedData = METADATA_ONLY to get a successful response without the encrypted definition. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| cause The cause string if the state machine execution failed. | VARCHAR |
| error The error string if the state machine execution failed. | VARCHAR |
| input The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding. | VARCHAR |
| input_details Provides details about execution input or output. | STRUCT( |
Show child fields
| |
| map_run_arn The Amazon Resource Name (ARN) that identifies a Map Run, which dispatched this execution. | VARCHAR |
| name The name of the execution. A name must not contain:
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. | VARCHAR |
| output The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding. This field is set only if the execution succeeds. If the execution fails, this field is null. | VARCHAR |
| output_details Provides details about execution input or output. | STRUCT( |
Show child fields
| |
| redrive_count The number of times you've redriven an execution. If you have not yet redriven an execution, the redriveCount is 0. This count is only updated if you successfully redrive an execution. | BIGINT |
| redrive_date The date the execution was last redriven. If you have not yet redriven an execution, the redriveDate is null. The redriveDate is unavailable if you redrive a Map Run that starts child workflow executions of type EXPRESS. | TIMESTAMP_S |
| redrive_status Indicates whether or not an execution can be redriven at a given point in time.
| VARCHAR |
| redrive_status_reason When redriveStatus is NOT_REDRIVABLE, redriveStatusReason specifies the reason why an execution cannot be redriven.
| VARCHAR |
| start_date The date the execution is started. | TIMESTAMP_S |
| state_machine_alias_arn The Amazon Resource Name (ARN) of the state machine alias associated with the execution. The alias ARN is a combination of state machine ARN and the alias name separated by a colon (:). For example, stateMachineARN:PROD. If you start an execution from a StartExecution request with a state machine version ARN, this field will be null. | VARCHAR |
| state_machine_arn The Amazon Resource Name (ARN) of the executed stated machine. | VARCHAR |
| state_machine_version_arn The Amazon Resource Name (ARN) of the state machine version associated with the execution. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example, stateMachineARN:1. If you start an execution from a StartExecution request without specifying a state machine version or alias ARN, Step Functions returns a null value. | VARCHAR |
| status The current status of the execution. | VARCHAR |
| stop_date If the execution ended, the date the execution stopped. | TIMESTAMP_S |
| trace_header The X-Ray trace header that was passed to the execution. | VARCHAR |