Skip to content

DocumentMetadata

Source code in docs_src/capo_bedrock_agent/types/document_metadata.py
class DocumentMetadata(TypedDict, closed=True):
    type: "capo_bedrock_agent.types.metadata_source_type.MetadataSourceType"
    """<p>The type of the source source from which to add metadata.</p>"""
    inline_attributes: NotRequired[
        "capo_bedrock_agent.types.metadata_attributes.MetadataAttributes"
    ]
    """<p>An array of objects, each of which defines a metadata attribute to associate with the content to ingest. You define the attributes inline.</p>"""
    s3_location: NotRequired[
        "capo_bedrock_agent.types.custom_s3_location.CustomS3Location"
    ]
    """<p>The Amazon S3 location of the file containing metadata to associate with the content to ingest.</p>"""
    access_control_list: NotRequired[
        "capo_bedrock_agent.types.document_access_control_list.DocumentAccessControlList"
    ]
    """<p>Access control list for the document. Used when metadata type is IN_LINE_ATTRIBUTE.</p>"""

access_control_list instance-attribute

access_control_list: NotRequired[DocumentAccessControlList]

Access control list for the document. Used when metadata type is IN_LINE_ATTRIBUTE.

inline_attributes instance-attribute

inline_attributes: NotRequired[MetadataAttributes]

An array of objects, each of which defines a metadata attribute to associate with the content to ingest. You define the attributes inline.

s3_location instance-attribute

s3_location: NotRequired[CustomS3Location]

The Amazon S3 location of the file containing metadata to associate with the content to ingest.

type instance-attribute

The type of the source source from which to add metadata.