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
completed
successfully.
Synopsis
- data SendTaskSuccess = SendTaskSuccess' {}
- newSendTaskSuccess :: Text -> Text -> SendTaskSuccess
- sendTaskSuccess_taskToken :: Lens' SendTaskSuccess Text
- sendTaskSuccess_output :: Lens' SendTaskSuccess Text
- data SendTaskSuccessResponse = SendTaskSuccessResponse' {
- httpStatus :: Int
- newSendTaskSuccessResponse :: Int -> SendTaskSuccessResponse
- sendTaskSuccessResponse_httpStatus :: Lens' SendTaskSuccessResponse Int
Creating a Request
data SendTaskSuccess Source #
See: newSendTaskSuccess
smart constructor.
SendTaskSuccess' | |
|
Instances
Create a value of SendTaskSuccess
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:taskToken:SendTaskSuccess'
, sendTaskSuccess_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.
$sel:output:SendTaskSuccess'
, sendTaskSuccess_output
- The JSON output of the task. Length constraints apply to the payload
size, and are expressed as bytes in UTF-8 encoding.
Request Lenses
sendTaskSuccess_taskToken :: Lens' SendTaskSuccess 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.
sendTaskSuccess_output :: Lens' SendTaskSuccess Text Source #
The JSON output of the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
Destructuring the Response
data SendTaskSuccessResponse Source #
See: newSendTaskSuccessResponse
smart constructor.
SendTaskSuccessResponse' | |
|
Instances
newSendTaskSuccessResponse Source #
Create a value of SendTaskSuccessResponse
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:SendTaskSuccessResponse'
, sendTaskSuccessResponse_httpStatus
- The response's http status code.
Response Lenses
sendTaskSuccessResponse_httpStatus :: Lens' SendTaskSuccessResponse Int Source #
The response's http status code.