aws-sdk-iotdataplane 1.40.0 → 1.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-iotdataplane/client.rb +54 -2
- data/lib/aws-sdk-iotdataplane/client_api.rb +13 -0
- data/lib/aws-sdk-iotdataplane/endpoint_provider.rb +56 -126
- data/lib/aws-sdk-iotdataplane/types.rb +58 -61
- data/lib/aws-sdk-iotdataplane.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6e641cc03de331d6f4db527042e0da2c29fa40eee837e90c6dc11a65f43ac65
|
4
|
+
data.tar.gz: 8b4c09de754af3375f9d8ccb9155325d90d4ecd32f5ff3295b2f85cc66cd207b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b332036f399a1531748387fff5024f03fce50edd88d8e43543b13d4b9a06799d8d2a00472c14c99de1347273e8afffe53f4cafb6496589b16bfbad40958ac46
|
7
|
+
data.tar.gz: 356856fa29ef1100676345101954da8281e58342ee9c0709d74ad95c1ab1c9aeafc8d835cbdaf9bea1b6a332a408e9d9c119cc73e91b7583eb44a773cb6edd92
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.42.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.41.0 (2022-11-28)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - This release adds support for MQTT5 properties to AWS IoT HTTP Publish API.
|
15
|
+
|
4
16
|
1.40.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
@@ -265,4 +277,4 @@ Unreleased Changes
|
|
265
277
|
1.0.0.rc1 (2016-12-05)
|
266
278
|
------------------
|
267
279
|
|
268
|
-
* Feature - Initial preview release of the `aws-sdk-iotdataplane` gem.
|
280
|
+
* Feature - Initial preview release of the `aws-sdk-iotdataplane` gem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.42.0
|
@@ -620,7 +620,7 @@ module Aws::IoTDataPlane
|
|
620
620
|
# The name of the MQTT topic.
|
621
621
|
#
|
622
622
|
# @option params [Integer] :qos
|
623
|
-
# The Quality of Service (QoS) level.
|
623
|
+
# The Quality of Service (QoS) level. The default QoS level is 0.
|
624
624
|
#
|
625
625
|
# @option params [Boolean] :retain
|
626
626
|
# A Boolean value that determines whether to set the RETAIN flag when
|
@@ -641,6 +641,52 @@ module Aws::IoTDataPlane
|
|
641
641
|
# the retained message identified by **topic** from Amazon Web Services
|
642
642
|
# IoT Core.
|
643
643
|
#
|
644
|
+
# @option params [String] :user_properties
|
645
|
+
# A JSON string that contains an array of JSON objects. If you don’t use
|
646
|
+
# Amazon Web Services SDK or CLI, you must encode the JSON string to
|
647
|
+
# base64 format before adding it to the HTTP header. `userProperties` is
|
648
|
+
# an HTTP header value in the API.
|
649
|
+
#
|
650
|
+
# The following example `userProperties` parameter is a JSON string
|
651
|
+
# which represents two User Properties. Note that it needs to be
|
652
|
+
# base64-encoded:
|
653
|
+
#
|
654
|
+
# `[\{"deviceName": "alpha"\}, \{"deviceCnt": "45"\}]`
|
655
|
+
#
|
656
|
+
# **SDK automatically handles json encoding and base64 encoding for you
|
657
|
+
# when the required value (Hash, Array, etc.) is provided according to
|
658
|
+
# the description.**
|
659
|
+
#
|
660
|
+
# @option params [String] :payload_format_indicator
|
661
|
+
# An `Enum` string value that indicates whether the payload is formatted
|
662
|
+
# as UTF-8. `payloadFormatIndicator` is an HTTP header value in the API.
|
663
|
+
#
|
664
|
+
# @option params [String] :content_type
|
665
|
+
# A UTF-8 encoded string that describes the content of the publishing
|
666
|
+
# message.
|
667
|
+
#
|
668
|
+
# @option params [String] :response_topic
|
669
|
+
# A UTF-8 encoded string that's used as the topic name for a response
|
670
|
+
# message. The response topic is used to describe the topic which the
|
671
|
+
# receiver should publish to as part of the request-response flow. The
|
672
|
+
# topic must not contain wildcard characters.
|
673
|
+
#
|
674
|
+
# @option params [String] :correlation_data
|
675
|
+
# The base64-encoded binary data used by the sender of the request
|
676
|
+
# message to identify which request the response message is for when
|
677
|
+
# it's received. `correlationData` is an HTTP header value in the API.
|
678
|
+
#
|
679
|
+
# @option params [Integer] :message_expiry
|
680
|
+
# A user-defined integer value that represents the message expiry
|
681
|
+
# interval in seconds. If absent, the message doesn't expire. For more
|
682
|
+
# information about the limits of `messageExpiry`, see [Amazon Web
|
683
|
+
# Services IoT Core message broker and protocol limits and quotas ][1]
|
684
|
+
# from the Amazon Web Services Reference Guide.
|
685
|
+
#
|
686
|
+
#
|
687
|
+
#
|
688
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits
|
689
|
+
#
|
644
690
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
645
691
|
#
|
646
692
|
# @example Request syntax with placeholder values
|
@@ -650,6 +696,12 @@ module Aws::IoTDataPlane
|
|
650
696
|
# qos: 1,
|
651
697
|
# retain: false,
|
652
698
|
# payload: "data",
|
699
|
+
# user_properties: "UserProperties",
|
700
|
+
# payload_format_indicator: "UNSPECIFIED_BYTES", # accepts UNSPECIFIED_BYTES, UTF8_DATA
|
701
|
+
# content_type: "ContentType",
|
702
|
+
# response_topic: "ResponseTopic",
|
703
|
+
# correlation_data: "CorrelationData",
|
704
|
+
# message_expiry: 1,
|
653
705
|
# })
|
654
706
|
#
|
655
707
|
# @overload publish(params = {})
|
@@ -716,7 +768,7 @@ module Aws::IoTDataPlane
|
|
716
768
|
params: params,
|
717
769
|
config: config)
|
718
770
|
context[:gem_name] = 'aws-sdk-iotdataplane'
|
719
|
-
context[:gem_version] = '1.
|
771
|
+
context[:gem_version] = '1.42.0'
|
720
772
|
Seahorse::Client::Request.new(handlers, context)
|
721
773
|
end
|
722
774
|
|
@@ -14,6 +14,8 @@ module Aws::IoTDataPlane
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
17
|
+
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
18
|
+
CorrelationData = Shapes::StringShape.new(name: 'CorrelationData')
|
17
19
|
DeleteThingShadowRequest = Shapes::StructureShape.new(name: 'DeleteThingShadowRequest')
|
18
20
|
DeleteThingShadowResponse = Shapes::StructureShape.new(name: 'DeleteThingShadowResponse')
|
19
21
|
GetRetainedMessageRequest = Shapes::StructureShape.new(name: 'GetRetainedMessageRequest')
|
@@ -28,16 +30,19 @@ module Aws::IoTDataPlane
|
|
28
30
|
ListRetainedMessagesRequest = Shapes::StructureShape.new(name: 'ListRetainedMessagesRequest')
|
29
31
|
ListRetainedMessagesResponse = Shapes::StructureShape.new(name: 'ListRetainedMessagesResponse')
|
30
32
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
33
|
+
MessageExpiry = Shapes::IntegerShape.new(name: 'MessageExpiry')
|
31
34
|
MethodNotAllowedException = Shapes::StructureShape.new(name: 'MethodNotAllowedException')
|
32
35
|
NamedShadowList = Shapes::ListShape.new(name: 'NamedShadowList')
|
33
36
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
34
37
|
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
35
38
|
Payload = Shapes::BlobShape.new(name: 'Payload')
|
39
|
+
PayloadFormatIndicator = Shapes::StringShape.new(name: 'PayloadFormatIndicator')
|
36
40
|
PayloadSize = Shapes::IntegerShape.new(name: 'PayloadSize')
|
37
41
|
PublishRequest = Shapes::StructureShape.new(name: 'PublishRequest')
|
38
42
|
Qos = Shapes::IntegerShape.new(name: 'Qos')
|
39
43
|
RequestEntityTooLargeException = Shapes::StructureShape.new(name: 'RequestEntityTooLargeException')
|
40
44
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
45
|
+
ResponseTopic = Shapes::StringShape.new(name: 'ResponseTopic')
|
41
46
|
Retain = Shapes::BooleanShape.new(name: 'Retain')
|
42
47
|
RetainedMessageList = Shapes::ListShape.new(name: 'RetainedMessageList')
|
43
48
|
RetainedMessageSummary = Shapes::StructureShape.new(name: 'RetainedMessageSummary')
|
@@ -51,6 +56,7 @@ module Aws::IoTDataPlane
|
|
51
56
|
UnsupportedDocumentEncodingException = Shapes::StructureShape.new(name: 'UnsupportedDocumentEncodingException')
|
52
57
|
UpdateThingShadowRequest = Shapes::StructureShape.new(name: 'UpdateThingShadowRequest')
|
53
58
|
UpdateThingShadowResponse = Shapes::StructureShape.new(name: 'UpdateThingShadowResponse')
|
59
|
+
UserProperties = Shapes::StringShape.new(name: 'UserProperties')
|
54
60
|
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
55
61
|
|
56
62
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
@@ -116,6 +122,12 @@ module Aws::IoTDataPlane
|
|
116
122
|
PublishRequest.add_member(:qos, Shapes::ShapeRef.new(shape: Qos, location: "querystring", location_name: "qos"))
|
117
123
|
PublishRequest.add_member(:retain, Shapes::ShapeRef.new(shape: Retain, location: "querystring", location_name: "retain"))
|
118
124
|
PublishRequest.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
|
125
|
+
PublishRequest.add_member(:user_properties, Shapes::ShapeRef.new(shape: UserProperties, location: "header", location_name: "x-amz-mqtt5-user-properties", metadata: {"jsonvalue"=>true}))
|
126
|
+
PublishRequest.add_member(:payload_format_indicator, Shapes::ShapeRef.new(shape: PayloadFormatIndicator, location: "header", location_name: "x-amz-mqtt5-payload-format-indicator"))
|
127
|
+
PublishRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location: "querystring", location_name: "contentType"))
|
128
|
+
PublishRequest.add_member(:response_topic, Shapes::ShapeRef.new(shape: ResponseTopic, location: "querystring", location_name: "responseTopic"))
|
129
|
+
PublishRequest.add_member(:correlation_data, Shapes::ShapeRef.new(shape: CorrelationData, location: "header", location_name: "x-amz-mqtt5-correlation-data"))
|
130
|
+
PublishRequest.add_member(:message_expiry, Shapes::ShapeRef.new(shape: MessageExpiry, location: "querystring", location_name: "messageExpiry"))
|
119
131
|
PublishRequest.struct_class = Types::PublishRequest
|
120
132
|
PublishRequest[:payload] = :payload
|
121
133
|
PublishRequest[:payload_member] = PublishRequest.member(:payload)
|
@@ -266,6 +278,7 @@ module Aws::IoTDataPlane
|
|
266
278
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
267
279
|
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
268
280
|
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
281
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
269
282
|
end)
|
270
283
|
|
271
284
|
api.add_operation(:update_thing_shadow, Seahorse::Model::Operation.new.tap do |o|
|
@@ -9,134 +9,64 @@
|
|
9
9
|
|
10
10
|
module Aws::IoTDataPlane
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-east-1")
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-east-1.amazonaws.com", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-east-2")
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-east-2.amazonaws.com", headers: {}, properties: {})
|
40
|
+
end
|
41
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "ca-central-1")
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.ca-central-1.amazonaws.com", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-west-1")
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-west-1.amazonaws.com", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-west-2")
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-west-2.amazonaws.com", headers: {}, properties: {})
|
49
|
+
end
|
50
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
51
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
52
|
+
end
|
53
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
|
54
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
55
|
+
end
|
56
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
57
|
+
end
|
58
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
59
|
+
end
|
60
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
61
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
62
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
63
|
+
end
|
64
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
65
|
+
end
|
66
|
+
return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
67
|
end
|
22
|
-
|
23
|
-
end
|
68
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
69
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-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nRpZXMiOnt9LCJoZWFkZXJzIjp7fX0s
|
138
|
-
InR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
|
139
|
-
|
140
|
-
JSON
|
141
71
|
end
|
142
72
|
end
|
@@ -24,14 +24,6 @@ module Aws::IoTDataPlane
|
|
24
24
|
|
25
25
|
# The input for the DeleteThingShadow operation.
|
26
26
|
#
|
27
|
-
# @note When making an API call, you may pass DeleteThingShadowRequest
|
28
|
-
# data as a hash:
|
29
|
-
#
|
30
|
-
# {
|
31
|
-
# thing_name: "ThingName", # required
|
32
|
-
# shadow_name: "ShadowName",
|
33
|
-
# }
|
34
|
-
#
|
35
27
|
# @!attribute [rw] thing_name
|
36
28
|
# The name of the thing.
|
37
29
|
# @return [String]
|
@@ -61,13 +53,6 @@ module Aws::IoTDataPlane
|
|
61
53
|
|
62
54
|
# The input for the GetRetainedMessage operation.
|
63
55
|
#
|
64
|
-
# @note When making an API call, you may pass GetRetainedMessageRequest
|
65
|
-
# data as a hash:
|
66
|
-
#
|
67
|
-
# {
|
68
|
-
# topic: "Topic", # required
|
69
|
-
# }
|
70
|
-
#
|
71
56
|
# @!attribute [rw] topic
|
72
57
|
# The topic name of the retained message to retrieve.
|
73
58
|
# @return [String]
|
@@ -109,14 +94,6 @@ module Aws::IoTDataPlane
|
|
109
94
|
|
110
95
|
# The input for the GetThingShadow operation.
|
111
96
|
#
|
112
|
-
# @note When making an API call, you may pass GetThingShadowRequest
|
113
|
-
# data as a hash:
|
114
|
-
#
|
115
|
-
# {
|
116
|
-
# thing_name: "ThingName", # required
|
117
|
-
# shadow_name: "ShadowName",
|
118
|
-
# }
|
119
|
-
#
|
120
97
|
# @!attribute [rw] thing_name
|
121
98
|
# The name of the thing.
|
122
99
|
# @return [String]
|
@@ -168,15 +145,6 @@ module Aws::IoTDataPlane
|
|
168
145
|
include Aws::Structure
|
169
146
|
end
|
170
147
|
|
171
|
-
# @note When making an API call, you may pass ListNamedShadowsForThingRequest
|
172
|
-
# data as a hash:
|
173
|
-
#
|
174
|
-
# {
|
175
|
-
# thing_name: "ThingName", # required
|
176
|
-
# next_token: "NextToken",
|
177
|
-
# page_size: 1,
|
178
|
-
# }
|
179
|
-
#
|
180
148
|
# @!attribute [rw] thing_name
|
181
149
|
# The name of the thing.
|
182
150
|
# @return [String]
|
@@ -218,14 +186,6 @@ module Aws::IoTDataPlane
|
|
218
186
|
include Aws::Structure
|
219
187
|
end
|
220
188
|
|
221
|
-
# @note When making an API call, you may pass ListRetainedMessagesRequest
|
222
|
-
# data as a hash:
|
223
|
-
#
|
224
|
-
# {
|
225
|
-
# next_token: "NextToken",
|
226
|
-
# max_results: 1,
|
227
|
-
# }
|
228
|
-
#
|
229
189
|
# @!attribute [rw] next_token
|
230
190
|
# To retrieve the next set of results, the `nextToken` value from a
|
231
191
|
# previous response; otherwise **null** to receive the first set of
|
@@ -275,22 +235,12 @@ module Aws::IoTDataPlane
|
|
275
235
|
|
276
236
|
# The input for the Publish operation.
|
277
237
|
#
|
278
|
-
# @note When making an API call, you may pass PublishRequest
|
279
|
-
# data as a hash:
|
280
|
-
#
|
281
|
-
# {
|
282
|
-
# topic: "Topic", # required
|
283
|
-
# qos: 1,
|
284
|
-
# retain: false,
|
285
|
-
# payload: "data",
|
286
|
-
# }
|
287
|
-
#
|
288
238
|
# @!attribute [rw] topic
|
289
239
|
# The name of the MQTT topic.
|
290
240
|
# @return [String]
|
291
241
|
#
|
292
242
|
# @!attribute [rw] qos
|
293
|
-
# The Quality of Service (QoS) level.
|
243
|
+
# The Quality of Service (QoS) level. The default QoS level is 0.
|
294
244
|
# @return [Integer]
|
295
245
|
#
|
296
246
|
# @!attribute [rw] retain
|
@@ -314,11 +264,67 @@ module Aws::IoTDataPlane
|
|
314
264
|
# Services IoT Core.
|
315
265
|
# @return [String]
|
316
266
|
#
|
267
|
+
# @!attribute [rw] user_properties
|
268
|
+
# A JSON string that contains an array of JSON objects. If you don’t
|
269
|
+
# use Amazon Web Services SDK or CLI, you must encode the JSON string
|
270
|
+
# to base64 format before adding it to the HTTP header.
|
271
|
+
# `userProperties` is an HTTP header value in the API.
|
272
|
+
#
|
273
|
+
# The following example `userProperties` parameter is a JSON string
|
274
|
+
# which represents two User Properties. Note that it needs to be
|
275
|
+
# base64-encoded:
|
276
|
+
#
|
277
|
+
# `[\{"deviceName": "alpha"\}, \{"deviceCnt": "45"\}]`
|
278
|
+
# @return [String]
|
279
|
+
#
|
280
|
+
# @!attribute [rw] payload_format_indicator
|
281
|
+
# An `Enum` string value that indicates whether the payload is
|
282
|
+
# formatted as UTF-8. `payloadFormatIndicator` is an HTTP header value
|
283
|
+
# in the API.
|
284
|
+
# @return [String]
|
285
|
+
#
|
286
|
+
# @!attribute [rw] content_type
|
287
|
+
# A UTF-8 encoded string that describes the content of the publishing
|
288
|
+
# message.
|
289
|
+
# @return [String]
|
290
|
+
#
|
291
|
+
# @!attribute [rw] response_topic
|
292
|
+
# A UTF-8 encoded string that's used as the topic name for a response
|
293
|
+
# message. The response topic is used to describe the topic which the
|
294
|
+
# receiver should publish to as part of the request-response flow. The
|
295
|
+
# topic must not contain wildcard characters.
|
296
|
+
# @return [String]
|
297
|
+
#
|
298
|
+
# @!attribute [rw] correlation_data
|
299
|
+
# The base64-encoded binary data used by the sender of the request
|
300
|
+
# message to identify which request the response message is for when
|
301
|
+
# it's received. `correlationData` is an HTTP header value in the
|
302
|
+
# API.
|
303
|
+
# @return [String]
|
304
|
+
#
|
305
|
+
# @!attribute [rw] message_expiry
|
306
|
+
# A user-defined integer value that represents the message expiry
|
307
|
+
# interval in seconds. If absent, the message doesn't expire. For
|
308
|
+
# more information about the limits of `messageExpiry`, see [Amazon
|
309
|
+
# Web Services IoT Core message broker and protocol limits and quotas
|
310
|
+
# ][1] from the Amazon Web Services Reference Guide.
|
311
|
+
#
|
312
|
+
#
|
313
|
+
#
|
314
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits
|
315
|
+
# @return [Integer]
|
316
|
+
#
|
317
317
|
class PublishRequest < Struct.new(
|
318
318
|
:topic,
|
319
319
|
:qos,
|
320
320
|
:retain,
|
321
|
-
:payload
|
321
|
+
:payload,
|
322
|
+
:user_properties,
|
323
|
+
:payload_format_indicator,
|
324
|
+
:content_type,
|
325
|
+
:response_topic,
|
326
|
+
:correlation_data,
|
327
|
+
:message_expiry)
|
322
328
|
SENSITIVE = []
|
323
329
|
include Aws::Structure
|
324
330
|
end
|
@@ -426,15 +432,6 @@ module Aws::IoTDataPlane
|
|
426
432
|
|
427
433
|
# The input for the UpdateThingShadow operation.
|
428
434
|
#
|
429
|
-
# @note When making an API call, you may pass UpdateThingShadowRequest
|
430
|
-
# data as a hash:
|
431
|
-
#
|
432
|
-
# {
|
433
|
-
# thing_name: "ThingName", # required
|
434
|
-
# shadow_name: "ShadowName",
|
435
|
-
# payload: "data", # required
|
436
|
-
# }
|
437
|
-
#
|
438
435
|
# @!attribute [rw] thing_name
|
439
436
|
# The name of the thing.
|
440
437
|
# @return [String]
|
data/lib/aws-sdk-iotdataplane.rb
CHANGED
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.42.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:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|