Interface CfnKnowledgeBaseProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKnowledgeBaseProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:35.601Z")
@Stability(Stable)
public interface CfnKnowledgeBaseProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnKnowledgeBase.
Example:
// 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.*;
CfnKnowledgeBaseProps cfnKnowledgeBaseProps = CfnKnowledgeBaseProps.builder()
.knowledgeBaseConfiguration(KnowledgeBaseConfigurationProperty.builder()
.type("type")
// the properties below are optional
.kendraKnowledgeBaseConfiguration(KendraKnowledgeBaseConfigurationProperty.builder()
.kendraIndexArn("kendraIndexArn")
.build())
.sqlKnowledgeBaseConfiguration(SqlKnowledgeBaseConfigurationProperty.builder()
.type("type")
// the properties below are optional
.redshiftConfiguration(RedshiftConfigurationProperty.builder()
.queryEngineConfiguration(RedshiftQueryEngineConfigurationProperty.builder()
.type("type")
// the properties below are optional
.provisionedConfiguration(RedshiftProvisionedConfigurationProperty.builder()
.authConfiguration(RedshiftProvisionedAuthConfigurationProperty.builder()
.type("type")
// the properties below are optional
.databaseUser("databaseUser")
.usernamePasswordSecretArn("usernamePasswordSecretArn")
.build())
.clusterIdentifier("clusterIdentifier")
.build())
.serverlessConfiguration(RedshiftServerlessConfigurationProperty.builder()
.authConfiguration(RedshiftServerlessAuthConfigurationProperty.builder()
.type("type")
// the properties below are optional
.usernamePasswordSecretArn("usernamePasswordSecretArn")
.build())
.workgroupArn("workgroupArn")
.build())
.build())
.storageConfigurations(List.of(RedshiftQueryEngineStorageConfigurationProperty.builder()
.type("type")
// the properties below are optional
.awsDataCatalogConfiguration(RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty.builder()
.tableNames(List.of("tableNames"))
.build())
.redshiftConfiguration(RedshiftQueryEngineRedshiftStorageConfigurationProperty.builder()
.databaseName("databaseName")
.build())
.build()))
// the properties below are optional
.queryGenerationConfiguration(QueryGenerationConfigurationProperty.builder()
.executionTimeoutSeconds(123)
.generationContext(QueryGenerationContextProperty.builder()
.curatedQueries(List.of(CuratedQueryProperty.builder()
.naturalLanguage("naturalLanguage")
.sql("sql")
.build()))
.tables(List.of(QueryGenerationTableProperty.builder()
.name("name")
// the properties below are optional
.columns(List.of(QueryGenerationColumnProperty.builder()
.description("description")
.inclusion("inclusion")
.name("name")
.build()))
.description("description")
.inclusion("inclusion")
.build()))
.build())
.build())
.build())
.build())
.vectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationProperty.builder()
.embeddingModelArn("embeddingModelArn")
// the properties below are optional
.embeddingModelConfiguration(EmbeddingModelConfigurationProperty.builder()
.bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder()
.dimensions(123)
.embeddingDataType("embeddingDataType")
.build())
.build())
.supplementalDataStorageConfiguration(SupplementalDataStorageConfigurationProperty.builder()
.supplementalDataStorageLocations(List.of(SupplementalDataStorageLocationProperty.builder()
.supplementalDataStorageLocationType("supplementalDataStorageLocationType")
// the properties below are optional
.s3Location(S3LocationProperty.builder()
.uri("uri")
.build())
.build()))
.build())
.build())
.build())
.name("name")
.roleArn("roleArn")
// the properties below are optional
.description("description")
.storageConfiguration(StorageConfigurationProperty.builder()
.type("type")
// the properties below are optional
.mongoDbAtlasConfiguration(MongoDbAtlasConfigurationProperty.builder()
.collectionName("collectionName")
.credentialsSecretArn("credentialsSecretArn")
.databaseName("databaseName")
.endpoint("endpoint")
.fieldMapping(MongoDbAtlasFieldMappingProperty.builder()
.metadataField("metadataField")
.textField("textField")
.vectorField("vectorField")
.build())
.vectorIndexName("vectorIndexName")
// the properties below are optional
.endpointServiceName("endpointServiceName")
.textIndexName("textIndexName")
.build())
.neptuneAnalyticsConfiguration(NeptuneAnalyticsConfigurationProperty.builder()
.fieldMapping(NeptuneAnalyticsFieldMappingProperty.builder()
.metadataField("metadataField")
.textField("textField")
.build())
.graphArn("graphArn")
.build())
.opensearchManagedClusterConfiguration(OpenSearchManagedClusterConfigurationProperty.builder()
.domainArn("domainArn")
.domainEndpoint("domainEndpoint")
.fieldMapping(OpenSearchManagedClusterFieldMappingProperty.builder()
.metadataField("metadataField")
.textField("textField")
.vectorField("vectorField")
.build())
.vectorIndexName("vectorIndexName")
.build())
.opensearchServerlessConfiguration(OpenSearchServerlessConfigurationProperty.builder()
.collectionArn("collectionArn")
.fieldMapping(OpenSearchServerlessFieldMappingProperty.builder()
.metadataField("metadataField")
.textField("textField")
.vectorField("vectorField")
.build())
.vectorIndexName("vectorIndexName")
.build())
.pineconeConfiguration(PineconeConfigurationProperty.builder()
.connectionString("connectionString")
.credentialsSecretArn("credentialsSecretArn")
.fieldMapping(PineconeFieldMappingProperty.builder()
.metadataField("metadataField")
.textField("textField")
.build())
// the properties below are optional
.namespace("namespace")
.build())
.rdsConfiguration(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())
.build())
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnKnowledgeBasePropsstatic final classAn implementation forCfnKnowledgeBaseProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe description of the knowledge base associated with the inline agent.Contains details about the embeddings configuration of the knowledge base.getName()The name of the knowledge base.The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.default ObjectContains details about the storage configuration of the knowledge base.getTags()Metadata that you can assign to a resource as key-value pairs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKnowledgeBaseConfiguration
Contains details about the embeddings configuration of the knowledge base.Returns union: either
IResolvableorCfnKnowledgeBase.KnowledgeBaseConfigurationProperty- See Also:
-
getName
The name of the knowledge base.- See Also:
-
getRoleArn
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.- See Also:
-
getDescription
The description of the knowledge base associated with the inline agent.- See Also:
-
getStorageConfiguration
Contains details about the storage configuration of the knowledge base.Returns union: either
IResolvableorCfnKnowledgeBase.StorageConfigurationProperty- See Also:
-
getTags
Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- See Also:
-
builder
- Returns:
- a
CfnKnowledgeBaseProps.BuilderofCfnKnowledgeBaseProps
-