aws-sdk-bedrock 1.50.0 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +191 -1
- data/lib/aws-sdk-bedrock/client_api.rb +207 -0
- data/lib/aws-sdk-bedrock/types.rb +446 -4
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +80 -4
- data/sig/types.rbs +134 -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,16 @@
|
|
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
|
+
|
9
|
+
1.51.0 (2025-06-20)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add support for tiers in Content Filters and Denied Topics for Amazon Bedrock Guardrails.
|
13
|
+
|
4
14
|
1.50.0 (2025-06-19)
|
5
15
|
------------------
|
6
16
|
|
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
|
#
|
@@ -1238,6 +1270,9 @@ module Aws::Bedrock
|
|
1238
1270
|
# output_enabled: false,
|
1239
1271
|
# },
|
1240
1272
|
# ],
|
1273
|
+
# tier_config: {
|
1274
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
1275
|
+
# },
|
1241
1276
|
# },
|
1242
1277
|
# content_policy_config: {
|
1243
1278
|
# filters_config: [ # required
|
@@ -1253,6 +1288,9 @@ module Aws::Bedrock
|
|
1253
1288
|
# output_enabled: false,
|
1254
1289
|
# },
|
1255
1290
|
# ],
|
1291
|
+
# tier_config: {
|
1292
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
1293
|
+
# },
|
1256
1294
|
# },
|
1257
1295
|
# word_policy_config: {
|
1258
1296
|
# words_config: [
|
@@ -2263,6 +2301,28 @@ module Aws::Bedrock
|
|
2263
2301
|
req.send_request(options)
|
2264
2302
|
end
|
2265
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
|
+
|
2266
2326
|
# Deletes a guardrail.
|
2267
2327
|
#
|
2268
2328
|
# * To delete a guardrail, only specify the ARN of the guardrail in the
|
@@ -2749,6 +2809,43 @@ module Aws::Bedrock
|
|
2749
2809
|
req.send_request(options)
|
2750
2810
|
end
|
2751
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
|
+
|
2752
2849
|
# Gets details about a guardrail. If you don't specify a version, the
|
2753
2850
|
# response returns details for the `DRAFT` version.
|
2754
2851
|
#
|
@@ -2808,6 +2905,7 @@ module Aws::Bedrock
|
|
2808
2905
|
# resp.topic_policy.topics[0].output_action #=> String, one of "BLOCK", "NONE"
|
2809
2906
|
# resp.topic_policy.topics[0].input_enabled #=> Boolean
|
2810
2907
|
# resp.topic_policy.topics[0].output_enabled #=> Boolean
|
2908
|
+
# resp.topic_policy.tier.tier_name #=> String, one of "CLASSIC", "STANDARD"
|
2811
2909
|
# resp.content_policy.filters #=> Array
|
2812
2910
|
# resp.content_policy.filters[0].type #=> String, one of "SEXUAL", "VIOLENCE", "HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK"
|
2813
2911
|
# resp.content_policy.filters[0].input_strength #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH"
|
@@ -2820,6 +2918,7 @@ module Aws::Bedrock
|
|
2820
2918
|
# resp.content_policy.filters[0].output_action #=> String, one of "BLOCK", "NONE"
|
2821
2919
|
# resp.content_policy.filters[0].input_enabled #=> Boolean
|
2822
2920
|
# resp.content_policy.filters[0].output_enabled #=> Boolean
|
2921
|
+
# resp.content_policy.tier.tier_name #=> String, one of "CLASSIC", "STANDARD"
|
2823
2922
|
# resp.word_policy.words #=> Array
|
2824
2923
|
# resp.word_policy.words[0].text #=> String
|
2825
2924
|
# resp.word_policy.words[0].input_action #=> String, one of "BLOCK", "NONE"
|
@@ -3447,6 +3546,25 @@ module Aws::Bedrock
|
|
3447
3546
|
req.send_request(options)
|
3448
3547
|
end
|
3449
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
|
+
|
3450
3568
|
# Returns a list of the custom models that you have created with the
|
3451
3569
|
# `CreateModelCustomizationJob` operation.
|
3452
3570
|
#
|
@@ -3649,6 +3767,50 @@ module Aws::Bedrock
|
|
3649
3767
|
req.send_request(options)
|
3650
3768
|
end
|
3651
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
|
+
|
3652
3814
|
# Lists Amazon Bedrock foundation models that you can use. You can
|
3653
3815
|
# filter the results with the request parameters. For more information,
|
3654
3816
|
# see [Foundation models][1] in the [Amazon Bedrock User Guide][2].
|
@@ -4627,6 +4789,28 @@ module Aws::Bedrock
|
|
4627
4789
|
req.send_request(options)
|
4628
4790
|
end
|
4629
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
|
+
|
4630
4814
|
# Registers an existing Amazon SageMaker endpoint with Amazon Bedrock
|
4631
4815
|
# Marketplace, allowing it to be used with Amazon Bedrock APIs.
|
4632
4816
|
#
|
@@ -4934,6 +5118,9 @@ module Aws::Bedrock
|
|
4934
5118
|
# output_enabled: false,
|
4935
5119
|
# },
|
4936
5120
|
# ],
|
5121
|
+
# tier_config: {
|
5122
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
5123
|
+
# },
|
4937
5124
|
# },
|
4938
5125
|
# content_policy_config: {
|
4939
5126
|
# filters_config: [ # required
|
@@ -4949,6 +5136,9 @@ module Aws::Bedrock
|
|
4949
5136
|
# output_enabled: false,
|
4950
5137
|
# },
|
4951
5138
|
# ],
|
5139
|
+
# tier_config: {
|
5140
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
5141
|
+
# },
|
4952
5142
|
# },
|
4953
5143
|
# word_policy_config: {
|
4954
5144
|
# words_config: [
|
@@ -5165,7 +5355,7 @@ module Aws::Bedrock
|
|
5165
5355
|
tracer: tracer
|
5166
5356
|
)
|
5167
5357
|
context[:gem_name] = 'aws-sdk-bedrock'
|
5168
|
-
context[:gem_version] = '1.
|
5358
|
+
context[:gem_version] = '1.52.0'
|
5169
5359
|
Seahorse::Client::Request.new(handlers, context)
|
5170
5360
|
end
|
5171
5361
|
|