# CfnRecommenderFilterProps

Struct · External

Properties for defining a `CfnRecommenderFilter`.

Used as props by: [CfnRecommenderFilter](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnRecommenderFilter.html)

- Source: Generated at build time
- Type last changed: v2.275.0 · 26 Oct 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_customerprofiles as customerprofiles } from 'aws-cdk-lib';
const cfnRecommenderFilterProps: customerprofiles.CfnRecommenderFilterProps = {
  domainName: 'domainName',
  recommenderFilterExpression: 'recommenderFilterExpression',
  recommenderFilterName: 'recommenderFilterName',

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

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_customerprofiles as customerprofiles

cfn_recommender_filter_props = customerprofiles.CfnRecommenderFilterProps(
    domain_name="domainName",
    recommender_filter_expression="recommenderFilterExpression",
    recommender_filter_name="recommenderFilterName",

    # the properties below are optional
    description="description",
    recommender_schema_name="recommenderSchemaName",
    tags=[customerprofiles.CfnRecommenderFilter.TagsItemsProperty(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.customerprofiles.*;

CfnRecommenderFilterProps cfnRecommenderFilterProps = CfnRecommenderFilterProps.builder()
        .domainName("domainName")
        .recommenderFilterExpression("recommenderFilterExpression")
        .recommenderFilterName("recommenderFilterName")

        // the properties below are optional
        .description("description")
        .recommenderSchemaName("recommenderSchemaName")
        .tags(List.of(TagsItemsProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CustomerProfiles;

var cfnRecommenderFilterProps = new CfnRecommenderFilterProps {
    DomainName = "domainName",
    RecommenderFilterExpression = "recommenderFilterExpression",
    RecommenderFilterName = "recommenderFilterName",

    // the properties below are optional
    Description = "description",
    RecommenderSchemaName = "recommenderSchemaName",
    Tags = new [] { new TagsItemsProperty {
        Key = "key",
        Value = "value"
    } }
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnRecommenderFilterProps := &CfnRecommenderFilterProps{
	DomainName: jsii.String("domainName"),
	RecommenderFilterExpression: jsii.String("recommenderFilterExpression"),
	RecommenderFilterName: jsii.String("recommenderFilterName"),

	// the properties below are optional
	Description: jsii.String("description"),
	RecommenderSchemaName: jsii.String("recommenderSchemaName"),
	Tags: []TagsItemsProperty{
		&TagsItemsProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — The description of the recommender filter.

- `domainName`: string (required) — The unique name of the domain.

- `recommenderFilterExpression`: string (required) — The filter expression that defines which items to include or exclude from recommendations.

- `recommenderFilterName`: string (required) — The name of the recommender filter.

- `recommenderSchemaName`: string — The name of the recommender schema to use for this recommender filter.

  If not specified, the default schema is used.

- `tags`: [CfnRecommenderFilter.TagsItemsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnRecommenderFilter.TagsItemsProperty.html)[] — The tags used to organize, track, or control access for this resource.
