aws-sdk-kinesis 1.21.0 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-kinesis.rb +1 -1
- data/lib/aws-sdk-kinesis/async_client.rb +18 -14
- data/lib/aws-sdk-kinesis/client.rb +39 -24
- data/lib/aws-sdk-kinesis/resource.rb +1 -7
- data/lib/aws-sdk-kinesis/waiters.rb +62 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: def11d9ea166ae0e3582f3e7eaf97a1efd74a4df29d2e36980a4cfea83a279b9
|
4
|
+
data.tar.gz: 0ac31606c17612fb8ec70885a056293884234a205fadbb99df5fe122fe604948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9978c6457020e7b7e5a4a5d3eecef9df071e4abaf28885725ea0ce0d39caf25583bfbb57de8d8728099da4ac53b82f2dc9e006020444c15b993eb5ffc514c9d2
|
7
|
+
data.tar.gz: ac4ba901bfa03e78ceaeffda9a1381ebd73b4b86b37e69abd8a14ab0862854c0c102412ecee904f4c240edf0901f16327fd2f08d228e43359aea261fedf96006
|
data/lib/aws-sdk-kinesis.rb
CHANGED
@@ -88,7 +88,7 @@ module Aws::Kinesis
|
|
88
88
|
# @option options [required, String] :region
|
89
89
|
# The AWS region to connect to. The configured `:region` is
|
90
90
|
# used to determine the service `:endpoint`. When not passed,
|
91
|
-
# a default `:region` is
|
91
|
+
# a default `:region` is searched for in the following locations:
|
92
92
|
#
|
93
93
|
# * `Aws.config[:region]`
|
94
94
|
# * `ENV['AWS_REGION']`
|
@@ -116,7 +116,7 @@ module Aws::Kinesis
|
|
116
116
|
# @option options [String] :endpoint
|
117
117
|
# The client endpoint is normally constructed from the `:region`
|
118
118
|
# option. You should only configure an `:endpoint` when connecting
|
119
|
-
# to test endpoints. This should be
|
119
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
120
120
|
#
|
121
121
|
# @option options [Proc] :event_stream_handler
|
122
122
|
# 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.
|
@@ -178,15 +178,19 @@ module Aws::Kinesis
|
|
178
178
|
#
|
179
179
|
# @option options [String] :retry_mode ("legacy")
|
180
180
|
# Specifies which retry algorithm to use. Values are:
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
181
|
+
#
|
182
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
183
|
+
# no retry mode is provided.
|
184
|
+
#
|
185
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
186
|
+
# This includes support for retry quotas, which limit the number of
|
187
|
+
# unsuccessful retries a client can make.
|
188
|
+
#
|
189
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
190
|
+
# functionality of `standard` mode along with automatic client side
|
191
|
+
# throttling. This is a provisional mode that may change behavior
|
192
|
+
# in the future.
|
193
|
+
#
|
190
194
|
#
|
191
195
|
# @option options [String] :secret_access_key
|
192
196
|
#
|
@@ -512,7 +516,7 @@ module Aws::Kinesis
|
|
512
516
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
513
517
|
config: config)
|
514
518
|
context[:gem_name] = 'aws-sdk-kinesis'
|
515
|
-
context[:gem_version] = '1.
|
519
|
+
context[:gem_version] = '1.22.0'
|
516
520
|
Seahorse::Client::Request.new(handlers, context)
|
517
521
|
end
|
518
522
|
|
@@ -525,8 +529,8 @@ module Aws::Kinesis
|
|
525
529
|
when nil then event_stream_class.new
|
526
530
|
else
|
527
531
|
msg = "expected #{type}_event_stream_handler to be a block or "\
|
528
|
-
|
529
|
-
|
532
|
+
"instance of Aws::Kinesis::#{event_stream_class}"\
|
533
|
+
", got `#{handler.inspect}` instead"
|
530
534
|
raise ArgumentError, msg
|
531
535
|
end
|
532
536
|
end
|
@@ -33,11 +33,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:kinesis)
|
|
33
33
|
module Aws::Kinesis
|
34
34
|
# An API client for Kinesis. To construct a client, you need to configure a `:region` and `:credentials`.
|
35
35
|
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
36
|
+
# client = Aws::Kinesis::Client.new(
|
37
|
+
# region: region_name,
|
38
|
+
# credentials: credentials,
|
39
|
+
# # ...
|
40
|
+
# )
|
41
41
|
#
|
42
42
|
# For details on configuring region and credentials see
|
43
43
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -107,7 +107,7 @@ module Aws::Kinesis
|
|
107
107
|
# @option options [required, String] :region
|
108
108
|
# The AWS region to connect to. The configured `:region` is
|
109
109
|
# used to determine the service `:endpoint`. When not passed,
|
110
|
-
# a default `:region` is
|
110
|
+
# a default `:region` is searched for in the following locations:
|
111
111
|
#
|
112
112
|
# * `Aws.config[:region]`
|
113
113
|
# * `ENV['AWS_REGION']`
|
@@ -163,7 +163,7 @@ module Aws::Kinesis
|
|
163
163
|
# @option options [String] :endpoint
|
164
164
|
# The client endpoint is normally constructed from the `:region`
|
165
165
|
# option. You should only configure an `:endpoint` when connecting
|
166
|
-
# to test endpoints. This should be
|
166
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
167
167
|
#
|
168
168
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
169
169
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -240,15 +240,19 @@ module Aws::Kinesis
|
|
240
240
|
#
|
241
241
|
# @option options [String] :retry_mode ("legacy")
|
242
242
|
# Specifies which retry algorithm to use. Values are:
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
243
|
+
#
|
244
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
245
|
+
# no retry mode is provided.
|
246
|
+
#
|
247
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
248
|
+
# This includes support for retry quotas, which limit the number of
|
249
|
+
# unsuccessful retries a client can make.
|
250
|
+
#
|
251
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
252
|
+
# functionality of `standard` mode along with automatic client side
|
253
|
+
# throttling. This is a provisional mode that may change behavior
|
254
|
+
# in the future.
|
255
|
+
#
|
252
256
|
#
|
253
257
|
# @option options [String] :secret_access_key
|
254
258
|
#
|
@@ -286,8 +290,7 @@ module Aws::Kinesis
|
|
286
290
|
#
|
287
291
|
# @option options [Integer] :http_read_timeout (60) The default
|
288
292
|
# number of seconds to wait for response data. This value can
|
289
|
-
# safely be set
|
290
|
-
# per-request on the session yielded by {#session_for}.
|
293
|
+
# safely be set per-request on the session.
|
291
294
|
#
|
292
295
|
# @option options [Float] :http_idle_timeout (5) The number of
|
293
296
|
# seconds a connection is allowed to sit idle before it is
|
@@ -299,7 +302,7 @@ module Aws::Kinesis
|
|
299
302
|
# request body. This option has no effect unless the request has
|
300
303
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
301
304
|
# disables this behaviour. This value can safely be set per
|
302
|
-
# request on the session
|
305
|
+
# request on the session.
|
303
306
|
#
|
304
307
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
305
308
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -640,6 +643,8 @@ module Aws::Kinesis
|
|
640
643
|
#
|
641
644
|
# * {Types::DescribeStreamOutput#stream_description #stream_description} => Types::StreamDescription
|
642
645
|
#
|
646
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
647
|
+
#
|
643
648
|
# @example Request syntax with placeholder values
|
644
649
|
#
|
645
650
|
# resp = client.describe_stream({
|
@@ -670,6 +675,12 @@ module Aws::Kinesis
|
|
670
675
|
# resp.stream_description.encryption_type #=> String, one of "NONE", "KMS"
|
671
676
|
# resp.stream_description.key_id #=> String
|
672
677
|
#
|
678
|
+
#
|
679
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
680
|
+
#
|
681
|
+
# * stream_exists
|
682
|
+
# * stream_not_exists
|
683
|
+
#
|
673
684
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeStream AWS API Documentation
|
674
685
|
#
|
675
686
|
# @overload describe_stream(params = {})
|
@@ -1349,6 +1360,8 @@ module Aws::Kinesis
|
|
1349
1360
|
# * {Types::ListStreamConsumersOutput#consumers #consumers} => Array<Types::Consumer>
|
1350
1361
|
# * {Types::ListStreamConsumersOutput#next_token #next_token} => String
|
1351
1362
|
#
|
1363
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1364
|
+
#
|
1352
1365
|
# @example Request syntax with placeholder values
|
1353
1366
|
#
|
1354
1367
|
# resp = client.list_stream_consumers({
|
@@ -1406,6 +1419,8 @@ module Aws::Kinesis
|
|
1406
1419
|
# * {Types::ListStreamsOutput#stream_names #stream_names} => Array<String>
|
1407
1420
|
# * {Types::ListStreamsOutput#has_more_streams #has_more_streams} => Boolean
|
1408
1421
|
#
|
1422
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1423
|
+
#
|
1409
1424
|
# @example Request syntax with placeholder values
|
1410
1425
|
#
|
1411
1426
|
# resp = client.list_streams({
|
@@ -2184,7 +2199,7 @@ module Aws::Kinesis
|
|
2184
2199
|
params: params,
|
2185
2200
|
config: config)
|
2186
2201
|
context[:gem_name] = 'aws-sdk-kinesis'
|
2187
|
-
context[:gem_version] = '1.
|
2202
|
+
context[:gem_version] = '1.22.0'
|
2188
2203
|
Seahorse::Client::Request.new(handlers, context)
|
2189
2204
|
end
|
2190
2205
|
|
@@ -2250,10 +2265,10 @@ module Aws::Kinesis
|
|
2250
2265
|
# The following table lists the valid waiter names, the operations they call,
|
2251
2266
|
# and the default `:delay` and `:max_attempts` values.
|
2252
2267
|
#
|
2253
|
-
# | waiter_name | params
|
2254
|
-
# | ----------------- |
|
2255
|
-
# | stream_exists | {#describe_stream} | 10 | 18 |
|
2256
|
-
# | stream_not_exists | {#describe_stream} | 10 | 18 |
|
2268
|
+
# | waiter_name | params | :delay | :max_attempts |
|
2269
|
+
# | ----------------- | ------------------------ | -------- | ------------- |
|
2270
|
+
# | stream_exists | {Client#describe_stream} | 10 | 18 |
|
2271
|
+
# | stream_not_exists | {Client#describe_stream} | 10 | 18 |
|
2257
2272
|
#
|
2258
2273
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
2259
2274
|
# because the waiter has entered a state that it will not transition
|
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Kinesis
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::Kinesis::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::Kinesis::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::Kinesis::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
@@ -8,6 +8,68 @@
|
|
8
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
10
|
module Aws::Kinesis
|
11
|
+
# Waiters are utility methods that poll for a particular state to occur
|
12
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
13
|
+
# interval defined for the service client.
|
14
|
+
#
|
15
|
+
# For a list of operations that can be waited for and the
|
16
|
+
# client methods called for each operation, see the table below or the
|
17
|
+
# {Client#wait_until} field documentation for the {Client}.
|
18
|
+
#
|
19
|
+
# # Invoking a Waiter
|
20
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
21
|
+
# is the waiter name, which is specific to the service client and indicates
|
22
|
+
# which operation is being waited for. The second parameter is a hash of
|
23
|
+
# parameters that are passed to the client method called by the waiter,
|
24
|
+
# which varies according to the waiter name.
|
25
|
+
#
|
26
|
+
# # Wait Failures
|
27
|
+
# To catch errors in a waiter, use WaiterFailed,
|
28
|
+
# as shown in the following example.
|
29
|
+
#
|
30
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
31
|
+
# puts "failed waiting for instance running: #{error.message}
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# # Configuring a Waiter
|
35
|
+
# Each waiter has a default polling interval and a maximum number of
|
36
|
+
# attempts it will make before returning control to your program.
|
37
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
38
|
+
# in your `#wait_until` call.
|
39
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
40
|
+
#
|
41
|
+
# client.wait_until(...) do |w|
|
42
|
+
# w.max_attempts = 5
|
43
|
+
# w.delay = 5
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# To disable wait failures, set the value of either of these parameters
|
47
|
+
# to `nil`.
|
48
|
+
#
|
49
|
+
# # Extending a Waiter
|
50
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
51
|
+
# triggered before each polling attempt and before waiting.
|
52
|
+
#
|
53
|
+
# The following example implements an exponential backoff in a waiter
|
54
|
+
# by doubling the amount of time to wait on every attempt.
|
55
|
+
#
|
56
|
+
# client.wait_until(...) do |w|
|
57
|
+
# w.interval = 0 # disable normal sleep
|
58
|
+
# w.before_wait do |n, resp|
|
59
|
+
# sleep(n ** 2)
|
60
|
+
# end
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# # Available Waiters
|
64
|
+
#
|
65
|
+
# The following table lists the valid waiter names, the operations they call,
|
66
|
+
# and the default `:delay` and `:max_attempts` values.
|
67
|
+
#
|
68
|
+
# | waiter_name | params | :delay | :max_attempts |
|
69
|
+
# | ----------------- | ------------------------ | -------- | ------------- |
|
70
|
+
# | stream_exists | {Client#describe_stream} | 10 | 18 |
|
71
|
+
# | stream_not_exists | {Client#describe_stream} | 10 | 18 |
|
72
|
+
#
|
11
73
|
module Waiters
|
12
74
|
|
13
75
|
class StreamExists
|
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.22.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: 2020-
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.7.6.2
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: AWS SDK for Ruby - Kinesis
|