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 Summary
ConstructorsConstructorDescriptionSnsAsyncTopicArnResolver
(software.amazon.awssdk.services.sns.SnsAsyncClient snsClient) -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.arns.Arn
resolveTopicArn
(String topicName) Resolve topic ARN by topic name.
-
Constructor Details
-
SnsAsyncTopicArnResolver
public SnsAsyncTopicArnResolver(software.amazon.awssdk.services.sns.SnsAsyncClient snsClient)
-
-
Method Details
-
resolveTopicArn
Resolve 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 interfaceio.awspring.cloud.sns.core.TopicArnResolver
-