amazonka-sns-1.4.1: 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.ConfirmSubscription

Contents

Description

Verifies an endpoint owner's intent to receive messages by validating the token sent to the endpoint by an earlier Subscribe action. If the token is valid, the action creates a new subscription and returns its Amazon Resource Name (ARN). This call requires an AWS signature only when the AuthenticateOnUnsubscribe flag is set to "true".

Synopsis

Creating a Request

confirmSubscription Source #

Creates a value of ConfirmSubscription with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ConfirmSubscription Source #

Input for ConfirmSubscription action.

See: confirmSubscription smart constructor.

Instances

Eq ConfirmSubscription Source # 
Data ConfirmSubscription Source # 

Methods

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

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

toConstr :: ConfirmSubscription -> Constr #

dataTypeOf :: ConfirmSubscription -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ConfirmSubscription Source # 
Show ConfirmSubscription Source # 
Generic ConfirmSubscription Source # 
Hashable ConfirmSubscription Source # 
NFData ConfirmSubscription Source # 

Methods

rnf :: ConfirmSubscription -> () #

AWSRequest ConfirmSubscription Source # 
ToQuery ConfirmSubscription Source # 
ToPath ConfirmSubscription Source # 
ToHeaders ConfirmSubscription Source # 
type Rep ConfirmSubscription Source # 
type Rep ConfirmSubscription = D1 (MetaData "ConfirmSubscription" "Network.AWS.SNS.ConfirmSubscription" "amazonka-sns-1.4.1-5jBhOS7pRMq3hcCKbdHesk" False) (C1 (MetaCons "ConfirmSubscription'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csAuthenticateOnUnsubscribe") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_csTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_csToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ConfirmSubscription Source # 

Request Lenses

csAuthenticateOnUnsubscribe :: Lens' ConfirmSubscription (Maybe Text) Source #

Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.

csTopicARN :: Lens' ConfirmSubscription Text Source #

The ARN of the topic for which you wish to confirm a subscription.

csToken :: Lens' ConfirmSubscription Text Source #

Short-lived token sent to an endpoint during the Subscribe action.

Destructuring the Response

confirmSubscriptionResponse Source #

Creates a value of ConfirmSubscriptionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ConfirmSubscriptionResponse Source #

Response for ConfirmSubscriptions action.

See: confirmSubscriptionResponse smart constructor.

Instances

Eq ConfirmSubscriptionResponse Source # 
Data ConfirmSubscriptionResponse Source # 

Methods

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

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

toConstr :: ConfirmSubscriptionResponse -> Constr #

dataTypeOf :: ConfirmSubscriptionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ConfirmSubscriptionResponse Source # 
Show ConfirmSubscriptionResponse Source # 
Generic ConfirmSubscriptionResponse Source # 
NFData ConfirmSubscriptionResponse Source # 
type Rep ConfirmSubscriptionResponse Source # 
type Rep ConfirmSubscriptionResponse = D1 (MetaData "ConfirmSubscriptionResponse" "Network.AWS.SNS.ConfirmSubscription" "amazonka-sns-1.4.1-5jBhOS7pRMq3hcCKbdHesk" False) (C1 (MetaCons "ConfirmSubscriptionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csrsSubscriptionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_csrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

csrsSubscriptionARN :: Lens' ConfirmSubscriptionResponse (Maybe Text) Source #

The ARN of the created subscription.