describeStream method
Returns the most current information about the specified stream. You must
specify either the StreamName or the StreamARN.
May throw ClientLimitExceededException.
May throw InvalidArgumentException.
May throw NotAuthorizedException.
May throw ResourceNotFoundException.
Parameter streamARN :
The Amazon Resource Name (ARN) of the stream.
Parameter streamName :
The name of the stream.
Implementation
Future<DescribeStreamOutput> describeStream({
String? streamARN,
String? streamName,
}) async {
final $payload = <String, dynamic>{
if (streamARN != null) 'StreamARN': streamARN,
if (streamName != null) 'StreamName': streamName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/describeStream',
exceptionFnMap: _exceptionFns,
);
return DescribeStreamOutput.fromJson(response);
}