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

************
create_model
************



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

  

  Creates a model using the specified model type.

  

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


  **Request Syntax**
  ::

    response = client.create_model(
        modelId='string',
        modelType='ONLINE_FRAUD_INSIGHTS'|'TRANSACTION_FRAUD_INSIGHTS'|'ACCOUNT_TAKEOVER_INSIGHTS',
        description='string',
        eventTypeName='string',
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type modelId: string
  :param modelId: **[REQUIRED]** 

    The model ID.

    

  
  :type modelType: string
  :param modelType: **[REQUIRED]** 

    The model type.

    

  
  :type description: string
  :param description: 

    The model description.

    

  
  :type eventTypeName: string
  :param eventTypeName: **[REQUIRED]** 

    The name of the event type.

    

  
  :type tags: list
  :param tags: 

    A collection of 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`

  