Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

Is there a python script where I can lookup a queue by its name? If available, please help me with it?

1 Answer

0 votes
by (44.4k points)
edited by

Yes, it is possible! Check out this script. First, you get the AWS resource and then the name of the queue and print it. 

sqs = boto3.resource('sqs')

que = sqs.get_queue_by_name(QueueName='example')

print(que.url)

print(que.attributes.get('DelaySeconds'))

Also learn more about AWS, and become a master by enrolling for Intellipaat's AWS Solutions Architect Certification! 

Related questions

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...