@aws-sdk/client-iot-data-plane 3.300.0 → 3.301.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.
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-types/commands/DeleteThingShadowCommand.d.ts +1 -1
- package/dist-types/commands/GetRetainedMessageCommand.d.ts +1 -1
- package/dist-types/commands/GetThingShadowCommand.d.ts +1 -1
- package/dist-types/commands/ListNamedShadowsForThingCommand.d.ts +1 -1
- package/dist-types/commands/ListRetainedMessagesCommand.d.ts +1 -1
- package/dist-types/commands/PublishCommand.d.ts +1 -1
- package/dist-types/commands/UpdateThingShadowCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
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;
|
|
@@ -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
|
|
@@ -314,7 +314,7 @@ export interface PublishRequest {
|
|
|
314
314
|
* <code>userProperties</code> is an HTTP header value in the API.</p>
|
|
315
315
|
* <p>The following example <code>userProperties</code> parameter is a JSON string which
|
|
316
316
|
* represents two User Properties. Note that it needs to be base64-encoded:</p>
|
|
317
|
-
*
|
|
317
|
+
* <p>
|
|
318
318
|
* <code>[\{"deviceName": "alpha"\}, \{"deviceCnt": "45"\}]</code>
|
|
319
319
|
* </p>
|
|
320
320
|
*/
|
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.
|
|
4
|
+
"version": "3.301.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,9 +21,9 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.301.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.300.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.301.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|