deleteRoomMembership method

Future<void> deleteRoomMembership({
  1. required String accountId,
  2. required String memberId,
  3. required String roomId,
})

Removes a member from a chat room in an Amazon Chime Enterprise account.

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

Parameter accountId : The Amazon Chime account ID.

Parameter memberId : The member ID (user ID or bot ID).

Parameter roomId : The room ID.

Implementation

Future<void> deleteRoomMembership({
  required String accountId,
  required String memberId,
  required String roomId,
}) async {
  ArgumentError.checkNotNull(accountId, 'accountId');
  ArgumentError.checkNotNull(memberId, 'memberId');
  ArgumentError.checkNotNull(roomId, 'roomId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/accounts/${Uri.encodeComponent(accountId)}/rooms/${Uri.encodeComponent(roomId)}/memberships/${Uri.encodeComponent(memberId)}',
    exceptionFnMap: _exceptionFns,
  );
}