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

sns-list-subscriptions

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.

Syntax

Copy
sns-list-subscriptions [General Options]

Options

None

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.

Copy
$PROMPT> sns-list-subscriptions

Example Response

Copy
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:Bar:cb0ede88-45aa-4246-933d-5cc1434ff83b http http://www.example.com:8080