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 ListSubscriptionsByTopic call to get further results.
This action is throttled at 30 transactions per second (TPS).
example
Use a bare-bones client and the command you need to make an API call.
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 theNextToken
parameter in a newListSubscriptionsByTopic
call to get further results.This action is throttled at 30 transactions per second (TPS).
Use a bare-bones client and the command you need to make an API call.
import { SNSClient, ListSubscriptionsByTopicCommand } from "@aws-sdk/client-sns"; // ES Modules import // const { SNSClient, ListSubscriptionsByTopicCommand } = require("@aws-sdk/client-sns"); // CommonJS import const client = new SNSClient(config); const command = new ListSubscriptionsByTopicCommand(input); const response = await client.send(command);
ListSubscriptionsByTopicCommandInput for command's
input
shape.ListSubscriptionsByTopicCommandOutput for command's
response
shape.config for SNSClient's
config
shape.