Skip to content
v2.278.0

EmailGenerativeAnswerAIAgentConfigurationProperty ​

Struct External

Configuration settings for the EMAIL_GENERATIVE_ANSWER AI agent including prompts, locale, and knowledge base associations.

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 emailGenerativeAnswerAIAgentConfigurationProperty: wisdom.CfnAIAgent.EmailGenerativeAnswerAIAgentConfigurationProperty = {
  associationConfigurations: [{
    associationConfigurationData: {
      knowledgeBaseAssociationConfigurationData: {
        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',
      },
    },
    associationId: 'associationId',
    associationType: 'associationType',
  }],
  emailGenerativeAnswerAiPromptId: 'emailGenerativeAnswerAiPromptId',
  emailQueryReformulationAiPromptId: 'emailQueryReformulationAiPromptId',
  locale: 'locale',
};
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

email_generative_answer_ai_agent_configuration_property = wisdom.CfnAIAgent.EmailGenerativeAnswerAIAgentConfigurationProperty(
    association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
        association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
            knowledge_base_association_configuration_data=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"
            )
        ),
        association_id="associationId",
        association_type="associationType"
    )],
    email_generative_answer_ai_prompt_id="emailGenerativeAnswerAiPromptId",
    email_query_reformulation_ai_prompt_id="emailQueryReformulationAiPromptId",
    locale="locale"
)
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.*;

EmailGenerativeAnswerAIAgentConfigurationProperty emailGenerativeAnswerAIAgentConfigurationProperty = EmailGenerativeAnswerAIAgentConfigurationProperty.builder()
        .associationConfigurations(List.of(AssociationConfigurationProperty.builder()
                .associationConfigurationData(AssociationConfigurationDataProperty.builder()
                        .knowledgeBaseAssociationConfigurationData(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())
                        .build())
                .associationId("associationId")
                .associationType("associationType")
                .build()))
        .emailGenerativeAnswerAiPromptId("emailGenerativeAnswerAiPromptId")
        .emailQueryReformulationAiPromptId("emailQueryReformulationAiPromptId")
        .locale("locale")
        .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 emailGenerativeAnswerAIAgentConfigurationProperty = new EmailGenerativeAnswerAIAgentConfigurationProperty {
    AssociationConfigurations = new [] { new AssociationConfigurationProperty {
        AssociationConfigurationData = new AssociationConfigurationDataProperty {
            KnowledgeBaseAssociationConfigurationData = 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"
            }
        },
        AssociationId = "associationId",
        AssociationType = "associationType"
    } },
    EmailGenerativeAnswerAiPromptId = "emailGenerativeAnswerAiPromptId",
    EmailQueryReformulationAiPromptId = "emailQueryReformulationAiPromptId",
    Locale = "locale"
};
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"

emailGenerativeAnswerAIAgentConfigurationProperty := &EmailGenerativeAnswerAIAgentConfigurationProperty{
	AssociationConfigurations: []interface{}{
		&AssociationConfigurationProperty{
			AssociationConfigurationData: &AssociationConfigurationDataProperty{
				KnowledgeBaseAssociationConfigurationData: &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"),
				},
			},
			AssociationId: jsii.String("associationId"),
			AssociationType: jsii.String("associationType"),
		},
	},
	EmailGenerativeAnswerAiPromptId: jsii.String("emailGenerativeAnswerAiPromptId"),
	EmailQueryReformulationAiPromptId: jsii.String("emailQueryReformulationAiPromptId"),
	Locale: jsii.String("locale"),
}

Properties ​

associationConfigurationsoptionalIResolvable | IResolvable | CfnAIAgent.AssociationConfigurationProperty[]association_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssociationConfigurationProperty]]]associationConfigurationsoptionalIResolvableAssociationConfigurationsoptionalIResolvableAssociationConfigurationsoptionalinterface{} #
Configuration settings for knowledge base associations used by the email generative answer agent.
emailGenerativeAnswerAiPromptIdoptionalstringemail_generative_answer_ai_prompt_idoptionalstremailGenerativeAnswerAiPromptIdoptionalStringEmailGenerativeAnswerAiPromptIdoptionalstringEmailGenerativeAnswerAiPromptIdoptional*string #
The ID of the System AI prompt used for generating comprehensive knowledge-based answers from email queries.
emailQueryReformulationAiPromptIdoptionalstringemail_query_reformulation_ai_prompt_idoptionalstremailQueryReformulationAiPromptIdoptionalStringEmailQueryReformulationAiPromptIdoptionalstringEmailQueryReformulationAiPromptIdoptional*string #
The ID of the System AI prompt used for reformulating email queries to optimize knowledge base search results.
localeoptionalstringlocaleoptionalstrlocaleoptionalStringLocaleoptionalstringLocaleoptional*string #
The locale setting for language-specific email processing and response generation (for example, en_US, es_ES).