Values.TestStateOutputSourceAccepts 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: A state's input and output processing data flow An Amazon Web Services service integration request and response An HTTP Task request and response You can call this API on only one state at a time. The states that you can test include the following: All Task types except Activity Pass Wait Choice Succeed Fail 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 only supports the following when a mock is specified: Activity tasks, .sync or .waitForTaskToken service integration patterns, Parallel, or Map states.
type nonrec t = {output : SensitiveData.t option;The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
*)error : SensitiveError.t option;The error returned when the execution of a state fails.
*)cause : SensitiveCause.t option;A detailed explanation of the cause for the error when the execution of a state fails.
*)inspectionData : InspectionData.t option;Returns additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information. The inspectionLevel request parameter specifies which details are returned.
*)nextState : StateName.t option;The name of the next state to transition to. If you haven't defined a next state in your definition or if the execution of the state fails, this field doesn't contain a value.
*)status : TestExecutionStatus.t option;The execution status of the state.
*)}type nonrec error = [ | `InvalidArn of InvalidArn.t| `InvalidDefinition of InvalidDefinition.t| `InvalidExecutionInput of InvalidExecutionInput.t| `ValidationException of ValidationException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InvalidArn of InvalidArn.t
| `InvalidDefinition of InvalidDefinition.t
| `InvalidExecutionInput of InvalidExecutionInput.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InvalidArn of InvalidArn.t
| `InvalidDefinition of InvalidDefinition.t
| `InvalidExecutionInput of InvalidExecutionInput.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `String of SensitiveData.t
| `Structure of
(string
* [> `Float of InspectionToleratedFailurePercentage.t
| `Integer of InspectionToleratedFailureCount.t
| `String of SensitiveData.t
| `Structure of
(string
* [> `Integer of ExceptionHandlerIndex.t
| `String of HTTPProtocol.t ])
list ])
list ])
list ]