aws-sdk-iot 1.43.0 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35c4d68caee200920750438cdc100d7c90c2fd11
4
- data.tar.gz: 626f1be829b15a8d877ebff6f4b845367d3e3f5d
3
+ metadata.gz: 5d30f89c1b982493fd7e12e0ea0cde7cf431f145
4
+ data.tar.gz: 4265b0081e333123c8aefddf815c6943bd943182
5
5
  SHA512:
6
- metadata.gz: 95dd1a99540929f449baa73089ef451e3d542a69ad623508b4439f307b1ba8e363ecb989bdd66ad40a5f608fb8008e66e4890cbcdf93171d2d3aa3bea6d9b98f
7
- data.tar.gz: f3537f4818a0afecd48921bbb877fc2fcf40fc414d0f2f65afb0782d36caf26f04f0307176e1df99e650aabf61a954dcc82f755b400bd5334ed45d5682af4ae0
6
+ metadata.gz: b41409a17b8e4c4531d7a9c19ce6567ec5b09fedef79343ee5894599d78e20540e7cbf23034444250d5413a647390bde5e7c7538ae2017e8323727b9b3389a26
7
+ data.tar.gz: d14ed2322fbab57d4360552339787a84e15b8c5ab52288cee7a99779cbb03d8485e2ec1d8de28b32ae707115167842e6a4185ae66988bb9d1b4005238ee0a80f
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-iot/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # io_t = Aws::IoT::Client.new
28
+ # resp = io_t.accept_certificate_transfer(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from AWS IoT all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from AWS IoT are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::IoT::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all AWS IoT API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-iot/customizations'
42
45
  # @service
43
46
  module Aws::IoT
44
47
 
45
- GEM_VERSION = '1.43.0'
48
+ GEM_VERSION = '1.44.0'
46
49
 
47
50
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:iot)
31
31
 
32
32
  module Aws::IoT
33
+ # An API client for IoT. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::IoT::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -108,6 +120,12 @@ module Aws::IoT
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::IoT
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -166,15 +188,29 @@ module Aws::IoT
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @option options [Symbol] :retry_jitter (:none)
177
- # 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.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,26 @@ module Aws::IoT
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ # * `legacy` - The pre-existing retry behavior. This is default value if
233
+ # no retry mode is provided.
234
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
+ # This includes support for retry quotas, which limit the number of
236
+ # unsuccessful retries a client can make.
237
+ # * `adaptive` - An experimental retry mode that includes all the
238
+ # functionality of `standard` mode along with automatic client side
239
+ # throttling. This is a provisional mode that may change behavior
240
+ # in the future.
190
241
  #
191
242
  # @option options [String] :secret_access_key
192
243
  #
@@ -209,16 +260,16 @@ module Aws::IoT
209
260
  # requests through. Formatted like 'http://proxy.com:123'.
210
261
  #
211
262
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
263
+ # seconds to wait when opening a HTTP session before raising a
213
264
  # `Timeout::Error`.
214
265
  #
215
266
  # @option options [Integer] :http_read_timeout (60) The default
216
267
  # number of seconds to wait for response data. This value can
217
268
  # safely be set
218
- # per-request on the session yeidled by {#session_for}.
269
+ # per-request on the session yielded by {#session_for}.
219
270
  #
220
271
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
272
+ # seconds a connection is allowed to sit idle before it is
222
273
  # considered stale. Stale connections are closed and removed
223
274
  # from the pool before making a request.
224
275
  #
@@ -227,7 +278,7 @@ module Aws::IoT
227
278
  # request body. This option has no effect unless the request has
228
279
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
280
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
281
+ # request on the session yielded by {#session_for}.
231
282
  #
232
283
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
284
  # HTTP debug output will be sent to the `:logger`.
@@ -9410,7 +9461,7 @@ module Aws::IoT
9410
9461
  params: params,
9411
9462
  config: config)
9412
9463
  context[:gem_name] = 'aws-sdk-iot'
9413
- context[:gem_version] = '1.43.0'
9464
+ context[:gem_version] = '1.44.0'
9414
9465
  Seahorse::Client::Request.new(handlers, context)
9415
9466
  end
9416
9467
 
@@ -6,6 +6,57 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IoT
9
+
10
+ # When IoT returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::IoT::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all IoT errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::IoT::Errors::ServiceError
18
+ # # rescues all IoT 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
+ # * {CertificateConflictException}
29
+ # * {CertificateStateException}
30
+ # * {CertificateValidationException}
31
+ # * {ConflictingResourceUpdateException}
32
+ # * {DeleteConflictException}
33
+ # * {IndexNotReadyException}
34
+ # * {InternalException}
35
+ # * {InternalFailureException}
36
+ # * {InvalidAggregationException}
37
+ # * {InvalidQueryException}
38
+ # * {InvalidRequestException}
39
+ # * {InvalidResponseException}
40
+ # * {InvalidStateTransitionException}
41
+ # * {LimitExceededException}
42
+ # * {MalformedPolicyException}
43
+ # * {NotConfiguredException}
44
+ # * {RegistrationCodeValidationException}
45
+ # * {ResourceAlreadyExistsException}
46
+ # * {ResourceNotFoundException}
47
+ # * {ResourceRegistrationFailureException}
48
+ # * {ServiceUnavailableException}
49
+ # * {SqlParseException}
50
+ # * {TaskAlreadyExistsException}
51
+ # * {ThrottlingException}
52
+ # * {TransferAlreadyCompletedException}
53
+ # * {TransferConflictException}
54
+ # * {UnauthorizedException}
55
+ # * {VersionConflictException}
56
+ # * {VersionsLimitExceededException}
57
+ #
58
+ # Additionally, error classes are dynamically generated for service errors based on the error code
59
+ # if they are not defined above.
9
60
  module Errors
10
61
 
11
62
  extend Aws::Errors::DynamicErrors
@@ -23,7 +74,6 @@ module Aws::IoT
23
74
  def message
24
75
  @message || @data[:message]
25
76
  end
26
-
27
77
  end
28
78
 
29
79
  class CertificateStateException < ServiceError
@@ -39,7 +89,6 @@ module Aws::IoT
39
89
  def message
40
90
  @message || @data[:message]
41
91
  end
42
-
43
92
  end
44
93
 
45
94
  class CertificateValidationException < ServiceError
@@ -55,7 +104,6 @@ module Aws::IoT
55
104
  def message
56
105
  @message || @data[:message]
57
106
  end
58
-
59
107
  end
60
108
 
61
109
  class ConflictingResourceUpdateException < ServiceError
@@ -71,7 +119,6 @@ module Aws::IoT
71
119
  def message
72
120
  @message || @data[:message]
73
121
  end
74
-
75
122
  end
76
123
 
77
124
  class DeleteConflictException < ServiceError
@@ -87,7 +134,6 @@ module Aws::IoT
87
134
  def message
88
135
  @message || @data[:message]
89
136
  end
90
-
91
137
  end
92
138
 
93
139
  class IndexNotReadyException < ServiceError
@@ -103,7 +149,6 @@ module Aws::IoT
103
149
  def message
104
150
  @message || @data[:message]
105
151
  end
106
-
107
152
  end
108
153
 
109
154
  class InternalException < ServiceError
@@ -119,7 +164,6 @@ module Aws::IoT
119
164
  def message
120
165
  @message || @data[:message]
121
166
  end
122
-
123
167
  end
124
168
 
125
169
  class InternalFailureException < ServiceError
@@ -135,7 +179,6 @@ module Aws::IoT
135
179
  def message
136
180
  @message || @data[:message]
137
181
  end
138
-
139
182
  end
140
183
 
141
184
  class InvalidAggregationException < ServiceError
@@ -151,7 +194,6 @@ module Aws::IoT
151
194
  def message
152
195
  @message || @data[:message]
153
196
  end
154
-
155
197
  end
156
198
 
157
199
  class InvalidQueryException < ServiceError
@@ -167,7 +209,6 @@ module Aws::IoT
167
209
  def message
168
210
  @message || @data[:message]
169
211
  end
170
-
171
212
  end
172
213
 
173
214
  class InvalidRequestException < ServiceError
@@ -183,7 +224,6 @@ module Aws::IoT
183
224
  def message
184
225
  @message || @data[:message]
185
226
  end
186
-
187
227
  end
188
228
 
189
229
  class InvalidResponseException < ServiceError
@@ -199,7 +239,6 @@ module Aws::IoT
199
239
  def message
200
240
  @message || @data[:message]
201
241
  end
202
-
203
242
  end
204
243
 
205
244
  class InvalidStateTransitionException < ServiceError
@@ -215,7 +254,6 @@ module Aws::IoT
215
254
  def message
216
255
  @message || @data[:message]
217
256
  end
218
-
219
257
  end
220
258
 
221
259
  class LimitExceededException < ServiceError
@@ -231,7 +269,6 @@ module Aws::IoT
231
269
  def message
232
270
  @message || @data[:message]
233
271
  end
234
-
235
272
  end
236
273
 
237
274
  class MalformedPolicyException < ServiceError
@@ -247,7 +284,6 @@ module Aws::IoT
247
284
  def message
248
285
  @message || @data[:message]
249
286
  end
250
-
251
287
  end
252
288
 
253
289
  class NotConfiguredException < ServiceError
@@ -263,7 +299,6 @@ module Aws::IoT
263
299
  def message
264
300
  @message || @data[:message]
265
301
  end
266
-
267
302
  end
268
303
 
269
304
  class RegistrationCodeValidationException < ServiceError
@@ -279,7 +314,6 @@ module Aws::IoT
279
314
  def message
280
315
  @message || @data[:message]
281
316
  end
282
-
283
317
  end
284
318
 
285
319
  class ResourceAlreadyExistsException < ServiceError
@@ -305,7 +339,6 @@ module Aws::IoT
305
339
  def resource_arn
306
340
  @data[:resource_arn]
307
341
  end
308
-
309
342
  end
310
343
 
311
344
  class ResourceNotFoundException < ServiceError
@@ -321,7 +354,6 @@ module Aws::IoT
321
354
  def message
322
355
  @message || @data[:message]
323
356
  end
324
-
325
357
  end
326
358
 
327
359
  class ResourceRegistrationFailureException < ServiceError
@@ -337,7 +369,6 @@ module Aws::IoT
337
369
  def message
338
370
  @message || @data[:message]
339
371
  end
340
-
341
372
  end
342
373
 
343
374
  class ServiceUnavailableException < ServiceError
@@ -353,7 +384,6 @@ module Aws::IoT
353
384
  def message
354
385
  @message || @data[:message]
355
386
  end
356
-
357
387
  end
358
388
 
359
389
  class SqlParseException < ServiceError
@@ -369,7 +399,6 @@ module Aws::IoT
369
399
  def message
370
400
  @message || @data[:message]
371
401
  end
372
-
373
402
  end
374
403
 
375
404
  class TaskAlreadyExistsException < ServiceError
@@ -385,7 +414,6 @@ module Aws::IoT
385
414
  def message
386
415
  @message || @data[:message]
387
416
  end
388
-
389
417
  end
390
418
 
391
419
  class ThrottlingException < ServiceError
@@ -401,7 +429,6 @@ module Aws::IoT
401
429
  def message
402
430
  @message || @data[:message]
403
431
  end
404
-
405
432
  end
406
433
 
407
434
  class TransferAlreadyCompletedException < ServiceError
@@ -417,7 +444,6 @@ module Aws::IoT
417
444
  def message
418
445
  @message || @data[:message]
419
446
  end
420
-
421
447
  end
422
448
 
423
449
  class TransferConflictException < ServiceError
@@ -433,7 +459,6 @@ module Aws::IoT
433
459
  def message
434
460
  @message || @data[:message]
435
461
  end
436
-
437
462
  end
438
463
 
439
464
  class UnauthorizedException < ServiceError
@@ -449,7 +474,6 @@ module Aws::IoT
449
474
  def message
450
475
  @message || @data[:message]
451
476
  end
452
-
453
477
  end
454
478
 
455
479
  class VersionConflictException < ServiceError
@@ -465,7 +489,6 @@ module Aws::IoT
465
489
  def message
466
490
  @message || @data[:message]
467
491
  end
468
-
469
492
  end
470
493
 
471
494
  class VersionsLimitExceededException < ServiceError
@@ -481,7 +504,6 @@ module Aws::IoT
481
504
  def message
482
505
  @message || @data[:message]
483
506
  end
484
-
485
507
  end
486
508
 
487
509
  end
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IoT
9
+ # This class provides a resource oriented interface for IoT.
10
+ # To create a resource object:
11
+ # resource = Aws::IoT::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::IoT::Client.new(region: 'us-west-2')
15
+ # resource = Aws::IoT::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-iot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.43.0
4
+ version: 1.44.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-02-04 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