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 |
Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.
For more information, see Subscribe to Notifications 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.
CreateNotificationSubscription' | |
|
Instances
newCreateNotificationSubscription Source #
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:
$sel:organizationId: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
.
$sel:protocol: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.
CreateNotificationSubscriptionResponse' | |
|
Instances
newCreateNotificationSubscriptionResponse Source #
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.