Skip to content

List Subscriptions By Topic

sns_list_subscriptions_by_topic R Documentation

Returns a list of the subscriptions to a specific topic

Description

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 list_subscriptions_by_topic call to get further results.

This action is throttled at 30 transactions per second (TPS).

Usage

sns_list_subscriptions_by_topic(TopicArn, NextToken)

Arguments

TopicArn

[required] The ARN of the topic for which you wish to find subscriptions.

NextToken

Token returned by the previous list_subscriptions_by_topic request.

Value

A list with the following syntax:

list(
  Subscriptions = list(
    list(
      SubscriptionArn = "string",
      Owner = "string",
      Protocol = "string",
      Endpoint = "string",
      TopicArn = "string"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_subscriptions_by_topic(
  TopicArn = "string",
  NextToken = "string"
)