getCallerIdentity method

Future<GetCallerIdentityResponse> getCallerIdentity()

Returns details about the IAM user or role whose credentials are used to call the operation.

Implementation

Future<GetCallerIdentityResponse> getCallerIdentity() async {
  final $request = <String, dynamic>{};
  final $result = await _protocol.send(
    $request,
    action: 'GetCallerIdentity',
    version: '2011-06-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['GetCallerIdentityRequest'],
    shapes: shapes,
    resultWrapper: 'GetCallerIdentityResult',
  );
  return GetCallerIdentityResponse.fromXml($result);
}