AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Bedrock::DataSource

CfnDataSource

> 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

import { CfnDataSource } from 'aws-cdk-lib/aws-bedrock';

Or use the module namespace:

import * as bedrock from 'aws-cdk-lib/aws-bedrock';
// bedrock.CfnDataSource

Properties

Configuration passed to the constructor as CfnDataSourceProps.

dataSourceConfigurationRequired
IResolvable | DataSourceConfigurationProperty

The connection configuration for the data source.

knowledgeBaseIdRequired
string

The unique identifier of the knowledge base to which the data source belongs.

nameRequired
string

The name of the data source.

dataDeletionPolicyOptional
string

The data deletion policy for the data source.

descriptionOptional
string

The description of the data source.

serverSideEncryptionConfigurationOptional
IResolvable | ServerSideEncryptionConfigurationProperty

Contains details about the configuration of the server-side encryption.

vectorIngestionConfigurationOptional
IResolvable | VectorIngestionConfigurationProperty

Contains details about how to ingest the documents in the data source.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter