QueueProps
Properties for defining a Queue.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mns-queue
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmns"
&alicloudroscdkmns.QueueProps {
QueueName: interface{},
DelaySeconds: interface{},
DlqPolicy: interface{},
LoggingEnabled: interface{},
MaximumMessageSize: interface{},
MessageRetentionPeriod: interface{},
PollingWaitSeconds: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkmns.RosQueue.TagsProperty,
VisibilityTimeout: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
QueueName | interface{} | Property queueName: Queue name. |
DelaySeconds | interface{} | Property delaySeconds: It is measured in seconds. |
DlqPolicy | interface{} | Property dlqPolicy: Dead-letter queue policy. |
LoggingEnabled | interface{} | Property loggingEnabled: Whether to enable log management. |
MaximumMessageSize | interface{} | Property maximumMessageSize: Maximum body length of a message sent to the queue, measured in bytes. |
MessageRetentionPeriod | interface{} | Property messageRetentionPeriod: The maximum time to live (TTL) for a message in the queue. |
PollingWaitSeconds | interface{} | Property pollingWaitSeconds: It is the maximum time that a ReceiveMessage request could be waiting for any incoming messages, while there are no message in the queue. |
Tags | *[]TagsProperty | Property tags: Tags to attach to Queue. |
VisibilityTimeout | interface{} | Property visibilityTimeout: Duration in which a message stays in Inactive status after it is consumed from the queue. |
QueueNameRequired
QueueName interface{}
- Type: interface{}
Property queueName: Queue name.
DelaySecondsOptional
DelaySeconds interface{}
- Type: interface{}
Property delaySeconds: It is measured in seconds.
All messages sent to the queue can be consumed until the DelaySeconds expires. An integer between 0 and 604800 (7 days). The default value is 0
DlqPolicyOptional
DlqPolicy interface{}
- Type: interface{}
Property dlqPolicy: Dead-letter queue policy.
LoggingEnabledOptional
LoggingEnabled interface{}
- Type: interface{}
Property loggingEnabled: Whether to enable log management.
"true" indicates that log management is enabled, whereas "false" indicates that log management is disabled. The default value is false
MaximumMessageSizeOptional
MaximumMessageSize interface{}
- Type: interface{}
Property maximumMessageSize: Maximum body length of a message sent to the queue, measured in bytes.
An integer between 1024 (1K) and 65536 (64K). The default value is 65536 (64K).
MessageRetentionPeriodOptional
MessageRetentionPeriod interface{}
- Type: interface{}
Property messageRetentionPeriod: The maximum time to live (TTL) for a message in the queue.
After the specified period, the message is deleted, regardless of whether it has been retrieved. Valid values: 60 to 604800. Unit: seconds. Default value: 345600.
PollingWaitSecondsOptional
PollingWaitSeconds interface{}
- Type: interface{}
Property pollingWaitSeconds: It is the maximum time that a ReceiveMessage request could be waiting for any incoming messages, while there are no message in the queue.
Measured in seconds. An integer between 0 and 30 seconds. The default value is 0 (seconds)
TagsOptional
Tags *[]TagsProperty
- Type: *[]TagsProperty
Property tags: Tags to attach to Queue.
Max support 20 tags to add during create Queue. Each tag with two properties Key and Value, and Key is required.
VisibilityTimeoutOptional
VisibilityTimeout interface{}
- Type: interface{}
Property visibilityTimeout: Duration in which a message stays in Inactive status after it is consumed from the queue.
Measured in seconds. An integer between 1 and 43200 (12 hours). The default value is 30 (seconds)