Skip to content

Creates a recommendation filter

Description

Creates a recommendation filter. For more information, see Filtering recommendations and user segments.

Usage

personalize_create_filter(name, datasetGroupArn, filterExpression, tags)

Arguments

  • name

    [required] The name of the filter to create.

  • datasetGroupArn

    [required] The ARN of the dataset group that the filter will belong to.

  • filterExpression

    [required] The filter expression defines which items are included or excluded from recommendations. Filter expression must follow specific format rules. For information about filter expression structure and syntax, see Filter expressions.

  • tags

    A list of tags to apply to the filter.

Value

A list with the following syntax:

list(
  filterArn = "string"
)

Request syntax

svc$create_filter(
  name = "string",
  datasetGroupArn = "string",
  filterExpression = "string",
  tags = list(
    list(
      tagKey = "string",
      tagValue = "string"
    )
  )
)