-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqs create_queue returns Queue not dictionary #3929
Comments
from what I understand, by calling `boto3.resource('sqs'), you're getting this api: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sqs/service-resource/create_queue.html#SQS.ServiceResource.create_queue And the doc you're linking corresponds to the client you would get by calling |
@mdavis-xyz as mentioned in #3929 (comment) it does appear that you're using the @vedimuthan can you share your |
Ah wow. Yep I was being stupid. I created a service resource but then assigned it to a variable named |
|
Describe the issue
Steps to reproduce
Expected behavior
create_queue
returns a dictionary:{'QueueUrl': 'https://...'}
actual behavior
create_queue
returns ansqs.Queue
objectCommentary
Returning a
sqs.Queue
object is more convenient than returning a dictionary.But the documentation should reflect this. Currently it says the function returns a dictionary.
Links
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sqs/client/create_queue.html
The text was updated successfully, but these errors were encountered: