describeOrganizationHealth method
Returns active insights, predictive insights, and resource hours analyzed in last hour.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter accountIds :
The ID of the Amazon Web Services account.
Parameter organizationalUnitIds :
The ID of the organizational unit.
Implementation
Future<DescribeOrganizationHealthResponse> describeOrganizationHealth({
List<String>? accountIds,
List<String>? organizationalUnitIds,
}) async {
final $payload = <String, dynamic>{
if (accountIds != null) 'AccountIds': accountIds,
if (organizationalUnitIds != null)
'OrganizationalUnitIds': organizationalUnitIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/organization/health',
exceptionFnMap: _exceptionFns,
);
return DescribeOrganizationHealthResponse.fromJson(response);
}