in boto3_sample/s3_event_notifications_crawler_setup.py [0:0]
def get_sqs_queue_arn(queue_url, client):
try:
response = client.get_queue_attributes(
QueueUrl=queue_url,
AttributeNames=[
'QueueArn',
]
)
return response['Attributes']['QueueArn']
except botocore.exceptions.ClientError as e:
print_error(e)
return None