:doc:`AccessAnalyzer <../../accessanalyzer>` / Client / apply_archive_rule

******************
apply_archive_rule
******************



.. py:method:: AccessAnalyzer.Client.apply_archive_rule(**kwargs)

  

  Retroactively applies the archive rule to existing findings that meet the archive rule criteria.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ApplyArchiveRule>`_  


  **Request Syntax**
  ::

    response = client.apply_archive_rule(
        analyzerArn='string',
        ruleName='string',
        clientToken='string'
    )
    
  :type analyzerArn: string
  :param analyzerArn: **[REQUIRED]** 

    The Amazon resource name (ARN) of the analyzer.

    

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

    The name of the rule to apply.

    

  
  :type clientToken: string
  :param clientToken: 

    A client token.

    This field is autopopulated if not provided.

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`AccessAnalyzer.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`AccessAnalyzer.Client.exceptions.InternalServerException`

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

  
  *   :py:class:`AccessAnalyzer.Client.exceptions.AccessDeniedException`

  