Skip to content
v2.275.0

CfnFilterProps Struct ​

Properties for defining a CfnFilter.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_personalize as personalize } from 'aws-cdk-lib';
const cfnFilterProps: personalize.CfnFilterProps = {
  datasetGroupArn: 'datasetGroupArn',
  filterExpression: 'filterExpression',
  name: 'name',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

datasetGroupArnstringdataset_group_arnstrdatasetGroupArnStringDatasetGroupArnstringDatasetGroupArn*stringrequired#
The ARN of the dataset group that the filter belongs to.
filterExpressionstringfilter_expressionstrfilterExpressionStringFilterExpressionstringFilterExpression*stringrequired#
The filter expression that defines which items are included or excluded from recommendations.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the filter.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
Tags to associate with the filter.