aws-sdk-bedrock 1.32.0 → 1.34.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 +28 -1
- data/lib/aws-sdk-bedrock/client_api.rb +6 -0
- data/lib/aws-sdk-bedrock/types.rb +21 -1
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +6 -1
- data/sig/resource.rbs +2 -0
- data/sig/types.rbs +6 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98eac118c0db4ca008d3fd1de5749084d7290290623a6301836691355faafd14
|
4
|
+
data.tar.gz: b8236cc9fa1dd0f2e2029adaa7715c93236da0d69caae27b5170bdea6603b15a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 852588fe18d76d9e03535c57c94b9c1c4f80e1a21132532a41353826cd0c333633a7ef89a38cfb03b4a2ed0398e02ae5d247537ee07886aa400ecf6327aac493
|
7
|
+
data.tar.gz: d3755e6d957b2c5635b165ec51371055eebd0011f7ebbc2797093d0f11f45fb0d1737e65940fa0b35a95b13a9625deb21f432501461b5f00604d17029c25146d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.34.0 (2025-01-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.33.0 (2025-01-13)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - With this release, Bedrock Evaluation will now support latency-optimized inference for foundation models.
|
13
|
+
|
4
14
|
1.32.0 (2024-12-04)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.34.0
|
@@ -257,11 +257,34 @@ module Aws::Bedrock
|
|
257
257
|
# Used when loading credentials from the shared credentials file
|
258
258
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
259
259
|
#
|
260
|
+
# @option options [String] :request_checksum_calculation ("when_supported")
|
261
|
+
# Determines when a checksum will be calculated for request payloads. Values are:
|
262
|
+
#
|
263
|
+
# * `when_supported` - (default) When set, a checksum will be
|
264
|
+
# calculated for all request payloads of operations modeled with the
|
265
|
+
# `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
|
266
|
+
# `requestAlgorithmMember` is modeled.
|
267
|
+
# * `when_required` - When set, a checksum will only be calculated for
|
268
|
+
# request payloads of operations modeled with the `httpChecksum` trait where
|
269
|
+
# `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
|
270
|
+
# is modeled and supplied.
|
271
|
+
#
|
260
272
|
# @option options [Integer] :request_min_compression_size_bytes (10240)
|
261
273
|
# The minimum size in bytes that triggers compression for request
|
262
274
|
# bodies. The value must be non-negative integer value between 0
|
263
275
|
# and 10485780 bytes inclusive.
|
264
276
|
#
|
277
|
+
# @option options [String] :response_checksum_validation ("when_supported")
|
278
|
+
# Determines when checksum validation will be performed on response payloads. Values are:
|
279
|
+
#
|
280
|
+
# * `when_supported` - (default) When set, checksum validation is performed on all
|
281
|
+
# response payloads of operations modeled with the `httpChecksum` trait where
|
282
|
+
# `responseAlgorithms` is modeled, except when no modeled checksum algorithms
|
283
|
+
# are supported.
|
284
|
+
# * `when_required` - When set, checksum validation is not performed on
|
285
|
+
# response payloads of operations unless the checksum algorithm is supported and
|
286
|
+
# the `requestValidationModeMember` member is set to `ENABLED`.
|
287
|
+
#
|
265
288
|
# @option options [Proc] :retry_backoff
|
266
289
|
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
267
290
|
# This option is only used in the `legacy` retry mode.
|
@@ -622,6 +645,9 @@ module Aws::Bedrock
|
|
622
645
|
# bedrock_model: {
|
623
646
|
# model_identifier: "EvaluationModelIdentifier", # required
|
624
647
|
# inference_params: "EvaluationModelInferenceParams",
|
648
|
+
# performance_config: {
|
649
|
+
# latency: "standard", # accepts standard, optimized
|
650
|
+
# },
|
625
651
|
# },
|
626
652
|
# },
|
627
653
|
# ],
|
@@ -2221,6 +2247,7 @@ module Aws::Bedrock
|
|
2221
2247
|
# resp.inference_config.models #=> Array
|
2222
2248
|
# resp.inference_config.models[0].bedrock_model.model_identifier #=> String
|
2223
2249
|
# resp.inference_config.models[0].bedrock_model.inference_params #=> String
|
2250
|
+
# resp.inference_config.models[0].bedrock_model.performance_config.latency #=> String, one of "standard", "optimized"
|
2224
2251
|
# resp.inference_config.rag_configs #=> Array
|
2225
2252
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_id #=> String
|
2226
2253
|
# resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.number_of_results #=> Integer
|
@@ -4633,7 +4660,7 @@ module Aws::Bedrock
|
|
4633
4660
|
tracer: tracer
|
4634
4661
|
)
|
4635
4662
|
context[:gem_name] = 'aws-sdk-bedrock'
|
4636
|
-
context[:gem_version] = '1.
|
4663
|
+
context[:gem_version] = '1.34.0'
|
4637
4664
|
Seahorse::Client::Request.new(handlers, context)
|
4638
4665
|
end
|
4639
4666
|
|
@@ -370,6 +370,8 @@ module Aws::Bedrock
|
|
370
370
|
OrchestrationConfiguration = Shapes::StructureShape.new(name: 'OrchestrationConfiguration')
|
371
371
|
OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
|
372
372
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
373
|
+
PerformanceConfigLatency = Shapes::StringShape.new(name: 'PerformanceConfigLatency')
|
374
|
+
PerformanceConfiguration = Shapes::StructureShape.new(name: 'PerformanceConfiguration')
|
373
375
|
PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
|
374
376
|
PromptRouterArn = Shapes::StringShape.new(name: 'PromptRouterArn')
|
375
377
|
PromptRouterDescription = Shapes::StringShape.new(name: 'PromptRouterDescription')
|
@@ -731,6 +733,7 @@ module Aws::Bedrock
|
|
731
733
|
|
732
734
|
EvaluationBedrockModel.add_member(:model_identifier, Shapes::ShapeRef.new(shape: EvaluationModelIdentifier, required: true, location_name: "modelIdentifier"))
|
733
735
|
EvaluationBedrockModel.add_member(:inference_params, Shapes::ShapeRef.new(shape: EvaluationModelInferenceParams, location_name: "inferenceParams"))
|
736
|
+
EvaluationBedrockModel.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
|
734
737
|
EvaluationBedrockModel.struct_class = Types::EvaluationBedrockModel
|
735
738
|
|
736
739
|
EvaluationConfig.add_member(:automated, Shapes::ShapeRef.new(shape: AutomatedEvaluationConfig, location_name: "automated"))
|
@@ -1626,6 +1629,9 @@ module Aws::Bedrock
|
|
1626
1629
|
OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
|
1627
1630
|
OutputDataConfig.struct_class = Types::OutputDataConfig
|
1628
1631
|
|
1632
|
+
PerformanceConfiguration.add_member(:latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location_name: "latency"))
|
1633
|
+
PerformanceConfiguration.struct_class = Types::PerformanceConfiguration
|
1634
|
+
|
1629
1635
|
PromptRouterSummaries.member = Shapes::ShapeRef.new(shape: PromptRouterSummary)
|
1630
1636
|
|
1631
1637
|
PromptRouterSummary.add_member(:prompt_router_name, Shapes::ShapeRef.new(shape: PromptRouterName, required: true, location_name: "promptRouterName"))
|
@@ -1303,11 +1303,16 @@ module Aws::Bedrock
|
|
1303
1303
|
# change how the model behaves during inference.
|
1304
1304
|
# @return [String]
|
1305
1305
|
#
|
1306
|
+
# @!attribute [rw] performance_config
|
1307
|
+
# Specifies performance settings for the model or inference profile.
|
1308
|
+
# @return [Types::PerformanceConfiguration]
|
1309
|
+
#
|
1306
1310
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationBedrockModel AWS API Documentation
|
1307
1311
|
#
|
1308
1312
|
class EvaluationBedrockModel < Struct.new(
|
1309
1313
|
:model_identifier,
|
1310
|
-
:inference_params
|
1314
|
+
:inference_params,
|
1315
|
+
:performance_config)
|
1311
1316
|
SENSITIVE = [:inference_params]
|
1312
1317
|
include Aws::Structure
|
1313
1318
|
end
|
@@ -5978,6 +5983,21 @@ module Aws::Bedrock
|
|
5978
5983
|
include Aws::Structure
|
5979
5984
|
end
|
5980
5985
|
|
5986
|
+
# Contains performance settings for a model.
|
5987
|
+
#
|
5988
|
+
# @!attribute [rw] latency
|
5989
|
+
# Specifies whether to use the latency-optimized or standard version
|
5990
|
+
# of a model or inference profile.
|
5991
|
+
# @return [String]
|
5992
|
+
#
|
5993
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PerformanceConfiguration AWS API Documentation
|
5994
|
+
#
|
5995
|
+
class PerformanceConfiguration < Struct.new(
|
5996
|
+
:latency)
|
5997
|
+
SENSITIVE = []
|
5998
|
+
include Aws::Structure
|
5999
|
+
end
|
6000
|
+
|
5981
6001
|
# Details about a prompt router.
|
5982
6002
|
#
|
5983
6003
|
# @!attribute [rw] prompt_router_name
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -39,7 +39,9 @@ module Aws
|
|
39
39
|
?logger: untyped,
|
40
40
|
?max_attempts: Integer,
|
41
41
|
?profile: String,
|
42
|
+
?request_checksum_calculation: String,
|
42
43
|
?request_min_compression_size_bytes: Integer,
|
44
|
+
?response_checksum_validation: String,
|
43
45
|
?retry_backoff: Proc,
|
44
46
|
?retry_base_delay: Float,
|
45
47
|
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
@@ -157,7 +159,10 @@ module Aws
|
|
157
159
|
{
|
158
160
|
bedrock_model: {
|
159
161
|
model_identifier: ::String,
|
160
|
-
inference_params: ::String
|
162
|
+
inference_params: ::String?,
|
163
|
+
performance_config: {
|
164
|
+
latency: ("standard" | "optimized")?
|
165
|
+
}?
|
161
166
|
}?
|
162
167
|
},
|
163
168
|
]?,
|
data/sig/resource.rbs
CHANGED
@@ -39,7 +39,9 @@ module Aws
|
|
39
39
|
?logger: untyped,
|
40
40
|
?max_attempts: Integer,
|
41
41
|
?profile: String,
|
42
|
+
?request_checksum_calculation: String,
|
42
43
|
?request_min_compression_size_bytes: Integer,
|
44
|
+
?response_checksum_validation: String,
|
43
45
|
?retry_backoff: Proc,
|
44
46
|
?retry_base_delay: Float,
|
45
47
|
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
data/sig/types.rbs
CHANGED
@@ -346,6 +346,7 @@ module Aws::Bedrock
|
|
346
346
|
class EvaluationBedrockModel
|
347
347
|
attr_accessor model_identifier: ::String
|
348
348
|
attr_accessor inference_params: ::String
|
349
|
+
attr_accessor performance_config: Types::PerformanceConfiguration
|
349
350
|
SENSITIVE: [:inference_params]
|
350
351
|
end
|
351
352
|
|
@@ -1448,6 +1449,11 @@ module Aws::Bedrock
|
|
1448
1449
|
SENSITIVE: []
|
1449
1450
|
end
|
1450
1451
|
|
1452
|
+
class PerformanceConfiguration
|
1453
|
+
attr_accessor latency: ("standard" | "optimized")
|
1454
|
+
SENSITIVE: []
|
1455
|
+
end
|
1456
|
+
|
1451
1457
|
class PromptRouterSummary
|
1452
1458
|
attr_accessor prompt_router_name: ::String
|
1453
1459
|
attr_accessor routing_criteria: Types::RoutingCriteria
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.216.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.216.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|