aws.health.describe_affected_accounts_for_organization
Example SQL Queries
SELECT * FROMaws.health.describe_affected_accounts_for_organizationWHERE"event_arn" = 'VALUE';Description
Returns a list of accounts in the organization from Organizations that are affected by the provided event. For more information about the different types of Health events, see Event.
Before you can call this operation, you must first enable Health to work with Organizations. To do this, call the EnableHealthServiceAccessForOrganization operation from your organization's management account.
This API operation uses pagination. Specify the nextToken parameter in the next request to return more results.
Table Definition
| Column Name | Column Data Type |
|---|---|
| event_arn Required Input Column 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 | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| affected_accounts A JSON set of elements of the affected accounts. | VARCHAR[] |
Show child fields
| |
| event_scope_code This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
| VARCHAR |