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

Methods

NameAccessible byRequired Params
create_resourceINSERTFlowName, Tasks, SourceFlowConfig, DestinationFlowConfigList, TriggerConfig, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all flows in a region.

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 aws.appflow.flows
WHERE region = 'us-east-1';

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 aws.appflow.flows
WHERE region = 'us-east-1' AND data__Identifier = '<FlowName>';

INSERT example

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

/*+ create */
INSERT INTO aws.appflow.flows (
FlowName,
TriggerConfig,
SourceFlowConfig,
DestinationFlowConfigList,
Tasks,
region
)
SELECT
'{{ FlowName }}',
'{{ TriggerConfig }}',
'{{ SourceFlowConfig }}',
'{{ DestinationFlowConfigList }}',
'{{ Tasks }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.appflow.flows
WHERE data__Identifier = '<FlowName>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

appflow:DescribeFlow,
appflow:ListTagsForResource

Update

appflow:UpdateFlow,
appflow:StartFlow,
appflow:StopFlow,
appflow:TagResource,
appflow:UntagResource,
appflow:ListTagsForResource,
appflow:UseConnectorProfile,
iam:PassRole,
s3:ListAllMyBuckets,
s3:GetBucketLocation,
s3:GetBucketPolicy,
kms:ListGrants,
secretsmanager:CreateSecret,
secretsmanager:PutResourcePolicy

Delete

appflow:DeleteFlow

List

appflow:ListFlows