1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. connect
  6. ContactFlow

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::Connect::ContactFlow

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var flow = new AwsNative.Connect.ContactFlow("flow", new()
        {
            Name = "ExampleFlow",
            Description = "flow created using cfn",
            InstanceArn = "arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
            Type = AwsNative.Connect.ContactFlowType.ContactFlow,
            Content = "ExampleFlow content(JSON) using Amazon Connect Flow Language.",
            Tags = new[]
            {
                new AwsNative.Inputs.TagArgs
                {
                    Key = "testkey",
                    Value = "testValue",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/connect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := connect.NewContactFlow(ctx, "flow", &connect.ContactFlowArgs{
    			Name:        pulumi.String("ExampleFlow"),
    			Description: pulumi.String("flow created using cfn"),
    			InstanceArn: pulumi.String("arn:aws:connect:region-name:aws-account-id:instance/instance-arn"),
    			Type:        connect.ContactFlowTypeContactFlow,
    			Content:     pulumi.String("ExampleFlow content(JSON) using Amazon Connect Flow Language."),
    			Tags: aws.TagArray{
    				&aws.TagArgs{
    					Key:   pulumi.String("testkey"),
    					Value: pulumi.String("testValue"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const flow = new aws_native.connect.ContactFlow("flow", {
        name: "ExampleFlow",
        description: "flow created using cfn",
        instanceArn: "arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
        type: aws_native.connect.ContactFlowType.ContactFlow,
        content: "ExampleFlow content(JSON) using Amazon Connect Flow Language.",
        tags: [{
            key: "testkey",
            value: "testValue",
        }],
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    flow = aws_native.connect.ContactFlow("flow",
        name="ExampleFlow",
        description="flow created using cfn",
        instance_arn="arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
        type=aws_native.connect.ContactFlowType.CONTACT_FLOW,
        content="ExampleFlow content(JSON) using Amazon Connect Flow Language.",
        tags=[{
            "key": "testkey",
            "value": "testValue",
        }])
    

    Example coming soon!

    Create ContactFlow Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ContactFlow(name: string, args: ContactFlowArgs, opts?: CustomResourceOptions);
    @overload
    def ContactFlow(resource_name: str,
                    args: ContactFlowArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContactFlow(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    content: Optional[str] = None,
                    instance_arn: Optional[str] = None,
                    type: Optional[ContactFlowType] = None,
                    description: Optional[str] = None,
                    name: Optional[str] = None,
                    state: Optional[ContactFlowState] = None,
                    tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewContactFlow(ctx *Context, name string, args ContactFlowArgs, opts ...ResourceOption) (*ContactFlow, error)
    public ContactFlow(string name, ContactFlowArgs args, CustomResourceOptions? opts = null)
    public ContactFlow(String name, ContactFlowArgs args)
    public ContactFlow(String name, ContactFlowArgs args, CustomResourceOptions options)
    
    type: aws-native:connect:ContactFlow
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_connect_contact_flow" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ContactFlowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ContactFlowArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ContactFlowArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContactFlowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContactFlowArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ContactFlow Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ContactFlow resource accepts the following input properties:

    Content string
    The content of the contact flow in JSON format.
    InstanceArn string
    The identifier of the Amazon Connect instance (ARN).
    Type Pulumi.AwsNative.Connect.ContactFlowType
    The type of the contact flow.
    Description string
    The description of the contact flow.
    Name string
    The name of the contact flow.
    State Pulumi.AwsNative.Connect.ContactFlowState
    The state of the contact flow.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    One or more tags.
    Content string
    The content of the contact flow in JSON format.
    InstanceArn string
    The identifier of the Amazon Connect instance (ARN).
    Type ContactFlowType
    The type of the contact flow.
    Description string
    The description of the contact flow.
    Name string
    The name of the contact flow.
    State ContactFlowStateEnum
    The state of the contact flow.
    Tags TagArgs
    One or more tags.
    content string
    The content of the contact flow in JSON format.
    instance_arn string
    The identifier of the Amazon Connect instance (ARN).
    type "CONTACT_FLOW" | "CUSTOMER_QUEUE" | "CUSTOMER_HOLD" | "CUSTOMER_WHISPER" | "AGENT_HOLD" | "AGENT_WHISPER" | "OUTBOUND_WHISPER" | "AGENT_TRANSFER" | "QUEUE_TRANSFER" | "CAMPAIGN"
    The type of the contact flow.
    description string
    The description of the contact flow.
    name string
    The name of the contact flow.
    state "ACTIVE" | "ARCHIVED"
    The state of the contact flow.
    tags list(object)
    One or more tags.
    content String
    The content of the contact flow in JSON format.
    instanceArn String
    The identifier of the Amazon Connect instance (ARN).
    type ContactFlowType
    The type of the contact flow.
    description String
    The description of the contact flow.
    name String
    The name of the contact flow.
    state ContactFlowState
    The state of the contact flow.
    tags List<Tag>
    One or more tags.
    content string
    The content of the contact flow in JSON format.
    instanceArn string
    The identifier of the Amazon Connect instance (ARN).
    type ContactFlowType
    The type of the contact flow.
    description string
    The description of the contact flow.
    name string
    The name of the contact flow.
    state ContactFlowState
    The state of the contact flow.
    tags Tag[]
    One or more tags.
    content str
    The content of the contact flow in JSON format.
    instance_arn str
    The identifier of the Amazon Connect instance (ARN).
    type ContactFlowType
    The type of the contact flow.
    description str
    The description of the contact flow.
    name str
    The name of the contact flow.
    state ContactFlowState
    The state of the contact flow.
    tags Sequence[TagArgs]
    One or more tags.
    content String
    The content of the contact flow in JSON format.
    instanceArn String
    The identifier of the Amazon Connect instance (ARN).
    type "CONTACT_FLOW" | "CUSTOMER_QUEUE" | "CUSTOMER_HOLD" | "CUSTOMER_WHISPER" | "AGENT_HOLD" | "AGENT_WHISPER" | "OUTBOUND_WHISPER" | "AGENT_TRANSFER" | "QUEUE_TRANSFER" | "CAMPAIGN"
    The type of the contact flow.
    description String
    The description of the contact flow.
    name String
    The name of the contact flow.
    state "ACTIVE" | "ARCHIVED"
    The state of the contact flow.
    tags List<Property Map>
    One or more tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ContactFlow resource produces the following output properties:

    ContactFlowArn string
    The identifier of the contact flow (ARN).
    Id string
    The provider-assigned unique ID for this managed resource.
    ContactFlowArn string
    The identifier of the contact flow (ARN).
    Id string
    The provider-assigned unique ID for this managed resource.
    contact_flow_arn string
    The identifier of the contact flow (ARN).
    id string
    The provider-assigned unique ID for this managed resource.
    contactFlowArn String
    The identifier of the contact flow (ARN).
    id String
    The provider-assigned unique ID for this managed resource.
    contactFlowArn string
    The identifier of the contact flow (ARN).
    id string
    The provider-assigned unique ID for this managed resource.
    contact_flow_arn str
    The identifier of the contact flow (ARN).
    id str
    The provider-assigned unique ID for this managed resource.
    contactFlowArn String
    The identifier of the contact flow (ARN).
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ContactFlow Resource

    Get an existing ContactFlow resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): ContactFlow
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> ContactFlow
    func GetContactFlow(ctx *Context, name string, id IDInput, state *ContactFlowState, opts ...ResourceOption) (*ContactFlow, error)
    public static ContactFlow Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static ContactFlow get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingContactFlow:    type: aws-native:connect:ContactFlow    get:      id: ${id}
    import {
      to = aws-native_connect_contact_flow.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ContactFlowState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    ContactFlowState

    The state of the contact flow.

    NameValue
    ActiveACTIVE
    ArchivedARCHIVED
    NameValue
    ContactFlowStateActiveACTIVE
    ContactFlowStateArchivedARCHIVED
    Value
    ACTIVE
    ARCHIVED
    NameValue
    ActiveACTIVE
    ArchivedARCHIVED
    NameValue
    ActiveACTIVE
    ArchivedARCHIVED
    NameValue
    ACTIVEACTIVE
    ARCHIVEDARCHIVED
    Value
    ACTIVE
    ARCHIVED

    ContactFlowType

    The type of the contact flow.

    NameValue
    ContactFlowCONTACT_FLOW
    CustomerQueueCUSTOMER_QUEUE
    CustomerHoldCUSTOMER_HOLD
    CustomerWhisperCUSTOMER_WHISPER
    AgentHoldAGENT_HOLD
    AgentWhisperAGENT_WHISPER
    OutboundWhisperOUTBOUND_WHISPER
    AgentTransferAGENT_TRANSFER
    QueueTransferQUEUE_TRANSFER
    CampaignCAMPAIGN
    NameValue
    ContactFlowTypeContactFlowCONTACT_FLOW
    ContactFlowTypeCustomerQueueCUSTOMER_QUEUE
    ContactFlowTypeCustomerHoldCUSTOMER_HOLD
    ContactFlowTypeCustomerWhisperCUSTOMER_WHISPER
    ContactFlowTypeAgentHoldAGENT_HOLD
    ContactFlowTypeAgentWhisperAGENT_WHISPER
    ContactFlowTypeOutboundWhisperOUTBOUND_WHISPER
    ContactFlowTypeAgentTransferAGENT_TRANSFER
    ContactFlowTypeQueueTransferQUEUE_TRANSFER
    ContactFlowTypeCampaignCAMPAIGN
    Value
    CONTACT_FLOW
    CUSTOMER_QUEUE
    CUSTOMER_HOLD
    CUSTOMER_WHISPER
    AGENT_HOLD
    AGENT_WHISPER
    OUTBOUND_WHISPER
    AGENT_TRANSFER
    QUEUE_TRANSFER
    CAMPAIGN
    NameValue
    ContactFlowCONTACT_FLOW
    CustomerQueueCUSTOMER_QUEUE
    CustomerHoldCUSTOMER_HOLD
    CustomerWhisperCUSTOMER_WHISPER
    AgentHoldAGENT_HOLD
    AgentWhisperAGENT_WHISPER
    OutboundWhisperOUTBOUND_WHISPER
    AgentTransferAGENT_TRANSFER
    QueueTransferQUEUE_TRANSFER
    CampaignCAMPAIGN
    NameValue
    ContactFlowCONTACT_FLOW
    CustomerQueueCUSTOMER_QUEUE
    CustomerHoldCUSTOMER_HOLD
    CustomerWhisperCUSTOMER_WHISPER
    AgentHoldAGENT_HOLD
    AgentWhisperAGENT_WHISPER
    OutboundWhisperOUTBOUND_WHISPER
    AgentTransferAGENT_TRANSFER
    QueueTransferQUEUE_TRANSFER
    CampaignCAMPAIGN
    NameValue
    CONTACT_FLOWCONTACT_FLOW
    CUSTOMER_QUEUECUSTOMER_QUEUE
    CUSTOMER_HOLDCUSTOMER_HOLD
    CUSTOMER_WHISPERCUSTOMER_WHISPER
    AGENT_HOLDAGENT_HOLD
    AGENT_WHISPERAGENT_WHISPER
    OUTBOUND_WHISPEROUTBOUND_WHISPER
    AGENT_TRANSFERAGENT_TRANSFER
    QUEUE_TRANSFERQUEUE_TRANSFER
    CAMPAIGNCAMPAIGN
    Value
    CONTACT_FLOW
    CUSTOMER_QUEUE
    CUSTOMER_HOLD
    CUSTOMER_WHISPER
    AGENT_HOLD
    AGENT_WHISPER
    OUTBOUND_WHISPER
    AGENT_TRANSFER
    QUEUE_TRANSFER
    CAMPAIGN

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial