aws-sdk-bedrock 1.51.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +177 -1
- data/lib/aws-sdk-bedrock/client_api.rb +185 -0
- data/lib/aws-sdk-bedrock/types.rb +314 -0
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +64 -0
- data/sig/types.rbs +110 -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: ae20fa3d3957875282be41d1e011f62189d2ae1524021a06d23d514ade0bd55a
|
4
|
+
data.tar.gz: 5f457d933a6d94f5429c96da436fc82a95956ae4b942b34b6eff4393bcf24fb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b28788b72bea6c4bfe2d594fe190263092c4b5cb5b26d50e03faa8518d0473859ffc9b24fe55c376915c976b66b12f48862eb476091fb79a1aaf18b494e4529d
|
7
|
+
data.tar.gz: 9ff361e643a2429d6419d09f26dba829374b501148786e9b5ff6c551b9d2fec298bbb2f45cb2afb5d5bd186c4eabaa24f8eabf146b966b8c6b88f48b41ab8a39
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.52.0 (2025-06-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - We are making ListFoundationModelAgreementOffers, DeleteFoundationModelAgreement, CreateFoundationModelAgreement, GetFoundationModelAvailability, PutUseCaseForModelAccess and GetUseCaseForModelAccess APIs public, previously they were console.
|
8
|
+
|
4
9
|
1.51.0 (2025-06-20)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.0
|
@@ -1120,6 +1120,38 @@ module Aws::Bedrock
|
|
1120
1120
|
req.send_request(options)
|
1121
1121
|
end
|
1122
1122
|
|
1123
|
+
# Request a model access agreement for the specified model.
|
1124
|
+
#
|
1125
|
+
# @option params [required, String] :offer_token
|
1126
|
+
# An offer token encapsulates the information for an offer.
|
1127
|
+
#
|
1128
|
+
# @option params [required, String] :model_id
|
1129
|
+
# Model Id of the model for the access request.
|
1130
|
+
#
|
1131
|
+
# @return [Types::CreateFoundationModelAgreementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1132
|
+
#
|
1133
|
+
# * {Types::CreateFoundationModelAgreementResponse#model_id #model_id} => String
|
1134
|
+
#
|
1135
|
+
# @example Request syntax with placeholder values
|
1136
|
+
#
|
1137
|
+
# resp = client.create_foundation_model_agreement({
|
1138
|
+
# offer_token: "OfferToken", # required
|
1139
|
+
# model_id: "BedrockModelId", # required
|
1140
|
+
# })
|
1141
|
+
#
|
1142
|
+
# @example Response structure
|
1143
|
+
#
|
1144
|
+
# resp.model_id #=> String
|
1145
|
+
#
|
1146
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateFoundationModelAgreement AWS API Documentation
|
1147
|
+
#
|
1148
|
+
# @overload create_foundation_model_agreement(params = {})
|
1149
|
+
# @param [Hash] params ({})
|
1150
|
+
def create_foundation_model_agreement(params = {}, options = {})
|
1151
|
+
req = build_request(:create_foundation_model_agreement, params)
|
1152
|
+
req.send_request(options)
|
1153
|
+
end
|
1154
|
+
|
1123
1155
|
# Creates a guardrail to block topics and to implement safeguards for
|
1124
1156
|
# your generative AI applications.
|
1125
1157
|
#
|
@@ -2269,6 +2301,28 @@ module Aws::Bedrock
|
|
2269
2301
|
req.send_request(options)
|
2270
2302
|
end
|
2271
2303
|
|
2304
|
+
# Delete the model access agreement for the specified model.
|
2305
|
+
#
|
2306
|
+
# @option params [required, String] :model_id
|
2307
|
+
# Model Id of the model access to delete.
|
2308
|
+
#
|
2309
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2310
|
+
#
|
2311
|
+
# @example Request syntax with placeholder values
|
2312
|
+
#
|
2313
|
+
# resp = client.delete_foundation_model_agreement({
|
2314
|
+
# model_id: "BedrockModelId", # required
|
2315
|
+
# })
|
2316
|
+
#
|
2317
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteFoundationModelAgreement AWS API Documentation
|
2318
|
+
#
|
2319
|
+
# @overload delete_foundation_model_agreement(params = {})
|
2320
|
+
# @param [Hash] params ({})
|
2321
|
+
def delete_foundation_model_agreement(params = {}, options = {})
|
2322
|
+
req = build_request(:delete_foundation_model_agreement, params)
|
2323
|
+
req.send_request(options)
|
2324
|
+
end
|
2325
|
+
|
2272
2326
|
# Deletes a guardrail.
|
2273
2327
|
#
|
2274
2328
|
# * To delete a guardrail, only specify the ARN of the guardrail in the
|
@@ -2755,6 +2809,43 @@ module Aws::Bedrock
|
|
2755
2809
|
req.send_request(options)
|
2756
2810
|
end
|
2757
2811
|
|
2812
|
+
# Get information about the Foundation model availability.
|
2813
|
+
#
|
2814
|
+
# @option params [required, String] :model_id
|
2815
|
+
# The model Id of the foundation model.
|
2816
|
+
#
|
2817
|
+
# @return [Types::GetFoundationModelAvailabilityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2818
|
+
#
|
2819
|
+
# * {Types::GetFoundationModelAvailabilityResponse#model_id #model_id} => String
|
2820
|
+
# * {Types::GetFoundationModelAvailabilityResponse#agreement_availability #agreement_availability} => Types::AgreementAvailability
|
2821
|
+
# * {Types::GetFoundationModelAvailabilityResponse#authorization_status #authorization_status} => String
|
2822
|
+
# * {Types::GetFoundationModelAvailabilityResponse#entitlement_availability #entitlement_availability} => String
|
2823
|
+
# * {Types::GetFoundationModelAvailabilityResponse#region_availability #region_availability} => String
|
2824
|
+
#
|
2825
|
+
# @example Request syntax with placeholder values
|
2826
|
+
#
|
2827
|
+
# resp = client.get_foundation_model_availability({
|
2828
|
+
# model_id: "BedrockModelId", # required
|
2829
|
+
# })
|
2830
|
+
#
|
2831
|
+
# @example Response structure
|
2832
|
+
#
|
2833
|
+
# resp.model_id #=> String
|
2834
|
+
# resp.agreement_availability.status #=> String, one of "AVAILABLE", "PENDING", "NOT_AVAILABLE", "ERROR"
|
2835
|
+
# resp.agreement_availability.error_message #=> String
|
2836
|
+
# resp.authorization_status #=> String, one of "AUTHORIZED", "NOT_AUTHORIZED"
|
2837
|
+
# resp.entitlement_availability #=> String, one of "AVAILABLE", "NOT_AVAILABLE"
|
2838
|
+
# resp.region_availability #=> String, one of "AVAILABLE", "NOT_AVAILABLE"
|
2839
|
+
#
|
2840
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModelAvailability AWS API Documentation
|
2841
|
+
#
|
2842
|
+
# @overload get_foundation_model_availability(params = {})
|
2843
|
+
# @param [Hash] params ({})
|
2844
|
+
def get_foundation_model_availability(params = {}, options = {})
|
2845
|
+
req = build_request(:get_foundation_model_availability, params)
|
2846
|
+
req.send_request(options)
|
2847
|
+
end
|
2848
|
+
|
2758
2849
|
# Gets details about a guardrail. If you don't specify a version, the
|
2759
2850
|
# response returns details for the `DRAFT` version.
|
2760
2851
|
#
|
@@ -3455,6 +3546,25 @@ module Aws::Bedrock
|
|
3455
3546
|
req.send_request(options)
|
3456
3547
|
end
|
3457
3548
|
|
3549
|
+
# Get usecase for model access.
|
3550
|
+
#
|
3551
|
+
# @return [Types::GetUseCaseForModelAccessResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3552
|
+
#
|
3553
|
+
# * {Types::GetUseCaseForModelAccessResponse#form_data #form_data} => String
|
3554
|
+
#
|
3555
|
+
# @example Response structure
|
3556
|
+
#
|
3557
|
+
# resp.form_data #=> String
|
3558
|
+
#
|
3559
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetUseCaseForModelAccess AWS API Documentation
|
3560
|
+
#
|
3561
|
+
# @overload get_use_case_for_model_access(params = {})
|
3562
|
+
# @param [Hash] params ({})
|
3563
|
+
def get_use_case_for_model_access(params = {}, options = {})
|
3564
|
+
req = build_request(:get_use_case_for_model_access, params)
|
3565
|
+
req.send_request(options)
|
3566
|
+
end
|
3567
|
+
|
3458
3568
|
# Returns a list of the custom models that you have created with the
|
3459
3569
|
# `CreateModelCustomizationJob` operation.
|
3460
3570
|
#
|
@@ -3657,6 +3767,50 @@ module Aws::Bedrock
|
|
3657
3767
|
req.send_request(options)
|
3658
3768
|
end
|
3659
3769
|
|
3770
|
+
# Get the offers associated with the specified model.
|
3771
|
+
#
|
3772
|
+
# @option params [required, String] :model_id
|
3773
|
+
# Model Id of the foundation model.
|
3774
|
+
#
|
3775
|
+
# @option params [String] :offer_type
|
3776
|
+
# Type of offer associated with the model.
|
3777
|
+
#
|
3778
|
+
# @return [Types::ListFoundationModelAgreementOffersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3779
|
+
#
|
3780
|
+
# * {Types::ListFoundationModelAgreementOffersResponse#model_id #model_id} => String
|
3781
|
+
# * {Types::ListFoundationModelAgreementOffersResponse#offers #offers} => Array<Types::Offer>
|
3782
|
+
#
|
3783
|
+
# @example Request syntax with placeholder values
|
3784
|
+
#
|
3785
|
+
# resp = client.list_foundation_model_agreement_offers({
|
3786
|
+
# model_id: "BedrockModelId", # required
|
3787
|
+
# offer_type: "ALL", # accepts ALL, PUBLIC
|
3788
|
+
# })
|
3789
|
+
#
|
3790
|
+
# @example Response structure
|
3791
|
+
#
|
3792
|
+
# resp.model_id #=> String
|
3793
|
+
# resp.offers #=> Array
|
3794
|
+
# resp.offers[0].offer_id #=> String
|
3795
|
+
# resp.offers[0].offer_token #=> String
|
3796
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card #=> Array
|
3797
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].dimension #=> String
|
3798
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].price #=> String
|
3799
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].description #=> String
|
3800
|
+
# resp.offers[0].term_details.usage_based_pricing_term.rate_card[0].unit #=> String
|
3801
|
+
# resp.offers[0].term_details.legal_term.url #=> String
|
3802
|
+
# resp.offers[0].term_details.support_term.refund_policy_description #=> String
|
3803
|
+
# resp.offers[0].term_details.validity_term.agreement_duration #=> String
|
3804
|
+
#
|
3805
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListFoundationModelAgreementOffers AWS API Documentation
|
3806
|
+
#
|
3807
|
+
# @overload list_foundation_model_agreement_offers(params = {})
|
3808
|
+
# @param [Hash] params ({})
|
3809
|
+
def list_foundation_model_agreement_offers(params = {}, options = {})
|
3810
|
+
req = build_request(:list_foundation_model_agreement_offers, params)
|
3811
|
+
req.send_request(options)
|
3812
|
+
end
|
3813
|
+
|
3660
3814
|
# Lists Amazon Bedrock foundation models that you can use. You can
|
3661
3815
|
# filter the results with the request parameters. For more information,
|
3662
3816
|
# see [Foundation models][1] in the [Amazon Bedrock User Guide][2].
|
@@ -4635,6 +4789,28 @@ module Aws::Bedrock
|
|
4635
4789
|
req.send_request(options)
|
4636
4790
|
end
|
4637
4791
|
|
4792
|
+
# Put usecase for model access.
|
4793
|
+
#
|
4794
|
+
# @option params [required, String, StringIO, File] :form_data
|
4795
|
+
# Put customer profile Request.
|
4796
|
+
#
|
4797
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4798
|
+
#
|
4799
|
+
# @example Request syntax with placeholder values
|
4800
|
+
#
|
4801
|
+
# resp = client.put_use_case_for_model_access({
|
4802
|
+
# form_data: "data", # required
|
4803
|
+
# })
|
4804
|
+
#
|
4805
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutUseCaseForModelAccess AWS API Documentation
|
4806
|
+
#
|
4807
|
+
# @overload put_use_case_for_model_access(params = {})
|
4808
|
+
# @param [Hash] params ({})
|
4809
|
+
def put_use_case_for_model_access(params = {}, options = {})
|
4810
|
+
req = build_request(:put_use_case_for_model_access, params)
|
4811
|
+
req.send_request(options)
|
4812
|
+
end
|
4813
|
+
|
4638
4814
|
# Registers an existing Amazon SageMaker endpoint with Amazon Bedrock
|
4639
4815
|
# Marketplace, allowing it to be used with Amazon Bedrock APIs.
|
4640
4816
|
#
|
@@ -5179,7 +5355,7 @@ module Aws::Bedrock
|
|
5179
5355
|
tracer: tracer
|
5180
5356
|
)
|
5181
5357
|
context[:gem_name] = 'aws-sdk-bedrock'
|
5182
|
-
context[:gem_version] = '1.
|
5358
|
+
context[:gem_version] = '1.52.0'
|
5183
5359
|
Seahorse::Client::Request.new(handlers, context)
|
5184
5360
|
end
|
5185
5361
|
|