amazonka-kendra-2.0: Amazon KendraFrontendService SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Kendra.Types.S3DataSourceConfiguration

Description

 
Synopsis

Documentation

data S3DataSourceConfiguration Source #

Provides the configuration information to connect to an Amazon S3 bucket.

See: newS3DataSourceConfiguration smart constructor.

Constructors

S3DataSourceConfiguration' 

Fields

  • accessControlListConfiguration :: Maybe AccessControlListConfiguration

    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.

  • documentsMetadataConfiguration :: Maybe DocumentsMetadataConfiguration
     
  • exclusionPatterns :: Maybe [Text]

    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 :: Maybe [Text]

    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 :: Maybe [Text]

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

  • bucketName :: Text

    The name of the bucket that contains the documents.

Instances

Instances details
FromJSON S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

ToJSON S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

Generic S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

Associated Types

type Rep S3DataSourceConfiguration :: Type -> Type #

Read S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

Show S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

NFData S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

Eq S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

Hashable S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

type Rep S3DataSourceConfiguration Source # 
Instance details

Defined in Amazonka.Kendra.Types.S3DataSourceConfiguration

type Rep S3DataSourceConfiguration = D1 ('MetaData "S3DataSourceConfiguration" "Amazonka.Kendra.Types.S3DataSourceConfiguration" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "S3DataSourceConfiguration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accessControlListConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccessControlListConfiguration)) :*: (S1 ('MetaSel ('Just "documentsMetadataConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DocumentsMetadataConfiguration)) :*: S1 ('MetaSel ('Just "exclusionPatterns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "inclusionPatterns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "inclusionPrefixes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "bucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newS3DataSourceConfiguration Source #

Create a value of S3DataSourceConfiguration with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:accessControlListConfiguration:S3DataSourceConfiguration', s3DataSourceConfiguration_accessControlListConfiguration - 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.

$sel:documentsMetadataConfiguration:S3DataSourceConfiguration', s3DataSourceConfiguration_documentsMetadataConfiguration - Undocumented member.

$sel:exclusionPatterns:S3DataSourceConfiguration', s3DataSourceConfiguration_exclusionPatterns - 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.

$sel:inclusionPatterns:S3DataSourceConfiguration', s3DataSourceConfiguration_inclusionPatterns - 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'.

$sel:inclusionPrefixes:S3DataSourceConfiguration', s3DataSourceConfiguration_inclusionPrefixes - A list of S3 prefixes for the documents that should be included in the index.

$sel:bucketName:S3DataSourceConfiguration', s3DataSourceConfiguration_bucketName - The name of the bucket that contains the documents.

s3DataSourceConfiguration_accessControlListConfiguration :: Lens' S3DataSourceConfiguration (Maybe AccessControlListConfiguration) Source #

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.

s3DataSourceConfiguration_exclusionPatterns :: Lens' S3DataSourceConfiguration (Maybe [Text]) Source #

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.

s3DataSourceConfiguration_inclusionPatterns :: Lens' S3DataSourceConfiguration (Maybe [Text]) Source #

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

s3DataSourceConfiguration_inclusionPrefixes :: Lens' S3DataSourceConfiguration (Maybe [Text]) Source #

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

s3DataSourceConfiguration_bucketName :: Lens' S3DataSourceConfiguration Text Source #

The name of the bucket that contains the documents.