[][src]Struct rusoto_kendra::CreateDataSourceRequest

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.

tags: Option<Vec<Tag>>

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

impl Clone for CreateDataSourceRequest[src]

impl Debug for CreateDataSourceRequest[src]

impl Default for CreateDataSourceRequest[src]

impl PartialEq<CreateDataSourceRequest> for CreateDataSourceRequest[src]

impl Serialize for CreateDataSourceRequest[src]

impl StructuralPartialEq for CreateDataSourceRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.