public static interface CreateDataSourceRequest.Builder extends KendraRequest.Builder, SdkPojo, CopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateDataSourceRequest.Builder |
clientToken(String clientToken)
A token that you provide to identify the request to create a data source.
|
default CreateDataSourceRequest.Builder |
configuration(Consumer<DataSourceConfiguration.Builder> configuration)
The connector configuration information that is required to access the repository.
|
CreateDataSourceRequest.Builder |
configuration(DataSourceConfiguration configuration)
The connector configuration information that is required to access the repository.
|
CreateDataSourceRequest.Builder |
description(String description)
A description for the data source.
|
CreateDataSourceRequest.Builder |
indexId(String indexId)
The identifier of the index that should be associated with this data source.
|
CreateDataSourceRequest.Builder |
name(String name)
A unique name for the data source.
|
CreateDataSourceRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateDataSourceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateDataSourceRequest.Builder |
roleArn(String roleArn)
The Amazon Resource Name (ARN) of a role with permission to access the data source.
|
CreateDataSourceRequest.Builder |
schedule(String schedule)
Sets the frequency that Amazon Kendra will check the documents in your repository and update the index.
|
CreateDataSourceRequest.Builder |
tags(Collection<Tag> tags)
A list of key-value pairs that identify the data source.
|
CreateDataSourceRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of key-value pairs that identify the data source.
|
CreateDataSourceRequest.Builder |
tags(Tag... tags)
A list of key-value pairs that identify the data source.
|
CreateDataSourceRequest.Builder |
type(DataSourceType type)
The type of repository that contains the data source.
|
CreateDataSourceRequest.Builder |
type(String type)
The type of repository that contains the data source.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateDataSourceRequest.Builder name(String name)
A unique name for the data source. A data source name can't be changed without deleting and recreating the data source.
name - A unique name for the data source. A data source name can't be changed without deleting and recreating
the data source.CreateDataSourceRequest.Builder indexId(String indexId)
The identifier of the index that should be associated with this data source.
indexId - The identifier of the index that should be associated with this data source.CreateDataSourceRequest.Builder type(String type)
The type of repository that contains the data source.
type - The type of repository that contains the data source.DataSourceType,
DataSourceTypeCreateDataSourceRequest.Builder type(DataSourceType type)
The type of repository that contains the data source.
type - The type of repository that contains the data source.DataSourceType,
DataSourceTypeCreateDataSourceRequest.Builder configuration(DataSourceConfiguration configuration)
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.
configuration - 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.
default CreateDataSourceRequest.Builder configuration(Consumer<DataSourceConfiguration.Builder> configuration)
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.
DataSourceConfiguration.Builder avoiding the
need to create one manually via DataSourceConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to configuration(DataSourceConfiguration).configuration - a consumer that will call methods on DataSourceConfiguration.Builderconfiguration(DataSourceConfiguration)CreateDataSourceRequest.Builder description(String description)
A description for the data source.
description - A description for the data source.CreateDataSourceRequest.Builder schedule(String schedule)
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.
schedule - 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.
CreateDataSourceRequest.Builder roleArn(String roleArn)
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.
roleArn - 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.
CreateDataSourceRequest.Builder tags(Collection<Tag> tags)
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.
tags - 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.CreateDataSourceRequest.Builder tags(Tag... tags)
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.
tags - 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.CreateDataSourceRequest.Builder tags(Consumer<Tag.Builder>... tags)
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.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #tags(List) .tags - a consumer that will call methods on List.Builder #tags(List) CreateDataSourceRequest.Builder clientToken(String clientToken)
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.
clientToken - 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.CreateDataSourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateDataSourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.