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

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

See: AWS API Reference for ConfirmSubscription.

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:

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:

Response Lenses

csrsSubscriptionARN :: Lens' ConfirmSubscriptionResponse (Maybe Text) Source

The ARN of the created subscription.