Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

S3DataSourceConfiguration

import type { S3DataSourceConfiguration } from "https://aws-api.deno.dev/v0.3/services/kendra.ts?docs=full";

Provides configuration information for a data source to index documents in an Amazon S3 bucket.

interface S3DataSourceConfiguration {
AccessControlListConfiguration?: AccessControlListConfiguration | null;
BucketName: string;
DocumentsMetadataConfiguration?: DocumentsMetadataConfiguration | null;
ExclusionPatterns?: string[] | null;
InclusionPatterns?: string[] | null;
InclusionPrefixes?: string[] | null;
}

§Properties

§
AccessControlListConfiguration?: AccessControlListConfiguration | null
[src]

Provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources.

§
BucketName: string
[src]

The name of the bucket that contains the documents.

§
DocumentsMetadataConfiguration?: DocumentsMetadataConfiguration | null
[src]
§
ExclusionPatterns?: string[] | null
[src]

A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed.

Some examples are:

  • *.png , *.jpg will exclude all PNG and JPEG image files in a directory (files with the extensions .png and .jpg).
  • _

    internal_ will exclude all files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.

  • **/internal will exclude all internal-related files in a directory and its subdirectories.
§
InclusionPatterns?: string[] | null
[src]

A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed.

Some examples are:

  • *.txt will include all text files in a directory (files with the extension .txt).
  • **/*.txt will include all text files in a directory and its subdirectories.
  • _

    tax_ will include all files in a directory that contain 'tax' in the file name, such as 'tax', 'taxes', 'income_tax'.

§
InclusionPrefixes?: string[] | null
[src]

A list of S3 prefixes for the documents that should be included in the index.