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

Copyright(c) 2013-2016 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.

Synopsis

Creating a Request

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:

data Unsubscribe #

Input for Unsubscribe action.

See: unsubscribe smart constructor.

Instances

Eq Unsubscribe # 
Data Unsubscribe # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Unsubscribe -> c Unsubscribe #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Unsubscribe #

toConstr :: Unsubscribe -> Constr #

dataTypeOf :: Unsubscribe -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Unsubscribe) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Unsubscribe) #

gmapT :: (forall b. Data b => b -> b) -> Unsubscribe -> Unsubscribe #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Unsubscribe -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Unsubscribe -> r #

gmapQ :: (forall d. Data d => d -> u) -> Unsubscribe -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Unsubscribe -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Unsubscribe -> m Unsubscribe #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Unsubscribe -> m Unsubscribe #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Unsubscribe -> m Unsubscribe #

Read Unsubscribe # 
Show Unsubscribe # 
Generic Unsubscribe # 

Associated Types

type Rep Unsubscribe :: * -> * #

Hashable Unsubscribe # 
NFData Unsubscribe # 

Methods

rnf :: Unsubscribe -> () #

AWSRequest Unsubscribe # 
ToQuery Unsubscribe # 
ToPath Unsubscribe # 
ToHeaders Unsubscribe # 

Methods

toHeaders :: Unsubscribe -> [Header] #

type Rep Unsubscribe # 
type Rep Unsubscribe = D1 (MetaData "Unsubscribe" "Network.AWS.SNS.Unsubscribe" "amazonka-sns-1.4.5-5x1MjGFUMvV6p7MfMkg43e" True) (C1 (MetaCons "Unsubscribe'" PrefixI True) (S1 (MetaSel (Just Symbol "_uSubscriptionARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs Unsubscribe # 

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.

Instances

Eq UnsubscribeResponse # 
Data UnsubscribeResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UnsubscribeResponse -> c UnsubscribeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UnsubscribeResponse #

toConstr :: UnsubscribeResponse -> Constr #

dataTypeOf :: UnsubscribeResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UnsubscribeResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UnsubscribeResponse) #

gmapT :: (forall b. Data b => b -> b) -> UnsubscribeResponse -> UnsubscribeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UnsubscribeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UnsubscribeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UnsubscribeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UnsubscribeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UnsubscribeResponse -> m UnsubscribeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UnsubscribeResponse -> m UnsubscribeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UnsubscribeResponse -> m UnsubscribeResponse #

Read UnsubscribeResponse # 
Show UnsubscribeResponse # 
Generic UnsubscribeResponse # 
NFData UnsubscribeResponse # 

Methods

rnf :: UnsubscribeResponse -> () #

type Rep UnsubscribeResponse # 
type Rep UnsubscribeResponse = D1 (MetaData "UnsubscribeResponse" "Network.AWS.SNS.Unsubscribe" "amazonka-sns-1.4.5-5x1MjGFUMvV6p7MfMkg43e" False) (C1 (MetaCons "UnsubscribeResponse'" PrefixI False) U1)