Skip to content
v2.278.0

KnowledgeBaseAssociationConfigurationDataProperty ​

Struct External

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

Example ​

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
# 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
// 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();
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
// 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 ​

contentTagFilteroptionalIResolvable | CfnAIAgent.TagFilterPropertycontent_tag_filteroptionaltyping.Union[IResolvable, TagFilterProperty]contentTagFilteroptionalIResolvableContentTagFilteroptionalIResolvableContentTagFilteroptionalinterface{} #
An object that can be used to specify Tag conditions.
maxResultsoptionalnumbermax_resultsoptionalint | floatmaxResultsoptionalNumberMaxResultsoptionaldoubleMaxResultsoptional*float64 #
The maximum number of results to return per page.
overrideKnowledgeBaseSearchTypeoptionalstringoverride_knowledge_base_search_typeoptionalstroverrideKnowledgeBaseSearchTypeoptionalStringOverrideKnowledgeBaseSearchTypeoptionalstringOverrideKnowledgeBaseSearchTypeoptional*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