SNS.Client.
list_subscriptions
(**kwargs)¶Returns a list of the requester's subscriptions. 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 ListSubscriptions
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_subscriptions(
NextToken='string'
)
ListSubscriptions
request.{
'Subscriptions': [
{
'SubscriptionArn': 'string',
'Owner': 'string',
'Protocol': 'string',
'Endpoint': 'string',
'TopicArn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
Response for ListSubscriptions action
A list of subscriptions.
A wrapper type for the attributes of an Amazon SNS subscription.
The subscription's ARN.
The subscription's owner.
The subscription's protocol.
The subscription's endpoint (format depends on the protocol).
The ARN of the subscription's topic.
Token to pass along to the next ListSubscriptions
request. This element is returned if there are more subscriptions to retrieve.
Exceptions
SNS.Client.exceptions.InvalidParameterException
SNS.Client.exceptions.InternalErrorException
SNS.Client.exceptions.AuthorizationErrorException