libZSservicesZSamazonka-transferZSamazonka-transfer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data CreateWorkflow Source #

See: newCreateWorkflow smart constructor.

Constructors

CreateWorkflow' 

Fields

  • onExceptionSteps :: Maybe [WorkflowStep]

    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.

  • description :: Maybe Text

    A textual description for the workflow.

  • tags :: Maybe (NonEmpty Tag)

    Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.

  • steps :: [WorkflowStep]

    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.

Instances

Instances details
Eq CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Read CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Show CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Generic CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Associated Types

type Rep CreateWorkflow :: Type -> Type #

NFData CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Methods

rnf :: CreateWorkflow -> () #

Hashable CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

ToJSON CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

AWSRequest CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Associated Types

type AWSResponse CreateWorkflow #

ToHeaders CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

ToPath CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

ToQuery CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

type Rep CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

type Rep CreateWorkflow = D1 ('MetaData "CreateWorkflow" "Amazonka.Transfer.CreateWorkflow" "libZSservicesZSamazonka-transferZSamazonka-transfer" 'False) (C1 ('MetaCons "CreateWorkflow'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "onExceptionSteps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [WorkflowStep])) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: S1 ('MetaSel ('Just "steps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [WorkflowStep]))))
type AWSResponse CreateWorkflow Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

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.

Constructors

CreateWorkflowResponse' 

Fields

Instances

Instances details
Eq CreateWorkflowResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Read CreateWorkflowResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Show CreateWorkflowResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Generic CreateWorkflowResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Associated Types

type Rep CreateWorkflowResponse :: Type -> Type #

NFData CreateWorkflowResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

Methods

rnf :: CreateWorkflowResponse -> () #

type Rep CreateWorkflowResponse Source # 
Instance details

Defined in Amazonka.Transfer.CreateWorkflow

type Rep CreateWorkflowResponse = D1 ('MetaData "CreateWorkflowResponse" "Amazonka.Transfer.CreateWorkflow" "libZSservicesZSamazonka-transferZSamazonka-transfer" 'False) (C1 ('MetaCons "CreateWorkflowResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "workflowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateWorkflowResponse Source #

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