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

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

Returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a NextToken is also returned. Use the NextToken parameter in a new ListTopics 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. ///
public ListTopics ( ) : ListTopicsResponse
Результат ListTopicsResponse
        public ListTopicsResponse ListTopics()
        {
            return ListTopics(new ListTopicsRequest());
        }

Same methods

AmazonSimpleNotificationServiceClient::ListTopics ( ListTopicsRequest request ) : ListTopicsResponse
AmazonSimpleNotificationServiceClient::ListTopics ( string nextToken ) : ListTopicsResponse

Usage Example

Пример #1
0
        public static IEnumerable<string> ListTopicArns()
        {
            using (var client = new AmazonSimpleNotificationServiceClient(Settings.AccessKey, Settings.Secret))
            {
                var response = client.ListTopics(new ListTopicsRequest());

                return response.Topics.Select(x => x.TopicArn).ToList();
            }
        }
All Usage Examples Of Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient::ListTopics
AmazonSimpleNotificationServiceClient