Class SnsAsyncTopicArnResolver

java.lang.Object
org.springframework.integration.aws.support.SnsAsyncTopicArnResolver
All Implemented Interfaces:
io.awspring.cloud.sns.core.TopicArnResolver

public class SnsAsyncTopicArnResolver extends Object implements io.awspring.cloud.sns.core.TopicArnResolver
A TopicArnResolver implementation to determine topic ARN by name against an SnsAsyncClient.
Since:
3.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 topic already exists, just returns its ARN.
      Specified by:
      resolveTopicArn in interface io.awspring.cloud.sns.core.TopicArnResolver