@@ -1156,16 +1156,17 @@ Amazon SQS
1156
1156
1157
1157
.. versionadded :: 5.1
1158
1158
1159
- The Amazon SQS transport has been added in Symfony 5.1
1160
- Install it by running:
1159
+ The Amazon SQS transport as introduced in Symfony 5.1.
1161
1160
1162
- .. code-block :: terminal
1161
+ Install Amazon SQS transport by running:
1163
1162
1164
- $ composer require symfony/amazon-sqs-messenger
1163
+ .. code-block :: terminal
1164
+
1165
+ $ composer require symfony/amazon-sqs-messenger
1165
1166
1166
1167
The ``SQS `` transport configuration looks like this:
1167
1168
1168
- .. code-block :: bash
1169
+ .. code-block :: env
1169
1170
1170
1171
# .env
1171
1172
MESSENGER_TRANSPORT_DSN=sqs://AKIAIOSFODNN7EXAMPLE:j17M97ffSVoKI0briFoo9a@sqs.eu-west-3.amazonaws.com/messages
@@ -1174,29 +1175,29 @@ The ``SQS`` transport configuration looks like this:
1174
1175
.. note ::
1175
1176
1176
1177
The transport will automatically create queues that are needed. This
1177
- can be disabled setting the " auto_setup" option to ``false ``.
1178
+ can be disabled setting the `` auto_setup `` option to ``false ``.
1178
1179
1179
1180
A number of options can be configured via the DSN or via the ``options `` key
1180
1181
under the transport in ``messenger.yaml ``:
1181
1182
1182
- ================== ====================================== ======================
1183
- Option Description Default
1184
- ================== ====================================== ======================
1185
- access_key AWS access key
1186
- account Identifier of the AWS account The owner of the credentials
1187
- auto_setup Whether the table should be created true
1188
- automatically during send / get.
1189
- buffer_size Number of messages to prefetch 9
1190
- endpoint Absolute URL to the SQS service https://sqs.eu-west-1.amazonaws.com
1191
- poll_timeout Wait for new message duration in 0.1
1192
- seconds
1193
- queue_name Name of the queue messages
1194
- region Name of the AWS region eu-west-1
1195
- secret_key AWS secret key
1196
- visibility_timeout Amount of seconds the message will Queue's configuration
1197
- not be visible (`Visibility Timeout `_)
1198
- wait_time `Long polling `_ duration in seconds 20
1199
- ================== ====================================== ======================
1183
+ ====================== ====================================== ============= ======================
1184
+ Option Description Default
1185
+ ====================== ====================================== ============= ======================
1186
+ `` access_key `` AWS access key
1187
+ `` account `` Identifier of the AWS account The owner of the credentials
1188
+ `` auto_setup `` Whether the table should be created `` true ``
1189
+ automatically during send / get.
1190
+ `` buffer_size `` Number of messages to prefetch 9
1191
+ `` endpoint `` Absolute URL to the SQS service https://sqs.eu-west-1.amazonaws.com
1192
+ `` poll_timeout `` Wait for new message duration in 0.1
1193
+ seconds
1194
+ `` queue_name `` Name of the queue messages
1195
+ `` region `` Name of the AWS region eu-west-1
1196
+ `` secret_key `` AWS secret key
1197
+ `` visibility_timeout `` Amount of seconds the message will Queue's configuration
1198
+ not be visible (`Visibility Timeout `_)
1199
+ `` wait_time `` `Long polling `_ duration in seconds 20
1200
+ ====================== ====================================== ============= ======================
1200
1201
1201
1202
.. note ::
1202
1203
0 commit comments