Struct rusoto_kendra::GoogleDriveConfiguration
source · [−]pub struct GoogleDriveConfiguration {
pub exclude_mime_types: Option<Vec<String>>,
pub exclude_shared_drives: Option<Vec<String>>,
pub exclude_user_accounts: Option<Vec<String>>,
pub exclusion_patterns: Option<Vec<String>>,
pub field_mappings: Option<Vec<DataSourceToIndexFieldMapping>>,
pub inclusion_patterns: Option<Vec<String>>,
pub secret_arn: String,
}
Expand description
Provides configuration information for data sources that connect to Google Drive.
Fields
exclude_mime_types: Option<Vec<String>>
A list of MIME types to exclude from the index. All documents matching the specified MIME type are excluded.
For a list of MIME types, see Using a Google Workspace Drive data source.
A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.
exclude_user_accounts: Option<Vec<String>>
A list of email addresses of the users. Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.
exclusion_patterns: Option<Vec<String>>
A list of regular expression patterns that apply to the path on Google Drive. Items that match the pattern are excluded from the index from both shared drives and users' My Drives. Items that don't match the pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern, it is excluded from the index.
field_mappings: Option<Vec<DataSourceToIndexFieldMapping>>
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
If you are using the console, you can define index fields when creating the mapping. If you are using the API, you must first create the field using the UpdateIndex
operation.
inclusion_patterns: Option<Vec<String>>
A list of regular expression patterns that apply to path on Google Drive. Items that match the pattern are included in the index from both shared drives and users' My Drives. Items that don't match the pattern are excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is excluded from the index.
secret_arn: String
The Amazon Resource Name (ARN) of a AWS Secrets Manager secret that contains the credentials required to connect to Google Drive. For more information, see Using a Google Workspace Drive data source.
Trait Implementations
sourceimpl Clone for GoogleDriveConfiguration
impl Clone for GoogleDriveConfiguration
sourcefn clone(&self) -> GoogleDriveConfiguration
fn clone(&self) -> GoogleDriveConfiguration
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 GoogleDriveConfiguration
impl Debug for GoogleDriveConfiguration
sourceimpl Default for GoogleDriveConfiguration
impl Default for GoogleDriveConfiguration
sourcefn default() -> GoogleDriveConfiguration
fn default() -> GoogleDriveConfiguration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GoogleDriveConfiguration
impl<'de> Deserialize<'de> for GoogleDriveConfiguration
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<GoogleDriveConfiguration> for GoogleDriveConfiguration
impl PartialEq<GoogleDriveConfiguration> for GoogleDriveConfiguration
sourcefn eq(&self, other: &GoogleDriveConfiguration) -> bool
fn eq(&self, other: &GoogleDriveConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GoogleDriveConfiguration) -> bool
fn ne(&self, other: &GoogleDriveConfiguration) -> bool
This method tests for !=
.
sourceimpl Serialize for GoogleDriveConfiguration
impl Serialize for GoogleDriveConfiguration
impl StructuralPartialEq for GoogleDriveConfiguration
Auto Trait Implementations
impl RefUnwindSafe for GoogleDriveConfiguration
impl Send for GoogleDriveConfiguration
impl Sync for GoogleDriveConfiguration
impl Unpin for GoogleDriveConfiguration
impl UnwindSafe for GoogleDriveConfiguration
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