aws-sdk-bedrockruntime 1.6.0 → 1.7.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: 05ac5cf213225401dee8f1d85bd87baca64269050aa19649e39fed908f5fce68
4
- data.tar.gz: 121c36482bd45e94e7dbac139e68dd848c29a16617ed13a3035a707cd44f7ed5
3
+ metadata.gz: 9ad746f1ac5f474288cfc73bc784c88fa83be0401b44cb551e1a9ebe86ed36bc
4
+ data.tar.gz: b3d3ba3ad85bf09f70af9e9f4f1de55817f6e278dcbba53e09cfb1194d86418f
5
5
  SHA512:
6
- metadata.gz: 8f2af4974cc0e698f31d104c9eb93cdac14deb00ce6a6dfb99c1d21549eb78410bea396dde2e7035f5d97a27f87afb282969b6d2946d4453dc92691d79af81c3
7
- data.tar.gz: 2f74aa9635507203db1f7f5f38406b1018fa6aca5fcceff772dddd1b46102484fd55039351d38cc2a01f2b17e47d457ac710eaa3ef649f520fed94db4a7c0c78
6
+ metadata.gz: 5a72bef496d6c9bf1ebbc69b516834d57b2b174d837a84cc2d277c001844a4c271226514bfe92894f8da9bef99c4650487dd0bac13f02b4f934ab3a0c6f779b5
7
+ data.tar.gz: b31a8c29f95a9d21b6a2f79bead4bd27ed3853fe52a3694aa8271cd8260ba640b0eb6d08c6a2e8c69312b2fae6438beca46bc3138b19de7407858c2cd25d9640
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.7.0 (2024-04-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.6.0 (2024-04-23)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.7.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -73,6 +74,7 @@ module Aws::BedrockRuntime
73
74
  add_plugin(Aws::Plugins::ResponsePaging)
74
75
  add_plugin(Aws::Plugins::StubResponses)
75
76
  add_plugin(Aws::Plugins::IdempotencyToken)
77
+ add_plugin(Aws::Plugins::InvocationId)
76
78
  add_plugin(Aws::Plugins::JsonvalueConverter)
77
79
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
78
80
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -198,10 +200,17 @@ module Aws::BedrockRuntime
198
200
  # When set to 'true' the request body will not be compressed
199
201
  # for supported operations.
200
202
  #
201
- # @option options [String] :endpoint
202
- # The client endpoint is normally constructed from the `:region`
203
- # option. You should only configure an `:endpoint` when connecting
204
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
203
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
204
+ # Normally you should not configure the `:endpoint` option
205
+ # directly. This is normally constructed from the `:region`
206
+ # option. Configuring `:endpoint` is normally reserved for
207
+ # connecting to test or custom endpoints. The endpoint should
208
+ # be a URI formatted like:
209
+ #
210
+ # 'http://example.com'
211
+ # 'https://example.com'
212
+ # 'http://example.com:123'
213
+ #
205
214
  #
206
215
  # @option options [Integer] :endpoint_cache_max_entries (1000)
207
216
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -348,50 +357,65 @@ module Aws::BedrockRuntime
348
357
  # @option options [Aws::BedrockRuntime::EndpointProvider] :endpoint_provider
349
358
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::BedrockRuntime::EndpointParameters`
350
359
  #
351
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
352
- # requests through. Formatted like 'http://proxy.com:123'.
353
- #
354
- # @option options [Float] :http_open_timeout (15) The number of
355
- # seconds to wait when opening a HTTP session before raising a
356
- # `Timeout::Error`.
357
- #
358
- # @option options [Float] :http_read_timeout (60) The default
359
- # number of seconds to wait for response data. This value can
360
- # safely be set per-request on the session.
361
- #
362
- # @option options [Float] :http_idle_timeout (5) The number of
363
- # seconds a connection is allowed to sit idle before it is
364
- # considered stale. Stale connections are closed and removed
365
- # from the pool before making a request.
366
- #
367
- # @option options [Float] :http_continue_timeout (1) The number of
368
- # seconds to wait for a 100-continue response before sending the
369
- # request body. This option has no effect unless the request has
370
- # "Expect" header set to "100-continue". Defaults to `nil` which
371
- # disables this behaviour. This value can safely be set per
372
- # request on the session.
373
- #
374
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
375
- # in seconds.
360
+ # @option options [Float] :http_continue_timeout (1)
361
+ # The number of seconds to wait for a 100-continue response before sending the
362
+ # request body. This option has no effect unless the request has "Expect"
363
+ # header set to "100-continue". Defaults to `nil` which disables this
364
+ # behaviour. This value can safely be set per request on the session.
365
+ #
366
+ # @option options [Float] :http_idle_timeout (5)
367
+ # The number of seconds a connection is allowed to sit idle before it
368
+ # is considered stale. Stale connections are closed and removed from the
369
+ # pool before making a request.
370
+ #
371
+ # @option options [Float] :http_open_timeout (15)
372
+ # The default number of seconds to wait for response data.
373
+ # This value can safely be set per-request on the session.
374
+ #
375
+ # @option options [URI::HTTP,String] :http_proxy
376
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
377
+ #
378
+ # @option options [Float] :http_read_timeout (60)
379
+ # The default number of seconds to wait for response data.
380
+ # This value can safely be set per-request on the session.
381
+ #
382
+ # @option options [Boolean] :http_wire_trace (false)
383
+ # When `true`, HTTP debug output will be sent to the `:logger`.
384
+ #
385
+ # @option options [Proc] :on_chunk_received
386
+ # When a Proc object is provided, it will be used as callback when each chunk
387
+ # of the response body is received. It provides three arguments: the chunk,
388
+ # the number of bytes received, and the total number of
389
+ # bytes in the response (or nil if the server did not send a `content-length`).
390
+ #
391
+ # @option options [Proc] :on_chunk_sent
392
+ # When a Proc object is provided, it will be used as callback when each chunk
393
+ # of the request body is sent. It provides three arguments: the chunk,
394
+ # the number of bytes read from the body, and the total number of
395
+ # bytes in the body.
396
+ #
397
+ # @option options [Boolean] :raise_response_errors (true)
398
+ # When `true`, response errors are raised.
399
+ #
400
+ # @option options [String] :ssl_ca_bundle
401
+ # Full path to the SSL certificate authority bundle file that should be used when
402
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
403
+ # `:ssl_ca_directory` the the system default will be used if available.
404
+ #
405
+ # @option options [String] :ssl_ca_directory
406
+ # Full path of the directory that contains the unbundled SSL certificate
407
+ # authority files for verifying peer certificates. If you do
408
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
409
+ # default will be used if available.
376
410
  #
377
- # @option options [Boolean] :http_wire_trace (false) When `true`,
378
- # HTTP debug output will be sent to the `:logger`.
411
+ # @option options [String] :ssl_ca_store
412
+ # Sets the X509::Store to verify peer certificate.
379
413
  #
380
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
381
- # SSL peer certificates are verified when establishing a
382
- # connection.
414
+ # @option options [Float] :ssl_timeout
415
+ # Sets the SSL timeout in seconds
383
416
  #
384
- # @option options [String] :ssl_ca_bundle Full path to the SSL
385
- # certificate authority bundle file that should be used when
386
- # verifying peer certificates. If you do not pass
387
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
388
- # will be used if available.
389
- #
390
- # @option options [String] :ssl_ca_directory Full path of the
391
- # directory that contains the unbundled SSL certificate
392
- # authority files for verifying peer certificates. If you do
393
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
394
- # system default will be used if available.
417
+ # @option options [Boolean] :ssl_verify_peer (true)
418
+ # When `true`, SSL peer certificates are verified when establishing a connection.
395
419
  #
396
420
  def initialize(*args)
397
421
  super
@@ -600,22 +624,22 @@ module Aws::BedrockRuntime
600
624
  #
601
625
  # @example EventStream Operation Example
602
626
  #
603
- # You can process event once it arrives immediately, or wait until
604
- # full response complete and iterate through eventstream enumerator.
627
+ # You can process the event once it arrives immediately, or wait until the
628
+ # full response is complete and iterate through the eventstream enumerator.
605
629
  #
606
630
  # To interact with event immediately, you need to register #invoke_model_with_response_stream
607
- # with callbacks, callbacks can be register for specifc events or for all events,
608
- # callback for errors in the event stream is also available for register.
631
+ # with callbacks. Callbacks can be registered for specific events or for all
632
+ # events, including error events.
609
633
  #
610
- # Callbacks can be passed in by `:event_stream_handler` option or within block
611
- # statement attached to #invoke_model_with_response_stream call directly. Hybrid pattern of both
612
- # is also supported.
634
+ # Callbacks can be passed into the `:event_stream_handler` option or within a
635
+ # block statement attached to the #invoke_model_with_response_stream call directly. Hybrid
636
+ # pattern of both is also supported.
613
637
  #
614
- # `:event_stream_handler` option takes in either Proc object or
638
+ # `:event_stream_handler` option takes in either a Proc object or
615
639
  # Aws::BedrockRuntime::EventStreams::ResponseStream object.
616
640
  #
617
- # Usage pattern a): callbacks with a block attached to #invoke_model_with_response_stream
618
- # Example for registering callbacks for all event types and error event
641
+ # Usage pattern a): Callbacks with a block attached to #invoke_model_with_response_stream
642
+ # Example for registering callbacks for all event types and an error event
619
643
  #
620
644
  # client.invoke_model_with_response_stream( # params input# ) do |stream|
621
645
  # stream.on_error_event do |event|
@@ -635,9 +659,9 @@ module Aws::BedrockRuntime
635
659
  #
636
660
  # end
637
661
  #
638
- # Usage pattern b): pass in `:event_stream_handler` for #invoke_model_with_response_stream
662
+ # Usage pattern b): Pass in `:event_stream_handler` for #invoke_model_with_response_stream
639
663
  #
640
- # 1) create a Aws::BedrockRuntime::EventStreams::ResponseStream object
664
+ # 1) Create a Aws::BedrockRuntime::EventStreams::ResponseStream object
641
665
  # Example for registering callbacks with specific events
642
666
  #
643
667
  # handler = Aws::BedrockRuntime::EventStreams::ResponseStream.new
@@ -662,7 +686,7 @@ module Aws::BedrockRuntime
662
686
  #
663
687
  # client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler)
664
688
  #
665
- # 2) use a Ruby Proc object
689
+ # 2) Use a Ruby Proc object
666
690
  # Example for registering callbacks with specific events
667
691
  #
668
692
  # handler = Proc.new do |stream|
@@ -688,7 +712,7 @@ module Aws::BedrockRuntime
688
712
  #
689
713
  # client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler)
690
714
  #
691
- # Usage pattern c): hybird pattern of a) and b)
715
+ # Usage pattern c): Hybrid pattern of a) and b)
692
716
  #
693
717
  # handler = Aws::BedrockRuntime::EventStreams::ResponseStream.new
694
718
  # handler.on_chunk_event do |event|
@@ -721,8 +745,7 @@ module Aws::BedrockRuntime
721
745
  # end
722
746
  # end
723
747
  #
724
- # Besides above usage patterns for process events when they arrive immediately, you can also
725
- # iterate through events after response complete.
748
+ # You can also iterate through events after the response complete.
726
749
  #
727
750
  # Events are available at resp.body # => Enumerator
728
751
  # For parameter input example, please refer to following request syntax
@@ -807,7 +830,7 @@ module Aws::BedrockRuntime
807
830
  params: params,
808
831
  config: config)
809
832
  context[:gem_name] = 'aws-sdk-bedrockruntime'
810
- context[:gem_version] = '1.6.0'
833
+ context[:gem_version] = '1.7.0'
811
834
  Seahorse::Client::Request.new(handlers, context)
812
835
  end
813
836
 
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-bedrockruntime/event_streams'
54
54
  # @!group service
55
55
  module Aws::BedrockRuntime
56
56
 
57
- GEM_VERSION = '1.6.0'
57
+ GEM_VERSION = '1.7.0'
58
58
 
59
59
  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.6.0
4
+ version: 1.7.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: 2024-04-23 00:00:00.000000000 Z
11
+ date: 2024-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.191.0
22
+ version: 3.193.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.191.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement