CmdID / aws / aws accessanalyzer
aws accessanalyzer apply-archive-rule
Retroactively applies the archive rule to existing findings that meet the archive rule criteria. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To apply an archive rule to existing findings that meet the archive rule criteria
The following apply-archive-rule example applies an archive rule to existing findings that meet the archive rule criteria.
aws accessanalyzer apply-archive-rule --analyzer-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/UnusedAccess-ConsoleAnalyzer-organization --rule-name MyArchiveRuleIdentify--analyzer-arnThe Amazon resource name (ARN) of the analyzer.--rule-nameThe name of the rule to apply.This command produces no output.
For more information, see Archive rules in the AWS IAM User Guide.
Options
--analyzer-arnThe Amazon resource name (ARN) of the analyzer.--client-tokenA client token.--rule-nameThe name of the rule to apply.