Skip to content

CreateKnowledgeBaseRequest

Source code in docs_src/capo_bedrock_agent/types/create_knowledge_base_request.py
class CreateKnowledgeBaseRequest(TypedDict, closed=True):
    client_token: NotRequired["capo_bedrock_agent.types.client_token.ClientToken"]
    """<p>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 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>"""
    name: "capo_bedrock_agent.types.name.Name"
    """<p>A name for the knowledge base.</p>"""
    description: NotRequired["capo_bedrock_agent.types.description.Description"]
    """<p>A description of the knowledge base.</p>"""
    role_arn: "capo_bedrock_agent.types.knowledge_base_role_arn.KnowledgeBaseRoleArn"
    """<p>The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.</p>"""
    knowledge_base_configuration: "capo_bedrock_agent.types.knowledge_base_configuration.KnowledgeBaseConfiguration"
    """<p>Contains details about the embeddings model used for the knowledge base.</p>"""
    storage_configuration: NotRequired[
        "capo_bedrock_agent.types.storage_configuration.StorageConfiguration"
    ]
    """<p>Contains details about the configuration of the vector database used for the knowledge base.</p>"""
    user_context_mode_for_retrieval: NotRequired[
        "capo_bedrock_agent.types.user_context_mode_for_retrieval.UserContextModeForRetrieval"
    ]
    """<p>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 <code>API_INPUT_ONLY</code>.</p>"""
    trusted_identity_sources: NotRequired[
        "capo_bedrock_agent.types.trusted_identity_sources.TrustedIdentitySources"
    ]
    """<p>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.</p> <p>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 <code>userContextModeForRetrieval</code> isn't <code>API_INPUT_ONLY</code>.</p>"""
    tags: NotRequired["capo_bedrock_agent.types.tags_map.TagsMap"]
    """<p>Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.</p>"""

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.

name instance-attribute

name: Name

A name for the knowledge base.

role_arn instance-attribute

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.