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

***********
create_list
***********



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

  

  Creates a list.

   

  List is a set of input data for a variable in your event dataset. You use the input data in a rule that's associated with your detector. For more information, see `Lists <https://docs.aws.amazon.com/frauddetector/latest/ug/lists.html>`__.

  

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


  **Request Syntax**
  ::

    response = client.create_list(
        name='string',
        elements=[
            'string',
        ],
        variableType='string',
        description='string',
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the list.

    

  
  :type elements: list
  :param elements: 

    The names of the elements, if providing. You can also create an empty list and add elements later using the `UpdateList <https://docs.aws.amazon.com/frauddetector/latest/api/API_Updatelist.html>`__ API.

    

  
    - *(string) --* 

    

  :type variableType: string
  :param variableType: 

    The variable type of the list. You can only assign the variable type with String data type. For more information, see `Variable types <https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types>`__.

    

  
  :type description: string
  :param description: 

    The description of the list.

    

  
  :type tags: list
  :param tags: 

    A collection of the key and value pairs.

    

  
    - *(dict) --* 

      A key and value pair.

      

    
      - **key** *(string) --* **[REQUIRED]** 

        A tag key.

        

      
      - **value** *(string) --* **[REQUIRED]** 

        A value assigned to a tag key.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

  