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 Event = Event' {
- sourceName :: Maybe Text
- sourceType :: Maybe SourceType
- date :: Maybe POSIX
- message :: Maybe Text
- newEvent :: Event
- event_sourceName :: Lens' Event (Maybe Text)
- event_sourceType :: Lens' Event (Maybe SourceType)
- event_date :: Lens' Event (Maybe UTCTime)
- event_message :: Lens' Event (Maybe Text)
Documentation
Represents a single occurrence of something interesting within the system. Some examples of events are creating a cluster or adding or removing a node.
See: newEvent
smart constructor.
Event' | |
|
Instances
Eq Event Source # | |
Read Event Source # | |
Show Event Source # | |
Generic Event Source # | |
NFData Event Source # | |
Defined in Amazonka.MemoryDb.Types.Event | |
Hashable Event Source # | |
Defined in Amazonka.MemoryDb.Types.Event | |
FromJSON Event Source # | |
type Rep Event Source # | |
Defined in Amazonka.MemoryDb.Types.Event type Rep Event = D1 ('MetaData "Event" "Amazonka.MemoryDb.Types.Event" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "Event'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SourceType))) :*: (S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |
Create a value of Event
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:sourceName:Event'
, event_sourceName
- The name for the source of the event. For example, if the event occurred
at the cluster level, the identifier would be the name of the cluster.
$sel:sourceType:Event'
, event_sourceType
- Specifies the origin of this event - a cluster, a parameter group, a
security group, etc.
$sel:date:Event'
, event_date
- The date and time when the event occurred.
$sel:message:Event'
, event_message
- The text of the event.
event_sourceName :: Lens' Event (Maybe Text) Source #
The name for the source of the event. For example, if the event occurred at the cluster level, the identifier would be the name of the cluster.
event_sourceType :: Lens' Event (Maybe SourceType) Source #
Specifies the origin of this event - a cluster, a parameter group, a security group, etc.