aws-sdk-bedrockagentruntime 1.90.0 → 1.91.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: 2f63906cf39e79d578016b310f20ab72c30b2c23356cfbc215921823438816b2
4
+ data.tar.gz: 5c85988de55bfa6f7493a6e120543d429266e5f830fe5c1fdadac88a7a28c8c0
5
5
  SHA512:
6
- metadata.gz: 21f5a6213e2048251a15dccd7f8655541aa1c67d6074bda41a2320afa601f4f0adfe87758fd590f0e1748f9d9b4387112bf617c1712f41f935cc0bb585bbc1cb
7
- data.tar.gz: bbd8af97600841060c080ff9919f0be502144c83d8f4b3e651a35788861c5133899ae8b82a61d6fa5a196dcdac0d586b45fb6bf001a55700cb116bd0d1145117
6
+ metadata.gz: a71b428369d3c31e2ef64a6bc9a42deffa8f70b5b7b509fad1f7189b1c3fa85d3b67defbcac81f64c30282b8fe6bd0dc487fe8ae39c1f9dac608b55ad01ca87f
7
+ data.tar.gz: 4ae771d32f861939fd11b1047793a0b62d84ed2c0b82a1fe92329e162e658fb87f46c47a5a5ef1073ac8ba01bfe442f11b8dc7fbbadc3b0ed2aa8afa2108327c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.91.0 (2026-11-05)
5
+ ------------------
6
+
7
+ * 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.
8
+
4
9
  1.90.0 (2026-11-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.90.0
1
+ 1.91.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.91.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.91.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
@@ -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]
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.91.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services