| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.StepFunctions.SendTaskFailure
Description
Used by activity workers and task states using the
callback
pattern to report that the task identified by the taskToken failed.
Synopsis
- data SendTaskFailure = SendTaskFailure' {}
- newSendTaskFailure :: Text -> SendTaskFailure
- sendTaskFailure_cause :: Lens' SendTaskFailure (Maybe Text)
- sendTaskFailure_error :: Lens' SendTaskFailure (Maybe Text)
- sendTaskFailure_taskToken :: Lens' SendTaskFailure Text
- data SendTaskFailureResponse = SendTaskFailureResponse' {
- httpStatus :: Int
- newSendTaskFailureResponse :: Int -> SendTaskFailureResponse
- sendTaskFailureResponse_httpStatus :: Lens' SendTaskFailureResponse Int
Creating a Request
data SendTaskFailure Source #
See: newSendTaskFailure smart constructor.
Constructors
| SendTaskFailure' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SendTaskFailure |
Create a value of SendTaskFailure with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
SendTaskFailure, sendTaskFailure_cause - A more detailed explanation of the cause of the failure.
SendTaskFailure, sendTaskFailure_error - The error code of the failure.
$sel:taskToken:SendTaskFailure', sendTaskFailure_taskToken - The token that represents this task. Task tokens are generated by Step
Functions when tasks are assigned to a worker, or in the
context object
when a workflow enters a task state. See
GetActivityTaskOutput$taskToken.
Request Lenses
sendTaskFailure_cause :: Lens' SendTaskFailure (Maybe Text) Source #
A more detailed explanation of the cause of the failure.
sendTaskFailure_error :: Lens' SendTaskFailure (Maybe Text) Source #
The error code of the failure.
sendTaskFailure_taskToken :: Lens' SendTaskFailure Text Source #
The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
Destructuring the Response
data SendTaskFailureResponse Source #
See: newSendTaskFailureResponse smart constructor.
Constructors
| SendTaskFailureResponse' | |
Fields
| |
Instances
newSendTaskFailureResponse Source #
Create a value of SendTaskFailureResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:SendTaskFailureResponse', sendTaskFailureResponse_httpStatus - The response's http status code.
Response Lenses
sendTaskFailureResponse_httpStatus :: Lens' SendTaskFailureResponse Int Source #
The response's http status code.