Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.ListSubscriptionsByTopic C# (CSharp) Метод

ListSubscriptionsByTopic() публичный Метод

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 ( ListSubscriptionsByTopicRequest request ) : ListSubscriptionsByTopicResponse
request Amazon.SimpleNotificationService.Model.ListSubscriptionsByTopicRequest Container for the necessary parameters to execute the ListSubscriptionsByTopic service method.
Результат Amazon.SimpleNotificationService.Model.ListSubscriptionsByTopicResponse
        public ListSubscriptionsByTopicResponse ListSubscriptionsByTopic(ListSubscriptionsByTopicRequest request)
        {
            var marshaller = new ListSubscriptionsByTopicRequestMarshaller();
            var unmarshaller = ListSubscriptionsByTopicResponseUnmarshaller.Instance;

            return Invoke<ListSubscriptionsByTopicRequest,ListSubscriptionsByTopicResponse>(request, marshaller, unmarshaller);
        }

Same methods

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

Usage Example

Пример #1
0
        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