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

************
put_detector
************



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

  

  Creates or updates a detector.

  

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


  **Request Syntax**
  ::

    response = client.put_detector(
        detectorId='string',
        description='string',
        eventTypeName='string',
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type detectorId: string
  :param detectorId: **[REQUIRED]** 

    The detector ID.

    

  
  :type description: string
  :param description: 

    The description of the detector.

    

  
  :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`

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

  