[stepfunctions] Results of DescribeExecution inaccurate for differ execution statuses #321
Labels
🐞 bug
Something isn't working
🎉 released
Changes were included to the latest release
👋 response needed
Awaiting response from a reporter
The response of DescribeExecution in AWS Step Functions can vary based on the status of the given execution.
The current output type
DescribeExecutionOutputTypeDef
(forSFN.Client.describe_execution
) specifies all items as required which is partly contradictory.Example query and potential responses
For status
RUNNING
For status
SUCCEEDED
For status
FAILED
For status
TIMED_OUT
For status
ABORTED
And there is also status
PENDING_REDRIVE
for which I don't have an example.Resolution
It would be great if this builder could produce a union of narrowed variants although it may be difficult to account for all possible scenarios. Otherwise, marking certain fields as
NotRequired
would suffice. Specifically, it appearsstopDate
,output
,outputDetails
,error
,cause
,traceHeader
, andredriveStatusReason
are all possibly not included in the response along withmapRunArn
,redriveDate
,stateMachineAliasArn
, andstateMachineVersionArn
.Additional context
Referencing mypy-boto3-stepfunctions v1.35.46
The text was updated successfully, but these errors were encountered: