AWS::Bedrock::DataSource> 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](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-ds.html) . See the *Properties* section below for descriptions of both the required and optional properties.
import { CfnDataSource } from 'aws-cdk-lib/aws-bedrock';Or use the module namespace:
import * as bedrock from 'aws-cdk-lib/aws-bedrock';
// bedrock.CfnDataSourceConfiguration passed to the constructor as CfnDataSourceProps.
dataSourceConfigurationRequiredIResolvable | DataSourceConfigurationPropertyThe connection configuration for the data source.
knowledgeBaseIdRequiredstringThe unique identifier of the knowledge base to which the data source belongs.
nameRequiredstringThe name of the data source.
dataDeletionPolicyOptionalstringThe data deletion policy for the data source.
descriptionOptionalstringThe description of the data source.
serverSideEncryptionConfigurationOptionalIResolvable | ServerSideEncryptionConfigurationPropertyContains details about the configuration of the server-side encryption.
vectorIngestionConfigurationOptionalIResolvable | VectorIngestionConfigurationPropertyContains details about how to ingest the documents in the data source.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-bedrockAWS::Bedrock::DataSource