@aws-sdk/client-iot-data-plane 3.300.0 → 3.303.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const r = "required", s = "fn", t = "argv", u = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = { [r]: false, "type": "String" }, g = { [r]: true, "default": false, "type": "Boolean" }, h = { [u]: "Region" }, i = { [u]: "Endpoint" }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, l = {}, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: a }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: a }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [h], assign: a }], type: b, rules: [{ conditions: [{ [s]: "isSet", [t]: o }, { [s]: "parseURL", [t]: o, assign: "url" }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { conditions: [j, k], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ endpoint: { url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [s]: e, [t]: [h, "us-east-1"] }], endpoint: { url: "https://data.iot-fips.us-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-east-2"] }], endpoint: { url: "https://data.iot-fips.us-east-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "ca-central-1"] }], endpoint: { url: "https://data.iot-fips.ca-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-west-1"] }], endpoint: { url: "https://data.iot-fips.us-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-west-2"] }], endpoint: { url: "https://data.iot-fips.us-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-gov-west-1"] }], endpoint: { url: "https://data.iot-fips.us-gov-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-gov-east-1"] }], endpoint: { url: "https://data.iot-fips.us-gov-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] };
4
+ const u = "required", v = "fn", w = "argv", x = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [u]: false, "type": "String" }, h = { [u]: true, "default": false, "type": "Boolean" }, i = { [x]: "Endpoint" }, j = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, k = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, l = {}, m = { [x]: "Region" }, n = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsFIPS"] }] }, o = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsDualStack"] }] }, p = { [v]: "getAttr", [w]: [{ [x]: e }, "name"] }, q = { "url": "https://data-ats.iot.{Region}.amazonaws.com", "properties": {}, "headers": {} }, r = [j], s = [k], t = [m];
6
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [v]: a, [w]: [i] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [n, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ conditions: [{ [v]: f, [w]: [m, "ca-central-1"] }], endpoint: { url: "https://data.iot-fips.ca-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-east-1"] }], endpoint: { url: "https://data.iot-fips.us-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-east-2"] }], endpoint: { url: "https://data.iot-fips.us-east-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-west-1"] }], endpoint: { url: "https://data.iot-fips.us-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-west-2"] }], endpoint: { url: "https://data.iot-fips.us-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-gov-east-1"] }], endpoint: { url: "https://data.iot-fips.us-gov-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-gov-west-1"] }], endpoint: { url: "https://data.iot-fips.us-gov-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [v]: f, [w]: [m, "cn-north-1"] }], endpoint: { url: "https://data.ats.iot.cn-north-1.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: ["aws", p] }], endpoint: q, type: d }, { conditions: [{ [v]: f, [w]: ["aws-cn", p] }], endpoint: { url: "https://data-ats.iot.{Region}.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: ["aws-us-gov", p] }], endpoint: q, type: d }, { endpoint: { url: "https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -119,11 +119,10 @@ class UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException_
119
119
  }
120
120
  }
121
121
  exports.UnsupportedDocumentEncodingException = UnsupportedDocumentEncodingException;
122
- var PayloadFormatIndicator;
123
- (function (PayloadFormatIndicator) {
124
- PayloadFormatIndicator["UNSPECIFIED_BYTES"] = "UNSPECIFIED_BYTES";
125
- PayloadFormatIndicator["UTF8_DATA"] = "UTF8_DATA";
126
- })(PayloadFormatIndicator = exports.PayloadFormatIndicator || (exports.PayloadFormatIndicator = {}));
122
+ exports.PayloadFormatIndicator = {
123
+ UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
124
+ UTF8_DATA: "UTF8_DATA",
125
+ };
127
126
  class RequestEntityTooLargeException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
128
127
  constructor(opts) {
129
128
  super({
@@ -1,4 +1,4 @@
1
- const r = "required", s = "fn", t = "argv", u = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = { [r]: false, "type": "String" }, g = { [r]: true, "default": false, "type": "Boolean" }, h = { [u]: "Region" }, i = { [u]: "Endpoint" }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, l = {}, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: a }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: a }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [h], assign: a }], type: b, rules: [{ conditions: [{ [s]: "isSet", [t]: o }, { [s]: "parseURL", [t]: o, assign: "url" }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { conditions: [j, k], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ endpoint: { url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [s]: e, [t]: [h, "us-east-1"] }], endpoint: { url: "https://data.iot-fips.us-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-east-2"] }], endpoint: { url: "https://data.iot-fips.us-east-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "ca-central-1"] }], endpoint: { url: "https://data.iot-fips.ca-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-west-1"] }], endpoint: { url: "https://data.iot-fips.us-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-west-2"] }], endpoint: { url: "https://data.iot-fips.us-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-gov-west-1"] }], endpoint: { url: "https://data.iot-fips.us-gov-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [s]: e, [t]: [h, "us-gov-east-1"] }], endpoint: { url: "https://data.iot-fips.us-gov-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] };
1
+ const u = "required", v = "fn", w = "argv", x = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [u]: false, "type": "String" }, h = { [u]: true, "default": false, "type": "Boolean" }, i = { [x]: "Endpoint" }, j = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, k = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, l = {}, m = { [x]: "Region" }, n = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsFIPS"] }] }, o = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsDualStack"] }] }, p = { [v]: "getAttr", [w]: [{ [x]: e }, "name"] }, q = { "url": "https://data-ats.iot.{Region}.amazonaws.com", "properties": {}, "headers": {} }, r = [j], s = [k], t = [m];
3
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [v]: a, [w]: [i] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [n, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ conditions: [{ [v]: f, [w]: [m, "ca-central-1"] }], endpoint: { url: "https://data.iot-fips.ca-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-east-1"] }], endpoint: { url: "https://data.iot-fips.us-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-east-2"] }], endpoint: { url: "https://data.iot-fips.us-east-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-west-1"] }], endpoint: { url: "https://data.iot-fips.us-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-west-2"] }], endpoint: { url: "https://data.iot-fips.us-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-gov-east-1"] }], endpoint: { url: "https://data.iot-fips.us-gov-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: [m, "us-gov-west-1"] }], endpoint: { url: "https://data.iot-fips.us-gov-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [v]: f, [w]: [m, "cn-north-1"] }], endpoint: { url: "https://data.ats.iot.cn-north-1.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: ["aws", p] }], endpoint: q, type: d }, { conditions: [{ [v]: f, [w]: ["aws-cn", p] }], endpoint: { url: "https://data-ats.iot.{Region}.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [v]: f, [w]: ["aws-us-gov", p] }], endpoint: q, type: d }, { endpoint: { url: "https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -107,11 +107,10 @@ export class UnsupportedDocumentEncodingException extends __BaseException {
107
107
  Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
108
108
  }
109
109
  }
110
- export var PayloadFormatIndicator;
111
- (function (PayloadFormatIndicator) {
112
- PayloadFormatIndicator["UNSPECIFIED_BYTES"] = "UNSPECIFIED_BYTES";
113
- PayloadFormatIndicator["UTF8_DATA"] = "UTF8_DATA";
114
- })(PayloadFormatIndicator || (PayloadFormatIndicator = {}));
110
+ export const PayloadFormatIndicator = {
111
+ UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
112
+ UTF8_DATA: "UTF8_DATA",
113
+ };
115
114
  export class RequestEntityTooLargeException extends __BaseException {
116
115
  constructor(opts) {
117
116
  super({
@@ -28,7 +28,7 @@ export interface DeleteThingShadowCommandOutput extends DeleteThingShadowRespons
28
28
  * import { IoTDataPlaneClient, DeleteThingShadowCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
29
29
  * // const { IoTDataPlaneClient, DeleteThingShadowCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
30
30
  * const client = new IoTDataPlaneClient(config);
31
- * const input = {
31
+ * const input = { // DeleteThingShadowRequest
32
32
  * thingName: "STRING_VALUE", // required
33
33
  * shadowName: "STRING_VALUE",
34
34
  * };
@@ -32,7 +32,7 @@ export interface GetRetainedMessageCommandOutput extends GetRetainedMessageRespo
32
32
  * import { IoTDataPlaneClient, GetRetainedMessageCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
33
33
  * // const { IoTDataPlaneClient, GetRetainedMessageCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
34
34
  * const client = new IoTDataPlaneClient(config);
35
- * const input = {
35
+ * const input = { // GetRetainedMessageRequest
36
36
  * topic: "STRING_VALUE", // required
37
37
  * };
38
38
  * const command = new GetRetainedMessageCommand(input);
@@ -29,7 +29,7 @@ export interface GetThingShadowCommandOutput extends GetThingShadowResponse, __M
29
29
  * import { IoTDataPlaneClient, GetThingShadowCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
30
30
  * // const { IoTDataPlaneClient, GetThingShadowCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
31
31
  * const client = new IoTDataPlaneClient(config);
32
- * const input = {
32
+ * const input = { // GetThingShadowRequest
33
33
  * thingName: "STRING_VALUE", // required
34
34
  * shadowName: "STRING_VALUE",
35
35
  * };
@@ -27,7 +27,7 @@ export interface ListNamedShadowsForThingCommandOutput extends ListNamedShadowsF
27
27
  * import { IoTDataPlaneClient, ListNamedShadowsForThingCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
28
28
  * // const { IoTDataPlaneClient, ListNamedShadowsForThingCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
29
29
  * const client = new IoTDataPlaneClient(config);
30
- * const input = {
30
+ * const input = { // ListNamedShadowsForThingRequest
31
31
  * thingName: "STRING_VALUE", // required
32
32
  * nextToken: "STRING_VALUE",
33
33
  * pageSize: Number("int"),
@@ -35,7 +35,7 @@ export interface ListRetainedMessagesCommandOutput extends ListRetainedMessagesR
35
35
  * import { IoTDataPlaneClient, ListRetainedMessagesCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
36
36
  * // const { IoTDataPlaneClient, ListRetainedMessagesCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
37
37
  * const client = new IoTDataPlaneClient(config);
38
- * const input = {
38
+ * const input = { // ListRetainedMessagesRequest
39
39
  * nextToken: "STRING_VALUE",
40
40
  * maxResults: Number("int"),
41
41
  * };
@@ -32,7 +32,7 @@ export interface PublishCommandOutput extends __MetadataBearer {
32
32
  * import { IoTDataPlaneClient, PublishCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
33
33
  * // const { IoTDataPlaneClient, PublishCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
34
34
  * const client = new IoTDataPlaneClient(config);
35
- * const input = {
35
+ * const input = { // PublishRequest
36
36
  * topic: "STRING_VALUE", // required
37
37
  * qos: Number("int"),
38
38
  * retain: true || false,
@@ -29,7 +29,7 @@ export interface UpdateThingShadowCommandOutput extends UpdateThingShadowRespons
29
29
  * import { IoTDataPlaneClient, UpdateThingShadowCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
30
30
  * // const { IoTDataPlaneClient, UpdateThingShadowCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
31
31
  * const client = new IoTDataPlaneClient(config);
32
- * const input = {
32
+ * const input = { // UpdateThingShadowRequest
33
33
  * thingName: "STRING_VALUE", // required
34
34
  * shadowName: "STRING_VALUE",
35
35
  * payload: "BLOB_VALUE", // required
@@ -275,11 +275,16 @@ export interface ListRetainedMessagesResponse {
275
275
  }
276
276
  /**
277
277
  * @public
278
+ * @enum
278
279
  */
279
- export declare enum PayloadFormatIndicator {
280
- UNSPECIFIED_BYTES = "UNSPECIFIED_BYTES",
281
- UTF8_DATA = "UTF8_DATA"
282
- }
280
+ export declare const PayloadFormatIndicator: {
281
+ readonly UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES";
282
+ readonly UTF8_DATA: "UTF8_DATA";
283
+ };
284
+ /**
285
+ * @public
286
+ */
287
+ export type PayloadFormatIndicator = (typeof PayloadFormatIndicator)[keyof typeof PayloadFormatIndicator];
283
288
  /**
284
289
  * @public
285
290
  * <p>The input for the Publish operation.</p>
@@ -314,7 +319,7 @@ export interface PublishRequest {
314
319
  * <code>userProperties</code> is an HTTP header value in the API.</p>
315
320
  * <p>The following example <code>userProperties</code> parameter is a JSON string which
316
321
  * represents two User Properties. Note that it needs to be base64-encoded:</p>
317
- * <p>
322
+ * <p>
318
323
  * <code>[\{"deviceName": "alpha"\}, \{"deviceCnt": "45"\}]</code>
319
324
  * </p>
320
325
  */
@@ -114,10 +114,12 @@ export interface ListRetainedMessagesResponse {
114
114
  retainedTopics?: RetainedMessageSummary[];
115
115
  nextToken?: string;
116
116
  }
117
- export declare enum PayloadFormatIndicator {
118
- UNSPECIFIED_BYTES = "UNSPECIFIED_BYTES",
119
- UTF8_DATA = "UTF8_DATA",
120
- }
117
+ export declare const PayloadFormatIndicator: {
118
+ readonly UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES";
119
+ readonly UTF8_DATA: "UTF8_DATA";
120
+ };
121
+ export type PayloadFormatIndicator =
122
+ (typeof PayloadFormatIndicator)[keyof typeof PayloadFormatIndicator];
121
123
  export interface PublishRequest {
122
124
  topic: string | undefined;
123
125
  qos?: number;
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.300.0",
4
+ "version": "3.303.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",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",