Struct rusoto_kendra::CreateDataSourceRequest [−][src]
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
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self