Class CfnAIAgentPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.wisdom.CfnAIAgentPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-19T12:55:27.548Z") @Stability(Stable) public class CfnAIAgentPropsMixin extends Mixin implements software.constructs.IMixin
Creates an Amazon Q in Connect AI Agent.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.wisdom.*;
 import software.amazon.awscdk.*;
 Object annotations;
 Object inputSchema;
 IMergeStrategy mergeStrategy;
 Object outputSchema;
 CfnAIAgentPropsMixin cfnAIAgentPropsMixin = CfnAIAgentPropsMixin.Builder.create(CfnAIAgentMixinProps.builder()
         .assistantId("assistantId")
         .configuration(AIAgentConfigurationProperty.builder()
                 .answerRecommendationAiAgentConfiguration(AnswerRecommendationAIAgentConfigurationProperty.builder()
                         .answerGenerationAiGuardrailId("answerGenerationAiGuardrailId")
                         .answerGenerationAiPromptId("answerGenerationAiPromptId")
                         .associationConfigurations(List.of(AssociationConfigurationProperty.builder()
                                 .associationConfigurationData(AssociationConfigurationDataProperty.builder()
                                         .knowledgeBaseAssociationConfigurationData(KnowledgeBaseAssociationConfigurationDataProperty.builder()
                                                 .contentTagFilter(TagFilterProperty.builder()
                                                         .andConditions(List.of(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build()))
                                                         .orConditions(List.of(OrConditionProperty.builder()
                                                                 .andConditions(List.of(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build()))
                                                                 .tagCondition(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build())
                                                                 .build()))
                                                         .tagCondition(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build())
                                                         .build())
                                                 .maxResults(123)
                                                 .overrideKnowledgeBaseSearchType("overrideKnowledgeBaseSearchType")
                                                 .build())
                                         .build())
                                 .associationId("associationId")
                                 .associationType("associationType")
                                 .build()))
                         .intentLabelingGenerationAiPromptId("intentLabelingGenerationAiPromptId")
                         .locale("locale")
                         .queryReformulationAiPromptId("queryReformulationAiPromptId")
                         .build())
                 .caseSummarizationAiAgentConfiguration(CaseSummarizationAIAgentConfigurationProperty.builder()
                         .caseSummarizationAiGuardrailId("caseSummarizationAiGuardrailId")
                         .caseSummarizationAiPromptId("caseSummarizationAiPromptId")
                         .locale("locale")
                         .build())
                 .emailGenerativeAnswerAiAgentConfiguration(EmailGenerativeAnswerAIAgentConfigurationProperty.builder()
                         .associationConfigurations(List.of(AssociationConfigurationProperty.builder()
                                 .associationConfigurationData(AssociationConfigurationDataProperty.builder()
                                         .knowledgeBaseAssociationConfigurationData(KnowledgeBaseAssociationConfigurationDataProperty.builder()
                                                 .contentTagFilter(TagFilterProperty.builder()
                                                         .andConditions(List.of(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build()))
                                                         .orConditions(List.of(OrConditionProperty.builder()
                                                                 .andConditions(List.of(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build()))
                                                                 .tagCondition(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build())
                                                                 .build()))
                                                         .tagCondition(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build())
                                                         .build())
                                                 .maxResults(123)
                                                 .overrideKnowledgeBaseSearchType("overrideKnowledgeBaseSearchType")
                                                 .build())
                                         .build())
                                 .associationId("associationId")
                                 .associationType("associationType")
                                 .build()))
                         .emailGenerativeAnswerAiPromptId("emailGenerativeAnswerAiPromptId")
                         .emailQueryReformulationAiPromptId("emailQueryReformulationAiPromptId")
                         .locale("locale")
                         .build())
                 .emailOverviewAiAgentConfiguration(EmailOverviewAIAgentConfigurationProperty.builder()
                         .emailOverviewAiPromptId("emailOverviewAiPromptId")
                         .locale("locale")
                         .build())
                 .emailResponseAiAgentConfiguration(EmailResponseAIAgentConfigurationProperty.builder()
                         .associationConfigurations(List.of(AssociationConfigurationProperty.builder()
                                 .associationConfigurationData(AssociationConfigurationDataProperty.builder()
                                         .knowledgeBaseAssociationConfigurationData(KnowledgeBaseAssociationConfigurationDataProperty.builder()
                                                 .contentTagFilter(TagFilterProperty.builder()
                                                         .andConditions(List.of(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build()))
                                                         .orConditions(List.of(OrConditionProperty.builder()
                                                                 .andConditions(List.of(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build()))
                                                                 .tagCondition(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build())
                                                                 .build()))
                                                         .tagCondition(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build())
                                                         .build())
                                                 .maxResults(123)
                                                 .overrideKnowledgeBaseSearchType("overrideKnowledgeBaseSearchType")
                                                 .build())
                                         .build())
                                 .associationId("associationId")
                                 .associationType("associationType")
                                 .build()))
                         .emailQueryReformulationAiPromptId("emailQueryReformulationAiPromptId")
                         .emailResponseAiPromptId("emailResponseAiPromptId")
                         .locale("locale")
                         .build())
                 .manualSearchAiAgentConfiguration(ManualSearchAIAgentConfigurationProperty.builder()
                         .answerGenerationAiGuardrailId("answerGenerationAiGuardrailId")
                         .answerGenerationAiPromptId("answerGenerationAiPromptId")
                         .associationConfigurations(List.of(AssociationConfigurationProperty.builder()
                                 .associationConfigurationData(AssociationConfigurationDataProperty.builder()
                                         .knowledgeBaseAssociationConfigurationData(KnowledgeBaseAssociationConfigurationDataProperty.builder()
                                                 .contentTagFilter(TagFilterProperty.builder()
                                                         .andConditions(List.of(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build()))
                                                         .orConditions(List.of(OrConditionProperty.builder()
                                                                 .andConditions(List.of(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build()))
                                                                 .tagCondition(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build())
                                                                 .build()))
                                                         .tagCondition(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build())
                                                         .build())
                                                 .maxResults(123)
                                                 .overrideKnowledgeBaseSearchType("overrideKnowledgeBaseSearchType")
                                                 .build())
                                         .build())
                                 .associationId("associationId")
                                 .associationType("associationType")
                                 .build()))
                         .locale("locale")
                         .build())
                 .noteTakingAiAgentConfiguration(NoteTakingAIAgentConfigurationProperty.builder()
                         .locale("locale")
                         .noteTakingAiGuardrailId("noteTakingAiGuardrailId")
                         .noteTakingAiPromptId("noteTakingAiPromptId")
                         .build())
                 .orchestrationAiAgentConfiguration(OrchestrationAIAgentConfigurationProperty.builder()
                         .connectInstanceArn("connectInstanceArn")
                         .locale("locale")
                         .orchestrationAiGuardrailId("orchestrationAiGuardrailId")
                         .orchestrationAiPromptId("orchestrationAiPromptId")
                         .toolConfigurations(List.of(ToolConfigurationProperty.builder()
                                 .annotations(annotations)
                                 .description("description")
                                 .inputSchema(inputSchema)
                                 .instruction(ToolInstructionProperty.builder()
                                         .examples(List.of("examples"))
                                         .instruction("instruction")
                                         .build())
                                 .outputFilters(List.of(ToolOutputFilterProperty.builder()
                                         .jsonPath("jsonPath")
                                         .outputConfiguration(ToolOutputConfigurationProperty.builder()
                                                 .outputVariableNameOverride("outputVariableNameOverride")
                                                 .sessionDataNamespace("sessionDataNamespace")
                                                 .build())
                                         .build()))
                                 .outputSchema(outputSchema)
                                 .overrideInputValues(List.of(ToolOverrideInputValueProperty.builder()
                                         .jsonPath("jsonPath")
                                         .value(ToolOverrideInputValueConfigurationProperty.builder()
                                                 .constant(ToolOverrideConstantInputValueProperty.builder()
                                                         .type("type")
                                                         .value("value")
                                                         .build())
                                                 .build())
                                         .build()))
                                 .title("title")
                                 .toolId("toolId")
                                 .toolName("toolName")
                                 .toolType("toolType")
                                 .userInteractionConfiguration(UserInteractionConfigurationProperty.builder()
                                         .isUserConfirmationRequired(false)
                                         .build())
                                 .build()))
                         .build())
                 .selfServiceAiAgentConfiguration(SelfServiceAIAgentConfigurationProperty.builder()
                         .associationConfigurations(List.of(AssociationConfigurationProperty.builder()
                                 .associationConfigurationData(AssociationConfigurationDataProperty.builder()
                                         .knowledgeBaseAssociationConfigurationData(KnowledgeBaseAssociationConfigurationDataProperty.builder()
                                                 .contentTagFilter(TagFilterProperty.builder()
                                                         .andConditions(List.of(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build()))
                                                         .orConditions(List.of(OrConditionProperty.builder()
                                                                 .andConditions(List.of(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build()))
                                                                 .tagCondition(TagConditionProperty.builder()
                                                                         .key("key")
                                                                         .value("value")
                                                                         .build())
                                                                 .build()))
                                                         .tagCondition(TagConditionProperty.builder()
                                                                 .key("key")
                                                                 .value("value")
                                                                 .build())
                                                         .build())
                                                 .maxResults(123)
                                                 .overrideKnowledgeBaseSearchType("overrideKnowledgeBaseSearchType")
                                                 .build())
                                         .build())
                                 .associationId("associationId")
                                 .associationType("associationType")
                                 .build()))
                         .selfServiceAiGuardrailId("selfServiceAiGuardrailId")
                         .selfServiceAnswerGenerationAiPromptId("selfServiceAnswerGenerationAiPromptId")
                         .selfServicePreProcessingAiPromptId("selfServicePreProcessingAiPromptId")
                         .build())
                 .build())
         .description("description")
         .name("name")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .type("type")
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnAIAgentPropsMixin

      protected CfnAIAgentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnAIAgentPropsMixin

      protected CfnAIAgentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnAIAgentPropsMixin

      @Stability(Stable) public CfnAIAgentPropsMixin(@NotNull CfnAIAgentMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::Wisdom::AIAgent.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnAIAgentPropsMixin

      @Stability(Stable) public CfnAIAgentPropsMixin(@NotNull CfnAIAgentMixinProps props)
      Create a mixin to apply properties to AWS::Wisdom::AIAgent.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnAIAgentMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()