Skip to content

Resource: awsConnectRoutingProfile

Provides an Amazon Connect Routing Profile resource. For more information see Amazon Connect: Getting Started

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.connectRoutingProfile.ConnectRoutingProfile(this, "example", {
  defaultOutboundQueueId: "12345678-1234-1234-1234-123456789012",
  description: "example description",
  instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
  mediaConcurrencies: [
    {
      channel: "VOICE",
      concurrency: 1,
    },
  ],
  name: "example",
  queueConfigs: [
    {
      channel: "VOICE",
      delay: 2,
      priority: 1,
      queueId: "12345678-1234-1234-1234-123456789012",
    },
  ],
  tags: {
    Name: "Example Routing Profile",
  },
});

Argument Reference

The following arguments are supported:

  • defaultOutboundQueueId - (Required) Specifies the default outbound queue for the Routing Profile.
  • description - (Required) Specifies the description of the Routing Profile.
  • instanceId - (Required) Specifies the identifier of the hosting Amazon Connect Instance.
  • mediaConcurrencies - (Required) One or more mediaConcurrencies blocks that specify the channels that agents can handle in the Contact Control Panel (CCP) for this Routing Profile. The mediaConcurrencies block is documented below.
  • name - (Required) Specifies the name of the Routing Profile.
  • queueConfigs - (Optional) One or more queueConfigs blocks that specify the inbound queues associated with the routing profile. If no queue is added, the agent only can make outbound calls. The queueConfigs block is documented below.
  • tags - (Optional) Tags to apply to the Routing Profile. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

A mediaConcurrencies block supports the following arguments:

  • channel - (Required) Specifies the channels that agents can handle in the Contact Control Panel (CCP). Valid values are voice, chat, task.
  • concurrency - (Required) Specifies the number of contacts an agent can have on a channel simultaneously. Valid Range for voice: Minimum value of 1. Maximum value of 1. Valid Range for chat: Minimum value of 1. Maximum value of 10. Valid Range for task: Minimum value of 1. Maximum value of 10.

A queueConfigs block supports the following arguments:

  • channel - (Required) Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are voice, chat, task.
  • delay - (Required) Specifies the delay, in seconds, that a contact should be in the queue before they are routed to an available agent
  • priority - (Required) Specifies the order in which contacts are to be handled for the queue.
  • queueId - (Required) Specifies the identifier for the queue.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - The Amazon Resource Name (ARN) of the Routing Profile.
  • id - The identifier of the hosting Amazon Connect Instance and identifier of the Routing Profile separated by a colon (:).
  • queueConfigs - In addition to the arguments used in the queueConfigs argument block, there are additional attributes exported within the queueConfigs block. These additional attributes are documented below.
  • routingProfileId - The identifier for the Routing Profile.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

A queueConfigs block supports the following attributes in addition to the arguments defined earlier:

  • queueArn - ARN for the queue.
  • queueName - Name for the queue.

Import

Amazon Connect Routing Profiles can be imported using the instanceId and routingProfileId separated by a colon (:), e.g.,

$ terraform import aws_connect_routing_profile.example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5