Skip to main content

contact_flows

Creates, updates, deletes or gets a contact_flow resource or lists contact_flows in a region

Overview

Namecontact_flows
TypeResource
DescriptionResource Type definition for AWS::Connect::ContactFlow
Idaws.connect.contact_flows

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance (ARN).
contact_flow_arnstringThe identifier of the contact flow (ARN).
namestringThe name of the contact flow.
contentstringThe content of the contact flow in JSON format.
descriptionstringThe description of the contact flow.
statestringThe state of the contact flow.
typestringThe type of the contact flow.
tagsarrayOne or more tags.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, Content, Name, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all contact_flows in a region.

SELECT
region,
instance_arn,
contact_flow_arn,
name,
content,
description,
state,
type,
tags
FROM aws.connect.contact_flows
WHERE region = 'us-east-1';

Gets all properties from an individual contact_flow.

SELECT
region,
instance_arn,
contact_flow_arn,
name,
content,
description,
state,
type,
tags
FROM aws.connect.contact_flows
WHERE region = 'us-east-1' AND data__Identifier = '<ContactFlowArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.connect.contact_flows (
InstanceArn,
Name,
Content,
Type,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ Content }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.contact_flows
WHERE data__Identifier = '<ContactFlowArn>'
AND region = 'us-east-1';

Permissions

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

Create

connect:CreateContactFlow,
connect:TagResource

Read

connect:DescribeContactFlow

Delete

connect:DeleteContactFlow,
connect:UntagResource

Update

connect:UpdateContactFlowMetadata,
connect:UpdateContactFlowContent,
connect:TagResource,
connect:UntagResource

List

connect:ListContactFlows