Struct rusoto_kendra::CreateDataSourceRequest
source · [−]pub struct CreateDataSourceRequest {
pub client_token: Option<String>,
pub configuration: Option<DataSourceConfiguration>,
pub description: Option<String>,
pub index_id: String,
pub name: String,
pub role_arn: Option<String>,
pub schedule: Option<String>,
pub tags: Option<Vec<Tag>>,
pub type_: String,
}
Fields
client_token: Option<String>
A token that you provide to identify the request to create a data source. Multiple calls to the CreateDataSource
operation with the same client token will create only one data source.
configuration: Option<DataSourceConfiguration>
The connector configuration information that is required to access the repository.
You can't specify the Configuration
parameter when the Type
parameter is set to CUSTOM
. If you do, you receive a ValidationException
exception.
The Configuration
parameter is required for all other data sources.
description: Option<String>
A description for the data source.
index_id: String
The identifier of the index that should be associated with this data source.
name: String
A unique name for the data source. A data source name can't be changed without deleting and recreating the data source.
role_arn: Option<String>
The Amazon Resource Name (ARN) of a role with permission to access the data source. For more information, see IAM Roles for Amazon Kendra.
You can't specify the RoleArn
parameter when the Type
parameter is set to CUSTOM
. If you do, you receive a ValidationException
exception.
The RoleArn
parameter is required for all other data sources.
schedule: Option<String>
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the StartDataSourceSyncJob
operation to update the index.
You can't specify the Schedule
parameter when the Type
parameter is set to CUSTOM
. If you do, you receive a ValidationException
exception.
A list of key-value pairs that identify the data source. You can use the tags to identify and organize your resources and to control access to resources.
type_: String
The type of repository that contains the data source.
Trait Implementations
sourceimpl Clone for CreateDataSourceRequest
impl Clone for CreateDataSourceRequest
sourcefn clone(&self) -> CreateDataSourceRequest
fn clone(&self) -> CreateDataSourceRequest
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 CreateDataSourceRequest
impl Debug for CreateDataSourceRequest
sourceimpl Default for CreateDataSourceRequest
impl Default for CreateDataSourceRequest
sourcefn default() -> CreateDataSourceRequest
fn default() -> CreateDataSourceRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateDataSourceRequest> for CreateDataSourceRequest
impl PartialEq<CreateDataSourceRequest> for CreateDataSourceRequest
sourcefn eq(&self, other: &CreateDataSourceRequest) -> bool
fn eq(&self, other: &CreateDataSourceRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateDataSourceRequest) -> bool
fn ne(&self, other: &CreateDataSourceRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for CreateDataSourceRequest
impl Serialize for CreateDataSourceRequest
impl StructuralPartialEq for CreateDataSourceRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateDataSourceRequest
impl Send for CreateDataSourceRequest
impl Sync for CreateDataSourceRequest
impl Unpin for CreateDataSourceRequest
impl UnwindSafe for CreateDataSourceRequest
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