Copyright | (c) 2013-2021 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 |
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.
AddNotificationChannels' | |
|
Instances
newAddNotificationChannels Source #
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:
$sel:channels:AddNotificationChannels'
, addNotificationChannels_channels
- One or 2 channels to report to when anomalies are detected.
$sel:profilingGroupName: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.
AddNotificationChannelsResponse' | |
|
Instances
Eq AddNotificationChannelsResponse Source # | |
Read AddNotificationChannelsResponse Source # | |
Show AddNotificationChannelsResponse Source # | |
Generic AddNotificationChannelsResponse Source # | |
NFData AddNotificationChannelsResponse Source # | |
Defined in Amazonka.CodeGuruProfiler.AddNotificationChannels rnf :: AddNotificationChannelsResponse -> () # | |
type Rep AddNotificationChannelsResponse Source # | |
Defined in Amazonka.CodeGuruProfiler.AddNotificationChannels type Rep AddNotificationChannelsResponse = D1 ('MetaData "AddNotificationChannelsResponse" "Amazonka.CodeGuruProfiler.AddNotificationChannels" "libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler" 'False) (C1 ('MetaCons "AddNotificationChannelsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "notificationConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.