:doc:`CodeGuruProfiler <../../codeguruprofiler>` / Client / submit_feedback

***************
submit_feedback
***************



.. py:method:: CodeGuruProfiler.Client.submit_feedback(**kwargs)

  

  Sends feedback to CodeGuru Profiler about whether the anomaly detected by the analysis is useful or not.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/SubmitFeedback>`_  


  **Request Syntax**
  ::

    response = client.submit_feedback(
        anomalyInstanceId='string',
        comment='string',
        profilingGroupName='string',
        type='Positive'|'Negative'
    )
    
  :type anomalyInstanceId: string
  :param anomalyInstanceId: **[REQUIRED]** 

    The universally unique identifier (UUID) of the `AnomalyInstance <https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html>`__ object that is included in the analysis data.

    

  
  :type comment: string
  :param comment: 

    Optional feedback about this anomaly.

    

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

    The name of the profiling group that is associated with the analysis data.

    

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

    The feedback tpye. Thee are two valid values, ``Positive`` and ``Negative``.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The structure representing the SubmitFeedbackResponse.

      
  
  **Exceptions**
  
  *   :py:class:`CodeGuruProfiler.Client.exceptions.InternalServerException`

  
  *   :py:class:`CodeGuruProfiler.Client.exceptions.ValidationException`

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

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

  