Class: AWS.Health
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Health
- Identifier:
- health
- API Version:
- 2016-08-04
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
The AWS Health API provides programmatic access to the AWS Health information that is presented in the AWS Personal Health Dashboard. You can get information about events that affect your AWS resources:
-
DescribeEvents: Summary information about events.
-
DescribeEventDetails: Detailed information about one or more events.
-
DescribeAffectedEntities: Information about AWS resources that are affected by one or more events.
In addition, these operations provide information about event types and summary counts of events or affected entities:
-
DescribeEventTypes: Information about the kinds of events that AWS Health tracks.
-
DescribeEventAggregates: A count of the number of events that meet specified criteria.
-
DescribeEntityAggregates: A count of the number of affected entities that meet specified criteria.
The Health API requires a Business or Enterprise support plan from AWS Support. Calling the Health API from an account that does not have a Business or Enterprise support plan causes a SubscriptionRequiredException
.
For authentication of requests, AWS Health uses the Signature Version 4 Signing Process.
See the AWS Health User Guide for information about how to use the API.
Service Endpoint
The HTTP endpoint for the AWS Health API is:
Sending a Request Using Health
var health = new AWS.Health();
health.describeAffectedEntities(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Health object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var health = new AWS.Health({apiVersion: '2016-08-04'});
You can also set the API version globally in AWS.config.apiVersions
using
the health service identifier:
AWS.config.apiVersions = {
health: '2016-08-04',
// other service API versions
};
var health = new AWS.Health();
Constructor Summary
-
new AWS.Health(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
describeAffectedEntities(params = {}, callback) ⇒ AWS.Request
Returns a list of entities that have been affected by the specified events, based on the specified filter criteria.
-
describeEntityAggregates(params = {}, callback) ⇒ AWS.Request
Returns the number of entities that are affected by each of the specified events.
-
describeEventAggregates(params = {}, callback) ⇒ AWS.Request
Returns the number of events of each event type (issue, scheduled change, and account notification).
-
describeEventDetails(params = {}, callback) ⇒ AWS.Request
Returns detailed information about one or more specified events.
-
describeEvents(params = {}, callback) ⇒ AWS.Request
Returns information about events that meet the specified filter criteria.
-
describeEventTypes(params = {}, callback) ⇒ AWS.Request
Returns the event types that meet the specified filter criteria.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
Property Details
Method Details
describeAffectedEntities(params = {}, callback) ⇒ AWS.Request
Returns a list of entities that have been affected by the specified events, based on the specified filter criteria. Entities can refer to individual customer resources, groups of customer resources, or any other construct, depending on the AWS service. Events that have impact beyond that of the affected entities, or where the extent of impact is unknown, include at least one entity indicating this.
At least one event ARN is required. Results are sorted by the lastUpdatedTime
of the entity, starting with the most recent.
describeEntityAggregates(params = {}, callback) ⇒ AWS.Request
Returns the number of entities that are affected by each of the specified events. If no events are specified, the counts of all affected entities are returned.
describeEventAggregates(params = {}, callback) ⇒ AWS.Request
Returns the number of events of each event type (issue, scheduled change, and account notification). If no filter is specified, the counts of all events in each category are returned.
describeEventDetails(params = {}, callback) ⇒ AWS.Request
Returns detailed information about one or more specified events. Information includes standard event data (region, service, etc., as returned by DescribeEvents), a detailed event description, and possible additional metadata that depends upon the nature of the event. Affected entities are not included; to retrieve those, use the DescribeAffectedEntities operation.
If a specified event cannot be retrieved, an error message is returned for that event.
describeEvents(params = {}, callback) ⇒ AWS.Request
Returns information about events that meet the specified filter criteria. Events are returned in a summary form and do not include the detailed description, any additional metadata that depends on the event type, or any affected resources. To retrieve that information, use the DescribeEventDetails and DescribeAffectedEntities operations.
If no filter criteria are specified, all events are returned. Results are sorted by lastModifiedTime
, starting with the most recent.