Class: Aws::Context::Types::Filter

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-context/lib/aws-sdk-context/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#created_after ⇒ Time

Documents created after this time match. Applies only to BEDROCK_KNOWLEDGE_BASE connections. For other connection types, it doesn't exclude any document.

Returns:

  • (Time)


3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 3090

class Filter < Struct.new(
  :file_type,
  :exclude_tags,
  :include_tags,
  :updated_after,
  :created_after,
  :max_document_size_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#exclude_tags ⇒ Array<String>

The tags to exclude: 1–25 strings, each 1–256 characters. Applies to all connection types. You can't specify both excludeTags and includeTags in one filter.

Returns:

  • (Array<String>)


3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 3090

class Filter < Struct.new(
  :file_type,
  :exclude_tags,
  :include_tags,
  :updated_after,
  :created_after,
  :max_document_size_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#file_type ⇒ String

The file type to match, for example PDF or DOCX. Applies only to BEDROCK_KNOWLEDGE_BASE connections.

Returns:

  • (String)


3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 3090

class Filter < Struct.new(
  :file_type,
  :exclude_tags,
  :include_tags,
  :updated_after,
  :created_after,
  :max_document_size_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#include_tags ⇒ Array<String>

The tags to include: 1–25 strings, each 1–256 characters. Applies to all connection types. You can't specify both includeTags and excludeTags in one filter.

Returns:

  • (Array<String>)


3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 3090

class Filter < Struct.new(
  :file_type,
  :exclude_tags,
  :include_tags,
  :updated_after,
  :created_after,
  :max_document_size_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#max_document_size_bytes ⇒ Integer

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).

Returns:

  • (Integer)


3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 3090

class Filter < Struct.new(
  :file_type,
  :exclude_tags,
  :include_tags,
  :updated_after,
  :created_after,
  :max_document_size_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#updated_after ⇒ Time

Documents updated after this time match. Applies to all connection types.

Returns:

  • (Time)


3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 3090

class Filter < Struct.new(
  :file_type,
  :exclude_tags,
  :include_tags,
  :updated_after,
  :created_after,
  :max_document_size_bytes)
  SENSITIVE = []
  include Aws::Structure
end