Skip to main content

contact_flow_versions

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

Overview

Namecontact_flow_versions
TypeResource
Idaws.connect.contact_flow_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the view version.
versioninteger (int64)The identifier of the flow version.
version_descriptionstringThe description of the flow version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_contact_flow_versionsselectinstance_id, contact_flow_id, regionnextToken, maxResultsReturns all the available versions for the specified Connect Customer instance and flow identifier.
create_contact_flow_versioninsertinstance_id, contact_flow_id, regionPublishes a new version of the flow provided. Versions are immutable and monotonically increasing. If the FlowContentSha256 provided is different from the FlowContentSha256 of the $LATEST published flow content, then an error is returned. This API only supports creating versions for flows of type Campaign.
delete_contact_flow_versiondeleteinstance_id, contact_flow_id, contact_flow_version, regionDeletes the particular version specified in flow version identifier.

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_idstringThe identifier of the flow.
contact_flow_versioninteger (int64)The identifier of the flow version.
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. The default MaxResult size is 100.
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

Returns all the available versions for the specified Connect Customer instance and flow identifier.

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

INSERT examples

Publishes a new version of the flow provided. Versions are immutable and monotonically increasing. If the FlowContentSha256 provided is different from the FlowContentSha256 of the $LATEST published flow content, then an error is returned. This API only supports creating versions for flows of type Campaign.

INSERT INTO aws.connect.contact_flow_versions (
Description,
FlowContentSha256,
ContactFlowVersion,
LastModifiedTime,
LastModifiedRegion,
instance_id,
contact_flow_id,
region
)
SELECT
'{{ Description }}',
'{{ FlowContentSha256 }}',
{{ ContactFlowVersion }},
'{{ LastModifiedTime }}',
'{{ LastModifiedRegion }}',
'{{ instance_id }}',
'{{ contact_flow_id }}',
'{{ region }}'
RETURNING
contact_flow_arn,
version
;

DELETE examples

Deletes the particular version specified in flow version identifier.

DELETE FROM aws.connect.contact_flow_versions
WHERE instance_id = '{{ instance_id }}' --required
AND contact_flow_id = '{{ contact_flow_id }}' --required
AND contact_flow_version = '{{ contact_flow_version }}' --required
AND region = '{{ region }}' --required
;