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

****************
archive_findings
****************



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

  

  Archives GuardDuty findings that are specified by the list of finding IDs.

   

  .. note::

    

    Only the administrator account can archive findings. Member accounts don't have permission to archive findings from their accounts.

    

  

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


  **Request Syntax**
  ::

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

    The ID of the detector that specifies the GuardDuty service whose findings you want to archive.

     

    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 FindingIds: list
  :param FindingIds: **[REQUIRED]** 

    The IDs of the findings that you want to archive.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  