| 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.Transfer.SendWorkflowStepState
Description
Sends a callback for asynchronous custom steps.
The ExecutionId, WorkflowId, and Token are passed to the target
resource during execution of a custom step of a workflow. You must
include those with their callback as well as providing a status.
Synopsis
- data SendWorkflowStepState = SendWorkflowStepState' {
- workflowId :: Text
- executionId :: Text
- token :: Text
- status :: CustomStepStatus
- newSendWorkflowStepState :: Text -> Text -> Text -> CustomStepStatus -> SendWorkflowStepState
- sendWorkflowStepState_workflowId :: Lens' SendWorkflowStepState Text
- sendWorkflowStepState_executionId :: Lens' SendWorkflowStepState Text
- sendWorkflowStepState_token :: Lens' SendWorkflowStepState Text
- sendWorkflowStepState_status :: Lens' SendWorkflowStepState CustomStepStatus
- data SendWorkflowStepStateResponse = SendWorkflowStepStateResponse' {
- httpStatus :: Int
- newSendWorkflowStepStateResponse :: Int -> SendWorkflowStepStateResponse
- sendWorkflowStepStateResponse_httpStatus :: Lens' SendWorkflowStepStateResponse Int
Creating a Request
data SendWorkflowStepState Source #
See: newSendWorkflowStepState smart constructor.
Constructors
| SendWorkflowStepState' | |
Fields
| |
Instances
newSendWorkflowStepState Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CustomStepStatus | |
| -> SendWorkflowStepState |
Create a value of SendWorkflowStepState 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:
SendWorkflowStepState, sendWorkflowStepState_workflowId - A unique identifier for the workflow.
SendWorkflowStepState, sendWorkflowStepState_executionId - A unique identifier for the execution of a workflow.
$sel:token:SendWorkflowStepState', sendWorkflowStepState_token - Used to distinguish between multiple callbacks for multiple Lambda steps
within the same execution.
SendWorkflowStepState, sendWorkflowStepState_status - Indicates whether the specified step succeeded or failed.
Request Lenses
sendWorkflowStepState_workflowId :: Lens' SendWorkflowStepState Text Source #
A unique identifier for the workflow.
sendWorkflowStepState_executionId :: Lens' SendWorkflowStepState Text Source #
A unique identifier for the execution of a workflow.
sendWorkflowStepState_token :: Lens' SendWorkflowStepState Text Source #
Used to distinguish between multiple callbacks for multiple Lambda steps within the same execution.
sendWorkflowStepState_status :: Lens' SendWorkflowStepState CustomStepStatus Source #
Indicates whether the specified step succeeded or failed.
Destructuring the Response
data SendWorkflowStepStateResponse Source #
See: newSendWorkflowStepStateResponse smart constructor.
Constructors
| SendWorkflowStepStateResponse' | |
Fields
| |
Instances
newSendWorkflowStepStateResponse Source #
Create a value of SendWorkflowStepStateResponse 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:SendWorkflowStepStateResponse', sendWorkflowStepStateResponse_httpStatus - The response's http status code.
Response Lenses
sendWorkflowStepStateResponse_httpStatus :: Lens' SendWorkflowStepStateResponse Int Source #
The response's http status code.