Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idaws.customer_profiles.workflows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectAttributes provided for workflow execution.
error_descriptionstringWorkflow error messages during execution (if any).
last_updated_atstring (date-time)The timestamp that represents when workflow execution last updated.
metricsobjectWorkflow specific execution metrics.
start_datestring (date-time)The timestamp that represents when workflow execution started.
statusstringStatus of workflow execution. (NOT_STARTED, IN_PROGRESS, COMPLETE, FAILED, SPLIT, RETRY, CANCELLED)
workflow_idstringUnique identifier for the workflow. (pattern: <code>[a-f0-9]{32}</code>)
workflow_typestringThe type of workflow. The only supported value is APPFLOW_INTEGRATION. (APPFLOW_INTEGRATION)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflowselectdomain_name, workflow_id, regionGet details of specified workflow.
list_workflowsselectdomain_name, regionnext-token, max-resultsQuery to list all workflows.
create_integration_workflowinsertdomain_name, region, WorkflowType, IntegrationConfig, ObjectTypeName, RoleArnCreates an integration workflow. An integration workflow is an async process which ingests historic data and sets up an integration for ongoing updates. The supported Amazon AppFlow sources are Salesforce, ServiceNow, and Marketo.
delete_workflowdeletedomain_name, workflow_id, regionDeletes the specified workflow and all its corresponding resources. This is an async process.

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
domain_namestringThe unique name of the domain.
regionstringAWS region (default: us-east-1)
workflow_idstringUnique identifier for the workflow.
max-resultsintegerThe maximum number of results to return per page.
next-tokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Get details of specified workflow.

SELECT
attributes,
error_description,
last_updated_at,
metrics,
start_date,
status,
workflow_id,
workflow_type
FROM aws.customer_profiles.workflows
WHERE domain_name = '{{ domain_name }}' -- required
AND workflow_id = '{{ workflow_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an integration workflow. An integration workflow is an async process which ingests historic data and sets up an integration for ongoing updates. The supported Amazon AppFlow sources are Salesforce, ServiceNow, and Marketo.

INSERT INTO aws.customer_profiles.workflows (
WorkflowType,
IntegrationConfig,
ObjectTypeName,
RoleArn,
Tags,
domain_name,
region
)
SELECT
'{{ WorkflowType }}' /* required */,
'{{ IntegrationConfig }}' /* required */,
'{{ ObjectTypeName }}' /* required */,
'{{ RoleArn }}' /* required */,
'{{ Tags }}',
'{{ domain_name }}',
'{{ region }}'
RETURNING
message,
workflow_id
;

DELETE examples

Deletes the specified workflow and all its corresponding resources. This is an async process.

DELETE FROM aws.customer_profiles.workflows
WHERE domain_name = '{{ domain_name }}' --required
AND workflow_id = '{{ workflow_id }}' --required
AND region = '{{ region }}' --required
;