You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`namespace_id` - (Required) The ID of the Namespace associated to.
70
+
71
+
*`name` - (Optional) The name of the queue. Either `name` or `name_prefix` is required. Conflicts with `name_prefix`.
72
+
73
+
*`name_prefix` - (Optional) Creates a unique name beginning with the specified prefix. Conflicts with `name`.
74
+
75
+
*`message_max_age` - (Optional) The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600.
76
+
77
+
*`message_max_size` - (Optional) The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144.
78
+
79
+
*`sqs` - (Optional) The SQS attributes of the queue. Conflicts with `nats`.
80
+
-`endpoint` - (Optional) The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `http://sqs-sns.mnq.{region}.scw.cloud`.
81
+
-`access_key` - (Required) The access key of the SQS queue.
82
+
-`secret_key` - (Required) The secret key of the SQS queue.
83
+
-`fifo_queue` - (Optional) Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`.
84
+
-`content_based_deduplication` - (Optional) Specifies whether to enable content-based deduplication. Defaults to `false`.
85
+
-`receive_wait_time_seconds` - (Optional) The number of seconds to wait for a message to arrive in the queue before returning. Must be between 0 and 20. Defaults to 0.
86
+
-`visibility_timeout_seconds` - (Optional) The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30.
87
+
- For more information about the SQS limitations, see [the documentation](https://www.scaleway.com/en/developers/api/messaging-and-queuing/#technical-limitations).
88
+
89
+
*`nats` - (Optional) The NATS attributes of the queue. Conflicts with `sqs`.
90
+
-`endpoint` - (Optional) The endpoint of the NATS queue. Can contain a {region} placeholder. Defaults to `nats://nats.mnq.{region}.scw.cloud:4222`.
91
+
-`credentials` - (Required) Line jump separated key and seed.
92
+
-`retention_policy` - (Optional) The retention policy of the queue. See https://docs.nats.io/nats-concepts/jetstream/streams#retentionpolicy for more information. Defaults to `workqueue`.
93
+
94
+
95
+
### Attribute Reference
96
+
97
+
In addition to all arguments above, the following attributes are exported:
98
+
99
+
*`sqs` - The SQS attributes of the queue.
100
+
~ `url` - The URL of the queue.
101
+
102
+
### Import
103
+
104
+
Queues can be imported using the `{region}/{namespace-id}/{queue-name}` format:
0 commit comments