aws-sdk-kinesis 1.20.0 → 1.21.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
  SHA1:
3
- metadata.gz: 1fcc49ab7165c4444e42bb53909535b99896f444
4
- data.tar.gz: 2396c0bd3e7bebebaf4c17a6a855e1e4bff24d43
3
+ metadata.gz: 16fc2f718c441ad022ba4bce8849076c0bf400e0
4
+ data.tar.gz: 313a191dbdaab09d51fe89db039e92caa54be7c2
5
5
  SHA512:
6
- metadata.gz: c4dd532d025066ecebf457090c26f395c9d8249234f1722220d1106280612fe706f653577045186253e1b753503ab8a473a749ca2fdc57591999d053ec5e42c2
7
- data.tar.gz: c3b91f2e487d90797f9661a640cd3891276bf053c81be833995e6189d016fb130db7cb2dba78044cc2ff7398d18ea07a7c36c7f6ea59dd649f3058d1671739ae
6
+ metadata.gz: 26ac9871e938b5463a539ebfa0f12c0df7fa5346e08a0abbd56a471530e793dc81f702dc36f03afc834a15cad168b27d1a6a245ced54498a1abacb6e1fe2f09c
7
+ data.tar.gz: 555cefc3860e47c67ca52628f887511031a44b1b42b1c8657960888cab5e677caa7e7aabf744969ea2ec2e567861e78da62e843a259b154ac678f2ba3f52da4f
@@ -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.20.0'
51
+ GEM_VERSION = '1.21.0'
49
52
 
50
53
  end
@@ -99,10 +99,20 @@ module Aws::Kinesis
99
99
  #
100
100
  # @option options [String] :access_key_id
101
101
  #
102
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
103
+ # Used only in `adaptive` retry mode. When true, the request will sleep
104
+ # until there is sufficent client side capacity to retry the request.
105
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
106
+ # not retry instead of sleeping.
107
+ #
102
108
  # @option options [Boolean] :convert_params (true)
103
109
  # When `true`, an attempt is made to coerce request parameters into
104
110
  # the required types.
105
111
  #
112
+ # @option options [Boolean] :correct_clock_skew (true)
113
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
114
+ # a clock skew correction and retry requests with skewed client clocks.
115
+ #
106
116
  # @option options [String] :endpoint
107
117
  # The client endpoint is normally constructed from the `:region`
108
118
  # option. You should only configure an `:endpoint` when connecting
@@ -124,6 +134,12 @@ module Aws::Kinesis
124
134
  # The Logger instance to send log messages to. If this option
125
135
  # is not set, logging will be disabled.
126
136
  #
137
+ # @option options [Integer] :max_attempts (3)
138
+ # An integer representing the maximum number attempts that will be made for
139
+ # a single request, including the initial attempt. For example,
140
+ # setting this value to 5 will result in a request being retried up to
141
+ # 4 times. Used in `standard` and `adaptive` retry modes.
142
+ #
127
143
  # @option options [Proc] :output_event_stream_handler
128
144
  # 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
145
  #
@@ -131,11 +147,19 @@ module Aws::Kinesis
131
147
  # Used when loading credentials from the shared credentials file
132
148
  # at HOME/.aws/credentials. When not specified, 'default' is used.
133
149
  #
150
+ # @option options [Proc] :retry_backoff
151
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
152
+ # This option is only used in the `legacy` retry mode.
153
+ #
134
154
  # @option options [Float] :retry_base_delay (0.3)
135
- # The base delay in seconds used by the default backoff function.
155
+ # The base delay in seconds used by the default backoff function. This option
156
+ # is only used in the `legacy` retry mode.
136
157
  #
137
158
  # @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.
159
+ # A delay randomiser function used by the default backoff function.
160
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
161
+ # otherwise a Proc that takes and returns a number. This option is only used
162
+ # in the `legacy` retry mode.
139
163
  #
140
164
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
141
165
  #
@@ -143,11 +167,26 @@ module Aws::Kinesis
143
167
  # The maximum number of times to retry failed requests. Only
144
168
  # ~ 500 level server errors and certain ~ 400 level client errors
145
169
  # are retried. Generally, these are throttling errors, data
146
- # checksum errors, networking errors, timeout errors and auth
147
- # errors from expired credentials.
170
+ # checksum errors, networking errors, timeout errors, auth errors,
171
+ # endpoint discovery, and errors from expired credentials.
172
+ # This option is only used in the `legacy` retry mode.
148
173
  #
149
174
  # @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.
175
+ # The maximum number of seconds to delay between retries (0 for no limit)
176
+ # used by the default backoff function. This option is only used in the
177
+ # `legacy` retry mode.
178
+ #
179
+ # @option options [String] :retry_mode ("legacy")
180
+ # Specifies which retry algorithm to use. Values are:
181
+ # * `legacy` - The pre-existing retry behavior. This is default value if
182
+ # no retry mode is provided.
183
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
184
+ # This includes support for retry quotas, which limit the number of
185
+ # unsuccessful retries a client can make.
186
+ # * `adaptive` - An experimental retry mode that includes all the
187
+ # functionality of `standard` mode along with automatic client side
188
+ # throttling. This is a provisional mode that may change behavior
189
+ # in the future.
151
190
  #
152
191
  # @option options [String] :secret_access_key
153
192
  #
@@ -473,7 +512,7 @@ module Aws::Kinesis
473
512
  http_response: Seahorse::Client::Http::AsyncResponse.new,
474
513
  config: config)
475
514
  context[:gem_name] = 'aws-sdk-kinesis'
476
- context[:gem_version] = '1.20.0'
515
+ context[:gem_version] = '1.21.0'
477
516
  Seahorse::Client::Request.new(handlers, context)
478
517
  end
479
518
 
@@ -31,6 +31,18 @@ require 'aws-sdk-core/plugins/event_stream_configuration.rb'
31
31
  Aws::Plugins::GlobalConfiguration.add_identifier(:kinesis)
32
32
 
33
33
  module Aws::Kinesis
34
+ # An API client for Kinesis. To construct a client, you need to configure a `:region` and `:credentials`.
35
+ #
36
+ # client = Aws::Kinesis::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
41
+ #
42
+ # For details on configuring region and credentials see
43
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
44
+ #
45
+ # See {#initialize} for a full list of supported configuration options.
34
46
  class Client < Seahorse::Client::Base
35
47
 
36
48
  include Aws::ClientStubs
@@ -110,6 +122,12 @@ module Aws::Kinesis
110
122
  # When set to `true`, a thread polling for endpoints will be running in
111
123
  # the background every 60 secs (default). Defaults to `false`.
112
124
  #
125
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
126
+ # Used only in `adaptive` retry mode. When true, the request will sleep
127
+ # until there is sufficent client side capacity to retry the request.
128
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
129
+ # not retry instead of sleeping.
130
+ #
113
131
  # @option options [Boolean] :client_side_monitoring (false)
114
132
  # When `true`, client-side metrics will be collected for all API requests from
115
133
  # this client.
@@ -134,6 +152,10 @@ module Aws::Kinesis
134
152
  # When `true`, an attempt is made to coerce request parameters into
135
153
  # the required types.
136
154
  #
155
+ # @option options [Boolean] :correct_clock_skew (true)
156
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
157
+ # a clock skew correction and retry requests with skewed client clocks.
158
+ #
137
159
  # @option options [Boolean] :disable_host_prefix_injection (false)
138
160
  # Set to true to disable SDK automatically adding host prefix
139
161
  # to default service endpoint when available.
@@ -174,6 +196,12 @@ module Aws::Kinesis
174
196
  # The Logger instance to send log messages to. If this option
175
197
  # is not set, logging will be disabled.
176
198
  #
199
+ # @option options [Integer] :max_attempts (3)
200
+ # An integer representing the maximum number attempts that will be made for
201
+ # a single request, including the initial attempt. For example,
202
+ # setting this value to 5 will result in a request being retried up to
203
+ # 4 times. Used in `standard` and `adaptive` retry modes.
204
+ #
177
205
  # @option options [Proc] :output_event_stream_handler
178
206
  # 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
207
  #
@@ -181,11 +209,19 @@ module Aws::Kinesis
181
209
  # Used when loading credentials from the shared credentials file
182
210
  # at HOME/.aws/credentials. When not specified, 'default' is used.
183
211
  #
212
+ # @option options [Proc] :retry_backoff
213
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
214
+ # This option is only used in the `legacy` retry mode.
215
+ #
184
216
  # @option options [Float] :retry_base_delay (0.3)
185
- # The base delay in seconds used by the default backoff function.
217
+ # The base delay in seconds used by the default backoff function. This option
218
+ # is only used in the `legacy` retry mode.
186
219
  #
187
220
  # @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.
221
+ # A delay randomiser function used by the default backoff function.
222
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
223
+ # otherwise a Proc that takes and returns a number. This option is only used
224
+ # in the `legacy` retry mode.
189
225
  #
190
226
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
191
227
  #
@@ -193,11 +229,26 @@ module Aws::Kinesis
193
229
  # The maximum number of times to retry failed requests. Only
194
230
  # ~ 500 level server errors and certain ~ 400 level client errors
195
231
  # are retried. Generally, these are throttling errors, data
196
- # checksum errors, networking errors, timeout errors and auth
197
- # errors from expired credentials.
232
+ # checksum errors, networking errors, timeout errors, auth errors,
233
+ # endpoint discovery, and errors from expired credentials.
234
+ # This option is only used in the `legacy` retry mode.
198
235
  #
199
236
  # @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.
237
+ # The maximum number of seconds to delay between retries (0 for no limit)
238
+ # used by the default backoff function. This option is only used in the
239
+ # `legacy` retry mode.
240
+ #
241
+ # @option options [String] :retry_mode ("legacy")
242
+ # Specifies which retry algorithm to use. Values are:
243
+ # * `legacy` - The pre-existing retry behavior. This is default value if
244
+ # no retry mode is provided.
245
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
246
+ # This includes support for retry quotas, which limit the number of
247
+ # unsuccessful retries a client can make.
248
+ # * `adaptive` - An experimental retry mode that includes all the
249
+ # functionality of `standard` mode along with automatic client side
250
+ # throttling. This is a provisional mode that may change behavior
251
+ # in the future.
201
252
  #
202
253
  # @option options [String] :secret_access_key
203
254
  #
@@ -230,16 +281,16 @@ module Aws::Kinesis
230
281
  # requests through. Formatted like 'http://proxy.com:123'.
231
282
  #
232
283
  # @option options [Float] :http_open_timeout (15) The number of
233
- # seconds to wait when opening a HTTP session before rasing a
284
+ # seconds to wait when opening a HTTP session before raising a
234
285
  # `Timeout::Error`.
235
286
  #
236
287
  # @option options [Integer] :http_read_timeout (60) The default
237
288
  # number of seconds to wait for response data. This value can
238
289
  # safely be set
239
- # per-request on the session yeidled by {#session_for}.
290
+ # per-request on the session yielded by {#session_for}.
240
291
  #
241
292
  # @option options [Float] :http_idle_timeout (5) The number of
242
- # seconds a connection is allowed to sit idble before it is
293
+ # seconds a connection is allowed to sit idle before it is
243
294
  # considered stale. Stale connections are closed and removed
244
295
  # from the pool before making a request.
245
296
  #
@@ -248,7 +299,7 @@ module Aws::Kinesis
248
299
  # request body. This option has no effect unless the request has
249
300
  # "Expect" header set to "100-continue". Defaults to `nil` which
250
301
  # disables this behaviour. This value can safely be set per
251
- # request on the session yeidled by {#session_for}.
302
+ # request on the session yielded by {#session_for}.
252
303
  #
253
304
  # @option options [Boolean] :http_wire_trace (false) When `true`,
254
305
  # HTTP debug output will be sent to the `:logger`.
@@ -2133,7 +2184,7 @@ module Aws::Kinesis
2133
2184
  params: params,
2134
2185
  config: config)
2135
2186
  context[:gem_name] = 'aws-sdk-kinesis'
2136
- context[:gem_version] = '1.20.0'
2187
+ context[:gem_version] = '1.21.0'
2137
2188
  Seahorse::Client::Request.new(handlers, context)
2138
2189
  end
2139
2190
 
@@ -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
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Kinesis
9
+ # This class provides a resource oriented interface for Kinesis.
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
  class Resource
10
17
 
11
18
  # @param options ({})
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.20.0
4
+ version: 1.21.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: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core