listIdentityPoolUsage method

Future<ListIdentityPoolUsageResponse> listIdentityPoolUsage({
  1. int? maxResults,
  2. String? nextToken,
})

Gets a list of identity pools registered with Cognito.

ListIdentityPoolUsage can only be called with developer credentials. You cannot make this API call with the temporary user credentials provided by Cognito Identity.

May throw NotAuthorizedException. May throw InvalidParameterException. May throw InternalErrorException. May throw TooManyRequestsException.

Parameter maxResults : The maximum number of results to be returned.

Parameter nextToken : A pagination token for obtaining the next page of results.

Implementation

Future<ListIdentityPoolUsageResponse> listIdentityPoolUsage({
  int? maxResults,
  String? nextToken,
}) async {
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/identitypools',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListIdentityPoolUsageResponse.fromJson(response);
}