aws-sdk-kinesis 1.55.0 → 1.56.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-kinesis/async_client.rb +67 -23
- data/lib/aws-sdk-kinesis/client.rb +70 -46
- data/lib/aws-sdk-kinesis.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: 9353635ff4c6d3e353a3d143e4d30b86c36fe8995b6a3aa4888a85827a413494
|
4
|
+
data.tar.gz: ad92577d2ab3b83bd419eb829859bf0fafbf69178b163d7cc81664c4ef4a6d25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79c0b6c3e7d141e2524e4f3fbb215af9e1cabbfe95db565f5f032a30bf8aa69f293ca8cd853448ffb9afdca5b74adf7d0f22ea42acb9ccb89de10b56c4c5a99c
|
7
|
+
data.tar.gz: cfa21b3f57ea74a3face4dc88f73ef3aec5e9dadd18b5e1ffa5e3a417103b93027e8dccb74fc96d896a7b516971c52c342e74716fa4dde355633aa5a08d3cc15
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.56.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/json_rpc.rb'
|
33
33
|
require 'aws-sdk-core/plugins/event_stream_configuration.rb'
|
@@ -54,13 +54,13 @@ module Aws::Kinesis
|
|
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::JsonRpc)
|
66
66
|
add_plugin(Aws::Plugins::EventStreamConfiguration)
|
@@ -147,10 +147,17 @@ module Aws::Kinesis
|
|
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.
|
@@ -292,6 +299,44 @@ module Aws::Kinesis
|
|
292
299
|
# @option options [Aws::Kinesis::EndpointProvider] :endpoint_provider
|
293
300
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Kinesis::EndpointParameters`
|
294
301
|
#
|
302
|
+
# @option options [Integer] :connection_read_timeout (60)
|
303
|
+
# Connection read timeout in seconds, defaults to 60 sec.
|
304
|
+
#
|
305
|
+
# @option options [Integer] :connection_timeout (60)
|
306
|
+
# Connection timeout in seconds, defaults to 60 sec.
|
307
|
+
#
|
308
|
+
# @option options [Boolean] :enable_alpn (false)
|
309
|
+
# Set to `true` to enable ALPN in HTTP2 over TLS. Requires Openssl version >= 1.0.2.
|
310
|
+
# Defaults to false. Note: not all service HTTP2 operations supports ALPN on server
|
311
|
+
# side, please refer to service documentation.
|
312
|
+
#
|
313
|
+
# @option options [Boolean] :http_wire_trace (false)
|
314
|
+
# When `true`, HTTP2 debug output will be sent to the `:logger`.
|
315
|
+
#
|
316
|
+
# @option options [Integer] :max_concurrent_streams (100)
|
317
|
+
# Maximum concurrent streams used in HTTP2 connection, defaults to 100. Note that server may send back
|
318
|
+
# :settings_max_concurrent_streams value which will take priority when initializing new streams.
|
319
|
+
#
|
320
|
+
# @option options [Boolean] :raise_response_errors (true)
|
321
|
+
# Defaults to `true`, raises errors if exist when #wait or #join! is called upon async response.
|
322
|
+
#
|
323
|
+
# @option options [Integer] :read_chunk_size (1024)
|
324
|
+
#
|
325
|
+
# @option options [String] :ssl_ca_bundle
|
326
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
327
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_directory` or `:ssl_ca_bundle`
|
328
|
+
# the system default will be used if available.
|
329
|
+
#
|
330
|
+
# @option options [String] :ssl_ca_directory
|
331
|
+
# Full path of the directory that contains the unbundled SSL certificate authority
|
332
|
+
# files for verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
333
|
+
# `:ssl_ca_directory` the system default will be used if available.
|
334
|
+
#
|
335
|
+
# @option options [String] :ssl_ca_store
|
336
|
+
#
|
337
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
338
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
339
|
+
#
|
295
340
|
def initialize(*args)
|
296
341
|
unless Kernel.const_defined?("HTTP2")
|
297
342
|
raise "Must include http/2 gem to use AsyncClient instances."
|
@@ -351,22 +396,22 @@ module Aws::Kinesis
|
|
351
396
|
#
|
352
397
|
# @example EventStream Operation Example
|
353
398
|
#
|
354
|
-
# You can process event once it arrives immediately, or wait until
|
355
|
-
# full response complete and iterate through eventstream enumerator.
|
399
|
+
# You can process the event once it arrives immediately, or wait until the
|
400
|
+
# full response is complete and iterate through the eventstream enumerator.
|
356
401
|
#
|
357
402
|
# To interact with event immediately, you need to register #subscribe_to_shard
|
358
|
-
# with callbacks
|
359
|
-
#
|
403
|
+
# with callbacks. Callbacks can be registered for specific events or for all
|
404
|
+
# events, including error events.
|
360
405
|
#
|
361
|
-
# Callbacks can be passed
|
362
|
-
# statement attached to #subscribe_to_shard call directly. Hybrid
|
363
|
-
# is also supported.
|
406
|
+
# Callbacks can be passed into the `:event_stream_handler` option or within a
|
407
|
+
# block statement attached to the #subscribe_to_shard call directly. Hybrid
|
408
|
+
# pattern of both is also supported.
|
364
409
|
#
|
365
|
-
# `:event_stream_handler` option takes in either Proc object or
|
410
|
+
# `:event_stream_handler` option takes in either a Proc object or
|
366
411
|
# Aws::Kinesis::EventStreams::SubscribeToShardEventStream object.
|
367
412
|
#
|
368
|
-
# Usage pattern a):
|
369
|
-
# Example for registering callbacks for all event types and error event
|
413
|
+
# Usage pattern a): Callbacks with a block attached to #subscribe_to_shard
|
414
|
+
# Example for registering callbacks for all event types and an error event
|
370
415
|
#
|
371
416
|
# client.subscribe_to_shard( # params input# ) do |stream|
|
372
417
|
# stream.on_error_event do |event|
|
@@ -386,9 +431,9 @@ module Aws::Kinesis
|
|
386
431
|
#
|
387
432
|
# end
|
388
433
|
#
|
389
|
-
# Usage pattern b):
|
434
|
+
# Usage pattern b): Pass in `:event_stream_handler` for #subscribe_to_shard
|
390
435
|
#
|
391
|
-
# 1)
|
436
|
+
# 1) Create a Aws::Kinesis::EventStreams::SubscribeToShardEventStream object
|
392
437
|
# Example for registering callbacks with specific events
|
393
438
|
#
|
394
439
|
# handler = Aws::Kinesis::EventStreams::SubscribeToShardEventStream.new
|
@@ -425,7 +470,7 @@ module Aws::Kinesis
|
|
425
470
|
#
|
426
471
|
# client.subscribe_to_shard( # params input #, event_stream_handler: handler)
|
427
472
|
#
|
428
|
-
# 2)
|
473
|
+
# 2) Use a Ruby Proc object
|
429
474
|
# Example for registering callbacks with specific events
|
430
475
|
#
|
431
476
|
# handler = Proc.new do |stream|
|
@@ -463,7 +508,7 @@ module Aws::Kinesis
|
|
463
508
|
#
|
464
509
|
# client.subscribe_to_shard( # params input #, event_stream_handler: handler)
|
465
510
|
#
|
466
|
-
# Usage pattern c):
|
511
|
+
# Usage pattern c): Hybrid pattern of a) and b)
|
467
512
|
#
|
468
513
|
# handler = Aws::Kinesis::EventStreams::SubscribeToShardEventStream.new
|
469
514
|
# handler.on_subscribe_to_shard_event_event do |event|
|
@@ -508,8 +553,7 @@ module Aws::Kinesis
|
|
508
553
|
# end
|
509
554
|
# end
|
510
555
|
#
|
511
|
-
#
|
512
|
-
# iterate through events after response complete.
|
556
|
+
# You can also iterate through events after the response complete.
|
513
557
|
#
|
514
558
|
# Events are available at resp.event_stream # => Enumerator
|
515
559
|
# For parameter input example, please refer to following request syntax
|
@@ -615,7 +659,7 @@ module Aws::Kinesis
|
|
615
659
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
616
660
|
config: config)
|
617
661
|
context[:gem_name] = 'aws-sdk-kinesis'
|
618
|
-
context[:gem_version] = '1.
|
662
|
+
context[:gem_version] = '1.56.0'
|
619
663
|
Seahorse::Client::Request.new(handlers, context)
|
620
664
|
end
|
621
665
|
|
@@ -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::Kinesis
|
|
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::Kinesis
|
|
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
|
@@ -358,50 +367,65 @@ module Aws::Kinesis
|
|
358
367
|
# @option options [Aws::Kinesis::EndpointProvider] :endpoint_provider
|
359
368
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Kinesis::EndpointParameters`
|
360
369
|
#
|
361
|
-
# @option options [
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
# @option options [Float] :
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
#
|
370
|
+
# @option options [Float] :http_continue_timeout (1)
|
371
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
372
|
+
# request body. This option has no effect unless the request has "Expect"
|
373
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
374
|
+
# behaviour. This value can safely be set per request on the session.
|
375
|
+
#
|
376
|
+
# @option options [Float] :http_idle_timeout (5)
|
377
|
+
# The number of seconds a connection is allowed to sit idle before it
|
378
|
+
# is considered stale. Stale connections are closed and removed from the
|
379
|
+
# pool before making a request.
|
380
|
+
#
|
381
|
+
# @option options [Float] :http_open_timeout (15)
|
382
|
+
# The default number of seconds to wait for response data.
|
383
|
+
# This value can safely be set per-request on the session.
|
384
|
+
#
|
385
|
+
# @option options [URI::HTTP,String] :http_proxy
|
386
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
387
|
+
#
|
388
|
+
# @option options [Float] :http_read_timeout (60)
|
389
|
+
# The default number of seconds to wait for response data.
|
390
|
+
# This value can safely be set per-request on the session.
|
391
|
+
#
|
392
|
+
# @option options [Boolean] :http_wire_trace (false)
|
393
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
394
|
+
#
|
395
|
+
# @option options [Proc] :on_chunk_received
|
396
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
397
|
+
# of the response body is received. It provides three arguments: the chunk,
|
398
|
+
# the number of bytes received, and the total number of
|
399
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
400
|
+
#
|
401
|
+
# @option options [Proc] :on_chunk_sent
|
402
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
403
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
404
|
+
# the number of bytes read from the body, and the total number of
|
405
|
+
# bytes in the body.
|
406
|
+
#
|
407
|
+
# @option options [Boolean] :raise_response_errors (true)
|
408
|
+
# When `true`, response errors are raised.
|
409
|
+
#
|
410
|
+
# @option options [String] :ssl_ca_bundle
|
411
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
412
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
413
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
414
|
+
#
|
415
|
+
# @option options [String] :ssl_ca_directory
|
416
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
417
|
+
# authority files for verifying peer certificates. If you do
|
418
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
419
|
+
# default will be used if available.
|
386
420
|
#
|
387
|
-
# @option options [
|
388
|
-
#
|
421
|
+
# @option options [String] :ssl_ca_store
|
422
|
+
# Sets the X509::Store to verify peer certificate.
|
389
423
|
#
|
390
|
-
# @option options [
|
391
|
-
#
|
392
|
-
# connection.
|
424
|
+
# @option options [Float] :ssl_timeout
|
425
|
+
# Sets the SSL timeout in seconds
|
393
426
|
#
|
394
|
-
# @option options [
|
395
|
-
#
|
396
|
-
# verifying peer certificates. If you do not pass
|
397
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
398
|
-
# will be used if available.
|
399
|
-
#
|
400
|
-
# @option options [String] :ssl_ca_directory Full path of the
|
401
|
-
# directory that contains the unbundled SSL certificate
|
402
|
-
# authority files for verifying peer certificates. If you do
|
403
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
404
|
-
# system default will be used if available.
|
427
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
428
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
405
429
|
#
|
406
430
|
def initialize(*args)
|
407
431
|
super
|
@@ -2777,7 +2801,7 @@ module Aws::Kinesis
|
|
2777
2801
|
params: params,
|
2778
2802
|
config: config)
|
2779
2803
|
context[:gem_name] = 'aws-sdk-kinesis'
|
2780
|
-
context[:gem_version] = '1.
|
2804
|
+
context[:gem_version] = '1.56.0'
|
2781
2805
|
Seahorse::Client::Request.new(handlers, context)
|
2782
2806
|
end
|
2783
2807
|
|
data/lib/aws-sdk-kinesis.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kinesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.56.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
|