:doc:`GuardDuty <../../guardduty>` / Client / create_sample_findings

**********************
create_sample_findings
**********************



.. py:method:: GuardDuty.Client.create_sample_findings(**kwargs)

  

  Generates sample findings of types specified by the list of finding types. If 'NULL' is specified for ``findingTypes``, the API generates sample findings of all supported finding types.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateSampleFindings>`_  


  **Request Syntax**
  ::

    response = client.create_sample_findings(
        DetectorId='string',
        FindingTypes=[
            'string',
        ]
    )
    
  :type DetectorId: string
  :param DetectorId: **[REQUIRED]** 

    The ID of the detector for which you need to create sample findings.

     

    To find the ``detectorId`` in the current Region, see the Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`__ API.

    

  
  :type FindingTypes: list
  :param FindingTypes: 

    The types of sample findings to generate.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  