UpdateIndex
Source:
src/AWS/OpenSearchServerless/UpdateIndex.ts
Runtime binding for the UpdateIndex operation scoped to one collection
(IAM action aoss:APIAccessAll on the collection ARN).
Updates an index’s schema in the bound Collection — add new fields
or change field mappings at runtime. The calling principal must also be
granted aoss:UpdateIndex on the index pattern by a data
AccessPolicy. Provide the implementation with
Effect.provide(AWS.OpenSearchServerless.UpdateIndexHttp).
Managing Indexes at Runtime
Section titled “Managing Indexes at Runtime”const updateIndex = yield* AWS.OpenSearchServerless.UpdateIndex(collection);
yield* updateIndex({ indexName: "tenant-42", indexSchema: { mappings: { properties: { title: { type: "text" } } }, },});