aws-sdk-transcribestreamingservice 1.10.0 → 1.11.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: 672db609cc865f00aeff552833b39bfa124e9e34
4
- data.tar.gz: e12e43f441a4bf83bd112c3e1aa3e6050aa3fbb3
3
+ metadata.gz: 4f5ef52d2d82670a40c0bdabd0983c72caf6df00
4
+ data.tar.gz: 41d80ba82ac6dd27f40e179a921a3f8fbb5bb453
5
5
  SHA512:
6
- metadata.gz: 2de8ef068708687512e5886ee077bd87bfb8c7bd666c682462fa1043ba6e11f3b9870066ed8f6518dbf7d9eacd42e8c53af4ab33f32051f1c06cd162357f8847
7
- data.tar.gz: 3874ebfe2c865d0dc871e2f1c202c63fc1483bddad1ad85bcb5e439339e1b99e563eb6a573f4ad5dc33b9da5b1c9b1b1927ba5ba283db6fa7a951cff355cc537
6
+ metadata.gz: c21c911802cfee7c95c2aa574d0d0824ee4a0f39c1f59f878e12e8cf982a6cb06210611be33319fd2302bd50ec40cef922e0fdf74ca7f827948ad86ad970f127
7
+ data.tar.gz: 9dfffaf787a2132265c04804373ecb7a32002f7be511eebdcf4b67e58ca2064b3f91a2a57b46aadd4b7fb819847643242517c12a88e5ad70ef6ec6f474fd6e7f
@@ -26,17 +26,20 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
26
26
  # methods each accept a hash of request parameters and return a response
27
27
  # structure.
28
28
  #
29
+ # transcribe_streaming_service = Aws::TranscribeStreamingService::Client.new
30
+ # resp = transcribe_streaming_service.start_stream_transcription(params)
31
+ #
29
32
  # See {Client} for more information.
30
33
  #
31
34
  # # Errors
32
35
  #
33
- # Errors returned from Amazon Transcribe Streaming Service all
34
- # extend {Errors::ServiceError}.
36
+ # Errors returned from Amazon Transcribe Streaming Service are defined in the
37
+ # {Errors} module and all extend {Errors::ServiceError}.
35
38
  #
36
39
  # begin
37
40
  # # do stuff
38
41
  # rescue Aws::TranscribeStreamingService::Errors::ServiceError
39
- # # rescues all service API errors
42
+ # # rescues all Amazon Transcribe Streaming Service API errors
40
43
  # end
41
44
  #
42
45
  # See {Errors} for more information.
@@ -44,6 +47,6 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
44
47
  # @service
45
48
  module Aws::TranscribeStreamingService
46
49
 
47
- GEM_VERSION = '1.10.0'
50
+ GEM_VERSION = '1.11.0'
48
51
 
49
52
  end
@@ -99,10 +99,20 @@ module Aws::TranscribeStreamingService
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::TranscribeStreamingService
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::TranscribeStreamingService
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::TranscribeStreamingService
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
  #
@@ -401,7 +440,7 @@ module Aws::TranscribeStreamingService
401
440
  http_response: Seahorse::Client::Http::AsyncResponse.new,
402
441
  config: config)
403
442
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
404
- context[:gem_version] = '1.10.0'
443
+ context[:gem_version] = '1.11.0'
405
444
  Seahorse::Client::Request.new(handlers, context)
406
445
  end
407
446
 
@@ -31,6 +31,18 @@ require 'aws-sdk-core/plugins/event_stream_configuration.rb'
31
31
  Aws::Plugins::GlobalConfiguration.add_identifier(:transcribestreamingservice)
32
32
 
33
33
  module Aws::TranscribeStreamingService
34
+ # An API client for TranscribeStreamingService. To construct a client, you need to configure a `:region` and `:credentials`.
35
+ #
36
+ # client = Aws::TranscribeStreamingService::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::TranscribeStreamingService
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::TranscribeStreamingService
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::TranscribeStreamingService
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::TranscribeStreamingService
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::TranscribeStreamingService
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
  #
@@ -220,16 +271,16 @@ module Aws::TranscribeStreamingService
220
271
  # requests through. Formatted like 'http://proxy.com:123'.
221
272
  #
222
273
  # @option options [Float] :http_open_timeout (15) The number of
223
- # seconds to wait when opening a HTTP session before rasing a
274
+ # seconds to wait when opening a HTTP session before raising a
224
275
  # `Timeout::Error`.
225
276
  #
226
277
  # @option options [Integer] :http_read_timeout (60) The default
227
278
  # number of seconds to wait for response data. This value can
228
279
  # safely be set
229
- # per-request on the session yeidled by {#session_for}.
280
+ # per-request on the session yielded by {#session_for}.
230
281
  #
231
282
  # @option options [Float] :http_idle_timeout (5) The number of
232
- # seconds a connection is allowed to sit idble before it is
283
+ # seconds a connection is allowed to sit idle before it is
233
284
  # considered stale. Stale connections are closed and removed
234
285
  # from the pool before making a request.
235
286
  #
@@ -238,7 +289,7 @@ module Aws::TranscribeStreamingService
238
289
  # request body. This option has no effect unless the request has
239
290
  # "Expect" header set to "100-continue". Defaults to `nil` which
240
291
  # disables this behaviour. This value can safely be set per
241
- # request on the session yeidled by {#session_for}.
292
+ # request on the session yielded by {#session_for}.
242
293
  #
243
294
  # @option options [Boolean] :http_wire_trace (false) When `true`,
244
295
  # HTTP debug output will be sent to the `:logger`.
@@ -278,7 +329,7 @@ module Aws::TranscribeStreamingService
278
329
  params: params,
279
330
  config: config)
280
331
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
281
- context[:gem_version] = '1.10.0'
332
+ context[:gem_version] = '1.11.0'
282
333
  Seahorse::Client::Request.new(handlers, context)
283
334
  end
284
335
 
@@ -6,6 +6,28 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::TranscribeStreamingService
9
+
10
+ # When TranscribeStreamingService returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::TranscribeStreamingService::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all TranscribeStreamingService errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::TranscribeStreamingService::Errors::ServiceError
18
+ # # rescues all TranscribeStreamingService 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
+ #
29
+ # Additionally, error classes are dynamically generated for service errors based on the error code
30
+ # if they are not defined above.
9
31
  module Errors
10
32
 
11
33
  extend Aws::Errors::DynamicErrors
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::TranscribeStreamingService
9
+ # This class provides a resource oriented interface for TranscribeStreamingService.
10
+ # To create a resource object:
11
+ # resource = Aws::TranscribeStreamingService::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::TranscribeStreamingService::Client.new(region: 'us-west-2')
15
+ # resource = Aws::TranscribeStreamingService::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-transcribestreamingservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.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-11-05 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