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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +484 -10
- data/lib/aws-sdk-bedrock/client_api.rb +309 -7
- data/lib/aws-sdk-bedrock/types.rb +846 -22
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +184 -9
- data/sig/types.rbs +219 -7
- metadata +4 -4
@@ -537,6 +537,166 @@ module Aws::Bedrock
|
|
537
537
|
req.send_request(options)
|
538
538
|
end
|
539
539
|
|
540
|
+
# Creates a new custom model in Amazon Bedrock. After the model is
|
541
|
+
# active, you can use it for inference.
|
542
|
+
#
|
543
|
+
# To use the model for inference, you must purchase Provisioned
|
544
|
+
# Throughput for it. You can't use On-demand inference with these
|
545
|
+
# custom models. For more information about Provisioned Throughput, see
|
546
|
+
# [Provisioned Throughput][1].
|
547
|
+
#
|
548
|
+
# The model appears in `ListCustomModels` with a `customizationType` of
|
549
|
+
# `imported`. To track the status of the new model, you use the
|
550
|
+
# `GetCustomModel` API operation. The model can be in the following
|
551
|
+
# states:
|
552
|
+
#
|
553
|
+
# * `Creating` - Initial state during validation and registration
|
554
|
+
#
|
555
|
+
# * `Active` - Model is ready for use in inference
|
556
|
+
#
|
557
|
+
# * `Failed` - Creation process encountered an error
|
558
|
+
#
|
559
|
+
# **Related APIs**
|
560
|
+
#
|
561
|
+
# * [GetCustomModel][2]
|
562
|
+
#
|
563
|
+
# * [ListCustomModels][3]
|
564
|
+
#
|
565
|
+
# * [DeleteCustomModel][4]
|
566
|
+
#
|
567
|
+
#
|
568
|
+
#
|
569
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
|
570
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModel.html
|
571
|
+
# [3]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModels.html
|
572
|
+
# [4]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html
|
573
|
+
#
|
574
|
+
# @option params [required, String] :model_name
|
575
|
+
# A unique name for the custom model.
|
576
|
+
#
|
577
|
+
# @option params [required, Types::ModelDataSource] :model_source_config
|
578
|
+
# The data source for the model. The Amazon S3 URI in the model source
|
579
|
+
# must be for the Amazon-managed Amazon S3 bucket containing your model
|
580
|
+
# artifacts.
|
581
|
+
#
|
582
|
+
# @option params [String] :model_kms_key_arn
|
583
|
+
# The Amazon Resource Name (ARN) of the customer managed KMS key to
|
584
|
+
# encrypt the custom model. If you don't provide a KMS key, Amazon
|
585
|
+
# Bedrock uses an Amazon Web Services-managed KMS key to encrypt the
|
586
|
+
# model.
|
587
|
+
#
|
588
|
+
# If you provide a customer managed KMS key, your Amazon Bedrock service
|
589
|
+
# role must have permissions to use it. For more information see
|
590
|
+
# [Encryption of imported models][1].
|
591
|
+
#
|
592
|
+
#
|
593
|
+
#
|
594
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-import-model.html
|
595
|
+
#
|
596
|
+
# @option params [String] :role_arn
|
597
|
+
# The Amazon Resource Name (ARN) of an IAM service role that Amazon
|
598
|
+
# Bedrock assumes to perform tasks on your behalf. This role must have
|
599
|
+
# permissions to access the Amazon S3 bucket containing your model
|
600
|
+
# artifacts and the KMS key (if specified). For more information, see
|
601
|
+
# [Setting up an IAM service role for importing models][1] in the Amazon
|
602
|
+
# Bedrock User Guide.
|
603
|
+
#
|
604
|
+
#
|
605
|
+
#
|
606
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
|
607
|
+
#
|
608
|
+
# @option params [Array<Types::Tag>] :model_tags
|
609
|
+
# A list of key-value pairs to associate with the custom model resource.
|
610
|
+
# You can use these tags to organize and identify your resources.
|
611
|
+
#
|
612
|
+
# For more information, see [Tagging resources][1] in the [Amazon
|
613
|
+
# Bedrock User Guide][2].
|
614
|
+
#
|
615
|
+
#
|
616
|
+
#
|
617
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
|
618
|
+
# [2]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
|
619
|
+
#
|
620
|
+
# @option params [String] :client_request_token
|
621
|
+
# A unique, case-sensitive identifier to ensure that the API request
|
622
|
+
# completes no more than one time. If this token matches a previous
|
623
|
+
# request, Amazon Bedrock ignores the request, but does not return an
|
624
|
+
# error. For more information, see [Ensuring idempotency][1].
|
625
|
+
#
|
626
|
+
# **A suitable default value is auto-generated.** You should normally
|
627
|
+
# not need to pass this option.**
|
628
|
+
#
|
629
|
+
#
|
630
|
+
#
|
631
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
632
|
+
#
|
633
|
+
# @return [Types::CreateCustomModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
634
|
+
#
|
635
|
+
# * {Types::CreateCustomModelResponse#model_arn #model_arn} => String
|
636
|
+
#
|
637
|
+
#
|
638
|
+
# @example Example: Successful CreateCustomModel API call
|
639
|
+
#
|
640
|
+
# resp = client.create_custom_model({
|
641
|
+
# client_request_token: "foo",
|
642
|
+
# model_kms_key_arn: "arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
643
|
+
# model_name: "SampleModel",
|
644
|
+
# model_source_config: {
|
645
|
+
# s3_data_source: {
|
646
|
+
# s3_uri: "s3://my-bucket/folder",
|
647
|
+
# },
|
648
|
+
# },
|
649
|
+
# model_tags: [
|
650
|
+
# {
|
651
|
+
# key: "foo",
|
652
|
+
# value: "foo",
|
653
|
+
# },
|
654
|
+
# {
|
655
|
+
# key: "foo",
|
656
|
+
# value: "foo",
|
657
|
+
# },
|
658
|
+
# ],
|
659
|
+
# role_arn: "arn:aws:iam::123456789012:role/SampleRole",
|
660
|
+
# })
|
661
|
+
#
|
662
|
+
# resp.to_h outputs the following:
|
663
|
+
# {
|
664
|
+
# model_arn: "arn:aws:bedrock:us-east-1:123456789012:custom-model/imported/abcdef123456",
|
665
|
+
# }
|
666
|
+
#
|
667
|
+
# @example Request syntax with placeholder values
|
668
|
+
#
|
669
|
+
# resp = client.create_custom_model({
|
670
|
+
# model_name: "CustomModelName", # required
|
671
|
+
# model_source_config: { # required
|
672
|
+
# s3_data_source: {
|
673
|
+
# s3_uri: "S3Uri", # required
|
674
|
+
# },
|
675
|
+
# },
|
676
|
+
# model_kms_key_arn: "KmsKeyArn",
|
677
|
+
# role_arn: "RoleArn",
|
678
|
+
# model_tags: [
|
679
|
+
# {
|
680
|
+
# key: "TagKey", # required
|
681
|
+
# value: "TagValue", # required
|
682
|
+
# },
|
683
|
+
# ],
|
684
|
+
# client_request_token: "IdempotencyToken",
|
685
|
+
# })
|
686
|
+
#
|
687
|
+
# @example Response structure
|
688
|
+
#
|
689
|
+
# resp.model_arn #=> String
|
690
|
+
#
|
691
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateCustomModel AWS API Documentation
|
692
|
+
#
|
693
|
+
# @overload create_custom_model(params = {})
|
694
|
+
# @param [Hash] params ({})
|
695
|
+
def create_custom_model(params = {}, options = {})
|
696
|
+
req = build_request(:create_custom_model, params)
|
697
|
+
req.send_request(options)
|
698
|
+
end
|
699
|
+
|
540
700
|
# Creates an evaluation job.
|
541
701
|
#
|
542
702
|
# @option params [required, String] :job_name
|
@@ -784,6 +944,44 @@ module Aws::Bedrock
|
|
784
944
|
# },
|
785
945
|
# ],
|
786
946
|
# },
|
947
|
+
# implicit_filter_configuration: {
|
948
|
+
# metadata_attributes: [ # required
|
949
|
+
# {
|
950
|
+
# key: "MetadataAttributeSchemaKeyString", # required
|
951
|
+
# type: "STRING", # required, accepts STRING, NUMBER, BOOLEAN, STRING_LIST
|
952
|
+
# description: "MetadataAttributeSchemaDescriptionString", # required
|
953
|
+
# },
|
954
|
+
# ],
|
955
|
+
# model_arn: "BedrockModelArn", # required
|
956
|
+
# },
|
957
|
+
# reranking_configuration: {
|
958
|
+
# type: "BEDROCK_RERANKING_MODEL", # required, accepts BEDROCK_RERANKING_MODEL
|
959
|
+
# bedrock_reranking_configuration: {
|
960
|
+
# model_configuration: { # required
|
961
|
+
# model_arn: "BedrockRerankingModelArn", # required
|
962
|
+
# additional_model_request_fields: {
|
963
|
+
# "AdditionalModelRequestFieldsKey" => {
|
964
|
+
# },
|
965
|
+
# },
|
966
|
+
# },
|
967
|
+
# number_of_reranked_results: 1,
|
968
|
+
# metadata_configuration: {
|
969
|
+
# selection_mode: "SELECTIVE", # required, accepts SELECTIVE, ALL
|
970
|
+
# selective_mode_configuration: {
|
971
|
+
# fields_to_include: [
|
972
|
+
# {
|
973
|
+
# field_name: "FieldForRerankingFieldNameString", # required
|
974
|
+
# },
|
975
|
+
# ],
|
976
|
+
# fields_to_exclude: [
|
977
|
+
# {
|
978
|
+
# field_name: "FieldForRerankingFieldNameString", # required
|
979
|
+
# },
|
980
|
+
# ],
|
981
|
+
# },
|
982
|
+
# },
|
983
|
+
# },
|
984
|
+
# },
|
787
985
|
# },
|
788
986
|
# },
|
789
987
|
# },
|
@@ -863,6 +1061,44 @@ module Aws::Bedrock
|
|
863
1061
|
# },
|
864
1062
|
# ],
|
865
1063
|
# },
|
1064
|
+
# implicit_filter_configuration: {
|
1065
|
+
# metadata_attributes: [ # required
|
1066
|
+
# {
|
1067
|
+
# key: "MetadataAttributeSchemaKeyString", # required
|
1068
|
+
# type: "STRING", # required, accepts STRING, NUMBER, BOOLEAN, STRING_LIST
|
1069
|
+
# description: "MetadataAttributeSchemaDescriptionString", # required
|
1070
|
+
# },
|
1071
|
+
# ],
|
1072
|
+
# model_arn: "BedrockModelArn", # required
|
1073
|
+
# },
|
1074
|
+
# reranking_configuration: {
|
1075
|
+
# type: "BEDROCK_RERANKING_MODEL", # required, accepts BEDROCK_RERANKING_MODEL
|
1076
|
+
# bedrock_reranking_configuration: {
|
1077
|
+
# model_configuration: { # required
|
1078
|
+
# model_arn: "BedrockRerankingModelArn", # required
|
1079
|
+
# additional_model_request_fields: {
|
1080
|
+
# "AdditionalModelRequestFieldsKey" => {
|
1081
|
+
# },
|
1082
|
+
# },
|
1083
|
+
# },
|
1084
|
+
# number_of_reranked_results: 1,
|
1085
|
+
# metadata_configuration: {
|
1086
|
+
# selection_mode: "SELECTIVE", # required, accepts SELECTIVE, ALL
|
1087
|
+
# selective_mode_configuration: {
|
1088
|
+
# fields_to_include: [
|
1089
|
+
# {
|
1090
|
+
# field_name: "FieldForRerankingFieldNameString", # required
|
1091
|
+
# },
|
1092
|
+
# ],
|
1093
|
+
# fields_to_exclude: [
|
1094
|
+
# {
|
1095
|
+
# field_name: "FieldForRerankingFieldNameString", # required
|
1096
|
+
# },
|
1097
|
+
# ],
|
1098
|
+
# },
|
1099
|
+
# },
|
1100
|
+
# },
|
1101
|
+
# },
|
866
1102
|
# },
|
867
1103
|
# },
|
868
1104
|
# generation_configuration: {
|
@@ -960,6 +1196,38 @@ module Aws::Bedrock
|
|
960
1196
|
req.send_request(options)
|
961
1197
|
end
|
962
1198
|
|
1199
|
+
# Request a model access agreement for the specified model.
|
1200
|
+
#
|
1201
|
+
# @option params [required, String] :offer_token
|
1202
|
+
# An offer token encapsulates the information for an offer.
|
1203
|
+
#
|
1204
|
+
# @option params [required, String] :model_id
|
1205
|
+
# Model Id of the model for the access request.
|
1206
|
+
#
|
1207
|
+
# @return [Types::CreateFoundationModelAgreementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1208
|
+
#
|
1209
|
+
# * {Types::CreateFoundationModelAgreementResponse#model_id #model_id} => String
|
1210
|
+
#
|
1211
|
+
# @example Request syntax with placeholder values
|
1212
|
+
#
|
1213
|
+
# resp = client.create_foundation_model_agreement({
|
1214
|
+
# offer_token: "OfferToken", # required
|
1215
|
+
# model_id: "BedrockModelId", # required
|
1216
|
+
# })
|
1217
|
+
#
|
1218
|
+
# @example Response structure
|
1219
|
+
#
|
1220
|
+
# resp.model_id #=> String
|
1221
|
+
#
|
1222
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateFoundationModelAgreement AWS API Documentation
|
1223
|
+
#
|
1224
|
+
# @overload create_foundation_model_agreement(params = {})
|
1225
|
+
# @param [Hash] params ({})
|
1226
|
+
def create_foundation_model_agreement(params = {}, options = {})
|
1227
|
+
req = build_request(:create_foundation_model_agreement, params)
|
1228
|
+
req.send_request(options)
|
1229
|
+
end
|
1230
|
+
|
963
1231
|
# Creates a guardrail to block topics and to implement safeguards for
|
964
1232
|
# your generative AI applications.
|
965
1233
|
#
|
@@ -1078,6 +1346,9 @@ module Aws::Bedrock
|
|
1078
1346
|
# output_enabled: false,
|
1079
1347
|
# },
|
1080
1348
|
# ],
|
1349
|
+
# tier_config: {
|
1350
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
1351
|
+
# },
|
1081
1352
|
# },
|
1082
1353
|
# content_policy_config: {
|
1083
1354
|
# filters_config: [ # required
|
@@ -1093,6 +1364,9 @@ module Aws::Bedrock
|
|
1093
1364
|
# output_enabled: false,
|
1094
1365
|
# },
|
1095
1366
|
# ],
|
1367
|
+
# tier_config: {
|
1368
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
1369
|
+
# },
|
1096
1370
|
# },
|
1097
1371
|
# word_policy_config: {
|
1098
1372
|
# words_config: [
|
@@ -1585,7 +1859,7 @@ module Aws::Bedrock
|
|
1585
1859
|
# role_arn: "RoleArn", # required
|
1586
1860
|
# client_request_token: "IdempotencyToken",
|
1587
1861
|
# base_model_identifier: "BaseModelIdentifier", # required
|
1588
|
-
# customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING, DISTILLATION
|
1862
|
+
# customization_type: "FINE_TUNING", # accepts FINE_TUNING, CONTINUED_PRE_TRAINING, DISTILLATION, IMPORTED
|
1589
1863
|
# custom_model_kms_key_id: "KmsKeyId",
|
1590
1864
|
# job_tags: [
|
1591
1865
|
# {
|
@@ -2103,6 +2377,28 @@ module Aws::Bedrock
|
|
2103
2377
|
req.send_request(options)
|
2104
2378
|
end
|
2105
2379
|
|
2380
|
+
# Delete the model access agreement for the specified model.
|
2381
|
+
#
|
2382
|
+
# @option params [required, String] :model_id
|
2383
|
+
# Model Id of the model access to delete.
|
2384
|
+
#
|
2385
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2386
|
+
#
|
2387
|
+
# @example Request syntax with placeholder values
|
2388
|
+
#
|
2389
|
+
# resp = client.delete_foundation_model_agreement({
|
2390
|
+
# model_id: "BedrockModelId", # required
|
2391
|
+
# })
|
2392
|
+
#
|
2393
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteFoundationModelAgreement AWS API Documentation
|
2394
|
+
#
|
2395
|
+
# @overload delete_foundation_model_agreement(params = {})
|
2396
|
+
# @param [Hash] params ({})
|
2397
|
+
def delete_foundation_model_agreement(params = {}, options = {})
|
2398
|
+
req = build_request(:delete_foundation_model_agreement, params)
|
2399
|
+
req.send_request(options)
|
2400
|
+
end
|
2401
|
+
|
2106
2402
|
# Deletes a guardrail.
|
2107
2403
|
#
|
2108
2404
|
# * To delete a guardrail, only specify the ARN of the guardrail in the
|
@@ -2306,7 +2602,7 @@ module Aws::Bedrock
|
|
2306
2602
|
end
|
2307
2603
|
|
2308
2604
|
# Get the properties associated with a Amazon Bedrock custom model that
|
2309
|
-
# you have created.For more information, see [Custom models][1] in the
|
2605
|
+
# you have created. For more information, see [Custom models][1] in the
|
2310
2606
|
# [Amazon Bedrock User Guide][2].
|
2311
2607
|
#
|
2312
2608
|
#
|
@@ -2334,6 +2630,8 @@ module Aws::Bedrock
|
|
2334
2630
|
# * {Types::GetCustomModelResponse#validation_metrics #validation_metrics} => Array<Types::ValidatorMetric>
|
2335
2631
|
# * {Types::GetCustomModelResponse#creation_time #creation_time} => Time
|
2336
2632
|
# * {Types::GetCustomModelResponse#customization_config #customization_config} => Types::CustomizationConfig
|
2633
|
+
# * {Types::GetCustomModelResponse#model_status #model_status} => String
|
2634
|
+
# * {Types::GetCustomModelResponse#failure_message #failure_message} => String
|
2337
2635
|
#
|
2338
2636
|
# @example Request syntax with placeholder values
|
2339
2637
|
#
|
@@ -2348,7 +2646,7 @@ module Aws::Bedrock
|
|
2348
2646
|
# resp.job_name #=> String
|
2349
2647
|
# resp.job_arn #=> String
|
2350
2648
|
# resp.base_model_arn #=> String
|
2351
|
-
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
2649
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
2352
2650
|
# resp.model_kms_key_arn #=> String
|
2353
2651
|
# resp.hyper_parameters #=> Hash
|
2354
2652
|
# resp.hyper_parameters["String"] #=> String
|
@@ -2378,6 +2676,8 @@ module Aws::Bedrock
|
|
2378
2676
|
# resp.creation_time #=> Time
|
2379
2677
|
# resp.customization_config.distillation_config.teacher_model_config.teacher_model_identifier #=> String
|
2380
2678
|
# resp.customization_config.distillation_config.teacher_model_config.max_response_length_for_inference #=> Integer
|
2679
|
+
# resp.model_status #=> String, one of "Active", "Creating", "Failed"
|
2680
|
+
# resp.failure_message #=> String
|
2381
2681
|
#
|
2382
2682
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel AWS API Documentation
|
2383
2683
|
#
|
@@ -2481,6 +2781,20 @@ module Aws::Bedrock
|
|
2481
2781
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.filter.and_all[0] #=> Types::RetrievalFilter
|
2482
2782
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.filter.or_all #=> Array
|
2483
2783
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.filter.or_all[0] #=> Types::RetrievalFilter
|
2784
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.implicit_filter_configuration.metadata_attributes #=> Array
|
2785
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.implicit_filter_configuration.metadata_attributes[0].key #=> String
|
2786
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.implicit_filter_configuration.metadata_attributes[0].type #=> String, one of "STRING", "NUMBER", "BOOLEAN", "STRING_LIST"
|
2787
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.implicit_filter_configuration.metadata_attributes[0].description #=> String
|
2788
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.implicit_filter_configuration.model_arn #=> String
|
2789
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.type #=> String, one of "BEDROCK_RERANKING_MODEL"
|
2790
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.model_configuration.model_arn #=> String
|
2791
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.model_configuration.additional_model_request_fields #=> Hash
|
2792
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.number_of_reranked_results #=> Integer
|
2793
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selection_mode #=> String, one of "SELECTIVE", "ALL"
|
2794
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selective_mode_configuration.fields_to_include #=> Array
|
2795
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selective_mode_configuration.fields_to_include[0].field_name #=> String
|
2796
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selective_mode_configuration.fields_to_exclude #=> Array
|
2797
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selective_mode_configuration.fields_to_exclude[0].field_name #=> String
|
2484
2798
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.type #=> String, one of "KNOWLEDGE_BASE", "EXTERNAL_SOURCES"
|
2485
2799
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.knowledge_base_id #=> String
|
2486
2800
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.model_arn #=> String
|
@@ -2501,6 +2815,20 @@ module Aws::Bedrock
|
|
2501
2815
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.filter.and_all[0] #=> Types::RetrievalFilter
|
2502
2816
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.filter.or_all #=> Array
|
2503
2817
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.filter.or_all[0] #=> Types::RetrievalFilter
|
2818
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.implicit_filter_configuration.metadata_attributes #=> Array
|
2819
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.implicit_filter_configuration.metadata_attributes[0].key #=> String
|
2820
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.implicit_filter_configuration.metadata_attributes[0].type #=> String, one of "STRING", "NUMBER", "BOOLEAN", "STRING_LIST"
|
2821
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.implicit_filter_configuration.metadata_attributes[0].description #=> String
|
2822
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.implicit_filter_configuration.model_arn #=> String
|
2823
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.type #=> String, one of "BEDROCK_RERANKING_MODEL"
|
2824
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.model_configuration.model_arn #=> String
|
2825
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.model_configuration.additional_model_request_fields #=> Hash
|
2826
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.number_of_reranked_results #=> Integer
|
2827
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selection_mode #=> String, one of "SELECTIVE", "ALL"
|
2828
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selective_mode_configuration.fields_to_include #=> Array
|
2829
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selective_mode_configuration.fields_to_include[0].field_name #=> String
|
2830
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selective_mode_configuration.fields_to_exclude #=> Array
|
2831
|
+
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.retrieval_configuration.vector_search_configuration.reranking_configuration.bedrock_reranking_configuration.metadata_configuration.selective_mode_configuration.fields_to_exclude[0].field_name #=> String
|
2504
2832
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.generation_configuration.prompt_template.text_prompt_template #=> String
|
2505
2833
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.generation_configuration.guardrail_configuration.guardrail_id #=> String
|
2506
2834
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.generation_configuration.guardrail_configuration.guardrail_version #=> String
|
@@ -2585,6 +2913,43 @@ module Aws::Bedrock
|
|
2585
2913
|
req.send_request(options)
|
2586
2914
|
end
|
2587
2915
|
|
2916
|
+
# Get information about the Foundation model availability.
|
2917
|
+
#
|
2918
|
+
# @option params [required, String] :model_id
|
2919
|
+
# The model Id of the foundation model.
|
2920
|
+
#
|
2921
|
+
# @return [Types::GetFoundationModelAvailabilityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2922
|
+
#
|
2923
|
+
# * {Types::GetFoundationModelAvailabilityResponse#model_id #model_id} => String
|
2924
|
+
# * {Types::GetFoundationModelAvailabilityResponse#agreement_availability #agreement_availability} => Types::AgreementAvailability
|
2925
|
+
# * {Types::GetFoundationModelAvailabilityResponse#authorization_status #authorization_status} => String
|
2926
|
+
# * {Types::GetFoundationModelAvailabilityResponse#entitlement_availability #entitlement_availability} => String
|
2927
|
+
# * {Types::GetFoundationModelAvailabilityResponse#region_availability #region_availability} => String
|
2928
|
+
#
|
2929
|
+
# @example Request syntax with placeholder values
|
2930
|
+
#
|
2931
|
+
# resp = client.get_foundation_model_availability({
|
2932
|
+
# model_id: "BedrockModelId", # required
|
2933
|
+
# })
|
2934
|
+
#
|
2935
|
+
# @example Response structure
|
2936
|
+
#
|
2937
|
+
# resp.model_id #=> String
|
2938
|
+
# resp.agreement_availability.status #=> String, one of "AVAILABLE", "PENDING", "NOT_AVAILABLE", "ERROR"
|
2939
|
+
# resp.agreement_availability.error_message #=> String
|
2940
|
+
# resp.authorization_status #=> String, one of "AUTHORIZED", "NOT_AUTHORIZED"
|
2941
|
+
# resp.entitlement_availability #=> String, one of "AVAILABLE", "NOT_AVAILABLE"
|
2942
|
+
# resp.region_availability #=> String, one of "AVAILABLE", "NOT_AVAILABLE"
|
2943
|
+
#
|
2944
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModelAvailability AWS API Documentation
|
2945
|
+
#
|
2946
|
+
# @overload get_foundation_model_availability(params = {})
|
2947
|
+
# @param [Hash] params ({})
|
2948
|
+
def get_foundation_model_availability(params = {}, options = {})
|
2949
|
+
req = build_request(:get_foundation_model_availability, params)
|
2950
|
+
req.send_request(options)
|
2951
|
+
end
|
2952
|
+
|
2588
2953
|
# Gets details about a guardrail. If you don't specify a version, the
|
2589
2954
|
# response returns details for the `DRAFT` version.
|
2590
2955
|
#
|
@@ -2644,6 +3009,7 @@ module Aws::Bedrock
|
|
2644
3009
|
# resp.topic_policy.topics[0].output_action #=> String, one of "BLOCK", "NONE"
|
2645
3010
|
# resp.topic_policy.topics[0].input_enabled #=> Boolean
|
2646
3011
|
# resp.topic_policy.topics[0].output_enabled #=> Boolean
|
3012
|
+
# resp.topic_policy.tier.tier_name #=> String, one of "CLASSIC", "STANDARD"
|
2647
3013
|
# resp.content_policy.filters #=> Array
|
2648
3014
|
# resp.content_policy.filters[0].type #=> String, one of "SEXUAL", "VIOLENCE", "HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK"
|
2649
3015
|
# resp.content_policy.filters[0].input_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
@@ -2656,6 +3022,7 @@ module Aws::Bedrock
|
|
2656
3022
|
# resp.content_policy.filters[0].output_action #=> String, one of "BLOCK", "NONE"
|
2657
3023
|
# resp.content_policy.filters[0].input_enabled #=> Boolean
|
2658
3024
|
# resp.content_policy.filters[0].output_enabled #=> Boolean
|
3025
|
+
# resp.content_policy.tier.tier_name #=> String, one of "CLASSIC", "STANDARD"
|
2659
3026
|
# resp.word_policy.words #=> Array
|
2660
3027
|
# resp.word_policy.words[0].text #=> String
|
2661
3028
|
# resp.word_policy.words[0].input_action #=> String, one of "BLOCK", "NONE"
|
@@ -2931,8 +3298,8 @@ module Aws::Bedrock
|
|
2931
3298
|
# * {Types::GetModelCustomizationJobResponse#client_request_token #client_request_token} => String
|
2932
3299
|
# * {Types::GetModelCustomizationJobResponse#role_arn #role_arn} => String
|
2933
3300
|
# * {Types::GetModelCustomizationJobResponse#status #status} => String
|
2934
|
-
# * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
|
2935
3301
|
# * {Types::GetModelCustomizationJobResponse#status_details #status_details} => Types::StatusDetails
|
3302
|
+
# * {Types::GetModelCustomizationJobResponse#failure_message #failure_message} => String
|
2936
3303
|
# * {Types::GetModelCustomizationJobResponse#creation_time #creation_time} => Time
|
2937
3304
|
# * {Types::GetModelCustomizationJobResponse#last_modified_time #last_modified_time} => Time
|
2938
3305
|
# * {Types::GetModelCustomizationJobResponse#end_time #end_time} => Time
|
@@ -2963,7 +3330,6 @@ module Aws::Bedrock
|
|
2963
3330
|
# resp.client_request_token #=> String
|
2964
3331
|
# resp.role_arn #=> String
|
2965
3332
|
# resp.status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
2966
|
-
# resp.failure_message #=> String
|
2967
3333
|
# resp.status_details.validation_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
2968
3334
|
# resp.status_details.validation_details.creation_time #=> Time
|
2969
3335
|
# resp.status_details.validation_details.last_modified_time #=> Time
|
@@ -2973,6 +3339,7 @@ module Aws::Bedrock
|
|
2973
3339
|
# resp.status_details.training_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
2974
3340
|
# resp.status_details.training_details.creation_time #=> Time
|
2975
3341
|
# resp.status_details.training_details.last_modified_time #=> Time
|
3342
|
+
# resp.failure_message #=> String
|
2976
3343
|
# resp.creation_time #=> Time
|
2977
3344
|
# resp.last_modified_time #=> Time
|
2978
3345
|
# resp.end_time #=> Time
|
@@ -2999,7 +3366,7 @@ module Aws::Bedrock
|
|
2999
3366
|
# resp.validation_data_config.validators #=> Array
|
3000
3367
|
# resp.validation_data_config.validators[0].s3_uri #=> String
|
3001
3368
|
# resp.output_data_config.s3_uri #=> String
|
3002
|
-
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
3369
|
+
# resp.customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3003
3370
|
# resp.output_model_kms_key_arn #=> String
|
3004
3371
|
# resp.training_metrics.training_loss #=> Float
|
3005
3372
|
# resp.validation_metrics #=> Array
|
@@ -3283,6 +3650,25 @@ module Aws::Bedrock
|
|
3283
3650
|
req.send_request(options)
|
3284
3651
|
end
|
3285
3652
|
|
3653
|
+
# Get usecase for model access.
|
3654
|
+
#
|
3655
|
+
# @return [Types::GetUseCaseForModelAccessResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3656
|
+
#
|
3657
|
+
# * {Types::GetUseCaseForModelAccessResponse#form_data #form_data} => String
|
3658
|
+
#
|
3659
|
+
# @example Response structure
|
3660
|
+
#
|
3661
|
+
# resp.form_data #=> String
|
3662
|
+
#
|
3663
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetUseCaseForModelAccess AWS API Documentation
|
3664
|
+
#
|
3665
|
+
# @overload get_use_case_for_model_access(params = {})
|
3666
|
+
# @param [Hash] params ({})
|
3667
|
+
def get_use_case_for_model_access(params = {}, options = {})
|
3668
|
+
req = build_request(:get_use_case_for_model_access, params)
|
3669
|
+
req.send_request(options)
|
3670
|
+
end
|
3671
|
+
|
3286
3672
|
# Returns a list of the custom models that you have created with the
|
3287
3673
|
# `CreateModelCustomizationJob` operation.
|
3288
3674
|
#
|
@@ -3333,6 +3719,20 @@ module Aws::Bedrock
|
|
3333
3719
|
# Return custom models depending on if the current account owns them
|
3334
3720
|
# (`true`) or if they were shared with the current account (`false`).
|
3335
3721
|
#
|
3722
|
+
# @option params [String] :model_status
|
3723
|
+
# The status of them model to filter results by. Possible values
|
3724
|
+
# include:
|
3725
|
+
#
|
3726
|
+
# * `Creating` - Include only models that are currently being created
|
3727
|
+
# and validated.
|
3728
|
+
#
|
3729
|
+
# * `Active` - Include only models that have been successfully created
|
3730
|
+
# and are ready for use.
|
3731
|
+
#
|
3732
|
+
# * `Failed` - Include only models where the creation process failed.
|
3733
|
+
#
|
3734
|
+
# If you don't specify a status, the API returns models in all states.
|
3735
|
+
#
|
3336
3736
|
# @return [Types::ListCustomModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3337
3737
|
#
|
3338
3738
|
# * {Types::ListCustomModelsResponse#next_token #next_token} => String
|
@@ -3353,6 +3753,7 @@ module Aws::Bedrock
|
|
3353
3753
|
# sort_by: "CreationTime", # accepts CreationTime
|
3354
3754
|
# sort_order: "Ascending", # accepts Ascending, Descending
|
3355
3755
|
# is_owned: false,
|
3756
|
+
# model_status: "Active", # accepts Active, Creating, Failed
|
3356
3757
|
# })
|
3357
3758
|
#
|
3358
3759
|
# @example Response structure
|
@@ -3364,8 +3765,9 @@ module Aws::Bedrock
|
|
3364
3765
|
# resp.model_summaries[0].creation_time #=> Time
|
3365
3766
|
# resp.model_summaries[0].base_model_arn #=> String
|
3366
3767
|
# resp.model_summaries[0].base_model_name #=> String
|
3367
|
-
# resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
3768
|
+
# resp.model_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3368
3769
|
# resp.model_summaries[0].owner_account_id #=> String
|
3770
|
+
# resp.model_summaries[0].model_status #=> String, one of "Active", "Creating", "Failed"
|
3369
3771
|
#
|
3370
3772
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels AWS API Documentation
|
3371
3773
|
#
|
@@ -3469,6 +3871,50 @@ module Aws::Bedrock
|
|
3469
3871
|
req.send_request(options)
|
3470
3872
|
end
|
3471
3873
|
|
3874
|
+
# Get the offers associated with the specified model.
|
3875
|
+
#
|
3876
|
+
# @option params [required, String] :model_id
|
3877
|
+
# Model Id of the foundation model.
|
3878
|
+
#
|
3879
|
+
# @option params [String] :offer_type
|
3880
|
+
# Type of offer associated with the model.
|
3881
|
+
#
|
3882
|
+
# @return [Types::ListFoundationModelAgreementOffersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3883
|
+
#
|
3884
|
+
# * {Types::ListFoundationModelAgreementOffersResponse#model_id #model_id} => String
|
3885
|
+
# * {Types::ListFoundationModelAgreementOffersResponse#offers #offers} => Array<Types::Offer>
|
3886
|
+
#
|
3887
|
+
# @example Request syntax with placeholder values
|
3888
|
+
#
|
3889
|
+
# resp = client.list_foundation_model_agreement_offers({
|
3890
|
+
# model_id: "BedrockModelId", # required
|
3891
|
+
# offer_type: "ALL", # accepts ALL, PUBLIC
|
3892
|
+
# })
|
3893
|
+
#
|
3894
|
+
# @example Response structure
|
3895
|
+
#
|
3896
|
+
# resp.model_id #=> String
|
3897
|
+
# resp.offers #=> Array
|
3898
|
+
# resp.offers[0].offer_id #=> String
|
3899
|
+
# resp.offers[0].offer_token #=> String
|
3900
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card #=> Array
|
3901
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].dimension #=> String
|
3902
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].price #=> String
|
3903
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].description #=> String
|
3904
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].unit #=> String
|
3905
|
+
# resp.offers[0].term_details.legal_term.url #=> String
|
3906
|
+
# resp.offers[0].term_details.support_term.refund_policy_description #=> String
|
3907
|
+
# resp.offers[0].term_details.validity_term.agreement_duration #=> String
|
3908
|
+
#
|
3909
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListFoundationModelAgreementOffers AWS API Documentation
|
3910
|
+
#
|
3911
|
+
# @overload list_foundation_model_agreement_offers(params = {})
|
3912
|
+
# @param [Hash] params ({})
|
3913
|
+
def list_foundation_model_agreement_offers(params = {}, options = {})
|
3914
|
+
req = build_request(:list_foundation_model_agreement_offers, params)
|
3915
|
+
req.send_request(options)
|
3916
|
+
end
|
3917
|
+
|
3472
3918
|
# Lists Amazon Bedrock foundation models that you can use. You can
|
3473
3919
|
# filter the results with the request parameters. For more information,
|
3474
3920
|
# see [Foundation models][1] in the [Amazon Bedrock User Guide][2].
|
@@ -3971,7 +4417,6 @@ module Aws::Bedrock
|
|
3971
4417
|
# resp.model_customization_job_summaries[0].base_model_arn #=> String
|
3972
4418
|
# resp.model_customization_job_summaries[0].job_name #=> String
|
3973
4419
|
# resp.model_customization_job_summaries[0].status #=> String, one of "InProgress", "Completed", "Failed", "Stopping", "Stopped"
|
3974
|
-
# resp.model_customization_job_summaries[0].last_modified_time #=> Time
|
3975
4420
|
# resp.model_customization_job_summaries[0].status_details.validation_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
3976
4421
|
# resp.model_customization_job_summaries[0].status_details.validation_details.creation_time #=> Time
|
3977
4422
|
# resp.model_customization_job_summaries[0].status_details.validation_details.last_modified_time #=> Time
|
@@ -3981,11 +4426,12 @@ module Aws::Bedrock
|
|
3981
4426
|
# resp.model_customization_job_summaries[0].status_details.training_details.status #=> String, one of "InProgress", "Completed", "Stopping", "Stopped", "Failed", "NotStarted"
|
3982
4427
|
# resp.model_customization_job_summaries[0].status_details.training_details.creation_time #=> Time
|
3983
4428
|
# resp.model_customization_job_summaries[0].status_details.training_details.last_modified_time #=> Time
|
4429
|
+
# resp.model_customization_job_summaries[0].last_modified_time #=> Time
|
3984
4430
|
# resp.model_customization_job_summaries[0].creation_time #=> Time
|
3985
4431
|
# resp.model_customization_job_summaries[0].end_time #=> Time
|
3986
4432
|
# resp.model_customization_job_summaries[0].custom_model_arn #=> String
|
3987
4433
|
# resp.model_customization_job_summaries[0].custom_model_name #=> String
|
3988
|
-
# resp.model_customization_job_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION"
|
4434
|
+
# resp.model_customization_job_summaries[0].customization_type #=> String, one of "FINE_TUNING", "CONTINUED_PRE_TRAINING", "DISTILLATION", "IMPORTED"
|
3989
4435
|
#
|
3990
4436
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCustomizationJobs AWS API Documentation
|
3991
4437
|
#
|
@@ -4447,6 +4893,28 @@ module Aws::Bedrock
|
|
4447
4893
|
req.send_request(options)
|
4448
4894
|
end
|
4449
4895
|
|
4896
|
+
# Put usecase for model access.
|
4897
|
+
#
|
4898
|
+
# @option params [required, String, StringIO, File] :form_data
|
4899
|
+
# Put customer profile Request.
|
4900
|
+
#
|
4901
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4902
|
+
#
|
4903
|
+
# @example Request syntax with placeholder values
|
4904
|
+
#
|
4905
|
+
# resp = client.put_use_case_for_model_access({
|
4906
|
+
# form_data: "data", # required
|
4907
|
+
# })
|
4908
|
+
#
|
4909
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutUseCaseForModelAccess AWS API Documentation
|
4910
|
+
#
|
4911
|
+
# @overload put_use_case_for_model_access(params = {})
|
4912
|
+
# @param [Hash] params ({})
|
4913
|
+
def put_use_case_for_model_access(params = {}, options = {})
|
4914
|
+
req = build_request(:put_use_case_for_model_access, params)
|
4915
|
+
req.send_request(options)
|
4916
|
+
end
|
4917
|
+
|
4450
4918
|
# Registers an existing Amazon SageMaker endpoint with Amazon Bedrock
|
4451
4919
|
# Marketplace, allowing it to be used with Amazon Bedrock APIs.
|
4452
4920
|
#
|
@@ -4754,6 +5222,9 @@ module Aws::Bedrock
|
|
4754
5222
|
# output_enabled: false,
|
4755
5223
|
# },
|
4756
5224
|
# ],
|
5225
|
+
# tier_config: {
|
5226
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
5227
|
+
# },
|
4757
5228
|
# },
|
4758
5229
|
# content_policy_config: {
|
4759
5230
|
# filters_config: [ # required
|
@@ -4769,6 +5240,9 @@ module Aws::Bedrock
|
|
4769
5240
|
# output_enabled: false,
|
4770
5241
|
# },
|
4771
5242
|
# ],
|
5243
|
+
# tier_config: {
|
5244
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
5245
|
+
# },
|
4772
5246
|
# },
|
4773
5247
|
# word_policy_config: {
|
4774
5248
|
# words_config: [
|
@@ -4985,7 +5459,7 @@ module Aws::Bedrock
|
|
4985
5459
|
tracer: tracer
|
4986
5460
|
)
|
4987
5461
|
context[:gem_name] = 'aws-sdk-bedrock'
|
4988
|
-
context[:gem_version] = '1.
|
5462
|
+
context[:gem_version] = '1.53.0'
|
4989
5463
|
Seahorse::Client::Request.new(handlers, context)
|
4990
5464
|
end
|
4991
5465
|
|