# RdsFieldMappingProperty

Contains the names of the fields to which to map information about the vector store.

- Source: Generated at build time
- Type last changed: v2.191.0 · 23 Apr 2025

## Example

TypeScript:

```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 rdsFieldMappingProperty: bedrock.CfnKnowledgeBase.RdsFieldMappingProperty = {
  metadataField: 'metadataField',
  primaryKeyField: 'primaryKeyField',
  textField: 'textField',
  vectorField: 'vectorField',

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

Python:

```python
# 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

rds_field_mapping_property = bedrock.CfnKnowledgeBase.RdsFieldMappingProperty(
    metadata_field="metadataField",
    primary_key_field="primaryKeyField",
    text_field="textField",
    vector_field="vectorField",

    # the properties below are optional
    custom_metadata_field="customMetadataField"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;

RdsFieldMappingProperty rdsFieldMappingProperty = RdsFieldMappingProperty.builder()
        .metadataField("metadataField")
        .primaryKeyField("primaryKeyField")
        .textField("textField")
        .vectorField("vectorField")

        // the properties below are optional
        .customMetadataField("customMetadataField")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;

var rdsFieldMappingProperty = new RdsFieldMappingProperty {
    MetadataField = "metadataField",
    PrimaryKeyField = "primaryKeyField",
    TextField = "textField",
    VectorField = "vectorField",

    // the properties below are optional
    CustomMetadataField = "customMetadataField"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rdsFieldMappingProperty := &RdsFieldMappingProperty{
	MetadataField: jsii.String("metadataField"),
	PrimaryKeyField: jsii.String("primaryKeyField"),
	TextField: jsii.String("textField"),
	VectorField: jsii.String("vectorField"),

	// the properties below are optional
	CustomMetadataField: jsii.String("customMetadataField"),
}
```

## Properties

- `customMetadataField`: string — Provide a name for the universal metadata field where Amazon Bedrock will store any custom metadata from your data source.

- `metadataField`: string (required) — The name of the field in which Amazon Bedrock stores metadata about the vector store.

- `primaryKeyField`: string (required) — The name of the field in which Amazon Bedrock stores the ID for each entry.

- `textField`: string (required) — The name of the field in which Amazon Bedrock stores the raw text from your data.

  The text is split according to the chunking strategy you choose.

- `vectorField`: string (required) — The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
