Smaws_Client_Kendra.CreateIndex
val request :
Smaws_Lib.Context.t ->
create_index_request ->
(create_index_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of access_denied_exception
| `ConflictException of conflict_exception
| `InternalServerException of internal_server_exception
| `ResourceAlreadyExistException of resource_already_exist_exception
| `ServiceQuotaExceededException of service_quota_exceeded_exception
| `ThrottlingException of throttling_exception
| `ValidationException of validation_exception ])
Stdlib.result
Creates an Amazon Kendra index. Index creation is an asynchronous API. To determine if index creation has completed, check the Status
field returned from a call to DescribeIndex
. The Status
field is set to ACTIVE
when the index is ready to use.
Once the index is active, you can index your documents using the BatchPutDocument
API or using one of the supported data sources.
For an example of creating an index and data source using the Python SDK, see Getting started with Python SDK. For an example of creating an index and data source using the Java SDK, see Getting started with Java SDK.