aws-sdk-bedrock 1.51.0 → 1.53.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.
data/sig/client.rbs CHANGED
@@ -290,6 +290,42 @@ module Aws
290
290
  or_all: Array[
291
291
  untyped,
292
292
  ]?
293
+ }?,
294
+ implicit_filter_configuration: {
295
+ metadata_attributes: Array[
296
+ {
297
+ key: ::String,
298
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
299
+ description: ::String
300
+ },
301
+ ],
302
+ model_arn: ::String
303
+ }?,
304
+ reranking_configuration: {
305
+ type: ("BEDROCK_RERANKING_MODEL"),
306
+ bedrock_reranking_configuration: {
307
+ model_configuration: {
308
+ model_arn: ::String,
309
+ additional_model_request_fields: Hash[::String, {
310
+ }]?
311
+ },
312
+ number_of_reranked_results: ::Integer?,
313
+ metadata_configuration: {
314
+ selection_mode: ("SELECTIVE" | "ALL"),
315
+ selective_mode_configuration: {
316
+ fields_to_include: Array[
317
+ {
318
+ field_name: ::String
319
+ },
320
+ ]?,
321
+ fields_to_exclude: Array[
322
+ {
323
+ field_name: ::String
324
+ },
325
+ ]?
326
+ }?
327
+ }?
328
+ }?
293
329
  }?
294
330
  }
295
331
  }
@@ -365,6 +401,42 @@ module Aws
365
401
  or_all: Array[
366
402
  untyped,
367
403
  ]?
404
+ }?,
405
+ implicit_filter_configuration: {
406
+ metadata_attributes: Array[
407
+ {
408
+ key: ::String,
409
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
410
+ description: ::String
411
+ },
412
+ ],
413
+ model_arn: ::String
414
+ }?,
415
+ reranking_configuration: {
416
+ type: ("BEDROCK_RERANKING_MODEL"),
417
+ bedrock_reranking_configuration: {
418
+ model_configuration: {
419
+ model_arn: ::String,
420
+ additional_model_request_fields: Hash[::String, {
421
+ }]?
422
+ },
423
+ number_of_reranked_results: ::Integer?,
424
+ metadata_configuration: {
425
+ selection_mode: ("SELECTIVE" | "ALL"),
426
+ selective_mode_configuration: {
427
+ fields_to_include: Array[
428
+ {
429
+ field_name: ::String
430
+ },
431
+ ]?,
432
+ fields_to_exclude: Array[
433
+ {
434
+ field_name: ::String
435
+ },
436
+ ]?
437
+ }?
438
+ }?
439
+ }?
368
440
  }?
369
441
  }
370
442
  }?,
@@ -447,6 +519,17 @@ module Aws
447
519
  ) -> _CreateEvaluationJobResponseSuccess
448
520
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEvaluationJobResponseSuccess
449
521
 
522
+ interface _CreateFoundationModelAgreementResponseSuccess
523
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateFoundationModelAgreementResponse]
524
+ def model_id: () -> ::String
525
+ end
526
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_foundation_model_agreement-instance_method
527
+ def create_foundation_model_agreement: (
528
+ offer_token: ::String,
529
+ model_id: ::String
530
+ ) -> _CreateFoundationModelAgreementResponseSuccess
531
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFoundationModelAgreementResponseSuccess
532
+
450
533
  interface _CreateGuardrailResponseSuccess
451
534
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateGuardrailResponse]
452
535
  def guardrail_id: () -> ::String
@@ -855,6 +938,15 @@ module Aws
855
938
  ) -> _DeleteCustomModelResponseSuccess
856
939
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelResponseSuccess
857
940
 
941
+ interface _DeleteFoundationModelAgreementResponseSuccess
942
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFoundationModelAgreementResponse]
943
+ end
944
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_foundation_model_agreement-instance_method
945
+ def delete_foundation_model_agreement: (
946
+ model_id: ::String
947
+ ) -> _DeleteFoundationModelAgreementResponseSuccess
948
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteFoundationModelAgreementResponseSuccess
949
+
858
950
  interface _DeleteGuardrailResponseSuccess
859
951
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteGuardrailResponse]
860
952
  end
@@ -986,6 +1078,20 @@ module Aws
986
1078
  ) -> _GetFoundationModelResponseSuccess
987
1079
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFoundationModelResponseSuccess
988
1080
 
1081
+ interface _GetFoundationModelAvailabilityResponseSuccess
1082
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetFoundationModelAvailabilityResponse]
1083
+ def model_id: () -> ::String
1084
+ def agreement_availability: () -> Types::AgreementAvailability
1085
+ def authorization_status: () -> ("AUTHORIZED" | "NOT_AUTHORIZED")
1086
+ def entitlement_availability: () -> ("AVAILABLE" | "NOT_AVAILABLE")
1087
+ def region_availability: () -> ("AVAILABLE" | "NOT_AVAILABLE")
1088
+ end
1089
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_foundation_model_availability-instance_method
1090
+ def get_foundation_model_availability: (
1091
+ model_id: ::String
1092
+ ) -> _GetFoundationModelAvailabilityResponseSuccess
1093
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFoundationModelAvailabilityResponseSuccess
1094
+
989
1095
  interface _GetGuardrailResponseSuccess
990
1096
  include ::Seahorse::Client::_ResponseSuccess[Types::GetGuardrailResponse]
991
1097
  def name: () -> ::String
@@ -1210,6 +1316,15 @@ module Aws
1210
1316
  ) -> _GetProvisionedModelThroughputResponseSuccess
1211
1317
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedModelThroughputResponseSuccess
1212
1318
 
1319
+ interface _GetUseCaseForModelAccessResponseSuccess
1320
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetUseCaseForModelAccessResponse]
1321
+ def form_data: () -> ::String
1322
+ end
1323
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_use_case_for_model_access-instance_method
1324
+ def get_use_case_for_model_access: (
1325
+ ) -> _GetUseCaseForModelAccessResponseSuccess
1326
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetUseCaseForModelAccessResponseSuccess
1327
+
1213
1328
  interface _ListCustomModelsResponseSuccess
1214
1329
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelsResponse]
1215
1330
  def next_token: () -> ::String
@@ -1250,6 +1365,18 @@ module Aws
1250
1365
  ) -> _ListEvaluationJobsResponseSuccess
1251
1366
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEvaluationJobsResponseSuccess
1252
1367
 
1368
+ interface _ListFoundationModelAgreementOffersResponseSuccess
1369
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListFoundationModelAgreementOffersResponse]
1370
+ def model_id: () -> ::String
1371
+ def offers: () -> ::Array[Types::Offer]
1372
+ end
1373
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_foundation_model_agreement_offers-instance_method
1374
+ def list_foundation_model_agreement_offers: (
1375
+ model_id: ::String,
1376
+ ?offer_type: ("ALL" | "PUBLIC")
1377
+ ) -> _ListFoundationModelAgreementOffersResponseSuccess
1378
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFoundationModelAgreementOffersResponseSuccess
1379
+
1253
1380
  interface _ListFoundationModelsResponseSuccess
1254
1381
  include ::Seahorse::Client::_ResponseSuccess[Types::ListFoundationModelsResponse]
1255
1382
  def model_summaries: () -> ::Array[Types::FoundationModelSummary]
@@ -1461,6 +1588,15 @@ module Aws
1461
1588
  ) -> _PutModelInvocationLoggingConfigurationResponseSuccess
1462
1589
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutModelInvocationLoggingConfigurationResponseSuccess
1463
1590
 
1591
+ interface _PutUseCaseForModelAccessResponseSuccess
1592
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutUseCaseForModelAccessResponse]
1593
+ end
1594
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#put_use_case_for_model_access-instance_method
1595
+ def put_use_case_for_model_access: (
1596
+ form_data: ::String
1597
+ ) -> _PutUseCaseForModelAccessResponseSuccess
1598
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutUseCaseForModelAccessResponseSuccess
1599
+
1464
1600
  interface _RegisterMarketplaceModelEndpointResponseSuccess
1465
1601
  include ::Seahorse::Client::_ResponseSuccess[Types::RegisterMarketplaceModelEndpointResponse]
1466
1602
  def marketplace_model_endpoint: () -> Types::MarketplaceModelEndpoint
data/sig/types.rbs CHANGED
@@ -13,6 +13,12 @@ module Aws::Bedrock
13
13
  SENSITIVE: []
14
14
  end
15
15
 
16
+ class AgreementAvailability
17
+ attr_accessor status: ("AVAILABLE" | "PENDING" | "NOT_AVAILABLE" | "ERROR")
18
+ attr_accessor error_message: ::String
19
+ SENSITIVE: []
20
+ end
21
+
16
22
  class AutomatedEvaluationConfig
17
23
  attr_accessor dataset_metric_configs: ::Array[Types::EvaluationDatasetMetricConfig]
18
24
  attr_accessor evaluator_model_config: Types::EvaluatorModelConfig
@@ -119,6 +125,17 @@ module Aws::Bedrock
119
125
  SENSITIVE: []
120
126
  end
121
127
 
128
+ class CreateFoundationModelAgreementRequest
129
+ attr_accessor offer_token: ::String
130
+ attr_accessor model_id: ::String
131
+ SENSITIVE: []
132
+ end
133
+
134
+ class CreateFoundationModelAgreementResponse
135
+ attr_accessor model_id: ::String
136
+ SENSITIVE: []
137
+ end
138
+
122
139
  class CreateGuardrailRequest
123
140
  attr_accessor name: ::String
124
141
  attr_accessor description: ::String
@@ -353,6 +370,14 @@ module Aws::Bedrock
353
370
  class DeleteCustomModelResponse < Aws::EmptyStructure
354
371
  end
355
372
 
373
+ class DeleteFoundationModelAgreementRequest
374
+ attr_accessor model_id: ::String
375
+ SENSITIVE: []
376
+ end
377
+
378
+ class DeleteFoundationModelAgreementResponse < Aws::EmptyStructure
379
+ end
380
+
356
381
  class DeleteGuardrailRequest
357
382
  attr_accessor guardrail_identifier: ::String
358
383
  attr_accessor guardrail_version: ::String
@@ -416,6 +441,14 @@ module Aws::Bedrock
416
441
  class DeregisterMarketplaceModelEndpointResponse < Aws::EmptyStructure
417
442
  end
418
443
 
444
+ class DimensionalPriceRate
445
+ attr_accessor dimension: ::String
446
+ attr_accessor price: ::String
447
+ attr_accessor description: ::String
448
+ attr_accessor unit: ::String
449
+ SENSITIVE: []
450
+ end
451
+
419
452
  class DistillationConfig
420
453
  attr_accessor teacher_model_config: Types::TeacherModelConfig
421
454
  SENSITIVE: []
@@ -606,6 +639,11 @@ module Aws::Bedrock
606
639
  SENSITIVE: []
607
640
  end
608
641
 
642
+ class FieldForReranking
643
+ attr_accessor field_name: ::String
644
+ SENSITIVE: []
645
+ end
646
+
609
647
  class FilterAttribute
610
648
  attr_accessor key: ::String
611
649
  attr_accessor value: untyped
@@ -702,6 +740,20 @@ module Aws::Bedrock
702
740
  SENSITIVE: [:job_description]
703
741
  end
704
742
 
743
+ class GetFoundationModelAvailabilityRequest
744
+ attr_accessor model_id: ::String
745
+ SENSITIVE: []
746
+ end
747
+
748
+ class GetFoundationModelAvailabilityResponse
749
+ attr_accessor model_id: ::String
750
+ attr_accessor agreement_availability: Types::AgreementAvailability
751
+ attr_accessor authorization_status: ("AUTHORIZED" | "NOT_AUTHORIZED")
752
+ attr_accessor entitlement_availability: ("AVAILABLE" | "NOT_AVAILABLE")
753
+ attr_accessor region_availability: ("AVAILABLE" | "NOT_AVAILABLE")
754
+ SENSITIVE: []
755
+ end
756
+
705
757
  class GetFoundationModelRequest
706
758
  attr_accessor model_identifier: ::String
707
759
  SENSITIVE: []
@@ -935,6 +987,14 @@ module Aws::Bedrock
935
987
  SENSITIVE: []
936
988
  end
937
989
 
990
+ class GetUseCaseForModelAccessRequest < Aws::EmptyStructure
991
+ end
992
+
993
+ class GetUseCaseForModelAccessResponse
994
+ attr_accessor form_data: ::String
995
+ SENSITIVE: []
996
+ end
997
+
938
998
  class GuardrailConfiguration
939
999
  attr_accessor guardrail_id: ::String
940
1000
  attr_accessor guardrail_version: ::String
@@ -1209,6 +1269,12 @@ module Aws::Bedrock
1209
1269
  SENSITIVE: [:instructions]
1210
1270
  end
1211
1271
 
1272
+ class ImplicitFilterConfiguration
1273
+ attr_accessor metadata_attributes: ::Array[Types::MetadataAttributeSchema]
1274
+ attr_accessor model_arn: ::String
1275
+ SENSITIVE: []
1276
+ end
1277
+
1212
1278
  class ImportedModelSummary
1213
1279
  attr_accessor model_arn: ::String
1214
1280
  attr_accessor model_name: ::String
@@ -1307,9 +1373,16 @@ module Aws::Bedrock
1307
1373
  attr_accessor number_of_results: ::Integer
1308
1374
  attr_accessor override_search_type: ("HYBRID" | "SEMANTIC")
1309
1375
  attr_accessor filter: Types::RetrievalFilter
1376
+ attr_accessor implicit_filter_configuration: Types::ImplicitFilterConfiguration
1377
+ attr_accessor reranking_configuration: Types::VectorSearchRerankingConfiguration
1310
1378
  SENSITIVE: [:filter]
1311
1379
  end
1312
1380
 
1381
+ class LegalTerm
1382
+ attr_accessor url: ::String
1383
+ SENSITIVE: []
1384
+ end
1385
+
1313
1386
  class ListCustomModelsRequest
1314
1387
  attr_accessor creation_time_before: ::Time
1315
1388
  attr_accessor creation_time_after: ::Time
@@ -1350,6 +1423,18 @@ module Aws::Bedrock
1350
1423
  SENSITIVE: []
1351
1424
  end
1352
1425
 
1426
+ class ListFoundationModelAgreementOffersRequest
1427
+ attr_accessor model_id: ::String
1428
+ attr_accessor offer_type: ("ALL" | "PUBLIC")
1429
+ SENSITIVE: []
1430
+ end
1431
+
1432
+ class ListFoundationModelAgreementOffersResponse
1433
+ attr_accessor model_id: ::String
1434
+ attr_accessor offers: ::Array[Types::Offer]
1435
+ SENSITIVE: []
1436
+ end
1437
+
1353
1438
  class ListFoundationModelsRequest
1354
1439
  attr_accessor by_provider: ::String
1355
1440
  attr_accessor by_customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
@@ -1568,6 +1653,19 @@ module Aws::Bedrock
1568
1653
  SENSITIVE: []
1569
1654
  end
1570
1655
 
1656
+ class MetadataAttributeSchema
1657
+ attr_accessor key: ::String
1658
+ attr_accessor type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST")
1659
+ attr_accessor description: ::String
1660
+ SENSITIVE: []
1661
+ end
1662
+
1663
+ class MetadataConfigurationForReranking
1664
+ attr_accessor selection_mode: ("SELECTIVE" | "ALL")
1665
+ attr_accessor selective_mode_configuration: Types::RerankingMetadataSelectiveModeConfiguration
1666
+ SENSITIVE: []
1667
+ end
1668
+
1571
1669
  class ModelCopyJobSummary
1572
1670
  attr_accessor job_arn: ::String
1573
1671
  attr_accessor status: ("InProgress" | "Completed" | "Failed")
@@ -1676,6 +1774,13 @@ module Aws::Bedrock
1676
1774
  SENSITIVE: [:message]
1677
1775
  end
1678
1776
 
1777
+ class Offer
1778
+ attr_accessor offer_id: ::String
1779
+ attr_accessor offer_token: ::String
1780
+ attr_accessor term_details: Types::TermDetails
1781
+ SENSITIVE: []
1782
+ end
1783
+
1679
1784
  class OrchestrationConfiguration
1680
1785
  attr_accessor query_transformation_configuration: Types::QueryTransformationConfiguration
1681
1786
  SENSITIVE: []
@@ -1691,6 +1796,11 @@ module Aws::Bedrock
1691
1796
  SENSITIVE: []
1692
1797
  end
1693
1798
 
1799
+ class PricingTerm
1800
+ attr_accessor rate_card: ::Array[Types::DimensionalPriceRate]
1801
+ SENSITIVE: []
1802
+ end
1803
+
1694
1804
  class PromptRouterSummary
1695
1805
  attr_accessor prompt_router_name: ::String
1696
1806
  attr_accessor routing_criteria: Types::RoutingCriteria
@@ -1739,6 +1849,14 @@ module Aws::Bedrock
1739
1849
  class PutModelInvocationLoggingConfigurationResponse < Aws::EmptyStructure
1740
1850
  end
1741
1851
 
1852
+ class PutUseCaseForModelAccessRequest
1853
+ attr_accessor form_data: ::String
1854
+ SENSITIVE: []
1855
+ end
1856
+
1857
+ class PutUseCaseForModelAccessResponse < Aws::EmptyStructure
1858
+ end
1859
+
1742
1860
  class QueryTransformationConfiguration
1743
1861
  attr_accessor type: ("QUERY_DECOMPOSITION")
1744
1862
  SENSITIVE: []
@@ -1815,6 +1933,20 @@ module Aws::Bedrock
1815
1933
  end
1816
1934
  end
1817
1935
 
1936
+ class RerankingMetadataSelectiveModeConfiguration
1937
+ attr_accessor fields_to_include: ::Array[Types::FieldForReranking]
1938
+ attr_accessor fields_to_exclude: ::Array[Types::FieldForReranking]
1939
+ attr_accessor unknown: untyped
1940
+ SENSITIVE: [:fields_to_include, :fields_to_exclude]
1941
+
1942
+ class FieldsToInclude < RerankingMetadataSelectiveModeConfiguration
1943
+ end
1944
+ class FieldsToExclude < RerankingMetadataSelectiveModeConfiguration
1945
+ end
1946
+ class Unknown < RerankingMetadataSelectiveModeConfiguration
1947
+ end
1948
+ end
1949
+
1818
1950
  class ResourceNotFoundException
1819
1951
  attr_accessor message: ::String
1820
1952
  SENSITIVE: []
@@ -1951,6 +2083,11 @@ module Aws::Bedrock
1951
2083
  class StopModelInvocationJobResponse < Aws::EmptyStructure
1952
2084
  end
1953
2085
 
2086
+ class SupportTerm
2087
+ attr_accessor refund_policy_description: ::String
2088
+ SENSITIVE: []
2089
+ end
2090
+
1954
2091
  class Tag
1955
2092
  attr_accessor key: ::String
1956
2093
  attr_accessor value: ::String
@@ -1972,6 +2109,14 @@ module Aws::Bedrock
1972
2109
  SENSITIVE: []
1973
2110
  end
1974
2111
 
2112
+ class TermDetails
2113
+ attr_accessor usage_based_pricing_term: Types::PricingTerm
2114
+ attr_accessor legal_term: Types::LegalTerm
2115
+ attr_accessor support_term: Types::SupportTerm
2116
+ attr_accessor validity_term: Types::ValidityTerm
2117
+ SENSITIVE: []
2118
+ end
2119
+
1975
2120
  class TextInferenceConfig
1976
2121
  attr_accessor temperature: ::Float
1977
2122
  attr_accessor top_p: ::Float
@@ -2091,6 +2236,30 @@ module Aws::Bedrock
2091
2236
  SENSITIVE: []
2092
2237
  end
2093
2238
 
2239
+ class ValidityTerm
2240
+ attr_accessor agreement_duration: ::String
2241
+ SENSITIVE: []
2242
+ end
2243
+
2244
+ class VectorSearchBedrockRerankingConfiguration
2245
+ attr_accessor model_configuration: Types::VectorSearchBedrockRerankingModelConfiguration
2246
+ attr_accessor number_of_reranked_results: ::Integer
2247
+ attr_accessor metadata_configuration: Types::MetadataConfigurationForReranking
2248
+ SENSITIVE: []
2249
+ end
2250
+
2251
+ class VectorSearchBedrockRerankingModelConfiguration
2252
+ attr_accessor model_arn: ::String
2253
+ attr_accessor additional_model_request_fields: ::Hash[::String, untyped]
2254
+ SENSITIVE: []
2255
+ end
2256
+
2257
+ class VectorSearchRerankingConfiguration
2258
+ attr_accessor type: ("BEDROCK_RERANKING_MODEL")
2259
+ attr_accessor bedrock_reranking_configuration: Types::VectorSearchBedrockRerankingConfiguration
2260
+ SENSITIVE: []
2261
+ end
2262
+
2094
2263
  class VpcConfig
2095
2264
  attr_accessor subnet_ids: ::Array[::String]
2096
2265
  attr_accessor security_group_ids: ::Array[::String]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.51.0
4
+ version: 1.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services