Skip to main content

contact_flow_modules

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

Overview

Namecontact_flow_modules
TypeResource
Idaws.connect.contact_flow_modules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN).
contentstringThe JSON string that represents the content of the flow. For an example, see Example flow in Connect Customer Flow language.
descriptionstringThe description of the flow module. (pattern: <code>.\S.</code>)
external_invocation_configurationobjectThe external invocation configuration for the flow module
flow_module_content_sha_256stringHash of the module content for integrity verification. (pattern: <code>^[a-zA-Z0-9]{64}$</code>)
idstringThe identifier of the flow module.
namestringThe name of the flow module. (pattern: <code>.\S.</code>)
settingsstringThe configuration settings for the flow module.
statestringThe type of flow module. (ACTIVE, ARCHIVED)
statusstringThe status of the flow module. (PUBLISHED, SAVED)
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
versioninteger (int64)The version of the flow module.
version_descriptionstringDescription of the version. (pattern: <code>.\S.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_contact_flow_moduleselectinstance_id, contact_flow_module_id, regionDescribes the specified flow module. Use the $SAVED alias in the request to describe the SAVED content of a Flow. For example, arn:aws:.../contact-flow/{id}:$SAVED. After a flow is published, $SAVED needs to be supplied to view saved content that has not been published.
list_contact_flow_modulesselectinstance_id, regionnextToken, maxResults, stateProvides information about the flow modules for the specified Connect Customer instance.
search_contact_flow_modulesselectregionSearches the flow modules in an Connect Customer instance, with optional filtering.
create_contact_flow_moduleinsertinstance_id, regionCreates a flow module for the specified Connect Customer instance.
update_contact_flow_module_contentupdateinstance_id, contact_flow_module_id, regionUpdates specified flow module for the specified Connect Customer instance. Use the $SAVED alias in the request to describe the SAVED content of a Flow. For example, arn:aws:.../contact-flow/{id}:$SAVED. After a flow is published, $SAVED needs to be supplied to view saved content that has not been published.
delete_contact_flow_moduledeleteinstance_id, contact_flow_module_id, regionDeletes the specified flow module.
update_contact_flow_module_metadataexecinstance_id, contact_flow_module_id, regionUpdates metadata about specified flow module.

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
contact_flow_module_idstringThe identifier of the flow module.
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)
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.
statestringThe state of the flow module.

SELECT examples

Describes the specified flow module. Use the $SAVED alias in the request to describe the SAVED content of a Flow. For example, arn:aws:.../contact-flow/{id}:$SAVED. After a flow is published, $SAVED needs to be supplied to view saved content that has not been published.

SELECT
arn,
content,
description,
external_invocation_configuration,
flow_module_content_sha_256,
id,
name,
settings,
state,
status,
tags,
version,
version_description
FROM aws.connect.contact_flow_modules
WHERE instance_id = '{{ instance_id }}' -- required
AND contact_flow_module_id = '{{ contact_flow_module_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a flow module for the specified Connect Customer instance.

INSERT INTO aws.connect.contact_flow_modules (
Name,
Description,
Content,
Tags,
ClientToken,
Settings,
ExternalInvocationConfiguration,
instance_id,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ Content }}',
'{{ Tags }}',
'{{ ClientToken }}',
'{{ Settings }}',
'{{ ExternalInvocationConfiguration }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
arn,
id
;

UPDATE examples

Updates specified flow module for the specified Connect Customer instance. Use the $SAVED alias in the request to describe the SAVED content of a Flow. For example, arn:aws:.../contact-flow/{id}:$SAVED. After a flow is published, $SAVED needs to be supplied to view saved content that has not been published.

UPDATE aws.connect.contact_flow_modules
SET
Content = '{{ Content }}',
Settings = '{{ Settings }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND contact_flow_module_id = '{{ contact_flow_module_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes the specified flow module.

DELETE FROM aws.connect.contact_flow_modules
WHERE instance_id = '{{ instance_id }}' --required
AND contact_flow_module_id = '{{ contact_flow_module_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Updates metadata about specified flow module.

EXEC aws.connect.contact_flow_modules.update_contact_flow_module_metadata
@instance_id='{{ instance_id }}' --required,
@contact_flow_module_id='{{ contact_flow_module_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Name": "{{ Name }}",
"Description": "{{ Description }}",
"State": "{{ State }}"
}'
;