aws-sdk-opensearchserverless 1.42.0 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b6b43bb1715f94dd577550e5c04af1f3be8ca7e5d93de5c98c4215d7a4fcdb8
4
- data.tar.gz: b3ccf0f1e710d01f6eee664b21ddedbfd75089001e5e292aa5b46eebdb5447c0
3
+ metadata.gz: 5599f228d06cc141165a4de2c98a9f3b4a915fc607ed8da96a6113a6e85f9d20
4
+ data.tar.gz: '059c74262d15c841309547fda086f2e628140d716f7a95197ae17c0bb431e896'
5
5
  SHA512:
6
- metadata.gz: adf4e6589c2f27af99fb1371ce10d34e80fc8af41a347a563a25526db1437bc7edac83aa4699d6261daee03b9de682248e3efae15f87074289f9ef48dee9427c
7
- data.tar.gz: 9019e4bbd6df3fbf35b153012c0aedaad9ecdb03d64e4cd3ae44cebe7f18ddd2e050fea94503177442451b5540f44e1eafc9d92e207e388e8d9904864c9e7b00
6
+ metadata.gz: 45c098778c410f7b3c67e4415316e98a3598fbf36a3f6c150942a06f3e8e09d535912e929486c0b637c211ea8e86f3c626b8b0833751ab35401f5db97a28ce52
7
+ data.tar.gz: 9f66adf3dfbab59524c55a11f5ef57630fbae1d4b8a5fe7b9db282cb6ea0096baa052bc2a231a38c8170b36c361b7be66d8bc24b81e4587a9f4743e52e425247
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2025-08-06)
5
+ ------------------
6
+
7
+ * Feature - Features: add Index APIs in OpenSearchServerless to support managed semantic enrichment
8
+
4
9
  1.42.0 (2025-08-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.43.0
@@ -836,6 +836,52 @@ module Aws::OpenSearchServerless
836
836
  req.send_request(options)
837
837
  end
838
838
 
839
+ # Creates an index within an OpenSearch Serverless collection. Unlike
840
+ # other OpenSearch indexes, indexes created by this API are
841
+ # automatically configured to conduct automatic semantic enrichment
842
+ # ingestion and search. For more information, see [About automatic
843
+ # semantic enrichment][1] in the *OpenSearch User Guide*.
844
+ #
845
+ #
846
+ #
847
+ # [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html#serverless-semantic-enrichment
848
+ #
849
+ # @option params [required, String] :id
850
+ # The unique identifier of the collection in which to create the index.
851
+ #
852
+ # @option params [required, String] :index_name
853
+ # The name of the index to create. Index names must be lowercase and
854
+ # can't begin with underscores (\_) or hyphens (-).
855
+ #
856
+ # @option params [Hash,Array,String,Numeric,Boolean] :index_schema
857
+ # The JSON schema definition for the index, including field mappings and
858
+ # settings.
859
+ #
860
+ # Document type used to carry open content
861
+ # (Hash,Array,String,Numeric,Boolean). A document type value is
862
+ # serialized using the same format as its surroundings and requires no
863
+ # additional encoding or escaping.
864
+ #
865
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
866
+ #
867
+ # @example Request syntax with placeholder values
868
+ #
869
+ # resp = client.create_index({
870
+ # id: "CollectionId", # required
871
+ # index_name: "IndexName", # required
872
+ # index_schema: {
873
+ # },
874
+ # })
875
+ #
876
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/CreateIndex AWS API Documentation
877
+ #
878
+ # @overload create_index(params = {})
879
+ # @param [Hash] params ({})
880
+ def create_index(params = {}, options = {})
881
+ req = build_request(:create_index, params)
882
+ req.send_request(options)
883
+ end
884
+
839
885
  # Creates a lifecyle policy to be applied to OpenSearch Serverless
840
886
  # indexes. Lifecycle policies define the number of days or hours to
841
887
  # retain the data on an OpenSearch Serverless index. For more
@@ -1207,6 +1253,40 @@ module Aws::OpenSearchServerless
1207
1253
  req.send_request(options)
1208
1254
  end
1209
1255
 
1256
+ # Deletes an index from an OpenSearch Serverless collection. Be aware
1257
+ # that the index might be configured to conduct automatic semantic
1258
+ # enrichment ingestion and search. For more information, see [About
1259
+ # automatic semantic enrichment][1].
1260
+ #
1261
+ #
1262
+ #
1263
+ # [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html#serverless-semantic-enrichment
1264
+ #
1265
+ # @option params [required, String] :id
1266
+ # The unique identifier of the collection containing the index to
1267
+ # delete.
1268
+ #
1269
+ # @option params [required, String] :index_name
1270
+ # The name of the index to delete.
1271
+ #
1272
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1273
+ #
1274
+ # @example Request syntax with placeholder values
1275
+ #
1276
+ # resp = client.delete_index({
1277
+ # id: "CollectionId", # required
1278
+ # index_name: "IndexName", # required
1279
+ # })
1280
+ #
1281
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteIndex AWS API Documentation
1282
+ #
1283
+ # @overload delete_index(params = {})
1284
+ # @param [Hash] params ({})
1285
+ def delete_index(params = {}, options = {})
1286
+ req = build_request(:delete_index, params)
1287
+ req.send_request(options)
1288
+ end
1289
+
1210
1290
  # Deletes an OpenSearch Serverless lifecycle policy. For more
1211
1291
  # information, see [Deleting data lifecycle policies][1].
1212
1292
  #
@@ -1424,6 +1504,46 @@ module Aws::OpenSearchServerless
1424
1504
  req.send_request(options)
1425
1505
  end
1426
1506
 
1507
+ # Retrieves information about an index in an OpenSearch Serverless
1508
+ # collection, including its schema definition. The index might be
1509
+ # configured to conduct automatic semantic enrichment ingestion and
1510
+ # search. For more information, see [About automatic semantic
1511
+ # enrichment][1].
1512
+ #
1513
+ #
1514
+ #
1515
+ # [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html#serverless-semantic-enrichment
1516
+ #
1517
+ # @option params [required, String] :id
1518
+ # The unique identifier of the collection containing the index.
1519
+ #
1520
+ # @option params [required, String] :index_name
1521
+ # The name of the index to retrieve information about.
1522
+ #
1523
+ # @return [Types::GetIndexResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1524
+ #
1525
+ # * {Types::GetIndexResponse#index_schema #index_schema} => Hash,Array,String,Numeric,Boolean
1526
+ #
1527
+ # @example Request syntax with placeholder values
1528
+ #
1529
+ # resp = client.get_index({
1530
+ # id: "CollectionId", # required
1531
+ # index_name: "IndexName", # required
1532
+ # })
1533
+ #
1534
+ # @example Response structure
1535
+ #
1536
+ #
1537
+ #
1538
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/GetIndex AWS API Documentation
1539
+ #
1540
+ # @overload get_index(params = {})
1541
+ # @param [Hash] params ({})
1542
+ def get_index(params = {}, options = {})
1543
+ req = build_request(:get_index, params)
1544
+ req.send_request(options)
1545
+ end
1546
+
1427
1547
  # Returns statistical information about your OpenSearch Serverless
1428
1548
  # access policies, security configurations, and security policies.
1429
1549
  #
@@ -2167,6 +2287,52 @@ module Aws::OpenSearchServerless
2167
2287
  req.send_request(options)
2168
2288
  end
2169
2289
 
2290
+ # Updates an existing index in an OpenSearch Serverless collection. This
2291
+ # operation allows you to modify the index schema, including adding new
2292
+ # fields or changing field mappings. You can also enable automatic
2293
+ # semantic enrichment ingestion and search. For more information, see
2294
+ # [About automatic semantic enrichment][1].
2295
+ #
2296
+ #
2297
+ #
2298
+ # [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html#serverless-semantic-enrichment
2299
+ #
2300
+ # @option params [required, String] :id
2301
+ # The unique identifier of the collection containing the index to
2302
+ # update.
2303
+ #
2304
+ # @option params [required, String] :index_name
2305
+ # The name of the index to update.
2306
+ #
2307
+ # @option params [Hash,Array,String,Numeric,Boolean] :index_schema
2308
+ # The updated JSON schema definition for the index, including field
2309
+ # mappings and settings.
2310
+ #
2311
+ # Document type used to carry open content
2312
+ # (Hash,Array,String,Numeric,Boolean). A document type value is
2313
+ # serialized using the same format as its surroundings and requires no
2314
+ # additional encoding or escaping.
2315
+ #
2316
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2317
+ #
2318
+ # @example Request syntax with placeholder values
2319
+ #
2320
+ # resp = client.update_index({
2321
+ # id: "CollectionId", # required
2322
+ # index_name: "IndexName", # required
2323
+ # index_schema: {
2324
+ # },
2325
+ # })
2326
+ #
2327
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateIndex AWS API Documentation
2328
+ #
2329
+ # @overload update_index(params = {})
2330
+ # @param [Hash] params ({})
2331
+ def update_index(params = {}, options = {})
2332
+ req = build_request(:update_index, params)
2333
+ req.send_request(options)
2334
+ end
2335
+
2170
2336
  # Updates an OpenSearch Serverless access policy. For more information,
2171
2337
  # see [Updating data lifecycle policies][1].
2172
2338
  #
@@ -2479,7 +2645,7 @@ module Aws::OpenSearchServerless
2479
2645
  tracer: tracer
2480
2646
  )
2481
2647
  context[:gem_name] = 'aws-sdk-opensearchserverless'
2482
- context[:gem_version] = '1.42.0'
2648
+ context[:gem_version] = '1.43.0'
2483
2649
  Seahorse::Client::Request.new(handlers, context)
2484
2650
  end
2485
2651
 
@@ -55,6 +55,8 @@ module Aws::OpenSearchServerless
55
55
  CreateCollectionRequestDescriptionString = Shapes::StringShape.new(name: 'CreateCollectionRequestDescriptionString')
56
56
  CreateCollectionResponse = Shapes::StructureShape.new(name: 'CreateCollectionResponse')
57
57
  CreateIamIdentityCenterConfigOptions = Shapes::StructureShape.new(name: 'CreateIamIdentityCenterConfigOptions')
58
+ CreateIndexRequest = Shapes::StructureShape.new(name: 'CreateIndexRequest')
59
+ CreateIndexResponse = Shapes::StructureShape.new(name: 'CreateIndexResponse')
58
60
  CreateLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'CreateLifecyclePolicyRequest')
59
61
  CreateLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'CreateLifecyclePolicyResponse')
60
62
  CreateSecurityConfigRequest = Shapes::StructureShape.new(name: 'CreateSecurityConfigRequest')
@@ -69,6 +71,8 @@ module Aws::OpenSearchServerless
69
71
  DeleteCollectionDetail = Shapes::StructureShape.new(name: 'DeleteCollectionDetail')
70
72
  DeleteCollectionRequest = Shapes::StructureShape.new(name: 'DeleteCollectionRequest')
71
73
  DeleteCollectionResponse = Shapes::StructureShape.new(name: 'DeleteCollectionResponse')
74
+ DeleteIndexRequest = Shapes::StructureShape.new(name: 'DeleteIndexRequest')
75
+ DeleteIndexResponse = Shapes::StructureShape.new(name: 'DeleteIndexResponse')
72
76
  DeleteLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyRequest')
73
77
  DeleteLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyResponse')
74
78
  DeleteSecurityConfigRequest = Shapes::StructureShape.new(name: 'DeleteSecurityConfigRequest')
@@ -87,6 +91,8 @@ module Aws::OpenSearchServerless
87
91
  GetAccessPolicyResponse = Shapes::StructureShape.new(name: 'GetAccessPolicyResponse')
88
92
  GetAccountSettingsRequest = Shapes::StructureShape.new(name: 'GetAccountSettingsRequest')
89
93
  GetAccountSettingsResponse = Shapes::StructureShape.new(name: 'GetAccountSettingsResponse')
94
+ GetIndexRequest = Shapes::StructureShape.new(name: 'GetIndexRequest')
95
+ GetIndexResponse = Shapes::StructureShape.new(name: 'GetIndexResponse')
90
96
  GetPoliciesStatsRequest = Shapes::StructureShape.new(name: 'GetPoliciesStatsRequest')
91
97
  GetPoliciesStatsResponse = Shapes::StructureShape.new(name: 'GetPoliciesStatsResponse')
92
98
  GetSecurityConfigRequest = Shapes::StructureShape.new(name: 'GetSecurityConfigRequest')
@@ -99,6 +105,8 @@ module Aws::OpenSearchServerless
99
105
  IamIdentityCenterGroupAttribute = Shapes::StringShape.new(name: 'IamIdentityCenterGroupAttribute')
100
106
  IamIdentityCenterInstanceArn = Shapes::StringShape.new(name: 'IamIdentityCenterInstanceArn')
101
107
  IamIdentityCenterUserAttribute = Shapes::StringShape.new(name: 'IamIdentityCenterUserAttribute')
108
+ IndexName = Shapes::StringShape.new(name: 'IndexName')
109
+ IndexSchema = Shapes::DocumentShape.new(name: 'IndexSchema', document: true)
102
110
  IndexingCapacityValue = Shapes::IntegerShape.new(name: 'IndexingCapacityValue')
103
111
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
104
112
  LifecyclePolicyDetail = Shapes::StructureShape.new(name: 'LifecyclePolicyDetail')
@@ -186,6 +194,8 @@ module Aws::OpenSearchServerless
186
194
  UpdateCollectionRequestDescriptionString = Shapes::StringShape.new(name: 'UpdateCollectionRequestDescriptionString')
187
195
  UpdateCollectionResponse = Shapes::StructureShape.new(name: 'UpdateCollectionResponse')
188
196
  UpdateIamIdentityCenterConfigOptions = Shapes::StructureShape.new(name: 'UpdateIamIdentityCenterConfigOptions')
197
+ UpdateIndexRequest = Shapes::StructureShape.new(name: 'UpdateIndexRequest')
198
+ UpdateIndexResponse = Shapes::StructureShape.new(name: 'UpdateIndexResponse')
189
199
  UpdateLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'UpdateLifecyclePolicyRequest')
190
200
  UpdateLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'UpdateLifecyclePolicyResponse')
191
201
  UpdateSecurityConfigRequest = Shapes::StructureShape.new(name: 'UpdateSecurityConfigRequest')
@@ -356,6 +366,13 @@ module Aws::OpenSearchServerless
356
366
  CreateIamIdentityCenterConfigOptions.add_member(:group_attribute, Shapes::ShapeRef.new(shape: IamIdentityCenterGroupAttribute, location_name: "groupAttribute"))
357
367
  CreateIamIdentityCenterConfigOptions.struct_class = Types::CreateIamIdentityCenterConfigOptions
358
368
 
369
+ CreateIndexRequest.add_member(:id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "id"))
370
+ CreateIndexRequest.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "indexName"))
371
+ CreateIndexRequest.add_member(:index_schema, Shapes::ShapeRef.new(shape: IndexSchema, location_name: "indexSchema"))
372
+ CreateIndexRequest.struct_class = Types::CreateIndexRequest
373
+
374
+ CreateIndexResponse.struct_class = Types::CreateIndexResponse
375
+
359
376
  CreateLifecyclePolicyRequest.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
360
377
  CreateLifecyclePolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "name"))
361
378
  CreateLifecyclePolicyRequest.add_member(:description, Shapes::ShapeRef.new(shape: PolicyDescription, location_name: "description"))
@@ -422,6 +439,12 @@ module Aws::OpenSearchServerless
422
439
  DeleteCollectionResponse.add_member(:delete_collection_detail, Shapes::ShapeRef.new(shape: DeleteCollectionDetail, location_name: "deleteCollectionDetail"))
423
440
  DeleteCollectionResponse.struct_class = Types::DeleteCollectionResponse
424
441
 
442
+ DeleteIndexRequest.add_member(:id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "id"))
443
+ DeleteIndexRequest.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "indexName"))
444
+ DeleteIndexRequest.struct_class = Types::DeleteIndexRequest
445
+
446
+ DeleteIndexResponse.struct_class = Types::DeleteIndexResponse
447
+
425
448
  DeleteLifecyclePolicyRequest.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
426
449
  DeleteLifecyclePolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "name"))
427
450
  DeleteLifecyclePolicyRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
@@ -484,6 +507,13 @@ module Aws::OpenSearchServerless
484
507
  GetAccountSettingsResponse.add_member(:account_settings_detail, Shapes::ShapeRef.new(shape: AccountSettingsDetail, location_name: "accountSettingsDetail"))
485
508
  GetAccountSettingsResponse.struct_class = Types::GetAccountSettingsResponse
486
509
 
510
+ GetIndexRequest.add_member(:id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "id"))
511
+ GetIndexRequest.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "indexName"))
512
+ GetIndexRequest.struct_class = Types::GetIndexRequest
513
+
514
+ GetIndexResponse.add_member(:index_schema, Shapes::ShapeRef.new(shape: IndexSchema, location_name: "indexSchema"))
515
+ GetIndexResponse.struct_class = Types::GetIndexResponse
516
+
487
517
  GetPoliciesStatsRequest.struct_class = Types::GetPoliciesStatsRequest
488
518
 
489
519
  GetPoliciesStatsResponse.add_member(:access_policy_stats, Shapes::ShapeRef.new(shape: AccessPolicyStats, location_name: "AccessPolicyStats"))
@@ -764,6 +794,13 @@ module Aws::OpenSearchServerless
764
794
  UpdateIamIdentityCenterConfigOptions.add_member(:group_attribute, Shapes::ShapeRef.new(shape: IamIdentityCenterGroupAttribute, location_name: "groupAttribute"))
765
795
  UpdateIamIdentityCenterConfigOptions.struct_class = Types::UpdateIamIdentityCenterConfigOptions
766
796
 
797
+ UpdateIndexRequest.add_member(:id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "id"))
798
+ UpdateIndexRequest.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "indexName"))
799
+ UpdateIndexRequest.add_member(:index_schema, Shapes::ShapeRef.new(shape: IndexSchema, location_name: "indexSchema"))
800
+ UpdateIndexRequest.struct_class = Types::UpdateIndexRequest
801
+
802
+ UpdateIndexResponse.struct_class = Types::UpdateIndexResponse
803
+
767
804
  UpdateLifecyclePolicyRequest.add_member(:type, Shapes::ShapeRef.new(shape: LifecyclePolicyType, required: true, location_name: "type"))
768
805
  UpdateLifecyclePolicyRequest.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "name"))
769
806
  UpdateLifecyclePolicyRequest.add_member(:policy_version, Shapes::ShapeRef.new(shape: PolicyVersion, required: true, location_name: "policyVersion"))
@@ -938,6 +975,18 @@ module Aws::OpenSearchServerless
938
975
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
939
976
  end)
940
977
 
978
+ api.add_operation(:create_index, Seahorse::Model::Operation.new.tap do |o|
979
+ o.name = "CreateIndex"
980
+ o.http_method = "POST"
981
+ o.http_request_uri = "/"
982
+ o.input = Shapes::ShapeRef.new(shape: CreateIndexRequest)
983
+ o.output = Shapes::ShapeRef.new(shape: CreateIndexResponse)
984
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
985
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
986
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
987
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
988
+ end)
989
+
941
990
  api.add_operation(:create_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
942
991
  o.name = "CreateLifecyclePolicy"
943
992
  o.http_method = "POST"
@@ -1010,6 +1059,17 @@ module Aws::OpenSearchServerless
1010
1059
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1011
1060
  end)
1012
1061
 
1062
+ api.add_operation(:delete_index, Seahorse::Model::Operation.new.tap do |o|
1063
+ o.name = "DeleteIndex"
1064
+ o.http_method = "POST"
1065
+ o.http_request_uri = "/"
1066
+ o.input = Shapes::ShapeRef.new(shape: DeleteIndexRequest)
1067
+ o.output = Shapes::ShapeRef.new(shape: DeleteIndexResponse)
1068
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1069
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1070
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1071
+ end)
1072
+
1013
1073
  api.add_operation(:delete_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
1014
1074
  o.name = "DeleteLifecyclePolicy"
1015
1075
  o.http_method = "POST"
@@ -1079,6 +1139,17 @@ module Aws::OpenSearchServerless
1079
1139
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1080
1140
  end)
1081
1141
 
1142
+ api.add_operation(:get_index, Seahorse::Model::Operation.new.tap do |o|
1143
+ o.name = "GetIndex"
1144
+ o.http_method = "POST"
1145
+ o.http_request_uri = "/"
1146
+ o.input = Shapes::ShapeRef.new(shape: GetIndexRequest)
1147
+ o.output = Shapes::ShapeRef.new(shape: GetIndexResponse)
1148
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1149
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1150
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1151
+ end)
1152
+
1082
1153
  api.add_operation(:get_policies_stats, Seahorse::Model::Operation.new.tap do |o|
1083
1154
  o.name = "GetPoliciesStats"
1084
1155
  o.http_method = "POST"
@@ -1275,6 +1346,17 @@ module Aws::OpenSearchServerless
1275
1346
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1276
1347
  end)
1277
1348
 
1349
+ api.add_operation(:update_index, Seahorse::Model::Operation.new.tap do |o|
1350
+ o.name = "UpdateIndex"
1351
+ o.http_method = "POST"
1352
+ o.http_request_uri = "/"
1353
+ o.input = Shapes::ShapeRef.new(shape: UpdateIndexRequest)
1354
+ o.output = Shapes::ShapeRef.new(shape: UpdateIndexResponse)
1355
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1356
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1357
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1358
+ end)
1359
+
1278
1360
  api.add_operation(:update_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
1279
1361
  o.name = "UpdateLifecyclePolicy"
1280
1362
  o.http_method = "POST"
@@ -656,6 +656,35 @@ module Aws::OpenSearchServerless
656
656
  include Aws::Structure
657
657
  end
658
658
 
659
+ # @!attribute [rw] id
660
+ # The unique identifier of the collection in which to create the
661
+ # index.
662
+ # @return [String]
663
+ #
664
+ # @!attribute [rw] index_name
665
+ # The name of the index to create. Index names must be lowercase and
666
+ # can't begin with underscores (\_) or hyphens (-).
667
+ # @return [String]
668
+ #
669
+ # @!attribute [rw] index_schema
670
+ # The JSON schema definition for the index, including field mappings
671
+ # and settings.
672
+ # @return [Hash,Array,String,Numeric,Boolean]
673
+ #
674
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/CreateIndexRequest AWS API Documentation
675
+ #
676
+ class CreateIndexRequest < Struct.new(
677
+ :id,
678
+ :index_name,
679
+ :index_schema)
680
+ SENSITIVE = []
681
+ include Aws::Structure
682
+ end
683
+
684
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/CreateIndexResponse AWS API Documentation
685
+ #
686
+ class CreateIndexResponse < Aws::EmptyStructure; end
687
+
659
688
  # @!attribute [rw] type
660
689
  # The type of lifecycle policy.
661
690
  # @return [String]
@@ -991,6 +1020,28 @@ module Aws::OpenSearchServerless
991
1020
  include Aws::Structure
992
1021
  end
993
1022
 
1023
+ # @!attribute [rw] id
1024
+ # The unique identifier of the collection containing the index to
1025
+ # delete.
1026
+ # @return [String]
1027
+ #
1028
+ # @!attribute [rw] index_name
1029
+ # The name of the index to delete.
1030
+ # @return [String]
1031
+ #
1032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteIndexRequest AWS API Documentation
1033
+ #
1034
+ class DeleteIndexRequest < Struct.new(
1035
+ :id,
1036
+ :index_name)
1037
+ SENSITIVE = []
1038
+ include Aws::Structure
1039
+ end
1040
+
1041
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteIndexResponse AWS API Documentation
1042
+ #
1043
+ class DeleteIndexResponse < Aws::EmptyStructure; end
1044
+
994
1045
  # @!attribute [rw] type
995
1046
  # The type of lifecycle policy.
996
1047
  # @return [String]
@@ -1256,6 +1307,36 @@ module Aws::OpenSearchServerless
1256
1307
  include Aws::Structure
1257
1308
  end
1258
1309
 
1310
+ # @!attribute [rw] id
1311
+ # The unique identifier of the collection containing the index.
1312
+ # @return [String]
1313
+ #
1314
+ # @!attribute [rw] index_name
1315
+ # The name of the index to retrieve information about.
1316
+ # @return [String]
1317
+ #
1318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/GetIndexRequest AWS API Documentation
1319
+ #
1320
+ class GetIndexRequest < Struct.new(
1321
+ :id,
1322
+ :index_name)
1323
+ SENSITIVE = []
1324
+ include Aws::Structure
1325
+ end
1326
+
1327
+ # @!attribute [rw] index_schema
1328
+ # The JSON schema definition for the index, including field mappings
1329
+ # and settings.
1330
+ # @return [Hash,Array,String,Numeric,Boolean]
1331
+ #
1332
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/GetIndexResponse AWS API Documentation
1333
+ #
1334
+ class GetIndexResponse < Struct.new(
1335
+ :index_schema)
1336
+ SENSITIVE = []
1337
+ include Aws::Structure
1338
+ end
1339
+
1259
1340
  # @api private
1260
1341
  #
1261
1342
  # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/GetPoliciesStatsRequest AWS API Documentation
@@ -2503,6 +2584,34 @@ module Aws::OpenSearchServerless
2503
2584
  include Aws::Structure
2504
2585
  end
2505
2586
 
2587
+ # @!attribute [rw] id
2588
+ # The unique identifier of the collection containing the index to
2589
+ # update.
2590
+ # @return [String]
2591
+ #
2592
+ # @!attribute [rw] index_name
2593
+ # The name of the index to update.
2594
+ # @return [String]
2595
+ #
2596
+ # @!attribute [rw] index_schema
2597
+ # The updated JSON schema definition for the index, including field
2598
+ # mappings and settings.
2599
+ # @return [Hash,Array,String,Numeric,Boolean]
2600
+ #
2601
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateIndexRequest AWS API Documentation
2602
+ #
2603
+ class UpdateIndexRequest < Struct.new(
2604
+ :id,
2605
+ :index_name,
2606
+ :index_schema)
2607
+ SENSITIVE = []
2608
+ include Aws::Structure
2609
+ end
2610
+
2611
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateIndexResponse AWS API Documentation
2612
+ #
2613
+ class UpdateIndexResponse < Aws::EmptyStructure; end
2614
+
2506
2615
  # @!attribute [rw] type
2507
2616
  # The type of lifecycle policy.
2508
2617
  # @return [String]
@@ -55,7 +55,7 @@ module Aws::OpenSearchServerless
55
55
  autoload :EndpointProvider, 'aws-sdk-opensearchserverless/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-opensearchserverless/endpoints'
57
57
 
58
- GEM_VERSION = '1.42.0'
58
+ GEM_VERSION = '1.43.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -168,6 +168,18 @@ module Aws
168
168
  ) -> _CreateCollectionResponseSuccess
169
169
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCollectionResponseSuccess
170
170
 
171
+ interface _CreateIndexResponseSuccess
172
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateIndexResponse]
173
+ end
174
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchServerless/Client.html#create_index-instance_method
175
+ def create_index: (
176
+ id: ::String,
177
+ index_name: ::String,
178
+ ?index_schema: {
179
+ }
180
+ ) -> _CreateIndexResponseSuccess
181
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateIndexResponseSuccess
182
+
171
183
  interface _CreateLifecyclePolicyResponseSuccess
172
184
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateLifecyclePolicyResponse]
173
185
  def lifecycle_policy_detail: () -> Types::LifecyclePolicyDetail
@@ -261,6 +273,16 @@ module Aws
261
273
  ) -> _DeleteCollectionResponseSuccess
262
274
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCollectionResponseSuccess
263
275
 
276
+ interface _DeleteIndexResponseSuccess
277
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteIndexResponse]
278
+ end
279
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchServerless/Client.html#delete_index-instance_method
280
+ def delete_index: (
281
+ id: ::String,
282
+ index_name: ::String
283
+ ) -> _DeleteIndexResponseSuccess
284
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteIndexResponseSuccess
285
+
264
286
  interface _DeleteLifecyclePolicyResponseSuccess
265
287
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteLifecyclePolicyResponse]
266
288
  end
@@ -324,6 +346,17 @@ module Aws
324
346
  ) -> _GetAccountSettingsResponseSuccess
325
347
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAccountSettingsResponseSuccess
326
348
 
349
+ interface _GetIndexResponseSuccess
350
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetIndexResponse]
351
+ def index_schema: () -> untyped
352
+ end
353
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchServerless/Client.html#get_index-instance_method
354
+ def get_index: (
355
+ id: ::String,
356
+ index_name: ::String
357
+ ) -> _GetIndexResponseSuccess
358
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetIndexResponseSuccess
359
+
327
360
  interface _GetPoliciesStatsResponseSuccess
328
361
  include ::Seahorse::Client::_ResponseSuccess[Types::GetPoliciesStatsResponse]
329
362
  def access_policy_stats: () -> Types::AccessPolicyStats
@@ -519,6 +552,18 @@ module Aws
519
552
  ) -> _UpdateCollectionResponseSuccess
520
553
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCollectionResponseSuccess
521
554
 
555
+ interface _UpdateIndexResponseSuccess
556
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateIndexResponse]
557
+ end
558
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchServerless/Client.html#update_index-instance_method
559
+ def update_index: (
560
+ id: ::String,
561
+ index_name: ::String,
562
+ ?index_schema: {
563
+ }
564
+ ) -> _UpdateIndexResponseSuccess
565
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateIndexResponseSuccess
566
+
522
567
  interface _UpdateLifecyclePolicyResponseSuccess
523
568
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateLifecyclePolicyResponse]
524
569
  def lifecycle_policy_detail: () -> Types::LifecyclePolicyDetail
data/sig/types.rbs CHANGED
@@ -185,6 +185,16 @@ module Aws::OpenSearchServerless
185
185
  SENSITIVE: []
186
186
  end
187
187
 
188
+ class CreateIndexRequest
189
+ attr_accessor id: ::String
190
+ attr_accessor index_name: ::String
191
+ attr_accessor index_schema: untyped
192
+ SENSITIVE: []
193
+ end
194
+
195
+ class CreateIndexResponse < Aws::EmptyStructure
196
+ end
197
+
188
198
  class CreateLifecyclePolicyRequest
189
199
  attr_accessor type: ("retention")
190
200
  attr_accessor name: ::String
@@ -278,6 +288,15 @@ module Aws::OpenSearchServerless
278
288
  SENSITIVE: []
279
289
  end
280
290
 
291
+ class DeleteIndexRequest
292
+ attr_accessor id: ::String
293
+ attr_accessor index_name: ::String
294
+ SENSITIVE: []
295
+ end
296
+
297
+ class DeleteIndexResponse < Aws::EmptyStructure
298
+ end
299
+
281
300
  class DeleteLifecyclePolicyRequest
282
301
  attr_accessor type: ("retention")
283
302
  attr_accessor name: ::String
@@ -362,6 +381,17 @@ module Aws::OpenSearchServerless
362
381
  SENSITIVE: []
363
382
  end
364
383
 
384
+ class GetIndexRequest
385
+ attr_accessor id: ::String
386
+ attr_accessor index_name: ::String
387
+ SENSITIVE: []
388
+ end
389
+
390
+ class GetIndexResponse
391
+ attr_accessor index_schema: untyped
392
+ SENSITIVE: []
393
+ end
394
+
365
395
  class GetPoliciesStatsRequest < Aws::EmptyStructure
366
396
  end
367
397
 
@@ -715,6 +745,16 @@ module Aws::OpenSearchServerless
715
745
  SENSITIVE: []
716
746
  end
717
747
 
748
+ class UpdateIndexRequest
749
+ attr_accessor id: ::String
750
+ attr_accessor index_name: ::String
751
+ attr_accessor index_schema: untyped
752
+ SENSITIVE: []
753
+ end
754
+
755
+ class UpdateIndexResponse < Aws::EmptyStructure
756
+ end
757
+
718
758
  class UpdateLifecyclePolicyRequest
719
759
  attr_accessor type: ("retention")
720
760
  attr_accessor name: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-opensearchserverless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services