Module Values.SendTaskFailureOutputSource

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.

Sourcetype nonrec t = unit
Sourcetype nonrec error = [
  1. | `InvalidToken of InvalidToken.t
  2. | `KmsAccessDeniedException of KmsAccessDeniedException.t
  3. | `KmsInvalidStateException of KmsInvalidStateException.t
  4. | `KmsThrottlingException of KmsThrottlingException.t
  5. | `TaskDoesNotExist of TaskDoesNotExist.t
  6. | `TaskTimedOut of TaskTimedOut.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : unit -> unit
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidToken of InvalidToken.t | `KmsAccessDeniedException of KmsAccessDeniedException.t | `KmsInvalidStateException of KmsInvalidStateException.t | `KmsThrottlingException of KmsThrottlingException.t | `TaskDoesNotExist of TaskDoesNotExist.t | `TaskTimedOut of TaskTimedOut.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidToken of InvalidToken.t | `KmsAccessDeniedException of KmsAccessDeniedException.t | `KmsInvalidStateException of KmsInvalidStateException.t | `KmsThrottlingException of KmsThrottlingException.t | `TaskDoesNotExist of TaskDoesNotExist.t | `TaskTimedOut of TaskTimedOut.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval of_header_and_body : ('a * 'b) -> unit
Sourceval to_value : 'a -> [> `Structure of 'b list ]
Sourceval to_query : 'a -> Awso.Client.Query.t
Sourceval of_xml : 'a -> unit
Sourceval of_string : string -> unit
Sourceval of_json : 'a -> unit
Sourceval to_json : 'a -> Yojson.Safe.t