Skip to content

UpdateKnowledgeBaseRequest

Source code in docs_src/capo_bedrock_agent/types/update_knowledge_base_request.py
class UpdateKnowledgeBaseRequest(TypedDict, closed=True):
    knowledge_base_id: "capo_bedrock_agent.types.id.Id"
    """<p>The unique identifier of the knowledge base to update.</p>"""
    name: "capo_bedrock_agent.types.name.Name"
    """<p>Specifies a new name for the knowledge base.</p>"""
    description: NotRequired["capo_bedrock_agent.types.description.Description"]
    """<p>Specifies a new description for the knowledge base.</p>"""
    role_arn: "capo_bedrock_agent.types.knowledge_base_role_arn.KnowledgeBaseRoleArn"
    """<p>Specifies a different 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>Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.</p>"""
    storage_configuration: NotRequired[
        "capo_bedrock_agent.types.storage_configuration.StorageConfiguration"
    ]
    """<p>Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.</p>"""
    metadata_configurations: NotRequired[
        "capo_bedrock_agent.types.metadata_configurations.MetadataConfigurations"
    ]
    """<p>Specifies up to 30 custom metadata field configurations for a managed knowledge base.</p> <p>The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.</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 keeps its current value.</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>The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.</p>"""

description instance-attribute

description: NotRequired[Description]

Specifies a new description for the knowledge base.

knowledge_base_configuration instance-attribute

knowledge_base_configuration: KnowledgeBaseConfiguration

Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.

knowledge_base_id instance-attribute

knowledge_base_id: Id

The unique identifier of the knowledge base to update.

metadata_configurations instance-attribute

metadata_configurations: NotRequired[MetadataConfigurations]

Specifies up to 30 custom metadata field configurations for a managed knowledge base.

The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.

name instance-attribute

name: Name

Specifies a new name for the knowledge base.

role_arn instance-attribute

Specifies a different 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]

Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.

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.

The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.

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 keeps its current value.