aws-sdk-bedrockagentruntime 1.40.0 → 1.41.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: ae61bbd4a1a88db941f44e4ecd10e06b1f1f14de6530f6a58736e0e61516900e
4
- data.tar.gz: 8a46c8d3d8fa36e86bd4f49c69fb7813c78637ab36b42c6832ecaea20e6e2a18
3
+ metadata.gz: 8fa1e662a49c9a1f9c3cb769cb7e767b8372ffa0307cfc29f876e16459e1ad8a
4
+ data.tar.gz: e366d900741f248f0b6723721e8c6fc22bed8fbb91359eaa1dbaf53b2c4d085b
5
5
  SHA512:
6
- metadata.gz: db74795fc29276da164fa995947f7af6b455b5c575286361ce28a4721862311d176757f5483eed0abb0bf2a31cffc419fb82349dba4962d5d8bf4e8a5eed9fad
7
- data.tar.gz: b609981f3e48472cd1214c84b85b073a55f48e6f74f0af161f93b875789b63eb2dc0e7642ea05e7ec974d8d259691fefb9a7a207b2817d162fe1e2ce6b46278c
6
+ metadata.gz: 87d3ecf4841e471f13bff33dccd9dadc9b5c6bea10b2044bd3a12959ae78912db7cb20e8f3f681e1fd756becf44bdd46dfdb4b72ad4798ee39d44a0c10d8925b
7
+ data.tar.gz: 204b0dc932d78525210498b6a5dfcd70cd0771ebe40ee341c1e8a013a1df9fd0c626a148d1ba820ba9171f649580af6ccda7c6d84841a8b995291b557d625465
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.41.0 (2025-01-30)
5
+ ------------------
6
+
7
+ * Feature - Add a 'reason' field to InternalServerException
8
+
4
9
  1.40.0 (2025-01-22)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.40.0
1
+ 1.41.0
@@ -1206,6 +1206,7 @@ module Aws::BedrockAgentRuntime
1206
1206
  #
1207
1207
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
1208
1208
  # event.message #=> String
1209
+ # event.reason #=> String
1209
1210
  #
1210
1211
  # For :model_not_ready_exception event available at #on_model_not_ready_exception_event callback and response eventstream enumerator:
1211
1212
  # event.message #=> String
@@ -1936,6 +1937,7 @@ module Aws::BedrockAgentRuntime
1936
1937
  #
1937
1938
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
1938
1939
  # event.message #=> String
1940
+ # event.reason #=> String
1939
1941
  #
1940
1942
  # For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
1941
1943
  # event.message #=> String
@@ -2596,6 +2598,7 @@ module Aws::BedrockAgentRuntime
2596
2598
  #
2597
2599
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
2598
2600
  # event.message #=> String
2601
+ # event.reason #=> String
2599
2602
  #
2600
2603
  # For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
2601
2604
  # event.message #=> String
@@ -3204,6 +3207,7 @@ module Aws::BedrockAgentRuntime
3204
3207
  #
3205
3208
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
3206
3209
  # event.message #=> String
3210
+ # event.reason #=> String
3207
3211
  #
3208
3212
  # For :optimized_prompt_event event available at #on_optimized_prompt_event_event callback and response eventstream enumerator:
3209
3213
  # event.optimized_prompt.text_prompt.text #=> String
@@ -3820,6 +3824,9 @@ module Aws::BedrockAgentRuntime
3820
3824
  #
3821
3825
  # </note>
3822
3826
  #
3827
+ # This operation requires permission for the `
3828
+ # bedrock:RetrieveAndGenerate` action.
3829
+ #
3823
3830
  # @option params [required, Types::RetrieveAndGenerateInput] :input
3824
3831
  # Contains the query to be made to the knowledge base.
3825
3832
  #
@@ -4295,6 +4302,7 @@ module Aws::BedrockAgentRuntime
4295
4302
  #
4296
4303
  # For :internal_server_exception event available at #on_internal_server_exception_event callback and response eventstream enumerator:
4297
4304
  # event.message #=> String
4305
+ # event.reason #=> String
4298
4306
  #
4299
4307
  # For :output event available at #on_output_event callback and response eventstream enumerator:
4300
4308
  # event.text #=> String
@@ -4356,7 +4364,7 @@ module Aws::BedrockAgentRuntime
4356
4364
  tracer: tracer
4357
4365
  )
4358
4366
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
4359
- context[:gem_version] = '1.40.0'
4367
+ context[:gem_version] = '1.41.0'
4360
4368
  Seahorse::Client::Request.new(handlers, context)
4361
4369
  end
4362
4370
 
@@ -1008,6 +1008,7 @@ module Aws::BedrockAgentRuntime
1008
1008
  InputPrompt.struct_class = Types::InputPrompt
1009
1009
 
1010
1010
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
1011
+ InternalServerException.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
1011
1012
  InternalServerException.struct_class = Types::InternalServerException
1012
1013
 
1013
1014
  InvocationInput.add_member(:action_group_invocation_input, Shapes::ShapeRef.new(shape: ActionGroupInvocationInput, location_name: "actionGroupInvocationInput"))
@@ -127,6 +127,11 @@ module Aws::BedrockAgentRuntime
127
127
  def message
128
128
  @message || @data[:message]
129
129
  end
130
+
131
+ # @return [String]
132
+ def reason
133
+ @data[:reason]
134
+ end
130
135
  end
131
136
 
132
137
  class ModelNotReadyException < ServiceError
@@ -2663,10 +2663,17 @@ module Aws::BedrockAgentRuntime
2663
2663
  # @!attribute [rw] message
2664
2664
  # @return [String]
2665
2665
  #
2666
+ # @!attribute [rw] reason
2667
+ # The reason for the exception. If the reason is
2668
+ # `BEDROCK_MODEL_INVOCATION_SERVICE_UNAVAILABLE`, the model invocation
2669
+ # service is unavailable. Retry your request.
2670
+ # @return [String]
2671
+ #
2666
2672
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InternalServerException AWS API Documentation
2667
2673
  #
2668
2674
  class InternalServerException < Struct.new(
2669
2675
  :message,
2676
+ :reason,
2670
2677
  :event_type)
2671
2678
  SENSITIVE = []
2672
2679
  include Aws::Structure
@@ -55,7 +55,7 @@ module Aws::BedrockAgentRuntime
55
55
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
56
56
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
57
57
 
58
- GEM_VERSION = '1.40.0'
58
+ GEM_VERSION = '1.41.0'
59
59
 
60
60
  end
61
61
 
data/sig/errors.rbs CHANGED
@@ -27,6 +27,7 @@ module Aws
27
27
  end
28
28
  class InternalServerException < ::Aws::Errors::ServiceError
29
29
  def message: () -> ::String
30
+ def reason: () -> ::String
30
31
  end
31
32
  class ModelNotReadyException < ::Aws::Errors::ServiceError
32
33
  def message: () -> ::String
data/sig/types.rbs CHANGED
@@ -750,6 +750,7 @@ module Aws::BedrockAgentRuntime
750
750
 
751
751
  class InternalServerException
752
752
  attr_accessor message: ::String
753
+ attr_accessor reason: ::String
753
754
  attr_accessor event_type: untyped
754
755
  SENSITIVE: []
755
756
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.40.0
4
+ version: 1.41.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: 2025-01-22 00:00:00.000000000 Z
11
+ date: 2025-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core