CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

3 in the AWS CLI reference
--analyzer-arnThe Amazon resource name (ARN) of the analyzer.
--client-tokenA client token.
--rule-nameThe name of the rule to apply.