Skip to content
GitHubXDiscordRSS

ContactFlowVersion

Learn how to create, update, and manage AWS Connect ContactFlowVersions using Alchemy Cloud Control.

The ContactFlowVersion resource allows you to manage AWS Connect ContactFlowVersions for defining contact flows in your AWS Connect instance.

Create a basic ContactFlowVersion with required properties and one optional description.

import AWS from "alchemy/aws/control";
const basicContactFlowVersion = await AWS.Connect.ContactFlowVersion("basicContactFlowVersion", {
ContactFlowId: "cf-1234567890abcdef", // Replace with your actual Contact Flow ID
Description: "Basic contact flow version for handling customer inquiries"
});

Configure a ContactFlowVersion with additional properties, adopting an existing resource if necessary.

const advancedContactFlowVersion = await AWS.Connect.ContactFlowVersion("advancedContactFlowVersion", {
ContactFlowId: "cf-abcdef1234567890", // Replace with your actual Contact Flow ID
Description: "Advanced contact flow version with enhanced features",
adopt: true // Adopt existing resource instead of failing if it already exists
});

Create a new version of an existing contact flow to update its configuration.

const updateContactFlowVersion = await AWS.Connect.ContactFlowVersion("updateContactFlowVersion", {
ContactFlowId: "cf-0987654321fedcba", // Replace with your actual Contact Flow ID
Description: "Updated version of the contact flow for improved customer experience"
});

Manage a ContactFlowVersion with logging enabled to track performance and customer interactions.

const loggingContactFlowVersion = await AWS.Connect.ContactFlowVersion("loggingContactFlowVersion", {
ContactFlowId: "cf-fedcba0987654321", // Replace with your actual Contact Flow ID
Description: "Contact flow version with logging enabled for monitoring",
adopt: false // Do not adopt existing resources
});