# KnowledgeBaseAssociationConfigurationDataProperty

Struct · External

The data of the configuration for a `KNOWLEDGE_BASE` type Amazon Q in Connect Assistant Association.

- Source: Generated at build time
- Type last changed: v2.166.0 · 7 Nov 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wisdom as wisdom } from 'aws-cdk-lib';
const knowledgeBaseAssociationConfigurationDataProperty: wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty = {
  contentTagFilter: {
    andConditions: [{
      key: 'key',

      // the properties below are optional
      value: 'value',
    }],
    orConditions: [{
      andConditions: [{
        key: 'key',

        // the properties below are optional
        value: 'value',
      }],
      tagCondition: {
        key: 'key',

        // the properties below are optional
        value: 'value',
      },
    }],
    tagCondition: {
      key: 'key',

      // the properties below are optional
      value: 'value',
    },
  },
  maxResults: 123,
  overrideKnowledgeBaseSearchType: 'overrideKnowledgeBaseSearchType',
};
```

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_wisdom as wisdom

knowledge_base_association_configuration_data_property = wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
    content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
        and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
            key="key",

            # the properties below are optional
            value="value"
        )],
        or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
            and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
                key="key",

                # the properties below are optional
                value="value"
            )],
            tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
                key="key",

                # the properties below are optional
                value="value"
            )
        )],
        tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
            key="key",

            # the properties below are optional
            value="value"
        )
    ),
    max_results=123,
    override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
)
```

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.wisdom.*;

KnowledgeBaseAssociationConfigurationDataProperty knowledgeBaseAssociationConfigurationDataProperty = KnowledgeBaseAssociationConfigurationDataProperty.builder()
        .contentTagFilter(TagFilterProperty.builder()
                .andConditions(List.of(TagConditionProperty.builder()
                        .key("key")

                        // the properties below are optional
                        .value("value")
                        .build()))
                .orConditions(List.of(OrConditionProperty.builder()
                        .andConditions(List.of(TagConditionProperty.builder()
                                .key("key")

                                // the properties below are optional
                                .value("value")
                                .build()))
                        .tagCondition(TagConditionProperty.builder()
                                .key("key")

                                // the properties below are optional
                                .value("value")
                                .build())
                        .build()))
                .tagCondition(TagConditionProperty.builder()
                        .key("key")

                        // the properties below are optional
                        .value("value")
                        .build())
                .build())
        .maxResults(123)
        .overrideKnowledgeBaseSearchType("overrideKnowledgeBaseSearchType")
        .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.Wisdom;

var knowledgeBaseAssociationConfigurationDataProperty = new KnowledgeBaseAssociationConfigurationDataProperty {
    ContentTagFilter = new TagFilterProperty {
        AndConditions = new [] { new TagConditionProperty {
            Key = "key",

            // the properties below are optional
            Value = "value"
        } },
        OrConditions = new [] { new OrConditionProperty {
            AndConditions = new [] { new TagConditionProperty {
                Key = "key",

                // the properties below are optional
                Value = "value"
            } },
            TagCondition = new TagConditionProperty {
                Key = "key",

                // the properties below are optional
                Value = "value"
            }
        } },
        TagCondition = new TagConditionProperty {
            Key = "key",

            // the properties below are optional
            Value = "value"
        }
    },
    MaxResults = 123,
    OverrideKnowledgeBaseSearchType = "overrideKnowledgeBaseSearchType"
};
```

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"

knowledgeBaseAssociationConfigurationDataProperty := &KnowledgeBaseAssociationConfigurationDataProperty{
	ContentTagFilter: &TagFilterProperty{
		AndConditions: []interface{}{
			&TagConditionProperty{
				Key: jsii.String("key"),

				// the properties below are optional
				Value: jsii.String("value"),
			},
		},
		OrConditions: []interface{}{
			&OrConditionProperty{
				AndConditions: []interface{}{
					&TagConditionProperty{
						Key: jsii.String("key"),

						// the properties below are optional
						Value: jsii.String("value"),
					},
				},
				TagCondition: &TagConditionProperty{
					Key: jsii.String("key"),

					// the properties below are optional
					Value: jsii.String("value"),
				},
			},
		},
		TagCondition: &TagConditionProperty{
			Key: jsii.String("key"),

			// the properties below are optional
			Value: jsii.String("value"),
		},
	},
	MaxResults: jsii.Number(123),
	OverrideKnowledgeBaseSearchType: jsii.String("overrideKnowledgeBaseSearchType"),
}
```

## Properties

- `contentTagFilter`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAIAgent.TagFilterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_wisdom.CfnAIAgent.TagFilterProperty.html) — An object that can be used to specify Tag conditions.

- `maxResults`: number — The maximum number of results to return per page.

- `overrideKnowledgeBaseSearchType`: string — The search type to be used against the Knowledge Base for this request.

  The values can be `SEMANTIC` which uses vector embeddings or `HYBRID` which use vector embeddings and raw text
