Skip to content

Commit c08ef19

Browse files
Features: add Index APIs in OpenSearchServerless to support managed semantic enrichment
1 parent 4f17f5e commit c08ef19

31 files changed

+3155
-18
lines changed

generator/ServiceModels/opensearchserverless/opensearchserverless-2021-11-01.api.json

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,22 @@
100100
],
101101
"idempotent":true
102102
},
103+
"CreateIndex":{
104+
"name":"CreateIndex",
105+
"http":{
106+
"method":"POST",
107+
"requestUri":"/"
108+
},
109+
"input":{"shape":"CreateIndexRequest"},
110+
"output":{"shape":"CreateIndexResponse"},
111+
"errors":[
112+
{"shape":"InternalServerException"},
113+
{"shape":"ResourceNotFoundException"},
114+
{"shape":"ConflictException"},
115+
{"shape":"ValidationException"}
116+
],
117+
"idempotent":true
118+
},
103119
"CreateLifecyclePolicy":{
104120
"name":"CreateLifecyclePolicy",
105121
"http":{
@@ -196,6 +212,21 @@
196212
],
197213
"idempotent":true
198214
},
215+
"DeleteIndex":{
216+
"name":"DeleteIndex",
217+
"http":{
218+
"method":"POST",
219+
"requestUri":"/"
220+
},
221+
"input":{"shape":"DeleteIndexRequest"},
222+
"output":{"shape":"DeleteIndexResponse"},
223+
"errors":[
224+
{"shape":"InternalServerException"},
225+
{"shape":"ResourceNotFoundException"},
226+
{"shape":"ValidationException"}
227+
],
228+
"idempotent":true
229+
},
199230
"DeleteLifecyclePolicy":{
200231
"name":"DeleteLifecyclePolicy",
201232
"http":{
@@ -287,6 +318,20 @@
287318
{"shape":"ValidationException"}
288319
]
289320
},
321+
"GetIndex":{
322+
"name":"GetIndex",
323+
"http":{
324+
"method":"POST",
325+
"requestUri":"/"
326+
},
327+
"input":{"shape":"GetIndexRequest"},
328+
"output":{"shape":"GetIndexResponse"},
329+
"errors":[
330+
{"shape":"InternalServerException"},
331+
{"shape":"ResourceNotFoundException"},
332+
{"shape":"ValidationException"}
333+
]
334+
},
290335
"GetPoliciesStats":{
291336
"name":"GetPoliciesStats",
292337
"http":{
@@ -494,6 +539,21 @@
494539
],
495540
"idempotent":true
496541
},
542+
"UpdateIndex":{
543+
"name":"UpdateIndex",
544+
"http":{
545+
"method":"POST",
546+
"requestUri":"/"
547+
},
548+
"input":{"shape":"UpdateIndexRequest"},
549+
"output":{"shape":"UpdateIndexResponse"},
550+
"errors":[
551+
{"shape":"InternalServerException"},
552+
{"shape":"ResourceNotFoundException"},
553+
{"shape":"ValidationException"}
554+
],
555+
"idempotent":true
556+
},
497557
"UpdateLifecyclePolicy":{
498558
"name":"UpdateLifecyclePolicy",
499559
"http":{
@@ -870,6 +930,23 @@
870930
"groupAttribute":{"shape":"IamIdentityCenterGroupAttribute"}
871931
}
872932
},
933+
"CreateIndexRequest":{
934+
"type":"structure",
935+
"required":[
936+
"id",
937+
"indexName"
938+
],
939+
"members":{
940+
"id":{"shape":"CollectionId"},
941+
"indexName":{"shape":"IndexName"},
942+
"indexSchema":{"shape":"IndexSchema"}
943+
}
944+
},
945+
"CreateIndexResponse":{
946+
"type":"structure",
947+
"members":{
948+
}
949+
},
873950
"CreateLifecyclePolicyRequest":{
874951
"type":"structure",
875952
"required":[
@@ -1020,6 +1097,22 @@
10201097
"deleteCollectionDetail":{"shape":"DeleteCollectionDetail"}
10211098
}
10221099
},
1100+
"DeleteIndexRequest":{
1101+
"type":"structure",
1102+
"required":[
1103+
"id",
1104+
"indexName"
1105+
],
1106+
"members":{
1107+
"id":{"shape":"CollectionId"},
1108+
"indexName":{"shape":"IndexName"}
1109+
}
1110+
},
1111+
"DeleteIndexResponse":{
1112+
"type":"structure",
1113+
"members":{
1114+
}
1115+
},
10231116
"DeleteLifecyclePolicyRequest":{
10241117
"type":"structure",
10251118
"required":[
@@ -1163,6 +1256,23 @@
11631256
"accountSettingsDetail":{"shape":"AccountSettingsDetail"}
11641257
}
11651258
},
1259+
"GetIndexRequest":{
1260+
"type":"structure",
1261+
"required":[
1262+
"id",
1263+
"indexName"
1264+
],
1265+
"members":{
1266+
"id":{"shape":"CollectionId"},
1267+
"indexName":{"shape":"IndexName"}
1268+
}
1269+
},
1270+
"GetIndexResponse":{
1271+
"type":"structure",
1272+
"members":{
1273+
"indexSchema":{"shape":"IndexSchema"}
1274+
}
1275+
},
11661276
"GetPoliciesStatsRequest":{
11671277
"type":"structure",
11681278
"members":{
@@ -1253,6 +1363,13 @@
12531363
"Email"
12541364
]
12551365
},
1366+
"IndexName":{"type":"string"},
1367+
"IndexSchema":{
1368+
"type":"structure",
1369+
"members":{
1370+
},
1371+
"document":true
1372+
},
12561373
"IndexingCapacityValue":{
12571374
"type":"integer",
12581375
"box":true,
@@ -1873,6 +1990,23 @@
18731990
"groupAttribute":{"shape":"IamIdentityCenterGroupAttribute"}
18741991
}
18751992
},
1993+
"UpdateIndexRequest":{
1994+
"type":"structure",
1995+
"required":[
1996+
"id",
1997+
"indexName"
1998+
],
1999+
"members":{
2000+
"id":{"shape":"CollectionId"},
2001+
"indexName":{"shape":"IndexName"},
2002+
"indexSchema":{"shape":"IndexSchema"}
2003+
}
2004+
},
2005+
"UpdateIndexResponse":{
2006+
"type":"structure",
2007+
"members":{
2008+
}
2009+
},
18762010
"UpdateLifecyclePolicyRequest":{
18772011
"type":"structure",
18782012
"required":[

0 commit comments

Comments
 (0)