@aws-sdk/client-iot-data-plane 3.928.0 → 3.929.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.
Files changed (29) hide show
  1. package/dist-cjs/index.js +540 -512
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/IoTDataPlaneClient.js +2 -0
  4. package/dist-es/commands/DeleteConnectionCommand.js +3 -9
  5. package/dist-es/commands/DeleteThingShadowCommand.js +3 -9
  6. package/dist-es/commands/GetRetainedMessageCommand.js +3 -9
  7. package/dist-es/commands/GetThingShadowCommand.js +3 -9
  8. package/dist-es/commands/ListNamedShadowsForThingCommand.js +3 -9
  9. package/dist-es/commands/ListRetainedMessagesCommand.js +3 -9
  10. package/dist-es/commands/PublishCommand.js +3 -9
  11. package/dist-es/commands/UpdateThingShadowCommand.js +3 -9
  12. package/dist-es/runtimeConfig.shared.js +2 -0
  13. package/dist-es/schemas/schemas_0.js +506 -0
  14. package/dist-types/IoTDataPlaneClient.d.ts +10 -1
  15. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  16. package/dist-types/runtimeConfig.d.ts +1 -0
  17. package/dist-types/runtimeConfig.native.d.ts +1 -0
  18. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  19. package/dist-types/schemas/schemas_0.d.ts +40 -0
  20. package/dist-types/ts3.4/IoTDataPlaneClient.d.ts +4 -0
  21. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  25. package/dist-types/ts3.4/schemas/schemas_0.d.ts +46 -0
  26. package/package.json +2 -2
  27. package/dist-es/protocols/Aws_restJson1.js +0 -440
  28. package/dist-types/protocols/Aws_restJson1.d.ts +0 -74
  29. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -101
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class IoTDataPlaneClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class IoTDataPlaneClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class IoTDataPlaneServiceException extends smithyClient.ServiceException {
113
+ let IoTDataPlaneServiceException$1 = class IoTDataPlaneServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, IoTDataPlaneServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class ConflictException extends IoTDataPlaneServiceException {
120
+ let ConflictException$1 = class ConflictException extends IoTDataPlaneServiceException$1 {
121
121
  name = "ConflictException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,8 +128,8 @@ class ConflictException extends IoTDataPlaneServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, ConflictException.prototype);
130
130
  }
131
- }
132
- class ForbiddenException extends IoTDataPlaneServiceException {
131
+ };
132
+ let ForbiddenException$1 = class ForbiddenException extends IoTDataPlaneServiceException$1 {
133
133
  name = "ForbiddenException";
134
134
  $fault = "client";
135
135
  constructor(opts) {
@@ -140,8 +140,8 @@ class ForbiddenException extends IoTDataPlaneServiceException {
140
140
  });
141
141
  Object.setPrototypeOf(this, ForbiddenException.prototype);
142
142
  }
143
- }
144
- class InternalFailureException extends IoTDataPlaneServiceException {
143
+ };
144
+ let InternalFailureException$1 = class InternalFailureException extends IoTDataPlaneServiceException$1 {
145
145
  name = "InternalFailureException";
146
146
  $fault = "server";
147
147
  constructor(opts) {
@@ -152,8 +152,8 @@ class InternalFailureException extends IoTDataPlaneServiceException {
152
152
  });
153
153
  Object.setPrototypeOf(this, InternalFailureException.prototype);
154
154
  }
155
- }
156
- class InvalidRequestException extends IoTDataPlaneServiceException {
155
+ };
156
+ let InvalidRequestException$1 = class InvalidRequestException extends IoTDataPlaneServiceException$1 {
157
157
  name = "InvalidRequestException";
158
158
  $fault = "client";
159
159
  constructor(opts) {
@@ -164,8 +164,8 @@ class InvalidRequestException extends IoTDataPlaneServiceException {
164
164
  });
165
165
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
166
166
  }
167
- }
168
- class ResourceNotFoundException extends IoTDataPlaneServiceException {
167
+ };
168
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends IoTDataPlaneServiceException$1 {
169
169
  name = "ResourceNotFoundException";
170
170
  $fault = "client";
171
171
  constructor(opts) {
@@ -176,8 +176,8 @@ class ResourceNotFoundException extends IoTDataPlaneServiceException {
176
176
  });
177
177
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
178
178
  }
179
- }
180
- class ThrottlingException extends IoTDataPlaneServiceException {
179
+ };
180
+ let ThrottlingException$1 = class ThrottlingException extends IoTDataPlaneServiceException$1 {
181
181
  name = "ThrottlingException";
182
182
  $fault = "client";
183
183
  constructor(opts) {
@@ -188,8 +188,8 @@ class ThrottlingException extends IoTDataPlaneServiceException {
188
188
  });
189
189
  Object.setPrototypeOf(this, ThrottlingException.prototype);
190
190
  }
191
- }
192
- class MethodNotAllowedException extends IoTDataPlaneServiceException {
191
+ };
192
+ let MethodNotAllowedException$1 = class MethodNotAllowedException extends IoTDataPlaneServiceException$1 {
193
193
  name = "MethodNotAllowedException";
194
194
  $fault = "client";
195
195
  constructor(opts) {
@@ -200,8 +200,8 @@ class MethodNotAllowedException extends IoTDataPlaneServiceException {
200
200
  });
201
201
  Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
202
202
  }
203
- }
204
- class ServiceUnavailableException extends IoTDataPlaneServiceException {
203
+ };
204
+ let ServiceUnavailableException$1 = class ServiceUnavailableException extends IoTDataPlaneServiceException$1 {
205
205
  name = "ServiceUnavailableException";
206
206
  $fault = "server";
207
207
  constructor(opts) {
@@ -212,8 +212,8 @@ class ServiceUnavailableException extends IoTDataPlaneServiceException {
212
212
  });
213
213
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
214
214
  }
215
- }
216
- class UnauthorizedException extends IoTDataPlaneServiceException {
215
+ };
216
+ let UnauthorizedException$1 = class UnauthorizedException extends IoTDataPlaneServiceException$1 {
217
217
  name = "UnauthorizedException";
218
218
  $fault = "client";
219
219
  constructor(opts) {
@@ -224,8 +224,8 @@ class UnauthorizedException extends IoTDataPlaneServiceException {
224
224
  });
225
225
  Object.setPrototypeOf(this, UnauthorizedException.prototype);
226
226
  }
227
- }
228
- class UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException {
227
+ };
228
+ let UnsupportedDocumentEncodingException$1 = class UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException$1 {
229
229
  name = "UnsupportedDocumentEncodingException";
230
230
  $fault = "client";
231
231
  constructor(opts) {
@@ -236,12 +236,12 @@ class UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException
236
236
  });
237
237
  Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
238
238
  }
239
- }
239
+ };
240
240
  const PayloadFormatIndicator = {
241
241
  UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
242
242
  UTF8_DATA: "UTF8_DATA",
243
243
  };
244
- class RequestEntityTooLargeException extends IoTDataPlaneServiceException {
244
+ let RequestEntityTooLargeException$1 = class RequestEntityTooLargeException extends IoTDataPlaneServiceException$1 {
245
245
  name = "RequestEntityTooLargeException";
246
246
  $fault = "client";
247
247
  constructor(opts) {
@@ -252,457 +252,520 @@ class RequestEntityTooLargeException extends IoTDataPlaneServiceException {
252
252
  });
253
253
  Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
254
254
  }
255
- }
256
-
257
- const se_DeleteConnectionCommand = async (input, context) => {
258
- const b = core.requestBuilder(input, context);
259
- const headers = {};
260
- b.bp("/connections/{clientId}");
261
- b.p("clientId", () => input.clientId, "{clientId}", false);
262
- const query = smithyClient.map({
263
- [_cS]: [() => input.cleanSession !== void 0, () => input[_cS].toString()],
264
- [_pWM]: [() => input.preventWillMessage !== void 0, () => input[_pWM].toString()],
265
- });
266
- let body;
267
- b.m("DELETE").h(headers).q(query).b(body);
268
- return b.build();
269
- };
270
- const se_DeleteThingShadowCommand = async (input, context) => {
271
- const b = core.requestBuilder(input, context);
272
- const headers = {};
273
- b.bp("/things/{thingName}/shadow");
274
- b.p("thingName", () => input.thingName, "{thingName}", false);
275
- const query = smithyClient.map({
276
- [_n]: [, input[_sN]],
277
- });
278
- let body;
279
- b.m("DELETE").h(headers).q(query).b(body);
280
- return b.build();
281
- };
282
- const se_GetRetainedMessageCommand = async (input, context) => {
283
- const b = core.requestBuilder(input, context);
284
- const headers = {};
285
- b.bp("/retainedMessage/{topic}");
286
- b.p("topic", () => input.topic, "{topic}", false);
287
- let body;
288
- b.m("GET").h(headers).b(body);
289
- return b.build();
290
- };
291
- const se_GetThingShadowCommand = async (input, context) => {
292
- const b = core.requestBuilder(input, context);
293
- const headers = {};
294
- b.bp("/things/{thingName}/shadow");
295
- b.p("thingName", () => input.thingName, "{thingName}", false);
296
- const query = smithyClient.map({
297
- [_n]: [, input[_sN]],
298
- });
299
- let body;
300
- b.m("GET").h(headers).q(query).b(body);
301
- return b.build();
302
- };
303
- const se_ListNamedShadowsForThingCommand = async (input, context) => {
304
- const b = core.requestBuilder(input, context);
305
- const headers = {};
306
- b.bp("/api/things/shadow/ListNamedShadowsForThing/{thingName}");
307
- b.p("thingName", () => input.thingName, "{thingName}", false);
308
- const query = smithyClient.map({
309
- [_nT]: [, input[_nT]],
310
- [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()],
311
- });
312
- let body;
313
- b.m("GET").h(headers).q(query).b(body);
314
- return b.build();
315
255
  };
316
- const se_ListRetainedMessagesCommand = async (input, context) => {
317
- const b = core.requestBuilder(input, context);
318
- const headers = {};
319
- b.bp("/retainedMessage");
320
- const query = smithyClient.map({
321
- [_nT]: [, input[_nT]],
322
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
323
- });
324
- let body;
325
- b.m("GET").h(headers).q(query).b(body);
326
- return b.build();
327
- };
328
- const se_PublishCommand = async (input, context) => {
329
- const b = core.requestBuilder(input, context);
330
- const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
331
- "content-type": "application/octet-stream",
332
- [_xamup]: [
333
- () => smithyClient.isSerializableHeaderValue(input[_uP]),
334
- () => context.base64Encoder(Buffer.from(smithyClient.LazyJsonString.from(input[_uP]))),
335
- ],
336
- [_xampfi]: input[_pFI],
337
- [_xamcd]: input[_cD],
338
- });
339
- b.bp("/topics/{topic}");
340
- b.p("topic", () => input.topic, "{topic}", false);
341
- const query = smithyClient.map({
342
- [_q]: [() => input.qos !== void 0, () => input[_q].toString()],
343
- [_r]: [() => input.retain !== void 0, () => input[_r].toString()],
344
- [_cT]: [, input[_cT]],
345
- [_rT]: [, input[_rT]],
346
- [_mE]: [() => input.messageExpiry !== void 0, () => input[_mE].toString()],
347
- });
348
- let body;
349
- if (input.payload !== undefined) {
350
- body = input.payload;
351
- }
352
- b.m("POST").h(headers).q(query).b(body);
353
- return b.build();
354
- };
355
- const se_UpdateThingShadowCommand = async (input, context) => {
356
- const b = core.requestBuilder(input, context);
357
- const headers = {
358
- "content-type": "application/octet-stream",
359
- };
360
- b.bp("/things/{thingName}/shadow");
361
- b.p("thingName", () => input.thingName, "{thingName}", false);
362
- const query = smithyClient.map({
363
- [_n]: [, input[_sN]],
364
- });
365
- let body;
366
- if (input.payload !== undefined) {
367
- body = input.payload;
368
- }
369
- b.m("POST").h(headers).q(query).b(body);
370
- return b.build();
371
- };
372
- const de_DeleteConnectionCommand = async (output, context) => {
373
- if (output.statusCode !== 200 && output.statusCode >= 300) {
374
- return de_CommandError(output, context);
375
- }
376
- const contents = smithyClient.map({
377
- $metadata: deserializeMetadata(output),
378
- });
379
- await smithyClient.collectBody(output.body, context);
380
- return contents;
381
- };
382
- const de_DeleteThingShadowCommand = async (output, context) => {
383
- if (output.statusCode !== 200 && output.statusCode >= 300) {
384
- return de_CommandError(output, context);
385
- }
386
- const contents = smithyClient.map({
387
- $metadata: deserializeMetadata(output),
388
- });
389
- const data = await smithyClient.collectBody(output.body, context);
390
- contents.payload = data;
391
- return contents;
392
- };
393
- const de_GetRetainedMessageCommand = async (output, context) => {
394
- if (output.statusCode !== 200 && output.statusCode >= 300) {
395
- return de_CommandError(output, context);
396
- }
397
- const contents = smithyClient.map({
398
- $metadata: deserializeMetadata(output),
399
- });
400
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
401
- const doc = smithyClient.take(data, {
402
- lastModifiedTime: smithyClient.expectLong,
403
- payload: context.base64Decoder,
404
- qos: smithyClient.expectInt32,
405
- topic: smithyClient.expectString,
406
- userProperties: context.base64Decoder,
407
- });
408
- Object.assign(contents, doc);
409
- return contents;
410
- };
411
- const de_GetThingShadowCommand = async (output, context) => {
412
- if (output.statusCode !== 200 && output.statusCode >= 300) {
413
- return de_CommandError(output, context);
414
- }
415
- const contents = smithyClient.map({
416
- $metadata: deserializeMetadata(output),
417
- });
418
- const data = await smithyClient.collectBody(output.body, context);
419
- contents.payload = data;
420
- return contents;
421
- };
422
- const de_ListNamedShadowsForThingCommand = async (output, context) => {
423
- if (output.statusCode !== 200 && output.statusCode >= 300) {
424
- return de_CommandError(output, context);
425
- }
426
- const contents = smithyClient.map({
427
- $metadata: deserializeMetadata(output),
428
- });
429
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
430
- const doc = smithyClient.take(data, {
431
- nextToken: smithyClient.expectString,
432
- results: smithyClient._json,
433
- timestamp: smithyClient.expectLong,
434
- });
435
- Object.assign(contents, doc);
436
- return contents;
437
- };
438
- const de_ListRetainedMessagesCommand = async (output, context) => {
439
- if (output.statusCode !== 200 && output.statusCode >= 300) {
440
- return de_CommandError(output, context);
441
- }
442
- const contents = smithyClient.map({
443
- $metadata: deserializeMetadata(output),
444
- });
445
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
446
- const doc = smithyClient.take(data, {
447
- nextToken: smithyClient.expectString,
448
- retainedTopics: smithyClient._json,
449
- });
450
- Object.assign(contents, doc);
451
- return contents;
452
- };
453
- const de_PublishCommand = async (output, context) => {
454
- if (output.statusCode !== 200 && output.statusCode >= 300) {
455
- return de_CommandError(output, context);
456
- }
457
- const contents = smithyClient.map({
458
- $metadata: deserializeMetadata(output),
459
- });
460
- await smithyClient.collectBody(output.body, context);
461
- return contents;
462
- };
463
- const de_UpdateThingShadowCommand = async (output, context) => {
464
- if (output.statusCode !== 200 && output.statusCode >= 300) {
465
- return de_CommandError(output, context);
466
- }
467
- const contents = smithyClient.map({
468
- $metadata: deserializeMetadata(output),
469
- });
470
- const data = await smithyClient.collectBody(output.body, context);
471
- contents.payload = data;
472
- return contents;
473
- };
474
- const de_CommandError = async (output, context) => {
475
- const parsedOutput = {
476
- ...output,
477
- body: await core$1.parseJsonErrorBody(output.body, context),
478
- };
479
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
480
- switch (errorCode) {
481
- case "ForbiddenException":
482
- case "com.amazonaws.iotdataplane#ForbiddenException":
483
- throw await de_ForbiddenExceptionRes(parsedOutput);
484
- case "InternalFailureException":
485
- case "com.amazonaws.iotdataplane#InternalFailureException":
486
- throw await de_InternalFailureExceptionRes(parsedOutput);
487
- case "InvalidRequestException":
488
- case "com.amazonaws.iotdataplane#InvalidRequestException":
489
- throw await de_InvalidRequestExceptionRes(parsedOutput);
490
- case "ResourceNotFoundException":
491
- case "com.amazonaws.iotdataplane#ResourceNotFoundException":
492
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
493
- case "ThrottlingException":
494
- case "com.amazonaws.iotdataplane#ThrottlingException":
495
- throw await de_ThrottlingExceptionRes(parsedOutput);
496
- case "MethodNotAllowedException":
497
- case "com.amazonaws.iotdataplane#MethodNotAllowedException":
498
- throw await de_MethodNotAllowedExceptionRes(parsedOutput);
499
- case "ServiceUnavailableException":
500
- case "com.amazonaws.iotdataplane#ServiceUnavailableException":
501
- throw await de_ServiceUnavailableExceptionRes(parsedOutput);
502
- case "UnauthorizedException":
503
- case "com.amazonaws.iotdataplane#UnauthorizedException":
504
- throw await de_UnauthorizedExceptionRes(parsedOutput);
505
- case "UnsupportedDocumentEncodingException":
506
- case "com.amazonaws.iotdataplane#UnsupportedDocumentEncodingException":
507
- throw await de_UnsupportedDocumentEncodingExceptionRes(parsedOutput);
508
- case "ConflictException":
509
- case "com.amazonaws.iotdataplane#ConflictException":
510
- throw await de_ConflictExceptionRes(parsedOutput);
511
- case "RequestEntityTooLargeException":
512
- case "com.amazonaws.iotdataplane#RequestEntityTooLargeException":
513
- throw await de_RequestEntityTooLargeExceptionRes(parsedOutput);
514
- default:
515
- const parsedBody = parsedOutput.body;
516
- return throwDefaultError({
517
- output,
518
- parsedBody,
519
- errorCode,
520
- });
521
- }
522
- };
523
- const throwDefaultError = smithyClient.withBaseException(IoTDataPlaneServiceException);
524
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
525
- const contents = smithyClient.map({});
526
- const data = parsedOutput.body;
527
- const doc = smithyClient.take(data, {
528
- message: smithyClient.expectString,
529
- });
530
- Object.assign(contents, doc);
531
- const exception = new ConflictException({
532
- $metadata: deserializeMetadata(parsedOutput),
533
- ...contents,
534
- });
535
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
536
- };
537
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
538
- const contents = smithyClient.map({});
539
- const data = parsedOutput.body;
540
- const doc = smithyClient.take(data, {
541
- message: smithyClient.expectString,
542
- });
543
- Object.assign(contents, doc);
544
- const exception = new ForbiddenException({
545
- $metadata: deserializeMetadata(parsedOutput),
546
- ...contents,
547
- });
548
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
549
- };
550
- const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
551
- const contents = smithyClient.map({});
552
- const data = parsedOutput.body;
553
- const doc = smithyClient.take(data, {
554
- message: smithyClient.expectString,
555
- });
556
- Object.assign(contents, doc);
557
- const exception = new InternalFailureException({
558
- $metadata: deserializeMetadata(parsedOutput),
559
- ...contents,
560
- });
561
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
562
- };
563
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
564
- const contents = smithyClient.map({});
565
- const data = parsedOutput.body;
566
- const doc = smithyClient.take(data, {
567
- message: smithyClient.expectString,
568
- });
569
- Object.assign(contents, doc);
570
- const exception = new InvalidRequestException({
571
- $metadata: deserializeMetadata(parsedOutput),
572
- ...contents,
573
- });
574
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
575
- };
576
- const de_MethodNotAllowedExceptionRes = async (parsedOutput, context) => {
577
- const contents = smithyClient.map({});
578
- const data = parsedOutput.body;
579
- const doc = smithyClient.take(data, {
580
- message: smithyClient.expectString,
581
- });
582
- Object.assign(contents, doc);
583
- const exception = new MethodNotAllowedException({
584
- $metadata: deserializeMetadata(parsedOutput),
585
- ...contents,
586
- });
587
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
588
- };
589
- const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
590
- const contents = smithyClient.map({});
591
- const data = parsedOutput.body;
592
- const doc = smithyClient.take(data, {
593
- message: smithyClient.expectString,
594
- });
595
- Object.assign(contents, doc);
596
- const exception = new RequestEntityTooLargeException({
597
- $metadata: deserializeMetadata(parsedOutput),
598
- ...contents,
599
- });
600
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
601
- };
602
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
603
- const contents = smithyClient.map({});
604
- const data = parsedOutput.body;
605
- const doc = smithyClient.take(data, {
606
- message: smithyClient.expectString,
607
- });
608
- Object.assign(contents, doc);
609
- const exception = new ResourceNotFoundException({
610
- $metadata: deserializeMetadata(parsedOutput),
611
- ...contents,
612
- });
613
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
614
- };
615
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
616
- const contents = smithyClient.map({});
617
- const data = parsedOutput.body;
618
- const doc = smithyClient.take(data, {
619
- message: smithyClient.expectString,
620
- });
621
- Object.assign(contents, doc);
622
- const exception = new ServiceUnavailableException({
623
- $metadata: deserializeMetadata(parsedOutput),
624
- ...contents,
625
- });
626
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
627
- };
628
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
629
- const contents = smithyClient.map({});
630
- const data = parsedOutput.body;
631
- const doc = smithyClient.take(data, {
632
- message: smithyClient.expectString,
633
- });
634
- Object.assign(contents, doc);
635
- const exception = new ThrottlingException({
636
- $metadata: deserializeMetadata(parsedOutput),
637
- ...contents,
638
- });
639
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
640
- };
641
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
642
- const contents = smithyClient.map({});
643
- const data = parsedOutput.body;
644
- const doc = smithyClient.take(data, {
645
- message: smithyClient.expectString,
646
- });
647
- Object.assign(contents, doc);
648
- const exception = new UnauthorizedException({
649
- $metadata: deserializeMetadata(parsedOutput),
650
- ...contents,
651
- });
652
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
653
- };
654
- const de_UnsupportedDocumentEncodingExceptionRes = async (parsedOutput, context) => {
655
- const contents = smithyClient.map({});
656
- const data = parsedOutput.body;
657
- const doc = smithyClient.take(data, {
658
- message: smithyClient.expectString,
659
- });
660
- Object.assign(contents, doc);
661
- const exception = new UnsupportedDocumentEncodingException({
662
- $metadata: deserializeMetadata(parsedOutput),
663
- ...contents,
664
- });
665
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
666
- };
667
- const deserializeMetadata = (output) => ({
668
- httpStatusCode: output.statusCode,
669
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
670
- extendedRequestId: output.headers["x-amz-id-2"],
671
- cfId: output.headers["x-amz-cf-id"],
672
- });
256
+
257
+ const _CE = "ConflictException";
258
+ const _DC = "DeleteConnection";
259
+ const _DCR = "DeleteConnectionRequest";
260
+ const _DTS = "DeleteThingShadow";
261
+ const _DTSR = "DeleteThingShadowRequest";
262
+ const _DTSRe = "DeleteThingShadowResponse";
263
+ const _FE = "ForbiddenException";
264
+ const _GRM = "GetRetainedMessage";
265
+ const _GRMR = "GetRetainedMessageRequest";
266
+ const _GRMRe = "GetRetainedMessageResponse";
267
+ const _GTS = "GetThingShadow";
268
+ const _GTSR = "GetThingShadowRequest";
269
+ const _GTSRe = "GetThingShadowResponse";
270
+ const _IFE = "InternalFailureException";
271
+ const _IRE = "InvalidRequestException";
272
+ const _LNSFT = "ListNamedShadowsForThing";
273
+ const _LNSFTR = "ListNamedShadowsForThingRequest";
274
+ const _LNSFTRi = "ListNamedShadowsForThingResponse";
275
+ const _LRM = "ListRetainedMessages";
276
+ const _LRMR = "ListRetainedMessagesRequest";
277
+ const _LRMRi = "ListRetainedMessagesResponse";
278
+ const _MNAE = "MethodNotAllowedException";
279
+ const _P = "Publish";
280
+ const _PR = "PublishRequest";
281
+ const _RETLE = "RequestEntityTooLargeException";
282
+ const _RML = "RetainedMessageList";
283
+ const _RMS = "RetainedMessageSummary";
284
+ const _RNFE = "ResourceNotFoundException";
285
+ const _SJUP = "SynthesizedJsonUserProperties";
286
+ const _SUE = "ServiceUnavailableException";
287
+ const _TE = "ThrottlingException";
288
+ const _UDEE = "UnsupportedDocumentEncodingException";
289
+ const _UE = "UnauthorizedException";
290
+ const _UTS = "UpdateThingShadow";
291
+ const _UTSR = "UpdateThingShadowRequest";
292
+ const _UTSRp = "UpdateThingShadowResponse";
293
+ const _a = "application/json";
294
+ const _c = "client";
673
295
  const _cD = "correlationData";
296
+ const _cI = "clientId";
674
297
  const _cS = "cleanSession";
675
298
  const _cT = "contentType";
299
+ const _e = "error";
300
+ const _h = "http";
301
+ const _hE = "httpError";
302
+ const _hH = "httpHeader";
303
+ const _hQ = "httpQuery";
304
+ const _lMT = "lastModifiedTime";
305
+ const _m = "message";
676
306
  const _mE = "messageExpiry";
677
307
  const _mR = "maxResults";
308
+ const _mT = "mediaType";
678
309
  const _n = "name";
679
310
  const _nT = "nextToken";
311
+ const _p = "payload";
680
312
  const _pFI = "payloadFormatIndicator";
681
313
  const _pS = "pageSize";
314
+ const _pSa = "payloadSize";
682
315
  const _pWM = "preventWillMessage";
683
316
  const _q = "qos";
684
- const _r = "retain";
685
- const _rT = "responseTopic";
317
+ const _r = "results";
318
+ const _rT = "retainedTopics";
319
+ const _rTe = "responseTopic";
320
+ const _re = "retain";
321
+ const _s = "server";
686
322
  const _sN = "shadowName";
323
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane";
324
+ const _t = "topic";
325
+ const _tN = "thingName";
326
+ const _ti = "timestamp";
687
327
  const _uP = "userProperties";
688
328
  const _xamcd = "x-amz-mqtt5-correlation-data";
689
329
  const _xampfi = "x-amz-mqtt5-payload-format-indicator";
690
330
  const _xamup = "x-amz-mqtt5-user-properties";
331
+ const n0 = "com.amazonaws.iotdataplane";
332
+ var SynthesizedJsonUserProperties = [
333
+ 0,
334
+ n0,
335
+ _SJUP,
336
+ {
337
+ [_mT]: _a,
338
+ },
339
+ 0,
340
+ ];
341
+ var ConflictException = [
342
+ -3,
343
+ n0,
344
+ _CE,
345
+ {
346
+ [_e]: _c,
347
+ [_hE]: 409,
348
+ },
349
+ [_m],
350
+ [0],
351
+ ];
352
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
353
+ var DeleteConnectionRequest = [
354
+ 3,
355
+ n0,
356
+ _DCR,
357
+ 0,
358
+ [_cI, _cS, _pWM],
359
+ [
360
+ [0, 1],
361
+ [
362
+ 2,
363
+ {
364
+ [_hQ]: _cS,
365
+ },
366
+ ],
367
+ [
368
+ 2,
369
+ {
370
+ [_hQ]: _pWM,
371
+ },
372
+ ],
373
+ ],
374
+ ];
375
+ var DeleteThingShadowRequest = [
376
+ 3,
377
+ n0,
378
+ _DTSR,
379
+ 0,
380
+ [_tN, _sN],
381
+ [
382
+ [0, 1],
383
+ [
384
+ 0,
385
+ {
386
+ [_hQ]: _n,
387
+ },
388
+ ],
389
+ ],
390
+ ];
391
+ var DeleteThingShadowResponse = [3, n0, _DTSRe, 0, [_p], [[21, 16]]];
392
+ var ForbiddenException = [
393
+ -3,
394
+ n0,
395
+ _FE,
396
+ {
397
+ [_e]: _c,
398
+ [_hE]: 403,
399
+ },
400
+ [_m],
401
+ [0],
402
+ ];
403
+ schema.TypeRegistry.for(n0).registerError(ForbiddenException, ForbiddenException$1);
404
+ var GetRetainedMessageRequest = [3, n0, _GRMR, 0, [_t], [[0, 1]]];
405
+ var GetRetainedMessageResponse = [
406
+ 3,
407
+ n0,
408
+ _GRMRe,
409
+ 0,
410
+ [_t, _p, _q, _lMT, _uP],
411
+ [0, 21, 1, 1, 21],
412
+ ];
413
+ var GetThingShadowRequest = [
414
+ 3,
415
+ n0,
416
+ _GTSR,
417
+ 0,
418
+ [_tN, _sN],
419
+ [
420
+ [0, 1],
421
+ [
422
+ 0,
423
+ {
424
+ [_hQ]: _n,
425
+ },
426
+ ],
427
+ ],
428
+ ];
429
+ var GetThingShadowResponse = [3, n0, _GTSRe, 0, [_p], [[21, 16]]];
430
+ var InternalFailureException = [
431
+ -3,
432
+ n0,
433
+ _IFE,
434
+ {
435
+ [_e]: _s,
436
+ [_hE]: 500,
437
+ },
438
+ [_m],
439
+ [0],
440
+ ];
441
+ schema.TypeRegistry.for(n0).registerError(InternalFailureException, InternalFailureException$1);
442
+ var InvalidRequestException = [
443
+ -3,
444
+ n0,
445
+ _IRE,
446
+ {
447
+ [_e]: _c,
448
+ [_hE]: 400,
449
+ },
450
+ [_m],
451
+ [0],
452
+ ];
453
+ schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
454
+ var ListNamedShadowsForThingRequest = [
455
+ 3,
456
+ n0,
457
+ _LNSFTR,
458
+ 0,
459
+ [_tN, _nT, _pS],
460
+ [
461
+ [0, 1],
462
+ [
463
+ 0,
464
+ {
465
+ [_hQ]: _nT,
466
+ },
467
+ ],
468
+ [
469
+ 1,
470
+ {
471
+ [_hQ]: _pS,
472
+ },
473
+ ],
474
+ ],
475
+ ];
476
+ var ListNamedShadowsForThingResponse = [
477
+ 3,
478
+ n0,
479
+ _LNSFTRi,
480
+ 0,
481
+ [_r, _nT, _ti],
482
+ [64 | 0, 0, 1],
483
+ ];
484
+ var ListRetainedMessagesRequest = [
485
+ 3,
486
+ n0,
487
+ _LRMR,
488
+ 0,
489
+ [_nT, _mR],
490
+ [
491
+ [
492
+ 0,
493
+ {
494
+ [_hQ]: _nT,
495
+ },
496
+ ],
497
+ [
498
+ 1,
499
+ {
500
+ [_hQ]: _mR,
501
+ },
502
+ ],
503
+ ],
504
+ ];
505
+ var ListRetainedMessagesResponse = [
506
+ 3,
507
+ n0,
508
+ _LRMRi,
509
+ 0,
510
+ [_rT, _nT],
511
+ [() => RetainedMessageList, 0],
512
+ ];
513
+ var MethodNotAllowedException = [
514
+ -3,
515
+ n0,
516
+ _MNAE,
517
+ {
518
+ [_e]: _c,
519
+ [_hE]: 405,
520
+ },
521
+ [_m],
522
+ [0],
523
+ ];
524
+ schema.TypeRegistry.for(n0).registerError(MethodNotAllowedException, MethodNotAllowedException$1);
525
+ var PublishRequest = [
526
+ 3,
527
+ n0,
528
+ _PR,
529
+ 0,
530
+ [_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
531
+ [
532
+ [0, 1],
533
+ [
534
+ 1,
535
+ {
536
+ [_hQ]: _q,
537
+ },
538
+ ],
539
+ [
540
+ 2,
541
+ {
542
+ [_hQ]: _re,
543
+ },
544
+ ],
545
+ [21, 16],
546
+ [
547
+ () => SynthesizedJsonUserProperties,
548
+ {
549
+ [_hH]: _xamup,
550
+ },
551
+ ],
552
+ [
553
+ 0,
554
+ {
555
+ [_hH]: _xampfi,
556
+ },
557
+ ],
558
+ [
559
+ 0,
560
+ {
561
+ [_hQ]: _cT,
562
+ },
563
+ ],
564
+ [
565
+ 0,
566
+ {
567
+ [_hQ]: _rTe,
568
+ },
569
+ ],
570
+ [
571
+ 0,
572
+ {
573
+ [_hH]: _xamcd,
574
+ },
575
+ ],
576
+ [
577
+ 1,
578
+ {
579
+ [_hQ]: _mE,
580
+ },
581
+ ],
582
+ ],
583
+ ];
584
+ var RequestEntityTooLargeException = [
585
+ -3,
586
+ n0,
587
+ _RETLE,
588
+ {
589
+ [_e]: _c,
590
+ [_hE]: 413,
591
+ },
592
+ [_m],
593
+ [0],
594
+ ];
595
+ schema.TypeRegistry.for(n0).registerError(RequestEntityTooLargeException, RequestEntityTooLargeException$1);
596
+ var ResourceNotFoundException = [
597
+ -3,
598
+ n0,
599
+ _RNFE,
600
+ {
601
+ [_e]: _c,
602
+ [_hE]: 404,
603
+ },
604
+ [_m],
605
+ [0],
606
+ ];
607
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
608
+ var RetainedMessageSummary = [3, n0, _RMS, 0, [_t, _pSa, _q, _lMT], [0, 1, 1, 1]];
609
+ var ServiceUnavailableException = [
610
+ -3,
611
+ n0,
612
+ _SUE,
613
+ {
614
+ [_e]: _s,
615
+ [_hE]: 503,
616
+ },
617
+ [_m],
618
+ [0],
619
+ ];
620
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
621
+ var ThrottlingException = [
622
+ -3,
623
+ n0,
624
+ _TE,
625
+ {
626
+ [_e]: _c,
627
+ [_hE]: 429,
628
+ },
629
+ [_m],
630
+ [0],
631
+ ];
632
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
633
+ var UnauthorizedException = [
634
+ -3,
635
+ n0,
636
+ _UE,
637
+ {
638
+ [_e]: _c,
639
+ [_hE]: 401,
640
+ },
641
+ [_m],
642
+ [0],
643
+ ];
644
+ schema.TypeRegistry.for(n0).registerError(UnauthorizedException, UnauthorizedException$1);
645
+ var UnsupportedDocumentEncodingException = [
646
+ -3,
647
+ n0,
648
+ _UDEE,
649
+ {
650
+ [_e]: _c,
651
+ [_hE]: 415,
652
+ },
653
+ [_m],
654
+ [0],
655
+ ];
656
+ schema.TypeRegistry.for(n0).registerError(UnsupportedDocumentEncodingException, UnsupportedDocumentEncodingException$1);
657
+ var UpdateThingShadowRequest = [
658
+ 3,
659
+ n0,
660
+ _UTSR,
661
+ 0,
662
+ [_tN, _sN, _p],
663
+ [
664
+ [0, 1],
665
+ [
666
+ 0,
667
+ {
668
+ [_hQ]: _n,
669
+ },
670
+ ],
671
+ [21, 16],
672
+ ],
673
+ ];
674
+ var UpdateThingShadowResponse = [3, n0, _UTSRp, 0, [_p], [[21, 16]]];
675
+ var __Unit = "unit";
676
+ var IoTDataPlaneServiceException = [-3, _sm, "IoTDataPlaneServiceException", 0, [], []];
677
+ schema.TypeRegistry.for(_sm).registerError(IoTDataPlaneServiceException, IoTDataPlaneServiceException$1);
678
+ var RetainedMessageList = [1, n0, _RML, 0, () => RetainedMessageSummary];
679
+ var DeleteConnection = [
680
+ 9,
681
+ n0,
682
+ _DC,
683
+ {
684
+ [_h]: ["DELETE", "/connections/{clientId}", 200],
685
+ },
686
+ () => DeleteConnectionRequest,
687
+ () => __Unit,
688
+ ];
689
+ var DeleteThingShadow = [
690
+ 9,
691
+ n0,
692
+ _DTS,
693
+ {
694
+ [_h]: ["DELETE", "/things/{thingName}/shadow", 200],
695
+ },
696
+ () => DeleteThingShadowRequest,
697
+ () => DeleteThingShadowResponse,
698
+ ];
699
+ var GetRetainedMessage = [
700
+ 9,
701
+ n0,
702
+ _GRM,
703
+ {
704
+ [_h]: ["GET", "/retainedMessage/{topic}", 200],
705
+ },
706
+ () => GetRetainedMessageRequest,
707
+ () => GetRetainedMessageResponse,
708
+ ];
709
+ var GetThingShadow = [
710
+ 9,
711
+ n0,
712
+ _GTS,
713
+ {
714
+ [_h]: ["GET", "/things/{thingName}/shadow", 200],
715
+ },
716
+ () => GetThingShadowRequest,
717
+ () => GetThingShadowResponse,
718
+ ];
719
+ var ListNamedShadowsForThing = [
720
+ 9,
721
+ n0,
722
+ _LNSFT,
723
+ {
724
+ [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200],
725
+ },
726
+ () => ListNamedShadowsForThingRequest,
727
+ () => ListNamedShadowsForThingResponse,
728
+ ];
729
+ var ListRetainedMessages = [
730
+ 9,
731
+ n0,
732
+ _LRM,
733
+ {
734
+ [_h]: ["GET", "/retainedMessage", 200],
735
+ },
736
+ () => ListRetainedMessagesRequest,
737
+ () => ListRetainedMessagesResponse,
738
+ ];
739
+ var Publish = [
740
+ 9,
741
+ n0,
742
+ _P,
743
+ {
744
+ [_h]: ["POST", "/topics/{topic}", 200],
745
+ },
746
+ () => PublishRequest,
747
+ () => __Unit,
748
+ ];
749
+ var UpdateThingShadow = [
750
+ 9,
751
+ n0,
752
+ _UTS,
753
+ {
754
+ [_h]: ["POST", "/things/{thingName}/shadow", 200],
755
+ },
756
+ () => UpdateThingShadowRequest,
757
+ () => UpdateThingShadowResponse,
758
+ ];
691
759
 
692
760
  class DeleteConnectionCommand extends smithyClient.Command
693
761
  .classBuilder()
694
762
  .ep(commonParams)
695
763
  .m(function (Command, cs, config, o) {
696
- return [
697
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
698
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
699
- ];
764
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
700
765
  })
701
766
  .s("IotMoonrakerService", "DeleteConnection", {})
702
767
  .n("IoTDataPlaneClient", "DeleteConnectionCommand")
703
- .f(void 0, void 0)
704
- .ser(se_DeleteConnectionCommand)
705
- .de(de_DeleteConnectionCommand)
768
+ .sc(DeleteConnection)
706
769
  .build() {
707
770
  }
708
771
 
@@ -710,16 +773,11 @@ class DeleteThingShadowCommand extends smithyClient.Command
710
773
  .classBuilder()
711
774
  .ep(commonParams)
712
775
  .m(function (Command, cs, config, o) {
713
- return [
714
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
715
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
716
- ];
776
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
717
777
  })
718
778
  .s("IotMoonrakerService", "DeleteThingShadow", {})
719
779
  .n("IoTDataPlaneClient", "DeleteThingShadowCommand")
720
- .f(void 0, void 0)
721
- .ser(se_DeleteThingShadowCommand)
722
- .de(de_DeleteThingShadowCommand)
780
+ .sc(DeleteThingShadow)
723
781
  .build() {
724
782
  }
725
783
 
@@ -727,16 +785,11 @@ class GetRetainedMessageCommand extends smithyClient.Command
727
785
  .classBuilder()
728
786
  .ep(commonParams)
729
787
  .m(function (Command, cs, config, o) {
730
- return [
731
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
732
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
733
- ];
788
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
734
789
  })
735
790
  .s("IotMoonrakerService", "GetRetainedMessage", {})
736
791
  .n("IoTDataPlaneClient", "GetRetainedMessageCommand")
737
- .f(void 0, void 0)
738
- .ser(se_GetRetainedMessageCommand)
739
- .de(de_GetRetainedMessageCommand)
792
+ .sc(GetRetainedMessage)
740
793
  .build() {
741
794
  }
742
795
 
@@ -744,16 +797,11 @@ class GetThingShadowCommand extends smithyClient.Command
744
797
  .classBuilder()
745
798
  .ep(commonParams)
746
799
  .m(function (Command, cs, config, o) {
747
- return [
748
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
749
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
750
- ];
800
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
751
801
  })
752
802
  .s("IotMoonrakerService", "GetThingShadow", {})
753
803
  .n("IoTDataPlaneClient", "GetThingShadowCommand")
754
- .f(void 0, void 0)
755
- .ser(se_GetThingShadowCommand)
756
- .de(de_GetThingShadowCommand)
804
+ .sc(GetThingShadow)
757
805
  .build() {
758
806
  }
759
807
 
@@ -761,16 +809,11 @@ class ListNamedShadowsForThingCommand extends smithyClient.Command
761
809
  .classBuilder()
762
810
  .ep(commonParams)
763
811
  .m(function (Command, cs, config, o) {
764
- return [
765
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
766
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
767
- ];
812
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
768
813
  })
769
814
  .s("IotMoonrakerService", "ListNamedShadowsForThing", {})
770
815
  .n("IoTDataPlaneClient", "ListNamedShadowsForThingCommand")
771
- .f(void 0, void 0)
772
- .ser(se_ListNamedShadowsForThingCommand)
773
- .de(de_ListNamedShadowsForThingCommand)
816
+ .sc(ListNamedShadowsForThing)
774
817
  .build() {
775
818
  }
776
819
 
@@ -778,16 +821,11 @@ class ListRetainedMessagesCommand extends smithyClient.Command
778
821
  .classBuilder()
779
822
  .ep(commonParams)
780
823
  .m(function (Command, cs, config, o) {
781
- return [
782
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
783
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
784
- ];
824
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
785
825
  })
786
826
  .s("IotMoonrakerService", "ListRetainedMessages", {})
787
827
  .n("IoTDataPlaneClient", "ListRetainedMessagesCommand")
788
- .f(void 0, void 0)
789
- .ser(se_ListRetainedMessagesCommand)
790
- .de(de_ListRetainedMessagesCommand)
828
+ .sc(ListRetainedMessages)
791
829
  .build() {
792
830
  }
793
831
 
@@ -795,16 +833,11 @@ class PublishCommand extends smithyClient.Command
795
833
  .classBuilder()
796
834
  .ep(commonParams)
797
835
  .m(function (Command, cs, config, o) {
798
- return [
799
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
800
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
801
- ];
836
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
802
837
  })
803
838
  .s("IotMoonrakerService", "Publish", {})
804
839
  .n("IoTDataPlaneClient", "PublishCommand")
805
- .f(void 0, void 0)
806
- .ser(se_PublishCommand)
807
- .de(de_PublishCommand)
840
+ .sc(Publish)
808
841
  .build() {
809
842
  }
810
843
 
@@ -812,16 +845,11 @@ class UpdateThingShadowCommand extends smithyClient.Command
812
845
  .classBuilder()
813
846
  .ep(commonParams)
814
847
  .m(function (Command, cs, config, o) {
815
- return [
816
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
817
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
818
- ];
848
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
819
849
  })
820
850
  .s("IotMoonrakerService", "UpdateThingShadow", {})
821
851
  .n("IoTDataPlaneClient", "UpdateThingShadowCommand")
822
- .f(void 0, void 0)
823
- .ser(se_UpdateThingShadowCommand)
824
- .de(de_UpdateThingShadowCommand)
852
+ .sc(UpdateThingShadow)
825
853
  .build() {
826
854
  }
827
855
 
@@ -849,27 +877,27 @@ Object.defineProperty(exports, "__Client", {
849
877
  enumerable: true,
850
878
  get: function () { return smithyClient.Client; }
851
879
  });
852
- exports.ConflictException = ConflictException;
880
+ exports.ConflictException = ConflictException$1;
853
881
  exports.DeleteConnectionCommand = DeleteConnectionCommand;
854
882
  exports.DeleteThingShadowCommand = DeleteThingShadowCommand;
855
- exports.ForbiddenException = ForbiddenException;
883
+ exports.ForbiddenException = ForbiddenException$1;
856
884
  exports.GetRetainedMessageCommand = GetRetainedMessageCommand;
857
885
  exports.GetThingShadowCommand = GetThingShadowCommand;
858
- exports.InternalFailureException = InternalFailureException;
859
- exports.InvalidRequestException = InvalidRequestException;
886
+ exports.InternalFailureException = InternalFailureException$1;
887
+ exports.InvalidRequestException = InvalidRequestException$1;
860
888
  exports.IoTDataPlane = IoTDataPlane;
861
889
  exports.IoTDataPlaneClient = IoTDataPlaneClient;
862
- exports.IoTDataPlaneServiceException = IoTDataPlaneServiceException;
890
+ exports.IoTDataPlaneServiceException = IoTDataPlaneServiceException$1;
863
891
  exports.ListNamedShadowsForThingCommand = ListNamedShadowsForThingCommand;
864
892
  exports.ListRetainedMessagesCommand = ListRetainedMessagesCommand;
865
- exports.MethodNotAllowedException = MethodNotAllowedException;
893
+ exports.MethodNotAllowedException = MethodNotAllowedException$1;
866
894
  exports.PayloadFormatIndicator = PayloadFormatIndicator;
867
895
  exports.PublishCommand = PublishCommand;
868
- exports.RequestEntityTooLargeException = RequestEntityTooLargeException;
869
- exports.ResourceNotFoundException = ResourceNotFoundException;
870
- exports.ServiceUnavailableException = ServiceUnavailableException;
871
- exports.ThrottlingException = ThrottlingException;
872
- exports.UnauthorizedException = UnauthorizedException;
873
- exports.UnsupportedDocumentEncodingException = UnsupportedDocumentEncodingException;
896
+ exports.RequestEntityTooLargeException = RequestEntityTooLargeException$1;
897
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
898
+ exports.ServiceUnavailableException = ServiceUnavailableException$1;
899
+ exports.ThrottlingException = ThrottlingException$1;
900
+ exports.UnauthorizedException = UnauthorizedException$1;
901
+ exports.UnsupportedDocumentEncodingException = UnsupportedDocumentEncodingException$1;
874
902
  exports.UpdateThingShadowCommand = UpdateThingShadowCommand;
875
903
  exports.paginateListRetainedMessages = paginateListRetainedMessages;