| 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.CodeGuruProfiler.AddNotificationChannels
Description
Add up to 2 anomaly notifications channels for a profiling group.
Synopsis
- data AddNotificationChannels = AddNotificationChannels' {}
- newAddNotificationChannels :: NonEmpty Channel -> Text -> AddNotificationChannels
- addNotificationChannels_channels :: Lens' AddNotificationChannels (NonEmpty Channel)
- addNotificationChannels_profilingGroupName :: Lens' AddNotificationChannels Text
- data AddNotificationChannelsResponse = AddNotificationChannelsResponse' {}
- newAddNotificationChannelsResponse :: Int -> AddNotificationChannelsResponse
- addNotificationChannelsResponse_notificationConfiguration :: Lens' AddNotificationChannelsResponse (Maybe NotificationConfiguration)
- addNotificationChannelsResponse_httpStatus :: Lens' AddNotificationChannelsResponse Int
Creating a Request
data AddNotificationChannels Source #
The structure representing the AddNotificationChannelsRequest.
See: newAddNotificationChannels smart constructor.
Constructors
| AddNotificationChannels' | |
Fields
| |
Instances
newAddNotificationChannels Source #
Arguments
| :: NonEmpty Channel | |
| -> Text | |
| -> AddNotificationChannels |
Create a value of AddNotificationChannels 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:
AddNotificationChannels, addNotificationChannels_channels - One or 2 channels to report to when anomalies are detected.
AddNotificationChannels, addNotificationChannels_profilingGroupName - The name of the profiling group that we are setting up notifications
for.
Request Lenses
addNotificationChannels_channels :: Lens' AddNotificationChannels (NonEmpty Channel) Source #
One or 2 channels to report to when anomalies are detected.
addNotificationChannels_profilingGroupName :: Lens' AddNotificationChannels Text Source #
The name of the profiling group that we are setting up notifications for.
Destructuring the Response
data AddNotificationChannelsResponse Source #
The structure representing the AddNotificationChannelsResponse.
See: newAddNotificationChannelsResponse smart constructor.
Constructors
| AddNotificationChannelsResponse' | |
Fields
| |
Instances
newAddNotificationChannelsResponse Source #
Create a value of AddNotificationChannelsResponse 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:notificationConfiguration:AddNotificationChannelsResponse', addNotificationChannelsResponse_notificationConfiguration - The new notification configuration for this profiling group.
$sel:httpStatus:AddNotificationChannelsResponse', addNotificationChannelsResponse_httpStatus - The response's http status code.
Response Lenses
addNotificationChannelsResponse_notificationConfiguration :: Lens' AddNotificationChannelsResponse (Maybe NotificationConfiguration) Source #
The new notification configuration for this profiling group.
addNotificationChannelsResponse_httpStatus :: Lens' AddNotificationChannelsResponse Int Source #
The response's http status code.