@aws-sdk/client-iot-data-plane 3.183.0 → 3.186.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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/IoTDataPlane.js +37 -30
- package/dist-es/IoTDataPlaneClient.js +28 -22
- package/dist-es/commands/DeleteThingShadowCommand.js +28 -21
- package/dist-es/commands/GetRetainedMessageCommand.js +28 -21
- package/dist-es/commands/GetThingShadowCommand.js +28 -21
- package/dist-es/commands/ListNamedShadowsForThingCommand.js +28 -21
- package/dist-es/commands/ListRetainedMessagesCommand.js +28 -21
- package/dist-es/commands/PublishCommand.js +29 -22
- package/dist-es/commands/UpdateThingShadowCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IoTDataPlaneServiceException.js +10 -5
- package/dist-es/models/models_0.js +125 -152
- package/dist-es/pagination/ListRetainedMessagesPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +908 -652
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-iot-data-plane
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-iot-data-plane
|
|
@@ -686,10 +686,10 @@ const deserializeAws_restJson1RetainedMessageSummary = (output, context) => {
|
|
|
686
686
|
};
|
|
687
687
|
};
|
|
688
688
|
const deserializeMetadata = (output) => {
|
|
689
|
-
var _a;
|
|
689
|
+
var _a, _b;
|
|
690
690
|
return ({
|
|
691
691
|
httpStatusCode: output.statusCode,
|
|
692
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
692
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
693
693
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
694
694
|
cfId: output.headers["x-amz-cf-id"],
|
|
695
695
|
});
|
package/dist-es/IoTDataPlane.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { DeleteThingShadowCommand, } from "./commands/DeleteThingShadowCommand";
|
|
2
3
|
import { GetRetainedMessageCommand, } from "./commands/GetRetainedMessageCommand";
|
|
3
4
|
import { GetThingShadowCommand, } from "./commands/GetThingShadowCommand";
|
|
@@ -6,103 +7,109 @@ 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";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
var IoTDataPlane = (function (_super) {
|
|
11
|
+
__extends(IoTDataPlane, _super);
|
|
12
|
+
function IoTDataPlane() {
|
|
13
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
+
}
|
|
15
|
+
IoTDataPlane.prototype.deleteThingShadow = function (args, optionsOrCb, cb) {
|
|
16
|
+
var command = new DeleteThingShadowCommand(args);
|
|
12
17
|
if (typeof optionsOrCb === "function") {
|
|
13
18
|
this.send(command, optionsOrCb);
|
|
14
19
|
}
|
|
15
20
|
else if (typeof cb === "function") {
|
|
16
21
|
if (typeof optionsOrCb !== "object")
|
|
17
|
-
throw new Error(
|
|
22
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
18
23
|
this.send(command, optionsOrCb || {}, cb);
|
|
19
24
|
}
|
|
20
25
|
else {
|
|
21
26
|
return this.send(command, optionsOrCb);
|
|
22
27
|
}
|
|
23
|
-
}
|
|
24
|
-
getRetainedMessage(args, optionsOrCb, cb) {
|
|
25
|
-
|
|
28
|
+
};
|
|
29
|
+
IoTDataPlane.prototype.getRetainedMessage = function (args, optionsOrCb, cb) {
|
|
30
|
+
var command = new GetRetainedMessageCommand(args);
|
|
26
31
|
if (typeof optionsOrCb === "function") {
|
|
27
32
|
this.send(command, optionsOrCb);
|
|
28
33
|
}
|
|
29
34
|
else if (typeof cb === "function") {
|
|
30
35
|
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error(
|
|
36
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
32
37
|
this.send(command, optionsOrCb || {}, cb);
|
|
33
38
|
}
|
|
34
39
|
else {
|
|
35
40
|
return this.send(command, optionsOrCb);
|
|
36
41
|
}
|
|
37
|
-
}
|
|
38
|
-
getThingShadow(args, optionsOrCb, cb) {
|
|
39
|
-
|
|
42
|
+
};
|
|
43
|
+
IoTDataPlane.prototype.getThingShadow = function (args, optionsOrCb, cb) {
|
|
44
|
+
var command = new GetThingShadowCommand(args);
|
|
40
45
|
if (typeof optionsOrCb === "function") {
|
|
41
46
|
this.send(command, optionsOrCb);
|
|
42
47
|
}
|
|
43
48
|
else if (typeof cb === "function") {
|
|
44
49
|
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(
|
|
50
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
46
51
|
this.send(command, optionsOrCb || {}, cb);
|
|
47
52
|
}
|
|
48
53
|
else {
|
|
49
54
|
return this.send(command, optionsOrCb);
|
|
50
55
|
}
|
|
51
|
-
}
|
|
52
|
-
listNamedShadowsForThing(args, optionsOrCb, cb) {
|
|
53
|
-
|
|
56
|
+
};
|
|
57
|
+
IoTDataPlane.prototype.listNamedShadowsForThing = function (args, optionsOrCb, cb) {
|
|
58
|
+
var command = new ListNamedShadowsForThingCommand(args);
|
|
54
59
|
if (typeof optionsOrCb === "function") {
|
|
55
60
|
this.send(command, optionsOrCb);
|
|
56
61
|
}
|
|
57
62
|
else if (typeof cb === "function") {
|
|
58
63
|
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(
|
|
64
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
60
65
|
this.send(command, optionsOrCb || {}, cb);
|
|
61
66
|
}
|
|
62
67
|
else {
|
|
63
68
|
return this.send(command, optionsOrCb);
|
|
64
69
|
}
|
|
65
|
-
}
|
|
66
|
-
listRetainedMessages(args, optionsOrCb, cb) {
|
|
67
|
-
|
|
70
|
+
};
|
|
71
|
+
IoTDataPlane.prototype.listRetainedMessages = function (args, optionsOrCb, cb) {
|
|
72
|
+
var command = new ListRetainedMessagesCommand(args);
|
|
68
73
|
if (typeof optionsOrCb === "function") {
|
|
69
74
|
this.send(command, optionsOrCb);
|
|
70
75
|
}
|
|
71
76
|
else if (typeof cb === "function") {
|
|
72
77
|
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error(
|
|
78
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
74
79
|
this.send(command, optionsOrCb || {}, cb);
|
|
75
80
|
}
|
|
76
81
|
else {
|
|
77
82
|
return this.send(command, optionsOrCb);
|
|
78
83
|
}
|
|
79
|
-
}
|
|
80
|
-
publish(args, optionsOrCb, cb) {
|
|
81
|
-
|
|
84
|
+
};
|
|
85
|
+
IoTDataPlane.prototype.publish = function (args, optionsOrCb, cb) {
|
|
86
|
+
var command = new PublishCommand(args);
|
|
82
87
|
if (typeof optionsOrCb === "function") {
|
|
83
88
|
this.send(command, optionsOrCb);
|
|
84
89
|
}
|
|
85
90
|
else if (typeof cb === "function") {
|
|
86
91
|
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error(
|
|
92
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
88
93
|
this.send(command, optionsOrCb || {}, cb);
|
|
89
94
|
}
|
|
90
95
|
else {
|
|
91
96
|
return this.send(command, optionsOrCb);
|
|
92
97
|
}
|
|
93
|
-
}
|
|
94
|
-
updateThingShadow(args, optionsOrCb, cb) {
|
|
95
|
-
|
|
98
|
+
};
|
|
99
|
+
IoTDataPlane.prototype.updateThingShadow = function (args, optionsOrCb, cb) {
|
|
100
|
+
var command = new UpdateThingShadowCommand(args);
|
|
96
101
|
if (typeof optionsOrCb === "function") {
|
|
97
102
|
this.send(command, optionsOrCb);
|
|
98
103
|
}
|
|
99
104
|
else if (typeof cb === "function") {
|
|
100
105
|
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error(
|
|
106
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
102
107
|
this.send(command, optionsOrCb || {}, cb);
|
|
103
108
|
}
|
|
104
109
|
else {
|
|
105
110
|
return this.send(command, optionsOrCb);
|
|
106
111
|
}
|
|
107
|
-
}
|
|
108
|
-
|
|
112
|
+
};
|
|
113
|
+
return IoTDataPlane;
|
|
114
|
+
}(IoTDataPlaneClient));
|
|
115
|
+
export { IoTDataPlane };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var IoTDataPlaneClient = (function (_super) {
|
|
13
|
+
__extends(IoTDataPlaneClient, _super);
|
|
14
|
+
function IoTDataPlaneClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
IoTDataPlaneClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return IoTDataPlaneClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { IoTDataPlaneClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteThingShadowRequestFilterSensitiveLog, DeleteThingShadowResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DeleteThingShadowCommand, serializeAws_restJson1DeleteThingShadowCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteThingShadowCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteThingShadowCommand, _super);
|
|
8
|
+
function DeleteThingShadowCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteThingShadowCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTDataPlaneClient";
|
|
18
|
+
var commandName = "DeleteThingShadowCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteThingShadowRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteThingShadowResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteThingShadowCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DeleteThingShadowCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteThingShadowCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DeleteThingShadowCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteThingShadowCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteThingShadowCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetRetainedMessageRequestFilterSensitiveLog, GetRetainedMessageResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1GetRetainedMessageCommand, serializeAws_restJson1GetRetainedMessageCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetRetainedMessageCommand = (function (_super) {
|
|
7
|
+
__extends(GetRetainedMessageCommand, _super);
|
|
8
|
+
function GetRetainedMessageCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetRetainedMessageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTDataPlaneClient";
|
|
18
|
+
var commandName = "GetRetainedMessageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetRetainedMessageRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetRetainedMessageResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetRetainedMessageCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1GetRetainedMessageCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetRetainedMessageCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1GetRetainedMessageCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetRetainedMessageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetRetainedMessageCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetThingShadowRequestFilterSensitiveLog, GetThingShadowResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1GetThingShadowCommand, serializeAws_restJson1GetThingShadowCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var GetThingShadowCommand = (function (_super) {
|
|
7
|
+
__extends(GetThingShadowCommand, _super);
|
|
8
|
+
function GetThingShadowCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
GetThingShadowCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTDataPlaneClient";
|
|
18
|
+
var commandName = "GetThingShadowCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: GetThingShadowRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: GetThingShadowResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetThingShadowCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1GetThingShadowCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
GetThingShadowCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1GetThingShadowCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return GetThingShadowCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetThingShadowCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListNamedShadowsForThingRequestFilterSensitiveLog, ListNamedShadowsForThingResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1ListNamedShadowsForThingCommand, serializeAws_restJson1ListNamedShadowsForThingCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ListNamedShadowsForThingCommand = (function (_super) {
|
|
7
|
+
__extends(ListNamedShadowsForThingCommand, _super);
|
|
8
|
+
function ListNamedShadowsForThingCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ListNamedShadowsForThingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTDataPlaneClient";
|
|
18
|
+
var commandName = "ListNamedShadowsForThingCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ListNamedShadowsForThingRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ListNamedShadowsForThingResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListNamedShadowsForThingCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1ListNamedShadowsForThingCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ListNamedShadowsForThingCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1ListNamedShadowsForThingCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ListNamedShadowsForThingCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListNamedShadowsForThingCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListRetainedMessagesRequestFilterSensitiveLog, ListRetainedMessagesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1ListRetainedMessagesCommand, serializeAws_restJson1ListRetainedMessagesCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ListRetainedMessagesCommand = (function (_super) {
|
|
7
|
+
__extends(ListRetainedMessagesCommand, _super);
|
|
8
|
+
function ListRetainedMessagesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ListRetainedMessagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTDataPlaneClient";
|
|
18
|
+
var commandName = "ListRetainedMessagesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ListRetainedMessagesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ListRetainedMessagesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListRetainedMessagesCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1ListRetainedMessagesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ListRetainedMessagesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1ListRetainedMessagesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ListRetainedMessagesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListRetainedMessagesCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { PublishRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1PublishCommand, serializeAws_restJson1PublishCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var PublishCommand = (function (_super) {
|
|
7
|
+
__extends(PublishCommand, _super);
|
|
8
|
+
function PublishCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
PublishCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTDataPlaneClient";
|
|
18
|
+
var commandName = "PublishCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: PublishRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
PublishCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1PublishCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
PublishCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1PublishCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return PublishCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PublishCommand };
|