| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkDocs.CreateNotificationSubscription
Description
Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.
For more information, see Setting up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide.
Synopsis
- data CreateNotificationSubscription = CreateNotificationSubscription' {}
- newCreateNotificationSubscription :: Text -> Text -> SubscriptionProtocolType -> SubscriptionType -> CreateNotificationSubscription
- createNotificationSubscription_organizationId :: Lens' CreateNotificationSubscription Text
- createNotificationSubscription_endpoint :: Lens' CreateNotificationSubscription Text
- createNotificationSubscription_protocol :: Lens' CreateNotificationSubscription SubscriptionProtocolType
- createNotificationSubscription_subscriptionType :: Lens' CreateNotificationSubscription SubscriptionType
- data CreateNotificationSubscriptionResponse = CreateNotificationSubscriptionResponse' {}
- newCreateNotificationSubscriptionResponse :: Int -> CreateNotificationSubscriptionResponse
- createNotificationSubscriptionResponse_subscription :: Lens' CreateNotificationSubscriptionResponse (Maybe Subscription)
- createNotificationSubscriptionResponse_httpStatus :: Lens' CreateNotificationSubscriptionResponse Int
Creating a Request
data CreateNotificationSubscription Source #
See: newCreateNotificationSubscription smart constructor.
Constructors
| CreateNotificationSubscription' | |
Fields
| |
Instances
newCreateNotificationSubscription Source #
Arguments
| :: Text | |
| -> Text | |
| -> SubscriptionProtocolType | |
| -> SubscriptionType | |
| -> CreateNotificationSubscription |
Create a value of CreateNotificationSubscription 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:
CreateNotificationSubscription, createNotificationSubscription_organizationId - The ID of the organization.
$sel:endpoint:CreateNotificationSubscription', createNotificationSubscription_endpoint - The endpoint to receive the notifications. If the protocol is HTTPS, the
endpoint is a URL that begins with https.
CreateNotificationSubscription, createNotificationSubscription_protocol - The protocol to use. The supported value is https, which delivers
JSON-encoded messages using HTTPS POST.
$sel:subscriptionType:CreateNotificationSubscription', createNotificationSubscription_subscriptionType - The notification type.
Request Lenses
createNotificationSubscription_organizationId :: Lens' CreateNotificationSubscription Text Source #
The ID of the organization.
createNotificationSubscription_endpoint :: Lens' CreateNotificationSubscription Text Source #
The endpoint to receive the notifications. If the protocol is HTTPS, the
endpoint is a URL that begins with https.
createNotificationSubscription_protocol :: Lens' CreateNotificationSubscription SubscriptionProtocolType Source #
The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
createNotificationSubscription_subscriptionType :: Lens' CreateNotificationSubscription SubscriptionType Source #
The notification type.
Destructuring the Response
data CreateNotificationSubscriptionResponse Source #
See: newCreateNotificationSubscriptionResponse smart constructor.
Constructors
| CreateNotificationSubscriptionResponse' | |
Fields
| |
Instances
newCreateNotificationSubscriptionResponse Source #
Arguments
| :: Int | |
| -> CreateNotificationSubscriptionResponse |
Create a value of CreateNotificationSubscriptionResponse 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:subscription:CreateNotificationSubscriptionResponse', createNotificationSubscriptionResponse_subscription - The subscription.
$sel:httpStatus:CreateNotificationSubscriptionResponse', createNotificationSubscriptionResponse_httpStatus - The response's http status code.
Response Lenses
createNotificationSubscriptionResponse_subscription :: Lens' CreateNotificationSubscriptionResponse (Maybe Subscription) Source #
The subscription.
createNotificationSubscriptionResponse_httpStatus :: Lens' CreateNotificationSubscriptionResponse Int Source #
The response's http status code.