Menu
Amazon Simple Notification Service
CLI Reference (API Version 2010-03-31)

sns-list-subscriptions-by-topic

The Amazon SNS CLI has been deprecated and is no longer supported. Please use the AWS Unified CLI or the AWS Tools for Windows PowerShell instead. To map the old SNS CLI commands to the AWS Unified CLI or PowerShell, see Migrating Amazon SNS CLI Commands to AWS CLI and PowerShell Commands.

Description

Returns a list of subscription ARNs specific to a topic.

Syntax

Copy
sns-list-subscriptions-by-topic TopicArn [General Options]

Options

Name Description Required

TopicArn

The ARN of the topic whose subscriptions you want to return.

Yes

Output

Returns a table that contains the following:

  • Subscription ARN

  • Topic ARN (only with the --show-long option)

  • Subscription owner (only with the --show-long option)

  • Delivery protocol

  • Notification endpoint

Examples

Example Request

This example returns a list of subscription ARNs from a topic with ARN arn:aws:sns:us-east-1:365928882516:Foo.

Copy
$PROMPT> sns-list-subscriptions-by-topic arn:aws:sns:us-east-1:365928882516:Foo

Example Response

This is an example of the output for this command.

Copy
SUBSCRIPTION ARN PROTOCOL ENDPOINT arn:aws:sns:us-east-1:365928882516:Foo:02034b43-fefa-4e07-a5eb-3be56f8c54ce http http://www.example.com:8080 arn:aws:sns:us-east-1:365928882516:Foo:cb0ede88-45bb-4246-933d-5cc1434ea83b http http://www.example.com:8080