describe_state_machine_for_execution
async
¶
describe_state_machine_for_execution(
execution_arn: Arn,
*,
config_overrides: Optional[AsyncSFNClientConfig] = None,
included_data: Optional[IncludedData] = None,
) -> DescribeStateMachineForExecutionOutput
Provides information about a state machine's definition, its execution role ARN, and configuration. If a Map Run dispatched the execution, this action returns the Map Run Amazon Resource Name (ARN) in the response. The state machine returned is 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.
Parameters:
-
execution_arn(Arn) –The Amazon Resource Name (ARN) of the execution you want state machine information for.
-
included_data(Optional[IncludedData], default:None) –If your state machine definition is encrypted with a KMS key, callers must have
kms:Decryptpermission to decrypt the definition. Alternatively, you can call the API withincludedData = METADATA_ONLYto get a successful response without the encrypted definition.
Raises:
-
ExecutionDoesNotExist–The specified execution does not exist.
-
InvalidArn–The provided Amazon Resource Name (ARN) is not valid.
-
KmsAccessDeniedException–Either your KMS key policy or API caller does not have the required permissions.
-
KmsInvalidStateException–The KMS key is not in valid state, for example: Disabled or Deleted.
-
KmsThrottlingException–Received when KMS returns
ThrottlingExceptionfor a KMS call that Step Functions makes on behalf of the caller. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sfn/_services/async_sfn.py
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 | |