describeKey method

Future<DescribeKeyResponse> describeKey({
  1. required String keyName,
})

Retrieves the API key resource details.

For more information, see Use API keys to authenticate in the Amazon Location Service Developer Guide.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter keyName : The name of the API key resource.

Implementation

Future<DescribeKeyResponse> describeKey({
  required String keyName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/metadata/v0/keys/${Uri.encodeComponent(keyName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeKeyResponse.fromJson(response);
}