describeIndexPolicies method
Returns the field index policies of the specified log group. For more information about field index policies, see PutIndexPolicy.
If a specified log group has a log-group level index policy, that policy is returned by this operation.
If a specified log group doesn't have a log-group level index policy, but an account-wide index policy applies to it, that account-wide policy is returned by this operation.
To find information about only account-level policies, use DescribeAccountPolicies instead.
May throw InvalidParameterException.
May throw LimitExceededException.
May throw OperationAbortedException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
Parameter logGroupIdentifiers :
An array containing the name or ARN of the log group that you want to
retrieve field index policies for.
Implementation
Future<DescribeIndexPoliciesResponse> describeIndexPolicies({
required List<String> logGroupIdentifiers,
String? nextToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Logs_20140328.DescribeIndexPolicies'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'logGroupIdentifiers': logGroupIdentifiers,
if (nextToken != null) 'nextToken': nextToken,
},
);
return DescribeIndexPoliciesResponse.fromJson(jsonResponse.body);
}