@aws-sdk/client-iot-data-plane 3.477.0 → 3.481.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/commands/DeleteThingShadowCommand.js +18 -41
- package/dist-cjs/commands/GetRetainedMessageCommand.js +18 -41
- package/dist-cjs/commands/GetThingShadowCommand.js +18 -41
- package/dist-cjs/commands/ListNamedShadowsForThingCommand.js +18 -41
- package/dist-cjs/commands/ListRetainedMessagesCommand.js +18 -41
- package/dist-cjs/commands/PublishCommand.js +18 -41
- package/dist-cjs/commands/UpdateThingShadowCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/ListRetainedMessagesPaginator.js +2 -24
- package/dist-es/commands/DeleteThingShadowCommand.js +18 -41
- package/dist-es/commands/GetRetainedMessageCommand.js +18 -41
- package/dist-es/commands/GetThingShadowCommand.js +18 -41
- package/dist-es/commands/ListNamedShadowsForThingCommand.js +18 -41
- package/dist-es/commands/ListRetainedMessagesCommand.js +18 -41
- package/dist-es/commands/PublishCommand.js +18 -41
- package/dist-es/commands/UpdateThingShadowCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/ListRetainedMessagesPaginator.js +2 -23
- package/dist-types/commands/DeleteThingShadowCommand.d.ts +6 -21
- package/dist-types/commands/GetRetainedMessageCommand.d.ts +6 -21
- package/dist-types/commands/GetThingShadowCommand.d.ts +6 -21
- package/dist-types/commands/ListNamedShadowsForThingCommand.d.ts +6 -21
- package/dist-types/commands/ListRetainedMessagesCommand.d.ts +6 -21
- package/dist-types/commands/PublishCommand.d.ts +6 -21
- package/dist-types/commands/UpdateThingShadowCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/ListRetainedMessagesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteThingShadowCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetRetainedMessageCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetThingShadowCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListNamedShadowsForThingCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListRetainedMessagesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/PublishCommand.d.ts +11 -20
- package/dist-types/ts3.4/commands/UpdateThingShadowCommand.d.ts +13 -20
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ListRetainedMessagesPaginator.d.ts +3 -3
- package/package.json +11 -11
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_GetRetainedMessageCommand, se_GetRetainedMessageCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class GetRetainedMessageCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTDataPlaneClient";
|
|
26
|
-
const commandName = "GetRetainedMessageCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "IotMoonrakerService",
|
|
35
|
-
operation: "GetRetainedMessage",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_GetRetainedMessageCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_GetRetainedMessageCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class GetRetainedMessageCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("IotMoonrakerService", "GetRetainedMessage", {})
|
|
19
|
+
.n("IoTDataPlaneClient", "GetRetainedMessageCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetRetainedMessageCommand)
|
|
22
|
+
.de(de_GetRetainedMessageCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_GetThingShadowCommand, se_GetThingShadowCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class GetThingShadowCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTDataPlaneClient";
|
|
26
|
-
const commandName = "GetThingShadowCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "IotMoonrakerService",
|
|
35
|
-
operation: "GetThingShadow",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_GetThingShadowCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_GetThingShadowCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class GetThingShadowCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("IotMoonrakerService", "GetThingShadow", {})
|
|
19
|
+
.n("IoTDataPlaneClient", "GetThingShadowCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetThingShadowCommand)
|
|
22
|
+
.de(de_GetThingShadowCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListNamedShadowsForThingCommand, se_ListNamedShadowsForThingCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListNamedShadowsForThingCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTDataPlaneClient";
|
|
26
|
-
const commandName = "ListNamedShadowsForThingCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "IotMoonrakerService",
|
|
35
|
-
operation: "ListNamedShadowsForThing",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListNamedShadowsForThingCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListNamedShadowsForThingCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListNamedShadowsForThingCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("IotMoonrakerService", "ListNamedShadowsForThing", {})
|
|
19
|
+
.n("IoTDataPlaneClient", "ListNamedShadowsForThingCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListNamedShadowsForThingCommand)
|
|
22
|
+
.de(de_ListNamedShadowsForThingCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListRetainedMessagesCommand, se_ListRetainedMessagesCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListRetainedMessagesCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTDataPlaneClient";
|
|
26
|
-
const commandName = "ListRetainedMessagesCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "IotMoonrakerService",
|
|
35
|
-
operation: "ListRetainedMessages",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListRetainedMessagesCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListRetainedMessagesCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListRetainedMessagesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("IotMoonrakerService", "ListRetainedMessages", {})
|
|
19
|
+
.n("IoTDataPlaneClient", "ListRetainedMessagesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListRetainedMessagesCommand)
|
|
22
|
+
.de(de_ListRetainedMessagesCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_PublishCommand, se_PublishCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PublishCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTDataPlaneClient";
|
|
26
|
-
const commandName = "PublishCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "IotMoonrakerService",
|
|
35
|
-
operation: "Publish",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_PublishCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PublishCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PublishCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("IotMoonrakerService", "Publish", {})
|
|
19
|
+
.n("IoTDataPlaneClient", "PublishCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PublishCommand)
|
|
22
|
+
.de(de_PublishCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateThingShadowCommand, se_UpdateThingShadowCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateThingShadowCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTDataPlaneClient";
|
|
26
|
-
const commandName = "UpdateThingShadowCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "IotMoonrakerService",
|
|
35
|
-
operation: "UpdateThingShadow",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateThingShadowCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateThingShadowCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateThingShadowCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("IotMoonrakerService", "UpdateThingShadow", {})
|
|
19
|
+
.n("IoTDataPlaneClient", "UpdateThingShadowCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateThingShadowCommand)
|
|
22
|
+
.de(de_UpdateThingShadowCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "iotdata",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRetainedMessagesCommand, } from "../commands/ListRetainedMessagesCommand";
|
|
2
3
|
import { IoTDataPlaneClient } from "../IoTDataPlaneClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRetainedMessagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRetainedMessages(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTDataPlaneClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTDataPlane | IoTDataPlaneClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRetainedMessages = createPaginator(IoTDataPlaneClient, ListRetainedMessagesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { Uint8ArrayBlobAdapter } from "@smithy/util-stream";
|
|
5
4
|
import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
|
|
6
5
|
import { DeleteThingShadowRequest, DeleteThingShadowResponse } from "../models/models_0";
|
|
@@ -28,6 +27,10 @@ export type DeleteThingShadowCommandOutputType = Omit<DeleteThingShadowResponse,
|
|
|
28
27
|
*/
|
|
29
28
|
export interface DeleteThingShadowCommandOutput extends DeleteThingShadowCommandOutputType, __MetadataBearer {
|
|
30
29
|
}
|
|
30
|
+
declare const DeleteThingShadowCommand_base: {
|
|
31
|
+
new (input: DeleteThingShadowCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteThingShadowCommandInput, DeleteThingShadowCommandOutput, IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
32
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
33
|
+
};
|
|
31
34
|
/**
|
|
32
35
|
* @public
|
|
33
36
|
* <p>Deletes the shadow for the specified thing.</p>
|
|
@@ -85,23 +88,5 @@ export interface DeleteThingShadowCommandOutput extends DeleteThingShadowCommand
|
|
|
85
88
|
* <p>Base exception class for all service exceptions from IoTDataPlane service.</p>
|
|
86
89
|
*
|
|
87
90
|
*/
|
|
88
|
-
export declare class DeleteThingShadowCommand extends
|
|
89
|
-
readonly input: DeleteThingShadowCommandInput;
|
|
90
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
91
|
-
/**
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
|
-
constructor(input: DeleteThingShadowCommandInput);
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteThingShadowCommandInput, DeleteThingShadowCommandOutput>;
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
private serialize;
|
|
103
|
-
/**
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
106
|
-
private deserialize;
|
|
91
|
+
export declare class DeleteThingShadowCommand extends DeleteThingShadowCommand_base {
|
|
107
92
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
|
|
5
4
|
import { GetRetainedMessageRequest, GetRetainedMessageResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface GetRetainedMessageCommandInput extends GetRetainedMessageReques
|
|
|
21
20
|
*/
|
|
22
21
|
export interface GetRetainedMessageCommandOutput extends GetRetainedMessageResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const GetRetainedMessageCommand_base: {
|
|
24
|
+
new (input: GetRetainedMessageCommandInput): import("@smithy/smithy-client").CommandImpl<GetRetainedMessageCommandInput, GetRetainedMessageCommandOutput, IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Gets the details of a single retained message for the specified topic.</p>
|
|
@@ -82,23 +85,5 @@ export interface GetRetainedMessageCommandOutput extends GetRetainedMessageRespo
|
|
|
82
85
|
* <p>Base exception class for all service exceptions from IoTDataPlane service.</p>
|
|
83
86
|
*
|
|
84
87
|
*/
|
|
85
|
-
export declare class GetRetainedMessageCommand extends
|
|
86
|
-
readonly input: GetRetainedMessageCommandInput;
|
|
87
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
88
|
-
/**
|
|
89
|
-
* @public
|
|
90
|
-
*/
|
|
91
|
-
constructor(input: GetRetainedMessageCommandInput);
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRetainedMessageCommandInput, GetRetainedMessageCommandOutput>;
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
99
|
-
private serialize;
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
|
-
private deserialize;
|
|
88
|
+
export declare class GetRetainedMessageCommand extends GetRetainedMessageCommand_base {
|
|
104
89
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { Uint8ArrayBlobAdapter } from "@smithy/util-stream";
|
|
5
4
|
import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
|
|
6
5
|
import { GetThingShadowRequest, GetThingShadowResponse } from "../models/models_0";
|
|
@@ -28,6 +27,10 @@ export type GetThingShadowCommandOutputType = Omit<GetThingShadowResponse, "payl
|
|
|
28
27
|
*/
|
|
29
28
|
export interface GetThingShadowCommandOutput extends GetThingShadowCommandOutputType, __MetadataBearer {
|
|
30
29
|
}
|
|
30
|
+
declare const GetThingShadowCommand_base: {
|
|
31
|
+
new (input: GetThingShadowCommandInput): import("@smithy/smithy-client").CommandImpl<GetThingShadowCommandInput, GetThingShadowCommandOutput, IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
32
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
33
|
+
};
|
|
31
34
|
/**
|
|
32
35
|
* @public
|
|
33
36
|
* <p>Gets the shadow for the specified thing.</p>
|
|
@@ -86,23 +89,5 @@ export interface GetThingShadowCommandOutput extends GetThingShadowCommandOutput
|
|
|
86
89
|
* <p>Base exception class for all service exceptions from IoTDataPlane service.</p>
|
|
87
90
|
*
|
|
88
91
|
*/
|
|
89
|
-
export declare class GetThingShadowCommand extends
|
|
90
|
-
readonly input: GetThingShadowCommandInput;
|
|
91
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
92
|
-
/**
|
|
93
|
-
* @public
|
|
94
|
-
*/
|
|
95
|
-
constructor(input: GetThingShadowCommandInput);
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
99
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetThingShadowCommandInput, GetThingShadowCommandOutput>;
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
|
-
private serialize;
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
private deserialize;
|
|
92
|
+
export declare class GetThingShadowCommand extends GetThingShadowCommand_base {
|
|
108
93
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
|
|
5
4
|
import { ListNamedShadowsForThingRequest, ListNamedShadowsForThingResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface ListNamedShadowsForThingCommandInput extends ListNamedShadowsFo
|
|
|
21
20
|
*/
|
|
22
21
|
export interface ListNamedShadowsForThingCommandOutput extends ListNamedShadowsForThingResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const ListNamedShadowsForThingCommand_base: {
|
|
24
|
+
new (input: ListNamedShadowsForThingCommandInput): import("@smithy/smithy-client").CommandImpl<ListNamedShadowsForThingCommandInput, ListNamedShadowsForThingCommandOutput, IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Lists the shadows for the specified thing.</p>
|
|
@@ -79,23 +82,5 @@ export interface ListNamedShadowsForThingCommandOutput extends ListNamedShadowsF
|
|
|
79
82
|
* <p>Base exception class for all service exceptions from IoTDataPlane service.</p>
|
|
80
83
|
*
|
|
81
84
|
*/
|
|
82
|
-
export declare class ListNamedShadowsForThingCommand extends
|
|
83
|
-
readonly input: ListNamedShadowsForThingCommandInput;
|
|
84
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
85
|
-
/**
|
|
86
|
-
* @public
|
|
87
|
-
*/
|
|
88
|
-
constructor(input: ListNamedShadowsForThingCommandInput);
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTDataPlaneClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListNamedShadowsForThingCommandInput, ListNamedShadowsForThingCommandOutput>;
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
private serialize;
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
100
|
-
private deserialize;
|
|
85
|
+
export declare class ListNamedShadowsForThingCommand extends ListNamedShadowsForThingCommand_base {
|
|
101
86
|
}
|