describeKeyValueStore method

Future<DescribeKeyValueStoreResponse> describeKeyValueStore({
  1. required String kvsARN,
})

Returns metadata information about Key Value Store.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException.

Parameter kvsARN : The Amazon Resource Name (ARN) of the Key Value Store.

Implementation

Future<DescribeKeyValueStoreResponse> describeKeyValueStore({
  required String kvsARN,
}) async {
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'GET',
    requestUri: '/key-value-stores/${Uri.encodeComponent(kvsARN)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return DescribeKeyValueStoreResponse(
    created: nonNullableTimeStampFromJson($json['Created'] ?? 0),
    itemCount: ($json['ItemCount'] as int?) ?? 0,
    kvsARN: ($json['KvsARN'] as String?) ?? '',
    totalSizeInBytes: ($json['TotalSizeInBytes'] as int?) ?? 0,
    failureReason: $json['FailureReason'] as String?,
    lastModified: timeStampFromJson($json['LastModified']),
    status: $json['Status'] as String?,
    eTag: _s.extractHeaderStringValue(response.headers, 'ETag')!,
  );
}