Queue

class Queue : KotlinCustomResource

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

Example Usage

Basic

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.connect.Queue("test", {
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "Example Name",
description: "Example Description",
hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
tags: {
Name: "Example Queue",
},
});
import pulumi
import pulumi_aws as aws
test = aws.connect.Queue("test",
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="Example Name",
description="Example Description",
hours_of_operation_id="12345678-1234-1234-1234-123456789012",
tags={
"Name": "Example Queue",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Connect.Queue("test", new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "Example Name",
Description = "Example Description",
HoursOfOperationId = "12345678-1234-1234-1234-123456789012",
Tags =
{
{ "Name", "Example Queue" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.NewQueue(ctx, "test", &connect.QueueArgs{
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
Name: pulumi.String("Example Name"),
Description: pulumi.String("Example Description"),
HoursOfOperationId: pulumi.String("12345678-1234-1234-1234-123456789012"),
Tags: pulumi.StringMap{
"Name": pulumi.String("Example Queue"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.Queue;
import com.pulumi.aws.connect.QueueArgs;
import java.util.List;
import java.util.ArrayList;
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 test = new Queue("test", QueueArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.name("Example Name")
.description("Example Description")
.hoursOfOperationId("12345678-1234-1234-1234-123456789012")
.tags(Map.of("Name", "Example Queue"))
.build());
}
}
resources:
test:
type: aws:connect:Queue
properties:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: Example Name
description: Example Description
hoursOfOperationId: 12345678-1234-1234-1234-123456789012
tags:
Name: Example Queue

With Quick Connect IDs

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.connect.Queue("test", {
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "Example Name",
description: "Example Description",
hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
quickConnectIds: ["12345678-abcd-1234-abcd-123456789012"],
tags: {
Name: "Example Queue with Quick Connect IDs",
},
});
import pulumi
import pulumi_aws as aws
test = aws.connect.Queue("test",
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="Example Name",
description="Example Description",
hours_of_operation_id="12345678-1234-1234-1234-123456789012",
quick_connect_ids=["12345678-abcd-1234-abcd-123456789012"],
tags={
"Name": "Example Queue with Quick Connect IDs",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Connect.Queue("test", new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "Example Name",
Description = "Example Description",
HoursOfOperationId = "12345678-1234-1234-1234-123456789012",
QuickConnectIds = new[]
{
"12345678-abcd-1234-abcd-123456789012",
},
Tags =
{
{ "Name", "Example Queue with Quick Connect IDs" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.NewQueue(ctx, "test", &connect.QueueArgs{
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
Name: pulumi.String("Example Name"),
Description: pulumi.String("Example Description"),
HoursOfOperationId: pulumi.String("12345678-1234-1234-1234-123456789012"),
QuickConnectIds: pulumi.StringArray{
pulumi.String("12345678-abcd-1234-abcd-123456789012"),
},
Tags: pulumi.StringMap{
"Name": pulumi.String("Example Queue with Quick Connect IDs"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.Queue;
import com.pulumi.aws.connect.QueueArgs;
import java.util.List;
import java.util.ArrayList;
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 test = new Queue("test", QueueArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.name("Example Name")
.description("Example Description")
.hoursOfOperationId("12345678-1234-1234-1234-123456789012")
.quickConnectIds("12345678-abcd-1234-abcd-123456789012")
.tags(Map.of("Name", "Example Queue with Quick Connect IDs"))
.build());
}
}
resources:
test:
type: aws:connect:Queue
properties:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: Example Name
description: Example Description
hoursOfOperationId: 12345678-1234-1234-1234-123456789012
quickConnectIds:
- 12345678-abcd-1234-abcd-123456789012
tags:
Name: Example Queue with Quick Connect IDs

With Outbound Caller Config

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.connect.Queue("test", {
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "Example Name",
description: "Example Description",
hoursOfOperationId: "12345678-1234-1234-1234-123456789012",
outboundCallerConfig: {
outboundCallerIdName: "example",
outboundCallerIdNumberId: "12345678-abcd-1234-abcd-123456789012",
outboundFlowId: "87654321-defg-1234-defg-987654321234",
},
tags: {
Name: "Example Queue with Outbound Caller Config",
},
});
import pulumi
import pulumi_aws as aws
test = aws.connect.Queue("test",
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="Example Name",
description="Example Description",
hours_of_operation_id="12345678-1234-1234-1234-123456789012",
outbound_caller_config={
"outbound_caller_id_name": "example",
"outbound_caller_id_number_id": "12345678-abcd-1234-abcd-123456789012",
"outbound_flow_id": "87654321-defg-1234-defg-987654321234",
},
tags={
"Name": "Example Queue with Outbound Caller Config",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Connect.Queue("test", new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "Example Name",
Description = "Example Description",
HoursOfOperationId = "12345678-1234-1234-1234-123456789012",
OutboundCallerConfig = new Aws.Connect.Inputs.QueueOutboundCallerConfigArgs
{
OutboundCallerIdName = "example",
OutboundCallerIdNumberId = "12345678-abcd-1234-abcd-123456789012",
OutboundFlowId = "87654321-defg-1234-defg-987654321234",
},
Tags =
{
{ "Name", "Example Queue with Outbound Caller Config" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.NewQueue(ctx, "test", &connect.QueueArgs{
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
Name: pulumi.String("Example Name"),
Description: pulumi.String("Example Description"),
HoursOfOperationId: pulumi.String("12345678-1234-1234-1234-123456789012"),
OutboundCallerConfig: &connect.QueueOutboundCallerConfigArgs{
OutboundCallerIdName: pulumi.String("example"),
OutboundCallerIdNumberId: pulumi.String("12345678-abcd-1234-abcd-123456789012"),
OutboundFlowId: pulumi.String("87654321-defg-1234-defg-987654321234"),
},
Tags: pulumi.StringMap{
"Name": pulumi.String("Example Queue with Outbound Caller Config"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.Queue;
import com.pulumi.aws.connect.QueueArgs;
import com.pulumi.aws.connect.inputs.QueueOutboundCallerConfigArgs;
import java.util.List;
import java.util.ArrayList;
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 test = new Queue("test", QueueArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.name("Example Name")
.description("Example Description")
.hoursOfOperationId("12345678-1234-1234-1234-123456789012")
.outboundCallerConfig(QueueOutboundCallerConfigArgs.builder()
.outboundCallerIdName("example")
.outboundCallerIdNumberId("12345678-abcd-1234-abcd-123456789012")
.outboundFlowId("87654321-defg-1234-defg-987654321234")
.build())
.tags(Map.of("Name", "Example Queue with Outbound Caller Config"))
.build());
}
}
resources:
test:
type: aws:connect:Queue
properties:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: Example Name
description: Example Description
hoursOfOperationId: 12345678-1234-1234-1234-123456789012
outboundCallerConfig:
outboundCallerIdName: example
outboundCallerIdNumberId: 12345678-abcd-1234-abcd-123456789012
outboundFlowId: 87654321-defg-1234-defg-987654321234
tags:
Name: Example Queue with Outbound Caller Config

Import

Using pulumi import, import Amazon Connect Queues using the instance_id and queue_id separated by a colon (:). For example:

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

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the Queue.

Link copied to clipboard
val description: Output<String>?

Specifies the description of the Queue.

Link copied to clipboard

Specifies the identifier of the Hours of Operation.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceId: Output<String>

Specifies the identifier of the hosting Amazon Connect Instance.

Link copied to clipboard
val maxContacts: Output<Int>?

Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.

Link copied to clipboard
val name: Output<String>

Specifies the name of the Queue.

Link copied to clipboard

A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val queueId: Output<String>

The identifier for the Queue.

Link copied to clipboard
val quickConnectIds: Output<List<String>>?

Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.

Link copied to clipboard
val status: Output<String>

Specifies the description of the Queue. Valid values are ENABLED, DISABLED.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Tags to apply to the Queue. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>