# RdsConfigurationProperty

Contains details about the storage configuration of the knowledge base in Amazon RDS.

For more information, see [Create a vector index in Amazon RDS](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html) .

- Source: Generated code
- Type last changed: v2.140.0 · 2 May 2024

## Example

```ts
// 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 rdsConfigurationProperty: bedrock.CfnKnowledgeBase.RdsConfigurationProperty = {
  credentialsSecretArn: 'credentialsSecretArn',
  databaseName: 'databaseName',
  fieldMapping: {
    metadataField: 'metadataField',
    primaryKeyField: 'primaryKeyField',
    textField: 'textField',
    vectorField: 'vectorField',

    // the properties below are optional
    customMetadataField: 'customMetadataField',
  },
  resourceArn: 'resourceArn',
  tableName: 'tableName',
};
```

## Properties

- `credentialsSecretArn`: string (required) — The Amazon Resource Name (ARN) of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.

- `databaseName`: string (required) — The name of your Amazon RDS database.

- `fieldMapping`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnKnowledgeBase.RdsFieldMappingProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.RdsFieldMappingProperty.html) (required) — Contains the names of the fields to which to map information about the vector store.

- `resourceArn`: string (required) — The Amazon Resource Name (ARN) of the vector store.

- `tableName`: string (required) — The name of the table in the database.
