aws-sdk-bedrockagentruntime 1.90.0 → 1.92.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: 7c0e79cb3a0f0f991409cff16ade9f3a192aba2333bedba8d5a637ce247bb23c
4
- data.tar.gz: f48d1886b51b221c2c312f2c39eb308500b42fea4b44a2c6ad28913cfa14ed0c
3
+ metadata.gz: 94d06a9fac0b82bb357cc1328222cbdd40db289231f8895cba68d6dbde82fd70
4
+ data.tar.gz: 252f79695c475dbc9e98d826a0579c52916b2b8ace078d7c6a47c9b9f747753b
5
5
  SHA512:
6
- metadata.gz: 21f5a6213e2048251a15dccd7f8655541aa1c67d6074bda41a2320afa601f4f0adfe87758fd590f0e1748f9d9b4387112bf617c1712f41f935cc0bb585bbc1cb
7
- data.tar.gz: bbd8af97600841060c080ff9919f0be502144c83d8f4b3e651a35788861c5133899ae8b82a61d6fa5a196dcdac0d586b45fb6bf001a55700cb116bd0d1145117
6
+ metadata.gz: fdc28be485f832ab6d71a61c4834f18236f0ec80993fefd0c34c6f24fe8c4185bbcc754acbc7617dd574ec929339879a72daef8643a45f84ac45fe856d9f6318
7
+ data.tar.gz: c2dd0c6b274da7ee185e39df9a3429cd0826ef0f45f3339493385bb4b4445fe3bba33f4358949110f94768b4219d9606dddb874859aaa2c9a727ac012621a28c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.92.0 (2026-11-06)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.91.0 (2026-11-05)
10
+ ------------------
11
+
12
+ * Feature - Amazon Bedrock Managed Knowledge Base now supports an optional mediaId parameter in GetDocumentContent that you can use to retrieve images embedded in source documents.
13
+
4
14
  1.90.0 (2026-11-04)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.90.0
1
+ 1.92.0
@@ -1441,8 +1441,10 @@ module Aws::BedrockAgentRuntime
1441
1441
  req.send_request(options)
1442
1442
  end
1443
1443
 
1444
- # Retrieves the content of an ingested document from a knowledge base.
1445
- # Returns a pre-signed URL for secure document access.
1444
+ # Retrieves the content of an ingested document from a knowledge base,
1445
+ # or of an image embedded in the document. Returns a pre-signed URL for
1446
+ # downloading the content. Use this operation to display the source of a
1447
+ # `Retrieve` result.
1446
1448
  #
1447
1449
  # @option params [required, String] :data_source_id
1448
1450
  # The unique identifier of the data source that contains the document.
@@ -1454,9 +1456,29 @@ module Aws::BedrockAgentRuntime
1454
1456
  # The unique identifier of the knowledge base that contains the
1455
1457
  # document.
1456
1458
  #
1459
+ # @option params [String] :media_id
1460
+ # The unique identifier (in UUID format) of an image embedded in the
1461
+ # specified document. Set this parameter to the `_media_id` value in the
1462
+ # metadata of the corresponding `Retrieve` result. If you specify this
1463
+ # parameter, the response contains a pre-signed URL for the image
1464
+ # instead of the document, and you must omit `outputFormat` or set it to
1465
+ # `RAW`.
1466
+ #
1457
1467
  # @option params [String] :output_format
1458
- # The output format for the document content. `RAW` returns the original
1459
- # file. `EXTRACTED` returns parsed text as JSON. Defaults to `RAW`.
1468
+ # The output format for the content. You can specify one of the
1469
+ # following values:
1470
+ #
1471
+ # RAW
1472
+ #
1473
+ # : Returns the original document, or the selected image if you specify
1474
+ # `mediaId`.
1475
+ #
1476
+ # EXTRACTED
1477
+ #
1478
+ # : Returns parsed document text as JSON.
1479
+ #
1480
+ # If you omit this parameter, the default is `RAW`. You can't use
1481
+ # `EXTRACTED` with `mediaId`.
1460
1482
  #
1461
1483
  # @option params [Types::UserContext] :user_context
1462
1484
  # Contains information about the user making the request. This is used
@@ -1475,6 +1497,7 @@ module Aws::BedrockAgentRuntime
1475
1497
  # data_source_id: "DataSourceId", # required
1476
1498
  # document_id: "DocumentId", # required
1477
1499
  # knowledge_base_id: "KnowledgeBaseIdentifier", # required
1500
+ # media_id: "MediaId",
1478
1501
  # output_format: "RAW", # accepts RAW, EXTRACTED
1479
1502
  # user_context: {
1480
1503
  # user_id: "String", # required
@@ -8492,7 +8515,7 @@ module Aws::BedrockAgentRuntime
8492
8515
  tracer: tracer
8493
8516
  )
8494
8517
  context[:gem_name] = 'aws-sdk-bedrockagentruntime'
8495
- context[:gem_version] = '1.90.0'
8518
+ context[:gem_version] = '1.92.0'
8496
8519
  Seahorse::Client::Request.new(handlers, context)
8497
8520
  end
8498
8521
 
@@ -457,6 +457,7 @@ module Aws::BedrockAgentRuntime
457
457
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
458
458
  MaxTokens = Shapes::IntegerShape.new(name: 'MaxTokens')
459
459
  MaximumLength = Shapes::IntegerShape.new(name: 'MaximumLength')
460
+ MediaId = Shapes::StringShape.new(name: 'MediaId')
460
461
  Memories = Shapes::ListShape.new(name: 'Memories')
461
462
  Memory = Shapes::UnionShape.new(name: 'Memory')
462
463
  MemoryId = Shapes::StringShape.new(name: 'MemoryId')
@@ -1658,6 +1659,7 @@ module Aws::BedrockAgentRuntime
1658
1659
  GetDocumentContentRequest.add_member(:data_source_id, Shapes::ShapeRef.new(shape: DataSourceId, required: true, location: "uri", location_name: "dataSourceId"))
1659
1660
  GetDocumentContentRequest.add_member(:document_id, Shapes::ShapeRef.new(shape: DocumentId, required: true, location: "uri", location_name: "documentId"))
1660
1661
  GetDocumentContentRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseIdentifier, required: true, location: "uri", location_name: "knowledgeBaseId"))
1662
+ GetDocumentContentRequest.add_member(:media_id, Shapes::ShapeRef.new(shape: MediaId, location_name: "mediaId"))
1661
1663
  GetDocumentContentRequest.add_member(:output_format, Shapes::ShapeRef.new(shape: DocumentOutputFormat, location_name: "outputFormat"))
1662
1664
  GetDocumentContentRequest.add_member(:user_context, Shapes::ShapeRef.new(shape: UserContext, location_name: "userContext"))
1663
1665
  GetDocumentContentRequest.struct_class = Types::GetDocumentContentRequest
@@ -4233,10 +4233,30 @@ module Aws::BedrockAgentRuntime
4233
4233
  # document.
4234
4234
  # @return [String]
4235
4235
  #
4236
+ # @!attribute [rw] media_id
4237
+ # The unique identifier (in UUID format) of an image embedded in the
4238
+ # specified document. Set this parameter to the `_media_id` value in
4239
+ # the metadata of the corresponding `Retrieve` result. If you specify
4240
+ # this parameter, the response contains a pre-signed URL for the image
4241
+ # instead of the document, and you must omit `outputFormat` or set it
4242
+ # to `RAW`.
4243
+ # @return [String]
4244
+ #
4236
4245
  # @!attribute [rw] output_format
4237
- # The output format for the document content. `RAW` returns the
4238
- # original file. `EXTRACTED` returns parsed text as JSON. Defaults to
4239
- # `RAW`.
4246
+ # The output format for the content. You can specify one of the
4247
+ # following values:
4248
+ #
4249
+ # RAW
4250
+ #
4251
+ # : Returns the original document, or the selected image if you
4252
+ # specify `mediaId`.
4253
+ #
4254
+ # EXTRACTED
4255
+ #
4256
+ # : Returns parsed document text as JSON.
4257
+ #
4258
+ # If you omit this parameter, the default is `RAW`. You can't use
4259
+ # `EXTRACTED` with `mediaId`.
4240
4260
  # @return [String]
4241
4261
  #
4242
4262
  # @!attribute [rw] user_context
@@ -4251,6 +4271,7 @@ module Aws::BedrockAgentRuntime
4251
4271
  :data_source_id,
4252
4272
  :document_id,
4253
4273
  :knowledge_base_id,
4274
+ :media_id,
4254
4275
  :output_format,
4255
4276
  :user_context)
4256
4277
  SENSITIVE = [:user_context]
@@ -4258,19 +4279,20 @@ module Aws::BedrockAgentRuntime
4258
4279
  end
4259
4280
 
4260
4281
  # @!attribute [rw] document_content_length
4261
- # The size of the document content in bytes available at the
4262
- # pre-signed URL.
4282
+ # The size, in bytes, of the content available at the pre-signed URL.
4263
4283
  # @return [Integer]
4264
4284
  #
4265
4285
  # @!attribute [rw] mime_type
4266
- # The MIME type of the document content. For `RAW` format, this is the
4267
- # original file type (for example, `application/pdf`). For `EXTRACTED`
4268
- # format, this is always `application/json`.
4286
+ # The MIME type of the returned content. For `RAW` format, this is the
4287
+ # original file type (for example, `application/pdf`), or the image
4288
+ # type (for example, `image/png`) if you specify `mediaId`. For
4289
+ # `EXTRACTED` format, this is always `application/json`.
4269
4290
  # @return [String]
4270
4291
  #
4271
4292
  # @!attribute [rw] presigned_url
4272
- # A pre-signed URL for downloading the document content. The URL
4273
- # expires after 5 minutes.
4293
+ # A pre-signed URL for downloading the document content, or the
4294
+ # selected image if you specify `mediaId`. The URL expires after 5
4295
+ # minutes.
4274
4296
  # @return [String]
4275
4297
  #
4276
4298
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GetDocumentContentResponse AWS API Documentation
@@ -56,7 +56,7 @@ module Aws::BedrockAgentRuntime
56
56
  autoload :Endpoints, 'aws-sdk-bedrockagentruntime/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-bedrockagentruntime/event_streams'
58
58
 
59
- GEM_VERSION = '1.90.0'
59
+ GEM_VERSION = '1.92.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -312,6 +312,7 @@ module Aws
312
312
  data_source_id: ::String,
313
313
  document_id: ::String,
314
314
  knowledge_base_id: ::String,
315
+ ?media_id: ::String,
315
316
  ?output_format: ("RAW" | "EXTRACTED"),
316
317
  ?user_context: {
317
318
  user_id: ::String
data/sig/types.rbs CHANGED
@@ -598,7 +598,7 @@ module Aws::BedrockAgentRuntime
598
598
  attr_accessor node_name: ::String
599
599
  attr_accessor satisfied_conditions: ::Array[Types::SatisfiedCondition]
600
600
  attr_accessor timestamp: ::Time
601
- SENSITIVE: []
601
+ SENSITIVE: [:satisfied_conditions]
602
602
  end
603
603
 
604
604
  class ConflictException
@@ -782,7 +782,7 @@ module Aws::BedrockAgentRuntime
782
782
  class FilePart
783
783
  attr_accessor files: ::Array[Types::OutputFile]
784
784
  attr_accessor event_type: untyped
785
- SENSITIVE: []
785
+ SENSITIVE: [:files]
786
786
  end
787
787
 
788
788
  class FileSource
@@ -867,14 +867,14 @@ module Aws::BedrockAgentRuntime
867
867
  attr_accessor fields: ::Array[Types::FlowInputField]
868
868
  attr_accessor node_name: ::String
869
869
  attr_accessor timestamp: ::Time
870
- SENSITIVE: []
870
+ SENSITIVE: [:fields]
871
871
  end
872
872
 
873
873
  class FlowExecutionOutputEvent
874
874
  attr_accessor fields: ::Array[Types::FlowOutputField]
875
875
  attr_accessor node_name: ::String
876
876
  attr_accessor timestamp: ::Time
877
- SENSITIVE: []
877
+ SENSITIVE: [:fields]
878
878
  end
879
879
 
880
880
  class FlowExecutionSummary
@@ -996,7 +996,7 @@ module Aws::BedrockAgentRuntime
996
996
  attr_accessor node_name: ::String
997
997
  attr_accessor satisfied_conditions: ::Array[Types::FlowTraceCondition]
998
998
  attr_accessor timestamp: ::Time
999
- SENSITIVE: []
999
+ SENSITIVE: [:satisfied_conditions]
1000
1000
  end
1001
1001
 
1002
1002
  class FlowTraceDependencyEvent
@@ -1038,7 +1038,7 @@ module Aws::BedrockAgentRuntime
1038
1038
  attr_accessor fields: ::Array[Types::FlowTraceNodeInputField]
1039
1039
  attr_accessor node_name: ::String
1040
1040
  attr_accessor timestamp: ::Time
1041
- SENSITIVE: []
1041
+ SENSITIVE: [:fields]
1042
1042
  end
1043
1043
 
1044
1044
  class FlowTraceNodeInputExecutionChainItem
@@ -1080,7 +1080,7 @@ module Aws::BedrockAgentRuntime
1080
1080
  attr_accessor fields: ::Array[Types::FlowTraceNodeOutputField]
1081
1081
  attr_accessor node_name: ::String
1082
1082
  attr_accessor timestamp: ::Time
1083
- SENSITIVE: []
1083
+ SENSITIVE: [:fields]
1084
1084
  end
1085
1085
 
1086
1086
  class FlowTraceNodeOutputField
@@ -1088,7 +1088,7 @@ module Aws::BedrockAgentRuntime
1088
1088
  attr_accessor next: ::Array[Types::FlowTraceNodeOutputNext]
1089
1089
  attr_accessor node_output_name: ::String
1090
1090
  attr_accessor type: ("String" | "Number" | "Boolean" | "Object" | "Array")
1091
- SENSITIVE: []
1091
+ SENSITIVE: [:next]
1092
1092
  end
1093
1093
 
1094
1094
  class FlowTraceNodeOutputNext
@@ -1158,7 +1158,7 @@ module Aws::BedrockAgentRuntime
1158
1158
 
1159
1159
  class GenerateQueryResponse
1160
1160
  attr_accessor queries: ::Array[Types::GeneratedQuery]
1161
- SENSITIVE: []
1161
+ SENSITIVE: [:queries]
1162
1162
  end
1163
1163
 
1164
1164
  class GeneratedQuery
@@ -1201,6 +1201,7 @@ module Aws::BedrockAgentRuntime
1201
1201
  attr_accessor data_source_id: ::String
1202
1202
  attr_accessor document_id: ::String
1203
1203
  attr_accessor knowledge_base_id: ::String
1204
+ attr_accessor media_id: ::String
1204
1205
  attr_accessor output_format: ("RAW" | "EXTRACTED")
1205
1206
  attr_accessor user_context: Types::UserContext
1206
1207
  SENSITIVE: [:user_context]
@@ -1379,7 +1380,7 @@ module Aws::BedrockAgentRuntime
1379
1380
  attr_accessor metadata: Types::Metadata
1380
1381
  attr_accessor output_assessments: ::Array[Types::GuardrailAssessment]
1381
1382
  attr_accessor trace_id: ::String
1382
- SENSITIVE: [:metadata]
1383
+ SENSITIVE: [:input_assessments, :metadata, :output_assessments]
1383
1384
  end
1384
1385
 
1385
1386
  class GuardrailWordPolicyAssessment
@@ -1428,7 +1429,7 @@ module Aws::BedrockAgentRuntime
1428
1429
  class ImplicitFilterConfiguration
1429
1430
  attr_accessor metadata_attributes: ::Array[Types::MetadataAttributeSchema]
1430
1431
  attr_accessor model_arn: ::String
1431
- SENSITIVE: []
1432
+ SENSITIVE: [:metadata_attributes]
1432
1433
  end
1433
1434
 
1434
1435
  class InferenceConfig
@@ -1448,7 +1449,7 @@ module Aws::BedrockAgentRuntime
1448
1449
  class InlineAgentFilePart
1449
1450
  attr_accessor files: ::Array[Types::OutputFile]
1450
1451
  attr_accessor event_type: untyped
1451
- SENSITIVE: []
1452
+ SENSITIVE: [:files]
1452
1453
  end
1453
1454
 
1454
1455
  class InlineAgentPayloadPart
@@ -1571,7 +1572,7 @@ module Aws::BedrockAgentRuntime
1571
1572
  class InvocationStepPayload
1572
1573
  attr_accessor content_blocks: ::Array[Types::BedrockSessionContentBlock]
1573
1574
  attr_accessor unknown: untyped
1574
- SENSITIVE: []
1575
+ SENSITIVE: [:content_blocks]
1575
1576
 
1576
1577
  class ContentBlocks < InvocationStepPayload
1577
1578
  end
@@ -1878,7 +1879,7 @@ module Aws::BedrockAgentRuntime
1878
1879
  class Message
1879
1880
  attr_accessor content: ::Array[Types::ContentBlock]
1880
1881
  attr_accessor role: ("user" | "assistant")
1881
- SENSITIVE: []
1882
+ SENSITIVE: [:content]
1882
1883
  end
1883
1884
 
1884
1885
  class Metadata
@@ -1968,7 +1969,7 @@ module Aws::BedrockAgentRuntime
1968
1969
  attr_accessor fields: ::Array[Types::NodeInputField]
1969
1970
  attr_accessor node_name: ::String
1970
1971
  attr_accessor timestamp: ::Time
1971
- SENSITIVE: []
1972
+ SENSITIVE: [:fields]
1972
1973
  end
1973
1974
 
1974
1975
  class NodeInputExecutionChainItem
@@ -1999,7 +2000,7 @@ module Aws::BedrockAgentRuntime
1999
2000
  attr_accessor fields: ::Array[Types::NodeOutputField]
2000
2001
  attr_accessor node_name: ::String
2001
2002
  attr_accessor timestamp: ::Time
2002
- SENSITIVE: []
2003
+ SENSITIVE: [:fields]
2003
2004
  end
2004
2005
 
2005
2006
  class NodeOutputField
@@ -2007,7 +2008,7 @@ module Aws::BedrockAgentRuntime
2007
2008
  attr_accessor name: ::String
2008
2009
  attr_accessor next: ::Array[Types::NodeOutputNext]
2009
2010
  attr_accessor type: ("String" | "Number" | "Boolean" | "Object" | "Array")
2010
- SENSITIVE: [:content]
2011
+ SENSITIVE: [:content, :next]
2011
2012
  end
2012
2013
 
2013
2014
  class NodeOutputNext
@@ -2019,7 +2020,7 @@ module Aws::BedrockAgentRuntime
2019
2020
  class NodeTraceElements
2020
2021
  attr_accessor agent_traces: ::Array[Types::TracePart]
2021
2022
  attr_accessor unknown: untyped
2022
- SENSITIVE: []
2023
+ SENSITIVE: [:agent_traces]
2023
2024
 
2024
2025
  class AgentTraces < NodeTraceElements
2025
2026
  end
@@ -2402,7 +2403,7 @@ module Aws::BedrockAgentRuntime
2402
2403
  attr_accessor starts_with: Types::FilterAttribute
2403
2404
  attr_accessor string_contains: Types::FilterAttribute
2404
2405
  attr_accessor unknown: untyped
2405
- SENSITIVE: []
2406
+ SENSITIVE: [:and_all, :or_all]
2406
2407
 
2407
2408
  class AndAll < RetrievalFilter
2408
2409
  end
@@ -2825,7 +2826,7 @@ module Aws::BedrockAgentRuntime
2825
2826
  class TraceElements
2826
2827
  attr_accessor agent_traces: ::Array[Types::TracePart]
2827
2828
  attr_accessor unknown: untyped
2828
- SENSITIVE: []
2829
+ SENSITIVE: [:agent_traces]
2829
2830
 
2830
2831
  class AgentTraces < TraceElements
2831
2832
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagentruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.90.0
4
+ version: 1.92.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.264.0
21
+ version: 3.265.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.264.0
31
+ version: 3.265.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement