redactRoomMessage method
Redacts the specified message from the specified Amazon Chime channel.
May throw NotFoundException. May throw ForbiddenException. May throw UnauthorizedClientException. May throw ThrottledClientException. May throw BadRequestException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter accountId
:
The Amazon Chime account ID.
Parameter messageId
:
The message ID.
Parameter roomId
:
The room ID.
Implementation
Future<void> redactRoomMessage({
required String accountId,
required String messageId,
required String roomId,
}) async {
ArgumentError.checkNotNull(accountId, 'accountId');
ArgumentError.checkNotNull(messageId, 'messageId');
ArgumentError.checkNotNull(roomId, 'roomId');
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/accounts/${Uri.encodeComponent(accountId)}/rooms/${Uri.encodeComponent(roomId)}/messages/${Uri.encodeComponent(messageId)}?operation=redact',
exceptionFnMap: _exceptionFns,
);
}