| 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.CreateWorkflow
Description
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' {
- description :: Maybe Text
- onExceptionSteps :: Maybe [WorkflowStep]
- tags :: Maybe (NonEmpty Tag)
- steps :: [WorkflowStep]
- newCreateWorkflow :: CreateWorkflow
- createWorkflow_description :: Lens' CreateWorkflow (Maybe Text)
- createWorkflow_onExceptionSteps :: Lens' CreateWorkflow (Maybe [WorkflowStep])
- 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.
Constructors
| CreateWorkflow' | |
Fields
| |
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:
CreateWorkflow, createWorkflow_description - A textual description for the workflow.
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.
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.
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: Perform a custom step with an Lambda function 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 file system ID and path.
Request Lenses
createWorkflow_description :: Lens' CreateWorkflow (Maybe Text) Source #
A textual description for the workflow.
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_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: Perform a custom step with an Lambda function 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 file system ID and path.
Destructuring the Response
data CreateWorkflowResponse Source #
See: newCreateWorkflowResponse smart constructor.
Constructors
| CreateWorkflowResponse' | |
Fields
| |
Instances
newCreateWorkflowResponse Source #
Arguments
| :: 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.
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.