1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. amqp
  5. Queue
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi

    Provides a RabbitMQ (AMQP) Queue resource.

    For information about RabbitMQ (AMQP) Queue and how to use it, see What is Queue.

    NOTE: Available since v1.127.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const defaultInstance = new alicloud.amqp.Instance("default", {
        instanceName: `${name}-${_default.result}`,
        instanceType: "enterprise",
        maxTps: "3000",
        maxConnections: 2000,
        queueCapacity: "200",
        paymentType: "Subscription",
        renewalStatus: "AutoRenewal",
        renewalDuration: 1,
        renewalDurationUnit: "Year",
        supportEip: true,
    });
    const defaultVirtualHost = new alicloud.amqp.VirtualHost("default", {
        instanceId: defaultInstance.id,
        virtualHostName: `${name}-${_default.result}`,
    });
    const defaultQueue = new alicloud.amqp.Queue("default", {
        instanceId: defaultInstance.id,
        virtualHostName: defaultVirtualHost.virtualHostName,
        queueName: `${name}-${_default.result}`,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = random.index.Integer("default",
        min=10000,
        max=99999)
    default_instance = alicloud.amqp.Instance("default",
        instance_name=f"{name}-{default['result']}",
        instance_type="enterprise",
        max_tps="3000",
        max_connections=2000,
        queue_capacity="200",
        payment_type="Subscription",
        renewal_status="AutoRenewal",
        renewal_duration=1,
        renewal_duration_unit="Year",
        support_eip=True)
    default_virtual_host = alicloud.amqp.VirtualHost("default",
        instance_id=default_instance.id,
        virtual_host_name=f"{name}-{default['result']}")
    default_queue = alicloud.amqp.Queue("default",
        instance_id=default_instance.id,
        virtual_host_name=default_virtual_host.virtual_host_name,
        queue_name=f"{name}-{default['result']}")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := amqp.NewInstance(ctx, "default", &amqp.InstanceArgs{
    			InstanceName:        pulumi.Sprintf("%v-%v", name, _default.Result),
    			InstanceType:        pulumi.String("enterprise"),
    			MaxTps:              pulumi.String("3000"),
    			MaxConnections:      pulumi.Int(2000),
    			QueueCapacity:       pulumi.String("200"),
    			PaymentType:         pulumi.String("Subscription"),
    			RenewalStatus:       pulumi.String("AutoRenewal"),
    			RenewalDuration:     pulumi.Int(1),
    			RenewalDurationUnit: pulumi.String("Year"),
    			SupportEip:          pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVirtualHost, err := amqp.NewVirtualHost(ctx, "default", &amqp.VirtualHostArgs{
    			InstanceId:      defaultInstance.ID(),
    			VirtualHostName: pulumi.Sprintf("%v-%v", name, _default.Result),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = amqp.NewQueue(ctx, "default", &amqp.QueueArgs{
    			InstanceId:      defaultInstance.ID(),
    			VirtualHostName: defaultVirtualHost.VirtualHostName,
    			QueueName:       pulumi.Sprintf("%v-%v", name, _default.Result),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultInstance = new AliCloud.Amqp.Instance("default", new()
        {
            InstanceName = $"{name}-{@default.Result}",
            InstanceType = "enterprise",
            MaxTps = "3000",
            MaxConnections = 2000,
            QueueCapacity = "200",
            PaymentType = "Subscription",
            RenewalStatus = "AutoRenewal",
            RenewalDuration = 1,
            RenewalDurationUnit = "Year",
            SupportEip = true,
        });
    
        var defaultVirtualHost = new AliCloud.Amqp.VirtualHost("default", new()
        {
            InstanceId = defaultInstance.Id,
            VirtualHostName = $"{name}-{@default.Result}",
        });
    
        var defaultQueue = new AliCloud.Amqp.Queue("default", new()
        {
            InstanceId = defaultInstance.Id,
            VirtualHostName = defaultVirtualHost.VirtualHostName,
            QueueName = $"{name}-{@default.Result}",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.Integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.amqp.Instance;
    import com.pulumi.alicloud.amqp.InstanceArgs;
    import com.pulumi.alicloud.amqp.VirtualHost;
    import com.pulumi.alicloud.amqp.VirtualHostArgs;
    import com.pulumi.alicloud.amqp.Queue;
    import com.pulumi.alicloud.amqp.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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new Integer("default", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
                .instanceName(String.format("%s-%s", name,default_.result()))
                .instanceType("enterprise")
                .maxTps("3000")
                .maxConnections(2000)
                .queueCapacity("200")
                .paymentType("Subscription")
                .renewalStatus("AutoRenewal")
                .renewalDuration(1)
                .renewalDurationUnit("Year")
                .supportEip(true)
                .build());
    
            var defaultVirtualHost = new VirtualHost("defaultVirtualHost", VirtualHostArgs.builder()
                .instanceId(defaultInstance.id())
                .virtualHostName(String.format("%s-%s", name,default_.result()))
                .build());
    
            var defaultQueue = new Queue("defaultQueue", QueueArgs.builder()
                .instanceId(defaultInstance.id())
                .virtualHostName(defaultVirtualHost.virtualHostName())
                .queueName(String.format("%s-%s", name,default_.result()))
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: random:Integer
        properties:
          min: 10000
          max: 99999
      defaultInstance:
        type: alicloud:amqp:Instance
        name: default
        properties:
          instanceName: ${name}-${default.result}
          instanceType: enterprise
          maxTps: 3000
          maxConnections: 2000
          queueCapacity: 200
          paymentType: Subscription
          renewalStatus: AutoRenewal
          renewalDuration: 1
          renewalDurationUnit: Year
          supportEip: true
      defaultVirtualHost:
        type: alicloud:amqp:VirtualHost
        name: default
        properties:
          instanceId: ${defaultInstance.id}
          virtualHostName: ${name}-${default.result}
      defaultQueue:
        type: alicloud:amqp:Queue
        name: default
        properties:
          instanceId: ${defaultInstance.id}
          virtualHostName: ${defaultVirtualHost.virtualHostName}
          queueName: ${name}-${default.result}
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create Queue Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Queue(name: string, args: QueueArgs, opts?: CustomResourceOptions);
    @overload
    def Queue(resource_name: str,
              args: QueueArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Queue(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              instance_id: Optional[str] = None,
              queue_name: Optional[str] = None,
              virtual_host_name: Optional[str] = None,
              auto_delete_state: Optional[bool] = None,
              auto_expire_state: Optional[str] = None,
              dead_letter_exchange: Optional[str] = None,
              dead_letter_routing_key: Optional[str] = None,
              max_length: Optional[str] = None,
              maximum_priority: Optional[int] = None,
              message_ttl: Optional[str] = None)
    func NewQueue(ctx *Context, name string, args QueueArgs, opts ...ResourceOption) (*Queue, error)
    public Queue(string name, QueueArgs args, CustomResourceOptions? opts = null)
    public Queue(String name, QueueArgs args)
    public Queue(String name, QueueArgs args, CustomResourceOptions options)
    
    type: alicloud:amqp:Queue
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args QueueArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args QueueArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args QueueArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QueueArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QueueArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var queueResource = new AliCloud.Amqp.Queue("queueResource", new()
    {
        InstanceId = "string",
        QueueName = "string",
        VirtualHostName = "string",
        AutoDeleteState = false,
        AutoExpireState = "string",
        DeadLetterExchange = "string",
        DeadLetterRoutingKey = "string",
        MaxLength = "string",
        MaximumPriority = 0,
        MessageTtl = "string",
    });
    
    example, err := amqp.NewQueue(ctx, "queueResource", &amqp.QueueArgs{
    	InstanceId:           pulumi.String("string"),
    	QueueName:            pulumi.String("string"),
    	VirtualHostName:      pulumi.String("string"),
    	AutoDeleteState:      pulumi.Bool(false),
    	AutoExpireState:      pulumi.String("string"),
    	DeadLetterExchange:   pulumi.String("string"),
    	DeadLetterRoutingKey: pulumi.String("string"),
    	MaxLength:            pulumi.String("string"),
    	MaximumPriority:      pulumi.Int(0),
    	MessageTtl:           pulumi.String("string"),
    })
    
    var queueResource = new com.pulumi.alicloud.amqp.Queue("queueResource", com.pulumi.alicloud.amqp.QueueArgs.builder()
        .instanceId("string")
        .queueName("string")
        .virtualHostName("string")
        .autoDeleteState(false)
        .autoExpireState("string")
        .deadLetterExchange("string")
        .deadLetterRoutingKey("string")
        .maxLength("string")
        .maximumPriority(0)
        .messageTtl("string")
        .build());
    
    queue_resource = alicloud.amqp.Queue("queueResource",
        instance_id="string",
        queue_name="string",
        virtual_host_name="string",
        auto_delete_state=False,
        auto_expire_state="string",
        dead_letter_exchange="string",
        dead_letter_routing_key="string",
        max_length="string",
        maximum_priority=0,
        message_ttl="string")
    
    const queueResource = new alicloud.amqp.Queue("queueResource", {
        instanceId: "string",
        queueName: "string",
        virtualHostName: "string",
        autoDeleteState: false,
        autoExpireState: "string",
        deadLetterExchange: "string",
        deadLetterRoutingKey: "string",
        maxLength: "string",
        maximumPriority: 0,
        messageTtl: "string",
    });
    
    type: alicloud:amqp:Queue
    properties:
        autoDeleteState: false
        autoExpireState: string
        deadLetterExchange: string
        deadLetterRoutingKey: string
        instanceId: string
        maxLength: string
        maximumPriority: 0
        messageTtl: string
        queueName: string
        virtualHostName: string
    

    Queue Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Queue resource accepts the following input properties:

    InstanceId string
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    QueueName string
    The name of the queue to create.
    VirtualHostName string
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    AutoDeleteState bool
    Specifies whether to automatically delete the queue. Valid values:
    AutoExpireState string
    The auto-expiration time for the queue.
    DeadLetterExchange string
    The dead-letter exchange.
    DeadLetterRoutingKey string
    The dead-letter routing key.
    MaxLength string
    The maximum number of messages that can be stored in the queue.
    MaximumPriority int
    The priority of the queue.
    MessageTtl string
    The time to live (TTL) of a message in the queue.
    InstanceId string
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    QueueName string
    The name of the queue to create.
    VirtualHostName string
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    AutoDeleteState bool
    Specifies whether to automatically delete the queue. Valid values:
    AutoExpireState string
    The auto-expiration time for the queue.
    DeadLetterExchange string
    The dead-letter exchange.
    DeadLetterRoutingKey string
    The dead-letter routing key.
    MaxLength string
    The maximum number of messages that can be stored in the queue.
    MaximumPriority int
    The priority of the queue.
    MessageTtl string
    The time to live (TTL) of a message in the queue.
    instanceId String
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    queueName String
    The name of the queue to create.
    virtualHostName String
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    autoDeleteState Boolean
    Specifies whether to automatically delete the queue. Valid values:
    autoExpireState String
    The auto-expiration time for the queue.
    deadLetterExchange String
    The dead-letter exchange.
    deadLetterRoutingKey String
    The dead-letter routing key.
    maxLength String
    The maximum number of messages that can be stored in the queue.
    maximumPriority Integer
    The priority of the queue.
    messageTtl String
    The time to live (TTL) of a message in the queue.
    instanceId string
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    queueName string
    The name of the queue to create.
    virtualHostName string
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    autoDeleteState boolean
    Specifies whether to automatically delete the queue. Valid values:
    autoExpireState string
    The auto-expiration time for the queue.
    deadLetterExchange string
    The dead-letter exchange.
    deadLetterRoutingKey string
    The dead-letter routing key.
    maxLength string
    The maximum number of messages that can be stored in the queue.
    maximumPriority number
    The priority of the queue.
    messageTtl string
    The time to live (TTL) of a message in the queue.
    instance_id str
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    queue_name str
    The name of the queue to create.
    virtual_host_name str
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    auto_delete_state bool
    Specifies whether to automatically delete the queue. Valid values:
    auto_expire_state str
    The auto-expiration time for the queue.
    dead_letter_exchange str
    The dead-letter exchange.
    dead_letter_routing_key str
    The dead-letter routing key.
    max_length str
    The maximum number of messages that can be stored in the queue.
    maximum_priority int
    The priority of the queue.
    message_ttl str
    The time to live (TTL) of a message in the queue.
    instanceId String
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    queueName String
    The name of the queue to create.
    virtualHostName String
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    autoDeleteState Boolean
    Specifies whether to automatically delete the queue. Valid values:
    autoExpireState String
    The auto-expiration time for the queue.
    deadLetterExchange String
    The dead-letter exchange.
    deadLetterRoutingKey String
    The dead-letter routing key.
    maxLength String
    The maximum number of messages that can be stored in the queue.
    maximumPriority Number
    The priority of the queue.
    messageTtl String
    The time to live (TTL) of a message in the queue.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Queue resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Queue Resource

    Get an existing Queue resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: QueueState, opts?: CustomResourceOptions): Queue
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_delete_state: Optional[bool] = None,
            auto_expire_state: Optional[str] = None,
            dead_letter_exchange: Optional[str] = None,
            dead_letter_routing_key: Optional[str] = None,
            instance_id: Optional[str] = None,
            max_length: Optional[str] = None,
            maximum_priority: Optional[int] = None,
            message_ttl: Optional[str] = None,
            queue_name: Optional[str] = None,
            virtual_host_name: Optional[str] = None) -> Queue
    func GetQueue(ctx *Context, name string, id IDInput, state *QueueState, opts ...ResourceOption) (*Queue, error)
    public static Queue Get(string name, Input<string> id, QueueState? state, CustomResourceOptions? opts = null)
    public static Queue get(String name, Output<String> id, QueueState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:amqp:Queue    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoDeleteState bool
    Specifies whether to automatically delete the queue. Valid values:
    AutoExpireState string
    The auto-expiration time for the queue.
    DeadLetterExchange string
    The dead-letter exchange.
    DeadLetterRoutingKey string
    The dead-letter routing key.
    InstanceId string
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    MaxLength string
    The maximum number of messages that can be stored in the queue.
    MaximumPriority int
    The priority of the queue.
    MessageTtl string
    The time to live (TTL) of a message in the queue.
    QueueName string
    The name of the queue to create.
    VirtualHostName string
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    AutoDeleteState bool
    Specifies whether to automatically delete the queue. Valid values:
    AutoExpireState string
    The auto-expiration time for the queue.
    DeadLetterExchange string
    The dead-letter exchange.
    DeadLetterRoutingKey string
    The dead-letter routing key.
    InstanceId string
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    MaxLength string
    The maximum number of messages that can be stored in the queue.
    MaximumPriority int
    The priority of the queue.
    MessageTtl string
    The time to live (TTL) of a message in the queue.
    QueueName string
    The name of the queue to create.
    VirtualHostName string
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    autoDeleteState Boolean
    Specifies whether to automatically delete the queue. Valid values:
    autoExpireState String
    The auto-expiration time for the queue.
    deadLetterExchange String
    The dead-letter exchange.
    deadLetterRoutingKey String
    The dead-letter routing key.
    instanceId String
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    maxLength String
    The maximum number of messages that can be stored in the queue.
    maximumPriority Integer
    The priority of the queue.
    messageTtl String
    The time to live (TTL) of a message in the queue.
    queueName String
    The name of the queue to create.
    virtualHostName String
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    autoDeleteState boolean
    Specifies whether to automatically delete the queue. Valid values:
    autoExpireState string
    The auto-expiration time for the queue.
    deadLetterExchange string
    The dead-letter exchange.
    deadLetterRoutingKey string
    The dead-letter routing key.
    instanceId string
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    maxLength string
    The maximum number of messages that can be stored in the queue.
    maximumPriority number
    The priority of the queue.
    messageTtl string
    The time to live (TTL) of a message in the queue.
    queueName string
    The name of the queue to create.
    virtualHostName string
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    auto_delete_state bool
    Specifies whether to automatically delete the queue. Valid values:
    auto_expire_state str
    The auto-expiration time for the queue.
    dead_letter_exchange str
    The dead-letter exchange.
    dead_letter_routing_key str
    The dead-letter routing key.
    instance_id str
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    max_length str
    The maximum number of messages that can be stored in the queue.
    maximum_priority int
    The priority of the queue.
    message_ttl str
    The time to live (TTL) of a message in the queue.
    queue_name str
    The name of the queue to create.
    virtual_host_name str
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.
    autoDeleteState Boolean
    Specifies whether to automatically delete the queue. Valid values:
    autoExpireState String
    The auto-expiration time for the queue.
    deadLetterExchange String
    The dead-letter exchange.
    deadLetterRoutingKey String
    The dead-letter routing key.
    instanceId String
    The ID of the ApsaraMQ for RabbitMQ instance to which the queue belongs.
    maxLength String
    The maximum number of messages that can be stored in the queue.
    maximumPriority Number
    The priority of the queue.
    messageTtl String
    The time to live (TTL) of a message in the queue.
    queueName String
    The name of the queue to create.
    virtualHostName String
    The name of the vhost to which the queue belongs. The name can contain only letters, digits, hyphens (-), underscores (_), periods (.), number signs (#), forward slashes (/), and at signs (@). The name must be 1 to 255 characters in length.

    Import

    RabbitMQ (AMQP) Queue can be imported using the id, e.g.

    $ pulumi import alicloud:amqp/queue:Queue example <instance_id>:<virtual_host_name>:<queue_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate