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

ListTopics() public method

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 ( ListTopicsRequest request ) : ListTopicsResponse
request ListTopicsRequest Container for the necessary parameters to execute the ListTopics service method.
return ListTopicsResponse
        public ListTopicsResponse ListTopics(ListTopicsRequest request)
        {
            var marshaller = new ListTopicsRequestMarshaller();
            var unmarshaller = ListTopicsResponseUnmarshaller.Instance;

            return Invoke<ListTopicsRequest,ListTopicsResponse>(request, marshaller, unmarshaller);
        }

Same methods

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

Usage Example

Esempio n. 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