CmdID / aws / aws accessanalyzer
aws accessanalyzer update-archive-rule
Updates the criteria and values for the specified archive rule. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To update the criteria and values for the specified archive rule
The following update-archive-rule example updates the criteria and values for the specified archive rule in your AWS account.
aws accessanalyzer update-archive-rule --analyzer-name UnusedAccess-ConsoleAnalyzer-organization --rule-name MyArchiveRule --filter '{"resource": {"contains": ["Cognito"]}, "resourceType": {"eq": ["AWS::IAM::Role"]}}'Identify--analyzer-nameThe name of the analyzer to update the archive rules for.--rule-nameThe name of the rule to update.--filterA filter to match for the rules to update.This command produces no output.
For more information, see Archive rules in the AWS IAM User Guide.
Options
--analyzer-nameThe name of the analyzer to update the archive rules for.--client-tokenA client token.--filterA filter to match for the rules to update.--rule-nameThe name of the rule to update.