:doc:`FraudDetector <../../frauddetector>` / Client / update_list

***********
update_list
***********



.. py:method:: FraudDetector.Client.update_list(**kwargs)

  

  Updates a list.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateList>`_  


  **Request Syntax**
  ::

    response = client.update_list(
        name='string',
        elements=[
            'string',
        ],
        description='string',
        updateMode='REPLACE'|'APPEND'|'REMOVE',
        variableType='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the list to update.

    

  
  :type elements: list
  :param elements: 

    One or more list elements to add or replace. If you are providing the elements, make sure to specify the ``updateMode`` to use.

     

    If you are deleting all elements from the list, use ``REPLACE`` for the ``updateMode`` and provide an empty list (0 elements).

    

  
    - *(string) --* 

    

  :type description: string
  :param description: 

    The new description.

    

  
  :type updateMode: string
  :param updateMode: 

    The update mode (type).

     

    
    * Use ``APPEND`` if you are adding elements to the list.
     
    * Use ``REPLACE`` if you replacing existing elements in the list.
     
    * Use ``REMOVE`` if you are removing elements from the list.
    

    

  
  :type variableType: string
  :param variableType: 

    The variable type you want to assign to the list.

     

    .. note::

      

      You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.

      

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`FraudDetector.Client.exceptions.ValidationException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`FraudDetector.Client.exceptions.InternalServerException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ThrottlingException`

  
  *   :py:class:`FraudDetector.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ConflictException`

  