1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TcmqQueue
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.TcmqQueue

Explore with Pulumi AI

Provides a resource to create a tcmq queue

Example Usage

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

const queue = new tencentcloud.TcmqQueue("queue", {queueName: "queue_name"});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

queue = tencentcloud.TcmqQueue("queue", queue_name="queue_name")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewTcmqQueue(ctx, "queue", &tencentcloud.TcmqQueueArgs{
			QueueName: pulumi.String("queue_name"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var queue = new Tencentcloud.TcmqQueue("queue", new()
    {
        QueueName = "queue_name",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TcmqQueue;
import com.pulumi.tencentcloud.TcmqQueueArgs;
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 queue = new TcmqQueue("queue", TcmqQueueArgs.builder()
            .queueName("queue_name")
            .build());

    }
}
Copy
resources:
  queue:
    type: tencentcloud:TcmqQueue
    properties:
      queueName: queue_name
Copy

Create TcmqQueue Resource

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

Constructor syntax

new TcmqQueue(name: string, args: TcmqQueueArgs, opts?: CustomResourceOptions);
@overload
def TcmqQueue(resource_name: str,
              args: TcmqQueueArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def TcmqQueue(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              queue_name: Optional[str] = None,
              policy: Optional[float] = None,
              first_query_interval: Optional[float] = None,
              max_msg_size: Optional[float] = None,
              max_query_count: Optional[float] = None,
              max_receive_count: Optional[float] = None,
              max_time_to_live: Optional[float] = None,
              max_msg_heap_num: Optional[float] = None,
              msg_retention_seconds: Optional[float] = None,
              polling_wait_seconds: Optional[float] = None,
              dead_letter_queue_name: Optional[str] = None,
              retention_size_in_mb: Optional[float] = None,
              rewind_seconds: Optional[float] = None,
              tcmq_queue_id: Optional[str] = None,
              trace: Optional[bool] = None,
              transaction: Optional[float] = None,
              visibility_timeout: Optional[float] = None)
func NewTcmqQueue(ctx *Context, name string, args TcmqQueueArgs, opts ...ResourceOption) (*TcmqQueue, error)
public TcmqQueue(string name, TcmqQueueArgs args, CustomResourceOptions? opts = null)
public TcmqQueue(String name, TcmqQueueArgs args)
public TcmqQueue(String name, TcmqQueueArgs args, CustomResourceOptions options)
type: tencentcloud:TcmqQueue
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

TcmqQueue 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 TcmqQueue resource accepts the following input properties:

QueueName This property is required. string
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
DeadLetterQueueName string
Dead letter queue name.
FirstQueryInterval double
First lookback interval.
MaxMsgHeapNum double
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
MaxMsgSize double
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
MaxQueryCount double
Maximum number of lookbacks.
MaxReceiveCount double
Maximum receipt times. Value range: 1-1000.
MaxTimeToLive double
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
MsgRetentionSeconds double
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
Policy double
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
PollingWaitSeconds double
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
RetentionSizeInMb double
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
RewindSeconds double
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
TcmqQueueId string
ID of the resource.
Trace bool
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
Transaction double
1: transaction queue; 0: general queue.
VisibilityTimeout double
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
QueueName This property is required. string
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
DeadLetterQueueName string
Dead letter queue name.
FirstQueryInterval float64
First lookback interval.
MaxMsgHeapNum float64
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
MaxMsgSize float64
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
MaxQueryCount float64
Maximum number of lookbacks.
MaxReceiveCount float64
Maximum receipt times. Value range: 1-1000.
MaxTimeToLive float64
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
MsgRetentionSeconds float64
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
Policy float64
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
PollingWaitSeconds float64
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
RetentionSizeInMb float64
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
RewindSeconds float64
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
TcmqQueueId string
ID of the resource.
Trace bool
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
Transaction float64
1: transaction queue; 0: general queue.
VisibilityTimeout float64
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
queueName This property is required. String
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
deadLetterQueueName String
Dead letter queue name.
firstQueryInterval Double
First lookback interval.
maxMsgHeapNum Double
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
maxMsgSize Double
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
maxQueryCount Double
Maximum number of lookbacks.
maxReceiveCount Double
Maximum receipt times. Value range: 1-1000.
maxTimeToLive Double
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
msgRetentionSeconds Double
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
policy Double
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
pollingWaitSeconds Double
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
retentionSizeInMb Double
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
rewindSeconds Double
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
tcmqQueueId String
ID of the resource.
trace Boolean
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
transaction Double
1: transaction queue; 0: general queue.
visibilityTimeout Double
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
queueName This property is required. string
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
deadLetterQueueName string
Dead letter queue name.
firstQueryInterval number
First lookback interval.
maxMsgHeapNum number
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
maxMsgSize number
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
maxQueryCount number
Maximum number of lookbacks.
maxReceiveCount number
Maximum receipt times. Value range: 1-1000.
maxTimeToLive number
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
msgRetentionSeconds number
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
policy number
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
pollingWaitSeconds number
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
retentionSizeInMb number
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
rewindSeconds number
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
tcmqQueueId string
ID of the resource.
trace boolean
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
transaction number
1: transaction queue; 0: general queue.
visibilityTimeout number
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
queue_name This property is required. str
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
dead_letter_queue_name str
Dead letter queue name.
first_query_interval float
First lookback interval.
max_msg_heap_num float
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
max_msg_size float
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
max_query_count float
Maximum number of lookbacks.
max_receive_count float
Maximum receipt times. Value range: 1-1000.
max_time_to_live float
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
msg_retention_seconds float
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
policy float
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
polling_wait_seconds float
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
retention_size_in_mb float
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
rewind_seconds float
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
tcmq_queue_id str
ID of the resource.
trace bool
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
transaction float
1: transaction queue; 0: general queue.
visibility_timeout float
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
queueName This property is required. String
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
deadLetterQueueName String
Dead letter queue name.
firstQueryInterval Number
First lookback interval.
maxMsgHeapNum Number
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
maxMsgSize Number
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
maxQueryCount Number
Maximum number of lookbacks.
maxReceiveCount Number
Maximum receipt times. Value range: 1-1000.
maxTimeToLive Number
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
msgRetentionSeconds Number
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
policy Number
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
pollingWaitSeconds Number
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
retentionSizeInMb Number
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
rewindSeconds Number
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
tcmqQueueId String
ID of the resource.
trace Boolean
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
transaction Number
1: transaction queue; 0: general queue.
visibilityTimeout Number
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.

Outputs

All input properties are implicitly available as output properties. Additionally, the TcmqQueue 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 TcmqQueue Resource

Get an existing TcmqQueue 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?: TcmqQueueState, opts?: CustomResourceOptions): TcmqQueue
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dead_letter_queue_name: Optional[str] = None,
        first_query_interval: Optional[float] = None,
        max_msg_heap_num: Optional[float] = None,
        max_msg_size: Optional[float] = None,
        max_query_count: Optional[float] = None,
        max_receive_count: Optional[float] = None,
        max_time_to_live: Optional[float] = None,
        msg_retention_seconds: Optional[float] = None,
        policy: Optional[float] = None,
        polling_wait_seconds: Optional[float] = None,
        queue_name: Optional[str] = None,
        retention_size_in_mb: Optional[float] = None,
        rewind_seconds: Optional[float] = None,
        tcmq_queue_id: Optional[str] = None,
        trace: Optional[bool] = None,
        transaction: Optional[float] = None,
        visibility_timeout: Optional[float] = None) -> TcmqQueue
func GetTcmqQueue(ctx *Context, name string, id IDInput, state *TcmqQueueState, opts ...ResourceOption) (*TcmqQueue, error)
public static TcmqQueue Get(string name, Input<string> id, TcmqQueueState? state, CustomResourceOptions? opts = null)
public static TcmqQueue get(String name, Output<String> id, TcmqQueueState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:TcmqQueue    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DeadLetterQueueName string
Dead letter queue name.
FirstQueryInterval double
First lookback interval.
MaxMsgHeapNum double
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
MaxMsgSize double
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
MaxQueryCount double
Maximum number of lookbacks.
MaxReceiveCount double
Maximum receipt times. Value range: 1-1000.
MaxTimeToLive double
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
MsgRetentionSeconds double
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
Policy double
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
PollingWaitSeconds double
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
QueueName string
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
RetentionSizeInMb double
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
RewindSeconds double
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
TcmqQueueId string
ID of the resource.
Trace bool
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
Transaction double
1: transaction queue; 0: general queue.
VisibilityTimeout double
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
DeadLetterQueueName string
Dead letter queue name.
FirstQueryInterval float64
First lookback interval.
MaxMsgHeapNum float64
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
MaxMsgSize float64
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
MaxQueryCount float64
Maximum number of lookbacks.
MaxReceiveCount float64
Maximum receipt times. Value range: 1-1000.
MaxTimeToLive float64
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
MsgRetentionSeconds float64
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
Policy float64
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
PollingWaitSeconds float64
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
QueueName string
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
RetentionSizeInMb float64
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
RewindSeconds float64
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
TcmqQueueId string
ID of the resource.
Trace bool
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
Transaction float64
1: transaction queue; 0: general queue.
VisibilityTimeout float64
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
deadLetterQueueName String
Dead letter queue name.
firstQueryInterval Double
First lookback interval.
maxMsgHeapNum Double
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
maxMsgSize Double
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
maxQueryCount Double
Maximum number of lookbacks.
maxReceiveCount Double
Maximum receipt times. Value range: 1-1000.
maxTimeToLive Double
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
msgRetentionSeconds Double
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
policy Double
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
pollingWaitSeconds Double
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
queueName String
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
retentionSizeInMb Double
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
rewindSeconds Double
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
tcmqQueueId String
ID of the resource.
trace Boolean
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
transaction Double
1: transaction queue; 0: general queue.
visibilityTimeout Double
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
deadLetterQueueName string
Dead letter queue name.
firstQueryInterval number
First lookback interval.
maxMsgHeapNum number
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
maxMsgSize number
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
maxQueryCount number
Maximum number of lookbacks.
maxReceiveCount number
Maximum receipt times. Value range: 1-1000.
maxTimeToLive number
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
msgRetentionSeconds number
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
policy number
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
pollingWaitSeconds number
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
queueName string
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
retentionSizeInMb number
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
rewindSeconds number
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
tcmqQueueId string
ID of the resource.
trace boolean
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
transaction number
1: transaction queue; 0: general queue.
visibilityTimeout number
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
dead_letter_queue_name str
Dead letter queue name.
first_query_interval float
First lookback interval.
max_msg_heap_num float
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
max_msg_size float
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
max_query_count float
Maximum number of lookbacks.
max_receive_count float
Maximum receipt times. Value range: 1-1000.
max_time_to_live float
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
msg_retention_seconds float
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
policy float
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
polling_wait_seconds float
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
queue_name str
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
retention_size_in_mb float
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
rewind_seconds float
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
tcmq_queue_id str
ID of the resource.
trace bool
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
transaction float
1: transaction queue; 0: general queue.
visibility_timeout float
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.
deadLetterQueueName String
Dead letter queue name.
firstQueryInterval Number
First lookback interval.
maxMsgHeapNum Number
Maximum number of heaped messages. The value range is 1,000,000-10,000,000 during the beta test and can be 1,000,000-1,000,000,000 after the product is officially released. The default value is 10,000,000 during the beta test and will be 100,000,000 after the product is officially released.
maxMsgSize Number
Maximum message length. Value range: 1024-65536 bytes (i.e., 1-64 KB). Default value: 65536.
maxQueryCount Number
Maximum number of lookbacks.
maxReceiveCount Number
Maximum receipt times. Value range: 1-1000.
maxTimeToLive Number
Maximum period in seconds before an unconsumed message expires, which is required if policy is 1. Value range: 300-43200. This value should be smaller than msgRetentionSeconds (maximum message retention period).
msgRetentionSeconds Number
The max period during which a message is retained before it is automatically acknowledged. Value range: 30-43,200 seconds (30 seconds to 12 hours). Default value: 3600 seconds (1 hour).
policy Number
Dead letter policy. 0: message has been consumed multiple times but not deleted; 1: Time-To-Live has elapsed.
pollingWaitSeconds Number
Long polling wait time for message reception. Value range: 0-30 seconds. Default value: 0.
queueName String
Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
retentionSizeInMb Number
Queue storage space configured for message rewind. Value range: 10,240-512,000 MB (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
rewindSeconds Number
Rewindable time of messages in the queue. Value range: 0-1,296,000s (if message rewind is enabled). The value 0 indicates that message rewind is not enabled.
tcmqQueueId String
ID of the resource.
trace Boolean
Whether to enable message trace. true: yes; false: no. If this field is not configured, the feature will not be enabled.
transaction Number
1: transaction queue; 0: general queue.
visibilityTimeout Number
Message visibility timeout period. Value range: 1-43200 seconds (i.e., 12 hours). Default value: 30.

Import

tcmq queue can be imported using the id, e.g.

$ pulumi import tencentcloud:index/tcmqQueue:TcmqQueue queue queue_id
Copy

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

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.