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


Returns all of the properties of a subscription.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The ARN of the subscription whose properties you want to get.

Type: String

Required: Yes

Response Elements

The following element is returned by the service.

Attributes.entry.N.key (key)
Attributesentry.N.value (value)

A map of the subscription's attributes. Attributes in this map include the following:

  • SubscriptionArn -- the subscription's ARN

  • TopicArn -- the topic ARN that the subscription is associated with

  • Owner -- the AWS account ID of the subscription's owner

  • ConfirmationWasAuthenticated -- true if the subscription confirmation request was authenticated

  • DeliveryPolicy -- the JSON serialization of the subscription's delivery policy

  • EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery policy that takes into account the topic delivery policy and account system defaults

Type: String to string map


For information about the errors that are common to all actions, see Common Errors.


Indicates that the user has been denied access to the requested resource.

HTTP Status Code: 403


Indicates an internal service error.

HTTP Status Code: 500


Indicates that a request parameter does not comply with the associated constraints.

HTTP Status Code: 400


Indicates that the requested resource does not exist.

HTTP Status Code: 404



Sample Request ?SubscriptionArn=arn%3Aaws%3Asns%3Aus-east-1%3A123456789012%3AMy-Topic%3A80289ba6-0fd4-4079-afb4-ce8c8260f0ca &Action=GetSubscriptionAttributes &SignatureVersion=2 &SignatureMethod=HmacSHA256 &Timestamp=2010-03-31T12%3A00%3A00.000Z &AWSAccessKeyId=(AWS Access Key Id) &Signature=92lBGRVq0%2BxhaACaBGqtdemy%2Bi9isfgyTljCbJM80Yk%3D

Sample Response

<GetSubscriptionAttributesResponse xmlns=""> <GetSubscriptionAttributesResult> <Attributes> <entry> <key>Owner</key> <value>123456789012</value> </entry> <entry> <key>DeliveryPolicy</key> <value>{&quot;healthyRetryPolicy&quot;:{&quot;numRetries&quot;:10}}</value> </entry> <entry> <key>SubscriptionArn</key> <value>arn:aws:sns:us-east-1:123456789012:My-Topic:80289ba6-0fd4-4079-afb4-ce8c8260f0ca</value> </entry> </Attributes> </GetSubscriptionAttributesResult> <ResponseMetadata> <RequestId>057f074c-33a7-11df-9540-99d0768312d3</RequestId> </ResponseMetadata> </GetTopicAttributesResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: