deleteStream method
Deletes a stream.
May throw ResourceNotFoundException. May throw DeleteConflictException. May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException.
Parameter streamId
:
The stream ID.
Implementation
Future<void> deleteStream({
required String streamId,
}) async {
ArgumentError.checkNotNull(streamId, 'streamId');
_s.validateStringLength(
'streamId',
streamId,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/streams/${Uri.encodeComponent(streamId)}',
exceptionFnMap: _exceptionFns,
);
}