Smaws_Client_SFN.SendTaskFailure
Used by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken
failed.
For an execution with encryption enabled, Step Functions will encrypt the error and cause fields using the KMS key for the execution role.
A caller can mark a task as fail without using any KMS permissions in the execution role if the caller provides a null value for both error
and cause
fields because no data needs to be encrypted.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidToken of Types.invalid_token
| `KmsAccessDeniedException of Types.kms_access_denied_exception
| `KmsInvalidStateException of Types.kms_invalid_state_exception
| `KmsThrottlingException of Types.kms_throttling_exception
| `TaskDoesNotExist of Types.task_does_not_exist
| `TaskTimedOut of Types.task_timed_out ] ->
string
val request :
'http_type Smaws_Lib.Context.t ->
Types.send_task_failure_input ->
(Types.send_task_failure_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidToken of Types.invalid_token
| `KmsAccessDeniedException of Types.kms_access_denied_exception
| `KmsInvalidStateException of Types.kms_invalid_state_exception
| `KmsThrottlingException of Types.kms_throttling_exception
| `TaskDoesNotExist of Types.task_does_not_exist
| `TaskTimedOut of Types.task_timed_out ])
Stdlib.result