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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Data Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.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 Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Show Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Generic Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Associated Types

type Rep Unsubscribe :: Type -> Type #

Hashable Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

AWSRequest Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Associated Types

type Rs Unsubscribe :: Type #

ToHeaders Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Methods

toHeaders :: Unsubscribe -> [Header] #

ToPath Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

ToQuery Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

NFData Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Methods

rnf :: Unsubscribe -> () #

type Rep Unsubscribe Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

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

Defined in Network.AWS.SNS.Unsubscribe

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 # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Data UnsubscribeResponse Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

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 # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Show UnsubscribeResponse Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Generic UnsubscribeResponse Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Associated Types

type Rep UnsubscribeResponse :: Type -> Type #

NFData UnsubscribeResponse Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

Methods

rnf :: UnsubscribeResponse -> () #

type Rep UnsubscribeResponse Source # 
Instance details

Defined in Network.AWS.SNS.Unsubscribe

type Rep UnsubscribeResponse = D1 (MetaData "UnsubscribeResponse" "Network.AWS.SNS.Unsubscribe" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "UnsubscribeResponse'" PrefixI False) (U1 :: Type -> Type))