Class SnsAsyncTopicArnResolver

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

public class SnsAsyncTopicArnResolver extends Object implements TopicArnResolver
A TopicArnResolver implementation to determine topic ARN by name against an SnsAsyncClient.
Since:
4.0
Author:
Artem Bilan
  • Constructor Details

    • SnsAsyncTopicArnResolver

      public SnsAsyncTopicArnResolver(software.amazon.awssdk.services.sns.SnsAsyncClient snsClient)
  • Method Details

    • resolveTopicArn

      public software.amazon.awssdk.arns.Arn resolveTopicArn(String topicName)
      Resolve 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 the topic already exists, just returns its ARN.
      Specified by:
      resolveTopicArn in interface TopicArnResolver