describeStreamSummary method
Provides a summarized description of the specified Kinesis data stream without the shard list.
The information returned includes the stream name, Amazon Resource Name (ARN), status, record retention period, approximate creation time, monitoring, encryption details, and open shard count.
DescribeStreamSummary has a limit of 20 transactions per second per account.
May throw ResourceNotFoundException. May throw LimitExceededException.
Parameter streamName
:
The name of the stream to describe.
Implementation
Future<DescribeStreamSummaryOutput> describeStreamSummary({
required String streamName,
}) async {
ArgumentError.checkNotNull(streamName, 'streamName');
_s.validateStringLength(
'streamName',
streamName,
1,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Kinesis_20131202.DescribeStreamSummary'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'StreamName': streamName,
},
);
return DescribeStreamSummaryOutput.fromJson(jsonResponse.body);
}