Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Associates a directory with an SNS topic. This establishes the directory as a publisher to the specified SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.
- registerEventTopic :: Text -> Text -> RegisterEventTopic
- data RegisterEventTopic
- retDirectoryId :: Lens' RegisterEventTopic Text
- retTopicName :: Lens' RegisterEventTopic Text
- registerEventTopicResponse :: Int -> RegisterEventTopicResponse
- data RegisterEventTopicResponse
- retrsResponseStatus :: Lens' RegisterEventTopicResponse Int
Creating a Request
Creates a value of RegisterEventTopic
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
retDirectoryId
- The Directory ID that will publish status messages to the SNS topic.retTopicName
- The SNS topic name to which the directory will publish status messages. This SNS topic must be in the same region as the specified Directory ID.
data RegisterEventTopic Source #
Registers a new event topic.
See: registerEventTopic
smart constructor.
Request Lenses
retDirectoryId :: Lens' RegisterEventTopic Text Source #
The Directory ID that will publish status messages to the SNS topic.
retTopicName :: Lens' RegisterEventTopic Text Source #
The SNS topic name to which the directory will publish status messages. This SNS topic must be in the same region as the specified Directory ID.
Destructuring the Response
registerEventTopicResponse Source #
Creates a value of RegisterEventTopicResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
retrsResponseStatus
- -- | The response status code.
data RegisterEventTopicResponse Source #
The result of a RegisterEventTopic request.
See: registerEventTopicResponse
smart constructor.
Response Lenses
retrsResponseStatus :: Lens' RegisterEventTopicResponse Int Source #
- - | The response status code.