aws-sdk-iotdataplane 1.17.0 → 1.23.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 +5 -5
- data/lib/aws-sdk-iotdataplane.rb +3 -1
- data/lib/aws-sdk-iotdataplane/client.rb +90 -32
- data/lib/aws-sdk-iotdataplane/client_api.rb +43 -4
- data/lib/aws-sdk-iotdataplane/customizations.rb +1 -0
- data/lib/aws-sdk-iotdataplane/errors.rb +2 -0
- data/lib/aws-sdk-iotdataplane/resource.rb +3 -7
- data/lib/aws-sdk-iotdataplane/types.rb +89 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 25bb0f424df8bc86223bb9452fb3c6414e85c3bd974ee17dc29b70cb01df7a33
|
4
|
+
data.tar.gz: 3c660297a0c6962c4ac5d2233b24ca8cbda25b9a5c5f68c8a54368a46122c985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fe501b69212e7505df984175c249de121e7231af6b21146f777f039247c5882e3080c66ca31a1275572955fdb469ad5b0603eeaf29a829a901909ff8fd2d3a0
|
7
|
+
data.tar.gz: c26ba0b90be5212d9d6e34626ba0d5346a23c7d3112d2a52f70a0478643bc72dadb7deb7c91ae76a1ddbd44d3f598f431c1a984bca28d2ebbcd894a9ed4b92c3
|
data/lib/aws-sdk-iotdataplane.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-iotdataplane/customizations'
|
|
45
47
|
# @service
|
46
48
|
module Aws::IoTDataPlane
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.23.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
|
@@ -32,11 +35,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:iotdataplane)
|
|
32
35
|
module Aws::IoTDataPlane
|
33
36
|
# An API client for IoTDataPlane. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
37
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
38
|
+
# client = Aws::IoTDataPlane::Client.new(
|
39
|
+
# region: region_name,
|
40
|
+
# credentials: credentials,
|
41
|
+
# # ...
|
42
|
+
# )
|
40
43
|
#
|
41
44
|
# For details on configuring region and credentials see
|
42
45
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -69,6 +72,7 @@ module Aws::IoTDataPlane
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
78
|
|
@@ -105,7 +109,7 @@ module Aws::IoTDataPlane
|
|
105
109
|
# @option options [required, String] :region
|
106
110
|
# The AWS region to connect to. The configured `:region` is
|
107
111
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
112
|
+
# a default `:region` is searched for in the following locations:
|
109
113
|
#
|
110
114
|
# * `Aws.config[:region]`
|
111
115
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +165,7 @@ module Aws::IoTDataPlane
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +180,7 @@ module Aws::IoTDataPlane
|
|
176
180
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
181
|
#
|
178
182
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
184
|
#
|
181
185
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
186
|
# The log formatter.
|
@@ -229,15 +233,19 @@ module Aws::IoTDataPlane
|
|
229
233
|
#
|
230
234
|
# @option options [String] :retry_mode ("legacy")
|
231
235
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
236
|
+
#
|
237
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
238
|
+
# no retry mode is provided.
|
239
|
+
#
|
240
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
241
|
+
# This includes support for retry quotas, which limit the number of
|
242
|
+
# unsuccessful retries a client can make.
|
243
|
+
#
|
244
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
245
|
+
# functionality of `standard` mode along with automatic client side
|
246
|
+
# throttling. This is a provisional mode that may change behavior
|
247
|
+
# in the future.
|
248
|
+
#
|
241
249
|
#
|
242
250
|
# @option options [String] :secret_access_key
|
243
251
|
#
|
@@ -265,8 +273,7 @@ module Aws::IoTDataPlane
|
|
265
273
|
#
|
266
274
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
275
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
276
|
+
# safely be set per-request on the session.
|
270
277
|
#
|
271
278
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
279
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +285,7 @@ module Aws::IoTDataPlane
|
|
278
285
|
# request body. This option has no effect unless the request has
|
279
286
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
287
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
288
|
+
# request on the session.
|
282
289
|
#
|
283
290
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
291
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -305,10 +312,10 @@ module Aws::IoTDataPlane
|
|
305
312
|
|
306
313
|
# @!group API Operations
|
307
314
|
|
308
|
-
# Deletes the
|
315
|
+
# Deletes the shadow for the specified thing.
|
309
316
|
#
|
310
|
-
# For more information, see [DeleteThingShadow][1] in the
|
311
|
-
# Developer Guide
|
317
|
+
# For more information, see [DeleteThingShadow][1] in the AWS IoT
|
318
|
+
# Developer Guide.
|
312
319
|
#
|
313
320
|
#
|
314
321
|
#
|
@@ -317,6 +324,9 @@ module Aws::IoTDataPlane
|
|
317
324
|
# @option params [required, String] :thing_name
|
318
325
|
# The name of the thing.
|
319
326
|
#
|
327
|
+
# @option params [String] :shadow_name
|
328
|
+
# The name of the shadow.
|
329
|
+
#
|
320
330
|
# @return [Types::DeleteThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
321
331
|
#
|
322
332
|
# * {Types::DeleteThingShadowResponse#payload #payload} => String
|
@@ -325,6 +335,7 @@ module Aws::IoTDataPlane
|
|
325
335
|
#
|
326
336
|
# resp = client.delete_thing_shadow({
|
327
337
|
# thing_name: "ThingName", # required
|
338
|
+
# shadow_name: "ShadowName",
|
328
339
|
# })
|
329
340
|
#
|
330
341
|
# @example Response structure
|
@@ -338,10 +349,10 @@ module Aws::IoTDataPlane
|
|
338
349
|
req.send_request(options)
|
339
350
|
end
|
340
351
|
|
341
|
-
# Gets the
|
352
|
+
# Gets the shadow for the specified thing.
|
342
353
|
#
|
343
|
-
# For more information, see [GetThingShadow][1] in the
|
344
|
-
#
|
354
|
+
# For more information, see [GetThingShadow][1] in the AWS IoT Developer
|
355
|
+
# Guide.
|
345
356
|
#
|
346
357
|
#
|
347
358
|
#
|
@@ -350,6 +361,9 @@ module Aws::IoTDataPlane
|
|
350
361
|
# @option params [required, String] :thing_name
|
351
362
|
# The name of the thing.
|
352
363
|
#
|
364
|
+
# @option params [String] :shadow_name
|
365
|
+
# The name of the shadow.
|
366
|
+
#
|
353
367
|
# @return [Types::GetThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
354
368
|
#
|
355
369
|
# * {Types::GetThingShadowResponse#payload #payload} => String
|
@@ -358,6 +372,7 @@ module Aws::IoTDataPlane
|
|
358
372
|
#
|
359
373
|
# resp = client.get_thing_shadow({
|
360
374
|
# thing_name: "ThingName", # required
|
375
|
+
# shadow_name: "ShadowName",
|
361
376
|
# })
|
362
377
|
#
|
363
378
|
# @example Response structure
|
@@ -371,10 +386,49 @@ module Aws::IoTDataPlane
|
|
371
386
|
req.send_request(options)
|
372
387
|
end
|
373
388
|
|
389
|
+
# Lists the shadows for the specified thing.
|
390
|
+
#
|
391
|
+
# @option params [required, String] :thing_name
|
392
|
+
# The name of the thing.
|
393
|
+
#
|
394
|
+
# @option params [String] :next_token
|
395
|
+
# The token to retrieve the next set of results.
|
396
|
+
#
|
397
|
+
# @option params [Integer] :page_size
|
398
|
+
# The result page size.
|
399
|
+
#
|
400
|
+
# @return [Types::ListNamedShadowsForThingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
401
|
+
#
|
402
|
+
# * {Types::ListNamedShadowsForThingResponse#results #results} => Array<String>
|
403
|
+
# * {Types::ListNamedShadowsForThingResponse#next_token #next_token} => String
|
404
|
+
# * {Types::ListNamedShadowsForThingResponse#timestamp #timestamp} => Integer
|
405
|
+
#
|
406
|
+
# @example Request syntax with placeholder values
|
407
|
+
#
|
408
|
+
# resp = client.list_named_shadows_for_thing({
|
409
|
+
# thing_name: "ThingName", # required
|
410
|
+
# next_token: "NextToken",
|
411
|
+
# page_size: 1,
|
412
|
+
# })
|
413
|
+
#
|
414
|
+
# @example Response structure
|
415
|
+
#
|
416
|
+
# resp.results #=> Array
|
417
|
+
# resp.results[0] #=> String
|
418
|
+
# resp.next_token #=> String
|
419
|
+
# resp.timestamp #=> Integer
|
420
|
+
#
|
421
|
+
# @overload list_named_shadows_for_thing(params = {})
|
422
|
+
# @param [Hash] params ({})
|
423
|
+
def list_named_shadows_for_thing(params = {}, options = {})
|
424
|
+
req = build_request(:list_named_shadows_for_thing, params)
|
425
|
+
req.send_request(options)
|
426
|
+
end
|
427
|
+
|
374
428
|
# Publishes state information.
|
375
429
|
#
|
376
|
-
# For more information, see [HTTP Protocol][1] in the
|
377
|
-
# Guide
|
430
|
+
# For more information, see [HTTP Protocol][1] in the AWS IoT Developer
|
431
|
+
# Guide.
|
378
432
|
#
|
379
433
|
#
|
380
434
|
#
|
@@ -406,10 +460,10 @@ module Aws::IoTDataPlane
|
|
406
460
|
req.send_request(options)
|
407
461
|
end
|
408
462
|
|
409
|
-
# Updates the
|
463
|
+
# Updates the shadow for the specified thing.
|
410
464
|
#
|
411
|
-
# For more information, see [UpdateThingShadow][1] in the
|
412
|
-
# Developer Guide
|
465
|
+
# For more information, see [UpdateThingShadow][1] in the AWS IoT
|
466
|
+
# Developer Guide.
|
413
467
|
#
|
414
468
|
#
|
415
469
|
#
|
@@ -418,6 +472,9 @@ module Aws::IoTDataPlane
|
|
418
472
|
# @option params [required, String] :thing_name
|
419
473
|
# The name of the thing.
|
420
474
|
#
|
475
|
+
# @option params [String] :shadow_name
|
476
|
+
# The name of the shadow.
|
477
|
+
#
|
421
478
|
# @option params [required, String, IO] :payload
|
422
479
|
# The state information, in JSON format.
|
423
480
|
#
|
@@ -429,6 +486,7 @@ module Aws::IoTDataPlane
|
|
429
486
|
#
|
430
487
|
# resp = client.update_thing_shadow({
|
431
488
|
# thing_name: "ThingName", # required
|
489
|
+
# shadow_name: "ShadowName",
|
432
490
|
# payload: "data", # required
|
433
491
|
# })
|
434
492
|
#
|
@@ -456,7 +514,7 @@ module Aws::IoTDataPlane
|
|
456
514
|
params: params,
|
457
515
|
config: config)
|
458
516
|
context[:gem_name] = 'aws-sdk-iotdataplane'
|
459
|
-
context[:gem_version] = '1.
|
517
|
+
context[:gem_version] = '1.23.0'
|
460
518
|
Seahorse::Client::Request.new(handlers, context)
|
461
519
|
end
|
462
520
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -14,21 +16,27 @@ module Aws::IoTDataPlane
|
|
14
16
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
15
17
|
DeleteThingShadowRequest = Shapes::StructureShape.new(name: 'DeleteThingShadowRequest')
|
16
18
|
DeleteThingShadowResponse = Shapes::StructureShape.new(name: 'DeleteThingShadowResponse')
|
17
|
-
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
18
19
|
GetThingShadowRequest = Shapes::StructureShape.new(name: 'GetThingShadowRequest')
|
19
20
|
GetThingShadowResponse = Shapes::StructureShape.new(name: 'GetThingShadowResponse')
|
20
21
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
21
22
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
22
23
|
JsonDocument = Shapes::BlobShape.new(name: 'JsonDocument')
|
24
|
+
ListNamedShadowsForThingRequest = Shapes::StructureShape.new(name: 'ListNamedShadowsForThingRequest')
|
25
|
+
ListNamedShadowsForThingResponse = Shapes::StructureShape.new(name: 'ListNamedShadowsForThingResponse')
|
23
26
|
MethodNotAllowedException = Shapes::StructureShape.new(name: 'MethodNotAllowedException')
|
27
|
+
NamedShadowList = Shapes::ListShape.new(name: 'NamedShadowList')
|
28
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
29
|
+
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
24
30
|
Payload = Shapes::BlobShape.new(name: 'Payload')
|
25
31
|
PublishRequest = Shapes::StructureShape.new(name: 'PublishRequest')
|
26
32
|
Qos = Shapes::IntegerShape.new(name: 'Qos')
|
27
33
|
RequestEntityTooLargeException = Shapes::StructureShape.new(name: 'RequestEntityTooLargeException')
|
28
34
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
29
35
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
36
|
+
ShadowName = Shapes::StringShape.new(name: 'ShadowName')
|
30
37
|
ThingName = Shapes::StringShape.new(name: 'ThingName')
|
31
38
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
39
|
+
Timestamp = Shapes::IntegerShape.new(name: 'Timestamp')
|
32
40
|
Topic = Shapes::StringShape.new(name: 'Topic')
|
33
41
|
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
34
42
|
UnsupportedDocumentEncodingException = Shapes::StructureShape.new(name: 'UnsupportedDocumentEncodingException')
|
@@ -36,10 +44,11 @@ module Aws::IoTDataPlane
|
|
36
44
|
UpdateThingShadowResponse = Shapes::StructureShape.new(name: 'UpdateThingShadowResponse')
|
37
45
|
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
38
46
|
|
39
|
-
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape:
|
47
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
40
48
|
ConflictException.struct_class = Types::ConflictException
|
41
49
|
|
42
50
|
DeleteThingShadowRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
|
51
|
+
DeleteThingShadowRequest.add_member(:shadow_name, Shapes::ShapeRef.new(shape: ShadowName, location: "querystring", location_name: "name"))
|
43
52
|
DeleteThingShadowRequest.struct_class = Types::DeleteThingShadowRequest
|
44
53
|
|
45
54
|
DeleteThingShadowResponse.add_member(:payload, Shapes::ShapeRef.new(shape: JsonDocument, required: true, location_name: "payload"))
|
@@ -48,6 +57,7 @@ module Aws::IoTDataPlane
|
|
48
57
|
DeleteThingShadowResponse[:payload_member] = DeleteThingShadowResponse.member(:payload)
|
49
58
|
|
50
59
|
GetThingShadowRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
|
60
|
+
GetThingShadowRequest.add_member(:shadow_name, Shapes::ShapeRef.new(shape: ShadowName, location: "querystring", location_name: "name"))
|
51
61
|
GetThingShadowRequest.struct_class = Types::GetThingShadowRequest
|
52
62
|
|
53
63
|
GetThingShadowResponse.add_member(:payload, Shapes::ShapeRef.new(shape: JsonDocument, location_name: "payload"))
|
@@ -61,9 +71,21 @@ module Aws::IoTDataPlane
|
|
61
71
|
InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
62
72
|
InvalidRequestException.struct_class = Types::InvalidRequestException
|
63
73
|
|
64
|
-
|
74
|
+
ListNamedShadowsForThingRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
|
75
|
+
ListNamedShadowsForThingRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
76
|
+
ListNamedShadowsForThingRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: PageSize, location: "querystring", location_name: "pageSize"))
|
77
|
+
ListNamedShadowsForThingRequest.struct_class = Types::ListNamedShadowsForThingRequest
|
78
|
+
|
79
|
+
ListNamedShadowsForThingResponse.add_member(:results, Shapes::ShapeRef.new(shape: NamedShadowList, location_name: "results"))
|
80
|
+
ListNamedShadowsForThingResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
81
|
+
ListNamedShadowsForThingResponse.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
|
82
|
+
ListNamedShadowsForThingResponse.struct_class = Types::ListNamedShadowsForThingResponse
|
83
|
+
|
84
|
+
MethodNotAllowedException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
65
85
|
MethodNotAllowedException.struct_class = Types::MethodNotAllowedException
|
66
86
|
|
87
|
+
NamedShadowList.member = Shapes::ShapeRef.new(shape: ShadowName)
|
88
|
+
|
67
89
|
PublishRequest.add_member(:topic, Shapes::ShapeRef.new(shape: Topic, required: true, location: "uri", location_name: "topic"))
|
68
90
|
PublishRequest.add_member(:qos, Shapes::ShapeRef.new(shape: Qos, location: "querystring", location_name: "qos"))
|
69
91
|
PublishRequest.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
|
@@ -71,7 +93,7 @@ module Aws::IoTDataPlane
|
|
71
93
|
PublishRequest[:payload] = :payload
|
72
94
|
PublishRequest[:payload_member] = PublishRequest.member(:payload)
|
73
95
|
|
74
|
-
RequestEntityTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape:
|
96
|
+
RequestEntityTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
75
97
|
RequestEntityTooLargeException.struct_class = Types::RequestEntityTooLargeException
|
76
98
|
|
77
99
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
@@ -90,6 +112,7 @@ module Aws::IoTDataPlane
|
|
90
112
|
UnsupportedDocumentEncodingException.struct_class = Types::UnsupportedDocumentEncodingException
|
91
113
|
|
92
114
|
UpdateThingShadowRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
|
115
|
+
UpdateThingShadowRequest.add_member(:shadow_name, Shapes::ShapeRef.new(shape: ShadowName, location: "querystring", location_name: "name"))
|
93
116
|
UpdateThingShadowRequest.add_member(:payload, Shapes::ShapeRef.new(shape: JsonDocument, required: true, location_name: "payload"))
|
94
117
|
UpdateThingShadowRequest.struct_class = Types::UpdateThingShadowRequest
|
95
118
|
UpdateThingShadowRequest[:payload] = :payload
|
@@ -110,6 +133,7 @@ module Aws::IoTDataPlane
|
|
110
133
|
"apiVersion" => "2015-05-28",
|
111
134
|
"protocol" => "rest-json",
|
112
135
|
"serviceFullName" => "AWS IoT Data Plane",
|
136
|
+
"serviceId" => "IoT Data Plane",
|
113
137
|
"signatureVersion" => "v4",
|
114
138
|
"signingName" => "iotdata",
|
115
139
|
"uid" => "iot-data-2015-05-28",
|
@@ -147,6 +171,21 @@ module Aws::IoTDataPlane
|
|
147
171
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDocumentEncodingException)
|
148
172
|
end)
|
149
173
|
|
174
|
+
api.add_operation(:list_named_shadows_for_thing, Seahorse::Model::Operation.new.tap do |o|
|
175
|
+
o.name = "ListNamedShadowsForThing"
|
176
|
+
o.http_method = "GET"
|
177
|
+
o.http_request_uri = "/api/things/shadow/ListNamedShadowsForThing/{thingName}"
|
178
|
+
o.input = Shapes::ShapeRef.new(shape: ListNamedShadowsForThingRequest)
|
179
|
+
o.output = Shapes::ShapeRef.new(shape: ListNamedShadowsForThingResponse)
|
180
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
181
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
182
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
183
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
184
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
185
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
186
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
187
|
+
end)
|
188
|
+
|
150
189
|
api.add_operation(:publish, Seahorse::Model::Operation.new.tap do |o|
|
151
190
|
o.name = "Publish"
|
152
191
|
o.http_method = "POST"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -6,13 +8,7 @@
|
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
8
10
|
module Aws::IoTDataPlane
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::IoTDataPlane::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::IoTDataPlane::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::IoTDataPlane::Resource.new(client: client)
|
11
|
+
|
16
12
|
class Resource
|
17
13
|
|
18
14
|
# @param options ({})
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -16,6 +18,7 @@ module Aws::IoTDataPlane
|
|
16
18
|
#
|
17
19
|
class ConflictException < Struct.new(
|
18
20
|
:message)
|
21
|
+
SENSITIVE = []
|
19
22
|
include Aws::Structure
|
20
23
|
end
|
21
24
|
|
@@ -26,14 +29,21 @@ module Aws::IoTDataPlane
|
|
26
29
|
#
|
27
30
|
# {
|
28
31
|
# thing_name: "ThingName", # required
|
32
|
+
# shadow_name: "ShadowName",
|
29
33
|
# }
|
30
34
|
#
|
31
35
|
# @!attribute [rw] thing_name
|
32
36
|
# The name of the thing.
|
33
37
|
# @return [String]
|
34
38
|
#
|
39
|
+
# @!attribute [rw] shadow_name
|
40
|
+
# The name of the shadow.
|
41
|
+
# @return [String]
|
42
|
+
#
|
35
43
|
class DeleteThingShadowRequest < Struct.new(
|
36
|
-
:thing_name
|
44
|
+
:thing_name,
|
45
|
+
:shadow_name)
|
46
|
+
SENSITIVE = []
|
37
47
|
include Aws::Structure
|
38
48
|
end
|
39
49
|
|
@@ -45,6 +55,7 @@ module Aws::IoTDataPlane
|
|
45
55
|
#
|
46
56
|
class DeleteThingShadowResponse < Struct.new(
|
47
57
|
:payload)
|
58
|
+
SENSITIVE = []
|
48
59
|
include Aws::Structure
|
49
60
|
end
|
50
61
|
|
@@ -55,14 +66,21 @@ module Aws::IoTDataPlane
|
|
55
66
|
#
|
56
67
|
# {
|
57
68
|
# thing_name: "ThingName", # required
|
69
|
+
# shadow_name: "ShadowName",
|
58
70
|
# }
|
59
71
|
#
|
60
72
|
# @!attribute [rw] thing_name
|
61
73
|
# The name of the thing.
|
62
74
|
# @return [String]
|
63
75
|
#
|
76
|
+
# @!attribute [rw] shadow_name
|
77
|
+
# The name of the shadow.
|
78
|
+
# @return [String]
|
79
|
+
#
|
64
80
|
class GetThingShadowRequest < Struct.new(
|
65
|
-
:thing_name
|
81
|
+
:thing_name,
|
82
|
+
:shadow_name)
|
83
|
+
SENSITIVE = []
|
66
84
|
include Aws::Structure
|
67
85
|
end
|
68
86
|
|
@@ -74,6 +92,7 @@ module Aws::IoTDataPlane
|
|
74
92
|
#
|
75
93
|
class GetThingShadowResponse < Struct.new(
|
76
94
|
:payload)
|
95
|
+
SENSITIVE = []
|
77
96
|
include Aws::Structure
|
78
97
|
end
|
79
98
|
|
@@ -85,6 +104,7 @@ module Aws::IoTDataPlane
|
|
85
104
|
#
|
86
105
|
class InternalFailureException < Struct.new(
|
87
106
|
:message)
|
107
|
+
SENSITIVE = []
|
88
108
|
include Aws::Structure
|
89
109
|
end
|
90
110
|
|
@@ -96,6 +116,57 @@ module Aws::IoTDataPlane
|
|
96
116
|
#
|
97
117
|
class InvalidRequestException < Struct.new(
|
98
118
|
:message)
|
119
|
+
SENSITIVE = []
|
120
|
+
include Aws::Structure
|
121
|
+
end
|
122
|
+
|
123
|
+
# @note When making an API call, you may pass ListNamedShadowsForThingRequest
|
124
|
+
# data as a hash:
|
125
|
+
#
|
126
|
+
# {
|
127
|
+
# thing_name: "ThingName", # required
|
128
|
+
# next_token: "NextToken",
|
129
|
+
# page_size: 1,
|
130
|
+
# }
|
131
|
+
#
|
132
|
+
# @!attribute [rw] thing_name
|
133
|
+
# The name of the thing.
|
134
|
+
# @return [String]
|
135
|
+
#
|
136
|
+
# @!attribute [rw] next_token
|
137
|
+
# The token to retrieve the next set of results.
|
138
|
+
# @return [String]
|
139
|
+
#
|
140
|
+
# @!attribute [rw] page_size
|
141
|
+
# The result page size.
|
142
|
+
# @return [Integer]
|
143
|
+
#
|
144
|
+
class ListNamedShadowsForThingRequest < Struct.new(
|
145
|
+
:thing_name,
|
146
|
+
:next_token,
|
147
|
+
:page_size)
|
148
|
+
SENSITIVE = []
|
149
|
+
include Aws::Structure
|
150
|
+
end
|
151
|
+
|
152
|
+
# @!attribute [rw] results
|
153
|
+
# The list of shadows for the specified thing.
|
154
|
+
# @return [Array<String>]
|
155
|
+
#
|
156
|
+
# @!attribute [rw] next_token
|
157
|
+
# The token for the next set of results, or null if there are no
|
158
|
+
# additional results.
|
159
|
+
# @return [String]
|
160
|
+
#
|
161
|
+
# @!attribute [rw] timestamp
|
162
|
+
# The Epoch date and time the response was generated by AWS IoT.
|
163
|
+
# @return [Integer]
|
164
|
+
#
|
165
|
+
class ListNamedShadowsForThingResponse < Struct.new(
|
166
|
+
:results,
|
167
|
+
:next_token,
|
168
|
+
:timestamp)
|
169
|
+
SENSITIVE = []
|
99
170
|
include Aws::Structure
|
100
171
|
end
|
101
172
|
|
@@ -107,6 +178,7 @@ module Aws::IoTDataPlane
|
|
107
178
|
#
|
108
179
|
class MethodNotAllowedException < Struct.new(
|
109
180
|
:message)
|
181
|
+
SENSITIVE = []
|
110
182
|
include Aws::Structure
|
111
183
|
end
|
112
184
|
|
@@ -137,6 +209,7 @@ module Aws::IoTDataPlane
|
|
137
209
|
:topic,
|
138
210
|
:qos,
|
139
211
|
:payload)
|
212
|
+
SENSITIVE = []
|
140
213
|
include Aws::Structure
|
141
214
|
end
|
142
215
|
|
@@ -148,6 +221,7 @@ module Aws::IoTDataPlane
|
|
148
221
|
#
|
149
222
|
class RequestEntityTooLargeException < Struct.new(
|
150
223
|
:message)
|
224
|
+
SENSITIVE = []
|
151
225
|
include Aws::Structure
|
152
226
|
end
|
153
227
|
|
@@ -159,6 +233,7 @@ module Aws::IoTDataPlane
|
|
159
233
|
#
|
160
234
|
class ResourceNotFoundException < Struct.new(
|
161
235
|
:message)
|
236
|
+
SENSITIVE = []
|
162
237
|
include Aws::Structure
|
163
238
|
end
|
164
239
|
|
@@ -170,6 +245,7 @@ module Aws::IoTDataPlane
|
|
170
245
|
#
|
171
246
|
class ServiceUnavailableException < Struct.new(
|
172
247
|
:message)
|
248
|
+
SENSITIVE = []
|
173
249
|
include Aws::Structure
|
174
250
|
end
|
175
251
|
|
@@ -181,6 +257,7 @@ module Aws::IoTDataPlane
|
|
181
257
|
#
|
182
258
|
class ThrottlingException < Struct.new(
|
183
259
|
:message)
|
260
|
+
SENSITIVE = []
|
184
261
|
include Aws::Structure
|
185
262
|
end
|
186
263
|
|
@@ -192,6 +269,7 @@ module Aws::IoTDataPlane
|
|
192
269
|
#
|
193
270
|
class UnauthorizedException < Struct.new(
|
194
271
|
:message)
|
272
|
+
SENSITIVE = []
|
195
273
|
include Aws::Structure
|
196
274
|
end
|
197
275
|
|
@@ -203,6 +281,7 @@ module Aws::IoTDataPlane
|
|
203
281
|
#
|
204
282
|
class UnsupportedDocumentEncodingException < Struct.new(
|
205
283
|
:message)
|
284
|
+
SENSITIVE = []
|
206
285
|
include Aws::Structure
|
207
286
|
end
|
208
287
|
|
@@ -213,6 +292,7 @@ module Aws::IoTDataPlane
|
|
213
292
|
#
|
214
293
|
# {
|
215
294
|
# thing_name: "ThingName", # required
|
295
|
+
# shadow_name: "ShadowName",
|
216
296
|
# payload: "data", # required
|
217
297
|
# }
|
218
298
|
#
|
@@ -220,13 +300,19 @@ module Aws::IoTDataPlane
|
|
220
300
|
# The name of the thing.
|
221
301
|
# @return [String]
|
222
302
|
#
|
303
|
+
# @!attribute [rw] shadow_name
|
304
|
+
# The name of the shadow.
|
305
|
+
# @return [String]
|
306
|
+
#
|
223
307
|
# @!attribute [rw] payload
|
224
308
|
# The state information, in JSON format.
|
225
309
|
# @return [String]
|
226
310
|
#
|
227
311
|
class UpdateThingShadowRequest < Struct.new(
|
228
312
|
:thing_name,
|
313
|
+
:shadow_name,
|
229
314
|
:payload)
|
315
|
+
SENSITIVE = []
|
230
316
|
include Aws::Structure
|
231
317
|
end
|
232
318
|
|
@@ -238,6 +324,7 @@ module Aws::IoTDataPlane
|
|
238
324
|
#
|
239
325
|
class UpdateThingShadowResponse < Struct.new(
|
240
326
|
:payload)
|
327
|
+
SENSITIVE = []
|
241
328
|
include Aws::Structure
|
242
329
|
end
|
243
330
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-iotdataplane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.23.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-07-02 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.
|
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.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.7.6.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: AWS SDK for Ruby - AWS IoT Data Plane
|