| 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.Types.Channel
Description
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.
Constructors
| Channel' | |
Fields
| |
Instances
| FromJSON Channel Source # | |
| ToJSON Channel Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Channel | |
| Generic Channel Source # | |
| Read Channel Source # | |
| Show Channel Source # | |
| NFData Channel Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Channel | |
| Eq Channel Source # | |
| Hashable Channel Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Channel | |
| type Rep Channel Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Channel type Rep Channel = D1 ('MetaData "Channel" "Amazonka.CodeGuruProfiler.Types.Channel" "amazonka-codeguruprofiler-2.0-DsjyOqDx8Zb8uCUpe33U62" '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.