aws-sdk-lexruntimev2 1.30.0 → 1.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexruntimev2/async_client.rb +71 -25
- data/lib/aws-sdk-lexruntimev2/client.rb +70 -46
- data/lib/aws-sdk-lexruntimev2.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfe86f1d719d762f4fcf5cc897564a6305aac13c8ff573a7cbf7eb76eb2d14ad
|
4
|
+
data.tar.gz: ac1fa3089b077173ab4d5cf794932f9c8552100678ddba4f43e695d35c198b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 335a3300e81c9c78458f9d64aa210c5dc2fa280dba1df5dccaf0367cb64fcd62aa81699d85aa7add78b3bc1a46591f1d3e18a1e83ad0c8c245150858c79cce6c
|
7
|
+
data.tar.gz: '0790139937b5c0d712f4f9b944188c1db2ac2870612a705fc1e7addbb5c18c57750e1a2fd81981c4e6ecac715a6d6b04f6a2681d9d6428c3fc4bb4d62bd9b86b'
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.31.0
|
@@ -21,13 +21,13 @@ require 'aws-sdk-core/plugins/global_configuration.rb'
|
|
21
21
|
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
22
22
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
23
23
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
24
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
24
25
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
25
26
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
26
27
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
27
28
|
require 'aws-sdk-core/plugins/request_compression.rb'
|
28
29
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
29
30
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
|
-
require 'aws-sdk-core/plugins/invocation_id.rb'
|
31
31
|
require 'aws-sdk-core/plugins/sign.rb'
|
32
32
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
33
33
|
require 'aws-sdk-core/plugins/event_stream_configuration.rb'
|
@@ -54,13 +54,13 @@ module Aws::LexRuntimeV2
|
|
54
54
|
add_plugin(Aws::Plugins::RegionalEndpoint)
|
55
55
|
add_plugin(Aws::Plugins::StubResponses)
|
56
56
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
57
|
+
add_plugin(Aws::Plugins::InvocationId)
|
57
58
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
58
59
|
add_plugin(Aws::Plugins::HttpChecksum)
|
59
60
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
60
61
|
add_plugin(Aws::Plugins::RequestCompression)
|
61
62
|
add_plugin(Aws::Plugins::DefaultsMode)
|
62
63
|
add_plugin(Aws::Plugins::RecursionDetection)
|
63
|
-
add_plugin(Aws::Plugins::InvocationId)
|
64
64
|
add_plugin(Aws::Plugins::Sign)
|
65
65
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
66
66
|
add_plugin(Aws::Plugins::EventStreamConfiguration)
|
@@ -147,10 +147,17 @@ module Aws::LexRuntimeV2
|
|
147
147
|
# When set to 'true' the request body will not be compressed
|
148
148
|
# for supported operations.
|
149
149
|
#
|
150
|
-
# @option options [String] :endpoint
|
151
|
-
#
|
152
|
-
#
|
153
|
-
#
|
150
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
151
|
+
# Normally you should not configure the `:endpoint` option
|
152
|
+
# directly. This is normally constructed from the `:region`
|
153
|
+
# option. Configuring `:endpoint` is normally reserved for
|
154
|
+
# connecting to test or custom endpoints. The endpoint should
|
155
|
+
# be a URI formatted like:
|
156
|
+
#
|
157
|
+
# 'http://example.com'
|
158
|
+
# 'https://example.com'
|
159
|
+
# 'http://example.com:123'
|
160
|
+
#
|
154
161
|
#
|
155
162
|
# @option options [Proc] :event_stream_handler
|
156
163
|
# When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
|
@@ -282,6 +289,44 @@ module Aws::LexRuntimeV2
|
|
282
289
|
# @option options [Aws::LexRuntimeV2::EndpointProvider] :endpoint_provider
|
283
290
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LexRuntimeV2::EndpointParameters`
|
284
291
|
#
|
292
|
+
# @option options [Integer] :connection_read_timeout (60)
|
293
|
+
# Connection read timeout in seconds, defaults to 60 sec.
|
294
|
+
#
|
295
|
+
# @option options [Integer] :connection_timeout (60)
|
296
|
+
# Connection timeout in seconds, defaults to 60 sec.
|
297
|
+
#
|
298
|
+
# @option options [Boolean] :enable_alpn (false)
|
299
|
+
# Set to `true` to enable ALPN in HTTP2 over TLS. Requires Openssl version >= 1.0.2.
|
300
|
+
# Defaults to false. Note: not all service HTTP2 operations supports ALPN on server
|
301
|
+
# side, please refer to service documentation.
|
302
|
+
#
|
303
|
+
# @option options [Boolean] :http_wire_trace (false)
|
304
|
+
# When `true`, HTTP2 debug output will be sent to the `:logger`.
|
305
|
+
#
|
306
|
+
# @option options [Integer] :max_concurrent_streams (100)
|
307
|
+
# Maximum concurrent streams used in HTTP2 connection, defaults to 100. Note that server may send back
|
308
|
+
# :settings_max_concurrent_streams value which will take priority when initializing new streams.
|
309
|
+
#
|
310
|
+
# @option options [Boolean] :raise_response_errors (true)
|
311
|
+
# Defaults to `true`, raises errors if exist when #wait or #join! is called upon async response.
|
312
|
+
#
|
313
|
+
# @option options [Integer] :read_chunk_size (1024)
|
314
|
+
#
|
315
|
+
# @option options [String] :ssl_ca_bundle
|
316
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
317
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_directory` or `:ssl_ca_bundle`
|
318
|
+
# the system default will be used if available.
|
319
|
+
#
|
320
|
+
# @option options [String] :ssl_ca_directory
|
321
|
+
# Full path of the directory that contains the unbundled SSL certificate authority
|
322
|
+
# files for verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
323
|
+
# `:ssl_ca_directory` the system default will be used if available.
|
324
|
+
#
|
325
|
+
# @option options [String] :ssl_ca_store
|
326
|
+
#
|
327
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
328
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
329
|
+
#
|
285
330
|
def initialize(*args)
|
286
331
|
unless Kernel.const_defined?("HTTP2")
|
287
332
|
raise "Must include http/2 gem to use AsyncClient instances."
|
@@ -368,19 +413,20 @@ module Aws::LexRuntimeV2
|
|
368
413
|
#
|
369
414
|
# @example Bi-directional EventStream Operation Example
|
370
415
|
#
|
371
|
-
# You can signal input events after initial request is
|
372
|
-
#
|
373
|
-
#
|
416
|
+
# You can signal input events after the initial request is established. Events
|
417
|
+
# will be sent to the stream immediately once the stream connection is
|
418
|
+
# established successfully.
|
374
419
|
#
|
375
|
-
# To signal events, you can call #signal methods from an Aws::LexRuntimeV2::EventStreams::StartConversationRequestEventStream
|
376
|
-
#
|
420
|
+
# To signal events, you can call the #signal methods from an Aws::LexRuntimeV2::EventStreams::StartConversationRequestEventStream
|
421
|
+
# object. You must signal events before calling #wait or #join! on the async response.
|
377
422
|
#
|
378
423
|
# input_stream = Aws::LexRuntimeV2::EventStreams::StartConversationRequestEventStream.new
|
379
424
|
#
|
380
|
-
# async_resp = client.start_conversation(
|
425
|
+
# async_resp = client.start_conversation(
|
426
|
+
# # params input
|
381
427
|
# input_event_stream_handler: input_stream) do |out_stream|
|
382
428
|
#
|
383
|
-
# # register callbacks for events
|
429
|
+
# # register callbacks for events
|
384
430
|
# out_stream.on_playback_interruption_event_event do |event|
|
385
431
|
# event # => Aws::LexRuntimeV2::Types::PlaybackInterruptionEvent
|
386
432
|
# end
|
@@ -425,7 +471,7 @@ module Aws::LexRuntimeV2
|
|
425
471
|
# end
|
426
472
|
#
|
427
473
|
# end
|
428
|
-
# # =>
|
474
|
+
# # => Aws::Seahorse::Client::AsyncResponse
|
429
475
|
#
|
430
476
|
# # signal events
|
431
477
|
# input_stream.signal_configuration_event_event( ... )
|
@@ -435,19 +481,19 @@ module Aws::LexRuntimeV2
|
|
435
481
|
# input_stream.signal_playback_completion_event_event( ... )
|
436
482
|
# input_stream.signal_disconnection_event_event( ... )
|
437
483
|
#
|
438
|
-
# # make sure
|
484
|
+
# # make sure to signal :end_stream at the end
|
439
485
|
# input_stream.signal_end_stream
|
440
486
|
#
|
441
|
-
# # wait until stream is closed before finalizing sync response
|
487
|
+
# # wait until stream is closed before finalizing the sync response
|
442
488
|
# resp = async_resp.wait
|
443
|
-
# # Or close stream and
|
489
|
+
# # Or close the stream and finalize sync response immediately
|
444
490
|
# # resp = async_resp.join!
|
445
491
|
#
|
446
|
-
#
|
447
|
-
#
|
492
|
+
# You can also provide an Aws::LexRuntimeV2::EventStreams::StartConversationResponseEventStream object to register callbacks
|
493
|
+
# before initializing the request instead of processing from the request block.
|
448
494
|
#
|
449
495
|
# output_stream = Aws::LexRuntimeV2::EventStreams::StartConversationResponseEventStream.new
|
450
|
-
# # register callbacks for events
|
496
|
+
# # register callbacks for output events
|
451
497
|
# output_stream.on_playback_interruption_event_event do |event|
|
452
498
|
# event # => Aws::LexRuntimeV2::Types::PlaybackInterruptionEvent
|
453
499
|
# end
|
@@ -499,15 +545,15 @@ module Aws::LexRuntimeV2
|
|
499
545
|
# # event.error_message => String
|
500
546
|
# end
|
501
547
|
#
|
502
|
-
# async_resp = client.start_conversation (
|
548
|
+
# async_resp = client.start_conversation (
|
549
|
+
# # params input
|
503
550
|
# input_event_stream_handler: input_stream
|
504
551
|
# output_event_stream_handler: output_stream
|
505
552
|
# )
|
506
553
|
#
|
507
|
-
# resp = async_resp.
|
554
|
+
# resp = async_resp.join!
|
508
555
|
#
|
509
|
-
#
|
510
|
-
# iterate through events after response complete.
|
556
|
+
# You can also iterate through events after the response is complete.
|
511
557
|
#
|
512
558
|
# Events are available at resp.response_event_stream # => Enumerator
|
513
559
|
#
|
@@ -688,7 +734,7 @@ module Aws::LexRuntimeV2
|
|
688
734
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
689
735
|
config: config)
|
690
736
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
691
|
-
context[:gem_version] = '1.
|
737
|
+
context[:gem_version] = '1.31.0'
|
692
738
|
Seahorse::Client::Request.new(handlers, context)
|
693
739
|
end
|
694
740
|
|
@@ -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::LexRuntimeV2
|
|
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::LexRuntimeV2
|
|
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
|
-
#
|
203
|
-
#
|
204
|
-
#
|
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::LexRuntimeV2
|
|
348
357
|
# @option options [Aws::LexRuntimeV2::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::LexRuntimeV2::EndpointParameters`
|
350
359
|
#
|
351
|
-
# @option options [
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
# @option options [Float] :
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
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 [
|
378
|
-
#
|
411
|
+
# @option options [String] :ssl_ca_store
|
412
|
+
# Sets the X509::Store to verify peer certificate.
|
379
413
|
#
|
380
|
-
# @option options [
|
381
|
-
#
|
382
|
-
# connection.
|
414
|
+
# @option options [Float] :ssl_timeout
|
415
|
+
# Sets the SSL timeout in seconds
|
383
416
|
#
|
384
|
-
# @option options [
|
385
|
-
#
|
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
|
@@ -1169,7 +1193,7 @@ module Aws::LexRuntimeV2
|
|
1169
1193
|
params: params,
|
1170
1194
|
config: config)
|
1171
1195
|
context[:gem_name] = 'aws-sdk-lexruntimev2'
|
1172
|
-
context[:gem_version] = '1.
|
1196
|
+
context[:gem_version] = '1.31.0'
|
1173
1197
|
Seahorse::Client::Request.new(handlers, context)
|
1174
1198
|
end
|
1175
1199
|
|
data/lib/aws-sdk-lexruntimev2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexruntimev2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.31.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-
|
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.
|
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.
|
32
|
+
version: 3.193.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|