Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SnsTaskUtil

        public SnsTaskUtil​(org.gradle.api.Project project)
    • 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