Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.SNS.Unsubscribe
Description
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.
Creating a Request
Arguments
:: Text | |
-> Unsubscribe |
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:
uSubscriptionARN
- The ARN of the subscription to be deleted.
Request Lenses
uSubscriptionARN :: Lens' Unsubscribe Text #
The ARN of the subscription to be deleted.
Destructuring the Response
unsubscribeResponse :: UnsubscribeResponse #
Creates a value of UnsubscribeResponse
with the minimum fields required to make a request.
data UnsubscribeResponse #
See: unsubscribeResponse
smart constructor.