I am working with AWS SNS to send push notifications to my app. To get a topic that I want, to send push notifications to, I need to load all topics – using SNS client function listTopics() - and check each topic to see if the ARN has the name of the topic that I'm looking for.
I think that it's a very inefficient way to get a topic ARN. Is there a most efficient way to get this information, like a function getTopicByName?
If not, I'd like to know if ARN is immutable, and if can I store the topic ARN on my database?
Thanks.