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
- data Event = Event' {
- arn :: Maybe Text
- availabilityZone :: Maybe Text
- endTime :: Maybe POSIX
- eventScopeCode :: Maybe EventScopeCode
- eventTypeCategory :: Maybe EventTypeCategory
- eventTypeCode :: Maybe Text
- lastUpdatedTime :: Maybe POSIX
- region :: Maybe Text
- service :: Maybe Text
- startTime :: Maybe POSIX
- statusCode :: Maybe EventStatusCode
- newEvent :: Event
- event_arn :: Lens' Event (Maybe Text)
- event_availabilityZone :: Lens' Event (Maybe Text)
- event_endTime :: Lens' Event (Maybe UTCTime)
- event_eventScopeCode :: Lens' Event (Maybe EventScopeCode)
- event_eventTypeCategory :: Lens' Event (Maybe EventTypeCategory)
- event_eventTypeCode :: Lens' Event (Maybe Text)
- event_lastUpdatedTime :: Lens' Event (Maybe UTCTime)
- event_region :: Lens' Event (Maybe Text)
- event_service :: Lens' Event (Maybe Text)
- event_startTime :: Lens' Event (Maybe UTCTime)
- event_statusCode :: Lens' Event (Maybe EventStatusCode)
Documentation
Summary information about an Health event.
Health events can be public or account-specific:
- Public events might be service events that are not specific to an Amazon Web Services account. For example, if there is an issue with an Amazon Web Services Region, Health provides information about the event, even if you don't use services or resources in that Region.
- Account-specific events are specific to either your Amazon Web Services account or an account in your organization. For example, if there's an issue with Amazon Elastic Compute Cloud in a Region that you use, Health provides information about the event and the affected resources in the account.
You can determine if an event is public or account-specific by using the
eventScopeCode
parameter. For more information, see
eventScopeCode.
See: newEvent
smart constructor.
Event' | |
|
Instances
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:arn:Event'
, event_arn
- The unique identifier for the event. The event ARN has the
arn:aws:health:
event-region
::event/
SERVICE
/
EVENT_TYPE_CODE
/
EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
$sel:availabilityZone:Event'
, event_availabilityZone
- The Amazon Web Services Availability Zone of the event. For example,
us-east-1a.
$sel:endTime:Event'
, event_endTime
- The date and time that the event ended.
$sel:eventScopeCode:Event'
, event_eventScopeCode
- This parameter specifies if the Health event is a public Amazon Web
Services service event or an account-specific event.
- If the
eventScopeCode
value isPUBLIC
, then theaffectedAccounts
value is always empty. - If the
eventScopeCode
value isACCOUNT_SPECIFIC
, then theaffectedAccounts
value lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. - If the
eventScopeCode
value isNONE
, then theeventArn
that you specified in the request is invalid or doesn't exist.
$sel:eventTypeCategory:Event'
, event_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.
$sel:eventTypeCode:Event'
, event_eventTypeCode
- The unique identifier for the event type. The format is
AWS_
SERVICE
_
DESCRIPTION
; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
$sel:lastUpdatedTime:Event'
, event_lastUpdatedTime
- The most recent date and time that the event was updated.
$sel:region:Event'
, event_region
- The Amazon Web Services Region name of the event.
$sel:service:Event'
, event_service
- The Amazon Web Services service that is affected by the event. For
example, EC2
, RDS
.
$sel:startTime:Event'
, event_startTime
- The date and time that the event began.
$sel:statusCode:Event'
, event_statusCode
- The most recent status of the event. Possible values are open
,
closed
, and upcoming
.
event_arn :: Lens' Event (Maybe Text) Source #
The unique identifier for the event. The event ARN has the
arn:aws:health:
event-region
::event/
SERVICE
/
EVENT_TYPE_CODE
/
EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
event_availabilityZone :: Lens' Event (Maybe Text) Source #
The Amazon Web Services Availability Zone of the event. For example, us-east-1a.
event_eventScopeCode :: Lens' Event (Maybe EventScopeCode) Source #
This parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.
- If the
eventScopeCode
value isPUBLIC
, then theaffectedAccounts
value is always empty. - If the
eventScopeCode
value isACCOUNT_SPECIFIC
, then theaffectedAccounts
value lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. - If the
eventScopeCode
value isNONE
, then theeventArn
that you specified in the request is invalid or doesn't exist.
event_eventTypeCategory :: Lens' Event (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.
event_eventTypeCode :: Lens' Event (Maybe Text) Source #
The unique identifier for the event type. The format is
AWS_
SERVICE
_
DESCRIPTION
; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
event_lastUpdatedTime :: Lens' Event (Maybe UTCTime) Source #
The most recent date and time that the event was updated.
event_service :: Lens' Event (Maybe Text) Source #
The Amazon Web Services service that is affected by the event. For
example, EC2
, RDS
.
event_statusCode :: Lens' Event (Maybe EventStatusCode) Source #
The most recent status of the event. Possible values are open
,
closed
, and upcoming
.