Package io.awspring.cloud.sns.core
Class DefaultTopicArnResolver
java.lang.Object
io.awspring.cloud.sns.core.DefaultTopicArnResolver
- All Implemented Interfaces:
TopicArnResolver
Default implementation of
TopicArnResolver
used to determine topic ARN by name.- Author:
- Matej Nedic
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTopicArnResolver
(software.amazon.awssdk.services.sns.SnsClient snsClient) -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.arns.Arn
resolveTopicArn
(String topicName) Resolves topic ARN by topic name.
-
Constructor Details
-
DefaultTopicArnResolver
public DefaultTopicArnResolver(software.amazon.awssdk.services.sns.SnsClient snsClient)
-
-
Method Details
-
resolveTopicArn
Resolves topic ARN by topic name. If topicName is already an ARN, it returnsArn
. 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 interfaceTopicArnResolver
-