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
Documentation
Contains the metadata about a type of event that is reported by AWS
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 AWS Health delivers a specific event to your AWS account. For more information, see Monitor for AWS Health events with Amazon CloudWatch Events in the AWS Health User Guide.
See: newEventType
smart constructor.
EventType' | |
|
Instances
Eq EventType Source # | |
Read EventType Source # | |
Show EventType Source # | |
Generic EventType Source # | |
NFData EventType Source # | |
Defined in Amazonka.AWSHealth.Types.EventType | |
Hashable EventType Source # | |
Defined in Amazonka.AWSHealth.Types.EventType | |
FromJSON EventType Source # | |
type Rep EventType Source # | |
Defined in Amazonka.AWSHealth.Types.EventType type Rep EventType = D1 ('MetaData "EventType" "Amazonka.AWSHealth.Types.EventType" "libZSservicesZSamazonka-healthZSamazonka-health" 'False) (C1 ('MetaCons "EventType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "category") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventTypeCategory)) :*: S1 ('MetaSel ('Just "code") '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:service:EventType'
, eventType_service
- The AWS service that is affected by the event. For example, EC2
,
RDS
.
$sel:category:EventType'
, eventType_category
- A list of event type category codes (issue
, scheduledChange
, or
accountNotification
).
$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
.
eventType_service :: Lens' EventType (Maybe Text) Source #
The AWS 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 (issue
, scheduledChange
, or
accountNotification
).