AWS:在 SAM template.yml 文件中获取 SQS url

AWS: get SQS url in SAM template.yml file

如何将 SQS url 设置到 lambda 环境变量中? 例如,我们可以获得 DynamoDB 流的 URN: !GetAtt SuperTable.StreamArn 。 我想为 SQS uri 做类似的事情..

根据the documentation

!Ref YourQueueLogicalResourceName

returns队列URL.