tagQueue method
Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.
When you use queue tags, keep the following guidelines in mind:
- Adding more than 50 tags to a queue isn't recommended.
- Tags don't have any semantic meaning. Amazon SQS interprets tags as character strings.
- Tags are case-sensitive.
- A new tag with a key identical to that of an existing tag overwrites the existing tag.
Parameter queueUrl
:
The URL of the queue.
Parameter tags
:
The list of tags to be added to the specified queue.
Implementation
Future<void> tagQueue({
required String queueUrl,
required Map<String, String> tags,
}) async {
ArgumentError.checkNotNull(queueUrl, 'queueUrl');
ArgumentError.checkNotNull(tags, 'tags');
final $request = <String, dynamic>{};
$request['QueueUrl'] = queueUrl;
$request['Tags'] = tags;
await _protocol.send(
$request,
action: 'TagQueue',
version: '2012-11-05',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['TagQueueRequest'],
shapes: shapes,
);
}