Smaws_Client_Health.DescribeAffectedAccountsForOrganizationReturns 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidPaginationToken of Types.invalid_pagination_token ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.describe_affected_accounts_for_organization_request ->
(Types.describe_affected_accounts_for_organization_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidPaginationToken of Types.invalid_pagination_token ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.describe_affected_accounts_for_organization_request ->
(Types.describe_affected_accounts_for_organization_response
Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidPaginationToken of Types.invalid_pagination_token ]
* Smaws_Lib.Response.metadata)
Stdlib.result