Skip to content

Get Rules

frauddetector_get_rules R Documentation

Get all rules for a detector (paginated) if ruleId and ruleVersion are not specified

Description

Get all rules for a detector (paginated) if ruleId and ruleVersion are not specified. Gets all rules for the detector and the ruleId if present (paginated). Gets a specific rule if both the ruleId and the ruleVersion are specified.

This is a paginated API. Providing null maxResults results in retrieving maximum of 100 records per page. If you provide maxResults the value must be between 50 and 100. To get the next page result, a provide a pagination token from GetRulesResult as part of your request. Null pagination token fetches the records from the beginning.

Usage

frauddetector_get_rules(ruleId, detectorId, ruleVersion, nextToken,
  maxResults)

Arguments

ruleId

The rule ID.

detectorId

[required] The detector ID.

ruleVersion

The rule version.

nextToken

The next page token.

maxResults

The maximum number of rules to return for the request.

Value

A list with the following syntax:

list(
  ruleDetails = list(
    list(
      ruleId = "string",
      description = "string",
      detectorId = "string",
      ruleVersion = "string",
      expression = "string",
      language = "DETECTORPL",
      outcomes = list(
        "string"
      ),
      lastUpdatedTime = "string",
      createdTime = "string",
      arn = "string"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$get_rules(
  ruleId = "string",
  detectorId = "string",
  ruleVersion = "string",
  nextToken = "string",
  maxResults = 123
)