AWS SNS get topic by name
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I think that it's a very inefficient way to get a topic ARN, and I'd like to know if there is a most efficient way to get this information, like a function getTopicByName or something else. If not, I'd like to know if ARN is immutable, and if can I store the topic ARN on my database? Thanks. 回答1: I don't know of any way to look up an SNS topic by name. The ARN is immutable. It will not change for the life of the SNS topic. In particular, according to the documentation an ARN for an SNS topic is in the following format: arn:aws:sns:region