alicloud_message_service_queue
更新時間:
Provides a Message Service Queue resource.
For information about Message Service Queue and how to use it, see What is Queue.
-> NOTE: Available since v1.188.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_message_service_queue" "default" {
delay_seconds = "2"
polling_wait_seconds = "2"
message_retention_period = "566"
maximum_message_size = "1123"
visibility_timeout = "30"
queue_name = var.name
}
Argument Reference
The following arguments are supported:
delay_seconds
- (Optional, Computed) This means that messages sent to the queue can only be consumed after the delay time set by this parameter, in seconds.logging_enabled
- (Optional) Represents whether the log management function is enabled.maximum_message_size
- (Optional, Computed) Represents the maximum length of the message body sent to the Queue, in Byte.message_retention_period
- (Optional, Computed) Represents the longest life time of the message in the Queue.polling_wait_seconds
- (Optional, Computed) The longest waiting time for a Queue request when the number of messages is empty, in seconds.queue_name
- (Required, ForceNew) Representative resources.visibility_timeout
- (Optional, Computed) Represents the duration after the message is removed from the Queue and changed from the Active state to the Inactive state.
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- Represents the time when the Queue was created.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Queue.delete
- (Defaults to 5 mins) Used when delete the Queue.update
- (Defaults to 5 mins) Used when update the Queue.
Import
Message Service Queue can be imported using the id, e.g.
$ terraform import alicloud_message_service_queue.example <id>
文檔內容是否對您有幫助?