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.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.