| 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 |
Network.AWS.Inspector.SubscribeToEvent
Description
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
- subscribeToEvent :: Text -> InspectorEvent -> Text -> SubscribeToEvent
- data SubscribeToEvent
- steResourceARN :: Lens' SubscribeToEvent Text
- steEvent :: Lens' SubscribeToEvent InspectorEvent
- steTopicARN :: Lens' SubscribeToEvent Text
- subscribeToEventResponse :: SubscribeToEventResponse
- data SubscribeToEventResponse
Creating a Request
Arguments
| :: Text | |
| -> InspectorEvent | |
| -> Text | |
| -> SubscribeToEvent |
Creates a value of SubscribeToEvent with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
steResourceARN- The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.steEvent- The event for which you want to receive SNS notifications.steTopicARN- The ARN of the SNS topic to which the SNS notifications are sent.
data SubscribeToEvent Source #
See: subscribeToEvent smart constructor.
Instances
Request Lenses
steResourceARN :: Lens' SubscribeToEvent Text Source #
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
steEvent :: Lens' SubscribeToEvent InspectorEvent Source #
The event for which you want to receive SNS notifications.
steTopicARN :: Lens' SubscribeToEvent Text Source #
The ARN of the SNS topic to which the SNS notifications are sent.
Destructuring the Response
subscribeToEventResponse :: SubscribeToEventResponse Source #
Creates a value of SubscribeToEventResponse with the minimum fields required to make a request.
data SubscribeToEventResponse Source #
See: subscribeToEventResponse smart constructor.