amazonka-sns-1.4.3: 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 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:

data Unsubscribe Source #

Input for Unsubscribe action.

See: unsubscribe smart constructor.

Instances

Eq Unsubscribe Source # 
Data Unsubscribe Source # 

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 Source # 
Show Unsubscribe Source # 
Generic Unsubscribe Source # 

Associated Types

type Rep Unsubscribe :: * -> * #

Hashable Unsubscribe Source # 
NFData Unsubscribe Source # 

Methods

rnf :: Unsubscribe -> () #

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

Methods

toHeaders :: Unsubscribe -> [Header] #

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

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.

data UnsubscribeResponse Source #

See: unsubscribeResponse smart constructor.

Instances

Eq UnsubscribeResponse Source # 
Data UnsubscribeResponse Source # 

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 Source # 
Show UnsubscribeResponse Source # 
Generic UnsubscribeResponse Source # 
NFData UnsubscribeResponse Source # 

Methods

rnf :: UnsubscribeResponse -> () #

type Rep UnsubscribeResponse Source # 
type Rep UnsubscribeResponse = D1 (MetaData "UnsubscribeResponse" "Network.AWS.SNS.Unsubscribe" "amazonka-sns-1.4.3-7IcMkGXIxUZKWO48IHbGli" False) (C1 (MetaCons "UnsubscribeResponse'" PrefixI False) U1)