getStream method

Future<GetStreamOutput> getStream({
  1. required String clusterIdentifier,
  2. required String streamIdentifier,
})

Retrieves information about a stream.

May throw ResourceNotFoundException.

Parameter clusterIdentifier : The ID of the cluster containing the stream to retrieve.

Parameter streamIdentifier : The ID of the stream to retrieve.

Implementation

Future<GetStreamOutput> getStream({
  required String clusterIdentifier,
  required String streamIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/stream/${Uri.encodeComponent(clusterIdentifier)}/${Uri.encodeComponent(streamIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetStreamOutput.fromJson(response);
}