GetQueues

This data source provides a list of MNS queues in an Alibaba Cloud account according to the specified parameters.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var queues = Output.Create(AliCloud.Mns.GetQueues.InvokeAsync(new AliCloud.Mns.GetQueuesArgs
        {
            NamePrefix = "tf-",
        }));
        this.FirstQueueId = queues.Apply(queues => queues.Queues[0].Id);
    }

    [Output("firstQueueId")]
    public Output<string> FirstQueueId { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

queues = alicloud.mns.get_queues(name_prefix="tf-")
pulumi.export("firstQueueId", queues.queues[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const queues = pulumi.output(alicloud.mns.getQueues({
    namePrefix: "tf-",
}, { async: true }));

export const firstQueueId = queues.queues[0].id;

Using GetQueues

function getQueues(args: GetQueuesArgs, opts?: InvokeOptions): Promise<GetQueuesResult>
function  get_queues(name_prefix=None, output_file=None, opts=None)
func GetQueues(ctx *Context, args *GetQueuesArgs, opts ...InvokeOption) (*GetQueuesResult, error)
public static class GetQueues {
    public static Task<GetQueuesResult> InvokeAsync(GetQueuesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

NamePrefix string

A string to filter resulting queues by their name prefixs.

OutputFile string
NamePrefix string

A string to filter resulting queues by their name prefixs.

OutputFile string
namePrefix string

A string to filter resulting queues by their name prefixs.

outputFile string
name_prefix str

A string to filter resulting queues by their name prefixs.

output_file str

GetQueues Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Names List<string>

A list of queue names.

Queues List<Pulumi.AliCloud.Mns.Outputs.GetQueuesQueue>

A list of queues. Each element contains the following attributes:

NamePrefix string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Names []string

A list of queue names.

Queues []GetQueuesQueue

A list of queues. Each element contains the following attributes:

NamePrefix string
OutputFile string
id string

The provider-assigned unique ID for this managed resource.

names string[]

A list of queue names.

queues GetQueuesQueue[]

A list of queues. Each element contains the following attributes:

namePrefix string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

names List[str]

A list of queue names.

queues List[GetQueuesQueue]

A list of queues. Each element contains the following attributes:

name_prefix str
output_file str

Supporting Types

GetQueuesQueue

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

DelaySeconds int

This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued.

Id string

The id of the queue, The value is set to name.

MaximumMessageSize int

This indicates the maximum length, in bytes, of any message body sent to the queue.

MessageRetentionPeriod int

Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue.

Name string

The name of the queue

PollingWaitSeconds int

Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out.

VisibilityTimeouts int

Dequeued messages change from active (visible) status to inactive (invisible) status. This attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period.

DelaySeconds int

This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued.

Id string

The id of the queue, The value is set to name.

MaximumMessageSize int

This indicates the maximum length, in bytes, of any message body sent to the queue.

MessageRetentionPeriod int

Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue.

Name string

The name of the queue

PollingWaitSeconds int

Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out.

VisibilityTimeouts int

Dequeued messages change from active (visible) status to inactive (invisible) status. This attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period.

delaySeconds number

This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued.

id string

The id of the queue, The value is set to name.

maximumMessageSize number

This indicates the maximum length, in bytes, of any message body sent to the queue.

messageRetentionPeriod number

Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue.

name string

The name of the queue

pollingWaitSeconds number

Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out.

visibilityTimeouts number

Dequeued messages change from active (visible) status to inactive (invisible) status. This attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period.

delay_seconds float

This attribute defines the length of time, in seconds, after which every message sent to the queue is dequeued.

id str

The id of the queue, The value is set to name.

maximum_message_size float

This indicates the maximum length, in bytes, of any message body sent to the queue.

message_retention_period float

Messages are deleted from the queue after a specified length of time, whether they have been activated or not. This attribute defines the viability period, in seconds, for every message in the queue.

name str

The name of the queue

polling_wait_seconds float

Long polling is measured in seconds. When this attribute is set to 0, long polling is disabled. When it is not set to 0, long polling is enabled and message dequeue requests will be processed only when valid messages are received or when long polling times out.

visibilityTimeouts float

Dequeued messages change from active (visible) status to inactive (invisible) status. This attribute defines the length of time, in seconds, that messages remain invisible. Messages return to active status after the set period.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.