interface CfnDataSourceProps
Language | Type name |
---|---|
.NET | Amazon.CDK.aws_bedrock.CfnDataSourceProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnDataSourceProps |
Java | software.amazon.awscdk.services.bedrock.CfnDataSourceProps |
Python | aws_cdk.aws_bedrock.CfnDataSourceProps |
TypeScript | aws-cdk-lib » aws_bedrock » CfnDataSourceProps |
Properties for defining a CfnDataSource
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const cfnDataSourceProps: bedrock.CfnDataSourceProps = {
dataSourceConfiguration: {
s3Configuration: {
bucketArn: 'bucketArn',
// the properties below are optional
bucketOwnerAccountId: 'bucketOwnerAccountId',
inclusionPrefixes: ['inclusionPrefixes'],
},
type: 'type',
},
knowledgeBaseId: 'knowledgeBaseId',
name: 'name',
// the properties below are optional
dataDeletionPolicy: 'dataDeletionPolicy',
description: 'description',
serverSideEncryptionConfiguration: {
kmsKeyArn: 'kmsKeyArn',
},
vectorIngestionConfiguration: {
chunkingConfiguration: {
chunkingStrategy: 'chunkingStrategy',
// the properties below are optional
fixedSizeChunkingConfiguration: {
maxTokens: 123,
overlapPercentage: 123,
},
},
},
};
Properties
Name | Type | Description |
---|---|---|
data | IResolvable | Data | Contains details about how the data source is stored. |
knowledge | string | The unique identifier of the knowledge base to which the data source belongs. |
name | string | The name of the data source. |
data | string | The data deletion policy for a data source. |
description? | string | The description of the data source. |
server | IResolvable | Server | Contains details about the configuration of the server-side encryption. |
vector | IResolvable | Vector | Contains details about how to ingest the documents in the data source. |
dataSourceConfiguration
Type:
IResolvable
|
Data
Contains details about how the data source is stored.
knowledgeBaseId
Type:
string
The unique identifier of the knowledge base to which the data source belongs.
name
Type:
string
The name of the data source.
dataDeletionPolicy?
Type:
string
(optional)
The data deletion policy for a data source.
description?
Type:
string
(optional)
The description of the data source.
serverSideEncryptionConfiguration?
Type:
IResolvable
|
Server
(optional)
Contains details about the configuration of the server-side encryption.
vectorIngestionConfiguration?
Type:
IResolvable
|
Vector
(optional)
Contains details about how to ingest the documents in the data source.