| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.StepFunctions.SendTaskFailure
Description
Used by workers to report that the task identified by the taskToken failed.
Synopsis
- sendTaskFailure :: Text -> SendTaskFailure
- data SendTaskFailure
- stfError :: Lens' SendTaskFailure (Maybe Text)
- stfCause :: Lens' SendTaskFailure (Maybe Text)
- stfTaskToken :: Lens' SendTaskFailure Text
- sendTaskFailureResponse :: Int -> SendTaskFailureResponse
- data SendTaskFailureResponse
- stfrsResponseStatus :: Lens' SendTaskFailureResponse Int
Creating a Request
Arguments
| :: Text | |
| -> SendTaskFailure |
Creates a value of SendTaskFailure with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
stfError- An arbitrary error code that identifies the cause of the failure.stfCause- A more detailed explanation of the cause of the failure.stfTaskToken- The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTask::taskToken).
data SendTaskFailure Source #
See: sendTaskFailure smart constructor.
Instances
Request Lenses
stfError :: Lens' SendTaskFailure (Maybe Text) Source #
An arbitrary error code that identifies the cause of the failure.
stfCause :: Lens' SendTaskFailure (Maybe Text) Source #
A more detailed explanation of the cause of the failure.
stfTaskToken :: Lens' SendTaskFailure Text Source #
The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTask::taskToken).
Destructuring the Response
sendTaskFailureResponse Source #
Arguments
| :: Int | |
| -> SendTaskFailureResponse |
Creates a value of SendTaskFailureResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
stfrsResponseStatus- -- | The response status code.
data SendTaskFailureResponse Source #
See: sendTaskFailureResponse smart constructor.
Instances
Response Lenses
stfrsResponseStatus :: Lens' SendTaskFailureResponse Int Source #
- - | The response status code.