Skip to main content

workflows

Creates, updates, deletes or gets a workflow resource or lists workflows in a region

Overview

Nameworkflows
TypeResource
DescriptionResource Type definition for AWS::Transfer::Workflow
Idaws.transfer.workflows

Fields

NameDatatypeDescription
on_exception_stepsarraySpecifies the steps (actions) to take if any 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.
descriptionstringA textual description for the workflow.
workflow_idstringA unique identifier for the workflow.
arnstringSpecifies the unique Amazon Resource Name (ARN) for the workflow.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSteps, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all workflows in a region.

SELECT
region,
on_exception_steps,
steps,
tags,
description,
workflow_id,
arn
FROM aws.transfer.workflows
WHERE region = 'us-east-1';

Gets all properties from an individual workflow.

SELECT
region,
on_exception_steps,
steps,
tags,
description,
workflow_id,
arn
FROM aws.transfer.workflows
WHERE region = 'us-east-1' AND data__Identifier = '<WorkflowId>';

INSERT example

Use the following StackQL query and manifest file to create a new workflow resource, using stack-deploy.

/*+ create */
INSERT INTO aws.transfer.workflows (
Steps,
region
)
SELECT
'{{ Steps }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.transfer.workflows
WHERE data__Identifier = '<WorkflowId>'
AND region = 'us-east-1';

Permissions

To operate on the workflows resource, the following permissions are required:

Create

transfer:CreateWorkflow,
transfer:TagResource

Read

transfer:DescribeWorkflow

Delete

transfer:DeleteWorkflow

List

transfer:ListWorkflows

Update

transfer:UnTagResource,
transfer:TagResource