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 |
Synopsis
- data Channel = Channel' {
- id :: Maybe Text
- eventPublishers :: NonEmpty EventPublisher
- uri :: Text
- newChannel :: NonEmpty EventPublisher -> Text -> Channel
- channel_id :: Lens' Channel (Maybe Text)
- channel_eventPublishers :: Lens' Channel (NonEmpty EventPublisher)
- channel_uri :: Lens' Channel Text
Documentation
Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.
See: newChannel
smart constructor.
Channel' | |
|
Instances
Eq Channel Source # | |
Read Channel Source # | |
Show Channel Source # | |
Generic Channel Source # | |
NFData Channel Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Channel | |
Hashable Channel Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Channel | |
ToJSON Channel Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Channel | |
FromJSON Channel Source # | |
type Rep Channel Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Channel type Rep Channel = D1 ('MetaData "Channel" "Amazonka.CodeGuruProfiler.Types.Channel" "libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler" 'False) (C1 ('MetaCons "Channel'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "eventPublishers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty EventPublisher)) :*: S1 ('MetaSel ('Just "uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
Create a value of Channel
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:id:Channel'
, channel_id
- Unique identifier for each Channel
in the notification configuration
of a Profiling Group. A random UUID for channelId is used when adding a
channel to the notification configuration if not specified in the
request.
$sel:eventPublishers:Channel'
, channel_eventPublishers
- List of publishers for different type of events that may be detected in
an application from the profile. Anomaly detection is the only event
publisher in Profiler.
$sel:uri:Channel'
, channel_uri
- Unique arn of the resource to be used for notifications. We support a
valid SNS topic arn as a channel uri.
channel_id :: Lens' Channel (Maybe Text) Source #
Unique identifier for each Channel
in the notification configuration
of a Profiling Group. A random UUID for channelId is used when adding a
channel to the notification configuration if not specified in the
request.
channel_eventPublishers :: Lens' Channel (NonEmpty EventPublisher) Source #
List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.