amazonka-transfer-2.0: Amazon Transfer Family SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Transfer.Types.WorkflowDetails

Description

 
Synopsis

Documentation

data WorkflowDetails Source #

Container for the WorkflowDetail data type. It is used by actions that trigger a workflow to begin execution.

See: newWorkflowDetails smart constructor.

Constructors

WorkflowDetails' 

Fields

  • onPartialUpload :: Maybe [WorkflowDetail]

    A trigger that starts a workflow if a file is only partially uploaded. You can attach a workflow to a server that executes whenever there is a partial upload.

    A partial upload occurs when a file is open when the session disconnects.

  • onUpload :: Maybe [WorkflowDetail]

    A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.

    To remove an associated workflow from a server, you can provide an empty OnUpload object, as in the following example.

    aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'

Instances

Instances details
FromJSON WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

ToJSON WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

Generic WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

Associated Types

type Rep WorkflowDetails :: Type -> Type #

Read WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

Show WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

NFData WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

Methods

rnf :: WorkflowDetails -> () #

Eq WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

Hashable WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

type Rep WorkflowDetails Source # 
Instance details

Defined in Amazonka.Transfer.Types.WorkflowDetails

type Rep WorkflowDetails = D1 ('MetaData "WorkflowDetails" "Amazonka.Transfer.Types.WorkflowDetails" "amazonka-transfer-2.0-JiqKYJwOo427yDlzvkXGLY" 'False) (C1 ('MetaCons "WorkflowDetails'" 'PrefixI 'True) (S1 ('MetaSel ('Just "onPartialUpload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [WorkflowDetail])) :*: S1 ('MetaSel ('Just "onUpload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [WorkflowDetail]))))

newWorkflowDetails :: WorkflowDetails Source #

Create a value of WorkflowDetails 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:onPartialUpload:WorkflowDetails', workflowDetails_onPartialUpload - A trigger that starts a workflow if a file is only partially uploaded. You can attach a workflow to a server that executes whenever there is a partial upload.

A partial upload occurs when a file is open when the session disconnects.

$sel:onUpload:WorkflowDetails', workflowDetails_onUpload - A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.

To remove an associated workflow from a server, you can provide an empty OnUpload object, as in the following example.

aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'

workflowDetails_onPartialUpload :: Lens' WorkflowDetails (Maybe [WorkflowDetail]) Source #

A trigger that starts a workflow if a file is only partially uploaded. You can attach a workflow to a server that executes whenever there is a partial upload.

A partial upload occurs when a file is open when the session disconnects.

workflowDetails_onUpload :: Lens' WorkflowDetails (Maybe [WorkflowDetail]) Source #

A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.

To remove an associated workflow from a server, you can provide an empty OnUpload object, as in the following example.

aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'