Interface CfnKnowledgeBaseProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKnowledgeBaseProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:15.121Z")
@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") .vectorKnowledgeBaseConfiguration(VectorKnowledgeBaseConfigurationProperty.builder() .embeddingModelArn("embeddingModelArn") // the properties below are optional .embeddingModelConfiguration(EmbeddingModelConfigurationProperty.builder() .bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder() .dimensions(123) .build()) .build()) .build()) .build()) .name("name") .roleArn("roleArn") .storageConfiguration(StorageConfigurationProperty.builder() .type("type") // the properties below are optional .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") .build()) .resourceArn("resourceArn") .tableName("tableName") .build()) .build()) // the properties below are optional .description("description") .tags(Map.of( "tagsKey", "tags")) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnKnowledgeBaseProps
static final class
An implementation forCfnKnowledgeBaseProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The description of the knowledge base.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.Contains 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.- 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:
-
getStorageConfiguration
Contains details about the storage configuration of the knowledge base.- See Also:
-
getDescription
The description of the knowledge base.- 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.Builder
ofCfnKnowledgeBaseProps
-