Class CfnDataSourcePropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnDataSourcePropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:56.474Z")
@Stability(Stable)
public class CfnDataSourcePropsMixin
extends Mixin
implements software.constructs.IMixin
Properties with
__Update requires: Replacement__can result in the creation of a new data source and deletion of the old one.
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
- Name – Specify a name for the data source.
- KnowledgeBaseId – Specify the ID of the knowledge base for the data source to belong to.
- DataSourceConfiguration – Specify information about the Amazon S3 bucket containing the data source. The following sub-properties are required:
- Type – Specify the value
S3.
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
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.bedrock.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnDataSourcePropsMixin cfnDataSourcePropsMixin = CfnDataSourcePropsMixin.Builder.create(CfnDataSourceMixinProps.builder()
.dataDeletionPolicy("dataDeletionPolicy")
.dataSourceConfiguration(DataSourceConfigurationProperty.builder()
.confluenceConfiguration(ConfluenceDataSourceConfigurationProperty.builder()
.crawlerConfiguration(ConfluenceCrawlerConfigurationProperty.builder()
.filterConfiguration(CrawlFilterConfigurationProperty.builder()
.patternObjectFilter(PatternObjectFilterConfigurationProperty.builder()
.filters(List.of(PatternObjectFilterProperty.builder()
.exclusionFilters(List.of("exclusionFilters"))
.inclusionFilters(List.of("inclusionFilters"))
.objectType("objectType")
.build()))
.build())
.type("type")
.build())
.build())
.sourceConfiguration(ConfluenceSourceConfigurationProperty.builder()
.authType("authType")
.credentialsSecretArn("credentialsSecretArn")
.hostType("hostType")
.hostUrl("hostUrl")
.build())
.build())
.s3Configuration(S3DataSourceConfigurationProperty.builder()
.bucketArn("bucketArn")
.bucketOwnerAccountId("bucketOwnerAccountId")
.inclusionPrefixes(List.of("inclusionPrefixes"))
.build())
.salesforceConfiguration(SalesforceDataSourceConfigurationProperty.builder()
.crawlerConfiguration(SalesforceCrawlerConfigurationProperty.builder()
.filterConfiguration(CrawlFilterConfigurationProperty.builder()
.patternObjectFilter(PatternObjectFilterConfigurationProperty.builder()
.filters(List.of(PatternObjectFilterProperty.builder()
.exclusionFilters(List.of("exclusionFilters"))
.inclusionFilters(List.of("inclusionFilters"))
.objectType("objectType")
.build()))
.build())
.type("type")
.build())
.build())
.sourceConfiguration(SalesforceSourceConfigurationProperty.builder()
.authType("authType")
.credentialsSecretArn("credentialsSecretArn")
.hostUrl("hostUrl")
.build())
.build())
.sharePointConfiguration(SharePointDataSourceConfigurationProperty.builder()
.crawlerConfiguration(SharePointCrawlerConfigurationProperty.builder()
.filterConfiguration(CrawlFilterConfigurationProperty.builder()
.patternObjectFilter(PatternObjectFilterConfigurationProperty.builder()
.filters(List.of(PatternObjectFilterProperty.builder()
.exclusionFilters(List.of("exclusionFilters"))
.inclusionFilters(List.of("inclusionFilters"))
.objectType("objectType")
.build()))
.build())
.type("type")
.build())
.build())
.sourceConfiguration(SharePointSourceConfigurationProperty.builder()
.authType("authType")
.credentialsSecretArn("credentialsSecretArn")
.domain("domain")
.hostType("hostType")
.siteUrls(List.of("siteUrls"))
.tenantId("tenantId")
.build())
.build())
.type("type")
.webConfiguration(WebDataSourceConfigurationProperty.builder()
.crawlerConfiguration(WebCrawlerConfigurationProperty.builder()
.crawlerLimits(WebCrawlerLimitsProperty.builder()
.maxPages(123)
.rateLimit(123)
.build())
.exclusionFilters(List.of("exclusionFilters"))
.inclusionFilters(List.of("inclusionFilters"))
.scope("scope")
.userAgent("userAgent")
.userAgentHeader("userAgentHeader")
.build())
.sourceConfiguration(WebSourceConfigurationProperty.builder()
.urlConfiguration(UrlConfigurationProperty.builder()
.seedUrls(List.of(SeedUrlProperty.builder()
.url("url")
.build()))
.build())
.build())
.build())
.build())
.description("description")
.knowledgeBaseId("knowledgeBaseId")
.name("name")
.serverSideEncryptionConfiguration(ServerSideEncryptionConfigurationProperty.builder()
.kmsKeyArn("kmsKeyArn")
.build())
.vectorIngestionConfiguration(VectorIngestionConfigurationProperty.builder()
.chunkingConfiguration(ChunkingConfigurationProperty.builder()
.chunkingStrategy("chunkingStrategy")
.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())
.contextEnrichmentConfiguration(ContextEnrichmentConfigurationProperty.builder()
.bedrockFoundationModelConfiguration(BedrockFoundationModelContextEnrichmentConfigurationProperty.builder()
.enrichmentStrategyConfiguration(EnrichmentStrategyConfigurationProperty.builder()
.method("method")
.build())
.modelArn("modelArn")
.build())
.type("type")
.build())
.customTransformationConfiguration(CustomTransformationConfigurationProperty.builder()
.intermediateStorage(IntermediateStorageProperty.builder()
.s3Location(S3LocationProperty.builder()
.uri("uri")
.build())
.build())
.transformations(List.of(TransformationProperty.builder()
.stepToApply("stepToApply")
.transformationFunction(TransformationFunctionProperty.builder()
.transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder()
.lambdaArn("lambdaArn")
.build())
.build())
.build()))
.build())
.parsingConfiguration(ParsingConfigurationProperty.builder()
.bedrockDataAutomationConfiguration(BedrockDataAutomationConfigurationProperty.builder()
.parsingModality("parsingModality")
.build())
.bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder()
.modelArn("modelArn")
.parsingModality("parsingModality")
.parsingPrompt(ParsingPromptProperty.builder()
.parsingPromptText("parsingPromptText")
.build())
.build())
.parsingStrategy("parsingStrategy")
.build())
.build())
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContains configurations for using Amazon Bedrock Data Automation as the parser for ingesting your data sources.static interfaceSettings for a foundation model used to parse documents for a data source.static interfaceContext enrichment configuration is used to provide additional context to the RAG application using Amazon Bedrock foundation models.static final classA fluent builder forCfnDataSourcePropsMixin.static interfaceDetails about how to chunk the documents in the data source.static interfaceThe configuration of the Confluence content.static interfaceThe configuration information to connect to Confluence as your data source.static interfaceThe endpoint information to connect to your Confluence data source.static interfaceContext enrichment configuration is used to provide additional context to the RAG application.static interfaceThe configuration of filtering the data source content.static interfaceSettings for customizing steps in the data source content ingestion pipeline.static interfaceThe connection configuration for the data source.static interfaceThe strategy used for performing context enrichment.static interfaceConfigurations for when you choose fixed-size chunking.static interfaceSettings for hierarchical document chunking for a data source.static interfaceToken settings for a layer in a hierarchical chunking configuration.static interfaceA location for storing content from data sources temporarily as it is processed by custom components in the ingestion pipeline.static interfaceSettings for parsing document contents.static interfaceInstructions for interpreting the contents of a document.static interfaceThe configuration of filtering certain objects or content types of the data source.static interfaceThe specific filters applied to your data source content.static interfaceThe configuration information to connect to Amazon S3 as your data source.static interfaceA storage location in an Amazon S3 bucket.static interfaceThe configuration of the Salesforce content.static interfaceThe configuration information to connect to Salesforce as your data source.static interfaceThe endpoint information to connect to your Salesforce data source.static interfaceThe seed or starting point URL.static interfaceSettings for semantic document chunking for a data source.static interfaceContains the configuration for server-side encryption.static interfaceThe configuration of the SharePoint content.static interfaceThe configuration information to connect to SharePoint as your data source.static interfaceThe endpoint information to connect to your SharePoint data source.static interfaceA Lambda function that processes documents.static interfaceA Lambda function that processes documents.static interfaceA custom processing step for documents moving through a data source ingestion pipeline.static interfaceThe configuration of web URLs that you want to crawl.static interfaceContains details about how to ingest the documents in a data source.static interfaceThe configuration of web URLs that you want to crawl.static interfaceThe rate limits for the URLs that you want to crawl.static interfaceThe configuration details for the web data source.static interfaceThe configuration of the URL/URLs for the web content that you want to crawl.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Bedrock::DataSource.CfnDataSourcePropsMixin(CfnDataSourceMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Bedrock::DataSource.protectedCfnDataSourcePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataSourcePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnDataSourceMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnDataSourcePropsMixin
protected CfnDataSourcePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataSourcePropsMixin
protected CfnDataSourcePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataSourcePropsMixin
@Stability(Stable) public CfnDataSourcePropsMixin(@NotNull CfnDataSourceMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Bedrock::DataSource.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnDataSourcePropsMixin
Create a mixin to apply properties toAWS::Bedrock::DataSource.- 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. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-