describeIdentity method
Returns metadata related to the given identity, including when the identity was created and any associated linked logins.
You must use Amazon Web Services developer credentials to call this operation.
May throw InternalErrorException.
May throw InvalidParameterException.
May throw NotAuthorizedException.
May throw ResourceNotFoundException.
May throw TooManyRequestsException.
Parameter identityId :
A unique identifier in the format REGION:GUID.
Implementation
Future<IdentityDescription> describeIdentity({
required String identityId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSCognitoIdentityService.DescribeIdentity'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'IdentityId': identityId,
},
);
return IdentityDescription.fromJson(jsonResponse.body);
}