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 |
Synopsis
Documentation
Contains the metadata about a type of event that is reported by Health.
The EventType
shows the category, service, and the event type code of
the event. For example, an issue
might be the category, EC2
the
service, and AWS_EC2_SYSTEM_MAINTENANCE_EVENT
the event type code.
You can use the DescribeEventTypes API operation to return this information about an event.
You can also use the Amazon CloudWatch Events console to create a rule so that you can get notified or take action when Health delivers a specific event to your Amazon Web Services account. For more information, see Monitor for Health events with Amazon CloudWatch Events in the Health User Guide.
See: newEventType
smart constructor.
EventType' | |
|
Instances
FromJSON EventType Source # | |
Generic EventType Source # | |
Read EventType Source # | |
Show EventType Source # | |
NFData EventType Source # | |
Defined in Amazonka.AWSHealth.Types.EventType | |
Eq EventType Source # | |
Hashable EventType Source # | |
Defined in Amazonka.AWSHealth.Types.EventType | |
type Rep EventType Source # | |
Defined in Amazonka.AWSHealth.Types.EventType type Rep EventType = D1 ('MetaData "EventType" "Amazonka.AWSHealth.Types.EventType" "amazonka-health-2.0-97kQZARXu4I8k4sVSmOp5K" 'False) (C1 ('MetaCons "EventType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "category") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventTypeCategory)) :*: (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) |
newEventType :: EventType Source #
Create a value of EventType
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:category:EventType'
, eventType_category
- A list of event type category codes. Possible values are issue
,
accountNotification
, or scheduledChange
. Currently, the
investigation
value isn't supported at this time.
$sel:code:EventType'
, eventType_code
- The unique identifier for the event type. The format is
AWS_
SERVICE
_
DESCRIPTION
; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
$sel:service:EventType'
, eventType_service
- The Amazon Web Services service that is affected by the event. For
example, EC2
, RDS
.
eventType_category :: Lens' EventType (Maybe EventTypeCategory) Source #
A list of event type category codes. Possible values are issue
,
accountNotification
, or scheduledChange
. Currently, the
investigation
value isn't supported at this time.