Package com.nike.pdm.localstack.aws.sns
Class SnsTaskUtil
- java.lang.Object
-
- com.nike.pdm.localstack.aws.sns.SnsTaskUtil
-
public class SnsTaskUtil extends java.lang.Object
Utility methods shared amongst the SNS tasks.
-
-
Constructor Summary
Constructors Constructor Description SnsTaskUtil(org.gradle.api.Project project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<com.amazonaws.services.sns.model.Subscription>
getSubscriptions(java.lang.String topicArn)
Gets a list of all subscriptions for a topic.java.lang.String
getTopicArn(java.lang.String topicName)
Gets the ARN of an SNS topic based on its name.java.lang.String
getTopicName(java.lang.String topicArn)
Gets the topic name from the topic ARN.
-
-
-
Method Detail
-
getTopicArn
public java.lang.String getTopicArn(java.lang.String topicName)
Gets the ARN of an SNS topic based on its name.- Parameters:
topicName
- topic name- Returns:
- topic arn
-
getTopicName
public java.lang.String getTopicName(java.lang.String topicArn)
Gets the topic name from the topic ARN.- Parameters:
topicArn
- topic arn- Returns:
- topic name
-
getSubscriptions
public java.util.List<com.amazonaws.services.sns.model.Subscription> getSubscriptions(java.lang.String topicArn)
Gets a list of all subscriptions for a topic.- Parameters:
topicArn
- topic arn- Returns:
- list of subscriptions
-
-