CmdID

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

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

Examples

from aws-cli, each command read by CmdID

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

4 in the AWS CLI reference
--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.