amazonka-health-2.0: Amazon Health APIs and Notifications SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AWSHealth.Types.EventType

Description

 
Synopsis

Documentation

data EventType Source #

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.

Constructors

EventType' 

Fields

  • category :: Maybe EventTypeCategory

    A list of event type category codes. Possible values are issue, accountNotification, or scheduledChange. Currently, the investigation value isn't supported at this time.

  • code :: Maybe Text

    The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.

  • service :: Maybe Text

    The Amazon Web Services service that is affected by the event. For example, EC2, RDS.

Instances

Instances details
FromJSON EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

Generic EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

Associated Types

type Rep EventType :: Type -> Type #

Read EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

Show EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

NFData EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

Methods

rnf :: EventType -> () #

Eq EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

Hashable EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

type Rep EventType Source # 
Instance details

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.

eventType_code :: Lens' EventType (Maybe Text) Source #

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 Amazon Web Services service that is affected by the event. For example, EC2, RDS.