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 |
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.
SendWorkflowStepState' | |
|
Instances
newSendWorkflowStepState Source #
:: 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:
$sel:workflowId:SendWorkflowStepState'
, sendWorkflowStepState_workflowId
- A unique identifier for the workflow.
$sel:executionId: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.
$sel:status: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.
SendWorkflowStepStateResponse' | |
|
Instances
Eq SendWorkflowStepStateResponse Source # | |
Read SendWorkflowStepStateResponse Source # | |
Show SendWorkflowStepStateResponse Source # | |
Defined in Amazonka.Transfer.SendWorkflowStepState showsPrec :: Int -> SendWorkflowStepStateResponse -> ShowS # show :: SendWorkflowStepStateResponse -> String # showList :: [SendWorkflowStepStateResponse] -> ShowS # | |
Generic SendWorkflowStepStateResponse Source # | |
NFData SendWorkflowStepStateResponse Source # | |
Defined in Amazonka.Transfer.SendWorkflowStepState rnf :: SendWorkflowStepStateResponse -> () # | |
type Rep SendWorkflowStepStateResponse Source # | |
Defined in Amazonka.Transfer.SendWorkflowStepState type Rep SendWorkflowStepStateResponse = D1 ('MetaData "SendWorkflowStepStateResponse" "Amazonka.Transfer.SendWorkflowStepState" "libZSservicesZSamazonka-transferZSamazonka-transfer" 'False) (C1 ('MetaCons "SendWorkflowStepStateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.