@aws-sdk/client-iot-data-plane 3.310.0 → 3.311.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.
@@ -243,6 +243,9 @@ const de_GetRetainedMessageCommand = async (output, context) => {
243
243
  if (data.topic != null) {
244
244
  contents.topic = (0, smithy_client_1.expectString)(data.topic);
245
245
  }
246
+ if (data.userProperties != null) {
247
+ contents.userProperties = context.base64Decoder(data.userProperties);
248
+ }
246
249
  return contents;
247
250
  };
248
251
  exports.de_GetRetainedMessageCommand = de_GetRetainedMessageCommand;
@@ -232,6 +232,9 @@ export const de_GetRetainedMessageCommand = async (output, context) => {
232
232
  if (data.topic != null) {
233
233
  contents.topic = __expectString(data.topic);
234
234
  }
235
+ if (data.userProperties != null) {
236
+ contents.userProperties = context.base64Decoder(data.userProperties);
237
+ }
235
238
  return contents;
236
239
  };
237
240
  const de_GetRetainedMessageCommandError = async (output, context) => {
@@ -36,7 +36,7 @@ export declare class IoTDataPlane extends IoTDataPlaneClient {
36
36
  * <p>Gets the details of a single retained message for the specified topic.</p>
37
37
  * <p>This action returns the message payload of the retained message, which can
38
38
  * incur messaging costs. To list only the topic names of the retained messages, call
39
- * <a href="/iot/latest/developerguide/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
39
+ * <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
40
40
  * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">GetRetainedMessage</a> action.</p>
41
41
  * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
42
42
  * pricing - Messaging</a>.</p>
@@ -69,7 +69,7 @@ export declare class IoTDataPlane extends IoTDataPlaneClient {
69
69
  * return any message payloads. Although this action doesn't return a message payload,
70
70
  * it can still incur messaging costs.</p>
71
71
  * <p>To get the message payload of a retained message, call
72
- * <a href="https://docs.aws.amazon.com/iot/latest/developerguide/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
72
+ * <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
73
73
  * with the topic name of the retained message.</p>
74
74
  * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">ListRetainedMessages</a> action.</p>
75
75
  * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
@@ -22,7 +22,7 @@ export interface GetRetainedMessageCommandOutput extends GetRetainedMessageRespo
22
22
  * <p>Gets the details of a single retained message for the specified topic.</p>
23
23
  * <p>This action returns the message payload of the retained message, which can
24
24
  * incur messaging costs. To list only the topic names of the retained messages, call
25
- * <a href="/iot/latest/developerguide/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
25
+ * <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
26
26
  * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">GetRetainedMessage</a> action.</p>
27
27
  * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
28
28
  * pricing - Messaging</a>.</p>
@@ -24,7 +24,7 @@ export interface ListRetainedMessagesCommandOutput extends ListRetainedMessagesR
24
24
  * return any message payloads. Although this action doesn't return a message payload,
25
25
  * it can still incur messaging costs.</p>
26
26
  * <p>To get the message payload of a retained message, call
27
- * <a href="https://docs.aws.amazon.com/iot/latest/developerguide/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
27
+ * <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
28
28
  * with the topic name of the retained message.</p>
29
29
  * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">ListRetainedMessages</a> action.</p>
30
30
  * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
@@ -163,6 +163,16 @@ export interface GetRetainedMessageResponse {
163
163
  * <p>The Epoch date and time, in milliseconds, when the retained message was stored by IoT.</p>
164
164
  */
165
165
  lastModifiedTime?: number;
166
+ /**
167
+ * <p>A base64-encoded JSON string that includes an array of JSON objects, or null if the
168
+ * retained message doesn't include any user properties.</p>
169
+ * <p>The following example <code>userProperties</code> parameter is a JSON string that
170
+ * represents two user properties. Note that it will be base64-encoded:</p>
171
+ * <p>
172
+ * <code>[\{"deviceName": "alpha"\}, \{"deviceCnt": "45"\}]</code>
173
+ * </p>
174
+ */
175
+ userProperties?: Uint8Array;
166
176
  }
167
177
  /**
168
178
  * @public
@@ -82,6 +82,7 @@ export interface GetRetainedMessageResponse {
82
82
  payload?: Uint8Array;
83
83
  qos?: number;
84
84
  lastModifiedTime?: number;
85
+ userProperties?: Uint8Array;
85
86
  }
86
87
  export interface GetThingShadowRequest {
87
88
  thingName: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-data-plane",
3
3
  "description": "AWS SDK for JavaScript Iot Data Plane Client for Node.js, Browser and React Native",
4
- "version": "3.310.0",
4
+ "version": "3.311.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",