Smaws_Client_SFN.TestState
val request :
Smaws_Lib.Context.t ->
test_state_input ->
(test_state_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidArn of invalid_arn
| `InvalidDefinition of invalid_definition
| `InvalidExecutionInput of invalid_execution_input
| `ValidationException of validation_exception ])
Stdlib.result
Accepts the definition of a single state and executes it. You can test a state without creating a state machine or updating an existing state machine. Using this API, you can test the following:
You can call this API on only one state at a time. The states that you can test include the following:
The TestState
API assumes an IAM role which must contain the required IAM permissions for the resources your state is accessing. For information about the permissions a state might need, see IAM permissions to test a state.
The TestState
API can run for up to five minutes. If the execution of a state exceeds this duration, it fails with the States.Timeout
error.
TestState
doesn't support Activity tasks, .sync
or .waitForTaskToken
service integration patterns, Parallel, or Map states.