getPoliciesStats method
Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
May throw InternalServerException.
Implementation
Future<GetPoliciesStatsResponse> getPoliciesStats() async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'OpenSearchServerless.GetPoliciesStats'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
);
return GetPoliciesStatsResponse.fromJson(jsonResponse.body);
}