Client
health | R Documentation |
AWS Health APIs and Notifications¶
Description¶
Health
The Health API provides access to the Health information that appears in the Health Dashboard. You can use the API operations to get information about events that might affect your Amazon Web Services and resources.
You must have a Business, Enterprise On-Ramp, or Enterprise Support plan
from Amazon Web Services
Support to use the Health API.
If you call the Health API from an Amazon Web Services account that
doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan,
you receive a SubscriptionRequiredException
error.
For API access, you need an access key ID and a secret access key. Use temporary credentials instead of long-term access keys when possible. Temporary credentials include an access key ID, a secret access key, and a security token that indicates when the credentials expire. For more information, see Best practices for managing Amazon Web Services access keys in the Amazon Web Services General Reference.
You can use the Health endpoint health.us-east-1.amazonaws.com (HTTPS) to call the Health API operations. Health supports a multi-Region application architecture and has two regional endpoints in an active-passive configuration. You can use the high availability endpoint example to determine which Amazon Web Services Region is active, so that you can get the latest information from the API. For more information, see Accessing the Health API in the Health User Guide.
For authentication of requests, Health uses the Signature Version 4 Signing Process.
If your Amazon Web Services account is part of Organizations, you can use the Health organizational view feature. This feature provides a centralized view of Health events across all accounts in your organization. You can aggregate Health events in real time to identify accounts in your organization that are affected by an operational event or get notified of security vulnerabilities. Use the organizational view API operations to enable this feature and return event information. For more information, see Aggregating Health events in the Health User Guide.
When you use the Health API operations to return Health events, see the following recommendations:
-
Use the eventScopeCode parameter to specify whether to return Health events that are public or account-specific.
-
Use pagination to view all events from the response. For example, if you call the
describe_events_for_organization
operation to get all events in your organization, you might receive several page results. Specify thenextToken
in the next request to return more results.
Usage¶
Arguments¶
config
Optional configuration of credentials, endpoint, and/or region.
credentials:
creds:
access_key_id: AWS access key ID
secret_access_key: AWS secret access key
session_token: AWS temporary session token
profile: The name of a profile to use. If not given, then the default profile is used.
anonymous: Set anonymous credentials.
endpoint: The complete URL to use for the constructed client.
region: The AWS Region used in instantiating the client.
close_connection: Immediately close all HTTP connections.
timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.
s3_force_path_style: Set this to
true
to force the request to use path-style addressing, i.e.http://s3.amazonaws.com/BUCKET/KEY
.sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html
credentials
Optional credentials shorthand for the config parameter
creds:
access_key_id: AWS access key ID
secret_access_key: AWS secret access key
session_token: AWS temporary session token
profile: The name of a profile to use. If not given, then the default profile is used.
anonymous: Set anonymous credentials.
endpoint
Optional shorthand for complete URL to use for the constructed client.
region
Optional shorthand for AWS Region used in instantiating the client.
Value¶
A client for the service. You can call the service's operations using
syntax like svc$operation(...)
, where svc
is the name you've
assigned to the client. The available operations are listed in the
Operations section.
Service syntax¶
svc <- health(
config = list(
credentials = list(
creds = list(
access_key_id = "string",
secret_access_key = "string",
session_token = "string"
),
profile = "string",
anonymous = "logical"
),
endpoint = "string",
region = "string",
close_connection = "logical",
timeout = "numeric",
s3_force_path_style = "logical",
sts_regional_endpoint = "string"
),
credentials = list(
creds = list(
access_key_id = "string",
secret_access_key = "string",
session_token = "string"
),
profile = "string",
anonymous = "logical"
),
endpoint = "string",
region = "string"
)
Operations¶
- Returns a list of accounts in the organization from Organizations that are affected by the provided event
- describe_affected_entities
- Returns a list of entities that have been affected by the specified events, based on the specified filter criteria
- Returns a list of entities that have been affected by one or more events for one or more accounts in your organization in Organizations, based on the filter criteria
- describe_entity_aggregates
- Returns the number of entities that are affected by each of the specified events
- Returns a list of entity aggregates for your Organizations that are affected by each of the specified events
- describe_event_aggregates
- Returns the number of events of each event type (issue, scheduled change, and account notification)
- describe_event_details
- Returns detailed information about one or more specified events
- Returns detailed information about one or more specified events for one or more Amazon Web Services accounts in your organization
- describe_events
- Returns information about events that meet the specified filter criteria
- describe_events_for_organization
- Returns information about events across your organization in Organizations
- describe_event_types
- Returns the event types that meet the specified filter criteria
- This operation provides status information on enabling or disabling Health to work with your organization
- Disables Health from working with Organizations
- Enables Health to work with Organizations
Examples¶
## Not run:
svc <- health()
svc$describe_affected_accounts_for_organization(
Foo = 123
)
## End(Not run)