AWS::Bedrock::KnowledgeBaseSpecifies a knowledge base as a resource in a top-level template. Minimally, you must specify the following properties:. - Name – Specify a name for the knowledge base. - RoleArn – Specify the Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base. For more information, see [Create a service role for Knowledge base for Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-permissions.html) . - KnowledgeBaseConfiguration – Specify the embeddings configuration of the knowledge base. The following sub-properties are required: - Type – Specify the value `VECTOR` . - StorageConfiguration – Specify information about the vector store in which the data source is stored. The following sub-properties are required: - Type – Specify the vector store service that you are using. > Redis Enterprise Cloud vector stores are currently unsupported in CloudFormation . For more information about using knowledge bases in Amazon Bedrock , see [Knowledge base for Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html) . See the *Properties* section below for descriptions of both the required and optional properties.
import { CfnKnowledgeBase } from 'aws-cdk-lib/aws-bedrock';Or use the module namespace:
import * as bedrock from 'aws-cdk-lib/aws-bedrock';
// bedrock.CfnKnowledgeBaseConfiguration passed to the constructor as CfnKnowledgeBaseProps.
knowledgeBaseConfigurationRequiredIResolvable | KnowledgeBaseConfigurationPropertyContains details about the embeddings configuration of the knowledge base.
nameRequiredstringThe name of the knowledge base.
roleArnRequiredstringThe Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
descriptionOptionalstringThe description of the knowledge base associated with the inline agent.
storageConfigurationOptionalIResolvable | StorageConfigurationPropertyContains details about the storage configuration of the knowledge base.
tagsOptional{ [key: string]: string }Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - [Tag naming limits and requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions) - [Tagging best practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices)
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-bedrockAWS::Bedrock::KnowledgeBase