aws-sdk-bedrock 1.46.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/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
@@ -85,6 +91,21 @@ module Aws::Bedrock
85
91
  SENSITIVE: []
86
92
  end
87
93
 
94
+ class CreateCustomModelRequest
95
+ attr_accessor model_name: ::String
96
+ attr_accessor model_source_config: Types::ModelDataSource
97
+ attr_accessor model_kms_key_arn: ::String
98
+ attr_accessor role_arn: ::String
99
+ attr_accessor model_tags: ::Array[Types::Tag]
100
+ attr_accessor client_request_token: ::String
101
+ SENSITIVE: []
102
+ end
103
+
104
+ class CreateCustomModelResponse
105
+ attr_accessor model_arn: ::String
106
+ SENSITIVE: []
107
+ end
108
+
88
109
  class CreateEvaluationJobRequest
89
110
  attr_accessor job_name: ::String
90
111
  attr_accessor job_description: ::String
@@ -104,6 +125,17 @@ module Aws::Bedrock
104
125
  SENSITIVE: []
105
126
  end
106
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
+
107
139
  class CreateGuardrailRequest
108
140
  attr_accessor name: ::String
109
141
  attr_accessor description: ::String
@@ -192,7 +224,7 @@ module Aws::Bedrock
192
224
  attr_accessor role_arn: ::String
193
225
  attr_accessor client_request_token: ::String
194
226
  attr_accessor base_model_identifier: ::String
195
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
227
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
196
228
  attr_accessor custom_model_kms_key_id: ::String
197
229
  attr_accessor job_tags: ::Array[Types::Tag]
198
230
  attr_accessor custom_model_tags: ::Array[Types::Tag]
@@ -300,8 +332,9 @@ module Aws::Bedrock
300
332
  attr_accessor creation_time: ::Time
301
333
  attr_accessor base_model_arn: ::String
302
334
  attr_accessor base_model_name: ::String
303
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
335
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
304
336
  attr_accessor owner_account_id: ::String
337
+ attr_accessor model_status: ("Active" | "Creating" | "Failed")
305
338
  SENSITIVE: []
306
339
  end
307
340
 
@@ -337,6 +370,14 @@ module Aws::Bedrock
337
370
  class DeleteCustomModelResponse < Aws::EmptyStructure
338
371
  end
339
372
 
373
+ class DeleteFoundationModelAgreementRequest
374
+ attr_accessor model_id: ::String
375
+ SENSITIVE: []
376
+ end
377
+
378
+ class DeleteFoundationModelAgreementResponse < Aws::EmptyStructure
379
+ end
380
+
340
381
  class DeleteGuardrailRequest
341
382
  attr_accessor guardrail_identifier: ::String
342
383
  attr_accessor guardrail_version: ::String
@@ -400,6 +441,14 @@ module Aws::Bedrock
400
441
  class DeregisterMarketplaceModelEndpointResponse < Aws::EmptyStructure
401
442
  end
402
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
+
403
452
  class DistillationConfig
404
453
  attr_accessor teacher_model_config: Types::TeacherModelConfig
405
454
  SENSITIVE: []
@@ -590,6 +639,11 @@ module Aws::Bedrock
590
639
  SENSITIVE: []
591
640
  end
592
641
 
642
+ class FieldForReranking
643
+ attr_accessor field_name: ::String
644
+ SENSITIVE: []
645
+ end
646
+
593
647
  class FilterAttribute
594
648
  attr_accessor key: ::String
595
649
  attr_accessor value: untyped
@@ -648,7 +702,7 @@ module Aws::Bedrock
648
702
  attr_accessor job_name: ::String
649
703
  attr_accessor job_arn: ::String
650
704
  attr_accessor base_model_arn: ::String
651
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
705
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
652
706
  attr_accessor model_kms_key_arn: ::String
653
707
  attr_accessor hyper_parameters: ::Hash[::String, ::String]
654
708
  attr_accessor training_data_config: Types::TrainingDataConfig
@@ -658,6 +712,8 @@ module Aws::Bedrock
658
712
  attr_accessor validation_metrics: ::Array[Types::ValidatorMetric]
659
713
  attr_accessor creation_time: ::Time
660
714
  attr_accessor customization_config: Types::CustomizationConfig
715
+ attr_accessor model_status: ("Active" | "Creating" | "Failed")
716
+ attr_accessor failure_message: ::String
661
717
  SENSITIVE: []
662
718
  end
663
719
 
@@ -684,6 +740,20 @@ module Aws::Bedrock
684
740
  SENSITIVE: [:job_description]
685
741
  end
686
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
+
687
757
  class GetFoundationModelRequest
688
758
  attr_accessor model_identifier: ::String
689
759
  SENSITIVE: []
@@ -803,8 +873,8 @@ module Aws::Bedrock
803
873
  attr_accessor client_request_token: ::String
804
874
  attr_accessor role_arn: ::String
805
875
  attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
806
- attr_accessor failure_message: ::String
807
876
  attr_accessor status_details: Types::StatusDetails
877
+ attr_accessor failure_message: ::String
808
878
  attr_accessor creation_time: ::Time
809
879
  attr_accessor last_modified_time: ::Time
810
880
  attr_accessor end_time: ::Time
@@ -813,7 +883,7 @@ module Aws::Bedrock
813
883
  attr_accessor training_data_config: Types::TrainingDataConfig
814
884
  attr_accessor validation_data_config: Types::ValidationDataConfig
815
885
  attr_accessor output_data_config: Types::OutputDataConfig
816
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
886
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
817
887
  attr_accessor output_model_kms_key_arn: ::String
818
888
  attr_accessor training_metrics: Types::TrainingMetrics
819
889
  attr_accessor validation_metrics: ::Array[Types::ValidatorMetric]
@@ -917,6 +987,14 @@ module Aws::Bedrock
917
987
  SENSITIVE: []
918
988
  end
919
989
 
990
+ class GetUseCaseForModelAccessRequest < Aws::EmptyStructure
991
+ end
992
+
993
+ class GetUseCaseForModelAccessResponse
994
+ attr_accessor form_data: ::String
995
+ SENSITIVE: []
996
+ end
997
+
920
998
  class GuardrailConfiguration
921
999
  attr_accessor guardrail_id: ::String
922
1000
  attr_accessor guardrail_version: ::String
@@ -949,13 +1027,25 @@ module Aws::Bedrock
949
1027
  SENSITIVE: [:input_action, :output_action]
950
1028
  end
951
1029
 
1030
+ class GuardrailContentFiltersTier
1031
+ attr_accessor tier_name: ("CLASSIC" | "STANDARD")
1032
+ SENSITIVE: [:tier_name]
1033
+ end
1034
+
1035
+ class GuardrailContentFiltersTierConfig
1036
+ attr_accessor tier_name: ("CLASSIC" | "STANDARD")
1037
+ SENSITIVE: [:tier_name]
1038
+ end
1039
+
952
1040
  class GuardrailContentPolicy
953
1041
  attr_accessor filters: ::Array[Types::GuardrailContentFilter]
1042
+ attr_accessor tier: Types::GuardrailContentFiltersTier
954
1043
  SENSITIVE: []
955
1044
  end
956
1045
 
957
1046
  class GuardrailContentPolicyConfig
958
1047
  attr_accessor filters_config: ::Array[Types::GuardrailContentFilterConfig]
1048
+ attr_accessor tier_config: Types::GuardrailContentFiltersTierConfig
959
1049
  SENSITIVE: []
960
1050
  end
961
1051
 
@@ -1109,14 +1199,26 @@ module Aws::Bedrock
1109
1199
 
1110
1200
  class GuardrailTopicPolicy
1111
1201
  attr_accessor topics: ::Array[Types::GuardrailTopic]
1202
+ attr_accessor tier: Types::GuardrailTopicsTier
1112
1203
  SENSITIVE: []
1113
1204
  end
1114
1205
 
1115
1206
  class GuardrailTopicPolicyConfig
1116
1207
  attr_accessor topics_config: ::Array[Types::GuardrailTopicConfig]
1208
+ attr_accessor tier_config: Types::GuardrailTopicsTierConfig
1117
1209
  SENSITIVE: []
1118
1210
  end
1119
1211
 
1212
+ class GuardrailTopicsTier
1213
+ attr_accessor tier_name: ("CLASSIC" | "STANDARD")
1214
+ SENSITIVE: [:tier_name]
1215
+ end
1216
+
1217
+ class GuardrailTopicsTierConfig
1218
+ attr_accessor tier_name: ("CLASSIC" | "STANDARD")
1219
+ SENSITIVE: [:tier_name]
1220
+ end
1221
+
1120
1222
  class GuardrailWord
1121
1223
  attr_accessor text: ::String
1122
1224
  attr_accessor input_action: ("BLOCK" | "NONE")
@@ -1167,6 +1269,12 @@ module Aws::Bedrock
1167
1269
  SENSITIVE: [:instructions]
1168
1270
  end
1169
1271
 
1272
+ class ImplicitFilterConfiguration
1273
+ attr_accessor metadata_attributes: ::Array[Types::MetadataAttributeSchema]
1274
+ attr_accessor model_arn: ::String
1275
+ SENSITIVE: []
1276
+ end
1277
+
1170
1278
  class ImportedModelSummary
1171
1279
  attr_accessor model_arn: ::String
1172
1280
  attr_accessor model_name: ::String
@@ -1265,9 +1373,16 @@ module Aws::Bedrock
1265
1373
  attr_accessor number_of_results: ::Integer
1266
1374
  attr_accessor override_search_type: ("HYBRID" | "SEMANTIC")
1267
1375
  attr_accessor filter: Types::RetrievalFilter
1376
+ attr_accessor implicit_filter_configuration: Types::ImplicitFilterConfiguration
1377
+ attr_accessor reranking_configuration: Types::VectorSearchRerankingConfiguration
1268
1378
  SENSITIVE: [:filter]
1269
1379
  end
1270
1380
 
1381
+ class LegalTerm
1382
+ attr_accessor url: ::String
1383
+ SENSITIVE: []
1384
+ end
1385
+
1271
1386
  class ListCustomModelsRequest
1272
1387
  attr_accessor creation_time_before: ::Time
1273
1388
  attr_accessor creation_time_after: ::Time
@@ -1279,6 +1394,7 @@ module Aws::Bedrock
1279
1394
  attr_accessor sort_by: ("CreationTime")
1280
1395
  attr_accessor sort_order: ("Ascending" | "Descending")
1281
1396
  attr_accessor is_owned: bool
1397
+ attr_accessor model_status: ("Active" | "Creating" | "Failed")
1282
1398
  SENSITIVE: []
1283
1399
  end
1284
1400
 
@@ -1307,6 +1423,18 @@ module Aws::Bedrock
1307
1423
  SENSITIVE: []
1308
1424
  end
1309
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
+
1310
1438
  class ListFoundationModelsRequest
1311
1439
  attr_accessor by_provider: ::String
1312
1440
  attr_accessor by_customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
@@ -1525,6 +1653,19 @@ module Aws::Bedrock
1525
1653
  SENSITIVE: []
1526
1654
  end
1527
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
+
1528
1669
  class ModelCopyJobSummary
1529
1670
  attr_accessor job_arn: ::String
1530
1671
  attr_accessor status: ("InProgress" | "Completed" | "Failed")
@@ -1545,13 +1686,13 @@ module Aws::Bedrock
1545
1686
  attr_accessor base_model_arn: ::String
1546
1687
  attr_accessor job_name: ::String
1547
1688
  attr_accessor status: ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
1548
- attr_accessor last_modified_time: ::Time
1549
1689
  attr_accessor status_details: Types::StatusDetails
1690
+ attr_accessor last_modified_time: ::Time
1550
1691
  attr_accessor creation_time: ::Time
1551
1692
  attr_accessor end_time: ::Time
1552
1693
  attr_accessor custom_model_arn: ::String
1553
1694
  attr_accessor custom_model_name: ::String
1554
- attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
1695
+ attr_accessor customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
1555
1696
  SENSITIVE: []
1556
1697
  end
1557
1698
 
@@ -1633,6 +1774,13 @@ module Aws::Bedrock
1633
1774
  SENSITIVE: [:message]
1634
1775
  end
1635
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
+
1636
1784
  class OrchestrationConfiguration
1637
1785
  attr_accessor query_transformation_configuration: Types::QueryTransformationConfiguration
1638
1786
  SENSITIVE: []
@@ -1648,6 +1796,11 @@ module Aws::Bedrock
1648
1796
  SENSITIVE: []
1649
1797
  end
1650
1798
 
1799
+ class PricingTerm
1800
+ attr_accessor rate_card: ::Array[Types::DimensionalPriceRate]
1801
+ SENSITIVE: []
1802
+ end
1803
+
1651
1804
  class PromptRouterSummary
1652
1805
  attr_accessor prompt_router_name: ::String
1653
1806
  attr_accessor routing_criteria: Types::RoutingCriteria
@@ -1696,6 +1849,14 @@ module Aws::Bedrock
1696
1849
  class PutModelInvocationLoggingConfigurationResponse < Aws::EmptyStructure
1697
1850
  end
1698
1851
 
1852
+ class PutUseCaseForModelAccessRequest
1853
+ attr_accessor form_data: ::String
1854
+ SENSITIVE: []
1855
+ end
1856
+
1857
+ class PutUseCaseForModelAccessResponse < Aws::EmptyStructure
1858
+ end
1859
+
1699
1860
  class QueryTransformationConfiguration
1700
1861
  attr_accessor type: ("QUERY_DECOMPOSITION")
1701
1862
  SENSITIVE: []
@@ -1772,6 +1933,20 @@ module Aws::Bedrock
1772
1933
  end
1773
1934
  end
1774
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
+
1775
1950
  class ResourceNotFoundException
1776
1951
  attr_accessor message: ::String
1777
1952
  SENSITIVE: []
@@ -1908,6 +2083,11 @@ module Aws::Bedrock
1908
2083
  class StopModelInvocationJobResponse < Aws::EmptyStructure
1909
2084
  end
1910
2085
 
2086
+ class SupportTerm
2087
+ attr_accessor refund_policy_description: ::String
2088
+ SENSITIVE: []
2089
+ end
2090
+
1911
2091
  class Tag
1912
2092
  attr_accessor key: ::String
1913
2093
  attr_accessor value: ::String
@@ -1929,6 +2109,14 @@ module Aws::Bedrock
1929
2109
  SENSITIVE: []
1930
2110
  end
1931
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
+
1932
2120
  class TextInferenceConfig
1933
2121
  attr_accessor temperature: ::Float
1934
2122
  attr_accessor top_p: ::Float
@@ -2048,6 +2236,30 @@ module Aws::Bedrock
2048
2236
  SENSITIVE: []
2049
2237
  end
2050
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
+
2051
2263
  class VpcConfig
2052
2264
  attr_accessor subnet_ids: ::Array[::String]
2053
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.46.0
4
+ version: 1.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.216.0
21
+ version: 3.225.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.216.0
31
+ version: 3.225.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - ">="
86
86
  - !ruby/object:Gem::Version
87
- version: '2.5'
87
+ version: '2.7'
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ">="