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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SNS.Unsubscribe

Contents

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.

See: AWS API Reference for Unsubscribe.

Synopsis

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.