getKey method
Returns a key value pair.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
Parameter key :
The key to get.
Parameter kvsARN :
The Amazon Resource Name (ARN) of the Key Value Store.
Implementation
Future<GetKeyResponse> getKey({
required String key,
required String kvsARN,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/key-value-stores/keys/${Uri.encodeComponent(key)}',
endpoint: _resolveEndpoint(
kvsARN: kvsARN,
),
exceptionFnMap: _exceptionFns,
);
return GetKeyResponse.fromJson(response);
}