CfnDataSourceProps

class aws_cdk.aws_bedrock.CfnDataSourceProps(*, data_source_configuration, knowledge_base_id, name, data_deletion_policy=None, description=None, server_side_encryption_configuration=None, vector_ingestion_configuration=None)

Bases: object

Properties for defining a CfnDataSource.

Parameters:
  • data_source_configuration (Union[IResolvable, DataSourceConfigurationProperty, Dict[str, Any]]) – The connection configuration for the data source.

  • knowledge_base_id (str) – The unique identifier of the knowledge base to which the data source belongs.

  • name (str) – The name of the data source.

  • data_deletion_policy (Optional[str]) – The data deletion policy for the data source.

  • description (Optional[str]) – The description of the data source.

  • server_side_encryption_configuration (Union[IResolvable, ServerSideEncryptionConfigurationProperty, Dict[str, Any], None]) – Contains details about the configuration of the server-side encryption.

  • vector_ingestion_configuration (Union[IResolvable, VectorIngestionConfigurationProperty, Dict[str, Any], None]) – Contains details about how to ingest the documents in the data source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

cfn_data_source_props = bedrock.CfnDataSourceProps(
    data_source_configuration=bedrock.CfnDataSource.DataSourceConfigurationProperty(
        s3_configuration=bedrock.CfnDataSource.S3DataSourceConfigurationProperty(
            bucket_arn="bucketArn",

            # the properties below are optional
            bucket_owner_account_id="bucketOwnerAccountId",
            inclusion_prefixes=["inclusionPrefixes"]
        ),
        type="type"
    ),
    knowledge_base_id="knowledgeBaseId",
    name="name",

    # the properties below are optional
    data_deletion_policy="dataDeletionPolicy",
    description="description",
    server_side_encryption_configuration=bedrock.CfnDataSource.ServerSideEncryptionConfigurationProperty(
        kms_key_arn="kmsKeyArn"
    ),
    vector_ingestion_configuration=bedrock.CfnDataSource.VectorIngestionConfigurationProperty(
        chunking_configuration=bedrock.CfnDataSource.ChunkingConfigurationProperty(
            chunking_strategy="chunkingStrategy",

            # the properties below are optional
            fixed_size_chunking_configuration=bedrock.CfnDataSource.FixedSizeChunkingConfigurationProperty(
                max_tokens=123,
                overlap_percentage=123
            )
        )
    )
)

Attributes

data_deletion_policy

The data deletion policy for the data source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datadeletionpolicy

data_source_configuration

The connection configuration for the data source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-datasourceconfiguration

description

The description of the data source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-description

knowledge_base_id

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-knowledgebaseid

name

The name of the data source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-name

server_side_encryption_configuration

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-serversideencryptionconfiguration

vector_ingestion_configuration

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html#cfn-bedrock-datasource-vectoringestionconfiguration