redactConversationMessage method

Future<void> redactConversationMessage({
  1. required String accountId,
  2. required String conversationId,
  3. required String messageId,
})

Redacts the specified message from the specified Amazon Chime conversation.

May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

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 {
  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,
  );
}