Interface CfnKnowledgeBaseProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKnowledgeBaseProps.Jsii$Proxy
CfnKnowledgeBase.
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.*;
CfnKnowledgeBaseProps cfnKnowledgeBaseProps = CfnKnowledgeBaseProps.builder()
.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 TypeInterfaceDescriptionstatic final classA builder forCfnKnowledgeBasePropsstatic final classAn implementation forCfnKnowledgeBaseProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe description.The type of knowledge base.getName()The name of the knowledge base.default ObjectInformation about how to render the content.default ObjectThis customer managed key must have a policy that allowskms:CreateGrantandkms:DescribeKeypermissions to the IAM identity using the key to invoke Wisdom.default ObjectThe source of the knowledge base content.getTags()The tags used to organize, track, or control access for this resource.default ObjectContains details about how to ingest the documents in a data source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKnowledgeBaseType
The type of knowledge base.Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
- See Also:
-
getName
The name of the knowledge base.- See Also:
-
getDescription
The description.- See Also:
-
getRenderingConfiguration
Information about how to render the content.Returns union: either
IResolvableorCfnKnowledgeBase.RenderingConfigurationProperty- See Also:
-
getServerSideEncryptionConfiguration
This customer managed key must have a policy that allowskms:CreateGrantandkms:DescribeKeypermissions to the IAM identity using the key to invoke Wisdom.For more information about setting up a customer managed key for Wisdom, see Enable Amazon Connect Wisdom for your instance . For information about valid ID values, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide .
Returns union: either
IResolvableorCfnKnowledgeBase.ServerSideEncryptionConfigurationProperty- See Also:
-
getSourceConfiguration
The source of the knowledge base content.Only set this argument for EXTERNAL or Managed knowledge bases.
Returns union: either
IResolvableorCfnKnowledgeBase.SourceConfigurationProperty- See Also:
-
getTags
The tags used to organize, track, or control access for this resource.- See Also:
-
getVectorIngestionConfiguration
Contains details about how to ingest the documents in a data source.Returns union: either
IResolvableorCfnKnowledgeBase.VectorIngestionConfigurationProperty- See Also:
-
builder
- Returns:
- a
CfnKnowledgeBaseProps.BuilderofCfnKnowledgeBaseProps
-