Skip to main content

contact_flow_module_versions

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

Overview

Namecontact_flow_module_versions
TypeResource
Idaws.connect.contact_flow_module_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the flow module version.
versioninteger (int64)The version of the flow module.
version_descriptionstringThe description of the flow module version. (pattern: <code>.\S.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_contact_flow_module_versionsselectinstance_id, contact_flow_module_id, regionnextToken, maxResultsRetrieves a paginated list of all versions for a specific contact flow module.
create_contact_flow_module_versioninsertinstance_id, contact_flow_module_id, regionCreates an immutable snapshot of a contact flow module, preserving its content and settings at a specific point in time for version control and rollback capabilities.
delete_contact_flow_module_versiondeleteinstance_id, contact_flow_module_id, contact_flow_module_version, regionRemoves a specific version of a contact 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.
contact_flow_module_versioninteger (int64)The version of the flow module to delete.
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.

SELECT examples

Retrieves a paginated list of all versions for a specific contact flow module.

SELECT
arn,
version,
version_description
FROM aws.connect.contact_flow_module_versions
WHERE instance_id = '{{ instance_id }}' -- required
AND contact_flow_module_id = '{{ contact_flow_module_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

INSERT examples

Creates an immutable snapshot of a contact flow module, preserving its content and settings at a specific point in time for version control and rollback capabilities.

INSERT INTO aws.connect.contact_flow_module_versions (
Description,
FlowModuleContentSha256,
instance_id,
contact_flow_module_id,
region
)
SELECT
'{{ Description }}',
'{{ FlowModuleContentSha256 }}',
'{{ instance_id }}',
'{{ contact_flow_module_id }}',
'{{ region }}'
RETURNING
contact_flow_module_arn,
version
;

DELETE examples

Removes a specific version of a contact flow module.

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