Class DefaultTopicArnResolver

java.lang.Object
io.awspring.cloud.sns.core.DefaultTopicArnResolver
All Implemented Interfaces:
TopicArnResolver

public class DefaultTopicArnResolver extends Object implements TopicArnResolver
Default implementation of TopicArnResolver used to determine topic ARN by name.
Author:
Matej Nedic
  • Constructor Details

    • DefaultTopicArnResolver

      public DefaultTopicArnResolver(software.amazon.awssdk.services.sns.SnsClient snsClient)
  • Method Details

    • resolveTopicArn

      public software.amazon.awssdk.arns.Arn resolveTopicArn(String topicName)
      Resolves topic ARN by topic name. If topicName is already an ARN, it returns Arn. If topicName is just a string with a topic name, it attempts to create a topic or if topic already exists, just returns its ARN.
      Specified by:
      resolveTopicArn in interface TopicArnResolver