Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data ConfirmSubscription = ConfirmSubscription' {}
- newConfirmSubscription :: Text -> Text -> ConfirmSubscription
- confirmSubscription_authenticateOnUnsubscribe :: Lens' ConfirmSubscription (Maybe Text)
- confirmSubscription_topicArn :: Lens' ConfirmSubscription Text
- confirmSubscription_token :: Lens' ConfirmSubscription Text
- data ConfirmSubscriptionResponse = ConfirmSubscriptionResponse' {}
- newConfirmSubscriptionResponse :: Int -> ConfirmSubscriptionResponse
- confirmSubscriptionResponse_subscriptionArn :: Lens' ConfirmSubscriptionResponse (Maybe Text)
- confirmSubscriptionResponse_httpStatus :: Lens' ConfirmSubscriptionResponse Int
Creating a Request
data ConfirmSubscription Source #
Input for ConfirmSubscription action.
See: newConfirmSubscription
smart constructor.
ConfirmSubscription' | |
|
Instances
newConfirmSubscription Source #
:: Text | |
-> Text | |
-> ConfirmSubscription |
Create a value of ConfirmSubscription
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:authenticateOnUnsubscribe:ConfirmSubscription'
, confirmSubscription_authenticateOnUnsubscribe
- Disallows unauthenticated unsubscribes of the subscription. If the value
of this parameter is true
and the request has an Amazon Web Services
signature, then only the topic owner and the subscription owner can
unsubscribe the endpoint. The unsubscribe action requires Amazon Web
Services authentication.
$sel:topicArn:ConfirmSubscription'
, confirmSubscription_topicArn
- The ARN of the topic for which you wish to confirm a subscription.
$sel:token:ConfirmSubscription'
, confirmSubscription_token
- Short-lived token sent to an endpoint during the Subscribe
action.
Request Lenses
confirmSubscription_authenticateOnUnsubscribe :: Lens' ConfirmSubscription (Maybe Text) Source #
Disallows unauthenticated unsubscribes of the subscription. If the value
of this parameter is true
and the request has an Amazon Web Services
signature, then only the topic owner and the subscription owner can
unsubscribe the endpoint. The unsubscribe action requires Amazon Web
Services authentication.
confirmSubscription_topicArn :: Lens' ConfirmSubscription Text Source #
The ARN of the topic for which you wish to confirm a subscription.
confirmSubscription_token :: Lens' ConfirmSubscription Text Source #
Short-lived token sent to an endpoint during the Subscribe
action.
Destructuring the Response
data ConfirmSubscriptionResponse Source #
Response for ConfirmSubscriptions action.
See: newConfirmSubscriptionResponse
smart constructor.
ConfirmSubscriptionResponse' | |
|
Instances
newConfirmSubscriptionResponse Source #
Create a value of ConfirmSubscriptionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:subscriptionArn:ConfirmSubscriptionResponse'
, confirmSubscriptionResponse_subscriptionArn
- The ARN of the created subscription.
$sel:httpStatus:ConfirmSubscriptionResponse'
, confirmSubscriptionResponse_httpStatus
- The response's http status code.
Response Lenses
confirmSubscriptionResponse_subscriptionArn :: Lens' ConfirmSubscriptionResponse (Maybe Text) Source #
The ARN of the created subscription.
confirmSubscriptionResponse_httpStatus :: Lens' ConfirmSubscriptionResponse Int Source #
The response's http status code.