Package io.awspring.cloud.sns.core
Class TopicsListingTopicArnResolver
java.lang.Object
io.awspring.cloud.sns.core.TopicsListingTopicArnResolver
- All Implemented Interfaces:
TopicArnResolver
Basic implementation for resolving ARN from topicName. It is listing all topics using
SnsClient.listTopics()
to determine topicArn for topicName.- Since:
- 3.0.0
- Author:
- Matej Nedić
-
Constructor Summary
ConstructorsConstructorDescriptionTopicsListingTopicArnResolver
(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
-
TopicsListingTopicArnResolver
public TopicsListingTopicArnResolver(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 has value topic name of type String it will List all topics inside- Specified by:
resolveTopicArn
in interfaceTopicArnResolver
-