| 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.Inspector.SubscribeToEvent
Description
Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
Synopsis
- data SubscribeToEvent = SubscribeToEvent' {
- resourceArn :: Text
- event :: InspectorEvent
- topicArn :: Text
- newSubscribeToEvent :: Text -> InspectorEvent -> Text -> SubscribeToEvent
- subscribeToEvent_resourceArn :: Lens' SubscribeToEvent Text
- subscribeToEvent_event :: Lens' SubscribeToEvent InspectorEvent
- subscribeToEvent_topicArn :: Lens' SubscribeToEvent Text
- data SubscribeToEventResponse = SubscribeToEventResponse' {
- newSubscribeToEventResponse :: SubscribeToEventResponse
Creating a Request
data SubscribeToEvent Source #
See: newSubscribeToEvent smart constructor.
Constructors
| SubscribeToEvent' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> InspectorEvent | |
| -> Text | |
| -> SubscribeToEvent |
Create a value of SubscribeToEvent 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:
SubscribeToEvent, subscribeToEvent_resourceArn - The ARN of the assessment template that is used during the event for
which you want to receive SNS notifications.
SubscribeToEvent, subscribeToEvent_event - The event for which you want to receive SNS notifications.
SubscribeToEvent, subscribeToEvent_topicArn - The ARN of the SNS topic to which the SNS notifications are sent.
Request Lenses
subscribeToEvent_resourceArn :: Lens' SubscribeToEvent Text Source #
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
subscribeToEvent_event :: Lens' SubscribeToEvent InspectorEvent Source #
The event for which you want to receive SNS notifications.
subscribeToEvent_topicArn :: Lens' SubscribeToEvent Text Source #
The ARN of the SNS topic to which the SNS notifications are sent.
Destructuring the Response
data SubscribeToEventResponse Source #
See: newSubscribeToEventResponse smart constructor.
Constructors
| SubscribeToEventResponse' | |
Instances
newSubscribeToEventResponse :: SubscribeToEventResponse Source #
Create a value of SubscribeToEventResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.