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 |
Allows you to create a workflow with specified steps and step details
the workflow invokes after file transfer completes. After creating a
workflow, you can associate the workflow created with any transfer
servers by specifying the workflow-details
field in CreateServer
and
UpdateServer
operations.
Synopsis
- data CreateWorkflow = CreateWorkflow' {
- onExceptionSteps :: Maybe [WorkflowStep]
- description :: Maybe Text
- tags :: Maybe (NonEmpty Tag)
- steps :: [WorkflowStep]
- newCreateWorkflow :: CreateWorkflow
- createWorkflow_onExceptionSteps :: Lens' CreateWorkflow (Maybe [WorkflowStep])
- createWorkflow_description :: Lens' CreateWorkflow (Maybe Text)
- createWorkflow_tags :: Lens' CreateWorkflow (Maybe (NonEmpty Tag))
- createWorkflow_steps :: Lens' CreateWorkflow [WorkflowStep]
- data CreateWorkflowResponse = CreateWorkflowResponse' {
- httpStatus :: Int
- workflowId :: Text
- newCreateWorkflowResponse :: Int -> Text -> CreateWorkflowResponse
- createWorkflowResponse_httpStatus :: Lens' CreateWorkflowResponse Int
- createWorkflowResponse_workflowId :: Lens' CreateWorkflowResponse Text
Creating a Request
data CreateWorkflow Source #
See: newCreateWorkflow
smart constructor.
CreateWorkflow' | |
|
Instances
newCreateWorkflow :: CreateWorkflow Source #
Create a value of CreateWorkflow
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:onExceptionSteps:CreateWorkflow'
, createWorkflow_onExceptionSteps
- Specifies the steps (actions) to take if errors are encountered during
execution of the workflow.
For custom steps, the lambda function needs to send FAILURE
to the
call back API to kick off the exception steps. Additionally, if the
lambda does not send SUCCESS
before it times out, the exception steps
are executed.
$sel:description:CreateWorkflow'
, createWorkflow_description
- A textual description for the workflow.
$sel:tags:CreateWorkflow'
, createWorkflow_tags
- Key-value pairs that can be used to group and search for workflows. Tags
are metadata attached to workflows for any purpose.
$sel:steps:CreateWorkflow'
, createWorkflow_steps
- Specifies the details for the steps that are in the specified workflow.
The TYPE
specifies which of the following actions is being taken for
this step.
- Copy: copy the file to another location
- Custom: custom step with a lambda target
- Delete: delete the file
- Tag: add a tag to the file
Currently, copying and tagging are supported only on S3.
For file location, you specify either the S3 bucket and key, or the EFS filesystem ID and path.
Request Lenses
createWorkflow_onExceptionSteps :: Lens' CreateWorkflow (Maybe [WorkflowStep]) Source #
Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
For custom steps, the lambda function needs to send FAILURE
to the
call back API to kick off the exception steps. Additionally, if the
lambda does not send SUCCESS
before it times out, the exception steps
are executed.
createWorkflow_description :: Lens' CreateWorkflow (Maybe Text) Source #
A textual description for the workflow.
createWorkflow_tags :: Lens' CreateWorkflow (Maybe (NonEmpty Tag)) Source #
Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
createWorkflow_steps :: Lens' CreateWorkflow [WorkflowStep] Source #
Specifies the details for the steps that are in the specified workflow.
The TYPE
specifies which of the following actions is being taken for
this step.
- Copy: copy the file to another location
- Custom: custom step with a lambda target
- Delete: delete the file
- Tag: add a tag to the file
Currently, copying and tagging are supported only on S3.
For file location, you specify either the S3 bucket and key, or the EFS filesystem ID and path.
Destructuring the Response
data CreateWorkflowResponse Source #
See: newCreateWorkflowResponse
smart constructor.
CreateWorkflowResponse' | |
|
Instances
newCreateWorkflowResponse Source #
:: Int | |
-> Text | |
-> CreateWorkflowResponse |
Create a value of CreateWorkflowResponse
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:CreateWorkflowResponse'
, createWorkflowResponse_httpStatus
- The response's http status code.
$sel:workflowId:CreateWorkflowResponse'
, createWorkflowResponse_workflowId
- A unique identifier for the workflow.
Response Lenses
createWorkflowResponse_httpStatus :: Lens' CreateWorkflowResponse Int Source #
The response's http status code.
createWorkflowResponse_workflowId :: Lens' CreateWorkflowResponse Text Source #
A unique identifier for the workflow.