Class CfnAIAgent
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.wisdom.CfnAIAgent
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAIAgentRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:15.999Z")
@Stability(Stable)
public class CfnAIAgent
extends CfnResource
implements IInspectable, IAIAgentRef, ITaggableV2
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.services.wisdom.*;
CfnAIAgent cfnAIAgent = CfnAIAgent.Builder.create(this, "MyCfnAIAgent")
.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")
// 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()))
.intentLabelingGenerationAiPromptId("intentLabelingGenerationAiPromptId")
.locale("locale")
.queryReformulationAiPromptId("queryReformulationAiPromptId")
.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")
// 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()))
.locale("locale")
.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")
// 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()))
.selfServiceAiGuardrailId("selfServiceAiGuardrailId")
.selfServiceAnswerGenerationAiPromptId("selfServiceAnswerGenerationAiPromptId")
.selfServicePreProcessingAiPromptId("selfServicePreProcessingAiPromptId")
.build())
.build())
.type("type")
// the properties below are optional
.description("description")
.name("name")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA typed union that specifies the configuration based on the type of AI Agent.static interfaceThe configuration for AI Agents of typeANSWER_RECOMMENDATION.static interfaceA typed union of the data of the configuration for an Amazon Q in Connect Assistant Association.static interfaceThe configuration for an Amazon Q in Connect Assistant Association.static final classA fluent builder forCfnAIAgent.static interfaceThe data of the configuration for aKNOWLEDGE_BASEtype Amazon Q in Connect Assistant Association.static interfaceThe configuration for AI Agents of typeMANUAL_SEARCH.static interfaceExample:static interfaceThe configuration of the self-service AI agent.static interfaceAn object that can be used to specify tag conditions.static interfaceAn object that can be used to specify tag conditions.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.wisdom.IAIAgentRef
IAIAgentRef.Jsii$Default, IAIAgentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAIAgent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAIAgent(software.amazon.jsii.JsiiObjectRef objRef) CfnAIAgent(software.constructs.Construct scope, String id, CfnAIAgentProps props) Create a newAWS::Wisdom::AIAgent. -
Method Summary
Modifier and TypeMethodDescriptionA reference to a AIAgent resource.The identifier of the Amazon Q in Connect assistant.The Amazon Resource Name (ARN) of the AI agent.The identifier of the AI Agent.The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.Tag Manager which manages the tags for this resource.Configuration for the AI Agent.The description of the AI Agent.getName()The name of the AI Agent.getTags()The tags used to organize, track, or control access for this resource.getType()The type of the AI Agent.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAssistantId(String value) The identifier of the Amazon Q in Connect assistant.voidsetConfiguration(IResolvable value) Configuration for the AI Agent.voidConfiguration for the AI Agent.voidsetDescription(String value) The description of the AI Agent.voidThe name of the AI Agent.voidThe tags used to organize, track, or control access for this resource.voidThe type of the AI Agent.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAIAgent
protected CfnAIAgent(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAIAgent
protected CfnAIAgent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAIAgent
@Stability(Stable) public CfnAIAgent(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAIAgentProps props) Create a newAWS::Wisdom::AIAgent.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAiAgentRef
A reference to a AIAgent resource.- Specified by:
getAiAgentRefin interfaceIAIAgentRef
-
getAttrAiAgentArn
The Amazon Resource Name (ARN) of the AI agent. -
getAttrAiAgentId
The identifier of the AI Agent. -
getAttrAssistantArn
The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. -
getAttrModifiedTimeSeconds
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAssistantId
The identifier of the Amazon Q in Connect assistant. -
setAssistantId
The identifier of the Amazon Q in Connect assistant. -
getConfiguration
Configuration for the AI Agent.Returns union: either
IResolvableorCfnAIAgent.AIAgentConfigurationProperty -
setConfiguration
Configuration for the AI Agent. -
setConfiguration
@Stability(Stable) public void setConfiguration(@NotNull CfnAIAgent.AIAgentConfigurationProperty value) Configuration for the AI Agent. -
getType
The type of the AI Agent. -
setType
The type of the AI Agent. -
getDescription
The description of the AI Agent. -
setDescription
The description of the AI Agent. -
getName
The name of the AI Agent. -
setName
The name of the AI Agent. -
getTags
The tags used to organize, track, or control access for this resource. -
setTags
The tags used to organize, track, or control access for this resource.
-