Filter
A filter that selects documents in a connection mapping. All members are optional, and a document must match every condition in the filter. When a mapping has more than one filter, a document that matches any of them is selected. updatedAfter, includeTags, and excludeTags apply to all connection types. createdAfter applies only to BEDROCK_KNOWLEDGE_BASE connections; for other connection types it doesn't exclude any document. fileType and maxDocumentSizeBytes apply only to BEDROCK_KNOWLEDGE_BASE connections, and specifying either for another connection type fails with ValidationException. You can't specify both includeTags and excludeTags in one filter.
Contents
- createdAfter
-
Documents created after this time match. Applies only to
BEDROCK_KNOWLEDGE_BASEconnections. For other connection types, it doesn't exclude any document.Type: Timestamp
Required: No
- excludeTags
-
The tags to exclude: 1–25 strings, each 1–256 characters. Applies to all connection types. You can't specify both
excludeTagsandincludeTagsin one filter.Type: Array of strings
Array Members: Minimum number of 1 item. Maximum number of 25 items.
Length Constraints: Minimum length of 1. Maximum length of 256.
Required: No
- fileType
-
The file type to match, for example PDF or DOCX. Applies only to BEDROCK_KNOWLEDGE_BASE connections.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[A-Z][A-Z0-9_]*Required: No
- includeTags
-
The tags to include: 1–25 strings, each 1–256 characters. Applies to all connection types. You can't specify both
includeTagsandexcludeTagsin one filter.Type: Array of strings
Array Members: Minimum number of 1 item. Maximum number of 25 items.
Length Constraints: Minimum length of 1. Maximum length of 256.
Required: No
- maxDocumentSizeBytes
-
The maximum document size, in bytes. Applies only to BEDROCK_KNOWLEDGE_BASE connections. Documents larger than this are filtered out. If you omit it, there is no size limit. Range: 1 to 52,428,800 bytes (50 MiB).
Type: Long
Valid Range: Minimum value of 1. Maximum value of 52428800.
Required: No
- updatedAfter
-
Documents updated after this time match. Applies to all connection types.
Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: