aws-sdk-iotdataplane 1.18.0 → 1.24.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
  SHA256:
3
- metadata.gz: a1a472207971a8b2b81410870a641097c0a988b62609e285b4d5dbb0909a612b
4
- data.tar.gz: f06673c1d8c156f04ea9f766b87a5cc5b6fa71a87cff202b4f1db2cf68c09426
3
+ metadata.gz: '0812dc97d1964a5bbc0d7ea9978c028d4369e39281fb4105880754033db463c8'
4
+ data.tar.gz: 2c0ea31f202b2f7c6ae5d3316442b684469f075523a149e9240332d796e2e5eb
5
5
  SHA512:
6
- metadata.gz: 6ad0c6226983580089a6a40c3bc315059386ab5f0ac5f112f8dee71cd1145ba940119e1bd922e99d9957af79432b3b07fd0c88a75df6a9af4dce88e65496e3a6
7
- data.tar.gz: 54462659105340de612a97752a4edc85bd9e95b297d09bfc95b21bfc530590749a80e286268a09d52a1a23ed6523ebc23343a91c910f014a5a2eced356936809
6
+ metadata.gz: 06df99bc23b54752b99b3917cf06a8818d6b48ed8b646337644231d220ec46619c68cd6eb337727ea0b72e31af39c1dff5cb519f92fdf89189b2be3711b0e775
7
+ data.tar.gz: ea528ea2bb66e003d332eafa905d7e0ac49a5658d53da6a7ff33744933ee992a84e0364b48cef8eae9a300e0acfd4899dc5c0a124cc8630beee2f1c7ceda37e2
@@ -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:
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-iotdataplane/customizations'
42
44
  #
43
45
  # See {Errors} for more information.
44
46
  #
45
- # @service
47
+ # @!group service
46
48
  module Aws::IoTDataPlane
47
49
 
48
- GEM_VERSION = '1.18.0'
50
+ GEM_VERSION = '1.24.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
 
@@ -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
 
@@ -81,13 +85,28 @@ module Aws::IoTDataPlane
81
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
82
86
  # credentials.
83
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
84
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
85
103
  # from an EC2 IMDS on an EC2 instance.
86
104
  #
87
- # * `Aws::SharedCredentials` - Used for loading credentials from a
88
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
89
107
  #
90
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
91
110
  #
92
111
  # When `:credentials` are not configured directly, the following
93
112
  # locations will be searched for credentials:
@@ -97,10 +116,10 @@ module Aws::IoTDataPlane
97
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
98
117
  # * `~/.aws/credentials`
99
118
  # * `~/.aws/config`
100
- # * EC2 IMDS instance profile - When used by default, the timeouts are
101
- # very aggressive. Construct and pass an instance of
102
- # `Aws::InstanceProfileCredentails` to enable retries and extended
103
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
104
123
  #
105
124
  # @option options [required, String] :region
106
125
  # The AWS region to connect to. The configured `:region` is
@@ -161,7 +180,7 @@ module Aws::IoTDataPlane
161
180
  # @option options [String] :endpoint
162
181
  # The client endpoint is normally constructed from the `:region`
163
182
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
184
  #
166
185
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
186
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +195,7 @@ module Aws::IoTDataPlane
176
195
  # requests fetching endpoints information. Defaults to 60 sec.
177
196
  #
178
197
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
198
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
199
  #
181
200
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
201
  # The log formatter.
@@ -308,10 +327,10 @@ module Aws::IoTDataPlane
308
327
 
309
328
  # @!group API Operations
310
329
 
311
- # Deletes the thing shadow for the specified thing.
330
+ # Deletes the shadow for the specified thing.
312
331
  #
313
- # For more information, see [DeleteThingShadow][1] in the *AWS IoT
314
- # Developer Guide*.
332
+ # For more information, see [DeleteThingShadow][1] in the AWS IoT
333
+ # Developer Guide.
315
334
  #
316
335
  #
317
336
  #
@@ -320,6 +339,9 @@ module Aws::IoTDataPlane
320
339
  # @option params [required, String] :thing_name
321
340
  # The name of the thing.
322
341
  #
342
+ # @option params [String] :shadow_name
343
+ # The name of the shadow.
344
+ #
323
345
  # @return [Types::DeleteThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
324
346
  #
325
347
  # * {Types::DeleteThingShadowResponse#payload #payload} => String
@@ -328,6 +350,7 @@ module Aws::IoTDataPlane
328
350
  #
329
351
  # resp = client.delete_thing_shadow({
330
352
  # thing_name: "ThingName", # required
353
+ # shadow_name: "ShadowName",
331
354
  # })
332
355
  #
333
356
  # @example Response structure
@@ -341,10 +364,10 @@ module Aws::IoTDataPlane
341
364
  req.send_request(options)
342
365
  end
343
366
 
344
- # Gets the thing shadow for the specified thing.
367
+ # Gets the shadow for the specified thing.
345
368
  #
346
- # For more information, see [GetThingShadow][1] in the *AWS IoT
347
- # Developer Guide*.
369
+ # For more information, see [GetThingShadow][1] in the AWS IoT Developer
370
+ # Guide.
348
371
  #
349
372
  #
350
373
  #
@@ -353,6 +376,9 @@ module Aws::IoTDataPlane
353
376
  # @option params [required, String] :thing_name
354
377
  # The name of the thing.
355
378
  #
379
+ # @option params [String] :shadow_name
380
+ # The name of the shadow.
381
+ #
356
382
  # @return [Types::GetThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
357
383
  #
358
384
  # * {Types::GetThingShadowResponse#payload #payload} => String
@@ -361,6 +387,7 @@ module Aws::IoTDataPlane
361
387
  #
362
388
  # resp = client.get_thing_shadow({
363
389
  # thing_name: "ThingName", # required
390
+ # shadow_name: "ShadowName",
364
391
  # })
365
392
  #
366
393
  # @example Response structure
@@ -374,10 +401,49 @@ module Aws::IoTDataPlane
374
401
  req.send_request(options)
375
402
  end
376
403
 
404
+ # Lists the shadows for the specified thing.
405
+ #
406
+ # @option params [required, String] :thing_name
407
+ # The name of the thing.
408
+ #
409
+ # @option params [String] :next_token
410
+ # The token to retrieve the next set of results.
411
+ #
412
+ # @option params [Integer] :page_size
413
+ # The result page size.
414
+ #
415
+ # @return [Types::ListNamedShadowsForThingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
416
+ #
417
+ # * {Types::ListNamedShadowsForThingResponse#results #results} => Array<String>
418
+ # * {Types::ListNamedShadowsForThingResponse#next_token #next_token} => String
419
+ # * {Types::ListNamedShadowsForThingResponse#timestamp #timestamp} => Integer
420
+ #
421
+ # @example Request syntax with placeholder values
422
+ #
423
+ # resp = client.list_named_shadows_for_thing({
424
+ # thing_name: "ThingName", # required
425
+ # next_token: "NextToken",
426
+ # page_size: 1,
427
+ # })
428
+ #
429
+ # @example Response structure
430
+ #
431
+ # resp.results #=> Array
432
+ # resp.results[0] #=> String
433
+ # resp.next_token #=> String
434
+ # resp.timestamp #=> Integer
435
+ #
436
+ # @overload list_named_shadows_for_thing(params = {})
437
+ # @param [Hash] params ({})
438
+ def list_named_shadows_for_thing(params = {}, options = {})
439
+ req = build_request(:list_named_shadows_for_thing, params)
440
+ req.send_request(options)
441
+ end
442
+
377
443
  # Publishes state information.
378
444
  #
379
- # For more information, see [HTTP Protocol][1] in the *AWS IoT Developer
380
- # Guide*.
445
+ # For more information, see [HTTP Protocol][1] in the AWS IoT Developer
446
+ # Guide.
381
447
  #
382
448
  #
383
449
  #
@@ -389,7 +455,7 @@ module Aws::IoTDataPlane
389
455
  # @option params [Integer] :qos
390
456
  # The Quality of Service (QoS) level.
391
457
  #
392
- # @option params [String, IO] :payload
458
+ # @option params [String, StringIO, File] :payload
393
459
  # The state information, in JSON format.
394
460
  #
395
461
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
@@ -409,10 +475,10 @@ module Aws::IoTDataPlane
409
475
  req.send_request(options)
410
476
  end
411
477
 
412
- # Updates the thing shadow for the specified thing.
478
+ # Updates the shadow for the specified thing.
413
479
  #
414
- # For more information, see [UpdateThingShadow][1] in the *AWS IoT
415
- # Developer Guide*.
480
+ # For more information, see [UpdateThingShadow][1] in the AWS IoT
481
+ # Developer Guide.
416
482
  #
417
483
  #
418
484
  #
@@ -421,7 +487,10 @@ module Aws::IoTDataPlane
421
487
  # @option params [required, String] :thing_name
422
488
  # The name of the thing.
423
489
  #
424
- # @option params [required, String, IO] :payload
490
+ # @option params [String] :shadow_name
491
+ # The name of the shadow.
492
+ #
493
+ # @option params [required, String, StringIO, File] :payload
425
494
  # The state information, in JSON format.
426
495
  #
427
496
  # @return [Types::UpdateThingShadowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -432,6 +501,7 @@ module Aws::IoTDataPlane
432
501
  #
433
502
  # resp = client.update_thing_shadow({
434
503
  # thing_name: "ThingName", # required
504
+ # shadow_name: "ShadowName",
435
505
  # payload: "data", # required
436
506
  # })
437
507
  #
@@ -459,7 +529,7 @@ module Aws::IoTDataPlane
459
529
  params: params,
460
530
  config: config)
461
531
  context[:gem_name] = 'aws-sdk-iotdataplane'
462
- context[:gem_version] = '1.18.0'
532
+ context[:gem_version] = '1.24.0'
463
533
  Seahorse::Client::Request.new(handlers, context)
464
534
  end
465
535
 
@@ -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: ErrorMessage, location_name: "message"))
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
- MethodNotAllowedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
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: ErrorMessage, location_name: "message"))
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,4 @@
1
+ # frozen_string_literal: true
1
2
  # WARNING ABOUT GENERATED CODE
2
3
  #
3
4
  # This file is generated. See the contributing for info on making contributions:
@@ -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:
@@ -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:
@@ -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.18.0
4
+ version: 1.24.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-05-07 00:00:00.000000000 Z
11
+ date: 2020-08-25 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.71.0
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.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement