Skip to main content

workflows

Creates, updates, deletes, gets or lists a workflows resource.

Overview

Nameworkflows
TypeResource
Idaws.transfer.workflows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringSpecifies the unique Amazon Resource Name (ARN) for the workflow. (pattern: <code>arn:\S+</code>)
descriptionstringSpecifies the text description for the workflow. (pattern: <code>[\w- ]*</code>)
on_exception_stepsarraySpecifies the steps (actions) to take if errors are encountered during execution of the workflow.
stepsarraySpecifies the details for the steps that are in the specified workflow.
tagsarrayKey-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
workflow_idstringA unique identifier for the workflow. (pattern: <code>w-([a-z0-9]{17})</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_workflowselectregionDescribes the specified workflow.
list_workflowsselectregionLists all workflows associated with your Amazon Web Services account for your current region.
create_workflowinsertregion, StepsAllows 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.
delete_workflowdeleteregionDeletes the specified workflow.
send_workflow_step_stateexecregion, WorkflowId, ExecutionId, Token, StatusSends 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the specified workflow.

SELECT
arn,
description,
on_exception_steps,
steps,
tags,
workflow_id
FROM aws.transfer.workflows
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.transfer.workflows (
Description,
Steps,
OnExceptionSteps,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ Steps }}' /* required */,
'{{ OnExceptionSteps }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
workflow_id
;

DELETE examples

Deletes the specified workflow.

DELETE FROM aws.transfer.workflows
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

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.

EXEC aws.transfer.workflows.send_workflow_step_state
@region='{{ region }}' --required
@@json=
'{
"WorkflowId": "{{ WorkflowId }}",
"ExecutionId": "{{ ExecutionId }}",
"Token": "{{ Token }}",
"Status": "{{ Status }}"
}'
;