#[non_exhaustive]pub struct DataSourceConfiguration {Show 18 fields
pub s3_configuration: Option<S3DataSourceConfiguration>,
pub share_point_configuration: Option<SharePointConfiguration>,
pub database_configuration: Option<DatabaseConfiguration>,
pub salesforce_configuration: Option<SalesforceConfiguration>,
pub one_drive_configuration: Option<OneDriveConfiguration>,
pub service_now_configuration: Option<ServiceNowConfiguration>,
pub confluence_configuration: Option<ConfluenceConfiguration>,
pub google_drive_configuration: Option<GoogleDriveConfiguration>,
pub web_crawler_configuration: Option<WebCrawlerConfiguration>,
pub work_docs_configuration: Option<WorkDocsConfiguration>,
pub fsx_configuration: Option<FsxConfiguration>,
pub slack_configuration: Option<SlackConfiguration>,
pub box_configuration: Option<BoxConfiguration>,
pub quip_configuration: Option<QuipConfiguration>,
pub jira_configuration: Option<JiraConfiguration>,
pub git_hub_configuration: Option<GitHubConfiguration>,
pub alfresco_configuration: Option<AlfrescoConfiguration>,
pub template_configuration: Option<TemplateConfiguration>,
}
Expand description
Provides the configuration information for an Amazon Kendra data source.
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.s3_configuration: Option<S3DataSourceConfiguration>
Provides the configuration information to connect to an Amazon S3 bucket as your data source.
Amazon Kendra now supports an upgraded Amazon S3 connector.
You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
Provides the configuration information to connect to Microsoft SharePoint as your data source.
database_configuration: Option<DatabaseConfiguration>
Provides the configuration information to connect to a database as your data source.
salesforce_configuration: Option<SalesforceConfiguration>
Provides the configuration information to connect to Salesforce as your data source.
one_drive_configuration: Option<OneDriveConfiguration>
Provides the configuration information to connect to Microsoft OneDrive as your data source.
service_now_configuration: Option<ServiceNowConfiguration>
Provides the configuration information to connect to ServiceNow as your data source.
confluence_configuration: Option<ConfluenceConfiguration>
Provides the configuration information to connect to Confluence as your data source.
google_drive_configuration: Option<GoogleDriveConfiguration>
Provides the configuration information to connect to Google Drive as your data source.
web_crawler_configuration: Option<WebCrawlerConfiguration>
Provides the configuration information required for Amazon Kendra Web Crawler.
work_docs_configuration: Option<WorkDocsConfiguration>
Provides the configuration information to connect to Amazon WorkDocs as your data source.
fsx_configuration: Option<FsxConfiguration>
Provides the configuration information to connect to Amazon FSx as your data source.
Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
slack_configuration: Option<SlackConfiguration>
Provides the configuration information to connect to Slack as your data source.
Amazon Kendra now supports an upgraded Slack connector.
You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
box_configuration: Option<BoxConfiguration>
Provides the configuration information to connect to Box as your data source.
quip_configuration: Option<QuipConfiguration>
Provides the configuration information to connect to Quip as your data source.
jira_configuration: Option<JiraConfiguration>
Provides the configuration information to connect to Jira as your data source.
git_hub_configuration: Option<GitHubConfiguration>
Provides the configuration information to connect to GitHub as your data source.
Amazon Kendra now supports an upgraded GitHub connector.
You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won’t be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
alfresco_configuration: Option<AlfrescoConfiguration>
Provides the configuration information to connect to Alfresco as your data source.
Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the Alfresco data source template schema / TemplateConfiguration API.
template_configuration: Option<TemplateConfiguration>
Provides a template for the configuration information to connect to your data source.
Implementations§
Source§impl DataSourceConfiguration
impl DataSourceConfiguration
Sourcepub fn s3_configuration(&self) -> Option<&S3DataSourceConfiguration>
pub fn s3_configuration(&self) -> Option<&S3DataSourceConfiguration>
Provides the configuration information to connect to an Amazon S3 bucket as your data source.
Amazon Kendra now supports an upgraded Amazon S3 connector.
You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
Provides the configuration information to connect to Microsoft SharePoint as your data source.
Sourcepub fn database_configuration(&self) -> Option<&DatabaseConfiguration>
pub fn database_configuration(&self) -> Option<&DatabaseConfiguration>
Provides the configuration information to connect to a database as your data source.
Sourcepub fn salesforce_configuration(&self) -> Option<&SalesforceConfiguration>
pub fn salesforce_configuration(&self) -> Option<&SalesforceConfiguration>
Provides the configuration information to connect to Salesforce as your data source.
Sourcepub fn one_drive_configuration(&self) -> Option<&OneDriveConfiguration>
pub fn one_drive_configuration(&self) -> Option<&OneDriveConfiguration>
Provides the configuration information to connect to Microsoft OneDrive as your data source.
Sourcepub fn service_now_configuration(&self) -> Option<&ServiceNowConfiguration>
pub fn service_now_configuration(&self) -> Option<&ServiceNowConfiguration>
Provides the configuration information to connect to ServiceNow as your data source.
Sourcepub fn confluence_configuration(&self) -> Option<&ConfluenceConfiguration>
pub fn confluence_configuration(&self) -> Option<&ConfluenceConfiguration>
Provides the configuration information to connect to Confluence as your data source.
Sourcepub fn google_drive_configuration(&self) -> Option<&GoogleDriveConfiguration>
pub fn google_drive_configuration(&self) -> Option<&GoogleDriveConfiguration>
Provides the configuration information to connect to Google Drive as your data source.
Sourcepub fn web_crawler_configuration(&self) -> Option<&WebCrawlerConfiguration>
pub fn web_crawler_configuration(&self) -> Option<&WebCrawlerConfiguration>
Provides the configuration information required for Amazon Kendra Web Crawler.
Sourcepub fn work_docs_configuration(&self) -> Option<&WorkDocsConfiguration>
pub fn work_docs_configuration(&self) -> Option<&WorkDocsConfiguration>
Provides the configuration information to connect to Amazon WorkDocs as your data source.
Sourcepub fn fsx_configuration(&self) -> Option<&FsxConfiguration>
pub fn fsx_configuration(&self) -> Option<&FsxConfiguration>
Provides the configuration information to connect to Amazon FSx as your data source.
Amazon Kendra now supports an upgraded Amazon FSx Windows connector.
You must now use the TemplateConfiguration object instead of the FsxConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
Sourcepub fn slack_configuration(&self) -> Option<&SlackConfiguration>
pub fn slack_configuration(&self) -> Option<&SlackConfiguration>
Provides the configuration information to connect to Slack as your data source.
Amazon Kendra now supports an upgraded Slack connector.
You must now use the TemplateConfiguration object instead of the SlackConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
Sourcepub fn box_configuration(&self) -> Option<&BoxConfiguration>
pub fn box_configuration(&self) -> Option<&BoxConfiguration>
Provides the configuration information to connect to Box as your data source.
Sourcepub fn quip_configuration(&self) -> Option<&QuipConfiguration>
pub fn quip_configuration(&self) -> Option<&QuipConfiguration>
Provides the configuration information to connect to Quip as your data source.
Sourcepub fn jira_configuration(&self) -> Option<&JiraConfiguration>
pub fn jira_configuration(&self) -> Option<&JiraConfiguration>
Provides the configuration information to connect to Jira as your data source.
Sourcepub fn git_hub_configuration(&self) -> Option<&GitHubConfiguration>
pub fn git_hub_configuration(&self) -> Option<&GitHubConfiguration>
Provides the configuration information to connect to GitHub as your data source.
Amazon Kendra now supports an upgraded GitHub connector.
You must now use the TemplateConfiguration object instead of the GitHubConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won’t be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
Sourcepub fn alfresco_configuration(&self) -> Option<&AlfrescoConfiguration>
👎Deprecated: Deprecated AlfrescoConfiguration in favor of TemplateConfiguration
pub fn alfresco_configuration(&self) -> Option<&AlfrescoConfiguration>
Provides the configuration information to connect to Alfresco as your data source.
Support for AlfrescoConfiguration
ended May 2023. We recommend migrating to or using the Alfresco data source template schema / TemplateConfiguration API.
Sourcepub fn template_configuration(&self) -> Option<&TemplateConfiguration>
pub fn template_configuration(&self) -> Option<&TemplateConfiguration>
Provides a template for the configuration information to connect to your data source.
Source§impl DataSourceConfiguration
impl DataSourceConfiguration
Sourcepub fn builder() -> DataSourceConfigurationBuilder
pub fn builder() -> DataSourceConfigurationBuilder
Creates a new builder-style object to manufacture DataSourceConfiguration
.
Trait Implementations§
Source§impl Clone for DataSourceConfiguration
impl Clone for DataSourceConfiguration
Source§fn clone(&self) -> DataSourceConfiguration
fn clone(&self) -> DataSourceConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DataSourceConfiguration
impl Debug for DataSourceConfiguration
Source§impl PartialEq for DataSourceConfiguration
impl PartialEq for DataSourceConfiguration
impl StructuralPartialEq for DataSourceConfiguration
Auto Trait Implementations§
impl Freeze for DataSourceConfiguration
impl RefUnwindSafe for DataSourceConfiguration
impl Send for DataSourceConfiguration
impl Sync for DataSourceConfiguration
impl Unpin for DataSourceConfiguration
impl UnwindSafe for DataSourceConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);