@aws-sdk/client-iot-data-plane 3.862.0 → 3.864.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/README.md CHANGED
@@ -214,6 +214,14 @@ see LICENSE for more information.
214
214
 
215
215
  ## Client Commands (Operations List)
216
216
 
217
+ <details>
218
+ <summary>
219
+ DeleteConnection
220
+ </summary>
221
+
222
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-data-plane/command/DeleteConnectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-data-plane/Interface/DeleteConnectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-data-plane/Interface/DeleteConnectionCommandOutput/)
223
+
224
+ </details>
217
225
  <details>
218
226
  <summary>
219
227
  DeleteThingShadow
package/dist-cjs/index.js CHANGED
@@ -22,7 +22,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var index_exports = {};
23
23
  __export(index_exports, {
24
24
  ConflictException: () => ConflictException,
25
+ DeleteConnectionCommand: () => DeleteConnectionCommand,
25
26
  DeleteThingShadowCommand: () => DeleteThingShadowCommand,
27
+ ForbiddenException: () => ForbiddenException,
26
28
  GetRetainedMessageCommand: () => GetRetainedMessageCommand,
27
29
  GetThingShadowCommand: () => GetThingShadowCommand,
28
30
  InternalFailureException: () => InternalFailureException,
@@ -191,7 +193,7 @@ var IoTDataPlaneClient = class extends import_smithy_client.Client {
191
193
  // src/IoTDataPlane.ts
192
194
 
193
195
 
194
- // src/commands/DeleteThingShadowCommand.ts
196
+ // src/commands/DeleteConnectionCommand.ts
195
197
 
196
198
  var import_middleware_serde = require("@smithy/middleware-serde");
197
199
 
@@ -235,6 +237,24 @@ var ConflictException = class _ConflictException extends IoTDataPlaneServiceExce
235
237
  Object.setPrototypeOf(this, _ConflictException.prototype);
236
238
  }
237
239
  };
240
+ var ForbiddenException = class _ForbiddenException extends IoTDataPlaneServiceException {
241
+ static {
242
+ __name(this, "ForbiddenException");
243
+ }
244
+ name = "ForbiddenException";
245
+ $fault = "client";
246
+ /**
247
+ * @internal
248
+ */
249
+ constructor(opts) {
250
+ super({
251
+ name: "ForbiddenException",
252
+ $fault: "client",
253
+ ...opts
254
+ });
255
+ Object.setPrototypeOf(this, _ForbiddenException.prototype);
256
+ }
257
+ };
238
258
  var InternalFailureException = class _InternalFailureException extends IoTDataPlaneServiceException {
239
259
  static {
240
260
  __name(this, "InternalFailureException");
@@ -271,76 +291,76 @@ var InvalidRequestException = class _InvalidRequestException extends IoTDataPlan
271
291
  Object.setPrototypeOf(this, _InvalidRequestException.prototype);
272
292
  }
273
293
  };
274
- var MethodNotAllowedException = class _MethodNotAllowedException extends IoTDataPlaneServiceException {
294
+ var ResourceNotFoundException = class _ResourceNotFoundException extends IoTDataPlaneServiceException {
275
295
  static {
276
- __name(this, "MethodNotAllowedException");
296
+ __name(this, "ResourceNotFoundException");
277
297
  }
278
- name = "MethodNotAllowedException";
298
+ name = "ResourceNotFoundException";
279
299
  $fault = "client";
280
300
  /**
281
301
  * @internal
282
302
  */
283
303
  constructor(opts) {
284
304
  super({
285
- name: "MethodNotAllowedException",
305
+ name: "ResourceNotFoundException",
286
306
  $fault: "client",
287
307
  ...opts
288
308
  });
289
- Object.setPrototypeOf(this, _MethodNotAllowedException.prototype);
309
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
290
310
  }
291
311
  };
292
- var ResourceNotFoundException = class _ResourceNotFoundException extends IoTDataPlaneServiceException {
312
+ var ThrottlingException = class _ThrottlingException extends IoTDataPlaneServiceException {
293
313
  static {
294
- __name(this, "ResourceNotFoundException");
314
+ __name(this, "ThrottlingException");
295
315
  }
296
- name = "ResourceNotFoundException";
316
+ name = "ThrottlingException";
297
317
  $fault = "client";
298
318
  /**
299
319
  * @internal
300
320
  */
301
321
  constructor(opts) {
302
322
  super({
303
- name: "ResourceNotFoundException",
323
+ name: "ThrottlingException",
304
324
  $fault: "client",
305
325
  ...opts
306
326
  });
307
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
327
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
308
328
  }
309
329
  };
310
- var ServiceUnavailableException = class _ServiceUnavailableException extends IoTDataPlaneServiceException {
330
+ var MethodNotAllowedException = class _MethodNotAllowedException extends IoTDataPlaneServiceException {
311
331
  static {
312
- __name(this, "ServiceUnavailableException");
332
+ __name(this, "MethodNotAllowedException");
313
333
  }
314
- name = "ServiceUnavailableException";
315
- $fault = "server";
334
+ name = "MethodNotAllowedException";
335
+ $fault = "client";
316
336
  /**
317
337
  * @internal
318
338
  */
319
339
  constructor(opts) {
320
340
  super({
321
- name: "ServiceUnavailableException",
322
- $fault: "server",
341
+ name: "MethodNotAllowedException",
342
+ $fault: "client",
323
343
  ...opts
324
344
  });
325
- Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
345
+ Object.setPrototypeOf(this, _MethodNotAllowedException.prototype);
326
346
  }
327
347
  };
328
- var ThrottlingException = class _ThrottlingException extends IoTDataPlaneServiceException {
348
+ var ServiceUnavailableException = class _ServiceUnavailableException extends IoTDataPlaneServiceException {
329
349
  static {
330
- __name(this, "ThrottlingException");
350
+ __name(this, "ServiceUnavailableException");
331
351
  }
332
- name = "ThrottlingException";
333
- $fault = "client";
352
+ name = "ServiceUnavailableException";
353
+ $fault = "server";
334
354
  /**
335
355
  * @internal
336
356
  */
337
357
  constructor(opts) {
338
358
  super({
339
- name: "ThrottlingException",
340
- $fault: "client",
359
+ name: "ServiceUnavailableException",
360
+ $fault: "server",
341
361
  ...opts
342
362
  });
343
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
363
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
344
364
  }
345
365
  };
346
366
  var UnauthorizedException = class _UnauthorizedException extends IoTDataPlaneServiceException {
@@ -403,6 +423,19 @@ var RequestEntityTooLargeException = class _RequestEntityTooLargeException exten
403
423
  };
404
424
 
405
425
  // src/protocols/Aws_restJson1.ts
426
+ var se_DeleteConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
427
+ const b = (0, import_core.requestBuilder)(input, context);
428
+ const headers = {};
429
+ b.bp("/connections/{clientId}");
430
+ b.p("clientId", () => input.clientId, "{clientId}", false);
431
+ const query = (0, import_smithy_client.map)({
432
+ [_cS]: [() => input.cleanSession !== void 0, () => input[_cS].toString()],
433
+ [_pWM]: [() => input.preventWillMessage !== void 0, () => input[_pWM].toString()]
434
+ });
435
+ let body;
436
+ b.m("DELETE").h(headers).q(query).b(body);
437
+ return b.build();
438
+ }, "se_DeleteConnectionCommand");
406
439
  var se_DeleteThingShadowCommand = /* @__PURE__ */ __name(async (input, context) => {
407
440
  const b = (0, import_core.requestBuilder)(input, context);
408
441
  const headers = {};
@@ -505,6 +538,16 @@ var se_UpdateThingShadowCommand = /* @__PURE__ */ __name(async (input, context)
505
538
  b.m("POST").h(headers).q(query).b(body);
506
539
  return b.build();
507
540
  }, "se_UpdateThingShadowCommand");
541
+ var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
542
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
543
+ return de_CommandError(output, context);
544
+ }
545
+ const contents = (0, import_smithy_client.map)({
546
+ $metadata: deserializeMetadata(output)
547
+ });
548
+ await (0, import_smithy_client.collectBody)(output.body, context);
549
+ return contents;
550
+ }, "de_DeleteConnectionCommand");
508
551
  var de_DeleteThingShadowCommand = /* @__PURE__ */ __name(async (output, context) => {
509
552
  if (output.statusCode !== 200 && output.statusCode >= 300) {
510
553
  return de_CommandError(output, context);
@@ -604,24 +647,27 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
604
647
  };
605
648
  const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
606
649
  switch (errorCode) {
650
+ case "ForbiddenException":
651
+ case "com.amazonaws.iotdataplane#ForbiddenException":
652
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
607
653
  case "InternalFailureException":
608
654
  case "com.amazonaws.iotdataplane#InternalFailureException":
609
655
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
610
656
  case "InvalidRequestException":
611
657
  case "com.amazonaws.iotdataplane#InvalidRequestException":
612
658
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
613
- case "MethodNotAllowedException":
614
- case "com.amazonaws.iotdataplane#MethodNotAllowedException":
615
- throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
616
659
  case "ResourceNotFoundException":
617
660
  case "com.amazonaws.iotdataplane#ResourceNotFoundException":
618
661
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
619
- case "ServiceUnavailableException":
620
- case "com.amazonaws.iotdataplane#ServiceUnavailableException":
621
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
622
662
  case "ThrottlingException":
623
663
  case "com.amazonaws.iotdataplane#ThrottlingException":
624
664
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
665
+ case "MethodNotAllowedException":
666
+ case "com.amazonaws.iotdataplane#MethodNotAllowedException":
667
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
668
+ case "ServiceUnavailableException":
669
+ case "com.amazonaws.iotdataplane#ServiceUnavailableException":
670
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
625
671
  case "UnauthorizedException":
626
672
  case "com.amazonaws.iotdataplane#UnauthorizedException":
627
673
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
@@ -657,6 +703,19 @@ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, contex
657
703
  });
658
704
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
659
705
  }, "de_ConflictExceptionRes");
706
+ var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
707
+ const contents = (0, import_smithy_client.map)({});
708
+ const data = parsedOutput.body;
709
+ const doc = (0, import_smithy_client.take)(data, {
710
+ message: import_smithy_client.expectString
711
+ });
712
+ Object.assign(contents, doc);
713
+ const exception = new ForbiddenException({
714
+ $metadata: deserializeMetadata(parsedOutput),
715
+ ...contents
716
+ });
717
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
718
+ }, "de_ForbiddenExceptionRes");
660
719
  var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
661
720
  const contents = (0, import_smithy_client.map)({});
662
721
  const data = parsedOutput.body;
@@ -781,6 +840,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
781
840
  cfId: output.headers["x-amz-cf-id"]
782
841
  }), "deserializeMetadata");
783
842
  var _cD = "correlationData";
843
+ var _cS = "cleanSession";
784
844
  var _cT = "contentType";
785
845
  var _mE = "messageExpiry";
786
846
  var _mR = "maxResults";
@@ -788,6 +848,7 @@ var _n = "name";
788
848
  var _nT = "nextToken";
789
849
  var _pFI = "payloadFormatIndicator";
790
850
  var _pS = "pageSize";
851
+ var _pWM = "preventWillMessage";
791
852
  var _q = "qos";
792
853
  var _r = "retain";
793
854
  var _rT = "responseTopic";
@@ -797,7 +858,22 @@ var _xamcd = "x-amz-mqtt5-correlation-data";
797
858
  var _xampfi = "x-amz-mqtt5-payload-format-indicator";
798
859
  var _xamup = "x-amz-mqtt5-user-properties";
799
860
 
861
+ // src/commands/DeleteConnectionCommand.ts
862
+ var DeleteConnectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
863
+ return [
864
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
865
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
866
+ ];
867
+ }).s("IotMoonrakerService", "DeleteConnection", {}).n("IoTDataPlaneClient", "DeleteConnectionCommand").f(void 0, void 0).ser(se_DeleteConnectionCommand).de(de_DeleteConnectionCommand).build() {
868
+ static {
869
+ __name(this, "DeleteConnectionCommand");
870
+ }
871
+ };
872
+
800
873
  // src/commands/DeleteThingShadowCommand.ts
874
+
875
+
876
+
801
877
  var DeleteThingShadowCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
802
878
  return [
803
879
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -901,6 +977,7 @@ var UpdateThingShadowCommand = class extends import_smithy_client.Command.classB
901
977
 
902
978
  // src/IoTDataPlane.ts
903
979
  var commands = {
980
+ DeleteConnectionCommand,
904
981
  DeleteThingShadowCommand,
905
982
  GetRetainedMessageCommand,
906
983
  GetThingShadowCommand,
@@ -927,6 +1004,7 @@ var paginateListRetainedMessages = (0, import_core.createPaginator)(IoTDataPlane
927
1004
  IoTDataPlaneClient,
928
1005
  IoTDataPlane,
929
1006
  $Command,
1007
+ DeleteConnectionCommand,
930
1008
  DeleteThingShadowCommand,
931
1009
  GetRetainedMessageCommand,
932
1010
  GetThingShadowCommand,
@@ -936,12 +1014,13 @@ var paginateListRetainedMessages = (0, import_core.createPaginator)(IoTDataPlane
936
1014
  UpdateThingShadowCommand,
937
1015
  paginateListRetainedMessages,
938
1016
  ConflictException,
1017
+ ForbiddenException,
939
1018
  InternalFailureException,
940
1019
  InvalidRequestException,
941
- MethodNotAllowedException,
942
1020
  ResourceNotFoundException,
943
- ServiceUnavailableException,
944
1021
  ThrottlingException,
1022
+ MethodNotAllowedException,
1023
+ ServiceUnavailableException,
945
1024
  UnauthorizedException,
946
1025
  UnsupportedDocumentEncodingException,
947
1026
  PayloadFormatIndicator,
@@ -1,4 +1,5 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { DeleteConnectionCommand, } from "./commands/DeleteConnectionCommand";
2
3
  import { DeleteThingShadowCommand, } from "./commands/DeleteThingShadowCommand";
3
4
  import { GetRetainedMessageCommand, } from "./commands/GetRetainedMessageCommand";
4
5
  import { GetThingShadowCommand, } from "./commands/GetThingShadowCommand";
@@ -8,6 +9,7 @@ import { PublishCommand } from "./commands/PublishCommand";
8
9
  import { UpdateThingShadowCommand, } from "./commands/UpdateThingShadowCommand";
9
10
  import { IoTDataPlaneClient } from "./IoTDataPlaneClient";
10
11
  const commands = {
12
+ DeleteConnectionCommand,
11
13
  DeleteThingShadowCommand,
12
14
  GetRetainedMessageCommand,
13
15
  GetThingShadowCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteConnectionCommand, se_DeleteConnectionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteConnectionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("IotMoonrakerService", "DeleteConnection", {})
17
+ .n("IoTDataPlaneClient", "DeleteConnectionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteConnectionCommand)
20
+ .de(de_DeleteConnectionCommand)
21
+ .build() {
22
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./DeleteConnectionCommand";
1
2
  export * from "./DeleteThingShadowCommand";
2
3
  export * from "./GetRetainedMessageCommand";
3
4
  export * from "./GetThingShadowCommand";
@@ -11,6 +11,18 @@ export class ConflictException extends __BaseException {
11
11
  Object.setPrototypeOf(this, ConflictException.prototype);
12
12
  }
13
13
  }
14
+ export class ForbiddenException extends __BaseException {
15
+ name = "ForbiddenException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ForbiddenException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
24
+ }
25
+ }
14
26
  export class InternalFailureException extends __BaseException {
15
27
  name = "InternalFailureException";
16
28
  $fault = "server";
@@ -35,52 +47,52 @@ export class InvalidRequestException extends __BaseException {
35
47
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
36
48
  }
37
49
  }
38
- export class MethodNotAllowedException extends __BaseException {
39
- name = "MethodNotAllowedException";
50
+ export class ResourceNotFoundException extends __BaseException {
51
+ name = "ResourceNotFoundException";
40
52
  $fault = "client";
41
53
  constructor(opts) {
42
54
  super({
43
- name: "MethodNotAllowedException",
55
+ name: "ResourceNotFoundException",
44
56
  $fault: "client",
45
57
  ...opts,
46
58
  });
47
- Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
59
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
48
60
  }
49
61
  }
50
- export class ResourceNotFoundException extends __BaseException {
51
- name = "ResourceNotFoundException";
62
+ export class ThrottlingException extends __BaseException {
63
+ name = "ThrottlingException";
52
64
  $fault = "client";
53
65
  constructor(opts) {
54
66
  super({
55
- name: "ResourceNotFoundException",
67
+ name: "ThrottlingException",
56
68
  $fault: "client",
57
69
  ...opts,
58
70
  });
59
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
71
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
60
72
  }
61
73
  }
62
- export class ServiceUnavailableException extends __BaseException {
63
- name = "ServiceUnavailableException";
64
- $fault = "server";
74
+ export class MethodNotAllowedException extends __BaseException {
75
+ name = "MethodNotAllowedException";
76
+ $fault = "client";
65
77
  constructor(opts) {
66
78
  super({
67
- name: "ServiceUnavailableException",
68
- $fault: "server",
79
+ name: "MethodNotAllowedException",
80
+ $fault: "client",
69
81
  ...opts,
70
82
  });
71
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
83
+ Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
72
84
  }
73
85
  }
74
- export class ThrottlingException extends __BaseException {
75
- name = "ThrottlingException";
76
- $fault = "client";
86
+ export class ServiceUnavailableException extends __BaseException {
87
+ name = "ServiceUnavailableException";
88
+ $fault = "server";
77
89
  constructor(opts) {
78
90
  super({
79
- name: "ThrottlingException",
80
- $fault: "client",
91
+ name: "ServiceUnavailableException",
92
+ $fault: "server",
81
93
  ...opts,
82
94
  });
83
- Object.setPrototypeOf(this, ThrottlingException.prototype);
95
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
84
96
  }
85
97
  }
86
98
  export class UnauthorizedException extends __BaseException {
@@ -2,7 +2,20 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, LazyJsonString as __LazyJsonString, map, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { IoTDataPlaneServiceException as __BaseException } from "../models/IoTDataPlaneServiceException";
5
- import { ConflictException, InternalFailureException, InvalidRequestException, MethodNotAllowedException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException, } from "../models/models_0";
5
+ import { ConflictException, ForbiddenException, InternalFailureException, InvalidRequestException, MethodNotAllowedException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException, } from "../models/models_0";
6
+ export const se_DeleteConnectionCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {};
9
+ b.bp("/connections/{clientId}");
10
+ b.p("clientId", () => input.clientId, "{clientId}", false);
11
+ const query = map({
12
+ [_cS]: [() => input.cleanSession !== void 0, () => input[_cS].toString()],
13
+ [_pWM]: [() => input.preventWillMessage !== void 0, () => input[_pWM].toString()],
14
+ });
15
+ let body;
16
+ b.m("DELETE").h(headers).q(query).b(body);
17
+ return b.build();
18
+ };
6
19
  export const se_DeleteThingShadowCommand = async (input, context) => {
7
20
  const b = rb(input, context);
8
21
  const headers = {};
@@ -105,6 +118,16 @@ export const se_UpdateThingShadowCommand = async (input, context) => {
105
118
  b.m("POST").h(headers).q(query).b(body);
106
119
  return b.build();
107
120
  };
121
+ export const de_DeleteConnectionCommand = async (output, context) => {
122
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
123
+ return de_CommandError(output, context);
124
+ }
125
+ const contents = map({
126
+ $metadata: deserializeMetadata(output),
127
+ });
128
+ await collectBody(output.body, context);
129
+ return contents;
130
+ };
108
131
  export const de_DeleteThingShadowCommand = async (output, context) => {
109
132
  if (output.statusCode !== 200 && output.statusCode >= 300) {
110
133
  return de_CommandError(output, context);
@@ -204,24 +227,27 @@ const de_CommandError = async (output, context) => {
204
227
  };
205
228
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
206
229
  switch (errorCode) {
230
+ case "ForbiddenException":
231
+ case "com.amazonaws.iotdataplane#ForbiddenException":
232
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
207
233
  case "InternalFailureException":
208
234
  case "com.amazonaws.iotdataplane#InternalFailureException":
209
235
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
210
236
  case "InvalidRequestException":
211
237
  case "com.amazonaws.iotdataplane#InvalidRequestException":
212
238
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
213
- case "MethodNotAllowedException":
214
- case "com.amazonaws.iotdataplane#MethodNotAllowedException":
215
- throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
216
239
  case "ResourceNotFoundException":
217
240
  case "com.amazonaws.iotdataplane#ResourceNotFoundException":
218
241
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
219
- case "ServiceUnavailableException":
220
- case "com.amazonaws.iotdataplane#ServiceUnavailableException":
221
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
222
242
  case "ThrottlingException":
223
243
  case "com.amazonaws.iotdataplane#ThrottlingException":
224
244
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
245
+ case "MethodNotAllowedException":
246
+ case "com.amazonaws.iotdataplane#MethodNotAllowedException":
247
+ throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
248
+ case "ServiceUnavailableException":
249
+ case "com.amazonaws.iotdataplane#ServiceUnavailableException":
250
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
225
251
  case "UnauthorizedException":
226
252
  case "com.amazonaws.iotdataplane#UnauthorizedException":
227
253
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
@@ -257,6 +283,19 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
257
283
  });
258
284
  return __decorateServiceException(exception, parsedOutput.body);
259
285
  };
286
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
287
+ const contents = map({});
288
+ const data = parsedOutput.body;
289
+ const doc = take(data, {
290
+ message: __expectString,
291
+ });
292
+ Object.assign(contents, doc);
293
+ const exception = new ForbiddenException({
294
+ $metadata: deserializeMetadata(parsedOutput),
295
+ ...contents,
296
+ });
297
+ return __decorateServiceException(exception, parsedOutput.body);
298
+ };
260
299
  const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
261
300
  const contents = map({});
262
301
  const data = parsedOutput.body;
@@ -382,6 +421,7 @@ const deserializeMetadata = (output) => ({
382
421
  });
383
422
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
384
423
  const _cD = "correlationData";
424
+ const _cS = "cleanSession";
385
425
  const _cT = "contentType";
386
426
  const _mE = "messageExpiry";
387
427
  const _mR = "maxResults";
@@ -389,6 +429,7 @@ const _n = "name";
389
429
  const _nT = "nextToken";
390
430
  const _pFI = "payloadFormatIndicator";
391
431
  const _pS = "pageSize";
432
+ const _pWM = "preventWillMessage";
392
433
  const _q = "qos";
393
434
  const _r = "retain";
394
435
  const _rT = "responseTopic";
@@ -1,4 +1,5 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
2
3
  import { DeleteThingShadowCommandInput, DeleteThingShadowCommandOutput } from "./commands/DeleteThingShadowCommand";
3
4
  import { GetRetainedMessageCommandInput, GetRetainedMessageCommandOutput } from "./commands/GetRetainedMessageCommand";
4
5
  import { GetThingShadowCommandInput, GetThingShadowCommandOutput } from "./commands/GetThingShadowCommand";
@@ -8,6 +9,12 @@ import { PublishCommandInput, PublishCommandOutput } from "./commands/PublishCom
8
9
  import { UpdateThingShadowCommandInput, UpdateThingShadowCommandOutput } from "./commands/UpdateThingShadowCommand";
9
10
  import { IoTDataPlaneClient } from "./IoTDataPlaneClient";
10
11
  export interface IoTDataPlane {
12
+ /**
13
+ * @see {@link DeleteConnectionCommand}
14
+ */
15
+ deleteConnection(args: DeleteConnectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectionCommandOutput>;
16
+ deleteConnection(args: DeleteConnectionCommandInput, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
17
+ deleteConnection(args: DeleteConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectionCommandOutput) => void): void;
11
18
  /**
12
19
  * @see {@link DeleteThingShadowCommand}
13
20
  */
@@ -7,6 +7,7 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
10
11
  import { DeleteThingShadowCommandInput, DeleteThingShadowCommandOutput } from "./commands/DeleteThingShadowCommand";
11
12
  import { GetRetainedMessageCommandInput, GetRetainedMessageCommandOutput } from "./commands/GetRetainedMessageCommand";
12
13
  import { GetThingShadowCommandInput, GetThingShadowCommandOutput } from "./commands/GetThingShadowCommand";
@@ -20,11 +21,11 @@ export { __Client };
20
21
  /**
21
22
  * @public
22
23
  */
23
- export type ServiceInputTypes = DeleteThingShadowCommandInput | GetRetainedMessageCommandInput | GetThingShadowCommandInput | ListNamedShadowsForThingCommandInput | ListRetainedMessagesCommandInput | PublishCommandInput | UpdateThingShadowCommandInput;
24
+ export type ServiceInputTypes = DeleteConnectionCommandInput | DeleteThingShadowCommandInput | GetRetainedMessageCommandInput | GetThingShadowCommandInput | ListNamedShadowsForThingCommandInput | ListRetainedMessagesCommandInput | PublishCommandInput | UpdateThingShadowCommandInput;
24
25
  /**
25
26
  * @public
26
27
  */
27
- export type ServiceOutputTypes = DeleteThingShadowCommandOutput | GetRetainedMessageCommandOutput | GetThingShadowCommandOutput | ListNamedShadowsForThingCommandOutput | ListRetainedMessagesCommandOutput | PublishCommandOutput | UpdateThingShadowCommandOutput;
28
+ export type ServiceOutputTypes = DeleteConnectionCommandOutput | DeleteThingShadowCommandOutput | GetRetainedMessageCommandOutput | GetThingShadowCommandOutput | ListNamedShadowsForThingCommandOutput | ListRetainedMessagesCommandOutput | PublishCommandOutput | UpdateThingShadowCommandOutput;
28
29
  /**
29
30
  * @public
30
31
  */
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTDataPlaneClient";
4
+ import { DeleteConnectionRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteConnectionCommand}.
14
+ */
15
+ export interface DeleteConnectionCommandInput extends DeleteConnectionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteConnectionCommand}.
21
+ */
22
+ export interface DeleteConnectionCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteConnectionCommand_base: {
25
+ new (input: DeleteConnectionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteConnectionCommandInput, DeleteConnectionCommandOutput, IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteConnectionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteConnectionCommandInput, DeleteConnectionCommandOutput, IoTDataPlaneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Disconnects a connected MQTT client from Amazon Web Services IoT Core. When you disconnect a client, Amazon Web Services IoT Core closes the client's network connection and optionally cleans the session state.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { IoTDataPlaneClient, DeleteConnectionCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import
35
+ * // const { IoTDataPlaneClient, DeleteConnectionCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import
36
+ * const client = new IoTDataPlaneClient(config);
37
+ * const input = { // DeleteConnectionRequest
38
+ * clientId: "STRING_VALUE", // required
39
+ * cleanSession: true || false,
40
+ * preventWillMessage: true || false,
41
+ * };
42
+ * const command = new DeleteConnectionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteConnectionCommandInput - {@link DeleteConnectionCommandInput}
49
+ * @returns {@link DeleteConnectionCommandOutput}
50
+ * @see {@link DeleteConnectionCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteConnectionCommandOutput} for command's `response` shape.
52
+ * @see {@link IoTDataPlaneClientResolvedConfig | config} for IoTDataPlaneClient's `config` shape.
53
+ *
54
+ * @throws {@link ForbiddenException} (client fault)
55
+ * <p>The caller isn't authorized to make the request.</p>
56
+ *
57
+ * @throws {@link InternalFailureException} (server fault)
58
+ * <p>An unexpected error has occurred.</p>
59
+ *
60
+ * @throws {@link InvalidRequestException} (client fault)
61
+ * <p>The request is not valid.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified resource does not exist.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The rate exceeds the limit.</p>
68
+ *
69
+ * @throws {@link IoTDataPlaneServiceException}
70
+ * <p>Base exception class for all service exceptions from IoTDataPlane service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class DeleteConnectionCommand extends DeleteConnectionCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: DeleteConnectionRequest;
80
+ output: {};
81
+ };
82
+ sdk: {
83
+ input: DeleteConnectionCommandInput;
84
+ output: DeleteConnectionCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -31,7 +31,7 @@ declare const GetRetainedMessageCommand_base: {
31
31
  * <p>This action returns the message payload of the retained message, which can
32
32
  * incur messaging costs. To list only the topic names of the retained messages, call
33
33
  * <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_ListRetainedMessages.html">ListRetainedMessages</a>.</p>
34
- * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">GetRetainedMessage</a> action.</p>
34
+ * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html">GetRetainedMessage</a> action.</p>
35
35
  * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
36
36
  * pricing - Messaging</a>.</p>
37
37
  * @example
@@ -34,7 +34,7 @@ declare const ListRetainedMessagesCommand_base: {
34
34
  * <p>To get the message payload of a retained message, call
35
35
  * <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_GetRetainedMessage.html">GetRetainedMessage</a>
36
36
  * with the topic name of the retained message.</p>
37
- * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions">ListRetainedMessages</a> action.</p>
37
+ * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html">ListRetainedMessages</a> action.</p>
38
38
  * <p>For more information about messaging costs, see <a href="http://aws.amazon.com/iot-core/pricing/#Messaging">Amazon Web Services IoT Core
39
39
  * pricing - Messaging</a>.</p>
40
40
  * @example
@@ -1,3 +1,4 @@
1
+ export * from "./DeleteConnectionCommand";
1
2
  export * from "./DeleteThingShadowCommand";
2
3
  export * from "./GetRetainedMessageCommand";
3
4
  export * from "./GetThingShadowCommand";
@@ -13,31 +13,36 @@ export declare class ConflictException extends __BaseException {
13
13
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
14
14
  }
15
15
  /**
16
- * <p>The input for the DeleteThingShadow operation.</p>
17
16
  * @public
18
17
  */
19
- export interface DeleteThingShadowRequest {
18
+ export interface DeleteConnectionRequest {
20
19
  /**
21
- * <p>The name of the thing.</p>
20
+ * <p>The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).</p>
22
21
  * @public
23
22
  */
24
- thingName: string | undefined;
23
+ clientId: string | undefined;
25
24
  /**
26
- * <p>The name of the shadow.</p>
25
+ * <p>Specifies whether to remove the client's session state when disconnecting. Set to <code>TRUE</code> to delete all session information, including subscriptions and queued messages. Set to <code>FALSE</code> to preserve the session state. By default, this is set to <code>FALSE</code> (preserves the session state).</p>
27
26
  * @public
28
27
  */
29
- shadowName?: string | undefined;
28
+ cleanSession?: boolean | undefined;
29
+ /**
30
+ * <p>Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set to <code>TRUE</code> to prevent publishing the LWT message. Set to <code>FALSE</code> to allow publishing. By default, this is set to <code>FALSE</code> (allows publishing the LWT message).</p>
31
+ * @public
32
+ */
33
+ preventWillMessage?: boolean | undefined;
30
34
  }
31
35
  /**
32
- * <p>The output from the DeleteThingShadow operation.</p>
36
+ * <p>The caller isn't authorized to make the request.</p>
33
37
  * @public
34
38
  */
35
- export interface DeleteThingShadowResponse {
39
+ export declare class ForbiddenException extends __BaseException {
40
+ readonly name: "ForbiddenException";
41
+ readonly $fault: "client";
36
42
  /**
37
- * <p>The state information, in JSON format.</p>
38
- * @public
43
+ * @internal
39
44
  */
40
- payload: Uint8Array | undefined;
45
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
41
46
  }
42
47
  /**
43
48
  * <p>An unexpected error has occurred.</p>
@@ -64,52 +69,79 @@ export declare class InvalidRequestException extends __BaseException {
64
69
  constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
65
70
  }
66
71
  /**
67
- * <p>The specified combination of HTTP verb and URI is not supported.</p>
72
+ * <p>The specified resource does not exist.</p>
68
73
  * @public
69
74
  */
70
- export declare class MethodNotAllowedException extends __BaseException {
71
- readonly name: "MethodNotAllowedException";
75
+ export declare class ResourceNotFoundException extends __BaseException {
76
+ readonly name: "ResourceNotFoundException";
72
77
  readonly $fault: "client";
73
78
  /**
74
79
  * @internal
75
80
  */
76
- constructor(opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>);
81
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
77
82
  }
78
83
  /**
79
- * <p>The specified resource does not exist.</p>
84
+ * <p>The rate exceeds the limit.</p>
80
85
  * @public
81
86
  */
82
- export declare class ResourceNotFoundException extends __BaseException {
83
- readonly name: "ResourceNotFoundException";
87
+ export declare class ThrottlingException extends __BaseException {
88
+ readonly name: "ThrottlingException";
84
89
  readonly $fault: "client";
85
90
  /**
86
91
  * @internal
87
92
  */
88
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
93
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
89
94
  }
90
95
  /**
91
- * <p>The service is temporarily unavailable.</p>
96
+ * <p>The input for the DeleteThingShadow operation.</p>
92
97
  * @public
93
98
  */
94
- export declare class ServiceUnavailableException extends __BaseException {
95
- readonly name: "ServiceUnavailableException";
96
- readonly $fault: "server";
99
+ export interface DeleteThingShadowRequest {
97
100
  /**
98
- * @internal
101
+ * <p>The name of the thing.</p>
102
+ * @public
99
103
  */
100
- constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
104
+ thingName: string | undefined;
105
+ /**
106
+ * <p>The name of the shadow.</p>
107
+ * @public
108
+ */
109
+ shadowName?: string | undefined;
101
110
  }
102
111
  /**
103
- * <p>The rate exceeds the limit.</p>
112
+ * <p>The output from the DeleteThingShadow operation.</p>
104
113
  * @public
105
114
  */
106
- export declare class ThrottlingException extends __BaseException {
107
- readonly name: "ThrottlingException";
115
+ export interface DeleteThingShadowResponse {
116
+ /**
117
+ * <p>The state information, in JSON format.</p>
118
+ * @public
119
+ */
120
+ payload: Uint8Array | undefined;
121
+ }
122
+ /**
123
+ * <p>The specified combination of HTTP verb and URI is not supported.</p>
124
+ * @public
125
+ */
126
+ export declare class MethodNotAllowedException extends __BaseException {
127
+ readonly name: "MethodNotAllowedException";
108
128
  readonly $fault: "client";
109
129
  /**
110
130
  * @internal
111
131
  */
112
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
132
+ constructor(opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>);
133
+ }
134
+ /**
135
+ * <p>The service is temporarily unavailable.</p>
136
+ * @public
137
+ */
138
+ export declare class ServiceUnavailableException extends __BaseException {
139
+ readonly name: "ServiceUnavailableException";
140
+ readonly $fault: "server";
141
+ /**
142
+ * @internal
143
+ */
144
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
113
145
  }
114
146
  /**
115
147
  * <p>You are not authorized to perform this operation.</p>
@@ -1,5 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "../commands/DeleteConnectionCommand";
3
4
  import { DeleteThingShadowCommandInput, DeleteThingShadowCommandOutput } from "../commands/DeleteThingShadowCommand";
4
5
  import { GetRetainedMessageCommandInput, GetRetainedMessageCommandOutput } from "../commands/GetRetainedMessageCommand";
5
6
  import { GetThingShadowCommandInput, GetThingShadowCommandOutput } from "../commands/GetThingShadowCommand";
@@ -7,6 +8,10 @@ import { ListNamedShadowsForThingCommandInput, ListNamedShadowsForThingCommandOu
7
8
  import { ListRetainedMessagesCommandInput, ListRetainedMessagesCommandOutput } from "../commands/ListRetainedMessagesCommand";
8
9
  import { PublishCommandInput, PublishCommandOutput } from "../commands/PublishCommand";
9
10
  import { UpdateThingShadowCommandInput, UpdateThingShadowCommandOutput } from "../commands/UpdateThingShadowCommand";
11
+ /**
12
+ * serializeAws_restJson1DeleteConnectionCommand
13
+ */
14
+ export declare const se_DeleteConnectionCommand: (input: DeleteConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
15
  /**
11
16
  * serializeAws_restJson1DeleteThingShadowCommand
12
17
  */
@@ -35,6 +40,10 @@ export declare const se_PublishCommand: (input: PublishCommandInput, context: __
35
40
  * serializeAws_restJson1UpdateThingShadowCommand
36
41
  */
37
42
  export declare const se_UpdateThingShadowCommand: (input: UpdateThingShadowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
+ /**
44
+ * deserializeAws_restJson1DeleteConnectionCommand
45
+ */
46
+ export declare const de_DeleteConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteConnectionCommandOutput>;
38
47
  /**
39
48
  * deserializeAws_restJson1DeleteThingShadowCommand
40
49
  */
@@ -1,4 +1,8 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ DeleteConnectionCommandInput,
4
+ DeleteConnectionCommandOutput,
5
+ } from "./commands/DeleteConnectionCommand";
2
6
  import {
3
7
  DeleteThingShadowCommandInput,
4
8
  DeleteThingShadowCommandOutput,
@@ -29,6 +33,19 @@ import {
29
33
  } from "./commands/UpdateThingShadowCommand";
30
34
  import { IoTDataPlaneClient } from "./IoTDataPlaneClient";
31
35
  export interface IoTDataPlane {
36
+ deleteConnection(
37
+ args: DeleteConnectionCommandInput,
38
+ options?: __HttpHandlerOptions
39
+ ): Promise<DeleteConnectionCommandOutput>;
40
+ deleteConnection(
41
+ args: DeleteConnectionCommandInput,
42
+ cb: (err: any, data?: DeleteConnectionCommandOutput) => void
43
+ ): void;
44
+ deleteConnection(
45
+ args: DeleteConnectionCommandInput,
46
+ options: __HttpHandlerOptions,
47
+ cb: (err: any, data?: DeleteConnectionCommandOutput) => void
48
+ ): void;
32
49
  deleteThingShadow(
33
50
  args: DeleteThingShadowCommandInput,
34
51
  options?: __HttpHandlerOptions
@@ -45,6 +45,10 @@ import {
45
45
  HttpAuthSchemeInputConfig,
46
46
  HttpAuthSchemeResolvedConfig,
47
47
  } from "./auth/httpAuthSchemeProvider";
48
+ import {
49
+ DeleteConnectionCommandInput,
50
+ DeleteConnectionCommandOutput,
51
+ } from "./commands/DeleteConnectionCommand";
48
52
  import {
49
53
  DeleteThingShadowCommandInput,
50
54
  DeleteThingShadowCommandOutput,
@@ -81,6 +85,7 @@ import {
81
85
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
82
86
  export { __Client };
83
87
  export type ServiceInputTypes =
88
+ | DeleteConnectionCommandInput
84
89
  | DeleteThingShadowCommandInput
85
90
  | GetRetainedMessageCommandInput
86
91
  | GetThingShadowCommandInput
@@ -89,6 +94,7 @@ export type ServiceInputTypes =
89
94
  | PublishCommandInput
90
95
  | UpdateThingShadowCommandInput;
91
96
  export type ServiceOutputTypes =
97
+ | DeleteConnectionCommandOutput
92
98
  | DeleteThingShadowCommandOutput
93
99
  | GetRetainedMessageCommandOutput
94
100
  | GetThingShadowCommandOutput
@@ -0,0 +1,45 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ IoTDataPlaneClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../IoTDataPlaneClient";
8
+ import { DeleteConnectionRequest } from "../models/models_0";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface DeleteConnectionCommandInput extends DeleteConnectionRequest {}
12
+ export interface DeleteConnectionCommandOutput extends __MetadataBearer {}
13
+ declare const DeleteConnectionCommand_base: {
14
+ new (
15
+ input: DeleteConnectionCommandInput
16
+ ): import("@smithy/smithy-client").CommandImpl<
17
+ DeleteConnectionCommandInput,
18
+ DeleteConnectionCommandOutput,
19
+ IoTDataPlaneClientResolvedConfig,
20
+ ServiceInputTypes,
21
+ ServiceOutputTypes
22
+ >;
23
+ new (
24
+ input: DeleteConnectionCommandInput
25
+ ): import("@smithy/smithy-client").CommandImpl<
26
+ DeleteConnectionCommandInput,
27
+ DeleteConnectionCommandOutput,
28
+ IoTDataPlaneClientResolvedConfig,
29
+ ServiceInputTypes,
30
+ ServiceOutputTypes
31
+ >;
32
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
33
+ };
34
+ export declare class DeleteConnectionCommand extends DeleteConnectionCommand_base {
35
+ protected static __types: {
36
+ api: {
37
+ input: DeleteConnectionRequest;
38
+ output: {};
39
+ };
40
+ sdk: {
41
+ input: DeleteConnectionCommandInput;
42
+ output: DeleteConnectionCommandOutput;
43
+ };
44
+ };
45
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./DeleteConnectionCommand";
1
2
  export * from "./DeleteThingShadowCommand";
2
3
  export * from "./GetRetainedMessageCommand";
3
4
  export * from "./GetThingShadowCommand";
@@ -8,12 +8,15 @@ export declare class ConflictException extends __BaseException {
8
8
  readonly $fault: "client";
9
9
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
10
10
  }
11
- export interface DeleteThingShadowRequest {
12
- thingName: string | undefined;
13
- shadowName?: string | undefined;
11
+ export interface DeleteConnectionRequest {
12
+ clientId: string | undefined;
13
+ cleanSession?: boolean | undefined;
14
+ preventWillMessage?: boolean | undefined;
14
15
  }
15
- export interface DeleteThingShadowResponse {
16
- payload: Uint8Array | undefined;
16
+ export declare class ForbiddenException extends __BaseException {
17
+ readonly name: "ForbiddenException";
18
+ readonly $fault: "client";
19
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
17
20
  }
18
21
  export declare class InternalFailureException extends __BaseException {
19
22
  readonly name: "InternalFailureException";
@@ -29,18 +32,32 @@ export declare class InvalidRequestException extends __BaseException {
29
32
  opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
30
33
  );
31
34
  }
32
- export declare class MethodNotAllowedException extends __BaseException {
33
- readonly name: "MethodNotAllowedException";
35
+ export declare class ResourceNotFoundException extends __BaseException {
36
+ readonly name: "ResourceNotFoundException";
34
37
  readonly $fault: "client";
35
38
  constructor(
36
- opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>
39
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
37
40
  );
38
41
  }
39
- export declare class ResourceNotFoundException extends __BaseException {
40
- readonly name: "ResourceNotFoundException";
42
+ export declare class ThrottlingException extends __BaseException {
43
+ readonly name: "ThrottlingException";
41
44
  readonly $fault: "client";
42
45
  constructor(
43
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
46
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
47
+ );
48
+ }
49
+ export interface DeleteThingShadowRequest {
50
+ thingName: string | undefined;
51
+ shadowName?: string | undefined;
52
+ }
53
+ export interface DeleteThingShadowResponse {
54
+ payload: Uint8Array | undefined;
55
+ }
56
+ export declare class MethodNotAllowedException extends __BaseException {
57
+ readonly name: "MethodNotAllowedException";
58
+ readonly $fault: "client";
59
+ constructor(
60
+ opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>
44
61
  );
45
62
  }
46
63
  export declare class ServiceUnavailableException extends __BaseException {
@@ -50,13 +67,6 @@ export declare class ServiceUnavailableException extends __BaseException {
50
67
  opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
51
68
  );
52
69
  }
53
- export declare class ThrottlingException extends __BaseException {
54
- readonly name: "ThrottlingException";
55
- readonly $fault: "client";
56
- constructor(
57
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
58
- );
59
- }
60
70
  export declare class UnauthorizedException extends __BaseException {
61
71
  readonly name: "UnauthorizedException";
62
72
  readonly $fault: "client";
@@ -3,6 +3,10 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@smithy/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ DeleteConnectionCommandInput,
8
+ DeleteConnectionCommandOutput,
9
+ } from "../commands/DeleteConnectionCommand";
6
10
  import {
7
11
  DeleteThingShadowCommandInput,
8
12
  DeleteThingShadowCommandOutput,
@@ -31,6 +35,10 @@ import {
31
35
  UpdateThingShadowCommandInput,
32
36
  UpdateThingShadowCommandOutput,
33
37
  } from "../commands/UpdateThingShadowCommand";
38
+ export declare const se_DeleteConnectionCommand: (
39
+ input: DeleteConnectionCommandInput,
40
+ context: __SerdeContext
41
+ ) => Promise<__HttpRequest>;
34
42
  export declare const se_DeleteThingShadowCommand: (
35
43
  input: DeleteThingShadowCommandInput,
36
44
  context: __SerdeContext
@@ -59,6 +67,10 @@ export declare const se_UpdateThingShadowCommand: (
59
67
  input: UpdateThingShadowCommandInput,
60
68
  context: __SerdeContext
61
69
  ) => Promise<__HttpRequest>;
70
+ export declare const de_DeleteConnectionCommand: (
71
+ output: __HttpResponse,
72
+ context: __SerdeContext
73
+ ) => Promise<DeleteConnectionCommandOutput>;
62
74
  export declare const de_DeleteThingShadowCommand: (
63
75
  output: __HttpResponse,
64
76
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-data-plane",
3
3
  "description": "AWS SDK for JavaScript Iot Data Plane Client for Node.js, Browser and React Native",
4
- "version": "3.862.0",
4
+ "version": "3.864.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-iot-data-plane",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.862.0",
24
- "@aws-sdk/credential-provider-node": "3.862.0",
23
+ "@aws-sdk/core": "3.864.0",
24
+ "@aws-sdk/credential-provider-node": "3.864.0",
25
25
  "@aws-sdk/middleware-host-header": "3.862.0",
26
26
  "@aws-sdk/middleware-logger": "3.862.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.862.0",
28
- "@aws-sdk/middleware-user-agent": "3.862.0",
28
+ "@aws-sdk/middleware-user-agent": "3.864.0",
29
29
  "@aws-sdk/region-config-resolver": "3.862.0",
30
30
  "@aws-sdk/types": "3.862.0",
31
31
  "@aws-sdk/util-endpoints": "3.862.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.862.0",
33
- "@aws-sdk/util-user-agent-node": "3.862.0",
33
+ "@aws-sdk/util-user-agent-node": "3.864.0",
34
34
  "@smithy/config-resolver": "^4.1.5",
35
35
  "@smithy/core": "^3.8.0",
36
36
  "@smithy/fetch-http-handler": "^5.1.1",