aws-sdk-bedrockruntime 1.44.0 → 1.45.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: df167de5e14a9cd5c29ba11937858d05db1247d48546fb4a847cbe7262aec3d2
4
- data.tar.gz: 788336ed16edce2eed9a6a34b3cbb4cbce8d035abebd6f2f9fc6c77944788ed6
3
+ metadata.gz: 5a28ecebc4aefbade585fa64ee44ca3d6a445d7eee403f96e29f23631e852731
4
+ data.tar.gz: 1d6501a1e3b85623e0adab595c50d520fb55abb0c99007be4e59a84a1524a473
5
5
  SHA512:
6
- metadata.gz: c75cdcc7a54dbb4c3aa9a310baa25b5336aff81d9ef3f4e83e5064ed1a1a66fbcad7208c3eaa6e50c04fcb92d2c6a93a0f30288493bdc1cd3b7a80f9fa268f16
7
- data.tar.gz: 8a0049209c16a70292c969265643cd89676e50137680860368e4e1619a67b91285ea23a967200386e1ebc62289ab50f74b0544803e549afc5658ecba71239756
6
+ metadata.gz: deeeb6488b6f3788319d883ed9ebf112bb0e5934ccee9603e673350de70aec30225f12045d4f772870c71ea4c22c22bfe051d650e12ea15f031e2f2751656388
7
+ data.tar.gz: a5007dcde7957b74af5f80e730de711b17bfba3224e5a47c4f111529e2cbce6a66da2ad7242486712d772e408fd574932ba13a4924fbc4f46e049448fcc1e0ef
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.45.0 (2025-04-25)
5
+ ------------------
6
+
7
+ * Feature - You can now reference images and documents stored in Amazon S3 when using InvokeModel and Converse APIs with Amazon Nova Lite and Nova Pro. This enables direct integration of S3-stored multimedia assets in your model requests without manual downloading or base64 encoding.
8
+
4
9
  1.44.0 (2025-04-08)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.45.0
@@ -592,7 +592,7 @@ module Aws::BedrockRuntime
592
592
  tracer: tracer
593
593
  )
594
594
  context[:gem_name] = 'aws-sdk-bedrockruntime'
595
- context[:gem_version] = '1.44.0'
595
+ context[:gem_version] = '1.45.0'
596
596
  Seahorse::Client::Request.new(handlers, context)
597
597
  end
598
598
 
@@ -818,6 +818,10 @@ module Aws::BedrockRuntime
818
818
  # format: "png", # required, accepts png, jpeg, gif, webp
819
819
  # source: { # required
820
820
  # bytes: "data",
821
+ # s3_location: {
822
+ # uri: "S3Uri", # required
823
+ # bucket_owner: "AccountId",
824
+ # },
821
825
  # },
822
826
  # },
823
827
  # document: {
@@ -825,6 +829,10 @@ module Aws::BedrockRuntime
825
829
  # name: "DocumentBlockNameString", # required
826
830
  # source: { # required
827
831
  # bytes: "data",
832
+ # s3_location: {
833
+ # uri: "S3Uri", # required
834
+ # bucket_owner: "AccountId",
835
+ # },
828
836
  # },
829
837
  # },
830
838
  # video: {
@@ -854,6 +862,10 @@ module Aws::BedrockRuntime
854
862
  # format: "png", # required, accepts png, jpeg, gif, webp
855
863
  # source: { # required
856
864
  # bytes: "data",
865
+ # s3_location: {
866
+ # uri: "S3Uri", # required
867
+ # bucket_owner: "AccountId",
868
+ # },
857
869
  # },
858
870
  # },
859
871
  # document: {
@@ -861,6 +873,10 @@ module Aws::BedrockRuntime
861
873
  # name: "DocumentBlockNameString", # required
862
874
  # source: { # required
863
875
  # bytes: "data",
876
+ # s3_location: {
877
+ # uri: "S3Uri", # required
878
+ # bucket_owner: "AccountId",
879
+ # },
864
880
  # },
865
881
  # },
866
882
  # video: {
@@ -983,9 +999,13 @@ module Aws::BedrockRuntime
983
999
  # resp.output.message.content[0].text #=> String
984
1000
  # resp.output.message.content[0].image.format #=> String, one of "png", "jpeg", "gif", "webp"
985
1001
  # resp.output.message.content[0].image.source.bytes #=> String
1002
+ # resp.output.message.content[0].image.source.s3_location.uri #=> String
1003
+ # resp.output.message.content[0].image.source.s3_location.bucket_owner #=> String
986
1004
  # resp.output.message.content[0].document.format #=> String, one of "pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"
987
1005
  # resp.output.message.content[0].document.name #=> String
988
1006
  # resp.output.message.content[0].document.source.bytes #=> String
1007
+ # resp.output.message.content[0].document.source.s3_location.uri #=> String
1008
+ # resp.output.message.content[0].document.source.s3_location.bucket_owner #=> String
989
1009
  # resp.output.message.content[0].video.format #=> String, one of "mkv", "mov", "mp4", "webm", "flv", "mpeg", "mpg", "wmv", "three_gp"
990
1010
  # resp.output.message.content[0].video.source.bytes #=> String
991
1011
  # resp.output.message.content[0].video.source.s3_location.uri #=> String
@@ -997,9 +1017,13 @@ module Aws::BedrockRuntime
997
1017
  # resp.output.message.content[0].tool_result.content[0].text #=> String
998
1018
  # resp.output.message.content[0].tool_result.content[0].image.format #=> String, one of "png", "jpeg", "gif", "webp"
999
1019
  # resp.output.message.content[0].tool_result.content[0].image.source.bytes #=> String
1020
+ # resp.output.message.content[0].tool_result.content[0].image.source.s3_location.uri #=> String
1021
+ # resp.output.message.content[0].tool_result.content[0].image.source.s3_location.bucket_owner #=> String
1000
1022
  # resp.output.message.content[0].tool_result.content[0].document.format #=> String, one of "pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"
1001
1023
  # resp.output.message.content[0].tool_result.content[0].document.name #=> String
1002
1024
  # resp.output.message.content[0].tool_result.content[0].document.source.bytes #=> String
1025
+ # resp.output.message.content[0].tool_result.content[0].document.source.s3_location.uri #=> String
1026
+ # resp.output.message.content[0].tool_result.content[0].document.source.s3_location.bucket_owner #=> String
1003
1027
  # resp.output.message.content[0].tool_result.content[0].video.format #=> String, one of "mkv", "mov", "mp4", "webm", "flv", "mpeg", "mpg", "wmv", "three_gp"
1004
1028
  # resp.output.message.content[0].tool_result.content[0].video.source.bytes #=> String
1005
1029
  # resp.output.message.content[0].tool_result.content[0].video.source.s3_location.uri #=> String
@@ -1511,6 +1535,10 @@ module Aws::BedrockRuntime
1511
1535
  # format: "png", # required, accepts png, jpeg, gif, webp
1512
1536
  # source: { # required
1513
1537
  # bytes: "data",
1538
+ # s3_location: {
1539
+ # uri: "S3Uri", # required
1540
+ # bucket_owner: "AccountId",
1541
+ # },
1514
1542
  # },
1515
1543
  # },
1516
1544
  # document: {
@@ -1518,6 +1546,10 @@ module Aws::BedrockRuntime
1518
1546
  # name: "DocumentBlockNameString", # required
1519
1547
  # source: { # required
1520
1548
  # bytes: "data",
1549
+ # s3_location: {
1550
+ # uri: "S3Uri", # required
1551
+ # bucket_owner: "AccountId",
1552
+ # },
1521
1553
  # },
1522
1554
  # },
1523
1555
  # video: {
@@ -1547,6 +1579,10 @@ module Aws::BedrockRuntime
1547
1579
  # format: "png", # required, accepts png, jpeg, gif, webp
1548
1580
  # source: { # required
1549
1581
  # bytes: "data",
1582
+ # s3_location: {
1583
+ # uri: "S3Uri", # required
1584
+ # bucket_owner: "AccountId",
1585
+ # },
1550
1586
  # },
1551
1587
  # },
1552
1588
  # document: {
@@ -1554,6 +1590,10 @@ module Aws::BedrockRuntime
1554
1590
  # name: "DocumentBlockNameString", # required
1555
1591
  # source: { # required
1556
1592
  # bytes: "data",
1593
+ # s3_location: {
1594
+ # uri: "S3Uri", # required
1595
+ # bucket_owner: "AccountId",
1596
+ # },
1557
1597
  # },
1558
1598
  # },
1559
1599
  # video: {
@@ -2548,7 +2588,7 @@ module Aws::BedrockRuntime
2548
2588
  tracer: tracer
2549
2589
  )
2550
2590
  context[:gem_name] = 'aws-sdk-bedrockruntime'
2551
- context[:gem_version] = '1.44.0'
2591
+ context[:gem_version] = '1.45.0'
2552
2592
  Seahorse::Client::Request.new(handlers, context)
2553
2593
  end
2554
2594
 
@@ -455,8 +455,10 @@ module Aws::BedrockRuntime
455
455
  DocumentBlock.struct_class = Types::DocumentBlock
456
456
 
457
457
  DocumentSource.add_member(:bytes, Shapes::ShapeRef.new(shape: DocumentSourceBytesBlob, location_name: "bytes"))
458
+ DocumentSource.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, location_name: "s3Location"))
458
459
  DocumentSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
459
460
  DocumentSource.add_member_subclass(:bytes, Types::DocumentSource::Bytes)
461
+ DocumentSource.add_member_subclass(:s3_location, Types::DocumentSource::S3Location)
460
462
  DocumentSource.add_member_subclass(:unknown, Types::DocumentSource::Unknown)
461
463
  DocumentSource.struct_class = Types::DocumentSource
462
464
 
@@ -668,8 +670,10 @@ module Aws::BedrockRuntime
668
670
  ImageBlock.struct_class = Types::ImageBlock
669
671
 
670
672
  ImageSource.add_member(:bytes, Shapes::ShapeRef.new(shape: ImageSourceBytesBlob, location_name: "bytes"))
673
+ ImageSource.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, location_name: "s3Location"))
671
674
  ImageSource.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
672
675
  ImageSource.add_member_subclass(:bytes, Types::ImageSource::Bytes)
676
+ ImageSource.add_member_subclass(:s3_location, Types::ImageSource::S3Location)
673
677
  ImageSource.add_member_subclass(:unknown, Types::ImageSource::Unknown)
674
678
  ImageSource.struct_class = Types::ImageSource
675
679
 
@@ -1018,16 +1018,28 @@ module Aws::BedrockRuntime
1018
1018
  # SDK, you don't need to encode the bytes in base64.
1019
1019
  # @return [String]
1020
1020
  #
1021
+ # @!attribute [rw] s3_location
1022
+ # The location of a document object in an Amazon S3 bucket. To see
1023
+ # which models support S3 uploads, see [Supported models and features
1024
+ # for Converse][1].
1025
+ #
1026
+ #
1027
+ #
1028
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html
1029
+ # @return [Types::S3Location]
1030
+ #
1021
1031
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/DocumentSource AWS API Documentation
1022
1032
  #
1023
1033
  class DocumentSource < Struct.new(
1024
1034
  :bytes,
1035
+ :s3_location,
1025
1036
  :unknown)
1026
1037
  SENSITIVE = []
1027
1038
  include Aws::Structure
1028
1039
  include Aws::Structure::Union
1029
1040
 
1030
1041
  class Bytes < DocumentSource; end
1042
+ class S3Location < DocumentSource; end
1031
1043
  class Unknown < DocumentSource; end
1032
1044
  end
1033
1045
 
@@ -1899,16 +1911,28 @@ module Aws::BedrockRuntime
1899
1911
  # need to encode the image bytes in base64.
1900
1912
  # @return [String]
1901
1913
  #
1914
+ # @!attribute [rw] s3_location
1915
+ # The location of an image object in an Amazon S3 bucket. To see which
1916
+ # models support S3 uploads, see [Supported models and features for
1917
+ # Converse][1].
1918
+ #
1919
+ #
1920
+ #
1921
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html
1922
+ # @return [Types::S3Location]
1923
+ #
1902
1924
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ImageSource AWS API Documentation
1903
1925
  #
1904
1926
  class ImageSource < Struct.new(
1905
1927
  :bytes,
1928
+ :s3_location,
1906
1929
  :unknown)
1907
1930
  SENSITIVE = []
1908
1931
  include Aws::Structure
1909
1932
  include Aws::Structure::Union
1910
1933
 
1911
1934
  class Bytes < ImageSource; end
1935
+ class S3Location < ImageSource; end
1912
1936
  class Unknown < ImageSource; end
1913
1937
  end
1914
1938
 
@@ -2712,7 +2736,7 @@ module Aws::BedrockRuntime
2712
2736
  include Aws::Structure
2713
2737
  end
2714
2738
 
2715
- # A storage location in an S3 bucket.
2739
+ # A storage location in an Amazon S3 bucket.
2716
2740
  #
2717
2741
  # @!attribute [rw] uri
2718
2742
  # An object URI starting with `s3://`.
@@ -3288,7 +3312,13 @@ module Aws::BedrockRuntime
3288
3312
  # @return [String]
3289
3313
  #
3290
3314
  # @!attribute [rw] s3_location
3291
- # The location of a video object in an S3 bucket.
3315
+ # The location of a video object in an Amazon S3 bucket. To see which
3316
+ # models support S3 uploads, see [Supported models and features for
3317
+ # Converse][1].
3318
+ #
3319
+ #
3320
+ #
3321
+ # [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html
3292
3322
  # @return [Types::S3Location]
3293
3323
  #
3294
3324
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/VideoSource AWS API Documentation
@@ -57,7 +57,7 @@ module Aws::BedrockRuntime
57
57
  autoload :AsyncClient, 'aws-sdk-bedrockruntime/async_client'
58
58
  autoload :EventStreams, 'aws-sdk-bedrockruntime/event_streams'
59
59
 
60
- GEM_VERSION = '1.44.0'
60
+ GEM_VERSION = '1.45.0'
61
61
 
62
62
  end
63
63
 
data/sig/client.rbs CHANGED
@@ -134,14 +134,22 @@ module Aws
134
134
  image: {
135
135
  format: ("png" | "jpeg" | "gif" | "webp"),
136
136
  source: {
137
- bytes: ::String?
137
+ bytes: ::String?,
138
+ s3_location: {
139
+ uri: ::String,
140
+ bucket_owner: ::String?
141
+ }?
138
142
  }
139
143
  }?,
140
144
  document: {
141
145
  format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
142
146
  name: ::String,
143
147
  source: {
144
- bytes: ::String?
148
+ bytes: ::String?,
149
+ s3_location: {
150
+ uri: ::String,
151
+ bucket_owner: ::String?
152
+ }?
145
153
  }
146
154
  }?,
147
155
  video: {
@@ -170,14 +178,22 @@ module Aws
170
178
  image: {
171
179
  format: ("png" | "jpeg" | "gif" | "webp"),
172
180
  source: {
173
- bytes: ::String?
181
+ bytes: ::String?,
182
+ s3_location: {
183
+ uri: ::String,
184
+ bucket_owner: ::String?
185
+ }?
174
186
  }
175
187
  }?,
176
188
  document: {
177
189
  format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
178
190
  name: ::String,
179
191
  source: {
180
- bytes: ::String?
192
+ bytes: ::String?,
193
+ s3_location: {
194
+ uri: ::String,
195
+ bucket_owner: ::String?
196
+ }?
181
197
  }
182
198
  }?,
183
199
  video: {
@@ -306,14 +322,22 @@ module Aws
306
322
  image: {
307
323
  format: ("png" | "jpeg" | "gif" | "webp"),
308
324
  source: {
309
- bytes: ::String?
325
+ bytes: ::String?,
326
+ s3_location: {
327
+ uri: ::String,
328
+ bucket_owner: ::String?
329
+ }?
310
330
  }
311
331
  }?,
312
332
  document: {
313
333
  format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
314
334
  name: ::String,
315
335
  source: {
316
- bytes: ::String?
336
+ bytes: ::String?,
337
+ s3_location: {
338
+ uri: ::String,
339
+ bucket_owner: ::String?
340
+ }?
317
341
  }
318
342
  }?,
319
343
  video: {
@@ -342,14 +366,22 @@ module Aws
342
366
  image: {
343
367
  format: ("png" | "jpeg" | "gif" | "webp"),
344
368
  source: {
345
- bytes: ::String?
369
+ bytes: ::String?,
370
+ s3_location: {
371
+ uri: ::String,
372
+ bucket_owner: ::String?
373
+ }?
346
374
  }
347
375
  }?,
348
376
  document: {
349
377
  format: ("pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md"),
350
378
  name: ::String,
351
379
  source: {
352
- bytes: ::String?
380
+ bytes: ::String?,
381
+ s3_location: {
382
+ uri: ::String,
383
+ bucket_owner: ::String?
384
+ }?
353
385
  }
354
386
  }?,
355
387
  video: {
data/sig/types.rbs CHANGED
@@ -271,11 +271,14 @@ module Aws::BedrockRuntime
271
271
 
272
272
  class DocumentSource
273
273
  attr_accessor bytes: ::String
274
+ attr_accessor s3_location: Types::S3Location
274
275
  attr_accessor unknown: untyped
275
276
  SENSITIVE: []
276
277
 
277
278
  class Bytes < DocumentSource
278
279
  end
280
+ class S3Location < DocumentSource
281
+ end
279
282
  class Unknown < DocumentSource
280
283
  end
281
284
  end
@@ -539,11 +542,14 @@ module Aws::BedrockRuntime
539
542
 
540
543
  class ImageSource
541
544
  attr_accessor bytes: ::String
545
+ attr_accessor s3_location: Types::S3Location
542
546
  attr_accessor unknown: untyped
543
547
  SENSITIVE: []
544
548
 
545
549
  class Bytes < ImageSource
546
550
  end
551
+ class S3Location < ImageSource
552
+ end
547
553
  class Unknown < ImageSource
548
554
  end
549
555
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.44.0
4
+ version: 1.45.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-04-08 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core