aws-sdk-bedrock 1.46.0 → 1.56.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.
@@ -55,7 +55,7 @@ module Aws::Bedrock
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrock/endpoints'
57
57
 
58
- GEM_VERSION = '1.46.0'
58
+ GEM_VERSION = '1.56.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -18,6 +18,7 @@ module Aws
18
18
  ?account_id: String,
19
19
  ?active_endpoint_cache: bool,
20
20
  ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
21
22
  ?client_side_monitoring: bool,
22
23
  ?client_side_monitoring_client_id: String,
23
24
  ?client_side_monitoring_host: String,
@@ -88,6 +89,49 @@ module Aws
88
89
  ) -> _BatchDeleteEvaluationJobResponseSuccess
89
90
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchDeleteEvaluationJobResponseSuccess
90
91
 
92
+ interface _CreateCustomModelResponseSuccess
93
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomModelResponse]
94
+ def model_arn: () -> ::String
95
+ end
96
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_custom_model-instance_method
97
+ def create_custom_model: (
98
+ model_name: ::String,
99
+ model_source_config: {
100
+ s3_data_source: {
101
+ s3_uri: ::String
102
+ }?
103
+ },
104
+ ?model_kms_key_arn: ::String,
105
+ ?role_arn: ::String,
106
+ ?model_tags: Array[
107
+ {
108
+ key: ::String,
109
+ value: ::String
110
+ },
111
+ ],
112
+ ?client_request_token: ::String
113
+ ) -> _CreateCustomModelResponseSuccess
114
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelResponseSuccess
115
+
116
+ interface _CreateCustomModelDeploymentResponseSuccess
117
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomModelDeploymentResponse]
118
+ def custom_model_deployment_arn: () -> ::String
119
+ end
120
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_custom_model_deployment-instance_method
121
+ def create_custom_model_deployment: (
122
+ model_deployment_name: ::String,
123
+ model_arn: ::String,
124
+ ?description: ::String,
125
+ ?tags: Array[
126
+ {
127
+ key: ::String,
128
+ value: ::String
129
+ },
130
+ ],
131
+ ?client_request_token: ::String
132
+ ) -> _CreateCustomModelDeploymentResponseSuccess
133
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCustomModelDeploymentResponseSuccess
134
+
91
135
  interface _CreateEvaluationJobResponseSuccess
92
136
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateEvaluationJobResponse]
93
137
  def job_arn: () -> ::String
@@ -266,6 +310,42 @@ module Aws
266
310
  or_all: Array[
267
311
  untyped,
268
312
  ]?
313
+ }?,
314
+ implicit_filter_configuration: {
315
+ metadata_attributes: Array[
316
+ {
317
+ key: ::String,
318
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
319
+ description: ::String
320
+ },
321
+ ],
322
+ model_arn: ::String
323
+ }?,
324
+ reranking_configuration: {
325
+ type: ("BEDROCK_RERANKING_MODEL"),
326
+ bedrock_reranking_configuration: {
327
+ model_configuration: {
328
+ model_arn: ::String,
329
+ additional_model_request_fields: Hash[::String, {
330
+ }]?
331
+ },
332
+ number_of_reranked_results: ::Integer?,
333
+ metadata_configuration: {
334
+ selection_mode: ("SELECTIVE" | "ALL"),
335
+ selective_mode_configuration: {
336
+ fields_to_include: Array[
337
+ {
338
+ field_name: ::String
339
+ },
340
+ ]?,
341
+ fields_to_exclude: Array[
342
+ {
343
+ field_name: ::String
344
+ },
345
+ ]?
346
+ }?
347
+ }?
348
+ }?
269
349
  }?
270
350
  }
271
351
  }
@@ -341,6 +421,42 @@ module Aws
341
421
  or_all: Array[
342
422
  untyped,
343
423
  ]?
424
+ }?,
425
+ implicit_filter_configuration: {
426
+ metadata_attributes: Array[
427
+ {
428
+ key: ::String,
429
+ type: ("STRING" | "NUMBER" | "BOOLEAN" | "STRING_LIST"),
430
+ description: ::String
431
+ },
432
+ ],
433
+ model_arn: ::String
434
+ }?,
435
+ reranking_configuration: {
436
+ type: ("BEDROCK_RERANKING_MODEL"),
437
+ bedrock_reranking_configuration: {
438
+ model_configuration: {
439
+ model_arn: ::String,
440
+ additional_model_request_fields: Hash[::String, {
441
+ }]?
442
+ },
443
+ number_of_reranked_results: ::Integer?,
444
+ metadata_configuration: {
445
+ selection_mode: ("SELECTIVE" | "ALL"),
446
+ selective_mode_configuration: {
447
+ fields_to_include: Array[
448
+ {
449
+ field_name: ::String
450
+ },
451
+ ]?,
452
+ fields_to_exclude: Array[
453
+ {
454
+ field_name: ::String
455
+ },
456
+ ]?
457
+ }?
458
+ }?
459
+ }?
344
460
  }?
345
461
  }
346
462
  }?,
@@ -423,6 +539,17 @@ module Aws
423
539
  ) -> _CreateEvaluationJobResponseSuccess
424
540
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEvaluationJobResponseSuccess
425
541
 
542
+ interface _CreateFoundationModelAgreementResponseSuccess
543
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateFoundationModelAgreementResponse]
544
+ def model_id: () -> ::String
545
+ end
546
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#create_foundation_model_agreement-instance_method
547
+ def create_foundation_model_agreement: (
548
+ offer_token: ::String,
549
+ model_id: ::String
550
+ ) -> _CreateFoundationModelAgreementResponseSuccess
551
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateFoundationModelAgreementResponseSuccess
552
+
426
553
  interface _CreateGuardrailResponseSuccess
427
554
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateGuardrailResponse]
428
555
  def guardrail_id: () -> ::String
@@ -446,7 +573,10 @@ module Aws
446
573
  input_enabled: bool?,
447
574
  output_enabled: bool?
448
575
  },
449
- ]
576
+ ],
577
+ tier_config: {
578
+ tier_name: ("CLASSIC" | "STANDARD")
579
+ }?
450
580
  },
451
581
  ?content_policy_config: {
452
582
  filters_config: Array[
@@ -461,7 +591,10 @@ module Aws
461
591
  input_enabled: bool?,
462
592
  output_enabled: bool?
463
593
  },
464
- ]
594
+ ],
595
+ tier_config: {
596
+ tier_name: ("CLASSIC" | "STANDARD")
597
+ }?
465
598
  },
466
599
  ?word_policy_config: {
467
600
  words_config: Array[
@@ -629,7 +762,7 @@ module Aws
629
762
  role_arn: ::String,
630
763
  ?client_request_token: ::String,
631
764
  base_model_identifier: ::String,
632
- ?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION"),
765
+ ?customization_type: ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED"),
633
766
  ?custom_model_kms_key_id: ::String,
634
767
  ?job_tags: Array[
635
768
  {
@@ -825,6 +958,24 @@ module Aws
825
958
  ) -> _DeleteCustomModelResponseSuccess
826
959
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelResponseSuccess
827
960
 
961
+ interface _DeleteCustomModelDeploymentResponseSuccess
962
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCustomModelDeploymentResponse]
963
+ end
964
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_custom_model_deployment-instance_method
965
+ def delete_custom_model_deployment: (
966
+ custom_model_deployment_identifier: ::String
967
+ ) -> _DeleteCustomModelDeploymentResponseSuccess
968
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCustomModelDeploymentResponseSuccess
969
+
970
+ interface _DeleteFoundationModelAgreementResponseSuccess
971
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFoundationModelAgreementResponse]
972
+ end
973
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_foundation_model_agreement-instance_method
974
+ def delete_foundation_model_agreement: (
975
+ model_id: ::String
976
+ ) -> _DeleteFoundationModelAgreementResponseSuccess
977
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteFoundationModelAgreementResponseSuccess
978
+
828
979
  interface _DeleteGuardrailResponseSuccess
829
980
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteGuardrailResponse]
830
981
  end
@@ -904,7 +1055,7 @@ module Aws
904
1055
  def job_name: () -> ::String
905
1056
  def job_arn: () -> ::String
906
1057
  def base_model_arn: () -> ::String
907
- def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
1058
+ def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
908
1059
  def model_kms_key_arn: () -> ::String
909
1060
  def hyper_parameters: () -> ::Hash[::String, ::String]
910
1061
  def training_data_config: () -> Types::TrainingDataConfig
@@ -914,6 +1065,8 @@ module Aws
914
1065
  def validation_metrics: () -> ::Array[Types::ValidatorMetric]
915
1066
  def creation_time: () -> ::Time
916
1067
  def customization_config: () -> Types::CustomizationConfig
1068
+ def model_status: () -> ("Active" | "Creating" | "Failed")
1069
+ def failure_message: () -> ::String
917
1070
  end
918
1071
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_custom_model-instance_method
919
1072
  def get_custom_model: (
@@ -921,6 +1074,23 @@ module Aws
921
1074
  ) -> _GetCustomModelResponseSuccess
922
1075
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCustomModelResponseSuccess
923
1076
 
1077
+ interface _GetCustomModelDeploymentResponseSuccess
1078
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCustomModelDeploymentResponse]
1079
+ def custom_model_deployment_arn: () -> ::String
1080
+ def model_deployment_name: () -> ::String
1081
+ def model_arn: () -> ::String
1082
+ def created_at: () -> ::Time
1083
+ def status: () -> ("Creating" | "Active" | "Failed")
1084
+ def description: () -> ::String
1085
+ def failure_message: () -> ::String
1086
+ def last_updated_at: () -> ::Time
1087
+ end
1088
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_custom_model_deployment-instance_method
1089
+ def get_custom_model_deployment: (
1090
+ custom_model_deployment_identifier: ::String
1091
+ ) -> _GetCustomModelDeploymentResponseSuccess
1092
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCustomModelDeploymentResponseSuccess
1093
+
924
1094
  interface _GetEvaluationJobResponseSuccess
925
1095
  include ::Seahorse::Client::_ResponseSuccess[Types::GetEvaluationJobResponse]
926
1096
  def job_name: () -> ::String
@@ -954,6 +1124,20 @@ module Aws
954
1124
  ) -> _GetFoundationModelResponseSuccess
955
1125
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFoundationModelResponseSuccess
956
1126
 
1127
+ interface _GetFoundationModelAvailabilityResponseSuccess
1128
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetFoundationModelAvailabilityResponse]
1129
+ def model_id: () -> ::String
1130
+ def agreement_availability: () -> Types::AgreementAvailability
1131
+ def authorization_status: () -> ("AUTHORIZED" | "NOT_AUTHORIZED")
1132
+ def entitlement_availability: () -> ("AVAILABLE" | "NOT_AVAILABLE")
1133
+ def region_availability: () -> ("AVAILABLE" | "NOT_AVAILABLE")
1134
+ end
1135
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_foundation_model_availability-instance_method
1136
+ def get_foundation_model_availability: (
1137
+ model_id: ::String
1138
+ ) -> _GetFoundationModelAvailabilityResponseSuccess
1139
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFoundationModelAvailabilityResponseSuccess
1140
+
957
1141
  interface _GetGuardrailResponseSuccess
958
1142
  include ::Seahorse::Client::_ResponseSuccess[Types::GetGuardrailResponse]
959
1143
  def name: () -> ::String
@@ -1059,8 +1243,8 @@ module Aws
1059
1243
  def client_request_token: () -> ::String
1060
1244
  def role_arn: () -> ::String
1061
1245
  def status: () -> ("InProgress" | "Completed" | "Failed" | "Stopping" | "Stopped")
1062
- def failure_message: () -> ::String
1063
1246
  def status_details: () -> Types::StatusDetails
1247
+ def failure_message: () -> ::String
1064
1248
  def creation_time: () -> ::Time
1065
1249
  def last_modified_time: () -> ::Time
1066
1250
  def end_time: () -> ::Time
@@ -1069,7 +1253,7 @@ module Aws
1069
1253
  def training_data_config: () -> Types::TrainingDataConfig
1070
1254
  def validation_data_config: () -> Types::ValidationDataConfig
1071
1255
  def output_data_config: () -> Types::OutputDataConfig
1072
- def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION")
1256
+ def customization_type: () -> ("FINE_TUNING" | "CONTINUED_PRE_TRAINING" | "DISTILLATION" | "IMPORTED")
1073
1257
  def output_model_kms_key_arn: () -> ::String
1074
1258
  def training_metrics: () -> Types::TrainingMetrics
1075
1259
  def validation_metrics: () -> ::Array[Types::ValidatorMetric]
@@ -1178,6 +1362,34 @@ module Aws
1178
1362
  ) -> _GetProvisionedModelThroughputResponseSuccess
1179
1363
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedModelThroughputResponseSuccess
1180
1364
 
1365
+ interface _GetUseCaseForModelAccessResponseSuccess
1366
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetUseCaseForModelAccessResponse]
1367
+ def form_data: () -> ::String
1368
+ end
1369
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_use_case_for_model_access-instance_method
1370
+ def get_use_case_for_model_access: (
1371
+ ) -> _GetUseCaseForModelAccessResponseSuccess
1372
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetUseCaseForModelAccessResponseSuccess
1373
+
1374
+ interface _ListCustomModelDeploymentsResponseSuccess
1375
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelDeploymentsResponse]
1376
+ def next_token: () -> ::String
1377
+ def model_deployment_summaries: () -> ::Array[Types::CustomModelDeploymentSummary]
1378
+ end
1379
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_custom_model_deployments-instance_method
1380
+ def list_custom_model_deployments: (
1381
+ ?created_before: ::Time,
1382
+ ?created_after: ::Time,
1383
+ ?name_contains: ::String,
1384
+ ?max_results: ::Integer,
1385
+ ?next_token: ::String,
1386
+ ?sort_by: ("CreationTime"),
1387
+ ?sort_order: ("Ascending" | "Descending"),
1388
+ ?status_equals: ("Creating" | "Active" | "Failed"),
1389
+ ?model_arn_equals: ::String
1390
+ ) -> _ListCustomModelDeploymentsResponseSuccess
1391
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomModelDeploymentsResponseSuccess
1392
+
1181
1393
  interface _ListCustomModelsResponseSuccess
1182
1394
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomModelsResponse]
1183
1395
  def next_token: () -> ::String
@@ -1194,7 +1406,8 @@ module Aws
1194
1406
  ?next_token: ::String,
1195
1407
  ?sort_by: ("CreationTime"),
1196
1408
  ?sort_order: ("Ascending" | "Descending"),
1197
- ?is_owned: bool
1409
+ ?is_owned: bool,
1410
+ ?model_status: ("Active" | "Creating" | "Failed")
1198
1411
  ) -> _ListCustomModelsResponseSuccess
1199
1412
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomModelsResponseSuccess
1200
1413
 
@@ -1217,6 +1430,18 @@ module Aws
1217
1430
  ) -> _ListEvaluationJobsResponseSuccess
1218
1431
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEvaluationJobsResponseSuccess
1219
1432
 
1433
+ interface _ListFoundationModelAgreementOffersResponseSuccess
1434
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListFoundationModelAgreementOffersResponse]
1435
+ def model_id: () -> ::String
1436
+ def offers: () -> ::Array[Types::Offer]
1437
+ end
1438
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#list_foundation_model_agreement_offers-instance_method
1439
+ def list_foundation_model_agreement_offers: (
1440
+ model_id: ::String,
1441
+ ?offer_type: ("ALL" | "PUBLIC")
1442
+ ) -> _ListFoundationModelAgreementOffersResponseSuccess
1443
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFoundationModelAgreementOffersResponseSuccess
1444
+
1220
1445
  interface _ListFoundationModelsResponseSuccess
1221
1446
  include ::Seahorse::Client::_ResponseSuccess[Types::ListFoundationModelsResponse]
1222
1447
  def model_summaries: () -> ::Array[Types::FoundationModelSummary]
@@ -1428,6 +1653,15 @@ module Aws
1428
1653
  ) -> _PutModelInvocationLoggingConfigurationResponseSuccess
1429
1654
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutModelInvocationLoggingConfigurationResponseSuccess
1430
1655
 
1656
+ interface _PutUseCaseForModelAccessResponseSuccess
1657
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutUseCaseForModelAccessResponse]
1658
+ end
1659
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#put_use_case_for_model_access-instance_method
1660
+ def put_use_case_for_model_access: (
1661
+ form_data: ::String
1662
+ ) -> _PutUseCaseForModelAccessResponseSuccess
1663
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutUseCaseForModelAccessResponseSuccess
1664
+
1431
1665
  interface _RegisterMarketplaceModelEndpointResponseSuccess
1432
1666
  include ::Seahorse::Client::_ResponseSuccess[Types::RegisterMarketplaceModelEndpointResponse]
1433
1667
  def marketplace_model_endpoint: () -> Types::MarketplaceModelEndpoint
@@ -1515,7 +1749,10 @@ module Aws
1515
1749
  input_enabled: bool?,
1516
1750
  output_enabled: bool?
1517
1751
  },
1518
- ]
1752
+ ],
1753
+ tier_config: {
1754
+ tier_name: ("CLASSIC" | "STANDARD")
1755
+ }?
1519
1756
  },
1520
1757
  ?content_policy_config: {
1521
1758
  filters_config: Array[
@@ -1530,7 +1767,10 @@ module Aws
1530
1767
  input_enabled: bool?,
1531
1768
  output_enabled: bool?
1532
1769
  },
1533
- ]
1770
+ ],
1771
+ tier_config: {
1772
+ tier_name: ("CLASSIC" | "STANDARD")
1773
+ }?
1534
1774
  },
1535
1775
  ?word_policy_config: {
1536
1776
  words_config: Array[
data/sig/resource.rbs CHANGED
@@ -18,6 +18,7 @@ module Aws
18
18
  ?account_id: String,
19
19
  ?active_endpoint_cache: bool,
20
20
  ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
21
22
  ?client_side_monitoring: bool,
22
23
  ?client_side_monitoring_client_id: String,
23
24
  ?client_side_monitoring_host: String,