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

sns-get-subscription-attributes

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 all the attributes of a subscription.

Syntax

Copy
sns-get-subscription-attributes SubscriptionArn [General Options]

Options

Name Description Required

SubscriptionArn

The ARN of the subscription whose attributes you want to return.

Yes

Output

Returns the following information:

  • Topic owner

  • Whether the subscription was confirmed

  • Topic ARN

  • DeliveryPolicy

  • Subscription ARN

Examples

Example Request

This example returns a list of attributes from a subscription with ARN arn:aws:sns:us-east-1:123456789012:MyTopic:b3a77e54-00fb-460b-8fe8-5100a30a2d9d

Copy
$PROMPT> sns-get-subscription-attributes arn:aws:sns:us-east-1:123456789012:MyTopic:b3a77e54-00fb-460b-8fe8-5100a30a2d9d

Example Response

Copy
Owner 123456789012 ConfirmationWasAuthenticated true TopicArn us-east-1/123456789012/MyTopic SubscriptionArn arn:aws:sns:us-east-1:123456789012:MyTopic:b3a77e54-00fb-460b-8fe8-5100a30a2d9d