Safe Haskell | None |
---|---|
Language | Haskell2010 |
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".
http://docs.aws.amazon.com/sns/latest/api/API_ConfirmSubscription.html
- data ConfirmSubscription
- confirmSubscription :: Text -> Text -> ConfirmSubscription
- csAuthenticateOnUnsubscribe :: Lens' ConfirmSubscription (Maybe Text)
- csToken :: Lens' ConfirmSubscription Text
- csTopicArn :: Lens' ConfirmSubscription Text
- data ConfirmSubscriptionResponse
- confirmSubscriptionResponse :: ConfirmSubscriptionResponse
- csrSubscriptionArn :: Lens' ConfirmSubscriptionResponse (Maybe Text)
Request
data ConfirmSubscription Source
Request constructor
ConfirmSubscription
constructor.
The fields accessible through corresponding lenses are:
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.
csToken :: Lens' ConfirmSubscription Text Source
Short-lived token sent to an endpoint during the Subscribe
action.
csTopicArn :: Lens' ConfirmSubscription Text Source
The ARN of the topic for which you wish to confirm a subscription.
Response
Response constructor
confirmSubscriptionResponse :: ConfirmSubscriptionResponse Source
ConfirmSubscriptionResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
csrSubscriptionArn :: Lens' ConfirmSubscriptionResponse (Maybe Text) Source
The ARN of the created subscription.