RoutingProfile class

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.connect.RoutingProfile("example", {
    mediaConcurrencies: [
        {
            crossChannelBehavior: {
                behaviorType: "ROUTE_ANY_CHANNEL",
            },
            channel: "VOICE",
            concurrency: 1,
        },
        {
            crossChannelBehavior: {
                behaviorType: "ROUTE_CURRENT_CHANNEL_ONLY",
            },
            channel: "CHAT",
            concurrency: 3,
        },
    ],
    queueConfigs: [{
        channel: "VOICE",
        delay: 2,
        priority: 1,
        queueId: "12345678-1234-1234-1234-123456789012",
    }],
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name: "example",
    defaultOutboundQueueId: "12345678-1234-1234-1234-123456789012",
    description: "example description",
    tags: {
        Name: "Example Routing Profile",
    },
});
import pulumi
import pulumi_aws as aws

example = aws.connect.RoutingProfile("example",
    media_concurrencies=[
        {
            "cross_channel_behavior": {
                "behavior_type": "ROUTE_ANY_CHANNEL",
            },
            "channel": "VOICE",
            "concurrency": 1,
        },
        {
            "cross_channel_behavior": {
                "behavior_type": "ROUTE_CURRENT_CHANNEL_ONLY",
            },
            "channel": "CHAT",
            "concurrency": 3,
        },
    ],
    queue_configs=[{
        "channel": "VOICE",
        "delay": 2,
        "priority": 1,
        "queue_id": "12345678-1234-1234-1234-123456789012",
    }],
    instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name="example",
    default_outbound_queue_id="12345678-1234-1234-1234-123456789012",
    description="example description",
    tags={
        "Name": "Example Routing Profile",
    })
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var example = new Aws.Connect.RoutingProfile("example", new()
    {
        MediaConcurrencies = new[]
        {
            new Aws.Connect.Inputs.RoutingProfileMediaConcurrencyArgs
            {
                CrossChannelBehavior = new Aws.Connect.Inputs.RoutingProfileMediaConcurrencyCrossChannelBehaviorArgs
                {
                    BehaviorType = "ROUTE_ANY_CHANNEL",
                },
                Channel = "VOICE",
                Concurrency = 1,
            },
            new Aws.Connect.Inputs.RoutingProfileMediaConcurrencyArgs
            {
                CrossChannelBehavior = new Aws.Connect.Inputs.RoutingProfileMediaConcurrencyCrossChannelBehaviorArgs
                {
                    BehaviorType = "ROUTE_CURRENT_CHANNEL_ONLY",
                },
                Channel = "CHAT",
                Concurrency = 3,
            },
        },
        QueueConfigs = new[]
        {
            new Aws.Connect.Inputs.RoutingProfileQueueConfigArgs
            {
                Channel = "VOICE",
                Delay = 2,
                Priority = 1,
                QueueId = "12345678-1234-1234-1234-123456789012",
            },
        },
        InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        Name = "example",
        DefaultOutboundQueueId = "12345678-1234-1234-1234-123456789012",
        Description = "example description",
        Tags =
        {
            { "Name", "Example Routing Profile" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/connect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connect.NewRoutingProfile(ctx, "example", &connect.RoutingProfileArgs{
			MediaConcurrencies: connect.RoutingProfileMediaConcurrencyArray{
				&connect.RoutingProfileMediaConcurrencyArgs{
					CrossChannelBehavior: &connect.RoutingProfileMediaConcurrencyCrossChannelBehaviorArgs{
						BehaviorType: pulumi.String("ROUTE_ANY_CHANNEL"),
					},
					Channel:     pulumi.String("VOICE"),
					Concurrency: pulumi.Int(1),
				},
				&connect.RoutingProfileMediaConcurrencyArgs{
					CrossChannelBehavior: &connect.RoutingProfileMediaConcurrencyCrossChannelBehaviorArgs{
						BehaviorType: pulumi.String("ROUTE_CURRENT_CHANNEL_ONLY"),
					},
					Channel:     pulumi.String("CHAT"),
					Concurrency: pulumi.Int(3),
				},
			},
			QueueConfigs: connect.RoutingProfileQueueConfigArray{
				&connect.RoutingProfileQueueConfigArgs{
					Channel:  pulumi.String("VOICE"),
					Delay:    pulumi.Int(2),
					Priority: pulumi.Int(1),
					QueueId:  pulumi.String("12345678-1234-1234-1234-123456789012"),
				},
			},
			InstanceId:             pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
			Name:                   pulumi.String("example"),
			DefaultOutboundQueueId: pulumi.String("12345678-1234-1234-1234-123456789012"),
			Description:            pulumi.String("example description"),
			Tags: pulumi.StringMap{
				"Name": pulumi.String("Example Routing Profile"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_connect_routingprofile" "example" {
  media_concurrencies {
    cross_channel_behavior = {
      behavior_type = "ROUTE_ANY_CHANNEL"
    }
    channel     = "VOICE"
    concurrency = 1
  }
  media_concurrencies {
    cross_channel_behavior = {
      behavior_type = "ROUTE_CURRENT_CHANNEL_ONLY"
    }
    channel     = "CHAT"
    concurrency = 3
  }
  queue_configs {
    channel  = "VOICE"
    delay    = 2
    priority = 1
    queue_id = "12345678-1234-1234-1234-123456789012"
  }
  instance_id               = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name                      = "example"
  default_outbound_queue_id = "12345678-1234-1234-1234-123456789012"
  description               = "example description"
  tags = {
    "Name" = "Example Routing Profile"
  }
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.RoutingProfile;
import com.pulumi.aws.connect.RoutingProfileArgs;
import com.pulumi.aws.connect.inputs.RoutingProfileMediaConcurrencyArgs;
import com.pulumi.aws.connect.inputs.RoutingProfileMediaConcurrencyCrossChannelBehaviorArgs;
import com.pulumi.aws.connect.inputs.RoutingProfileQueueConfigArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new RoutingProfile("example", RoutingProfileArgs.builder()
            .mediaConcurrencies(
                RoutingProfileMediaConcurrencyArgs.builder()
                    .crossChannelBehavior(RoutingProfileMediaConcurrencyCrossChannelBehaviorArgs.builder()
                        .behaviorType("ROUTE_ANY_CHANNEL")
                        .build())
                    .channel("VOICE")
                    .concurrency(1)
                    .build(),
                RoutingProfileMediaConcurrencyArgs.builder()
                    .crossChannelBehavior(RoutingProfileMediaConcurrencyCrossChannelBehaviorArgs.builder()
                        .behaviorType("ROUTE_CURRENT_CHANNEL_ONLY")
                        .build())
                    .channel("CHAT")
                    .concurrency(3)
                    .build())
            .queueConfigs(RoutingProfileQueueConfigArgs.builder()
                .channel("VOICE")
                .delay(2)
                .priority(1)
                .queueId("12345678-1234-1234-1234-123456789012")
                .build())
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .name("example")
            .defaultOutboundQueueId("12345678-1234-1234-1234-123456789012")
            .description("example description")
            .tags(Map.of("Name", "Example Routing Profile"))
            .build());

    }
}
resources:
  example:
    type: aws:connect:RoutingProfile
    properties:
      mediaConcurrencies:
        - crossChannelBehavior:
            behaviorType: ROUTE_ANY_CHANNEL
          channel: VOICE
          concurrency: 1
        - crossChannelBehavior:
            behaviorType: ROUTE_CURRENT_CHANNEL_ONLY
          channel: CHAT
          concurrency: 3
      queueConfigs:
        - channel: VOICE
          delay: 2
          priority: 1
          queueId: 12345678-1234-1234-1234-123456789012
      instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
      name: example
      defaultOutboundQueueId: 12345678-1234-1234-1234-123456789012
      description: example description
      tags:
        Name: Example Routing Profile

Import

Using pulumi import, import Amazon Connect Routing Profiles using the instanceId and routingProfileId separated by a colon (:). For example:

$ pulumi import aws:connect/routingProfile:RoutingProfile example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5

Constructors

RoutingProfile(String name, {RoutingProfileArgs? args, CustomResourceOptions? options})
Creates a new RoutingProfile. name The Pulumi resource name. args Arguments used to configure this RoutingProfile. The set of arguments for RoutingProfile. options Resource options controlling this resource's behavior.
RoutingProfile.reference(String urn)
Creates a typed reference to an existing RoutingProfile resource.

Properties

arn ↔ Output<String>
ARN of the Routing Profile.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
defaultOutboundQueueId ↔ Output<String>
Specifies the default outbound queue for the Routing Profile.
latefinal
description ↔ Output<String>
Specifies the description of the Routing Profile.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
instanceId ↔ Output<String>
Specifies the identifier of the hosting Amazon Connect Instance.
latefinal
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
mediaConcurrencies ↔ Output<List<RoutingProfileMediaConcurrency>>
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.
latefinal
name ↔ Output<String>
Specifies the name of the Routing Profile.
latefinal
queueConfigs ↔ Output<List<RoutingProfileQueueConfig>?>
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.
latefinal
region ↔ Output<String>
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
routingProfileId ↔ Output<String>
Identifier for the Routing Profile.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags ↔ Output<Map<String, String>?>
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.
latefinal
tagsAll ↔ Output<Map<String, String>>
A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {RoutingProfileState? state, CustomResourceOptions? options}) → RoutingProfile
Gets an existing RoutingProfile resource's state with the given name and id.