Lookup a queue by its name - AWS SQS

0 votes
Is it possible to lookup for a particular queue by its name? How? Can you please provide the boto code for it? Thanks in advance.
Aug 20 in AWS by Laksha
34 views

1 answer to this question.

0 votes

Yes, it is possible to lookup for a particular queue by its name.

# Get the service resource
sqs = boto3.resource('sqs')

# Get the queue. This returns an SQS.Queue instance
que = sqs.get_queue_by_name(QueueName='example')

# You can now access identifiers and attributes
print(que.url)
print(que.attributes.get('DelaySeconds'))
answered Aug 20 by Akaash

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

AWS SNS - How to get SNS topic by name?

If you know the topic already exists ...READ MORE

answered Sep 4, 2018 in AWS by Archana
• 4,090 points
384 views
0 votes
1 answer

What is a dead letter queue in AWS?

You can configure a SQS queue or ...READ MORE

answered Jan 28 in AWS by disha
238 views
0 votes
1 answer

How do I delete a queue in AWS SQS?

Its pretty simple to delete a queue ...READ MORE

answered Aug 20 in AWS by Travis
21 views
0 votes
1 answer
0 votes
1 answer

Create a queue using boto - AWS SQS

Try this code: # Get the service resource sqs ...READ MORE

answered Aug 20 in AWS by Vishal
17 views
0 votes
1 answer