@aws-sdk/client-iot-data-plane 3.315.0 → 3.316.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/IoTDataPlane.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IoTDataPlane = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const DeleteThingShadowCommand_1 = require("./commands/DeleteThingShadowCommand");
|
|
5
6
|
const GetRetainedMessageCommand_1 = require("./commands/GetRetainedMessageCommand");
|
|
6
7
|
const GetThingShadowCommand_1 = require("./commands/GetThingShadowCommand");
|
|
@@ -9,104 +10,16 @@ const ListRetainedMessagesCommand_1 = require("./commands/ListRetainedMessagesCo
|
|
|
9
10
|
const PublishCommand_1 = require("./commands/PublishCommand");
|
|
10
11
|
const UpdateThingShadowCommand_1 = require("./commands/UpdateThingShadowCommand");
|
|
11
12
|
const IoTDataPlaneClient_1 = require("./IoTDataPlaneClient");
|
|
13
|
+
const commands = {
|
|
14
|
+
DeleteThingShadowCommand: DeleteThingShadowCommand_1.DeleteThingShadowCommand,
|
|
15
|
+
GetRetainedMessageCommand: GetRetainedMessageCommand_1.GetRetainedMessageCommand,
|
|
16
|
+
GetThingShadowCommand: GetThingShadowCommand_1.GetThingShadowCommand,
|
|
17
|
+
ListNamedShadowsForThingCommand: ListNamedShadowsForThingCommand_1.ListNamedShadowsForThingCommand,
|
|
18
|
+
ListRetainedMessagesCommand: ListRetainedMessagesCommand_1.ListRetainedMessagesCommand,
|
|
19
|
+
PublishCommand: PublishCommand_1.PublishCommand,
|
|
20
|
+
UpdateThingShadowCommand: UpdateThingShadowCommand_1.UpdateThingShadowCommand,
|
|
21
|
+
};
|
|
12
22
|
class IoTDataPlane extends IoTDataPlaneClient_1.IoTDataPlaneClient {
|
|
13
|
-
deleteThingShadow(args, optionsOrCb, cb) {
|
|
14
|
-
const command = new DeleteThingShadowCommand_1.DeleteThingShadowCommand(args);
|
|
15
|
-
if (typeof optionsOrCb === "function") {
|
|
16
|
-
this.send(command, optionsOrCb);
|
|
17
|
-
}
|
|
18
|
-
else if (typeof cb === "function") {
|
|
19
|
-
if (typeof optionsOrCb !== "object")
|
|
20
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
21
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
return this.send(command, optionsOrCb);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
getRetainedMessage(args, optionsOrCb, cb) {
|
|
28
|
-
const command = new GetRetainedMessageCommand_1.GetRetainedMessageCommand(args);
|
|
29
|
-
if (typeof optionsOrCb === "function") {
|
|
30
|
-
this.send(command, optionsOrCb);
|
|
31
|
-
}
|
|
32
|
-
else if (typeof cb === "function") {
|
|
33
|
-
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
35
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
getThingShadow(args, optionsOrCb, cb) {
|
|
42
|
-
const command = new GetThingShadowCommand_1.GetThingShadowCommand(args);
|
|
43
|
-
if (typeof optionsOrCb === "function") {
|
|
44
|
-
this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
else if (typeof cb === "function") {
|
|
47
|
-
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
listNamedShadowsForThing(args, optionsOrCb, cb) {
|
|
56
|
-
const command = new ListNamedShadowsForThingCommand_1.ListNamedShadowsForThingCommand(args);
|
|
57
|
-
if (typeof optionsOrCb === "function") {
|
|
58
|
-
this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
else if (typeof cb === "function") {
|
|
61
|
-
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
listRetainedMessages(args, optionsOrCb, cb) {
|
|
70
|
-
const command = new ListRetainedMessagesCommand_1.ListRetainedMessagesCommand(args);
|
|
71
|
-
if (typeof optionsOrCb === "function") {
|
|
72
|
-
this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
else if (typeof cb === "function") {
|
|
75
|
-
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
publish(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new PublishCommand_1.PublishCommand(args);
|
|
85
|
-
if (typeof optionsOrCb === "function") {
|
|
86
|
-
this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
else if (typeof cb === "function") {
|
|
89
|
-
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
updateThingShadow(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new UpdateThingShadowCommand_1.UpdateThingShadowCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
else if (typeof cb === "function") {
|
|
103
|
-
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
return this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
23
|
}
|
|
112
24
|
exports.IoTDataPlane = IoTDataPlane;
|
|
25
|
+
(0, smithy_client_1.createAggregatedClient)(commands, IoTDataPlane);
|
package/dist-es/IoTDataPlane.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { DeleteThingShadowCommand, } from "./commands/DeleteThingShadowCommand";
|
|
2
3
|
import { GetRetainedMessageCommand, } from "./commands/GetRetainedMessageCommand";
|
|
3
4
|
import { GetThingShadowCommand, } from "./commands/GetThingShadowCommand";
|
|
@@ -6,103 +7,15 @@ import { ListRetainedMessagesCommand, } from "./commands/ListRetainedMessagesCom
|
|
|
6
7
|
import { PublishCommand } from "./commands/PublishCommand";
|
|
7
8
|
import { UpdateThingShadowCommand, } from "./commands/UpdateThingShadowCommand";
|
|
8
9
|
import { IoTDataPlaneClient } from "./IoTDataPlaneClient";
|
|
10
|
+
const commands = {
|
|
11
|
+
DeleteThingShadowCommand,
|
|
12
|
+
GetRetainedMessageCommand,
|
|
13
|
+
GetThingShadowCommand,
|
|
14
|
+
ListNamedShadowsForThingCommand,
|
|
15
|
+
ListRetainedMessagesCommand,
|
|
16
|
+
PublishCommand,
|
|
17
|
+
UpdateThingShadowCommand,
|
|
18
|
+
};
|
|
9
19
|
export class IoTDataPlane extends IoTDataPlaneClient {
|
|
10
|
-
deleteThingShadow(args, optionsOrCb, cb) {
|
|
11
|
-
const command = new DeleteThingShadowCommand(args);
|
|
12
|
-
if (typeof optionsOrCb === "function") {
|
|
13
|
-
this.send(command, optionsOrCb);
|
|
14
|
-
}
|
|
15
|
-
else if (typeof cb === "function") {
|
|
16
|
-
if (typeof optionsOrCb !== "object")
|
|
17
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
18
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
return this.send(command, optionsOrCb);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
getRetainedMessage(args, optionsOrCb, cb) {
|
|
25
|
-
const command = new GetRetainedMessageCommand(args);
|
|
26
|
-
if (typeof optionsOrCb === "function") {
|
|
27
|
-
this.send(command, optionsOrCb);
|
|
28
|
-
}
|
|
29
|
-
else if (typeof cb === "function") {
|
|
30
|
-
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
32
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
getThingShadow(args, optionsOrCb, cb) {
|
|
39
|
-
const command = new GetThingShadowCommand(args);
|
|
40
|
-
if (typeof optionsOrCb === "function") {
|
|
41
|
-
this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof cb === "function") {
|
|
44
|
-
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
listNamedShadowsForThing(args, optionsOrCb, cb) {
|
|
53
|
-
const command = new ListNamedShadowsForThingCommand(args);
|
|
54
|
-
if (typeof optionsOrCb === "function") {
|
|
55
|
-
this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
else if (typeof cb === "function") {
|
|
58
|
-
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
listRetainedMessages(args, optionsOrCb, cb) {
|
|
67
|
-
const command = new ListRetainedMessagesCommand(args);
|
|
68
|
-
if (typeof optionsOrCb === "function") {
|
|
69
|
-
this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
else if (typeof cb === "function") {
|
|
72
|
-
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
publish(args, optionsOrCb, cb) {
|
|
81
|
-
const command = new PublishCommand(args);
|
|
82
|
-
if (typeof optionsOrCb === "function") {
|
|
83
|
-
this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
else if (typeof cb === "function") {
|
|
86
|
-
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
88
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
updateThingShadow(args, optionsOrCb, cb) {
|
|
95
|
-
const command = new UpdateThingShadowCommand(args);
|
|
96
|
-
if (typeof optionsOrCb === "function") {
|
|
97
|
-
this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
else if (typeof cb === "function") {
|
|
100
|
-
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
102
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
return this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
20
|
}
|
|
21
|
+
createAggregatedClient(commands, IoTDataPlane);
|
|
@@ -7,98 +7,63 @@ import { ListRetainedMessagesCommandInput, ListRetainedMessagesCommandOutput } f
|
|
|
7
7
|
import { PublishCommandInput, PublishCommandOutput } from "./commands/PublishCommand";
|
|
8
8
|
import { UpdateThingShadowCommandInput, UpdateThingShadowCommandOutput } from "./commands/UpdateThingShadowCommand";
|
|
9
9
|
import { IoTDataPlaneClient } from "./IoTDataPlaneClient";
|
|
10
|
-
|
|
11
|
-
* @public
|
|
12
|
-
* <fullname>IoT data</fullname>
|
|
13
|
-
* <p>IoT data enables secure, bi-directional communication between Internet-connected things (such as sensors,
|
|
14
|
-
* actuators, embedded devices, or smart appliances) and the Amazon Web Services cloud. It implements a broker for applications and
|
|
15
|
-
* things to publish messages over HTTP (Publish) and retrieve, update, and delete shadows. A shadow is a
|
|
16
|
-
* persistent representation of your things and their state in the Amazon Web Services cloud.</p>
|
|
17
|
-
* <p>Find the endpoint address for actions in IoT data by running this CLI command:</p>
|
|
18
|
-
* <p>
|
|
19
|
-
* <code>aws iot describe-endpoint --endpoint-type iot:Data-ATS</code>
|
|
20
|
-
* </p>
|
|
21
|
-
* <p>The service name used by <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Amazon Web ServicesSignature Version 4</a>
|
|
22
|
-
* to sign requests is: <i>iotdevicegateway</i>.</p>
|
|
23
|
-
*/
|
|
24
|
-
export declare class IoTDataPlane extends IoTDataPlaneClient {
|
|
10
|
+
export interface IoTDataPlane {
|
|
25
11
|
/**
|
|
26
|
-
* @
|
|
27
|
-
* <p>Deletes the shadow for the specified thing.</p>
|
|
28
|
-
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DeleteThingShadow</a> action.</p>
|
|
29
|
-
* <p>For more information, see <a href="http://docs.aws.amazon.com/iot/latest/developerguide/API_DeleteThingShadow.html">DeleteThingShadow</a> in the IoT Developer Guide.</p>
|
|
12
|
+
* @see {@link DeleteThingShadowCommand}
|
|
30
13
|
*/
|
|
31
14
|
deleteThingShadow(args: DeleteThingShadowCommandInput, options?: __HttpHandlerOptions): Promise<DeleteThingShadowCommandOutput>;
|
|
32
15
|
deleteThingShadow(args: DeleteThingShadowCommandInput, cb: (err: any, data?: DeleteThingShadowCommandOutput) => void): void;
|
|
33
16
|
deleteThingShadow(args: DeleteThingShadowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteThingShadowCommandOutput) => void): void;
|
|
34
17
|
/**
|
|
35
|
-
* @
|
|
36
|
-
* <p>Gets the details of a single retained message for the specified topic.</p>
|
|
37
|
-
* <p>This action returns the message payload of the retained message, which can
|
|
38
|
-
* incur messaging costs. To list only the topic names of the retained messages, call
|
|
39
|
-
* <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
|
|
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
|
-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
|
|
42
|
-
* pricing - Messaging</a>.</p>
|
|
18
|
+
* @see {@link GetRetainedMessageCommand}
|
|
43
19
|
*/
|
|
44
20
|
getRetainedMessage(args: GetRetainedMessageCommandInput, options?: __HttpHandlerOptions): Promise<GetRetainedMessageCommandOutput>;
|
|
45
21
|
getRetainedMessage(args: GetRetainedMessageCommandInput, cb: (err: any, data?: GetRetainedMessageCommandOutput) => void): void;
|
|
46
22
|
getRetainedMessage(args: GetRetainedMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRetainedMessageCommandOutput) => void): void;
|
|
47
23
|
/**
|
|
48
|
-
* @
|
|
49
|
-
* <p>Gets the shadow for the specified thing.</p>
|
|
50
|
-
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetThingShadow</a> action.</p>
|
|
51
|
-
* <p>For more information, see <a href="http://docs.aws.amazon.com/iot/latest/developerguide/API_GetThingShadow.html">GetThingShadow</a> in the
|
|
52
|
-
* IoT Developer Guide.</p>
|
|
24
|
+
* @see {@link GetThingShadowCommand}
|
|
53
25
|
*/
|
|
54
26
|
getThingShadow(args: GetThingShadowCommandInput, options?: __HttpHandlerOptions): Promise<GetThingShadowCommandOutput>;
|
|
55
27
|
getThingShadow(args: GetThingShadowCommandInput, cb: (err: any, data?: GetThingShadowCommandOutput) => void): void;
|
|
56
28
|
getThingShadow(args: GetThingShadowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetThingShadowCommandOutput) => void): void;
|
|
57
29
|
/**
|
|
58
|
-
* @
|
|
59
|
-
* <p>Lists the shadows for the specified thing.</p>
|
|
60
|
-
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListNamedShadowsForThing</a> action.</p>
|
|
30
|
+
* @see {@link ListNamedShadowsForThingCommand}
|
|
61
31
|
*/
|
|
62
32
|
listNamedShadowsForThing(args: ListNamedShadowsForThingCommandInput, options?: __HttpHandlerOptions): Promise<ListNamedShadowsForThingCommandOutput>;
|
|
63
33
|
listNamedShadowsForThing(args: ListNamedShadowsForThingCommandInput, cb: (err: any, data?: ListNamedShadowsForThingCommandOutput) => void): void;
|
|
64
34
|
listNamedShadowsForThing(args: ListNamedShadowsForThingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNamedShadowsForThingCommandOutput) => void): void;
|
|
65
35
|
/**
|
|
66
|
-
* @
|
|
67
|
-
* <p>Lists summary information about the retained messages stored for the account.</p>
|
|
68
|
-
* <p>This action returns only the topic names of the retained messages. It doesn't
|
|
69
|
-
* return any message payloads. Although this action doesn't return a message payload,
|
|
70
|
-
* it can still incur messaging costs.</p>
|
|
71
|
-
* <p>To get the message payload of a retained message, call
|
|
72
|
-
* <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
|
|
73
|
-
* with the topic name of the retained message.</p>
|
|
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
|
-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
|
|
76
|
-
* pricing - Messaging</a>.</p>
|
|
36
|
+
* @see {@link ListRetainedMessagesCommand}
|
|
77
37
|
*/
|
|
78
38
|
listRetainedMessages(args: ListRetainedMessagesCommandInput, options?: __HttpHandlerOptions): Promise<ListRetainedMessagesCommandOutput>;
|
|
79
39
|
listRetainedMessages(args: ListRetainedMessagesCommandInput, cb: (err: any, data?: ListRetainedMessagesCommandOutput) => void): void;
|
|
80
40
|
listRetainedMessages(args: ListRetainedMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRetainedMessagesCommandOutput) => void): void;
|
|
81
41
|
/**
|
|
82
|
-
* @
|
|
83
|
-
* <p>Publishes an MQTT message.</p>
|
|
84
|
-
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">Publish</a> action.</p>
|
|
85
|
-
* <p>For more information about MQTT messages, see
|
|
86
|
-
* <a href="http://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html">MQTT Protocol</a> in the
|
|
87
|
-
* IoT Developer Guide.</p>
|
|
88
|
-
* <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
|
|
89
|
-
* pricing - Messaging</a>.</p>
|
|
42
|
+
* @see {@link PublishCommand}
|
|
90
43
|
*/
|
|
91
44
|
publish(args: PublishCommandInput, options?: __HttpHandlerOptions): Promise<PublishCommandOutput>;
|
|
92
45
|
publish(args: PublishCommandInput, cb: (err: any, data?: PublishCommandOutput) => void): void;
|
|
93
46
|
publish(args: PublishCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PublishCommandOutput) => void): void;
|
|
94
47
|
/**
|
|
95
|
-
* @
|
|
96
|
-
* <p>Updates the shadow for the specified thing.</p>
|
|
97
|
-
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdateThingShadow</a> action.</p>
|
|
98
|
-
* <p>For more information, see <a href="http://docs.aws.amazon.com/iot/latest/developerguide/API_UpdateThingShadow.html">UpdateThingShadow</a> in the
|
|
99
|
-
* IoT Developer Guide.</p>
|
|
48
|
+
* @see {@link UpdateThingShadowCommand}
|
|
100
49
|
*/
|
|
101
50
|
updateThingShadow(args: UpdateThingShadowCommandInput, options?: __HttpHandlerOptions): Promise<UpdateThingShadowCommandOutput>;
|
|
102
51
|
updateThingShadow(args: UpdateThingShadowCommandInput, cb: (err: any, data?: UpdateThingShadowCommandOutput) => void): void;
|
|
103
52
|
updateThingShadow(args: UpdateThingShadowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateThingShadowCommandOutput) => void): void;
|
|
104
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
* <fullname>IoT data</fullname>
|
|
57
|
+
* <p>IoT data enables secure, bi-directional communication between Internet-connected things (such as sensors,
|
|
58
|
+
* actuators, embedded devices, or smart appliances) and the Amazon Web Services cloud. It implements a broker for applications and
|
|
59
|
+
* things to publish messages over HTTP (Publish) and retrieve, update, and delete shadows. A shadow is a
|
|
60
|
+
* persistent representation of your things and their state in the Amazon Web Services cloud.</p>
|
|
61
|
+
* <p>Find the endpoint address for actions in IoT data by running this CLI command:</p>
|
|
62
|
+
* <p>
|
|
63
|
+
* <code>aws iot describe-endpoint --endpoint-type iot:Data-ATS</code>
|
|
64
|
+
* </p>
|
|
65
|
+
* <p>The service name used by <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Amazon Web ServicesSignature Version 4</a>
|
|
66
|
+
* to sign requests is: <i>iotdevicegateway</i>.</p>
|
|
67
|
+
*/
|
|
68
|
+
export declare class IoTDataPlane extends IoTDataPlaneClient implements IoTDataPlane {
|
|
69
|
+
}
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
UpdateThingShadowCommandOutput,
|
|
29
29
|
} from "./commands/UpdateThingShadowCommand";
|
|
30
30
|
import { IoTDataPlaneClient } from "./IoTDataPlaneClient";
|
|
31
|
-
export
|
|
31
|
+
export interface IoTDataPlane {
|
|
32
32
|
deleteThingShadow(
|
|
33
33
|
args: DeleteThingShadowCommandInput,
|
|
34
34
|
options?: __HttpHandlerOptions
|
|
@@ -121,3 +121,6 @@ export declare class IoTDataPlane extends IoTDataPlaneClient {
|
|
|
121
121
|
cb: (err: any, data?: UpdateThingShadowCommandOutput) => void
|
|
122
122
|
): void;
|
|
123
123
|
}
|
|
124
|
+
export declare class IoTDataPlane
|
|
125
|
+
extends IoTDataPlaneClient
|
|
126
|
+
implements IoTDataPlane {}
|
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.316.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.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|