deleteSignalingChannel method
Deletes a specified signaling channel. DeleteSignalingChannel
is an asynchronous operation. If you don't specify the channel's current
version, the most recent version is deleted.
May throw AccessDeniedException.
May throw ClientLimitExceededException.
May throw InvalidArgumentException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
May throw VersionMismatchException.
Parameter channelARN :
The Amazon Resource Name (ARN) of the signaling channel that you want to
delete.
Parameter currentVersion :
The current version of the signaling channel that you want to delete. You
can obtain the current version by invoking the
DescribeSignalingChannel or
ListSignalingChannels API operations.
Implementation
Future<void> deleteSignalingChannel({
required String channelARN,
String? currentVersion,
}) async {
final $payload = <String, dynamic>{
'ChannelARN': channelARN,
if (currentVersion != null) 'CurrentVersion': currentVersion,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/deleteSignalingChannel',
exceptionFnMap: _exceptionFns,
);
}