Class CfnKnowledgeBase
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.CfnKnowledgeBase
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IKnowledgeBaseRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:32.058Z")
@Stability(Stable)
public class CfnKnowledgeBase
extends CfnResource
implements IInspectable, IKnowledgeBaseRef, ITaggable
Specifies a knowledge base.
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.*;
CfnKnowledgeBase cfnKnowledgeBase = CfnKnowledgeBase.Builder.create(this, "MyCfnKnowledgeBase")
.knowledgeBaseType("knowledgeBaseType")
.name("name")
// the properties below are optional
.description("description")
.renderingConfiguration(RenderingConfigurationProperty.builder()
.templateUri("templateUri")
.build())
.serverSideEncryptionConfiguration(ServerSideEncryptionConfigurationProperty.builder()
.kmsKeyId("kmsKeyId")
.build())
.sourceConfiguration(SourceConfigurationProperty.builder()
.appIntegrations(AppIntegrationsConfigurationProperty.builder()
.appIntegrationArn("appIntegrationArn")
// the properties below are optional
.objectFields(List.of("objectFields"))
.build())
.managedSourceConfiguration(ManagedSourceConfigurationProperty.builder()
.webCrawlerConfiguration(WebCrawlerConfigurationProperty.builder()
.urlConfiguration(UrlConfigurationProperty.builder()
.seedUrls(List.of(SeedUrlProperty.builder()
.url("url")
.build()))
.build())
// the properties below are optional
.crawlerLimits(CrawlerLimitsProperty.builder()
.rateLimit(123)
.build())
.exclusionFilters(List.of("exclusionFilters"))
.inclusionFilters(List.of("inclusionFilters"))
.scope("scope")
.build())
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vectorIngestionConfiguration(VectorIngestionConfigurationProperty.builder()
.chunkingConfiguration(ChunkingConfigurationProperty.builder()
.chunkingStrategy("chunkingStrategy")
// the properties below are optional
.fixedSizeChunkingConfiguration(FixedSizeChunkingConfigurationProperty.builder()
.maxTokens(123)
.overlapPercentage(123)
.build())
.hierarchicalChunkingConfiguration(HierarchicalChunkingConfigurationProperty.builder()
.levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder()
.maxTokens(123)
.build()))
.overlapTokens(123)
.build())
.semanticChunkingConfiguration(SemanticChunkingConfigurationProperty.builder()
.breakpointPercentileThreshold(123)
.bufferSize(123)
.maxTokens(123)
.build())
.build())
.parsingConfiguration(ParsingConfigurationProperty.builder()
.parsingStrategy("parsingStrategy")
// the properties below are optional
.bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder()
.modelArn("modelArn")
// the properties below are optional
.parsingPrompt(ParsingPromptProperty.builder()
.parsingPromptText("parsingPromptText")
.build())
.build())
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConfiguration information for Amazon AppIntegrations to automatically ingest content.static interfaceThe configuration of the Bedrock foundation model.static final classA fluent builder forCfnKnowledgeBase.static interfaceDetails about how to chunk the documents in the data source.static interfaceThe limits of the crawler.static interfaceConfigurations for when you choose fixed-size chunking.static interfaceSettings for hierarchical document chunking for a data source.static interfaceToken settings for each layer.static interfaceSource configuration for managed resources.static interfaceSettings for parsing document contents.static interfaceInstructions for interpreting the contents of a document.static interfaceInformation about how to render the content.static interfaceA URL for crawling.static interfaceSettings for semantic document chunking for a data source.static interfaceThe configuration information for the customer managed key used for encryption.static interfaceConfiguration information about the external data source.static interfaceThe configuration of the URL/URLs for the web content that you want to crawl.static interfaceContains details about how to ingest the documents in a data source.static interfaceThe configuration details for the web data source.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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.interfaces.wisdom.IKnowledgeBaseRef
IKnowledgeBaseRef.Jsii$Default, IKnowledgeBaseRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnKnowledgeBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnKnowledgeBase(software.amazon.jsii.JsiiObjectRef objRef) CfnKnowledgeBase(software.constructs.Construct scope, String id, CfnKnowledgeBaseProps props) Create a newAWS::Wisdom::KnowledgeBase. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForKnowledgeBase(IKnowledgeBaseRef resource) static IKnowledgeBaseReffromKnowledgeBaseArn(software.constructs.Construct scope, String id, String arn) Creates a new IKnowledgeBaseRef from an ARN.static IKnowledgeBaseReffromKnowledgeBaseId(software.constructs.Construct scope, String id, String knowledgeBaseId) Creates a new IKnowledgeBaseRef from a knowledgeBaseId.The Amazon Resource Name (ARN) of the knowledge base.The ID of the knowledge base.The description.A reference to a KnowledgeBase resource.The type of knowledge base.getName()The name of the knowledge base.Information about how to render the content.This customer managed key must have a policy that allowskms:CreateGrantandkms:DescribeKeypermissions to the IAM identity using the key to invoke Wisdom.The source of the knowledge base content.getTags()Tag Manager which manages the tags for this resource.The tags used to organize, track, or control access for this resource.Contains details about how to ingest the documents in a data source.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description.voidsetKnowledgeBaseType(String value) The type of knowledge base.voidThe name of the knowledge base.voidInformation about how to render the content.voidInformation about how to render the content.voidThis customer managed key must have a policy that allowskms:CreateGrantandkms:DescribeKeypermissions to the IAM identity using the key to invoke Wisdom.voidsetServerSideEncryptionConfiguration(CfnKnowledgeBase.ServerSideEncryptionConfigurationProperty value) This customer managed key must have a policy that allowskms:CreateGrantandkms:DescribeKeypermissions to the IAM identity using the key to invoke Wisdom.voidThe source of the knowledge base content.voidThe source of the knowledge base content.voidsetTagsRaw(List<CfnTag> value) The tags used to organize, track, or control access for this resource.voidContains details about how to ingest the documents in a data source.voidContains details about how to ingest the documents in a data source.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
-
CfnKnowledgeBase
protected CfnKnowledgeBase(software.amazon.jsii.JsiiObjectRef objRef) -
CfnKnowledgeBase
protected CfnKnowledgeBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnKnowledgeBase
@Stability(Stable) public CfnKnowledgeBase(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnKnowledgeBaseProps props) Create a newAWS::Wisdom::KnowledgeBase.- 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
-
arnForKnowledgeBase
@Stability(Stable) @NotNull public static String arnForKnowledgeBase(@NotNull IKnowledgeBaseRef resource) - Parameters:
resource- This parameter is required.
-
fromKnowledgeBaseArn
@Stability(Stable) @NotNull public static IKnowledgeBaseRef fromKnowledgeBaseArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IKnowledgeBaseRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromKnowledgeBaseId
@Stability(Stable) @NotNull public static IKnowledgeBaseRef fromKnowledgeBaseId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String knowledgeBaseId) Creates a new IKnowledgeBaseRef from a knowledgeBaseId.- Parameters:
scope- This parameter is required.id- This parameter is required.knowledgeBaseId- This parameter is required.
-
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.
-
getAttrKnowledgeBaseArn
The Amazon Resource Name (ARN) of the knowledge base. -
getAttrKnowledgeBaseId
The ID of the knowledge base. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getKnowledgeBaseRef
A reference to a KnowledgeBase resource.- Specified by:
getKnowledgeBaseRefin interfaceIKnowledgeBaseRef
-
getTags
Tag Manager which manages the tags for this resource. -
getKnowledgeBaseType
The type of knowledge base. -
setKnowledgeBaseType
The type of knowledge base. -
getName
The name of the knowledge base. -
setName
The name of the knowledge base. -
getDescription
The description. -
setDescription
The description. -
getRenderingConfiguration
Information about how to render the content.Returns union: either
IResolvableorCfnKnowledgeBase.RenderingConfigurationProperty -
setRenderingConfiguration
Information about how to render the content. -
setRenderingConfiguration
@Stability(Stable) public void setRenderingConfiguration(@Nullable CfnKnowledgeBase.RenderingConfigurationProperty value) Information about how to render the content. -
getServerSideEncryptionConfiguration
This customer managed key must have a policy that allowskms:CreateGrantandkms:DescribeKeypermissions to the IAM identity using the key to invoke Wisdom.Returns union: either
IResolvableorCfnKnowledgeBase.ServerSideEncryptionConfigurationProperty -
setServerSideEncryptionConfiguration
This customer managed key must have a policy that allowskms:CreateGrantandkms:DescribeKeypermissions to the IAM identity using the key to invoke Wisdom. -
setServerSideEncryptionConfiguration
@Stability(Stable) public void setServerSideEncryptionConfiguration(@Nullable CfnKnowledgeBase.ServerSideEncryptionConfigurationProperty value) This customer managed key must have a policy that allowskms:CreateGrantandkms:DescribeKeypermissions to the IAM identity using the key to invoke Wisdom. -
getSourceConfiguration
The source of the knowledge base content.Returns union: either
IResolvableorCfnKnowledgeBase.SourceConfigurationProperty -
setSourceConfiguration
The source of the knowledge base content. -
setSourceConfiguration
@Stability(Stable) public void setSourceConfiguration(@Nullable CfnKnowledgeBase.SourceConfigurationProperty value) The source of the knowledge base content. -
getTagsRaw
The tags used to organize, track, or control access for this resource. -
setTagsRaw
The tags used to organize, track, or control access for this resource. -
getVectorIngestionConfiguration
Contains details about how to ingest the documents in a data source.Returns union: either
IResolvableorCfnKnowledgeBase.VectorIngestionConfigurationProperty -
setVectorIngestionConfiguration
Contains details about how to ingest the documents in a data source. -
setVectorIngestionConfiguration
@Stability(Stable) public void setVectorIngestionConfiguration(@Nullable CfnKnowledgeBase.VectorIngestionConfigurationProperty value) Contains details about how to ingest the documents in a data source.
-