Smaws_Client_Kendra.CreateIndex
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.
val request :
Smaws_Lib.Context.t ->
Types.create_index_request ->
(Types.create_index_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ConflictException of Types.conflict_exception
| `InternalServerException of Types.internal_server_exception
| `ResourceAlreadyExistException of Types.resource_already_exist_exception
| `ServiceQuotaExceededException of Types.service_quota_exceeded_exception
| `ThrottlingException of Types.throttling_exception
| `ValidationException of Types.validation_exception ])
Stdlib.result