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
Idawscc.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.

For more information, see AWS::Transfer::Workflow.

Methods

NameResourceAccessible byRequired Params
create_resourceworkflowsINSERTSteps, region
delete_resourceworkflowsDELETEIdentifier, region
update_resourceworkflowsUPDATEIdentifier, PatchDocument, region
list_resourcesworkflows_list_onlySELECTregion
get_resourceworkflowsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual workflow.

SELECT
region,
on_exception_steps,
steps,
tags,
description,
workflow_id,
arn
FROM awscc.transfer.workflows
WHERE
region = 'us-east-1' AND
Identifier = '{{ workflow_id }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.transfer.workflows
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ workflow_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.transfer.workflows
WHERE
Identifier = '{{ workflow_id }}' AND
region = 'us-east-1';

Permissions

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

transfer:CreateWorkflow,
transfer:TagResource