Skip to main content

flows

Creates, updates, deletes or gets a flow resource or lists flows in a region

Overview

Nameflows
TypeResource
DescriptionResource schema for AWS::AppFlow::Flow.
Idawscc.appflow.flows

Fields

NameDatatypeDescription
flow_arnstringARN identifier of the flow.
flow_namestringName of the flow.
descriptionstringDescription of the flow.
kms_arnstringThe ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
trigger_configobjectTrigger settings of the flow.
flow_statusstringFlow activation status for Scheduled- and Event-triggered flows
source_flow_configobjectConfigurations of Source connector of the flow.
destination_flow_config_listarrayList of Destination connectors of the flow.
tasksarrayList of tasks for the flow.
tagsarrayList of Tags.
metadata_catalog_configobjectConfigurations of metadata catalog of the flow.
regionstringAWS region.

For more information, see AWS::AppFlow::Flow.

Methods

NameResourceAccessible byRequired Params
create_resourceflowsINSERTFlowName, Tasks, SourceFlowConfig, DestinationFlowConfigList, TriggerConfig, region
delete_resourceflowsDELETEIdentifier, region
update_resourceflowsUPDATEIdentifier, PatchDocument, region
list_resourcesflows_list_onlySELECTregion
get_resourceflowsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual flow.

SELECT
region,
flow_arn,
flow_name,
description,
kms_arn,
trigger_config,
flow_status,
source_flow_config,
destination_flow_config_list,
tasks,
tags,
metadata_catalog_config
FROM awscc.appflow.flows
WHERE
region = 'us-east-1' AND
Identifier = '{{ flow_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.appflow.flows (
FlowName,
TriggerConfig,
SourceFlowConfig,
DestinationFlowConfigList,
Tasks,
region
)
SELECT
'{{ flow_name }}',
'{{ trigger_config }}',
'{{ source_flow_config }}',
'{{ destination_flow_config_list }}',
'{{ tasks }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.appflow.flows
SET PatchDocument = string('{{ {
"Description": description,
"TriggerConfig": trigger_config,
"FlowStatus": flow_status,
"SourceFlowConfig": source_flow_config,
"DestinationFlowConfigList": destination_flow_config_list,
"Tasks": tasks,
"Tags": tags,
"MetadataCatalogConfig": metadata_catalog_config
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ flow_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.appflow.flows
WHERE
Identifier = '{{ flow_name }}' AND
region = 'us-east-1';

Permissions

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

appflow:CreateFlow,
appflow:StartFlow,
appflow:TagResource,
appflow:ListTagsForResource,
appflow:UseConnectorProfile,
iam:PassRole,
s3:ListAllMyBuckets,
s3:GetBucketLocation,
s3:GetBucketPolicy,
kms:ListGrants,
kms:ListKeys,
kms:DescribeKey,
kms:ListAliases,
kms:CreateGrant,
secretsmanager:CreateSecret,
secretsmanager:PutResourcePolicy