describeIdentityPoolUsage method

Future<DescribeIdentityPoolUsageResponse> describeIdentityPoolUsage({
  1. required String identityPoolId,
})

Gets usage details (for example, data storage) about a particular identity pool.

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

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

Parameter identityPoolId : A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

Implementation

Future<DescribeIdentityPoolUsageResponse> describeIdentityPoolUsage({
  required String identityPoolId,
}) async {
  ArgumentError.checkNotNull(identityPoolId, 'identityPoolId');
  _s.validateStringLength(
    'identityPoolId',
    identityPoolId,
    1,
    55,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/identitypools/${Uri.encodeComponent(identityPoolId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeIdentityPoolUsageResponse.fromJson(response);
}