aws-sdk-bedrock 1.96.0 → 1.97.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 +17 -3
- data/lib/aws-sdk-bedrock/client_api.rb +11 -0
- data/lib/aws-sdk-bedrock/types.rb +69 -3
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +1 -0
- data/sig/params.rbs +4 -1
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +12 -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: d486d2fdafd2401465fb06838a69664610fca316f23f48d7a645597d851ed079
|
|
4
|
+
data.tar.gz: cc7805c6dff590c8acfdd961998cc760c4010f8158996e3df9961d6b2352cbf2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76205f6ef2953aefb5a32b1d10953e1cbee59f9a53cc9e69fbe10e36bea42998244538fa8de7ade1fd1fa0f7dfa1d75f19ffc2cb8f2355de2396254c9bfa08fa
|
|
7
|
+
data.tar.gz: a7ef7e7ddbb9fa3c2fb1e553618bdc33bf876d66410040365b9c1f1c11d3c80939e2e47fd739cdd57dc2449fe3e780ea9be2104e73cf0ce0866ad6e81946a69d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.97.0 (2026-10-20)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Bedrock Guardrails now supports a configurable tier for the contextual grounding policy via a new tier option. Select the Standard tier for grounding that better supports conversations and reasoning, with expanded language coverage.
|
|
8
|
+
|
|
4
9
|
1.96.0 (2026-10-19)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.97.0
|
|
@@ -201,13 +201,20 @@ module Aws::Bedrock
|
|
|
201
201
|
# the required types.
|
|
202
202
|
#
|
|
203
203
|
# @option options [Boolean] :correct_clock_skew (true)
|
|
204
|
-
# Used only in `standard` and `adaptive` retry modes. Specifies whether
|
|
205
|
-
# a clock skew correction and retry requests with skewed client
|
|
204
|
+
# Used only in `standard` and `adaptive` retry modes. Specifies whether
|
|
205
|
+
# to apply a clock skew correction and retry requests with skewed client
|
|
206
|
+
# clocks. Takes effect only when `disable_clock_skew_correction` is not set.
|
|
206
207
|
#
|
|
207
208
|
# @option options [String] :defaults_mode ("legacy")
|
|
208
209
|
# See {Aws::DefaultsModeConfiguration} for a list of the
|
|
209
210
|
# accepted modes and the configuration defaults that are included.
|
|
210
211
|
#
|
|
212
|
+
# @option options [Boolean] :disable_clock_skew_correction
|
|
213
|
+
# Used only in `standard` and `adaptive` retry modes. When `true`, the
|
|
214
|
+
# SDK does not apply a clock skew correction, does not update its stored
|
|
215
|
+
# skew from responses, and does not retry clock skew errors. Clock skew
|
|
216
|
+
# correction is enabled by default.
|
|
217
|
+
#
|
|
211
218
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
|
212
219
|
# When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
|
|
213
220
|
#
|
|
@@ -1991,6 +1998,9 @@ module Aws::Bedrock
|
|
|
1991
1998
|
# enabled: false,
|
|
1992
1999
|
# },
|
|
1993
2000
|
# ],
|
|
2001
|
+
# tier_config: {
|
|
2002
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
|
2003
|
+
# },
|
|
1994
2004
|
# },
|
|
1995
2005
|
# automated_reasoning_policy_config: {
|
|
1996
2006
|
# policies: ["AutomatedReasoningPolicyArn"], # required
|
|
@@ -4673,6 +4683,7 @@ module Aws::Bedrock
|
|
|
4673
4683
|
# resp.contextual_grounding_policy.filters[0].threshold #=> Float
|
|
4674
4684
|
# resp.contextual_grounding_policy.filters[0].action #=> String, one of "BLOCK", "NONE"
|
|
4675
4685
|
# resp.contextual_grounding_policy.filters[0].enabled #=> Boolean
|
|
4686
|
+
# resp.contextual_grounding_policy.tier.tier_name #=> String, one of "CLASSIC", "STANDARD"
|
|
4676
4687
|
# resp.automated_reasoning_policy.policies #=> Array
|
|
4677
4688
|
# resp.automated_reasoning_policy.policies[0] #=> String
|
|
4678
4689
|
# resp.automated_reasoning_policy.confidence_threshold #=> Float
|
|
@@ -8180,6 +8191,9 @@ module Aws::Bedrock
|
|
|
8180
8191
|
# enabled: false,
|
|
8181
8192
|
# },
|
|
8182
8193
|
# ],
|
|
8194
|
+
# tier_config: {
|
|
8195
|
+
# tier_name: "CLASSIC", # required, accepts CLASSIC, STANDARD
|
|
8196
|
+
# },
|
|
8183
8197
|
# },
|
|
8184
8198
|
# automated_reasoning_policy_config: {
|
|
8185
8199
|
# policies: ["AutomatedReasoningPolicyArn"], # required
|
|
@@ -8346,7 +8360,7 @@ module Aws::Bedrock
|
|
|
8346
8360
|
tracer: tracer
|
|
8347
8361
|
)
|
|
8348
8362
|
context[:gem_name] = 'aws-sdk-bedrock'
|
|
8349
|
-
context[:gem_version] = '1.
|
|
8363
|
+
context[:gem_version] = '1.97.0'
|
|
8350
8364
|
Seahorse::Client::Request.new(handlers, context)
|
|
8351
8365
|
end
|
|
8352
8366
|
|
|
@@ -512,6 +512,9 @@ module Aws::Bedrock
|
|
|
512
512
|
GuardrailContextualGroundingFiltersConfig = Shapes::ListShape.new(name: 'GuardrailContextualGroundingFiltersConfig')
|
|
513
513
|
GuardrailContextualGroundingPolicy = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingPolicy')
|
|
514
514
|
GuardrailContextualGroundingPolicyConfig = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingPolicyConfig')
|
|
515
|
+
GuardrailContextualGroundingTier = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingTier')
|
|
516
|
+
GuardrailContextualGroundingTierConfig = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingTierConfig')
|
|
517
|
+
GuardrailContextualGroundingTierName = Shapes::StringShape.new(name: 'GuardrailContextualGroundingTierName')
|
|
515
518
|
GuardrailCrossRegionConfig = Shapes::StructureShape.new(name: 'GuardrailCrossRegionConfig')
|
|
516
519
|
GuardrailCrossRegionDetails = Shapes::StructureShape.new(name: 'GuardrailCrossRegionDetails')
|
|
517
520
|
GuardrailCrossRegionGuardrailProfileArn = Shapes::StringShape.new(name: 'GuardrailCrossRegionGuardrailProfileArn')
|
|
@@ -2665,11 +2668,19 @@ module Aws::Bedrock
|
|
|
2665
2668
|
GuardrailContextualGroundingFiltersConfig.member = Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilterConfig)
|
|
2666
2669
|
|
|
2667
2670
|
GuardrailContextualGroundingPolicy.add_member(:filters, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFilters, required: true, location_name: "filters"))
|
|
2671
|
+
GuardrailContextualGroundingPolicy.add_member(:tier, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingTier, location_name: "tier"))
|
|
2668
2672
|
GuardrailContextualGroundingPolicy.struct_class = Types::GuardrailContextualGroundingPolicy
|
|
2669
2673
|
|
|
2670
2674
|
GuardrailContextualGroundingPolicyConfig.add_member(:filters_config, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFiltersConfig, required: true, location_name: "filtersConfig"))
|
|
2675
|
+
GuardrailContextualGroundingPolicyConfig.add_member(:tier_config, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingTierConfig, location_name: "tierConfig"))
|
|
2671
2676
|
GuardrailContextualGroundingPolicyConfig.struct_class = Types::GuardrailContextualGroundingPolicyConfig
|
|
2672
2677
|
|
|
2678
|
+
GuardrailContextualGroundingTier.add_member(:tier_name, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingTierName, required: true, location_name: "tierName"))
|
|
2679
|
+
GuardrailContextualGroundingTier.struct_class = Types::GuardrailContextualGroundingTier
|
|
2680
|
+
|
|
2681
|
+
GuardrailContextualGroundingTierConfig.add_member(:tier_name, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingTierName, required: true, location_name: "tierName"))
|
|
2682
|
+
GuardrailContextualGroundingTierConfig.struct_class = Types::GuardrailContextualGroundingTierConfig
|
|
2683
|
+
|
|
2673
2684
|
GuardrailCrossRegionConfig.add_member(:guardrail_profile_identifier, Shapes::ShapeRef.new(shape: GuardrailCrossRegionGuardrailProfileIdentifier, required: true, location_name: "guardrailProfileIdentifier"))
|
|
2674
2685
|
GuardrailCrossRegionConfig.struct_class = Types::GuardrailCrossRegionConfig
|
|
2675
2686
|
|
|
@@ -8423,10 +8423,15 @@ module Aws::Bedrock
|
|
|
8423
8423
|
# The filter details for the guardrails contextual grounding policy.
|
|
8424
8424
|
# @return [Array<Types::GuardrailContextualGroundingFilter>]
|
|
8425
8425
|
#
|
|
8426
|
+
# @!attribute [rw] tier
|
|
8427
|
+
# The tier that your guardrail uses for contextual grounding.
|
|
8428
|
+
# @return [Types::GuardrailContextualGroundingTier]
|
|
8429
|
+
#
|
|
8426
8430
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailContextualGroundingPolicy AWS API Documentation
|
|
8427
8431
|
#
|
|
8428
8432
|
class GuardrailContextualGroundingPolicy < Struct.new(
|
|
8429
|
-
:filters
|
|
8433
|
+
:filters,
|
|
8434
|
+
:tier)
|
|
8430
8435
|
SENSITIVE = []
|
|
8431
8436
|
include Aws::Structure
|
|
8432
8437
|
end
|
|
@@ -8439,14 +8444,75 @@ module Aws::Bedrock
|
|
|
8439
8444
|
# grounding policy.
|
|
8440
8445
|
# @return [Array<Types::GuardrailContextualGroundingFilterConfig>]
|
|
8441
8446
|
#
|
|
8447
|
+
# @!attribute [rw] tier_config
|
|
8448
|
+
# The tier that your guardrail uses for contextual grounding.
|
|
8449
|
+
# @return [Types::GuardrailContextualGroundingTierConfig]
|
|
8450
|
+
#
|
|
8442
8451
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailContextualGroundingPolicyConfig AWS API Documentation
|
|
8443
8452
|
#
|
|
8444
8453
|
class GuardrailContextualGroundingPolicyConfig < Struct.new(
|
|
8445
|
-
:filters_config
|
|
8454
|
+
:filters_config,
|
|
8455
|
+
:tier_config)
|
|
8446
8456
|
SENSITIVE = []
|
|
8447
8457
|
include Aws::Structure
|
|
8448
8458
|
end
|
|
8449
8459
|
|
|
8460
|
+
# Specifies the tier that your guardrail uses for contextual grounding
|
|
8461
|
+
# checks.
|
|
8462
|
+
#
|
|
8463
|
+
# @!attribute [rw] tier_name
|
|
8464
|
+
# The tier that your guardrail uses for contextual grounding. Valid
|
|
8465
|
+
# values include:
|
|
8466
|
+
#
|
|
8467
|
+
# * `CLASSIC` tier – Provides established contextual grounding
|
|
8468
|
+
# functionality supporting English, French, and Spanish languages.
|
|
8469
|
+
#
|
|
8470
|
+
# * `STANDARD` tier – Provides a more robust solution than the
|
|
8471
|
+
# `CLASSIC` tier, with support for reasoning, conversational content
|
|
8472
|
+
# and more comprehensive language support. This tier requires that
|
|
8473
|
+
# your guardrail use [cross-Region inference][1].
|
|
8474
|
+
#
|
|
8475
|
+
#
|
|
8476
|
+
#
|
|
8477
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html
|
|
8478
|
+
# @return [String]
|
|
8479
|
+
#
|
|
8480
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailContextualGroundingTier AWS API Documentation
|
|
8481
|
+
#
|
|
8482
|
+
class GuardrailContextualGroundingTier < Struct.new(
|
|
8483
|
+
:tier_name)
|
|
8484
|
+
SENSITIVE = [:tier_name]
|
|
8485
|
+
include Aws::Structure
|
|
8486
|
+
end
|
|
8487
|
+
|
|
8488
|
+
# Specifies the tier that your guardrail uses for contextual grounding
|
|
8489
|
+
# checks.
|
|
8490
|
+
#
|
|
8491
|
+
# @!attribute [rw] tier_name
|
|
8492
|
+
# The tier that your guardrail uses for contextual grounding. Valid
|
|
8493
|
+
# values include:
|
|
8494
|
+
#
|
|
8495
|
+
# * `CLASSIC` tier – Provides established contextual grounding
|
|
8496
|
+
# functionality supporting English, French, and Spanish languages.
|
|
8497
|
+
#
|
|
8498
|
+
# * `STANDARD` tier – Provides a more robust solution than the
|
|
8499
|
+
# `CLASSIC` tier, with support for reasoning, conversational content
|
|
8500
|
+
# and more comprehensive language support. This tier requires that
|
|
8501
|
+
# your guardrail use [cross-Region inference][1].
|
|
8502
|
+
#
|
|
8503
|
+
#
|
|
8504
|
+
#
|
|
8505
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html
|
|
8506
|
+
# @return [String]
|
|
8507
|
+
#
|
|
8508
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailContextualGroundingTierConfig AWS API Documentation
|
|
8509
|
+
#
|
|
8510
|
+
class GuardrailContextualGroundingTierConfig < Struct.new(
|
|
8511
|
+
:tier_name)
|
|
8512
|
+
SENSITIVE = [:tier_name]
|
|
8513
|
+
include Aws::Structure
|
|
8514
|
+
end
|
|
8515
|
+
|
|
8450
8516
|
# The system-defined guardrail profile that you're using with your
|
|
8451
8517
|
# guardrail. Guardrail profiles define the destination Amazon Web
|
|
8452
8518
|
# Services Regions where guardrail inference requests can be
|
|
@@ -13088,7 +13154,7 @@ module Aws::Bedrock
|
|
|
13088
13154
|
#
|
|
13089
13155
|
# The following example would return data sources with an animals
|
|
13090
13156
|
# attribute that is a list containing a cat member (for example,
|
|
13091
|
-
# `["dog", "cat"]
|
|
13157
|
+
# `["dog", "cat"]`): `"listContains": { "key": "animals", "value":
|
|
13092
13158
|
# "cat" }`
|
|
13093
13159
|
# @return [Types::FilterAttribute]
|
|
13094
13160
|
#
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
data/sig/params.rbs
CHANGED
data/sig/resource.rbs
CHANGED
data/sig/types.rbs
CHANGED
|
@@ -2246,14 +2246,26 @@ module Aws::Bedrock
|
|
|
2246
2246
|
|
|
2247
2247
|
class GuardrailContextualGroundingPolicy
|
|
2248
2248
|
attr_accessor filters: ::Array[Types::GuardrailContextualGroundingFilter]
|
|
2249
|
+
attr_accessor tier: Types::GuardrailContextualGroundingTier
|
|
2249
2250
|
SENSITIVE: []
|
|
2250
2251
|
end
|
|
2251
2252
|
|
|
2252
2253
|
class GuardrailContextualGroundingPolicyConfig
|
|
2253
2254
|
attr_accessor filters_config: ::Array[Types::GuardrailContextualGroundingFilterConfig]
|
|
2255
|
+
attr_accessor tier_config: Types::GuardrailContextualGroundingTierConfig
|
|
2254
2256
|
SENSITIVE: []
|
|
2255
2257
|
end
|
|
2256
2258
|
|
|
2259
|
+
class GuardrailContextualGroundingTier
|
|
2260
|
+
attr_accessor tier_name: ("CLASSIC" | "STANDARD")
|
|
2261
|
+
SENSITIVE: [:tier_name]
|
|
2262
|
+
end
|
|
2263
|
+
|
|
2264
|
+
class GuardrailContextualGroundingTierConfig
|
|
2265
|
+
attr_accessor tier_name: ("CLASSIC" | "STANDARD")
|
|
2266
|
+
SENSITIVE: [:tier_name]
|
|
2267
|
+
end
|
|
2268
|
+
|
|
2257
2269
|
class GuardrailCrossRegionConfig
|
|
2258
2270
|
attr_accessor guardrail_profile_identifier: ::String
|
|
2259
2271
|
SENSITIVE: []
|