Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Configure WorkDocs to use Amazon SNS notifications.
The endpoint receives a confirmation message, and must confirm the subscription. For more information, see Confirm the Subscription in the Amazon Simple Notification Service Developer Guide .
- createNotificationSubscription :: Text -> Text -> SubscriptionProtocolType -> SubscriptionType -> CreateNotificationSubscription
- data CreateNotificationSubscription
- cnsOrganizationId :: Lens' CreateNotificationSubscription Text
- cnsEndpoint :: Lens' CreateNotificationSubscription Text
- cnsProtocol :: Lens' CreateNotificationSubscription SubscriptionProtocolType
- cnsSubscriptionType :: Lens' CreateNotificationSubscription SubscriptionType
- createNotificationSubscriptionResponse :: Int -> CreateNotificationSubscriptionResponse
- data CreateNotificationSubscriptionResponse
- cnsrsSubscription :: Lens' CreateNotificationSubscriptionResponse (Maybe Subscription)
- cnsrsResponseStatus :: Lens' CreateNotificationSubscriptionResponse Int
Creating a Request
createNotificationSubscription Source #
Creates a value of CreateNotificationSubscription
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnsOrganizationId
- The ID of the organization.cnsEndpoint
- The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with "https://".cnsProtocol
- The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.cnsSubscriptionType
- The notification type.
data CreateNotificationSubscription Source #
See: createNotificationSubscription
smart constructor.
Request Lenses
cnsOrganizationId :: Lens' CreateNotificationSubscription Text Source #
The ID of the organization.
cnsEndpoint :: Lens' CreateNotificationSubscription Text Source #
The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with "https://".
cnsProtocol :: Lens' CreateNotificationSubscription SubscriptionProtocolType Source #
The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
cnsSubscriptionType :: Lens' CreateNotificationSubscription SubscriptionType Source #
The notification type.
Destructuring the Response
createNotificationSubscriptionResponse Source #
Creates a value of CreateNotificationSubscriptionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnsrsSubscription
- The subscription.cnsrsResponseStatus
- -- | The response status code.
data CreateNotificationSubscriptionResponse Source #
See: createNotificationSubscriptionResponse
smart constructor.
Response Lenses
cnsrsSubscription :: Lens' CreateNotificationSubscriptionResponse (Maybe Subscription) Source #
The subscription.
cnsrsResponseStatus :: Lens' CreateNotificationSubscriptionResponse Int Source #
- - | The response status code.