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.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:

  • csAuthenticateOnUnsubscribe - 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 - The ARN of the topic for which you wish to confirm a subscription.
  • csToken - Short-lived token sent to an endpoint during the Subscribe action.

data ConfirmSubscription Source #

Input for ConfirmSubscription action.

See: confirmSubscription smart constructor.

Instances
Eq ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

Data ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

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

Defined in Network.AWS.SNS.ConfirmSubscription

Show ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

Generic ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

Associated Types

type Rep ConfirmSubscription :: Type -> Type #

Hashable ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

AWSRequest ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

Associated Types

type Rs ConfirmSubscription :: Type #

ToHeaders ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

ToPath ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

ToQuery ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

NFData ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

Methods

rnf :: ConfirmSubscription -> () #

type Rep ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

type Rep ConfirmSubscription = D1 (MetaData "ConfirmSubscription" "Network.AWS.SNS.ConfirmSubscription" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "ConfirmSubscription'" PrefixI True) (S1 (MetaSel (Just "_csAuthenticateOnUnsubscribe") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_csTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_csToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ConfirmSubscription Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

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

Defined in Network.AWS.SNS.ConfirmSubscription

Data ConfirmSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

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

Defined in Network.AWS.SNS.ConfirmSubscription

Show ConfirmSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

Generic ConfirmSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

Associated Types

type Rep ConfirmSubscriptionResponse :: Type -> Type #

NFData ConfirmSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

type Rep ConfirmSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.SNS.ConfirmSubscription

type Rep ConfirmSubscriptionResponse = D1 (MetaData "ConfirmSubscriptionResponse" "Network.AWS.SNS.ConfirmSubscription" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "ConfirmSubscriptionResponse'" PrefixI True) (S1 (MetaSel (Just "_csrsSubscriptionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

The ARN of the created subscription.