Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_error :: Lens' SendTaskFailure (Maybe Text)
- sendTaskFailure_cause :: 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.
SendTaskFailure' | |
|
Instances
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:
$sel:error:SendTaskFailure'
, sendTaskFailure_error
- The error code of the failure.
$sel:cause:SendTaskFailure'
, sendTaskFailure_cause
- A more detailed explanation of the cause 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_error :: Lens' SendTaskFailure (Maybe Text) Source #
The error code of the failure.
sendTaskFailure_cause :: Lens' SendTaskFailure (Maybe Text) Source #
A more detailed explanation of the cause 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.
SendTaskFailureResponse' | |
|
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.