aws-sdk-bedrockruntime 1.6.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05ac5cf213225401dee8f1d85bd87baca64269050aa19649e39fed908f5fce68
4
- data.tar.gz: 121c36482bd45e94e7dbac139e68dd848c29a16617ed13a3035a707cd44f7ed5
3
+ metadata.gz: 379fc87c980cf6cb474ea0ae2077550160a60d59b81e98add9322c1de98d2b92
4
+ data.tar.gz: 0fb0feb9d93fc1f9ec7fe2e183475a97882a40ed337c932b8272a96172bbe691
5
5
  SHA512:
6
- metadata.gz: 8f2af4974cc0e698f31d104c9eb93cdac14deb00ce6a6dfb99c1d21549eb78410bea396dde2e7035f5d97a27f87afb282969b6d2946d4453dc92691d79af81c3
7
- data.tar.gz: 2f74aa9635507203db1f7f5f38406b1018fa6aca5fcceff772dddd1b46102484fd55039351d38cc2a01f2b17e47d457ac710eaa3ef649f520fed94db4a7c0c78
6
+ metadata.gz: 539cc2b947f978c80d5c4529c39f93cfa40ea9aa4435d67f68471a804ea35fe7e4cdc99b19104bcad35ea07c2c8f96a572fb98a258600dfc2472a190ec1b9334
7
+ data.tar.gz: f791f4021fbb59a3c05eaaa817a1e34d3de5b019ff98e1dada30c8345cd7a8923531badde15819bf5f925680de9c6ad3f7374f28a44463e06e49a3d7dd21c983
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.8.0 (2024-05-13)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.7.0 (2024-04-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.6.0 (2024-04-23)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.8.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
@@ -303,8 +312,9 @@ module Aws::BedrockRuntime
303
312
  #
304
313
  # @option options [String] :sdk_ua_app_id
305
314
  # A unique and opaque application ID that is appended to the
306
- # User-Agent header as app/<sdk_ua_app_id>. It should have a
307
- # maximum length of 50.
315
+ # User-Agent header as app/sdk_ua_app_id. It should have a
316
+ # maximum length of 50. This variable is sourced from environment
317
+ # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
308
318
  #
309
319
  # @option options [String] :secret_access_key
310
320
  #
@@ -348,50 +358,65 @@ module Aws::BedrockRuntime
348
358
  # @option options [Aws::BedrockRuntime::EndpointProvider] :endpoint_provider
349
359
  # 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
360
  #
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.
361
+ # @option options [Float] :http_continue_timeout (1)
362
+ # The number of seconds to wait for a 100-continue response before sending the
363
+ # request body. This option has no effect unless the request has "Expect"
364
+ # header set to "100-continue". Defaults to `nil` which disables this
365
+ # behaviour. This value can safely be set per request on the session.
366
+ #
367
+ # @option options [Float] :http_idle_timeout (5)
368
+ # The number of seconds a connection is allowed to sit idle before it
369
+ # is considered stale. Stale connections are closed and removed from the
370
+ # pool before making a request.
371
+ #
372
+ # @option options [Float] :http_open_timeout (15)
373
+ # The default number of seconds to wait for response data.
374
+ # This value can safely be set per-request on the session.
375
+ #
376
+ # @option options [URI::HTTP,String] :http_proxy
377
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
378
+ #
379
+ # @option options [Float] :http_read_timeout (60)
380
+ # The default number of seconds to wait for response data.
381
+ # This value can safely be set per-request on the session.
382
+ #
383
+ # @option options [Boolean] :http_wire_trace (false)
384
+ # When `true`, HTTP debug output will be sent to the `:logger`.
385
+ #
386
+ # @option options [Proc] :on_chunk_received
387
+ # When a Proc object is provided, it will be used as callback when each chunk
388
+ # of the response body is received. It provides three arguments: the chunk,
389
+ # the number of bytes received, and the total number of
390
+ # bytes in the response (or nil if the server did not send a `content-length`).
391
+ #
392
+ # @option options [Proc] :on_chunk_sent
393
+ # When a Proc object is provided, it will be used as callback when each chunk
394
+ # of the request body is sent. It provides three arguments: the chunk,
395
+ # the number of bytes read from the body, and the total number of
396
+ # bytes in the body.
397
+ #
398
+ # @option options [Boolean] :raise_response_errors (true)
399
+ # When `true`, response errors are raised.
400
+ #
401
+ # @option options [String] :ssl_ca_bundle
402
+ # Full path to the SSL certificate authority bundle file that should be used when
403
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
404
+ # `:ssl_ca_directory` the the system default will be used if available.
405
+ #
406
+ # @option options [String] :ssl_ca_directory
407
+ # Full path of the directory that contains the unbundled SSL certificate
408
+ # authority files for verifying peer certificates. If you do
409
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
410
+ # default will be used if available.
376
411
  #
377
- # @option options [Boolean] :http_wire_trace (false) When `true`,
378
- # HTTP debug output will be sent to the `:logger`.
412
+ # @option options [String] :ssl_ca_store
413
+ # Sets the X509::Store to verify peer certificate.
379
414
  #
380
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
381
- # SSL peer certificates are verified when establishing a
382
- # connection.
415
+ # @option options [Float] :ssl_timeout
416
+ # Sets the SSL timeout in seconds
383
417
  #
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.
418
+ # @option options [Boolean] :ssl_verify_peer (true)
419
+ # When `true`, SSL peer certificates are verified when establishing a connection.
395
420
  #
396
421
  def initialize(*args)
397
422
  super
@@ -600,22 +625,22 @@ module Aws::BedrockRuntime
600
625
  #
601
626
  # @example EventStream Operation Example
602
627
  #
603
- # You can process event once it arrives immediately, or wait until
604
- # full response complete and iterate through eventstream enumerator.
628
+ # You can process the event once it arrives immediately, or wait until the
629
+ # full response is complete and iterate through the eventstream enumerator.
605
630
  #
606
631
  # 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.
632
+ # with callbacks. Callbacks can be registered for specific events or for all
633
+ # events, including error events.
609
634
  #
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.
635
+ # Callbacks can be passed into the `:event_stream_handler` option or within a
636
+ # block statement attached to the #invoke_model_with_response_stream call directly. Hybrid
637
+ # pattern of both is also supported.
613
638
  #
614
- # `:event_stream_handler` option takes in either Proc object or
639
+ # `:event_stream_handler` option takes in either a Proc object or
615
640
  # Aws::BedrockRuntime::EventStreams::ResponseStream object.
616
641
  #
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
642
+ # Usage pattern a): Callbacks with a block attached to #invoke_model_with_response_stream
643
+ # Example for registering callbacks for all event types and an error event
619
644
  #
620
645
  # client.invoke_model_with_response_stream( # params input# ) do |stream|
621
646
  # stream.on_error_event do |event|
@@ -635,9 +660,9 @@ module Aws::BedrockRuntime
635
660
  #
636
661
  # end
637
662
  #
638
- # Usage pattern b): pass in `:event_stream_handler` for #invoke_model_with_response_stream
663
+ # Usage pattern b): Pass in `:event_stream_handler` for #invoke_model_with_response_stream
639
664
  #
640
- # 1) create a Aws::BedrockRuntime::EventStreams::ResponseStream object
665
+ # 1) Create a Aws::BedrockRuntime::EventStreams::ResponseStream object
641
666
  # Example for registering callbacks with specific events
642
667
  #
643
668
  # handler = Aws::BedrockRuntime::EventStreams::ResponseStream.new
@@ -662,7 +687,7 @@ module Aws::BedrockRuntime
662
687
  #
663
688
  # client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler)
664
689
  #
665
- # 2) use a Ruby Proc object
690
+ # 2) Use a Ruby Proc object
666
691
  # Example for registering callbacks with specific events
667
692
  #
668
693
  # handler = Proc.new do |stream|
@@ -688,7 +713,7 @@ module Aws::BedrockRuntime
688
713
  #
689
714
  # client.invoke_model_with_response_stream( # params input #, event_stream_handler: handler)
690
715
  #
691
- # Usage pattern c): hybird pattern of a) and b)
716
+ # Usage pattern c): Hybrid pattern of a) and b)
692
717
  #
693
718
  # handler = Aws::BedrockRuntime::EventStreams::ResponseStream.new
694
719
  # handler.on_chunk_event do |event|
@@ -721,8 +746,7 @@ module Aws::BedrockRuntime
721
746
  # end
722
747
  # end
723
748
  #
724
- # Besides above usage patterns for process events when they arrive immediately, you can also
725
- # iterate through events after response complete.
749
+ # You can also iterate through events after the response complete.
726
750
  #
727
751
  # Events are available at resp.body # => Enumerator
728
752
  # For parameter input example, please refer to following request syntax
@@ -807,7 +831,7 @@ module Aws::BedrockRuntime
807
831
  params: params,
808
832
  config: config)
809
833
  context[:gem_name] = 'aws-sdk-bedrockruntime'
810
- context[:gem_version] = '1.6.0'
834
+ context[:gem_version] = '1.8.0'
811
835
  Seahorse::Client::Request.new(handlers, context)
812
836
  end
813
837
 
@@ -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.8.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.8.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-05-13 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