Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Event

import type { Event } from "https://aws-api.deno.dev/v0.4/services/health.ts?docs=full";

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.

interface Event {
arn?: string | null;
availabilityZone?: string | null;
endTime?: Date | number | null;
eventScopeCode?: eventScopeCode | null;
eventTypeCategory?: eventTypeCategory | null;
eventTypeCode?: string | null;
lastUpdatedTime?: Date | number | null;
region?: string | null;
service?: string | null;
startTime?: Date | number | null;
statusCode?: eventStatusCode | null;
}

§Properties

§
arn?: string | null
[src]

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
§
availabilityZone?: string | null
[src]

The Amazon Web Services Availability Zone of the event. For example, us-east-1a.

§
endTime?: Date | number | null
[src]

The date and time that the event ended.

§
eventScopeCode?: eventScopeCode | null
[src]

This parameter specifies if the Health event is a public Amazon Web Services service event or an account-specific event.

  • If the eventScopeCode value is PUBLIC, then the affectedAccounts value is always empty.
  • If the eventScopeCode value is ACCOUNT_SPECIFIC, then the affectedAccounts 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 is NONE, then the eventArn that you specified in the request is invalid or doesn't exist.
§
eventTypeCategory?: eventTypeCategory | null
[src]

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

§
eventTypeCode?: string | null
[src]

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

§
lastUpdatedTime?: Date | number | null
[src]

The most recent date and time that the event was updated.

§
region?: string | null
[src]

The Amazon Web Services Region name of the event.

§
service?: string | null
[src]

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

§
startTime?: Date | number | null
[src]

The date and time that the event began.

§
statusCode?: eventStatusCode | null
[src]

The most recent status of the event. Possible values are open, closed, and upcoming.