Skip to content

Bedrock Agent  >  Structures  >  DocumentMetadata

DocumentMetadata

Structure Class

DocumentMetadata dataclass

Contains information about the metadata associate with the content to ingest into a knowledge base. Choose a type and include the field that corresponds to it.

Attributes

access_control_list class-attribute instance-attribute
access_control_list: list[DocumentAccessControlEntry] | None = None

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

inline_attributes class-attribute instance-attribute
inline_attributes: list[MetadataAttribute] | None = None

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 class-attribute instance-attribute
s3_location: CustomS3Location | None = None

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.