describeResourcePolicies method
Lists the resource policies in this account.
May throw InvalidParameterException. May throw ServiceUnavailableException.
Parameter limit
:
The maximum number of resource policies to be displayed with one call of
this API.
Implementation
Future<DescribeResourcePoliciesResponse> describeResourcePolicies({
int? limit,
String? nextToken,
}) async {
_s.validateNumRange(
'limit',
limit,
1,
50,
);
_s.validateStringLength(
'nextToken',
nextToken,
1,
1152921504606846976,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Logs_20140328.DescribeResourcePolicies'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (limit != null) 'limit': limit,
if (nextToken != null) 'nextToken': nextToken,
},
);
return DescribeResourcePoliciesResponse.fromJson(jsonResponse.body);
}