CreateKnowledgeBaseRequest
¶
Source code in docs_src/capo_bedrock_agent/types/create_knowledge_base_request.py
client_token
instance-attribute
¶
client_token: NotRequired[ClientToken]
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
description
instance-attribute
¶
description: NotRequired[Description]
A description of the knowledge base.
knowledge_base_configuration
instance-attribute
¶
knowledge_base_configuration: KnowledgeBaseConfiguration
Contains details about the embeddings model used for the knowledge base.
role_arn
instance-attribute
¶
role_arn: KnowledgeBaseRoleArn
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
storage_configuration
instance-attribute
¶
storage_configuration: NotRequired[StorageConfiguration]
Contains details about the configuration of the vector database used for the knowledge base.
tags
instance-attribute
¶
tags: NotRequired[TagsMap]
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
trusted_identity_sources
instance-attribute
¶
trusted_identity_sources: NotRequired[TrustedIdentitySources]
Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.
By default, the knowledge base trusts sessions from an identity store or identity provider in your account. Use this list to also trust identity sources in other accounts. The list applies only when userContextModeForRetrieval isn't API_INPUT_ONLY.
user_context_mode_for_retrieval
instance-attribute
¶
user_context_mode_for_retrieval: NotRequired[UserContextModeForRetrieval]
Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base uses API_INPUT_ONLY.