Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idaws.glue.workflows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
missing_workflowsarrayA list of names of workflows not found.
workflowsarrayA list of workflow resource metadata.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_workflowsselectregionReturns a list of resource metadata for a given list of workflow names. After calling the ListWorkflows operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.
get_workflowselectregionRetrieves resource metadata for a workflow.
create_workflowinsertregionCreates a new workflow.
update_workflowupdateregionUpdates an existing workflow.
delete_workflowdeleteregionDeletes a workflow.
list_workflowsexecregionLists names of workflows created in the account.
resume_workflow_runexecregion, RunId, NodeIdsRestarts selected nodes of a previous partially completed workflow run and resumes the workflow run. The selected nodes and all nodes that are downstream from the selected nodes are run.
start_workflow_runexecregionStarts a new run of the specified workflow.
stop_workflow_runexecregion, RunIdStops the execution of the specified workflow run.

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

Returns a list of resource metadata for a given list of workflow names. After calling the ListWorkflows operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

SELECT
missing_workflows,
workflows
FROM aws.glue.workflows
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new workflow.

INSERT INTO aws.glue.workflows (
Name,
Description,
DefaultRunProperties,
Tags,
MaxConcurrentRuns,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ DefaultRunProperties }}',
'{{ Tags }}',
{{ MaxConcurrentRuns }},
'{{ region }}'
RETURNING
name
;

UPDATE examples

Updates an existing workflow.

UPDATE aws.glue.workflows
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
DefaultRunProperties = '{{ DefaultRunProperties }}',
MaxConcurrentRuns = {{ MaxConcurrentRuns }}
WHERE
region = '{{ region }}' --required
RETURNING
name;

DELETE examples

Deletes a workflow.

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

Lifecycle Methods

Lists names of workflows created in the account.

EXEC aws.glue.workflows.list_workflows
@region='{{ region }}' --required
@@json=
'{
"NextToken": "{{ NextToken }}",
"MaxResults": {{ MaxResults }}
}'
;