Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.ListSubscriptionsByTopic C# (CSharp) Method

ListSubscriptionsByTopic() public method

Returns a list of the subscriptions to a specific topic. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a NextToken is also returned. Use the NextToken parameter in a new ListSubscriptionsByTopic call to get further results.
/// Indicates that the user has been denied access to the requested resource. /// /// Indicates an internal service error. /// /// Indicates that a request parameter does not comply with the associated constraints. /// /// Indicates that the requested resource does not exist. ///
public ListSubscriptionsByTopic ( string topicArn ) : ListSubscriptionsByTopicResponse
topicArn string The ARN of the topic for which you wish to find subscriptions.
return Amazon.SimpleNotificationService.Model.ListSubscriptionsByTopicResponse
        public ListSubscriptionsByTopicResponse ListSubscriptionsByTopic(string topicArn)
        {
            var request = new ListSubscriptionsByTopicRequest();
            request.TopicArn = topicArn;
            return ListSubscriptionsByTopic(request);
        }

Same methods

AmazonSimpleNotificationServiceClient::ListSubscriptionsByTopic ( ListSubscriptionsByTopicRequest request ) : ListSubscriptionsByTopicResponse
AmazonSimpleNotificationServiceClient::ListSubscriptionsByTopic ( string topicArn, string nextToken ) : ListSubscriptionsByTopicResponse

Usage Example

        public static IEnumerable<Subscription> ListSubscriptions(string topicArn)
        {
            using (var client = new AmazonSimpleNotificationServiceClient(Settings.AccessKey, Settings.Secret))
            {
                var request = new ListSubscriptionsByTopicRequest(topicArn);

                return client.ListSubscriptionsByTopic(request).Subscriptions;
            }
        }
All Usage Examples Of Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient::ListSubscriptionsByTopic
AmazonSimpleNotificationServiceClient