aws-sdk-kinesis 1.19.0 → 1.24.1

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
- SHA1:
3
- metadata.gz: 32bf4b78749105d11660a156ea4a15e417c3caae
4
- data.tar.gz: fce2a22765f6b2f68d2a05110f2c62df2140aae3
2
+ SHA256:
3
+ metadata.gz: 2ba4e8c14caa0cfe0abfbcd2731482d9ec682ef757a504720b6c85cdc1aca4a8
4
+ data.tar.gz: 5d0b6011eb09693dfcd138595c21d4f03c7d94c87c3a7d27a077b5b5af088a80
5
5
  SHA512:
6
- metadata.gz: ff0936583f8971696a4e3625bffb93589b7a56a5b2d82317c8d0e92faa2b64ad79f95ce84b0c55b007fc17c5cd106490c67faa9dded0b3d7d9c936db55335dad
7
- data.tar.gz: ad02f62cca49b4e60dce46c0c6134ef7fd9db9da082173bdb04777353626aa6b51323327c58b167d0b546a22e3311a582df2f8b5c76feeadfe86238e60e86f36
6
+ metadata.gz: fba20d0897358701b310fc0dc6f3922bdb34d23901661dc49e9e2f28db959b06038b6e59557570317b77729a8ff9002868ee9ce5c9f917c5b41964161159071b
7
+ data.tar.gz: 685b57bd16364d77729cdd355ff3e97584f82fed1acb0fb031939f735fb9d2df6e4c2a7cf6b3ee7ea3369a2fa5396b299f520c25ac68ee592dd9a4f88654d45c
@@ -27,17 +27,20 @@ require_relative 'aws-sdk-kinesis/event_streams'
27
27
  # methods each accept a hash of request parameters and return a response
28
28
  # structure.
29
29
  #
30
+ # kinesis = Aws::Kinesis::Client.new
31
+ # resp = kinesis.add_tags_to_stream(params)
32
+ #
30
33
  # See {Client} for more information.
31
34
  #
32
35
  # # Errors
33
36
  #
34
- # Errors returned from Amazon Kinesis all
35
- # extend {Errors::ServiceError}.
37
+ # Errors returned from Amazon Kinesis are defined in the
38
+ # {Errors} module and all extend {Errors::ServiceError}.
36
39
  #
37
40
  # begin
38
41
  # # do stuff
39
42
  # rescue Aws::Kinesis::Errors::ServiceError
40
- # # rescues all service API errors
43
+ # # rescues all Amazon Kinesis API errors
41
44
  # end
42
45
  #
43
46
  # See {Errors} for more information.
@@ -45,6 +48,6 @@ require_relative 'aws-sdk-kinesis/event_streams'
45
48
  # @service
46
49
  module Aws::Kinesis
47
50
 
48
- GEM_VERSION = '1.19.0'
51
+ GEM_VERSION = '1.24.1'
49
52
 
50
53
  end
@@ -23,6 +23,7 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
25
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
+ require 'aws-sdk-core/plugins/http_checksum.rb'
26
27
  require 'aws-sdk-core/plugins/invocation_id.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
@@ -52,6 +53,7 @@ module Aws::Kinesis
52
53
  add_plugin(Aws::Plugins::StubResponses)
53
54
  add_plugin(Aws::Plugins::IdempotencyToken)
54
55
  add_plugin(Aws::Plugins::JsonvalueConverter)
56
+ add_plugin(Aws::Plugins::HttpChecksum)
55
57
  add_plugin(Aws::Plugins::InvocationId)
56
58
  add_plugin(Aws::Plugins::SignatureV4)
57
59
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
@@ -88,7 +90,7 @@ module Aws::Kinesis
88
90
  # @option options [required, String] :region
89
91
  # The AWS region to connect to. The configured `:region` is
90
92
  # used to determine the service `:endpoint`. When not passed,
91
- # a default `:region` is search for in the following locations:
93
+ # a default `:region` is searched for in the following locations:
92
94
  #
93
95
  # * `Aws.config[:region]`
94
96
  # * `ENV['AWS_REGION']`
@@ -99,14 +101,24 @@ module Aws::Kinesis
99
101
  #
100
102
  # @option options [String] :access_key_id
101
103
  #
104
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
105
+ # Used only in `adaptive` retry mode. When true, the request will sleep
106
+ # until there is sufficent client side capacity to retry the request.
107
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
108
+ # not retry instead of sleeping.
109
+ #
102
110
  # @option options [Boolean] :convert_params (true)
103
111
  # When `true`, an attempt is made to coerce request parameters into
104
112
  # the required types.
105
113
  #
114
+ # @option options [Boolean] :correct_clock_skew (true)
115
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
116
+ # a clock skew correction and retry requests with skewed client clocks.
117
+ #
106
118
  # @option options [String] :endpoint
107
119
  # The client endpoint is normally constructed from the `:region`
108
120
  # option. You should only configure an `:endpoint` when connecting
109
- # to test endpoints. This should be avalid HTTP(S) URI.
121
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
110
122
  #
111
123
  # @option options [Proc] :event_stream_handler
112
124
  # 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.
@@ -124,6 +136,12 @@ module Aws::Kinesis
124
136
  # The Logger instance to send log messages to. If this option
125
137
  # is not set, logging will be disabled.
126
138
  #
139
+ # @option options [Integer] :max_attempts (3)
140
+ # An integer representing the maximum number attempts that will be made for
141
+ # a single request, including the initial attempt. For example,
142
+ # setting this value to 5 will result in a request being retried up to
143
+ # 4 times. Used in `standard` and `adaptive` retry modes.
144
+ #
127
145
  # @option options [Proc] :output_event_stream_handler
128
146
  # 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.
129
147
  #
@@ -131,11 +149,19 @@ module Aws::Kinesis
131
149
  # Used when loading credentials from the shared credentials file
132
150
  # at HOME/.aws/credentials. When not specified, 'default' is used.
133
151
  #
152
+ # @option options [Proc] :retry_backoff
153
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
154
+ # This option is only used in the `legacy` retry mode.
155
+ #
134
156
  # @option options [Float] :retry_base_delay (0.3)
135
- # The base delay in seconds used by the default backoff function.
157
+ # The base delay in seconds used by the default backoff function. This option
158
+ # is only used in the `legacy` retry mode.
136
159
  #
137
160
  # @option options [Symbol] :retry_jitter (:none)
138
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
161
+ # A delay randomiser function used by the default backoff function.
162
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
163
+ # otherwise a Proc that takes and returns a number. This option is only used
164
+ # in the `legacy` retry mode.
139
165
  #
140
166
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
141
167
  #
@@ -143,11 +169,30 @@ module Aws::Kinesis
143
169
  # The maximum number of times to retry failed requests. Only
144
170
  # ~ 500 level server errors and certain ~ 400 level client errors
145
171
  # are retried. Generally, these are throttling errors, data
146
- # checksum errors, networking errors, timeout errors and auth
147
- # errors from expired credentials.
172
+ # checksum errors, networking errors, timeout errors, auth errors,
173
+ # endpoint discovery, and errors from expired credentials.
174
+ # This option is only used in the `legacy` retry mode.
148
175
  #
149
176
  # @option options [Integer] :retry_max_delay (0)
150
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
177
+ # The maximum number of seconds to delay between retries (0 for no limit)
178
+ # used by the default backoff function. This option is only used in the
179
+ # `legacy` retry mode.
180
+ #
181
+ # @option options [String] :retry_mode ("legacy")
182
+ # Specifies which retry algorithm to use. Values are:
183
+ #
184
+ # * `legacy` - The pre-existing retry behavior. This is default value if
185
+ # no retry mode is provided.
186
+ #
187
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
188
+ # This includes support for retry quotas, which limit the number of
189
+ # unsuccessful retries a client can make.
190
+ #
191
+ # * `adaptive` - An experimental retry mode that includes all the
192
+ # functionality of `standard` mode along with automatic client side
193
+ # throttling. This is a provisional mode that may change behavior
194
+ # in the future.
195
+ #
151
196
  #
152
197
  # @option options [String] :secret_access_key
153
198
  #
@@ -473,7 +518,7 @@ module Aws::Kinesis
473
518
  http_response: Seahorse::Client::Http::AsyncResponse.new,
474
519
  config: config)
475
520
  context[:gem_name] = 'aws-sdk-kinesis'
476
- context[:gem_version] = '1.19.0'
521
+ context[:gem_version] = '1.24.1'
477
522
  Seahorse::Client::Request.new(handlers, context)
478
523
  end
479
524
 
@@ -486,8 +531,8 @@ module Aws::Kinesis
486
531
  when nil then event_stream_class.new
487
532
  else
488
533
  msg = "expected #{type}_event_stream_handler to be a block or "\
489
- "instance of Aws::Kinesis::#{event_stream_class}"\
490
- ", got `#{handler.inspect}` instead"
534
+ "instance of Aws::Kinesis::#{event_stream_class}"\
535
+ ", got `#{handler.inspect}` instead"
491
536
  raise ArgumentError, msg
492
537
  end
493
538
  end
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
30
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
@@ -31,6 +32,18 @@ require 'aws-sdk-core/plugins/event_stream_configuration.rb'
31
32
  Aws::Plugins::GlobalConfiguration.add_identifier(:kinesis)
32
33
 
33
34
  module Aws::Kinesis
35
+ # An API client for Kinesis. To construct a client, you need to configure a `:region` and `:credentials`.
36
+ #
37
+ # client = Aws::Kinesis::Client.new(
38
+ # region: region_name,
39
+ # credentials: credentials,
40
+ # # ...
41
+ # )
42
+ #
43
+ # For details on configuring region and credentials see
44
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
45
+ #
46
+ # See {#initialize} for a full list of supported configuration options.
34
47
  class Client < Seahorse::Client::Base
35
48
 
36
49
  include Aws::ClientStubs
@@ -58,6 +71,7 @@ module Aws::Kinesis
58
71
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
59
72
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
60
73
  add_plugin(Aws::Plugins::TransferEncoding)
74
+ add_plugin(Aws::Plugins::HttpChecksum)
61
75
  add_plugin(Aws::Plugins::SignatureV4)
62
76
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
63
77
  add_plugin(Aws::Plugins::EventStreamConfiguration)
@@ -95,7 +109,7 @@ module Aws::Kinesis
95
109
  # @option options [required, String] :region
96
110
  # The AWS region to connect to. The configured `:region` is
97
111
  # used to determine the service `:endpoint`. When not passed,
98
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
99
113
  #
100
114
  # * `Aws.config[:region]`
101
115
  # * `ENV['AWS_REGION']`
@@ -110,6 +124,12 @@ module Aws::Kinesis
110
124
  # When set to `true`, a thread polling for endpoints will be running in
111
125
  # the background every 60 secs (default). Defaults to `false`.
112
126
  #
127
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
128
+ # Used only in `adaptive` retry mode. When true, the request will sleep
129
+ # until there is sufficent client side capacity to retry the request.
130
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
131
+ # not retry instead of sleeping.
132
+ #
113
133
  # @option options [Boolean] :client_side_monitoring (false)
114
134
  # When `true`, client-side metrics will be collected for all API requests from
115
135
  # this client.
@@ -134,6 +154,10 @@ module Aws::Kinesis
134
154
  # When `true`, an attempt is made to coerce request parameters into
135
155
  # the required types.
136
156
  #
157
+ # @option options [Boolean] :correct_clock_skew (true)
158
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
159
+ # a clock skew correction and retry requests with skewed client clocks.
160
+ #
137
161
  # @option options [Boolean] :disable_host_prefix_injection (false)
138
162
  # Set to true to disable SDK automatically adding host prefix
139
163
  # to default service endpoint when available.
@@ -141,7 +165,7 @@ module Aws::Kinesis
141
165
  # @option options [String] :endpoint
142
166
  # The client endpoint is normally constructed from the `:region`
143
167
  # option. You should only configure an `:endpoint` when connecting
144
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
145
169
  #
146
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
147
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -156,7 +180,7 @@ module Aws::Kinesis
156
180
  # requests fetching endpoints information. Defaults to 60 sec.
157
181
  #
158
182
  # @option options [Boolean] :endpoint_discovery (false)
159
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
160
184
  #
161
185
  # @option options [Proc] :event_stream_handler
162
186
  # 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.
@@ -174,6 +198,12 @@ module Aws::Kinesis
174
198
  # The Logger instance to send log messages to. If this option
175
199
  # is not set, logging will be disabled.
176
200
  #
201
+ # @option options [Integer] :max_attempts (3)
202
+ # An integer representing the maximum number attempts that will be made for
203
+ # a single request, including the initial attempt. For example,
204
+ # setting this value to 5 will result in a request being retried up to
205
+ # 4 times. Used in `standard` and `adaptive` retry modes.
206
+ #
177
207
  # @option options [Proc] :output_event_stream_handler
178
208
  # 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.
179
209
  #
@@ -181,11 +211,19 @@ module Aws::Kinesis
181
211
  # Used when loading credentials from the shared credentials file
182
212
  # at HOME/.aws/credentials. When not specified, 'default' is used.
183
213
  #
214
+ # @option options [Proc] :retry_backoff
215
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
216
+ # This option is only used in the `legacy` retry mode.
217
+ #
184
218
  # @option options [Float] :retry_base_delay (0.3)
185
- # The base delay in seconds used by the default backoff function.
219
+ # The base delay in seconds used by the default backoff function. This option
220
+ # is only used in the `legacy` retry mode.
186
221
  #
187
222
  # @option options [Symbol] :retry_jitter (:none)
188
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
223
+ # A delay randomiser function used by the default backoff function.
224
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
225
+ # otherwise a Proc that takes and returns a number. This option is only used
226
+ # in the `legacy` retry mode.
189
227
  #
190
228
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
191
229
  #
@@ -193,11 +231,30 @@ module Aws::Kinesis
193
231
  # The maximum number of times to retry failed requests. Only
194
232
  # ~ 500 level server errors and certain ~ 400 level client errors
195
233
  # are retried. Generally, these are throttling errors, data
196
- # checksum errors, networking errors, timeout errors and auth
197
- # errors from expired credentials.
234
+ # checksum errors, networking errors, timeout errors, auth errors,
235
+ # endpoint discovery, and errors from expired credentials.
236
+ # This option is only used in the `legacy` retry mode.
198
237
  #
199
238
  # @option options [Integer] :retry_max_delay (0)
200
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
239
+ # The maximum number of seconds to delay between retries (0 for no limit)
240
+ # used by the default backoff function. This option is only used in the
241
+ # `legacy` retry mode.
242
+ #
243
+ # @option options [String] :retry_mode ("legacy")
244
+ # Specifies which retry algorithm to use. Values are:
245
+ #
246
+ # * `legacy` - The pre-existing retry behavior. This is default value if
247
+ # no retry mode is provided.
248
+ #
249
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
250
+ # This includes support for retry quotas, which limit the number of
251
+ # unsuccessful retries a client can make.
252
+ #
253
+ # * `adaptive` - An experimental retry mode that includes all the
254
+ # functionality of `standard` mode along with automatic client side
255
+ # throttling. This is a provisional mode that may change behavior
256
+ # in the future.
257
+ #
201
258
  #
202
259
  # @option options [String] :secret_access_key
203
260
  #
@@ -230,16 +287,15 @@ module Aws::Kinesis
230
287
  # requests through. Formatted like 'http://proxy.com:123'.
231
288
  #
232
289
  # @option options [Float] :http_open_timeout (15) The number of
233
- # seconds to wait when opening a HTTP session before rasing a
290
+ # seconds to wait when opening a HTTP session before raising a
234
291
  # `Timeout::Error`.
235
292
  #
236
293
  # @option options [Integer] :http_read_timeout (60) The default
237
294
  # number of seconds to wait for response data. This value can
238
- # safely be set
239
- # per-request on the session yeidled by {#session_for}.
295
+ # safely be set per-request on the session.
240
296
  #
241
297
  # @option options [Float] :http_idle_timeout (5) The number of
242
- # seconds a connection is allowed to sit idble before it is
298
+ # seconds a connection is allowed to sit idle before it is
243
299
  # considered stale. Stale connections are closed and removed
244
300
  # from the pool before making a request.
245
301
  #
@@ -248,7 +304,7 @@ module Aws::Kinesis
248
304
  # request body. This option has no effect unless the request has
249
305
  # "Expect" header set to "100-continue". Defaults to `nil` which
250
306
  # disables this behaviour. This value can safely be set per
251
- # request on the session yeidled by {#session_for}.
307
+ # request on the session.
252
308
  #
253
309
  # @option options [Boolean] :http_wire_trace (false) When `true`,
254
310
  # HTTP debug output will be sent to the `:logger`.
@@ -589,6 +645,8 @@ module Aws::Kinesis
589
645
  #
590
646
  # * {Types::DescribeStreamOutput#stream_description #stream_description} => Types::StreamDescription
591
647
  #
648
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
649
+ #
592
650
  # @example Request syntax with placeholder values
593
651
  #
594
652
  # resp = client.describe_stream({
@@ -619,6 +677,12 @@ module Aws::Kinesis
619
677
  # resp.stream_description.encryption_type #=> String, one of "NONE", "KMS"
620
678
  # resp.stream_description.key_id #=> String
621
679
  #
680
+ #
681
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
682
+ #
683
+ # * stream_exists
684
+ # * stream_not_exists
685
+ #
622
686
  # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/DescribeStream AWS API Documentation
623
687
  #
624
688
  # @overload describe_stream(params = {})
@@ -1298,6 +1362,8 @@ module Aws::Kinesis
1298
1362
  # * {Types::ListStreamConsumersOutput#consumers #consumers} => Array&lt;Types::Consumer&gt;
1299
1363
  # * {Types::ListStreamConsumersOutput#next_token #next_token} => String
1300
1364
  #
1365
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1366
+ #
1301
1367
  # @example Request syntax with placeholder values
1302
1368
  #
1303
1369
  # resp = client.list_stream_consumers({
@@ -1355,6 +1421,8 @@ module Aws::Kinesis
1355
1421
  # * {Types::ListStreamsOutput#stream_names #stream_names} => Array&lt;String&gt;
1356
1422
  # * {Types::ListStreamsOutput#has_more_streams #has_more_streams} => Boolean
1357
1423
  #
1424
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1425
+ #
1358
1426
  # @example Request syntax with placeholder values
1359
1427
  #
1360
1428
  # resp = client.list_streams({
@@ -2133,7 +2201,7 @@ module Aws::Kinesis
2133
2201
  params: params,
2134
2202
  config: config)
2135
2203
  context[:gem_name] = 'aws-sdk-kinesis'
2136
- context[:gem_version] = '1.19.0'
2204
+ context[:gem_version] = '1.24.1'
2137
2205
  Seahorse::Client::Request.new(handlers, context)
2138
2206
  end
2139
2207
 
@@ -2199,10 +2267,10 @@ module Aws::Kinesis
2199
2267
  # The following table lists the valid waiter names, the operations they call,
2200
2268
  # and the default `:delay` and `:max_attempts` values.
2201
2269
  #
2202
- # | waiter_name | params | :delay | :max_attempts |
2203
- # | ----------------- | ------------------ | -------- | ------------- |
2204
- # | stream_exists | {#describe_stream} | 10 | 18 |
2205
- # | stream_not_exists | {#describe_stream} | 10 | 18 |
2270
+ # | waiter_name | params | :delay | :max_attempts |
2271
+ # | ----------------- | ------------------------ | -------- | ------------- |
2272
+ # | stream_exists | {Client#describe_stream} | 10 | 18 |
2273
+ # | stream_not_exists | {Client#describe_stream} | 10 | 18 |
2206
2274
  #
2207
2275
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
2208
2276
  # because the waiter has entered a state that it will not transition
@@ -6,6 +6,33 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Kinesis
9
+
10
+ # When Kinesis returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Kinesis::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Kinesis errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Kinesis::Errors::ServiceError
18
+ # # rescues all Kinesis API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {ExpiredIteratorException}
29
+ # * {ExpiredNextTokenException}
30
+ # * {InvalidArgumentException}
31
+ # * {LimitExceededException}
32
+ # * {ProvisionedThroughputExceededException}
33
+ #
34
+ # Additionally, error classes are dynamically generated for service errors based on the error code
35
+ # if they are not defined above.
9
36
  module Errors
10
37
 
11
38
  extend Aws::Errors::DynamicErrors
@@ -23,7 +50,6 @@ module Aws::Kinesis
23
50
  def message
24
51
  @message || @data[:message]
25
52
  end
26
-
27
53
  end
28
54
 
29
55
  class ExpiredNextTokenException < ServiceError
@@ -39,7 +65,6 @@ module Aws::Kinesis
39
65
  def message
40
66
  @message || @data[:message]
41
67
  end
42
-
43
68
  end
44
69
 
45
70
  class InvalidArgumentException < ServiceError
@@ -55,7 +80,6 @@ module Aws::Kinesis
55
80
  def message
56
81
  @message || @data[:message]
57
82
  end
58
-
59
83
  end
60
84
 
61
85
  class LimitExceededException < ServiceError
@@ -71,7 +95,6 @@ module Aws::Kinesis
71
95
  def message
72
96
  @message || @data[:message]
73
97
  end
74
-
75
98
  end
76
99
 
77
100
  class ProvisionedThroughputExceededException < ServiceError
@@ -87,7 +110,6 @@ module Aws::Kinesis
87
110
  def message
88
111
  @message || @data[:message]
89
112
  end
90
-
91
113
  end
92
114
 
93
115
  end
@@ -61,6 +61,10 @@ module Aws::Kinesis
61
61
  @event_emitter.on(:initial_response, block) if block_given?
62
62
  end
63
63
 
64
+ def on_unknown_event(&block)
65
+ @event_emitter.on(:unknown_event, block) if block_given?
66
+ end
67
+
64
68
  def on_event(&block)
65
69
  on_subscribe_to_shard_event_event(&block)
66
70
  on_resource_not_found_exception_event(&block)
@@ -74,6 +78,7 @@ module Aws::Kinesis
74
78
  on_internal_failure_exception_event(&block)
75
79
  on_error_event(&block)
76
80
  on_initial_response_event(&block)
81
+ on_unknown_event(&block)
77
82
  end
78
83
 
79
84
  # @api private
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Kinesis
9
+
9
10
  class Resource
10
11
 
11
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.19.0
4
+ version: 1.24.1
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: 2019-07-25 00:00:00.000000000 Z
11
+ date: 2020-06-11 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.61.1
22
+ version: 3.99.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.61.1
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -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.5.2.3
87
+ rubygems_version: 2.7.6.2
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: AWS SDK for Ruby - Kinesis