aws-sdk-bedrockruntime 1.77.0 → 1.78.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af3aa4537a2b25e1fec6ef07e2f6821cc6d2f2f4b4309505052cb561a21085eb
4
- data.tar.gz: c8335aa582b8a15112c310a48d7a011cf7df80b57db8b9e0417203d884d096ed
3
+ metadata.gz: c1f8855f2636f303d99775193c7365e3179b8b88036e596dd4176c7d4851d324
4
+ data.tar.gz: fbb2fb59dee917cb24ae52bd4e55bd534701f11d7cdf7ab34339e2adda053367
5
5
  SHA512:
6
- metadata.gz: 5cb2f04adf982d27189a9bea73e3cb0934da66daf4b110723b9cd4df9d0e41448fadcf9394f786dcb5e42485ca9771688710809c9d2a5cc351ee586563b29475
7
- data.tar.gz: e1a5916eff6b7c8b9bc27c014d1f2c9c981ea464f1d0fc3fede41c3591ababd3254ec42e64a788e8c2d955ba1974fc95d594301f94717c83e817ad5a133d531a
6
+ metadata.gz: b10c5a0dc32076a90b370e6084d64b0e92b9b45b5e61d179131017ea9f0adb5cb0893e14509c9a9d3ab5cf4b083fa64e163e8f225534223f69ab22f6f944eb25
7
+ data.tar.gz: 70690c21b91c44fbbf3ca2e064db0fc61b2bac50e224ae1d1c2d66c26b9a7b01c6557d5edd251e9cf977fbe9d41a393d16c44acd54b88e4b709e237fc83d90fc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.78.0 (2026-05-20)
5
+ ------------------
6
+
7
+ * Feature - Supporting Request Metadata for Invoke Model and Invoke Model with Response Stream
8
+
4
9
  1.77.0 (2026-05-19)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.77.0
1
+ 1.78.0
@@ -621,7 +621,7 @@ module Aws::BedrockRuntime
621
621
  tracer: tracer
622
622
  )
623
623
  context[:gem_name] = 'aws-sdk-bedrockruntime'
624
- context[:gem_version] = '1.77.0'
624
+ context[:gem_version] = '1.78.0'
625
625
  Seahorse::Client::Request.new(handlers, context)
626
626
  end
627
627
 
@@ -3376,6 +3376,9 @@ module Aws::BedrockRuntime
3376
3376
  # @option params [String] :service_tier
3377
3377
  # Specifies the processing tier type used for serving the request.
3378
3378
  #
3379
+ # @option params [String] :request_metadata
3380
+ # Key-value pairs that you can use to filter invocation logs.
3381
+ #
3379
3382
  # @return [Types::InvokeModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3380
3383
  #
3381
3384
  # * {Types::InvokeModelResponse#body #body} => String
@@ -3395,6 +3398,7 @@ module Aws::BedrockRuntime
3395
3398
  # guardrail_version: "GuardrailVersion",
3396
3399
  # performance_config_latency: "standard", # accepts standard, optimized
3397
3400
  # service_tier: "priority", # accepts priority, default, flex, reserved
3401
+ # request_metadata: "RequestMetadataJson",
3398
3402
  # })
3399
3403
  #
3400
3404
  # @example Response structure
@@ -3536,6 +3540,9 @@ module Aws::BedrockRuntime
3536
3540
  # @option params [String] :service_tier
3537
3541
  # Specifies the processing tier type used for serving the request.
3538
3542
  #
3543
+ # @option params [String] :request_metadata
3544
+ # Key-value pairs that you can use to filter invocation logs.
3545
+ #
3539
3546
  # @return [Types::InvokeModelWithResponseStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3540
3547
  #
3541
3548
  # * {Types::InvokeModelWithResponseStreamResponse#body #body} => Types::ResponseStream
@@ -3698,6 +3705,7 @@ module Aws::BedrockRuntime
3698
3705
  # guardrail_version: "GuardrailVersion",
3699
3706
  # performance_config_latency: "standard", # accepts standard, optimized
3700
3707
  # service_tier: "priority", # accepts priority, default, flex, reserved
3708
+ # request_metadata: "RequestMetadataJson",
3701
3709
  # })
3702
3710
  #
3703
3711
  # @example Response structure
@@ -3926,7 +3934,7 @@ module Aws::BedrockRuntime
3926
3934
  tracer: tracer
3927
3935
  )
3928
3936
  context[:gem_name] = 'aws-sdk-bedrockruntime'
3929
- context[:gem_version] = '1.77.0'
3937
+ context[:gem_version] = '1.78.0'
3930
3938
  Seahorse::Client::Request.new(handlers, context)
3931
3939
  end
3932
3940
 
@@ -289,6 +289,7 @@ module Aws::BedrockRuntime
289
289
  ReasoningContentBlockDelta = Shapes::UnionShape.new(name: 'ReasoningContentBlockDelta')
290
290
  ReasoningTextBlock = Shapes::StructureShape.new(name: 'ReasoningTextBlock')
291
291
  RequestMetadata = Shapes::MapShape.new(name: 'RequestMetadata')
292
+ RequestMetadataJson = Shapes::StringShape.new(name: 'RequestMetadataJson')
292
293
  RequestMetadataKeyString = Shapes::StringShape.new(name: 'RequestMetadataKeyString')
293
294
  RequestMetadataValueString = Shapes::StringShape.new(name: 'RequestMetadataValueString')
294
295
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -1064,6 +1065,7 @@ module Aws::BedrockRuntime
1064
1065
  InvokeModelRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion"))
1065
1066
  InvokeModelRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
1066
1067
  InvokeModelRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
1068
+ InvokeModelRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadataJson, location: "header", location_name: "X-Amzn-Bedrock-Request-Metadata"))
1067
1069
  InvokeModelRequest.struct_class = Types::InvokeModelRequest
1068
1070
  InvokeModelRequest[:payload] = :body
1069
1071
  InvokeModelRequest[:payload_member] = InvokeModelRequest.member(:body)
@@ -1111,6 +1113,7 @@ module Aws::BedrockRuntime
1111
1113
  InvokeModelWithResponseStreamRequest.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, location: "header", location_name: "X-Amzn-Bedrock-GuardrailVersion"))
1112
1114
  InvokeModelWithResponseStreamRequest.add_member(:performance_config_latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location: "header", location_name: "X-Amzn-Bedrock-PerformanceConfig-Latency"))
1113
1115
  InvokeModelWithResponseStreamRequest.add_member(:service_tier, Shapes::ShapeRef.new(shape: ServiceTierType, location: "header", location_name: "X-Amzn-Bedrock-Service-Tier"))
1116
+ InvokeModelWithResponseStreamRequest.add_member(:request_metadata, Shapes::ShapeRef.new(shape: RequestMetadataJson, location: "header", location_name: "X-Amzn-Bedrock-Request-Metadata"))
1114
1117
  InvokeModelWithResponseStreamRequest.struct_class = Types::InvokeModelWithResponseStreamRequest
1115
1118
  InvokeModelWithResponseStreamRequest[:payload] = :body
1116
1119
  InvokeModelWithResponseStreamRequest[:payload_member] = InvokeModelWithResponseStreamRequest.member(:body)
@@ -3338,6 +3338,10 @@ module Aws::BedrockRuntime
3338
3338
  # Specifies the processing tier type used for serving the request.
3339
3339
  # @return [String]
3340
3340
  #
3341
+ # @!attribute [rw] request_metadata
3342
+ # Key-value pairs that you can use to filter invocation logs.
3343
+ # @return [String]
3344
+ #
3341
3345
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelRequest AWS API Documentation
3342
3346
  #
3343
3347
  class InvokeModelRequest < Struct.new(
@@ -3349,8 +3353,9 @@ module Aws::BedrockRuntime
3349
3353
  :guardrail_identifier,
3350
3354
  :guardrail_version,
3351
3355
  :performance_config_latency,
3352
- :service_tier)
3353
- SENSITIVE = [:body]
3356
+ :service_tier,
3357
+ :request_metadata)
3358
+ SENSITIVE = [:body, :request_metadata]
3354
3359
  include Aws::Structure
3355
3360
  end
3356
3361
 
@@ -3547,6 +3552,10 @@ module Aws::BedrockRuntime
3547
3552
  # Specifies the processing tier type used for serving the request.
3548
3553
  # @return [String]
3549
3554
  #
3555
+ # @!attribute [rw] request_metadata
3556
+ # Key-value pairs that you can use to filter invocation logs.
3557
+ # @return [String]
3558
+ #
3550
3559
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/InvokeModelWithResponseStreamRequest AWS API Documentation
3551
3560
  #
3552
3561
  class InvokeModelWithResponseStreamRequest < Struct.new(
@@ -3558,8 +3567,9 @@ module Aws::BedrockRuntime
3558
3567
  :guardrail_identifier,
3559
3568
  :guardrail_version,
3560
3569
  :performance_config_latency,
3561
- :service_tier)
3562
- SENSITIVE = [:body]
3570
+ :service_tier,
3571
+ :request_metadata)
3572
+ SENSITIVE = [:body, :request_metadata]
3563
3573
  include Aws::Structure
3564
3574
  end
3565
3575
 
@@ -73,7 +73,7 @@ module Aws::BedrockRuntime
73
73
  autoload :AsyncClient, 'aws-sdk-bedrockruntime/async_client'
74
74
  autoload :EventStreams, 'aws-sdk-bedrockruntime/event_streams'
75
75
 
76
- GEM_VERSION = '1.77.0'
76
+ GEM_VERSION = '1.78.0'
77
77
 
78
78
  end
79
79
 
data/sig/client.rbs CHANGED
@@ -266,7 +266,8 @@ module Aws
266
266
  ?guardrail_identifier: ::String,
267
267
  ?guardrail_version: ::String,
268
268
  ?performance_config_latency: ("standard" | "optimized"),
269
- ?service_tier: ("priority" | "default" | "flex" | "reserved")
269
+ ?service_tier: ("priority" | "default" | "flex" | "reserved"),
270
+ ?request_metadata: ::String
270
271
  ) -> _InvokeModelResponseSuccess
271
272
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeModelResponseSuccess
272
273
 
@@ -287,7 +288,8 @@ module Aws
287
288
  ?guardrail_identifier: ::String,
288
289
  ?guardrail_version: ::String,
289
290
  ?performance_config_latency: ("standard" | "optimized"),
290
- ?service_tier: ("priority" | "default" | "flex" | "reserved")
291
+ ?service_tier: ("priority" | "default" | "flex" | "reserved"),
292
+ ?request_metadata: ::String
291
293
  ) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
292
294
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeModelWithResponseStreamResponseSuccess
293
295
 
data/sig/types.rbs CHANGED
@@ -935,7 +935,8 @@ module Aws::BedrockRuntime
935
935
  attr_accessor guardrail_version: ::String
936
936
  attr_accessor performance_config_latency: ("standard" | "optimized")
937
937
  attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
938
- SENSITIVE: [:body]
938
+ attr_accessor request_metadata: ::String
939
+ SENSITIVE: [:body, :request_metadata]
939
940
  end
940
941
 
941
942
  class InvokeModelResponse
@@ -972,7 +973,8 @@ module Aws::BedrockRuntime
972
973
  attr_accessor guardrail_version: ::String
973
974
  attr_accessor performance_config_latency: ("standard" | "optimized")
974
975
  attr_accessor service_tier: ("priority" | "default" | "flex" | "reserved")
975
- SENSITIVE: [:body]
976
+ attr_accessor request_metadata: ::String
977
+ SENSITIVE: [:body, :request_metadata]
976
978
  end
977
979
 
978
980
  class InvokeModelWithResponseStreamResponse
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.77.0
4
+ version: 1.78.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services