aws-sdk-bedrock 1.50.0 → 1.52.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
@@ -447,6 +447,17 @@ module Aws
447
447
  ) -> _CreateEvaluationJobResponseSuccess
448
448
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEvaluationJobResponseSuccess
449
449
 
450
+ interface _CreateFoundationModelAgreementResponseSuccess
451
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateFoundationModelAgreementResponse]
452
+ def model_id: () -> ::String
453
+ end
454
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_foundation_model_agreement-instance_method
455
+ def create_foundation_model_agreement: (
456
+ offer_token: ::String,
457
+ model_id: ::String
458
+ ) -> _CreateFoundationModelAgreementResponseSuccess
459
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFoundationModelAgreementResponseSuccess
460
+
450
461
  interface _CreateGuardrailResponseSuccess
451
462
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateGuardrailResponse]
452
463
  def guardrail_id: () -> ::String
@@ -470,7 +481,10 @@ module Aws
470
481
  input_enabled: bool?,
471
482
  output_enabled: bool?
472
483
  },
473
- ]
484
+ ],
485
+ tier_config: {
486
+ tier_name: ("CLASSIC" | "STANDARD")
487
+ }?
474
488
  },
475
489
  ?content_policy_config: {
476
490
  filters_config: Array[
@@ -485,7 +499,10 @@ module Aws
485
499
  input_enabled: bool?,
486
500
  output_enabled: bool?
487
501
  },
488
- ]
502
+ ],
503
+ tier_config: {
504
+ tier_name: ("CLASSIC" | "STANDARD")
505
+ }?
489
506
  },
490
507
  ?word_policy_config: {
491
508
  words_config: Array[
@@ -849,6 +866,15 @@ module Aws
849
866
  ) -> _DeleteCustomModelResponseSuccess
850
867
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelResponseSuccess
851
868
 
869
+ interface _DeleteFoundationModelAgreementResponseSuccess
870
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFoundationModelAgreementResponse]
871
+ end
872
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_foundation_model_agreement-instance_method
873
+ def delete_foundation_model_agreement: (
874
+ model_id: ::String
875
+ ) -> _DeleteFoundationModelAgreementResponseSuccess
876
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteFoundationModelAgreementResponseSuccess
877
+
852
878
  interface _DeleteGuardrailResponseSuccess
853
879
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteGuardrailResponse]
854
880
  end
@@ -980,6 +1006,20 @@ module Aws
980
1006
  ) -> _GetFoundationModelResponseSuccess
981
1007
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFoundationModelResponseSuccess
982
1008
 
1009
+ interface _GetFoundationModelAvailabilityResponseSuccess
1010
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetFoundationModelAvailabilityResponse]
1011
+ def model_id: () -> ::String
1012
+ def agreement_availability: () -> Types::AgreementAvailability
1013
+ def authorization_status: () -> ("AUTHORIZED" | "NOT_AUTHORIZED")
1014
+ def entitlement_availability: () -> ("AVAILABLE" | "NOT_AVAILABLE")
1015
+ def region_availability: () -> ("AVAILABLE" | "NOT_AVAILABLE")
1016
+ end
1017
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_foundation_model_availability-instance_method
1018
+ def get_foundation_model_availability: (
1019
+ model_id: ::String
1020
+ ) -> _GetFoundationModelAvailabilityResponseSuccess
1021
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFoundationModelAvailabilityResponseSuccess
1022
+
983
1023
  interface _GetGuardrailResponseSuccess
984
1024
  include ::Seahorse::Client::_ResponseSuccess[Types::GetGuardrailResponse]
985
1025
  def name: () -> ::String
@@ -1204,6 +1244,15 @@ module Aws
1204
1244
  ) -> _GetProvisionedModelThroughputResponseSuccess
1205
1245
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedModelThroughputResponseSuccess
1206
1246
 
1247
+ interface _GetUseCaseForModelAccessResponseSuccess
1248
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetUseCaseForModelAccessResponse]
1249
+ def form_data: () -> ::String
1250
+ end
1251
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_use_case_for_model_access-instance_method
1252
+ def get_use_case_for_model_access: (
1253
+ ) -> _GetUseCaseForModelAccessResponseSuccess
1254
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetUseCaseForModelAccessResponseSuccess
1255
+
1207
1256
  interface _ListCustomModelsResponseSuccess
1208
1257
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelsResponse]
1209
1258
  def next_token: () -> ::String
@@ -1244,6 +1293,18 @@ module Aws
1244
1293
  ) -> _ListEvaluationJobsResponseSuccess
1245
1294
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEvaluationJobsResponseSuccess
1246
1295
 
1296
+ interface _ListFoundationModelAgreementOffersResponseSuccess
1297
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListFoundationModelAgreementOffersResponse]
1298
+ def model_id: () -> ::String
1299
+ def offers: () -> ::Array[Types::Offer]
1300
+ end
1301
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_foundation_model_agreement_offers-instance_method
1302
+ def list_foundation_model_agreement_offers: (
1303
+ model_id: ::String,
1304
+ ?offer_type: ("ALL" | "PUBLIC")
1305
+ ) -> _ListFoundationModelAgreementOffersResponseSuccess
1306
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFoundationModelAgreementOffersResponseSuccess
1307
+
1247
1308
  interface _ListFoundationModelsResponseSuccess
1248
1309
  include ::Seahorse::Client::_ResponseSuccess[Types::ListFoundationModelsResponse]
1249
1310
  def model_summaries: () -> ::Array[Types::FoundationModelSummary]
@@ -1455,6 +1516,15 @@ module Aws
1455
1516
  ) -> _PutModelInvocationLoggingConfigurationResponseSuccess
1456
1517
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutModelInvocationLoggingConfigurationResponseSuccess
1457
1518
 
1519
+ interface _PutUseCaseForModelAccessResponseSuccess
1520
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutUseCaseForModelAccessResponse]
1521
+ end
1522
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#put_use_case_for_model_access-instance_method
1523
+ def put_use_case_for_model_access: (
1524
+ form_data: ::String
1525
+ ) -> _PutUseCaseForModelAccessResponseSuccess
1526
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutUseCaseForModelAccessResponseSuccess
1527
+
1458
1528
  interface _RegisterMarketplaceModelEndpointResponseSuccess
1459
1529
  include ::Seahorse::Client::_ResponseSuccess[Types::RegisterMarketplaceModelEndpointResponse]
1460
1530
  def marketplace_model_endpoint: () -> Types::MarketplaceModelEndpoint
@@ -1542,7 +1612,10 @@ module Aws
1542
1612
  input_enabled: bool?,
1543
1613
  output_enabled: bool?
1544
1614
  },
1545
- ]
1615
+ ],
1616
+ tier_config: {
1617
+ tier_name: ("CLASSIC" | "STANDARD")
1618
+ }?
1546
1619
  },
1547
1620
  ?content_policy_config: {
1548
1621
  filters_config: Array[
@@ -1557,7 +1630,10 @@ module Aws
1557
1630
  input_enabled: bool?,
1558
1631
  output_enabled: bool?
1559
1632
  },
1560
- ]
1633
+ ],
1634
+ tier_config: {
1635
+ tier_name: ("CLASSIC" | "STANDARD")
1636
+ }?
1561
1637
  },
1562
1638
  ?word_policy_config: {
1563
1639
  words_config: Array[
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: []
@@ -702,6 +735,20 @@ module Aws::Bedrock
702
735
  SENSITIVE: [:job_description]
703
736
  end
704
737
 
738
+ class GetFoundationModelAvailabilityRequest
739
+ attr_accessor model_id: ::String
740
+ SENSITIVE: []
741
+ end
742
+
743
+ class GetFoundationModelAvailabilityResponse
744
+ attr_accessor model_id: ::String
745
+ attr_accessor agreement_availability: Types::AgreementAvailability
746
+ attr_accessor authorization_status: ("AUTHORIZED" | "NOT_AUTHORIZED")
747
+ attr_accessor entitlement_availability: ("AVAILABLE" | "NOT_AVAILABLE")
748
+ attr_accessor region_availability: ("AVAILABLE" | "NOT_AVAILABLE")
749
+ SENSITIVE: []
750
+ end
751
+
705
752
  class GetFoundationModelRequest
706
753
  attr_accessor model_identifier: ::String
707
754
  SENSITIVE: []
@@ -935,6 +982,14 @@ module Aws::Bedrock
935
982
  SENSITIVE: []
936
983
  end
937
984
 
985
+ class GetUseCaseForModelAccessRequest < Aws::EmptyStructure
986
+ end
987
+
988
+ class GetUseCaseForModelAccessResponse
989
+ attr_accessor form_data: ::String
990
+ SENSITIVE: []
991
+ end
992
+
938
993
  class GuardrailConfiguration
939
994
  attr_accessor guardrail_id: ::String
940
995
  attr_accessor guardrail_version: ::String
@@ -967,13 +1022,25 @@ module Aws::Bedrock
967
1022
  SENSITIVE: [:input_action, :output_action]
968
1023
  end
969
1024
 
1025
+ class GuardrailContentFiltersTier
1026
+ attr_accessor tier_name: ("CLASSIC" | "STANDARD")
1027
+ SENSITIVE: [:tier_name]
1028
+ end
1029
+
1030
+ class GuardrailContentFiltersTierConfig
1031
+ attr_accessor tier_name: ("CLASSIC" | "STANDARD")
1032
+ SENSITIVE: [:tier_name]
1033
+ end
1034
+
970
1035
  class GuardrailContentPolicy
971
1036
  attr_accessor filters: ::Array[Types::GuardrailContentFilter]
1037
+ attr_accessor tier: Types::GuardrailContentFiltersTier
972
1038
  SENSITIVE: []
973
1039
  end
974
1040
 
975
1041
  class GuardrailContentPolicyConfig
976
1042
  attr_accessor filters_config: ::Array[Types::GuardrailContentFilterConfig]
1043
+ attr_accessor tier_config: Types::GuardrailContentFiltersTierConfig
977
1044
  SENSITIVE: []
978
1045
  end
979
1046
 
@@ -1127,14 +1194,26 @@ module Aws::Bedrock
1127
1194
 
1128
1195
  class GuardrailTopicPolicy
1129
1196
  attr_accessor topics: ::Array[Types::GuardrailTopic]
1197
+ attr_accessor tier: Types::GuardrailTopicsTier
1130
1198
  SENSITIVE: []
1131
1199
  end
1132
1200
 
1133
1201
  class GuardrailTopicPolicyConfig
1134
1202
  attr_accessor topics_config: ::Array[Types::GuardrailTopicConfig]
1203
+ attr_accessor tier_config: Types::GuardrailTopicsTierConfig
1135
1204
  SENSITIVE: []
1136
1205
  end
1137
1206
 
1207
+ class GuardrailTopicsTier
1208
+ attr_accessor tier_name: ("CLASSIC" | "STANDARD")
1209
+ SENSITIVE: [:tier_name]
1210
+ end
1211
+
1212
+ class GuardrailTopicsTierConfig
1213
+ attr_accessor tier_name: ("CLASSIC" | "STANDARD")
1214
+ SENSITIVE: [:tier_name]
1215
+ end
1216
+
1138
1217
  class GuardrailWord
1139
1218
  attr_accessor text: ::String
1140
1219
  attr_accessor input_action: ("BLOCK" | "NONE")
@@ -1286,6 +1365,11 @@ module Aws::Bedrock
1286
1365
  SENSITIVE: [:filter]
1287
1366
  end
1288
1367
 
1368
+ class LegalTerm
1369
+ attr_accessor url: ::String
1370
+ SENSITIVE: []
1371
+ end
1372
+
1289
1373
  class ListCustomModelsRequest
1290
1374
  attr_accessor creation_time_before: ::Time
1291
1375
  attr_accessor creation_time_after: ::Time
@@ -1326,6 +1410,18 @@ module Aws::Bedrock
1326
1410
  SENSITIVE: []
1327
1411
  end
1328
1412
 
1413
+ class ListFoundationModelAgreementOffersRequest
1414
+ attr_accessor model_id: ::String
1415
+ attr_accessor offer_type: ("ALL" | "PUBLIC")
1416
+ SENSITIVE: []
1417
+ end
1418
+
1419
+ class ListFoundationModelAgreementOffersResponse
1420
+ attr_accessor model_id: ::String
1421
+ attr_accessor offers: ::Array[Types::Offer]
1422
+ SENSITIVE: []
1423
+ end
1424
+
1329
1425
  class ListFoundationModelsRequest
1330
1426
  attr_accessor by_provider: ::String
1331
1427
  attr_accessor by_customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
@@ -1652,6 +1748,13 @@ module Aws::Bedrock
1652
1748
  SENSITIVE: [:message]
1653
1749
  end
1654
1750
 
1751
+ class Offer
1752
+ attr_accessor offer_id: ::String
1753
+ attr_accessor offer_token: ::String
1754
+ attr_accessor term_details: Types::TermDetails
1755
+ SENSITIVE: []
1756
+ end
1757
+
1655
1758
  class OrchestrationConfiguration
1656
1759
  attr_accessor query_transformation_configuration: Types::QueryTransformationConfiguration
1657
1760
  SENSITIVE: []
@@ -1667,6 +1770,11 @@ module Aws::Bedrock
1667
1770
  SENSITIVE: []
1668
1771
  end
1669
1772
 
1773
+ class PricingTerm
1774
+ attr_accessor rate_card: ::Array[Types::DimensionalPriceRate]
1775
+ SENSITIVE: []
1776
+ end
1777
+
1670
1778
  class PromptRouterSummary
1671
1779
  attr_accessor prompt_router_name: ::String
1672
1780
  attr_accessor routing_criteria: Types::RoutingCriteria
@@ -1715,6 +1823,14 @@ module Aws::Bedrock
1715
1823
  class PutModelInvocationLoggingConfigurationResponse < Aws::EmptyStructure
1716
1824
  end
1717
1825
 
1826
+ class PutUseCaseForModelAccessRequest
1827
+ attr_accessor form_data: ::String
1828
+ SENSITIVE: []
1829
+ end
1830
+
1831
+ class PutUseCaseForModelAccessResponse < Aws::EmptyStructure
1832
+ end
1833
+
1718
1834
  class QueryTransformationConfiguration
1719
1835
  attr_accessor type: ("QUERY_DECOMPOSITION")
1720
1836
  SENSITIVE: []
@@ -1927,6 +2043,11 @@ module Aws::Bedrock
1927
2043
  class StopModelInvocationJobResponse < Aws::EmptyStructure
1928
2044
  end
1929
2045
 
2046
+ class SupportTerm
2047
+ attr_accessor refund_policy_description: ::String
2048
+ SENSITIVE: []
2049
+ end
2050
+
1930
2051
  class Tag
1931
2052
  attr_accessor key: ::String
1932
2053
  attr_accessor value: ::String
@@ -1948,6 +2069,14 @@ module Aws::Bedrock
1948
2069
  SENSITIVE: []
1949
2070
  end
1950
2071
 
2072
+ class TermDetails
2073
+ attr_accessor usage_based_pricing_term: Types::PricingTerm
2074
+ attr_accessor legal_term: Types::LegalTerm
2075
+ attr_accessor support_term: Types::SupportTerm
2076
+ attr_accessor validity_term: Types::ValidityTerm
2077
+ SENSITIVE: []
2078
+ end
2079
+
1951
2080
  class TextInferenceConfig
1952
2081
  attr_accessor temperature: ::Float
1953
2082
  attr_accessor top_p: ::Float
@@ -2067,6 +2196,11 @@ module Aws::Bedrock
2067
2196
  SENSITIVE: []
2068
2197
  end
2069
2198
 
2199
+ class ValidityTerm
2200
+ attr_accessor agreement_duration: ::String
2201
+ SENSITIVE: []
2202
+ end
2203
+
2070
2204
  class VpcConfig
2071
2205
  attr_accessor subnet_ids: ::Array[::String]
2072
2206
  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.50.0
4
+ version: 1.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services