Skip to content

Create Archive Rule

accessanalyzer_create_archive_rule R Documentation

Creates an archive rule for the specified analyzer

Description

Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.

To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.

Usage

accessanalyzer_create_archive_rule(analyzerName, ruleName, filter,
  clientToken)

Arguments

analyzerName

[required] The name of the created analyzer.

ruleName

[required] The name of the rule to create.

filter

[required] The criteria for the rule.

clientToken

A client token.

Value

An empty list.

Request syntax

svc$create_archive_rule(
  analyzerName = "string",
  ruleName = "string",
  filter = list(
    list(
      eq = list(
        "string"
      ),
      neq = list(
        "string"
      ),
      contains = list(
        "string"
      ),
      exists = TRUE|FALSE
    )
  ),
  clientToken = "string"
)