libZSservicesZSamazonka-healthZSamazonka-health
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AWSHealth.Types.EventType

Description

 
Synopsis

Documentation

data EventType Source #

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.

Constructors

EventType' 

Fields

  • service :: Maybe Text

    The AWS service that is affected by the event. For example, EC2, RDS.

  • category :: Maybe EventTypeCategory

    A list of event type category codes (issue, scheduledChange, or accountNotification).

  • code :: Maybe Text

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

Instances

Instances details
Eq EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

Read EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

Show 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 #

NFData EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

Methods

rnf :: EventType -> () #

Hashable EventType Source # 
Instance details

Defined in Amazonka.AWSHealth.Types.EventType

FromJSON 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" "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).

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.