SNS.Client.
list_topics
(**kwargs)¶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.
This action is throttled at 30 transactions per second (TPS).
See also: AWS API Documentation
Request Syntax
response = client.list_topics(
NextToken='string'
)
ListTopics
request.{
'Topics': [
{
'TopicArn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
Response for ListTopics action.
A list of topic ARNs.
A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a topic's attributes, use GetTopicAttributes
.
The topic's ARN.
Token to pass along to the next ListTopics
request. This element is returned if there are additional topics to retrieve.
Exceptions
SNS.Client.exceptions.InvalidParameterException
SNS.Client.exceptions.InternalErrorException
SNS.Client.exceptions.AuthorizationErrorException