Skip to main content

flow_associations

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

Overview

Nameflow_associations
TypeResource
Idaws.connect.flow_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
flow_idstringThe identifier of the flow.
resource_idstringThe identifier of the resource.
resource_typestringA valid resource type. (SMS_PHONE_NUMBER, INBOUND_EMAIL, OUTBOUND_EMAIL, ANALYTICS_CONNECTOR, WHATSAPP_MESSAGING_PHONE_NUMBER)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_flow_associationselectinstance_id, resource_id, resource_type, regionRetrieves the flow associated for a given resource.
batch_get_flow_associationselectinstance_id, regionRetrieve the flow associations for the given resources.
list_flow_associationsselectinstance_id, regionResourceType, nextToken, maxResultsList the flow association based on the filters.

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
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
resource_idstringThe identifier of the resource. Amazon Web Services End User Messaging SMS phone number ARN when using SMS_PHONE_NUMBER Amazon Web Services End User Messaging Social phone number ARN when using WHATSAPP_MESSAGING_PHONE_NUMBER
resource_typestringA valid resource type.
ResourceTypestringA valid resource type.
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe 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

Retrieves the flow associated for a given resource.

SELECT
flow_id,
resource_id,
resource_type
FROM aws.connect.flow_associations
WHERE instance_id = '{{ instance_id }}' -- required
AND resource_id = '{{ resource_id }}' -- required
AND resource_type = '{{ resource_type }}' -- required
AND region = '{{ region }}' -- required
;