Skip to content

Bedrock Agent  >  Structures  >  PatternObjectFilter

PatternObjectFilter

Structure Class

PatternObjectFilter dataclass

The specific filters applied to your data source content. You can filter out or include certain content.

Attributes

exclusion_filters class-attribute instance-attribute
exclusion_filters: list[str] | None = field(repr=False, default=None)

A list of one or more exclusion regular expression patterns to exclude certain object types that adhere to the pattern. If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn't crawled.

inclusion_filters class-attribute instance-attribute
inclusion_filters: list[str] | None = field(repr=False, default=None)

A list of one or more inclusion regular expression patterns to include certain object types that adhere to the pattern. If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn't crawled.

object_type class-attribute instance-attribute
object_type: str = field(repr=False)

The supported object type or content type of the data source.