amazonka-sns-1.3.6: Amazon Simple Notification Service SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Deletes a subscription. If the subscription requires authentication for deletion, only the owner of the subscription or the topic's owner can unsubscribe, and an AWS signature is required. If the Unsubscribe call does not require authentication and the requester is not the subscription owner, a final cancellation message is delivered to the endpoint, so that the endpoint owner can easily resubscribe to the topic if the Unsubscribe request was unintended.

See: AWS API Reference for Unsubscribe.


Creating a Request

unsubscribe Source

Creates a value of Unsubscribe with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

uSubscriptionARN :: Lens' Unsubscribe Text Source

The ARN of the subscription to be deleted.

Destructuring the Response

unsubscribeResponse :: UnsubscribeResponse Source

Creates a value of UnsubscribeResponse with the minimum fields required to make a request.