batchGetPolicy method

Future<BatchGetPolicyOutput> batchGetPolicy({
  1. required List<BatchGetPolicyInputItem> requests,
})

Retrieves information about a group (batch) of policies.

Parameter requests : An array of up to 100 policies you want information about.

Implementation

Future<BatchGetPolicyOutput> batchGetPolicy({
  required List<BatchGetPolicyInputItem> requests,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'VerifiedPermissions.BatchGetPolicy'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'requests': requests,
    },
  );

  return BatchGetPolicyOutput.fromJson(jsonResponse.body);
}