redactConversationMessage method
Redacts the specified message from the specified Amazon Chime conversation.
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 conversationId
:
The conversation ID.
Parameter messageId
:
The message ID.
Implementation
Future<void> redactConversationMessage({
required String accountId,
required String conversationId,
required String messageId,
}) async {
ArgumentError.checkNotNull(accountId, 'accountId');
ArgumentError.checkNotNull(conversationId, 'conversationId');
ArgumentError.checkNotNull(messageId, 'messageId');
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/accounts/${Uri.encodeComponent(accountId)}/conversations/${Uri.encodeComponent(conversationId)}/messages/${Uri.encodeComponent(messageId)}?operation=redact',
exceptionFnMap: _exceptionFns,
);
}