aws-sdk-bedrock 1.51.0 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +281 -1
- data/lib/aws-sdk-bedrock/client_api.rb +247 -1
- data/lib/aws-sdk-bedrock/types.rb +551 -1
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +136 -0
- data/sig/types.rbs +169 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d949463ffa3761ba4c843b884658ce2833c3f0ceaaeeb4d99a952bb15a866635
|
4
|
+
data.tar.gz: 795c2cc017319a18581c041f81db7f4ba041bd1345071baebd022aa2c58fac0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd4c231fd4c2b626085a79708ab2d16e2b08c55f805c8fef2383be0b6926492a5d6d8a0657bb1a5b65ccf199c913321ccc0567ec48263317f0ff457f0a908257
|
7
|
+
data.tar.gz: '0875fe8ddbd14c58019cc256e67369ef0d7584c72a587c85e3f4ea5a50bf912bc309189ec1f85ec0f3de5ad4ef038f3b7ffecfdcceee7cca78a16692e791791c'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.53.0 (2025-06-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add support for API Keys, Re-Ranker, implicit filter for RAG / KB evaluation for Bedrock APIs.
|
8
|
+
|
9
|
+
1.52.0 (2025-06-24)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - We are making ListFoundationModelAgreementOffers, DeleteFoundationModelAgreement, CreateFoundationModelAgreement, GetFoundationModelAvailability, PutUseCaseForModelAccess and GetUseCaseForModelAccess APIs public, previously they were console.
|
13
|
+
|
4
14
|
1.51.0 (2025-06-20)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.53.0
|
@@ -944,6 +944,44 @@ module Aws::Bedrock
|
|
944
944
|
# },
|
945
945
|
# ],
|
946
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
|
+
# },
|
947
985
|
# },
|
948
986
|
# },
|
949
987
|
# },
|
@@ -1023,6 +1061,44 @@ module Aws::Bedrock
|
|
1023
1061
|
# },
|
1024
1062
|
# ],
|
1025
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
|
+
# },
|
1026
1102
|
# },
|
1027
1103
|
# },
|
1028
1104
|
# generation_configuration: {
|
@@ -1120,6 +1196,38 @@ module Aws::Bedrock
|
|
1120
1196
|
req.send_request(options)
|
1121
1197
|
end
|
1122
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
|
+
|
1123
1231
|
# Creates a guardrail to block topics and to implement safeguards for
|
1124
1232
|
# your generative AI applications.
|
1125
1233
|
#
|
@@ -2269,6 +2377,28 @@ module Aws::Bedrock
|
|
2269
2377
|
req.send_request(options)
|
2270
2378
|
end
|
2271
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
|
+
|
2272
2402
|
# Deletes a guardrail.
|
2273
2403
|
#
|
2274
2404
|
# * To delete a guardrail, only specify the ARN of the guardrail in the
|
@@ -2651,6 +2781,20 @@ module Aws::Bedrock
|
|
2651
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
|
2652
2782
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.filter.or_all #=> Array
|
2653
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
|
2654
2798
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.type #=> String, one of "KNOWLEDGE_BASE", "EXTERNAL_SOURCES"
|
2655
2799
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.knowledge_base_id #=> String
|
2656
2800
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.model_arn #=> String
|
@@ -2671,6 +2815,20 @@ module Aws::Bedrock
|
|
2671
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
|
2672
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
|
2673
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
|
2674
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
|
2675
2833
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.generation_configuration.guardrail_configuration.guardrail_id #=> String
|
2676
2834
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.knowledge_base_configuration.generation_configuration.guardrail_configuration.guardrail_version #=> String
|
@@ -2755,6 +2913,43 @@ module Aws::Bedrock
|
|
2755
2913
|
req.send_request(options)
|
2756
2914
|
end
|
2757
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
|
+
|
2758
2953
|
# Gets details about a guardrail. If you don't specify a version, the
|
2759
2954
|
# response returns details for the `DRAFT` version.
|
2760
2955
|
#
|
@@ -3455,6 +3650,25 @@ module Aws::Bedrock
|
|
3455
3650
|
req.send_request(options)
|
3456
3651
|
end
|
3457
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
|
+
|
3458
3672
|
# Returns a list of the custom models that you have created with the
|
3459
3673
|
# `CreateModelCustomizationJob` operation.
|
3460
3674
|
#
|
@@ -3657,6 +3871,50 @@ module Aws::Bedrock
|
|
3657
3871
|
req.send_request(options)
|
3658
3872
|
end
|
3659
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
|
+
|
3660
3918
|
# Lists Amazon Bedrock foundation models that you can use. You can
|
3661
3919
|
# filter the results with the request parameters. For more information,
|
3662
3920
|
# see [Foundation models][1] in the [Amazon Bedrock User Guide][2].
|
@@ -4635,6 +4893,28 @@ module Aws::Bedrock
|
|
4635
4893
|
req.send_request(options)
|
4636
4894
|
end
|
4637
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
|
+
|
4638
4918
|
# Registers an existing Amazon SageMaker endpoint with Amazon Bedrock
|
4639
4919
|
# Marketplace, allowing it to be used with Amazon Bedrock APIs.
|
4640
4920
|
#
|
@@ -5179,7 +5459,7 @@ module Aws::Bedrock
|
|
5179
5459
|
tracer: tracer
|
5180
5460
|
)
|
5181
5461
|
context[:gem_name] = 'aws-sdk-bedrock'
|
5182
|
-
context[:gem_version] = '1.
|
5462
|
+
context[:gem_version] = '1.53.0'
|
5183
5463
|
Seahorse::Client::Request.new(handlers, context)
|
5184
5464
|
end
|
5185
5465
|
|