Struct aws_sdk_kendra::types::S3DataSourceConfiguration  
source · #[non_exhaustive]pub struct S3DataSourceConfiguration {
    pub bucket_name: String,
    pub inclusion_prefixes: Option<Vec<String>>,
    pub inclusion_patterns: Option<Vec<String>>,
    pub exclusion_patterns: Option<Vec<String>>,
    pub documents_metadata_configuration: Option<DocumentsMetadataConfiguration>,
    pub access_control_list_configuration: Option<AccessControlListConfiguration>,
}Expand description
Provides the configuration information to connect to an Amazon S3 bucket.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bucket_name: StringThe name of the bucket that contains the documents.
inclusion_prefixes: Option<Vec<String>>A list of S3 prefixes for the documents that should be included in the index.
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'.
 
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', 'internal_only', 'company_internal'.
 -  
**/*internal* will exclude all internal-related files in a directory and its subdirectories.
 
documents_metadata_configuration: Option<DocumentsMetadataConfiguration>Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document.
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.
Implementations§
source§impl S3DataSourceConfiguration
 
impl S3DataSourceConfiguration
sourcepub fn bucket_name(&self) -> &str
 
pub fn bucket_name(&self) -> &str
The name of the bucket that contains the documents.
sourcepub fn inclusion_prefixes(&self) -> &[String]
 
pub fn inclusion_prefixes(&self) -> &[String]
A list of S3 prefixes for the documents that should be included in the index.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .inclusion_prefixes.is_none().
sourcepub fn inclusion_patterns(&self) -> &[String]
 
pub fn inclusion_patterns(&self) -> &[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'.
 
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .inclusion_patterns.is_none().
sourcepub fn exclusion_patterns(&self) -> &[String]
 
pub fn exclusion_patterns(&self) -> &[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', 'internal_only', 'company_internal'.
 -  
**/*internal* will exclude all internal-related files in a directory and its subdirectories.
 
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .exclusion_patterns.is_none().
sourcepub fn documents_metadata_configuration(
    &self
) -> Option<&DocumentsMetadataConfiguration>
 
pub fn documents_metadata_configuration( &self ) -> Option<&DocumentsMetadataConfiguration>
Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document.
sourcepub fn access_control_list_configuration(
    &self
) -> Option<&AccessControlListConfiguration>
 
pub fn access_control_list_configuration( &self ) -> 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.
source§impl S3DataSourceConfiguration
 
impl S3DataSourceConfiguration
sourcepub fn builder() -> S3DataSourceConfigurationBuilder
 
pub fn builder() -> S3DataSourceConfigurationBuilder
Creates a new builder-style object to manufacture S3DataSourceConfiguration.
Trait Implementations§
source§impl Clone for S3DataSourceConfiguration
 
impl Clone for S3DataSourceConfiguration
source§fn clone(&self) -> S3DataSourceConfiguration
 
fn clone(&self) -> S3DataSourceConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for S3DataSourceConfiguration
 
impl Debug for S3DataSourceConfiguration
source§impl PartialEq for S3DataSourceConfiguration
 
impl PartialEq for S3DataSourceConfiguration
source§fn eq(&self, other: &S3DataSourceConfiguration) -> bool
 
fn eq(&self, other: &S3DataSourceConfiguration) -> bool
self and other values to be equal, and is used
by ==.