1. Packages
  2. AWS
  3. API Docs
  4. connect
  5. getQueue
AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi

aws.connect.getQueue

Explore with Pulumi AI

AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi

Provides details about a specific Amazon Connect Queue.

Example Usage

By name

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

const example = aws.connect.getQueue({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name: "Example",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.connect.get_queue(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name="Example")
Copy
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.LookupQueue(ctx, &connect.LookupQueueArgs{
			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
			Name:       pulumi.StringRef("Example"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Connect.GetQueue.Invoke(new()
    {
        InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        Name = "Example",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.inputs.GetQueueArgs;
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) {
        final var example = ConnectFunctions.getQueue(GetQueueArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .name("Example")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:connect:getQueue
      arguments:
        instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
        name: Example
Copy

By queue_id

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

const example = aws.connect.getQueue({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    queueId: "cccccccc-bbbb-cccc-dddd-111111111111",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.connect.get_queue(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    queue_id="cccccccc-bbbb-cccc-dddd-111111111111")
Copy
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.LookupQueue(ctx, &connect.LookupQueueArgs{
			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
			QueueId:    pulumi.StringRef("cccccccc-bbbb-cccc-dddd-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Connect.GetQueue.Invoke(new()
    {
        InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        QueueId = "cccccccc-bbbb-cccc-dddd-111111111111",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.inputs.GetQueueArgs;
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) {
        final var example = ConnectFunctions.getQueue(GetQueueArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .queueId("cccccccc-bbbb-cccc-dddd-111111111111")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:connect:getQueue
      arguments:
        instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
        queueId: cccccccc-bbbb-cccc-dddd-111111111111
Copy

Using getQueue

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getQueue(args: GetQueueArgs, opts?: InvokeOptions): Promise<GetQueueResult>
function getQueueOutput(args: GetQueueOutputArgs, opts?: InvokeOptions): Output<GetQueueResult>
Copy
def get_queue(instance_id: Optional[str] = None,
              name: Optional[str] = None,
              queue_id: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              opts: Optional[InvokeOptions] = None) -> GetQueueResult
def get_queue_output(instance_id: Optional[pulumi.Input[str]] = None,
              name: Optional[pulumi.Input[str]] = None,
              queue_id: Optional[pulumi.Input[str]] = None,
              tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetQueueResult]
Copy
func LookupQueue(ctx *Context, args *LookupQueueArgs, opts ...InvokeOption) (*LookupQueueResult, error)
func LookupQueueOutput(ctx *Context, args *LookupQueueOutputArgs, opts ...InvokeOption) LookupQueueResultOutput
Copy

> Note: This function is named LookupQueue in the Go SDK.

public static class GetQueue 
{
    public static Task<GetQueueResult> InvokeAsync(GetQueueArgs args, InvokeOptions? opts = null)
    public static Output<GetQueueResult> Invoke(GetQueueInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetQueueResult> getQueue(GetQueueArgs args, InvokeOptions options)
public static Output<GetQueueResult> getQueue(GetQueueArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:connect/getQueue:getQueue
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
Reference to the hosting Amazon Connect Instance
Name string
Returns information on a specific Queue by name
QueueId string
Returns information on a specific Queue by Queue id
Tags Dictionary<string, string>
Map of tags assigned to the Queue.
InstanceId This property is required. string
Reference to the hosting Amazon Connect Instance
Name string
Returns information on a specific Queue by name
QueueId string
Returns information on a specific Queue by Queue id
Tags map[string]string
Map of tags assigned to the Queue.
instanceId This property is required. String
Reference to the hosting Amazon Connect Instance
name String
Returns information on a specific Queue by name
queueId String
Returns information on a specific Queue by Queue id
tags Map<String,String>
Map of tags assigned to the Queue.
instanceId This property is required. string
Reference to the hosting Amazon Connect Instance
name string
Returns information on a specific Queue by name
queueId string
Returns information on a specific Queue by Queue id
tags {[key: string]: string}
Map of tags assigned to the Queue.
instance_id This property is required. str
Reference to the hosting Amazon Connect Instance
name str
Returns information on a specific Queue by name
queue_id str
Returns information on a specific Queue by Queue id
tags Mapping[str, str]
Map of tags assigned to the Queue.
instanceId This property is required. String
Reference to the hosting Amazon Connect Instance
name String
Returns information on a specific Queue by name
queueId String
Returns information on a specific Queue by Queue id
tags Map<String>
Map of tags assigned to the Queue.

getQueue Result

The following output properties are available:

Arn string
ARN of the Queue.
Description string
Description of the Queue.
HoursOfOperationId string
Specifies the identifier of the Hours of Operation.
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
MaxContacts int
Maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
Name string
OutboundCallerConfigs List<GetQueueOutboundCallerConfig>
A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
QueueId string
Identifier for the Queue.
Status string
Description of the Queue. Values are ENABLED or DISABLED.
Tags Dictionary<string, string>
Map of tags assigned to the Queue.
Arn string
ARN of the Queue.
Description string
Description of the Queue.
HoursOfOperationId string
Specifies the identifier of the Hours of Operation.
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
MaxContacts int
Maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
Name string
OutboundCallerConfigs []GetQueueOutboundCallerConfig
A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
QueueId string
Identifier for the Queue.
Status string
Description of the Queue. Values are ENABLED or DISABLED.
Tags map[string]string
Map of tags assigned to the Queue.
arn String
ARN of the Queue.
description String
Description of the Queue.
hoursOfOperationId String
Specifies the identifier of the Hours of Operation.
id String
The provider-assigned unique ID for this managed resource.
instanceId String
maxContacts Integer
Maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
name String
outboundCallerConfigs List<GetQueueOutboundCallerConfig>
A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
queueId String
Identifier for the Queue.
status String
Description of the Queue. Values are ENABLED or DISABLED.
tags Map<String,String>
Map of tags assigned to the Queue.
arn string
ARN of the Queue.
description string
Description of the Queue.
hoursOfOperationId string
Specifies the identifier of the Hours of Operation.
id string
The provider-assigned unique ID for this managed resource.
instanceId string
maxContacts number
Maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
name string
outboundCallerConfigs GetQueueOutboundCallerConfig[]
A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
queueId string
Identifier for the Queue.
status string
Description of the Queue. Values are ENABLED or DISABLED.
tags {[key: string]: string}
Map of tags assigned to the Queue.
arn str
ARN of the Queue.
description str
Description of the Queue.
hours_of_operation_id str
Specifies the identifier of the Hours of Operation.
id str
The provider-assigned unique ID for this managed resource.
instance_id str
max_contacts int
Maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
name str
outbound_caller_configs Sequence[GetQueueOutboundCallerConfig]
A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
queue_id str
Identifier for the Queue.
status str
Description of the Queue. Values are ENABLED or DISABLED.
tags Mapping[str, str]
Map of tags assigned to the Queue.
arn String
ARN of the Queue.
description String
Description of the Queue.
hoursOfOperationId String
Specifies the identifier of the Hours of Operation.
id String
The provider-assigned unique ID for this managed resource.
instanceId String
maxContacts Number
Maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
name String
outboundCallerConfigs List<Property Map>
A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
queueId String
Identifier for the Queue.
status String
Description of the Queue. Values are ENABLED or DISABLED.
tags Map<String>
Map of tags assigned to the Queue.

Supporting Types

GetQueueOutboundCallerConfig

OutboundCallerIdName This property is required. string
Specifies the caller ID name.
OutboundCallerIdNumberId This property is required. string
Specifies the caller ID number.
OutboundFlowId This property is required. string
Outbound whisper flow to be used during an outbound call.
OutboundCallerIdName This property is required. string
Specifies the caller ID name.
OutboundCallerIdNumberId This property is required. string
Specifies the caller ID number.
OutboundFlowId This property is required. string
Outbound whisper flow to be used during an outbound call.
outboundCallerIdName This property is required. String
Specifies the caller ID name.
outboundCallerIdNumberId This property is required. String
Specifies the caller ID number.
outboundFlowId This property is required. String
Outbound whisper flow to be used during an outbound call.
outboundCallerIdName This property is required. string
Specifies the caller ID name.
outboundCallerIdNumberId This property is required. string
Specifies the caller ID number.
outboundFlowId This property is required. string
Outbound whisper flow to be used during an outbound call.
outbound_caller_id_name This property is required. str
Specifies the caller ID name.
outbound_caller_id_number_id This property is required. str
Specifies the caller ID number.
outbound_flow_id This property is required. str
Outbound whisper flow to be used during an outbound call.
outboundCallerIdName This property is required. String
Specifies the caller ID name.
outboundCallerIdNumberId This property is required. String
Specifies the caller ID number.
outboundFlowId This property is required. String
Outbound whisper flow to be used during an outbound call.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi