RdsConfigurationProperty Struct
Contains details about the storage configuration of the knowledge base in Amazon RDS.
For more information, see Create a vector index in Amazon RDS .
| Source | |
|---|---|
| Type last changed |
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',
};
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_configuration_property = bedrock.CfnKnowledgeBase.RdsConfigurationProperty(
credentials_secret_arn="credentialsSecretArn",
database_name="databaseName",
field_mapping=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"
),
resource_arn="resourceArn",
table_name="tableName"
)
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.*;
RdsConfigurationProperty rdsConfigurationProperty = RdsConfigurationProperty.builder()
.credentialsSecretArn("credentialsSecretArn")
.databaseName("databaseName")
.fieldMapping(RdsFieldMappingProperty.builder()
.metadataField("metadataField")
.primaryKeyField("primaryKeyField")
.textField("textField")
.vectorField("vectorField")
// the properties below are optional
.customMetadataField("customMetadataField")
.build())
.resourceArn("resourceArn")
.tableName("tableName")
.build();
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 rdsConfigurationProperty = new RdsConfigurationProperty {
CredentialsSecretArn = "credentialsSecretArn",
DatabaseName = "databaseName",
FieldMapping = new RdsFieldMappingProperty {
MetadataField = "metadataField",
PrimaryKeyField = "primaryKeyField",
TextField = "textField",
VectorField = "vectorField",
// the properties below are optional
CustomMetadataField = "customMetadataField"
},
ResourceArn = "resourceArn",
TableName = "tableName"
};
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"
rdsConfigurationProperty := &RdsConfigurationProperty{
CredentialsSecretArn: jsii.String("credentialsSecretArn"),
DatabaseName: jsii.String("databaseName"),
FieldMapping: &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"),
},
ResourceArn: jsii.String("resourceArn"),
TableName: jsii.String("tableName"),
}
Properties
credentialsSecretArnstringcredentials_secret_arnstrcredentialsSecretArnStringCredentialsSecretArnstringCredentialsSecretArn*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.
databaseNamestringdatabase_namestrdatabaseNameStringDatabaseNamestringDatabaseName*string required #The name of your Amazon RDS database.
fieldMappingIResolvable | CfnKnowledgeBase.field_mappingtyping.Union[IResolvable, RdsFieldMappingProperty]fieldMappingIResolvableFieldMappingIResolvableFieldMappinginterface{} required #Contains the names of the fields to which to map information about the vector store.
The Amazon Resource Name (ARN) of the vector store.
The name of the table in the database.