【发布时间】:2015-07-14 03:37:41
【问题描述】:
创建 AWS SNS 主题时:
a = conn.create_topic(topicname)
或获取已创建的主题:
a = conn.get_all_topics()
结果是:
{u'CreateTopicResponse': {u'ResponseMetadata': {u'RequestId': u'42b46710-degf-52e6-7d86-2ahc8e1c738c'}, u'CreateTopicResult': {u'TopicArn': u'arn:aws:sns:eu-west-1:467741034465:exampletopic'}}}
问题是如何获取主题的 ARN 作为字符串:arn:aws:sns:eu-west-1:467741034465:exampletopic?
【问题讨论】:
标签: python amazon-web-services boto amazon-sns