aws-sdk-dynamodb 1.170.0 → 1.172.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.
@@ -56,7 +56,7 @@ module Aws::DynamoDB
56
56
  autoload :Endpoints, 'aws-sdk-dynamodb/endpoints'
57
57
  autoload :Table, 'aws-sdk-dynamodb/table'
58
58
 
59
- GEM_VERSION = '1.170.0'
59
+ GEM_VERSION = '1.172.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -228,7 +228,10 @@ module Aws
228
228
  max_write_request_units: ::Integer?
229
229
  },
230
230
  ?global_table_source_arn: ::String,
231
- ?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
231
+ ?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES"),
232
+ ?vector_indexes: Array[
233
+ Params::vector_index
234
+ ]
232
235
  ) -> _CreateTableResponseSuccess
233
236
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateTableResponseSuccess
234
237
 
@@ -599,6 +602,9 @@ module Aws
599
602
  }?,
600
603
  global_secondary_indexes: Array[
601
604
  Params::global_secondary_index
605
+ ]?,
606
+ vector_indexes: Array[
607
+ Params::vector_index
602
608
  ]?
603
609
  }
604
610
  ) -> _ImportTableResponseSuccess
@@ -788,7 +794,10 @@ module Aws
788
794
  enabled: bool?,
789
795
  sse_type: ("AES256" | "KMS")?,
790
796
  kms_master_key_id: ::String?
791
- }
797
+ },
798
+ ?vector_index_override: Array[
799
+ Params::vector_index
800
+ ]
792
801
  ) -> _RestoreTableFromBackupResponseSuccess
793
802
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RestoreTableFromBackupResponseSuccess
794
803
 
@@ -822,7 +831,10 @@ module Aws
822
831
  enabled: bool?,
823
832
  sse_type: ("AES256" | "KMS")?,
824
833
  kms_master_key_id: ::String?
825
- }
834
+ },
835
+ ?vector_index_override: Array[
836
+ Params::vector_index
837
+ ]
826
838
  ) -> _RestoreTableToPointInTimeResponseSuccess
827
839
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RestoreTableToPointInTimeResponseSuccess
828
840
 
@@ -855,6 +867,25 @@ module Aws
855
867
  ) -> _ScanResponseSuccess
856
868
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ScanResponseSuccess
857
869
 
870
+ interface _SearchVectorsResponseSuccess
871
+ include ::Seahorse::Client::_ResponseSuccess[Types::SearchVectorsOutput]
872
+ def consumed_capacity: () -> Types::VectorCapacity
873
+ def search_results: () -> ::Array[Types::SearchResultItem]
874
+ end
875
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Client.html#search_vectors-instance_method
876
+ def search_vectors: (
877
+ table_name: ::String,
878
+ index_name: ::String,
879
+ ?return_consumed_capacity: ("INDEXES" | "TOTAL" | "NONE"),
880
+ ?expression_attribute_names: Hash[::String, ::String],
881
+ ?expression_attribute_values: Hash[::String, Params::attribute_value],
882
+ ?projection_expression: ::String,
883
+ search_vector: Array[Params::attribute_value],
884
+ ?search_condition_expression: ::String,
885
+ top_k: ::Integer
886
+ ) -> _SearchVectorsResponseSuccess
887
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchVectorsResponseSuccess
888
+
858
889
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Client.html#tag_resource-instance_method
859
890
  def tag_resource: (
860
891
  resource_arn: ::String,
@@ -1205,7 +1236,32 @@ module Aws
1205
1236
  read_units_per_second: ::Integer?,
1206
1237
  write_units_per_second: ::Integer?
1207
1238
  },
1208
- ?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
1239
+ ?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES"),
1240
+ ?vector_index_updates: Array[
1241
+ {
1242
+ create: {
1243
+ index_name: ::String,
1244
+ vector_attribute: {
1245
+ attribute_name: ::String
1246
+ },
1247
+ search_schema: Array[
1248
+ {
1249
+ attribute_name: ::String,
1250
+ search_schema_element_type: ("HASH" | "INLINE_FILTER")
1251
+ }
1252
+ ]?,
1253
+ projection: {
1254
+ projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
1255
+ non_key_attributes: Array[::String]?
1256
+ },
1257
+ dimensions: ::Integer,
1258
+ distance_function: ("COSINE" | "DOT_PRODUCT" | "EUCLIDEAN")
1259
+ }?,
1260
+ delete: {
1261
+ index_name: ::String
1262
+ }?
1263
+ }
1264
+ ]
1209
1265
  ) -> _UpdateTableResponseSuccess
1210
1266
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateTableResponseSuccess
1211
1267
 
data/sig/params.rbs CHANGED
@@ -61,6 +61,25 @@ module Aws
61
61
  }?
62
62
  }
63
63
 
64
+ type vector_index = {
65
+ index_name: ::String,
66
+ vector_attribute: {
67
+ attribute_name: ::String
68
+ },
69
+ search_schema: Array[
70
+ {
71
+ attribute_name: ::String,
72
+ search_schema_element_type: ("HASH" | "INLINE_FILTER")
73
+ }
74
+ ]?,
75
+ projection: {
76
+ projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
77
+ non_key_attributes: Array[::String]?
78
+ },
79
+ dimensions: ::Integer,
80
+ distance_function: ("COSINE" | "DOT_PRODUCT" | "EUCLIDEAN")
81
+ }
82
+
64
83
  type expected_attribute_value = {
65
84
  value: Params::attribute_value?,
66
85
  exists: bool?,
data/sig/resource.rbs CHANGED
@@ -205,7 +205,27 @@ module Aws
205
205
  max_write_request_units: ::Integer?
206
206
  },
207
207
  ?global_table_source_arn: ::String,
208
- ?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
208
+ ?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES"),
209
+ ?vector_indexes: Array[
210
+ {
211
+ index_name: ::String,
212
+ vector_attribute: {
213
+ attribute_name: ::String
214
+ },
215
+ search_schema: Array[
216
+ {
217
+ attribute_name: ::String,
218
+ search_schema_element_type: ("HASH" | "INLINE_FILTER")
219
+ }
220
+ ]?,
221
+ projection: {
222
+ projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
223
+ non_key_attributes: Array[::String]?
224
+ },
225
+ dimensions: ::Integer,
226
+ distance_function: ("COSINE" | "DOT_PRODUCT" | "EUCLIDEAN")
227
+ }
228
+ ]
209
229
  ) -> Table
210
230
  | (?Hash[Symbol, untyped]) -> Table
211
231
 
data/sig/table.rbs CHANGED
@@ -99,6 +99,9 @@ module Aws
99
99
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#multi_region_consistency-instance_method
100
100
  def multi_region_consistency: () -> ("EVENTUAL" | "STRONG")
101
101
 
102
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#vector_indexes-instance_method
103
+ def vector_indexes: () -> ::Array[Types::VectorIndexDescription]
104
+
102
105
  def client: () -> Client
103
106
 
104
107
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#load-instance_method
@@ -359,7 +362,32 @@ module Aws
359
362
  read_units_per_second: ::Integer?,
360
363
  write_units_per_second: ::Integer?
361
364
  },
362
- ?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
365
+ ?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES"),
366
+ ?vector_index_updates: Array[
367
+ {
368
+ create: {
369
+ index_name: ::String,
370
+ vector_attribute: {
371
+ attribute_name: ::String
372
+ },
373
+ search_schema: Array[
374
+ {
375
+ attribute_name: ::String,
376
+ search_schema_element_type: ("HASH" | "INLINE_FILTER")
377
+ }
378
+ ]?,
379
+ projection: {
380
+ projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
381
+ non_key_attributes: Array[::String]?
382
+ },
383
+ dimensions: ::Integer,
384
+ distance_function: ("COSINE" | "DOT_PRODUCT" | "EUCLIDEAN")
385
+ }?,
386
+ delete: {
387
+ index_name: ::String
388
+ }?
389
+ }
390
+ ]
363
391
  ) -> Table
364
392
  | (?Hash[Symbol, untyped]) -> Table
365
393
 
data/sig/types.rbs CHANGED
@@ -240,6 +240,7 @@ module Aws::DynamoDB
240
240
  attr_accessor table: Types::Capacity
241
241
  attr_accessor local_secondary_indexes: ::Hash[::String, Types::Capacity]
242
242
  attr_accessor global_secondary_indexes: ::Hash[::String, Types::Capacity]
243
+ attr_accessor vector_indexes: ::Hash[::String, Types::VectorCapacity]
243
244
  SENSITIVE: []
244
245
  end
245
246
 
@@ -332,6 +333,7 @@ module Aws::DynamoDB
332
333
  attr_accessor on_demand_throughput: Types::OnDemandThroughput
333
334
  attr_accessor global_table_source_arn: ::String
334
335
  attr_accessor global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
336
+ attr_accessor vector_indexes: ::Array[Types::VectorIndex]
335
337
  SENSITIVE: []
336
338
  end
337
339
 
@@ -340,6 +342,16 @@ module Aws::DynamoDB
340
342
  SENSITIVE: []
341
343
  end
342
344
 
345
+ class CreateVectorIndexAction
346
+ attr_accessor index_name: ::String
347
+ attr_accessor vector_attribute: Types::VectorAttributeDefinition
348
+ attr_accessor search_schema: ::Array[Types::SearchSchemaElement]
349
+ attr_accessor projection: Types::Projection
350
+ attr_accessor dimensions: ::Integer
351
+ attr_accessor distance_function: ("COSINE" | "DOT_PRODUCT" | "EUCLIDEAN")
352
+ SENSITIVE: []
353
+ end
354
+
343
355
  class CsvOptions
344
356
  attr_accessor delimiter: ::String
345
357
  attr_accessor header_list: ::Array[::String]
@@ -434,6 +446,11 @@ module Aws::DynamoDB
434
446
  SENSITIVE: []
435
447
  end
436
448
 
449
+ class DeleteVectorIndexAction
450
+ attr_accessor index_name: ::String
451
+ SENSITIVE: []
452
+ end
453
+
437
454
  class DescribeBackupInput
438
455
  attr_accessor backup_arn: ::String
439
456
  SENSITIVE: []
@@ -1423,6 +1440,7 @@ module Aws::DynamoDB
1423
1440
  attr_accessor provisioned_throughput_override: Types::ProvisionedThroughput
1424
1441
  attr_accessor on_demand_throughput_override: Types::OnDemandThroughput
1425
1442
  attr_accessor sse_specification_override: Types::SSESpecification
1443
+ attr_accessor vector_index_override: ::Array[Types::VectorIndex]
1426
1444
  SENSITIVE: []
1427
1445
  end
1428
1446
 
@@ -1443,6 +1461,7 @@ module Aws::DynamoDB
1443
1461
  attr_accessor provisioned_throughput_override: Types::ProvisionedThroughput
1444
1462
  attr_accessor on_demand_throughput_override: Types::OnDemandThroughput
1445
1463
  attr_accessor sse_specification_override: Types::SSESpecification
1464
+ attr_accessor vector_index_override: ::Array[Types::VectorIndex]
1446
1465
  SENSITIVE: []
1447
1466
  end
1448
1467
 
@@ -1502,6 +1521,37 @@ module Aws::DynamoDB
1502
1521
  SENSITIVE: []
1503
1522
  end
1504
1523
 
1524
+ class SearchResultItem
1525
+ attr_accessor item: ::Hash[::String, Types::AttributeValue]
1526
+ attr_accessor score: ::Float
1527
+ SENSITIVE: []
1528
+ end
1529
+
1530
+ class SearchSchemaElement
1531
+ attr_accessor attribute_name: ::String
1532
+ attr_accessor search_schema_element_type: ("HASH" | "INLINE_FILTER")
1533
+ SENSITIVE: []
1534
+ end
1535
+
1536
+ class SearchVectorsInput
1537
+ attr_accessor table_name: ::String
1538
+ attr_accessor index_name: ::String
1539
+ attr_accessor return_consumed_capacity: ("INDEXES" | "TOTAL" | "NONE")
1540
+ attr_accessor expression_attribute_names: ::Hash[::String, ::String]
1541
+ attr_accessor expression_attribute_values: ::Hash[::String, Types::AttributeValue]
1542
+ attr_accessor projection_expression: ::String
1543
+ attr_accessor search_vector: ::Array[Types::AttributeValue]
1544
+ attr_accessor search_condition_expression: ::String
1545
+ attr_accessor top_k: ::Integer
1546
+ SENSITIVE: []
1547
+ end
1548
+
1549
+ class SearchVectorsOutput
1550
+ attr_accessor consumed_capacity: Types::VectorCapacity
1551
+ attr_accessor search_results: ::Array[Types::SearchResultItem]
1552
+ SENSITIVE: []
1553
+ end
1554
+
1505
1555
  class SourceTableDetails
1506
1556
  attr_accessor table_name: ::String
1507
1557
  attr_accessor table_id: ::String
@@ -1522,6 +1572,7 @@ module Aws::DynamoDB
1522
1572
  attr_accessor stream_description: Types::StreamSpecification
1523
1573
  attr_accessor time_to_live_description: Types::TimeToLiveDescription
1524
1574
  attr_accessor sse_description: Types::SSEDescription
1575
+ attr_accessor vector_indexes: ::Array[Types::VectorIndexInfo]
1525
1576
  SENSITIVE: []
1526
1577
  end
1527
1578
 
@@ -1558,6 +1609,7 @@ module Aws::DynamoDB
1558
1609
  attr_accessor on_demand_throughput: Types::OnDemandThroughput
1559
1610
  attr_accessor sse_specification: Types::SSESpecification
1560
1611
  attr_accessor global_secondary_indexes: ::Array[Types::GlobalSecondaryIndex]
1612
+ attr_accessor vector_indexes: ::Array[Types::VectorIndex]
1561
1613
  SENSITIVE: []
1562
1614
  end
1563
1615
 
@@ -1590,6 +1642,7 @@ module Aws::DynamoDB
1590
1642
  attr_accessor on_demand_throughput: Types::OnDemandThroughput
1591
1643
  attr_accessor warm_throughput: Types::TableWarmThroughputDescription
1592
1644
  attr_accessor multi_region_consistency: ("EVENTUAL" | "STRONG")
1645
+ attr_accessor vector_indexes: ::Array[Types::VectorIndexDescription]
1593
1646
  SENSITIVE: []
1594
1647
  end
1595
1648
 
@@ -1850,6 +1903,7 @@ module Aws::DynamoDB
1850
1903
  attr_accessor on_demand_throughput: Types::OnDemandThroughput
1851
1904
  attr_accessor warm_throughput: Types::WarmThroughput
1852
1905
  attr_accessor global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
1906
+ attr_accessor vector_index_updates: ::Array[Types::VectorIndexUpdate]
1853
1907
  SENSITIVE: []
1854
1908
  end
1855
1909
 
@@ -1882,6 +1936,58 @@ module Aws::DynamoDB
1882
1936
  SENSITIVE: []
1883
1937
  end
1884
1938
 
1939
+ class VectorAttributeDefinition
1940
+ attr_accessor attribute_name: ::String
1941
+ SENSITIVE: []
1942
+ end
1943
+
1944
+ class VectorCapacity
1945
+ attr_accessor vector_search_request_bytes: ::Float
1946
+ attr_accessor vector_write_request_bytes: ::Float
1947
+ SENSITIVE: []
1948
+ end
1949
+
1950
+ class VectorIndex
1951
+ attr_accessor index_name: ::String
1952
+ attr_accessor vector_attribute: Types::VectorAttributeDefinition
1953
+ attr_accessor search_schema: ::Array[Types::SearchSchemaElement]
1954
+ attr_accessor projection: Types::Projection
1955
+ attr_accessor dimensions: ::Integer
1956
+ attr_accessor distance_function: ("COSINE" | "DOT_PRODUCT" | "EUCLIDEAN")
1957
+ SENSITIVE: []
1958
+ end
1959
+
1960
+ class VectorIndexDescription
1961
+ attr_accessor index_name: ::String
1962
+ attr_accessor search_schema: ::Array[Types::SearchSchemaElement]
1963
+ attr_accessor projection: Types::Projection
1964
+ attr_accessor vector_attribute: Types::VectorAttributeDefinition
1965
+ attr_accessor dimensions: ::Integer
1966
+ attr_accessor distance_function: ("COSINE" | "DOT_PRODUCT" | "EUCLIDEAN")
1967
+ attr_accessor index_status: ("CREATING" | "UPDATING" | "DELETING" | "ACTIVE")
1968
+ attr_accessor backfilling: bool
1969
+ attr_accessor index_size_bytes: ::Integer
1970
+ attr_accessor item_count: ::Integer
1971
+ attr_accessor index_arn: ::String
1972
+ SENSITIVE: []
1973
+ end
1974
+
1975
+ class VectorIndexInfo
1976
+ attr_accessor index_name: ::String
1977
+ attr_accessor vector_attribute: Types::VectorAttributeDefinition
1978
+ attr_accessor search_schema: ::Array[Types::SearchSchemaElement]
1979
+ attr_accessor projection: Types::Projection
1980
+ attr_accessor dimensions: ::Integer
1981
+ attr_accessor distance_function: ("COSINE" | "DOT_PRODUCT" | "EUCLIDEAN")
1982
+ SENSITIVE: []
1983
+ end
1984
+
1985
+ class VectorIndexUpdate
1986
+ attr_accessor create: Types::CreateVectorIndexAction
1987
+ attr_accessor delete: Types::DeleteVectorIndexAction
1988
+ SENSITIVE: []
1989
+ end
1990
+
1885
1991
  class WarmThroughput
1886
1992
  attr_accessor read_units_per_second: ::Integer
1887
1993
  attr_accessor write_units_per_second: ::Integer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-dynamodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.170.0
4
+ version: 1.172.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services