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
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-26T00:07:48.173Z")
@Stability(Stable)
public class CfnAIAgent
extends CfnResource
implements IInspectable, 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()) .sessionSummarizationAiAgentConfiguration(SessionSummarizationAIAgentConfigurationProperty.builder() .locale("locale") .sessionSummarizationAiPromptId("sessionSummarizationAiPromptId") .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 interface
A typed union that specifies the configuration based on the type of AI Agent.static interface
The configuration for AI Agents of typeANSWER_RECOMMENDATION
.static interface
A typed union of the data of the configuration for an Amazon Q in Connect Assistant Association.static interface
The configuration for an Amazon Q in Connect Assistant Association.static final class
A fluent builder forCfnAIAgent
.static interface
The data of the configuration for aKNOWLEDGE_BASE
type Amazon Q in Connect Assistant Association.static interface
The configuration for AI Agents of typeMANUAL_SEARCH
.static interface
Example:static interface
The configuration of the self-service AI agent.static interface
Example:static interface
An object that can be used to specify tag conditions.static interface
An object that can be used to specify tag conditions.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnAIAgent
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnAIAgent
(software.amazon.jsii.JsiiObjectRef objRef) CfnAIAgent
(software.constructs.Construct scope, String id, CfnAIAgentProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAssistantId
(String value) The identifier of the Amazon Q in Connect assistant.void
setConfiguration
(IResolvable value) Configuration for the AI Agent.void
Configuration for the AI Agent.void
setDescription
(String value) The description of the AI Agent.void
The name of the AI Agent.void
The tags used to organize, track, or control access for this resource.void
The 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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in 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. -
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.
-