Struct rusoto_kendra::S3DataSourceConfiguration
source · [−]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
sourceimpl Clone for S3DataSourceConfiguration
impl Clone for S3DataSourceConfiguration
sourcefn clone(&self) -> S3DataSourceConfiguration
fn clone(&self) -> S3DataSourceConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for S3DataSourceConfiguration
impl Debug for S3DataSourceConfiguration
sourceimpl Default for S3DataSourceConfiguration
impl Default for S3DataSourceConfiguration
sourcefn default() -> S3DataSourceConfiguration
fn default() -> S3DataSourceConfiguration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for S3DataSourceConfiguration
impl<'de> Deserialize<'de> for S3DataSourceConfiguration
sourcefn 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
sourceimpl PartialEq<S3DataSourceConfiguration> for S3DataSourceConfiguration
impl PartialEq<S3DataSourceConfiguration> for S3DataSourceConfiguration
sourcefn eq(&self, other: &S3DataSourceConfiguration) -> bool
fn eq(&self, other: &S3DataSourceConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &S3DataSourceConfiguration) -> bool
fn ne(&self, other: &S3DataSourceConfiguration) -> bool
This method tests for !=
.
sourceimpl Serialize for S3DataSourceConfiguration
impl Serialize for S3DataSourceConfiguration
impl StructuralPartialEq for S3DataSourceConfiguration
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more