@aws-sdk/client-iot-data-plane 3.489.0 → 3.495.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 +1 -25
- package/dist-cjs/IoTDataPlaneClient.js +1 -43
- package/dist-cjs/commands/DeleteThingShadowCommand.js +1 -28
- package/dist-cjs/commands/GetRetainedMessageCommand.js +1 -28
- package/dist-cjs/commands/GetThingShadowCommand.js +1 -28
- package/dist-cjs/commands/ListNamedShadowsForThingCommand.js +1 -28
- package/dist-cjs/commands/ListRetainedMessagesCommand.js +1 -28
- package/dist-cjs/commands/PublishCommand.js +1 -28
- package/dist-cjs/commands/UpdateThingShadowCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -10
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1152 -11
- package/dist-cjs/models/IoTDataPlaneServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -138
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListRetainedMessagesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -676
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1153 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
ConflictException: () => ConflictException,
|
|
25
|
+
DeleteThingShadowCommand: () => DeleteThingShadowCommand,
|
|
26
|
+
GetRetainedMessageCommand: () => GetRetainedMessageCommand,
|
|
27
|
+
GetThingShadowCommand: () => GetThingShadowCommand,
|
|
28
|
+
InternalFailureException: () => InternalFailureException,
|
|
29
|
+
InvalidRequestException: () => InvalidRequestException,
|
|
30
|
+
IoTDataPlane: () => IoTDataPlane,
|
|
31
|
+
IoTDataPlaneClient: () => IoTDataPlaneClient,
|
|
32
|
+
IoTDataPlaneServiceException: () => IoTDataPlaneServiceException,
|
|
33
|
+
ListNamedShadowsForThingCommand: () => ListNamedShadowsForThingCommand,
|
|
34
|
+
ListRetainedMessagesCommand: () => ListRetainedMessagesCommand,
|
|
35
|
+
MethodNotAllowedException: () => MethodNotAllowedException,
|
|
36
|
+
PayloadFormatIndicator: () => PayloadFormatIndicator,
|
|
37
|
+
PublishCommand: () => PublishCommand,
|
|
38
|
+
RequestEntityTooLargeException: () => RequestEntityTooLargeException,
|
|
39
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
40
|
+
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
41
|
+
ThrottlingException: () => ThrottlingException,
|
|
42
|
+
UnauthorizedException: () => UnauthorizedException,
|
|
43
|
+
UnsupportedDocumentEncodingException: () => UnsupportedDocumentEncodingException,
|
|
44
|
+
UpdateThingShadowCommand: () => UpdateThingShadowCommand,
|
|
45
|
+
__Client: () => import_smithy_client.Client,
|
|
46
|
+
paginateListRetainedMessages: () => paginateListRetainedMessages
|
|
47
|
+
});
|
|
48
|
+
module.exports = __toCommonJS(src_exports);
|
|
49
|
+
|
|
50
|
+
// src/IoTDataPlaneClient.ts
|
|
51
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
52
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
53
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
54
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
55
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
56
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
57
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
58
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
59
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// src/endpoint/EndpointParameters.ts
|
|
63
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
64
|
+
return {
|
|
65
|
+
...options,
|
|
66
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
67
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
68
|
+
defaultSigningName: "iotdata"
|
|
69
|
+
};
|
|
70
|
+
}, "resolveClientEndpointParameters");
|
|
71
|
+
var commonParams = {
|
|
72
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
73
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
74
|
+
Region: { type: "builtInParams", name: "region" },
|
|
75
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// src/IoTDataPlaneClient.ts
|
|
79
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
80
|
+
|
|
81
|
+
// src/runtimeExtensions.ts
|
|
82
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
83
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
84
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
85
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
86
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
87
|
+
const extensionConfiguration = {
|
|
88
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
89
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
90
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
91
|
+
};
|
|
92
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
93
|
+
return {
|
|
94
|
+
...runtimeConfig,
|
|
95
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
96
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
97
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
98
|
+
};
|
|
99
|
+
}, "resolveRuntimeExtensions");
|
|
100
|
+
|
|
101
|
+
// src/IoTDataPlaneClient.ts
|
|
102
|
+
var _IoTDataPlaneClient = class _IoTDataPlaneClient extends import_smithy_client.Client {
|
|
103
|
+
constructor(...[configuration]) {
|
|
104
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
105
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
106
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
107
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
108
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
109
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
110
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
111
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
112
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
113
|
+
super(_config_8);
|
|
114
|
+
this.config = _config_8;
|
|
115
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
116
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
117
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
118
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
119
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
120
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
121
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
125
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
126
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
127
|
+
*/
|
|
128
|
+
destroy() {
|
|
129
|
+
super.destroy();
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
__name(_IoTDataPlaneClient, "IoTDataPlaneClient");
|
|
133
|
+
var IoTDataPlaneClient = _IoTDataPlaneClient;
|
|
134
|
+
|
|
135
|
+
// src/IoTDataPlane.ts
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
// src/commands/DeleteThingShadowCommand.ts
|
|
139
|
+
|
|
140
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
141
|
+
|
|
142
|
+
var import_types = require("@smithy/types");
|
|
143
|
+
|
|
144
|
+
// src/protocols/Aws_restJson1.ts
|
|
145
|
+
var import_core = require("@smithy/core");
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
// src/models/IoTDataPlaneServiceException.ts
|
|
149
|
+
|
|
150
|
+
var _IoTDataPlaneServiceException = class _IoTDataPlaneServiceException extends import_smithy_client.ServiceException {
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
constructor(options) {
|
|
155
|
+
super(options);
|
|
156
|
+
Object.setPrototypeOf(this, _IoTDataPlaneServiceException.prototype);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
__name(_IoTDataPlaneServiceException, "IoTDataPlaneServiceException");
|
|
160
|
+
var IoTDataPlaneServiceException = _IoTDataPlaneServiceException;
|
|
161
|
+
|
|
162
|
+
// src/models/models_0.ts
|
|
163
|
+
var _ConflictException = class _ConflictException extends IoTDataPlaneServiceException {
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "ConflictException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts
|
|
172
|
+
});
|
|
173
|
+
this.name = "ConflictException";
|
|
174
|
+
this.$fault = "client";
|
|
175
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
__name(_ConflictException, "ConflictException");
|
|
179
|
+
var ConflictException = _ConflictException;
|
|
180
|
+
var _InternalFailureException = class _InternalFailureException extends IoTDataPlaneServiceException {
|
|
181
|
+
/**
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "InternalFailureException",
|
|
187
|
+
$fault: "server",
|
|
188
|
+
...opts
|
|
189
|
+
});
|
|
190
|
+
this.name = "InternalFailureException";
|
|
191
|
+
this.$fault = "server";
|
|
192
|
+
Object.setPrototypeOf(this, _InternalFailureException.prototype);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
__name(_InternalFailureException, "InternalFailureException");
|
|
196
|
+
var InternalFailureException = _InternalFailureException;
|
|
197
|
+
var _InvalidRequestException = class _InvalidRequestException extends IoTDataPlaneServiceException {
|
|
198
|
+
/**
|
|
199
|
+
* @internal
|
|
200
|
+
*/
|
|
201
|
+
constructor(opts) {
|
|
202
|
+
super({
|
|
203
|
+
name: "InvalidRequestException",
|
|
204
|
+
$fault: "client",
|
|
205
|
+
...opts
|
|
206
|
+
});
|
|
207
|
+
this.name = "InvalidRequestException";
|
|
208
|
+
this.$fault = "client";
|
|
209
|
+
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
__name(_InvalidRequestException, "InvalidRequestException");
|
|
213
|
+
var InvalidRequestException = _InvalidRequestException;
|
|
214
|
+
var _MethodNotAllowedException = class _MethodNotAllowedException extends IoTDataPlaneServiceException {
|
|
215
|
+
/**
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
constructor(opts) {
|
|
219
|
+
super({
|
|
220
|
+
name: "MethodNotAllowedException",
|
|
221
|
+
$fault: "client",
|
|
222
|
+
...opts
|
|
223
|
+
});
|
|
224
|
+
this.name = "MethodNotAllowedException";
|
|
225
|
+
this.$fault = "client";
|
|
226
|
+
Object.setPrototypeOf(this, _MethodNotAllowedException.prototype);
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
__name(_MethodNotAllowedException, "MethodNotAllowedException");
|
|
230
|
+
var MethodNotAllowedException = _MethodNotAllowedException;
|
|
231
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends IoTDataPlaneServiceException {
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "ResourceNotFoundException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts
|
|
240
|
+
});
|
|
241
|
+
this.name = "ResourceNotFoundException";
|
|
242
|
+
this.$fault = "client";
|
|
243
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
247
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
248
|
+
var _ServiceUnavailableException = class _ServiceUnavailableException extends IoTDataPlaneServiceException {
|
|
249
|
+
/**
|
|
250
|
+
* @internal
|
|
251
|
+
*/
|
|
252
|
+
constructor(opts) {
|
|
253
|
+
super({
|
|
254
|
+
name: "ServiceUnavailableException",
|
|
255
|
+
$fault: "server",
|
|
256
|
+
...opts
|
|
257
|
+
});
|
|
258
|
+
this.name = "ServiceUnavailableException";
|
|
259
|
+
this.$fault = "server";
|
|
260
|
+
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
264
|
+
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
265
|
+
var _ThrottlingException = class _ThrottlingException extends IoTDataPlaneServiceException {
|
|
266
|
+
/**
|
|
267
|
+
* @internal
|
|
268
|
+
*/
|
|
269
|
+
constructor(opts) {
|
|
270
|
+
super({
|
|
271
|
+
name: "ThrottlingException",
|
|
272
|
+
$fault: "client",
|
|
273
|
+
...opts
|
|
274
|
+
});
|
|
275
|
+
this.name = "ThrottlingException";
|
|
276
|
+
this.$fault = "client";
|
|
277
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
281
|
+
var ThrottlingException = _ThrottlingException;
|
|
282
|
+
var _UnauthorizedException = class _UnauthorizedException extends IoTDataPlaneServiceException {
|
|
283
|
+
/**
|
|
284
|
+
* @internal
|
|
285
|
+
*/
|
|
286
|
+
constructor(opts) {
|
|
287
|
+
super({
|
|
288
|
+
name: "UnauthorizedException",
|
|
289
|
+
$fault: "client",
|
|
290
|
+
...opts
|
|
291
|
+
});
|
|
292
|
+
this.name = "UnauthorizedException";
|
|
293
|
+
this.$fault = "client";
|
|
294
|
+
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
__name(_UnauthorizedException, "UnauthorizedException");
|
|
298
|
+
var UnauthorizedException = _UnauthorizedException;
|
|
299
|
+
var _UnsupportedDocumentEncodingException = class _UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException {
|
|
300
|
+
/**
|
|
301
|
+
* @internal
|
|
302
|
+
*/
|
|
303
|
+
constructor(opts) {
|
|
304
|
+
super({
|
|
305
|
+
name: "UnsupportedDocumentEncodingException",
|
|
306
|
+
$fault: "client",
|
|
307
|
+
...opts
|
|
308
|
+
});
|
|
309
|
+
this.name = "UnsupportedDocumentEncodingException";
|
|
310
|
+
this.$fault = "client";
|
|
311
|
+
Object.setPrototypeOf(this, _UnsupportedDocumentEncodingException.prototype);
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
__name(_UnsupportedDocumentEncodingException, "UnsupportedDocumentEncodingException");
|
|
315
|
+
var UnsupportedDocumentEncodingException = _UnsupportedDocumentEncodingException;
|
|
316
|
+
var PayloadFormatIndicator = {
|
|
317
|
+
UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
|
|
318
|
+
UTF8_DATA: "UTF8_DATA"
|
|
319
|
+
};
|
|
320
|
+
var _RequestEntityTooLargeException = class _RequestEntityTooLargeException extends IoTDataPlaneServiceException {
|
|
321
|
+
/**
|
|
322
|
+
* @internal
|
|
323
|
+
*/
|
|
324
|
+
constructor(opts) {
|
|
325
|
+
super({
|
|
326
|
+
name: "RequestEntityTooLargeException",
|
|
327
|
+
$fault: "client",
|
|
328
|
+
...opts
|
|
329
|
+
});
|
|
330
|
+
this.name = "RequestEntityTooLargeException";
|
|
331
|
+
this.$fault = "client";
|
|
332
|
+
Object.setPrototypeOf(this, _RequestEntityTooLargeException.prototype);
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
__name(_RequestEntityTooLargeException, "RequestEntityTooLargeException");
|
|
336
|
+
var RequestEntityTooLargeException = _RequestEntityTooLargeException;
|
|
337
|
+
|
|
338
|
+
// src/protocols/Aws_restJson1.ts
|
|
339
|
+
var se_DeleteThingShadowCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
340
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
341
|
+
const headers = {};
|
|
342
|
+
b.bp("/things/{thingName}/shadow");
|
|
343
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
344
|
+
const query = (0, import_smithy_client.map)({
|
|
345
|
+
[_n]: [, input[_sN]]
|
|
346
|
+
});
|
|
347
|
+
let body;
|
|
348
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
349
|
+
return b.build();
|
|
350
|
+
}, "se_DeleteThingShadowCommand");
|
|
351
|
+
var se_GetRetainedMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
352
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
353
|
+
const headers = {};
|
|
354
|
+
b.bp("/retainedMessage/{topic}");
|
|
355
|
+
b.p("topic", () => input.topic, "{topic}", false);
|
|
356
|
+
let body;
|
|
357
|
+
b.m("GET").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
359
|
+
}, "se_GetRetainedMessageCommand");
|
|
360
|
+
var se_GetThingShadowCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
361
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
362
|
+
const headers = {};
|
|
363
|
+
b.bp("/things/{thingName}/shadow");
|
|
364
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
365
|
+
const query = (0, import_smithy_client.map)({
|
|
366
|
+
[_n]: [, input[_sN]]
|
|
367
|
+
});
|
|
368
|
+
let body;
|
|
369
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
370
|
+
return b.build();
|
|
371
|
+
}, "se_GetThingShadowCommand");
|
|
372
|
+
var se_ListNamedShadowsForThingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
373
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
374
|
+
const headers = {};
|
|
375
|
+
b.bp("/api/things/shadow/ListNamedShadowsForThing/{thingName}");
|
|
376
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
377
|
+
const query = (0, import_smithy_client.map)({
|
|
378
|
+
[_nT]: [, input[_nT]],
|
|
379
|
+
[_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()]
|
|
380
|
+
});
|
|
381
|
+
let body;
|
|
382
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
383
|
+
return b.build();
|
|
384
|
+
}, "se_ListNamedShadowsForThingCommand");
|
|
385
|
+
var se_ListRetainedMessagesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
386
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
387
|
+
const headers = {};
|
|
388
|
+
b.bp("/retainedMessage");
|
|
389
|
+
const query = (0, import_smithy_client.map)({
|
|
390
|
+
[_nT]: [, input[_nT]],
|
|
391
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
392
|
+
});
|
|
393
|
+
let body;
|
|
394
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
395
|
+
return b.build();
|
|
396
|
+
}, "se_ListRetainedMessagesCommand");
|
|
397
|
+
var se_PublishCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
398
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
399
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
400
|
+
"content-type": "application/octet-stream",
|
|
401
|
+
[_xamup]: [
|
|
402
|
+
() => isSerializableHeaderValue(input[_uP]),
|
|
403
|
+
() => context.base64Encoder(Buffer.from(import_smithy_client.LazyJsonString.fromObject(input[_uP])))
|
|
404
|
+
],
|
|
405
|
+
[_xampfi]: input[_pFI],
|
|
406
|
+
[_xamcd]: input[_cD]
|
|
407
|
+
});
|
|
408
|
+
b.bp("/topics/{topic}");
|
|
409
|
+
b.p("topic", () => input.topic, "{topic}", false);
|
|
410
|
+
const query = (0, import_smithy_client.map)({
|
|
411
|
+
[_q]: [() => input.qos !== void 0, () => input[_q].toString()],
|
|
412
|
+
[_r]: [() => input.retain !== void 0, () => input[_r].toString()],
|
|
413
|
+
[_cT]: [, input[_cT]],
|
|
414
|
+
[_rT]: [, input[_rT]],
|
|
415
|
+
[_mE]: [() => input.messageExpiry !== void 0, () => input[_mE].toString()]
|
|
416
|
+
});
|
|
417
|
+
let body;
|
|
418
|
+
if (input.payload !== void 0) {
|
|
419
|
+
body = input.payload;
|
|
420
|
+
}
|
|
421
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
422
|
+
return b.build();
|
|
423
|
+
}, "se_PublishCommand");
|
|
424
|
+
var se_UpdateThingShadowCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
426
|
+
const headers = {
|
|
427
|
+
"content-type": "application/octet-stream"
|
|
428
|
+
};
|
|
429
|
+
b.bp("/things/{thingName}/shadow");
|
|
430
|
+
b.p("thingName", () => input.thingName, "{thingName}", false);
|
|
431
|
+
const query = (0, import_smithy_client.map)({
|
|
432
|
+
[_n]: [, input[_sN]]
|
|
433
|
+
});
|
|
434
|
+
let body;
|
|
435
|
+
if (input.payload !== void 0) {
|
|
436
|
+
body = input.payload;
|
|
437
|
+
}
|
|
438
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
439
|
+
return b.build();
|
|
440
|
+
}, "se_UpdateThingShadowCommand");
|
|
441
|
+
var de_DeleteThingShadowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
442
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
+
return de_DeleteThingShadowCommandError(output, context);
|
|
444
|
+
}
|
|
445
|
+
const contents = (0, import_smithy_client.map)({
|
|
446
|
+
$metadata: deserializeMetadata(output)
|
|
447
|
+
});
|
|
448
|
+
const data = await (0, import_smithy_client.collectBody)(output.body, context);
|
|
449
|
+
contents.payload = data;
|
|
450
|
+
return contents;
|
|
451
|
+
}, "de_DeleteThingShadowCommand");
|
|
452
|
+
var de_DeleteThingShadowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
453
|
+
const parsedOutput = {
|
|
454
|
+
...output,
|
|
455
|
+
body: await parseErrorBody(output.body, context)
|
|
456
|
+
};
|
|
457
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
458
|
+
switch (errorCode) {
|
|
459
|
+
case "InternalFailureException":
|
|
460
|
+
case "com.amazonaws.iotdataplane#InternalFailureException":
|
|
461
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
462
|
+
case "InvalidRequestException":
|
|
463
|
+
case "com.amazonaws.iotdataplane#InvalidRequestException":
|
|
464
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
465
|
+
case "MethodNotAllowedException":
|
|
466
|
+
case "com.amazonaws.iotdataplane#MethodNotAllowedException":
|
|
467
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
468
|
+
case "ResourceNotFoundException":
|
|
469
|
+
case "com.amazonaws.iotdataplane#ResourceNotFoundException":
|
|
470
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
471
|
+
case "ServiceUnavailableException":
|
|
472
|
+
case "com.amazonaws.iotdataplane#ServiceUnavailableException":
|
|
473
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
474
|
+
case "ThrottlingException":
|
|
475
|
+
case "com.amazonaws.iotdataplane#ThrottlingException":
|
|
476
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
477
|
+
case "UnauthorizedException":
|
|
478
|
+
case "com.amazonaws.iotdataplane#UnauthorizedException":
|
|
479
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
480
|
+
case "UnsupportedDocumentEncodingException":
|
|
481
|
+
case "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException":
|
|
482
|
+
throw await de_UnsupportedDocumentEncodingExceptionRes(parsedOutput, context);
|
|
483
|
+
default:
|
|
484
|
+
const parsedBody = parsedOutput.body;
|
|
485
|
+
return throwDefaultError({
|
|
486
|
+
output,
|
|
487
|
+
parsedBody,
|
|
488
|
+
errorCode
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
}, "de_DeleteThingShadowCommandError");
|
|
492
|
+
var de_GetRetainedMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
493
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
|
+
return de_GetRetainedMessageCommandError(output, context);
|
|
495
|
+
}
|
|
496
|
+
const contents = (0, import_smithy_client.map)({
|
|
497
|
+
$metadata: deserializeMetadata(output)
|
|
498
|
+
});
|
|
499
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
500
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
501
|
+
lastModifiedTime: import_smithy_client.expectLong,
|
|
502
|
+
payload: context.base64Decoder,
|
|
503
|
+
qos: import_smithy_client.expectInt32,
|
|
504
|
+
topic: import_smithy_client.expectString,
|
|
505
|
+
userProperties: context.base64Decoder
|
|
506
|
+
});
|
|
507
|
+
Object.assign(contents, doc);
|
|
508
|
+
return contents;
|
|
509
|
+
}, "de_GetRetainedMessageCommand");
|
|
510
|
+
var de_GetRetainedMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
511
|
+
const parsedOutput = {
|
|
512
|
+
...output,
|
|
513
|
+
body: await parseErrorBody(output.body, context)
|
|
514
|
+
};
|
|
515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
+
switch (errorCode) {
|
|
517
|
+
case "InternalFailureException":
|
|
518
|
+
case "com.amazonaws.iotdataplane#InternalFailureException":
|
|
519
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
520
|
+
case "InvalidRequestException":
|
|
521
|
+
case "com.amazonaws.iotdataplane#InvalidRequestException":
|
|
522
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
523
|
+
case "MethodNotAllowedException":
|
|
524
|
+
case "com.amazonaws.iotdataplane#MethodNotAllowedException":
|
|
525
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
526
|
+
case "ResourceNotFoundException":
|
|
527
|
+
case "com.amazonaws.iotdataplane#ResourceNotFoundException":
|
|
528
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
529
|
+
case "ServiceUnavailableException":
|
|
530
|
+
case "com.amazonaws.iotdataplane#ServiceUnavailableException":
|
|
531
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
532
|
+
case "ThrottlingException":
|
|
533
|
+
case "com.amazonaws.iotdataplane#ThrottlingException":
|
|
534
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
535
|
+
case "UnauthorizedException":
|
|
536
|
+
case "com.amazonaws.iotdataplane#UnauthorizedException":
|
|
537
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
538
|
+
default:
|
|
539
|
+
const parsedBody = parsedOutput.body;
|
|
540
|
+
return throwDefaultError({
|
|
541
|
+
output,
|
|
542
|
+
parsedBody,
|
|
543
|
+
errorCode
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
}, "de_GetRetainedMessageCommandError");
|
|
547
|
+
var de_GetThingShadowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
548
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
549
|
+
return de_GetThingShadowCommandError(output, context);
|
|
550
|
+
}
|
|
551
|
+
const contents = (0, import_smithy_client.map)({
|
|
552
|
+
$metadata: deserializeMetadata(output)
|
|
553
|
+
});
|
|
554
|
+
const data = await (0, import_smithy_client.collectBody)(output.body, context);
|
|
555
|
+
contents.payload = data;
|
|
556
|
+
return contents;
|
|
557
|
+
}, "de_GetThingShadowCommand");
|
|
558
|
+
var de_GetThingShadowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
559
|
+
const parsedOutput = {
|
|
560
|
+
...output,
|
|
561
|
+
body: await parseErrorBody(output.body, context)
|
|
562
|
+
};
|
|
563
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
+
switch (errorCode) {
|
|
565
|
+
case "InternalFailureException":
|
|
566
|
+
case "com.amazonaws.iotdataplane#InternalFailureException":
|
|
567
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
568
|
+
case "InvalidRequestException":
|
|
569
|
+
case "com.amazonaws.iotdataplane#InvalidRequestException":
|
|
570
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
571
|
+
case "MethodNotAllowedException":
|
|
572
|
+
case "com.amazonaws.iotdataplane#MethodNotAllowedException":
|
|
573
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
574
|
+
case "ResourceNotFoundException":
|
|
575
|
+
case "com.amazonaws.iotdataplane#ResourceNotFoundException":
|
|
576
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
577
|
+
case "ServiceUnavailableException":
|
|
578
|
+
case "com.amazonaws.iotdataplane#ServiceUnavailableException":
|
|
579
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
580
|
+
case "ThrottlingException":
|
|
581
|
+
case "com.amazonaws.iotdataplane#ThrottlingException":
|
|
582
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
583
|
+
case "UnauthorizedException":
|
|
584
|
+
case "com.amazonaws.iotdataplane#UnauthorizedException":
|
|
585
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
586
|
+
case "UnsupportedDocumentEncodingException":
|
|
587
|
+
case "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException":
|
|
588
|
+
throw await de_UnsupportedDocumentEncodingExceptionRes(parsedOutput, context);
|
|
589
|
+
default:
|
|
590
|
+
const parsedBody = parsedOutput.body;
|
|
591
|
+
return throwDefaultError({
|
|
592
|
+
output,
|
|
593
|
+
parsedBody,
|
|
594
|
+
errorCode
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
}, "de_GetThingShadowCommandError");
|
|
598
|
+
var de_ListNamedShadowsForThingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
599
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
+
return de_ListNamedShadowsForThingCommandError(output, context);
|
|
601
|
+
}
|
|
602
|
+
const contents = (0, import_smithy_client.map)({
|
|
603
|
+
$metadata: deserializeMetadata(output)
|
|
604
|
+
});
|
|
605
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
606
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
607
|
+
nextToken: import_smithy_client.expectString,
|
|
608
|
+
results: import_smithy_client._json,
|
|
609
|
+
timestamp: import_smithy_client.expectLong
|
|
610
|
+
});
|
|
611
|
+
Object.assign(contents, doc);
|
|
612
|
+
return contents;
|
|
613
|
+
}, "de_ListNamedShadowsForThingCommand");
|
|
614
|
+
var de_ListNamedShadowsForThingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
615
|
+
const parsedOutput = {
|
|
616
|
+
...output,
|
|
617
|
+
body: await parseErrorBody(output.body, context)
|
|
618
|
+
};
|
|
619
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
+
switch (errorCode) {
|
|
621
|
+
case "InternalFailureException":
|
|
622
|
+
case "com.amazonaws.iotdataplane#InternalFailureException":
|
|
623
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
624
|
+
case "InvalidRequestException":
|
|
625
|
+
case "com.amazonaws.iotdataplane#InvalidRequestException":
|
|
626
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
627
|
+
case "MethodNotAllowedException":
|
|
628
|
+
case "com.amazonaws.iotdataplane#MethodNotAllowedException":
|
|
629
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
630
|
+
case "ResourceNotFoundException":
|
|
631
|
+
case "com.amazonaws.iotdataplane#ResourceNotFoundException":
|
|
632
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
633
|
+
case "ServiceUnavailableException":
|
|
634
|
+
case "com.amazonaws.iotdataplane#ServiceUnavailableException":
|
|
635
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
636
|
+
case "ThrottlingException":
|
|
637
|
+
case "com.amazonaws.iotdataplane#ThrottlingException":
|
|
638
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
639
|
+
case "UnauthorizedException":
|
|
640
|
+
case "com.amazonaws.iotdataplane#UnauthorizedException":
|
|
641
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
642
|
+
default:
|
|
643
|
+
const parsedBody = parsedOutput.body;
|
|
644
|
+
return throwDefaultError({
|
|
645
|
+
output,
|
|
646
|
+
parsedBody,
|
|
647
|
+
errorCode
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
}, "de_ListNamedShadowsForThingCommandError");
|
|
651
|
+
var de_ListRetainedMessagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
652
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
+
return de_ListRetainedMessagesCommandError(output, context);
|
|
654
|
+
}
|
|
655
|
+
const contents = (0, import_smithy_client.map)({
|
|
656
|
+
$metadata: deserializeMetadata(output)
|
|
657
|
+
});
|
|
658
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
659
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
660
|
+
nextToken: import_smithy_client.expectString,
|
|
661
|
+
retainedTopics: import_smithy_client._json
|
|
662
|
+
});
|
|
663
|
+
Object.assign(contents, doc);
|
|
664
|
+
return contents;
|
|
665
|
+
}, "de_ListRetainedMessagesCommand");
|
|
666
|
+
var de_ListRetainedMessagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
667
|
+
const parsedOutput = {
|
|
668
|
+
...output,
|
|
669
|
+
body: await parseErrorBody(output.body, context)
|
|
670
|
+
};
|
|
671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
+
switch (errorCode) {
|
|
673
|
+
case "InternalFailureException":
|
|
674
|
+
case "com.amazonaws.iotdataplane#InternalFailureException":
|
|
675
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
676
|
+
case "InvalidRequestException":
|
|
677
|
+
case "com.amazonaws.iotdataplane#InvalidRequestException":
|
|
678
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
679
|
+
case "MethodNotAllowedException":
|
|
680
|
+
case "com.amazonaws.iotdataplane#MethodNotAllowedException":
|
|
681
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
682
|
+
case "ServiceUnavailableException":
|
|
683
|
+
case "com.amazonaws.iotdataplane#ServiceUnavailableException":
|
|
684
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
685
|
+
case "ThrottlingException":
|
|
686
|
+
case "com.amazonaws.iotdataplane#ThrottlingException":
|
|
687
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
688
|
+
case "UnauthorizedException":
|
|
689
|
+
case "com.amazonaws.iotdataplane#UnauthorizedException":
|
|
690
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
691
|
+
default:
|
|
692
|
+
const parsedBody = parsedOutput.body;
|
|
693
|
+
return throwDefaultError({
|
|
694
|
+
output,
|
|
695
|
+
parsedBody,
|
|
696
|
+
errorCode
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
}, "de_ListRetainedMessagesCommandError");
|
|
700
|
+
var de_PublishCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
701
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
702
|
+
return de_PublishCommandError(output, context);
|
|
703
|
+
}
|
|
704
|
+
const contents = (0, import_smithy_client.map)({
|
|
705
|
+
$metadata: deserializeMetadata(output)
|
|
706
|
+
});
|
|
707
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
708
|
+
return contents;
|
|
709
|
+
}, "de_PublishCommand");
|
|
710
|
+
var de_PublishCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
711
|
+
const parsedOutput = {
|
|
712
|
+
...output,
|
|
713
|
+
body: await parseErrorBody(output.body, context)
|
|
714
|
+
};
|
|
715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
|
+
switch (errorCode) {
|
|
717
|
+
case "InternalFailureException":
|
|
718
|
+
case "com.amazonaws.iotdataplane#InternalFailureException":
|
|
719
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
720
|
+
case "InvalidRequestException":
|
|
721
|
+
case "com.amazonaws.iotdataplane#InvalidRequestException":
|
|
722
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
723
|
+
case "MethodNotAllowedException":
|
|
724
|
+
case "com.amazonaws.iotdataplane#MethodNotAllowedException":
|
|
725
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
726
|
+
case "ThrottlingException":
|
|
727
|
+
case "com.amazonaws.iotdataplane#ThrottlingException":
|
|
728
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
729
|
+
case "UnauthorizedException":
|
|
730
|
+
case "com.amazonaws.iotdataplane#UnauthorizedException":
|
|
731
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
732
|
+
default:
|
|
733
|
+
const parsedBody = parsedOutput.body;
|
|
734
|
+
return throwDefaultError({
|
|
735
|
+
output,
|
|
736
|
+
parsedBody,
|
|
737
|
+
errorCode
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
}, "de_PublishCommandError");
|
|
741
|
+
var de_UpdateThingShadowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
742
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
+
return de_UpdateThingShadowCommandError(output, context);
|
|
744
|
+
}
|
|
745
|
+
const contents = (0, import_smithy_client.map)({
|
|
746
|
+
$metadata: deserializeMetadata(output)
|
|
747
|
+
});
|
|
748
|
+
const data = await (0, import_smithy_client.collectBody)(output.body, context);
|
|
749
|
+
contents.payload = data;
|
|
750
|
+
return contents;
|
|
751
|
+
}, "de_UpdateThingShadowCommand");
|
|
752
|
+
var de_UpdateThingShadowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
|
+
const parsedOutput = {
|
|
754
|
+
...output,
|
|
755
|
+
body: await parseErrorBody(output.body, context)
|
|
756
|
+
};
|
|
757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
|
+
switch (errorCode) {
|
|
759
|
+
case "ConflictException":
|
|
760
|
+
case "com.amazonaws.iotdataplane#ConflictException":
|
|
761
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
762
|
+
case "InternalFailureException":
|
|
763
|
+
case "com.amazonaws.iotdataplane#InternalFailureException":
|
|
764
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
765
|
+
case "InvalidRequestException":
|
|
766
|
+
case "com.amazonaws.iotdataplane#InvalidRequestException":
|
|
767
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
768
|
+
case "MethodNotAllowedException":
|
|
769
|
+
case "com.amazonaws.iotdataplane#MethodNotAllowedException":
|
|
770
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
771
|
+
case "RequestEntityTooLargeException":
|
|
772
|
+
case "com.amazonaws.iotdataplane#RequestEntityTooLargeException":
|
|
773
|
+
throw await de_RequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
774
|
+
case "ServiceUnavailableException":
|
|
775
|
+
case "com.amazonaws.iotdataplane#ServiceUnavailableException":
|
|
776
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
777
|
+
case "ThrottlingException":
|
|
778
|
+
case "com.amazonaws.iotdataplane#ThrottlingException":
|
|
779
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
780
|
+
case "UnauthorizedException":
|
|
781
|
+
case "com.amazonaws.iotdataplane#UnauthorizedException":
|
|
782
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
783
|
+
case "UnsupportedDocumentEncodingException":
|
|
784
|
+
case "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException":
|
|
785
|
+
throw await de_UnsupportedDocumentEncodingExceptionRes(parsedOutput, context);
|
|
786
|
+
default:
|
|
787
|
+
const parsedBody = parsedOutput.body;
|
|
788
|
+
return throwDefaultError({
|
|
789
|
+
output,
|
|
790
|
+
parsedBody,
|
|
791
|
+
errorCode
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
}, "de_UpdateThingShadowCommandError");
|
|
795
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTDataPlaneServiceException);
|
|
796
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
797
|
+
const contents = (0, import_smithy_client.map)({});
|
|
798
|
+
const data = parsedOutput.body;
|
|
799
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
800
|
+
message: import_smithy_client.expectString
|
|
801
|
+
});
|
|
802
|
+
Object.assign(contents, doc);
|
|
803
|
+
const exception = new ConflictException({
|
|
804
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
805
|
+
...contents
|
|
806
|
+
});
|
|
807
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
808
|
+
}, "de_ConflictExceptionRes");
|
|
809
|
+
var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
810
|
+
const contents = (0, import_smithy_client.map)({});
|
|
811
|
+
const data = parsedOutput.body;
|
|
812
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
813
|
+
message: import_smithy_client.expectString
|
|
814
|
+
});
|
|
815
|
+
Object.assign(contents, doc);
|
|
816
|
+
const exception = new InternalFailureException({
|
|
817
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
818
|
+
...contents
|
|
819
|
+
});
|
|
820
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
821
|
+
}, "de_InternalFailureExceptionRes");
|
|
822
|
+
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
823
|
+
const contents = (0, import_smithy_client.map)({});
|
|
824
|
+
const data = parsedOutput.body;
|
|
825
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
826
|
+
message: import_smithy_client.expectString
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
829
|
+
const exception = new InvalidRequestException({
|
|
830
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
831
|
+
...contents
|
|
832
|
+
});
|
|
833
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
834
|
+
}, "de_InvalidRequestExceptionRes");
|
|
835
|
+
var de_MethodNotAllowedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
836
|
+
const contents = (0, import_smithy_client.map)({});
|
|
837
|
+
const data = parsedOutput.body;
|
|
838
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
839
|
+
message: import_smithy_client.expectString
|
|
840
|
+
});
|
|
841
|
+
Object.assign(contents, doc);
|
|
842
|
+
const exception = new MethodNotAllowedException({
|
|
843
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
844
|
+
...contents
|
|
845
|
+
});
|
|
846
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
847
|
+
}, "de_MethodNotAllowedExceptionRes");
|
|
848
|
+
var de_RequestEntityTooLargeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
849
|
+
const contents = (0, import_smithy_client.map)({});
|
|
850
|
+
const data = parsedOutput.body;
|
|
851
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
852
|
+
message: import_smithy_client.expectString
|
|
853
|
+
});
|
|
854
|
+
Object.assign(contents, doc);
|
|
855
|
+
const exception = new RequestEntityTooLargeException({
|
|
856
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
857
|
+
...contents
|
|
858
|
+
});
|
|
859
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
860
|
+
}, "de_RequestEntityTooLargeExceptionRes");
|
|
861
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
862
|
+
const contents = (0, import_smithy_client.map)({});
|
|
863
|
+
const data = parsedOutput.body;
|
|
864
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
865
|
+
message: import_smithy_client.expectString
|
|
866
|
+
});
|
|
867
|
+
Object.assign(contents, doc);
|
|
868
|
+
const exception = new ResourceNotFoundException({
|
|
869
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
870
|
+
...contents
|
|
871
|
+
});
|
|
872
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
873
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
874
|
+
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
875
|
+
const contents = (0, import_smithy_client.map)({});
|
|
876
|
+
const data = parsedOutput.body;
|
|
877
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
878
|
+
message: import_smithy_client.expectString
|
|
879
|
+
});
|
|
880
|
+
Object.assign(contents, doc);
|
|
881
|
+
const exception = new ServiceUnavailableException({
|
|
882
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
883
|
+
...contents
|
|
884
|
+
});
|
|
885
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
886
|
+
}, "de_ServiceUnavailableExceptionRes");
|
|
887
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
888
|
+
const contents = (0, import_smithy_client.map)({});
|
|
889
|
+
const data = parsedOutput.body;
|
|
890
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
891
|
+
message: import_smithy_client.expectString
|
|
892
|
+
});
|
|
893
|
+
Object.assign(contents, doc);
|
|
894
|
+
const exception = new ThrottlingException({
|
|
895
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
896
|
+
...contents
|
|
897
|
+
});
|
|
898
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
899
|
+
}, "de_ThrottlingExceptionRes");
|
|
900
|
+
var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
901
|
+
const contents = (0, import_smithy_client.map)({});
|
|
902
|
+
const data = parsedOutput.body;
|
|
903
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
904
|
+
message: import_smithy_client.expectString
|
|
905
|
+
});
|
|
906
|
+
Object.assign(contents, doc);
|
|
907
|
+
const exception = new UnauthorizedException({
|
|
908
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
909
|
+
...contents
|
|
910
|
+
});
|
|
911
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
912
|
+
}, "de_UnauthorizedExceptionRes");
|
|
913
|
+
var de_UnsupportedDocumentEncodingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
914
|
+
const contents = (0, import_smithy_client.map)({});
|
|
915
|
+
const data = parsedOutput.body;
|
|
916
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
917
|
+
message: import_smithy_client.expectString
|
|
918
|
+
});
|
|
919
|
+
Object.assign(contents, doc);
|
|
920
|
+
const exception = new UnsupportedDocumentEncodingException({
|
|
921
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
922
|
+
...contents
|
|
923
|
+
});
|
|
924
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
925
|
+
}, "de_UnsupportedDocumentEncodingExceptionRes");
|
|
926
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
927
|
+
httpStatusCode: output.statusCode,
|
|
928
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
929
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
930
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
931
|
+
}), "deserializeMetadata");
|
|
932
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
933
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
934
|
+
var _cD = "correlationData";
|
|
935
|
+
var _cT = "contentType";
|
|
936
|
+
var _mE = "messageExpiry";
|
|
937
|
+
var _mR = "maxResults";
|
|
938
|
+
var _n = "name";
|
|
939
|
+
var _nT = "nextToken";
|
|
940
|
+
var _pFI = "payloadFormatIndicator";
|
|
941
|
+
var _pS = "pageSize";
|
|
942
|
+
var _q = "qos";
|
|
943
|
+
var _r = "retain";
|
|
944
|
+
var _rT = "responseTopic";
|
|
945
|
+
var _sN = "shadowName";
|
|
946
|
+
var _uP = "userProperties";
|
|
947
|
+
var _xamcd = "x-amz-mqtt5-correlation-data";
|
|
948
|
+
var _xampfi = "x-amz-mqtt5-payload-format-indicator";
|
|
949
|
+
var _xamup = "x-amz-mqtt5-user-properties";
|
|
950
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
951
|
+
if (encoded.length) {
|
|
952
|
+
return JSON.parse(encoded);
|
|
953
|
+
}
|
|
954
|
+
return {};
|
|
955
|
+
}), "parseBody");
|
|
956
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
957
|
+
const value = await parseBody(errorBody, context);
|
|
958
|
+
value.message = value.message ?? value.Message;
|
|
959
|
+
return value;
|
|
960
|
+
}, "parseErrorBody");
|
|
961
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
962
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
963
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
964
|
+
let cleanValue = rawValue;
|
|
965
|
+
if (typeof cleanValue === "number") {
|
|
966
|
+
cleanValue = cleanValue.toString();
|
|
967
|
+
}
|
|
968
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
969
|
+
cleanValue = cleanValue.split(",")[0];
|
|
970
|
+
}
|
|
971
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
972
|
+
cleanValue = cleanValue.split(":")[0];
|
|
973
|
+
}
|
|
974
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
975
|
+
cleanValue = cleanValue.split("#")[1];
|
|
976
|
+
}
|
|
977
|
+
return cleanValue;
|
|
978
|
+
}, "sanitizeErrorCode");
|
|
979
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
980
|
+
if (headerKey !== void 0) {
|
|
981
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
982
|
+
}
|
|
983
|
+
if (data.code !== void 0) {
|
|
984
|
+
return sanitizeErrorCode(data.code);
|
|
985
|
+
}
|
|
986
|
+
if (data["__type"] !== void 0) {
|
|
987
|
+
return sanitizeErrorCode(data["__type"]);
|
|
988
|
+
}
|
|
989
|
+
}, "loadRestJsonErrorCode");
|
|
990
|
+
|
|
991
|
+
// src/commands/DeleteThingShadowCommand.ts
|
|
992
|
+
var _DeleteThingShadowCommand = class _DeleteThingShadowCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
993
|
+
...commonParams
|
|
994
|
+
}).m(function(Command, cs, config, o) {
|
|
995
|
+
return [
|
|
996
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
997
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
998
|
+
];
|
|
999
|
+
}).s("IotMoonrakerService", "DeleteThingShadow", {}).n("IoTDataPlaneClient", "DeleteThingShadowCommand").f(void 0, void 0).ser(se_DeleteThingShadowCommand).de(de_DeleteThingShadowCommand).build() {
|
|
1000
|
+
};
|
|
1001
|
+
__name(_DeleteThingShadowCommand, "DeleteThingShadowCommand");
|
|
1002
|
+
var DeleteThingShadowCommand = _DeleteThingShadowCommand;
|
|
1003
|
+
|
|
1004
|
+
// src/commands/GetRetainedMessageCommand.ts
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
var _GetRetainedMessageCommand = class _GetRetainedMessageCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1010
|
+
...commonParams
|
|
1011
|
+
}).m(function(Command, cs, config, o) {
|
|
1012
|
+
return [
|
|
1013
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1014
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1015
|
+
];
|
|
1016
|
+
}).s("IotMoonrakerService", "GetRetainedMessage", {}).n("IoTDataPlaneClient", "GetRetainedMessageCommand").f(void 0, void 0).ser(se_GetRetainedMessageCommand).de(de_GetRetainedMessageCommand).build() {
|
|
1017
|
+
};
|
|
1018
|
+
__name(_GetRetainedMessageCommand, "GetRetainedMessageCommand");
|
|
1019
|
+
var GetRetainedMessageCommand = _GetRetainedMessageCommand;
|
|
1020
|
+
|
|
1021
|
+
// src/commands/GetThingShadowCommand.ts
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
var _GetThingShadowCommand = class _GetThingShadowCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1027
|
+
...commonParams
|
|
1028
|
+
}).m(function(Command, cs, config, o) {
|
|
1029
|
+
return [
|
|
1030
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1031
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1032
|
+
];
|
|
1033
|
+
}).s("IotMoonrakerService", "GetThingShadow", {}).n("IoTDataPlaneClient", "GetThingShadowCommand").f(void 0, void 0).ser(se_GetThingShadowCommand).de(de_GetThingShadowCommand).build() {
|
|
1034
|
+
};
|
|
1035
|
+
__name(_GetThingShadowCommand, "GetThingShadowCommand");
|
|
1036
|
+
var GetThingShadowCommand = _GetThingShadowCommand;
|
|
1037
|
+
|
|
1038
|
+
// src/commands/ListNamedShadowsForThingCommand.ts
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
var _ListNamedShadowsForThingCommand = class _ListNamedShadowsForThingCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1044
|
+
...commonParams
|
|
1045
|
+
}).m(function(Command, cs, config, o) {
|
|
1046
|
+
return [
|
|
1047
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1048
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1049
|
+
];
|
|
1050
|
+
}).s("IotMoonrakerService", "ListNamedShadowsForThing", {}).n("IoTDataPlaneClient", "ListNamedShadowsForThingCommand").f(void 0, void 0).ser(se_ListNamedShadowsForThingCommand).de(de_ListNamedShadowsForThingCommand).build() {
|
|
1051
|
+
};
|
|
1052
|
+
__name(_ListNamedShadowsForThingCommand, "ListNamedShadowsForThingCommand");
|
|
1053
|
+
var ListNamedShadowsForThingCommand = _ListNamedShadowsForThingCommand;
|
|
1054
|
+
|
|
1055
|
+
// src/commands/ListRetainedMessagesCommand.ts
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
var _ListRetainedMessagesCommand = class _ListRetainedMessagesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1061
|
+
...commonParams
|
|
1062
|
+
}).m(function(Command, cs, config, o) {
|
|
1063
|
+
return [
|
|
1064
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1065
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1066
|
+
];
|
|
1067
|
+
}).s("IotMoonrakerService", "ListRetainedMessages", {}).n("IoTDataPlaneClient", "ListRetainedMessagesCommand").f(void 0, void 0).ser(se_ListRetainedMessagesCommand).de(de_ListRetainedMessagesCommand).build() {
|
|
1068
|
+
};
|
|
1069
|
+
__name(_ListRetainedMessagesCommand, "ListRetainedMessagesCommand");
|
|
1070
|
+
var ListRetainedMessagesCommand = _ListRetainedMessagesCommand;
|
|
1071
|
+
|
|
1072
|
+
// src/commands/PublishCommand.ts
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
var _PublishCommand = class _PublishCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1078
|
+
...commonParams
|
|
1079
|
+
}).m(function(Command, cs, config, o) {
|
|
1080
|
+
return [
|
|
1081
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1082
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1083
|
+
];
|
|
1084
|
+
}).s("IotMoonrakerService", "Publish", {}).n("IoTDataPlaneClient", "PublishCommand").f(void 0, void 0).ser(se_PublishCommand).de(de_PublishCommand).build() {
|
|
1085
|
+
};
|
|
1086
|
+
__name(_PublishCommand, "PublishCommand");
|
|
1087
|
+
var PublishCommand = _PublishCommand;
|
|
1088
|
+
|
|
1089
|
+
// src/commands/UpdateThingShadowCommand.ts
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
var _UpdateThingShadowCommand = class _UpdateThingShadowCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1095
|
+
...commonParams
|
|
1096
|
+
}).m(function(Command, cs, config, o) {
|
|
1097
|
+
return [
|
|
1098
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1099
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1100
|
+
];
|
|
1101
|
+
}).s("IotMoonrakerService", "UpdateThingShadow", {}).n("IoTDataPlaneClient", "UpdateThingShadowCommand").f(void 0, void 0).ser(se_UpdateThingShadowCommand).de(de_UpdateThingShadowCommand).build() {
|
|
1102
|
+
};
|
|
1103
|
+
__name(_UpdateThingShadowCommand, "UpdateThingShadowCommand");
|
|
1104
|
+
var UpdateThingShadowCommand = _UpdateThingShadowCommand;
|
|
1105
|
+
|
|
1106
|
+
// src/IoTDataPlane.ts
|
|
1107
|
+
var commands = {
|
|
1108
|
+
DeleteThingShadowCommand,
|
|
1109
|
+
GetRetainedMessageCommand,
|
|
1110
|
+
GetThingShadowCommand,
|
|
1111
|
+
ListNamedShadowsForThingCommand,
|
|
1112
|
+
ListRetainedMessagesCommand,
|
|
1113
|
+
PublishCommand,
|
|
1114
|
+
UpdateThingShadowCommand
|
|
1115
|
+
};
|
|
1116
|
+
var _IoTDataPlane = class _IoTDataPlane extends IoTDataPlaneClient {
|
|
1117
|
+
};
|
|
1118
|
+
__name(_IoTDataPlane, "IoTDataPlane");
|
|
1119
|
+
var IoTDataPlane = _IoTDataPlane;
|
|
1120
|
+
(0, import_smithy_client.createAggregatedClient)(commands, IoTDataPlane);
|
|
1121
|
+
|
|
1122
|
+
// src/pagination/ListRetainedMessagesPaginator.ts
|
|
1123
|
+
|
|
1124
|
+
var paginateListRetainedMessages = (0, import_core.createPaginator)(IoTDataPlaneClient, ListRetainedMessagesCommand, "nextToken", "nextToken", "maxResults");
|
|
1125
|
+
|
|
1126
|
+
// src/index.ts
|
|
1127
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1128
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1129
|
+
0 && (module.exports = {
|
|
1130
|
+
ConflictException,
|
|
1131
|
+
DeleteThingShadowCommand,
|
|
1132
|
+
GetRetainedMessageCommand,
|
|
1133
|
+
GetThingShadowCommand,
|
|
1134
|
+
InternalFailureException,
|
|
1135
|
+
InvalidRequestException,
|
|
1136
|
+
IoTDataPlane,
|
|
1137
|
+
IoTDataPlaneClient,
|
|
1138
|
+
IoTDataPlaneServiceException,
|
|
1139
|
+
ListNamedShadowsForThingCommand,
|
|
1140
|
+
ListRetainedMessagesCommand,
|
|
1141
|
+
MethodNotAllowedException,
|
|
1142
|
+
PayloadFormatIndicator,
|
|
1143
|
+
PublishCommand,
|
|
1144
|
+
RequestEntityTooLargeException,
|
|
1145
|
+
ResourceNotFoundException,
|
|
1146
|
+
ServiceUnavailableException,
|
|
1147
|
+
ThrottlingException,
|
|
1148
|
+
UnauthorizedException,
|
|
1149
|
+
UnsupportedDocumentEncodingException,
|
|
1150
|
+
UpdateThingShadowCommand,
|
|
1151
|
+
__Client,
|
|
1152
|
+
paginateListRetainedMessages
|
|
1153
|
+
});
|