Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

update_archive_rule

update_archive_rule(**kwargs)

Updates the criteria and values for the specified archive rule.

See also: AWS API Documentation

Request Syntax

response = client.update_archive_rule(
    analyzerName='string',
    ruleName='string',
    filter={
        'string': {
            'eq': [
                'string',
            ],
            'neq': [
                'string',
            ],
            'contains': [
                'string',
            ],
            'exists': True|False
        }
    },
    clientToken='string'
)
Parameters
  • analyzerName (string) --

    [REQUIRED]

    The name of the analyzer to update the archive rules for.

  • ruleName (string) --

    [REQUIRED]

    The name of the rule to update.

  • filter (dict) --

    [REQUIRED]

    A filter to match for the rules to update. Only rules that match the filter are updated.

    • (string) --
      • (dict) --

        The criteria to use in the filter that defines the archive rule. For more information on available filter keys, see IAM Access Analyzer filter keys.

        • eq (list) --

          An "equals" operator to match for the filter used to create the rule.

          • (string) --
        • neq (list) --

          A "not equals" operator to match for the filter used to create the rule.

          • (string) --
        • contains (list) --

          A "contains" operator to match for the filter used to create the rule.

          • (string) --
        • exists (boolean) --

          An "exists" operator to match for the filter used to create the rule.

  • clientToken (string) --

    A client token.

    This field is autopopulated if not provided.

Returns

None

Exceptions

  • AccessAnalyzer.Client.exceptions.ResourceNotFoundException
  • AccessAnalyzer.Client.exceptions.ValidationException
  • AccessAnalyzer.Client.exceptions.InternalServerException
  • AccessAnalyzer.Client.exceptions.ThrottlingException
  • AccessAnalyzer.Client.exceptions.AccessDeniedException