Struct rusoto_kendra::S3DataSourceConfiguration [−][src]
pub struct S3DataSourceConfiguration { pub access_control_list_configuration: Option<AccessControlListConfiguration>, pub bucket_name: String, pub documents_metadata_configuration: Option<DocumentsMetadataConfiguration>, pub exclusion_patterns: Option<Vec<String>>, pub inclusion_patterns: Option<Vec<String>>, pub inclusion_prefixes: Option<Vec<String>>, }
Expand description
Provides configuration information for a data source to index documents in an Amazon S3 bucket.
Fields
access_control_list_configuration: Option<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.
bucket_name: String
The name of the bucket that contains the documents.
documents_metadata_configuration: Option<DocumentsMetadataConfiguration>
exclusion_patterns: Option<Vec<String>>
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', 'internalonly', 'companyinternal'.
-
/internal* will exclude all internal-related files in a directory and its subdirectories.
inclusion_patterns: Option<Vec<String>>
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'.
inclusion_prefixes: Option<Vec<String>>
A list of S3 prefixes for the documents that should be included in the index.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for S3DataSourceConfiguration
impl Send for S3DataSourceConfiguration
impl Sync for S3DataSourceConfiguration
impl Unpin for S3DataSourceConfiguration
impl UnwindSafe for S3DataSourceConfiguration
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self